matteonerini / 5g-network-slicing-for-wifi-networks Goto Github PK
View Code? Open in Web Editor NEW5G Network Slicing for Wi-Fi Networks
License: GNU General Public License v3.0
5G Network Slicing for Wi-Fi Networks
License: GNU General Public License v3.0
I see that the ns3 codes were written in the older version of ns3-3.30 and I am currently using the current version of ns3-3.36 and your code in the github doesn't work in the latest version of ns3. I tried to update it to the current version, however I was unsuccessful. So could you please advise on what changes need to be done so that it works with the current version of ns3.
Calling the ns3 script 'wifi.cc'
Waf: Entering directory `/srv/scratch/jgwohlbier/ns-3-allinone/ns-3-dev/build'
[2788/2842] Compiling scratch/wifi_1ch.cc
[2789/2842] Compiling scratch/wifi.cc
[2790/2842] Compiling scratch/wifi_dynamic.cc
[2791/2842] Compiling scratch/wifi_static.cc
../scratch/wifi_static.cc: In function 'int main(int, char**)':
../scratch/wifi_static.cc:306:62: error: 'Default' is not a member of 'ns3::SpectrumWifiPhyHelper'
306 | SpectrumWifiPhyHelper spectrumPhy = SpectrumWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_static.cc:307:50: error: 'Default' is not a member of 'ns3::YansWifiPhyHelper'
307 | YansWifiPhyHelper yansPhy = YansWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_static.cc:342:48: error: 'virtual void ns3::WifiHelper::SetStandard(ns3::WifiPhyStandard)' is deprecated [-Werror=deprecated-declarations]
342 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
| ^
In file included from ./ns3/yans-wifi-helper.h:24,
from ../scratch/wifi_static.cc:44:
./ns3/wifi-helper.h:502:16: note: declared here
502 | virtual void SetStandard (WifiPhyStandard standard);
| ^~~~~~~~~~~
../scratch/wifi_static.cc:363:23: error: 'WIFI_PHY_STANDARD_80211ax_5GHZ' was not declared in this scope
363 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_5GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_static.cc:380:22: error: 'WIFI_PHY_STANDARD_80211ax_2_4GHZ' was not declared in this scope
380 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_2_4GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_static.cc:567:20: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
567 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_static.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_static.cc:567:49: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
567 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_static.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
../scratch/wifi_1ch.cc: In function 'int main(int, char**)':
../scratch/wifi_1ch.cc:216:62: error: 'Default' is not a member of 'ns3::SpectrumWifiPhyHelper'
216 | SpectrumWifiPhyHelper spectrumPhy = SpectrumWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_1ch.cc:217:50: error: 'Default' is not a member of 'ns3::YansWifiPhyHelper'
217 | YansWifiPhyHelper yansPhy = YansWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_1ch.cc:253:48: error: 'virtual void ns3::WifiHelper::SetStandard(ns3::WifiPhyStandard)' is deprecated [-Werror=deprecated-declarations]
253 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
| ^
In file included from ./ns3/yans-wifi-helper.h:24,
from ../scratch/wifi_1ch.cc:44:
./ns3/wifi-helper.h:502:16: note: declared here
502 | virtual void SetStandard (WifiPhyStandard standard);
| ^~~~~~~~~~~
../scratch/wifi_1ch.cc:274:23: error: 'WIFI_PHY_STANDARD_80211ax_5GHZ' was not declared in this scope
274 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_5GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_1ch.cc:291:22: error: 'WIFI_PHY_STANDARD_80211ax_2_4GHZ' was not declared in this scope
291 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_2_4GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_1ch.cc:404:20: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
404 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_1ch.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_1ch.cc:404:49: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
404 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_1ch.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
../scratch/wifi.cc: In function 'int main(int, char**)':
../scratch/wifi.cc:621:62: error: 'Default' is not a member of 'ns3::SpectrumWifiPhyHelper'
621 | SpectrumWifiPhyHelper spectrumPhy = SpectrumWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi.cc:622:50: error: 'Default' is not a member of 'ns3::YansWifiPhyHelper'
622 | YansWifiPhyHelper yansPhy = YansWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi.cc:657:48: error: 'virtual void ns3::WifiHelper::SetStandard(ns3::WifiPhyStandard)' is deprecated [-Werror=deprecated-declarations]
657 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
| ^
In file included from ./ns3/yans-wifi-helper.h:24,
from ../scratch/wifi.cc:44:
./ns3/wifi-helper.h:502:16: note: declared here
502 | virtual void SetStandard (WifiPhyStandard standard);
| ^~~~~~~~~~~
../scratch/wifi.cc:678:23: error: 'WIFI_PHY_STANDARD_80211ax_5GHZ' was not declared in this scope
678 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_5GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi.cc:695:22: error: 'WIFI_PHY_STANDARD_80211ax_2_4GHZ' was not declared in this scope
695 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_2_4GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi.cc:852:20: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
852 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi.cc:852:49: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
852 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
../scratch/wifi_dynamic.cc: In function 'int main(int, char**)':
../scratch/wifi_dynamic.cc:943:62: error: 'Default' is not a member of 'ns3::SpectrumWifiPhyHelper'
943 | SpectrumWifiPhyHelper spectrumPhy = SpectrumWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_dynamic.cc:944:50: error: 'Default' is not a member of 'ns3::YansWifiPhyHelper'
944 | YansWifiPhyHelper yansPhy = YansWifiPhyHelper::Default ();
| ^~~~~~~
../scratch/wifi_dynamic.cc:979:48: error: 'virtual void ns3::WifiHelper::SetStandard(ns3::WifiPhyStandard)' is deprecated [-Werror=deprecated-declarations]
979 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ac);
| ^
In file included from ./ns3/yans-wifi-helper.h:24,
from ../scratch/wifi_dynamic.cc:44:
./ns3/wifi-helper.h:502:16: note: declared here
502 | virtual void SetStandard (WifiPhyStandard standard);
| ^~~~~~~~~~~
../scratch/wifi_dynamic.cc:1000:23: error: 'WIFI_PHY_STANDARD_80211ax_5GHZ' was not declared in this scope
1000 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_5GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_dynamic.cc:1017:22: error: 'WIFI_PHY_STANDARD_80211ax_2_4GHZ' was not declared in this scope
1017 | wifi.SetStandard (WIFI_PHY_STANDARD_80211ax_2_4GHZ);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_dynamic.cc:1174:20: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
1174 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_dynamic.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../scratch/wifi_dynamic.cc:1174:49: error: 'static void ns3::BuildingsHelper::MakeMobilityModelConsistent()' is deprecated [-Werror=deprecated-declarations]
1174 | BuildingsHelper::MakeMobilityModelConsistent ();
| ^
In file included from ./ns3/buildings-module.h:16,
from ../scratch/wifi_dynamic.cc:64:
./ns3/buildings-helper.h:62:15: note: declared here
62 | static void MakeMobilityModelConsistent ();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Waf: Leaving directory `/srv/scratch/jgwohlbier/ns-3-allinone/ns-3-dev/build'
Build failed
-> task in 'wifi_static' failed with exit status 1 (run with -v to display more information)
-> task in 'wifi_1ch' failed with exit status 1 (run with -v to display more information)
-> task in 'wifi' failed with exit status 1 (run with -v to display more information)
-> task in 'wifi_dynamic' failed with exit status 1 (run with -v to display more information)
‘static void ns3::BuildingsHelper::MakeMobilityModelConsistent()’ is deprecated [-Werror=deprecated-declarations]
Hello
I am trying to execute a code and the following error is showing up. Please help.
[2913/3434] Compiling src/ndnSIM/examples/ndn-custom-apps/hijacker.cpp
../src/ndnSIM/examples/mob9.cpp: In function ‘int ns3::main(int, char**)’:
../src/ndnSIM/examples/mob9.cpp:68:20: error: cannot convert ‘ns3::WifiPhyStandard’ to ‘ns3::WifiStandard’
68 | wifi.SetStandard(WIFI_PHY_STANDARD_80211a);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| ns3::WifiPhyStandard
In file included from ./ns3/spectrum-wifi-helper.h:24,
from ./ns3/wifi-module.h:89,
from ../src/ndnSIM/examples/mob9.cpp:23:
./ns3/wifi-helper.h:475:42: note: initializing argument 1 of ‘virtual void ns3::WifiHelper::SetStandard(ns3::WifiStandard)’
475 | virtual void SetStandard (WifiStandard standard);
| ~~~~~~~~~~~~~^~~~~~~~
../src/ndnSIM/examples/mob9.cpp:78:56: error: ‘Default’ is not a member of ‘ns3::YansWifiPhyHelper’
78 | YansWifiPhyHelper wifiPhyHelper = YansWifiPhyHelper::Default();
| ^~~~~~~
Waf: Leaving directory `/home/purvap/Desktop/ndnSIM/ns-3/build'
Build failed
-> task in 'mob9' failed with exit status 1 (run with -v to display more information)
WIFI_PHY_STANDARD_80211ax_5GHZ and WIFI_PHY_STANDARD_80211ax_2_4GHZ are deprecated. The WifiPhyStandard
enum in wifi-standards.h
lists the following standards.
Which should I chose to reproduce the results of the paper?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.