Git Product home page Git Product logo

5g-network-slicing-for-wifi-networks's People

Contributors

matteonerini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

5g-network-slicing-for-wifi-networks's Issues

The codes are not working with the current version of ns3

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.

Build error

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)

MakeMobilityModel

‘static void ns3::BuildingsHelper::MakeMobilityModelConsistent()’ is deprecated [-Werror=deprecated-declarations]

build failed

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)

Deprecated WIFI_PHY_STANDARD

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.

  • `WIFI_PHY_STANDARD_80211a,
  • WIFI_PHY_STANDARD_80211b,
  • WIFI_PHY_STANDARD_80211g,
  • WIFI_PHY_STANDARD_80211_10MHZ,
  • WIFI_PHY_STANDARD_80211_5MHZ,
  • WIFI_PHY_STANDARD_80211p,
  • WIFI_PHY_STANDARD_holland,
  • WIFI_PHY_STANDARD_80211n_2_4GHZ,
  • WIFI_PHY_STANDARD_80211n_5GHZ,
  • WIFI_PHY_STANDARD_80211n,
  • WIFI_PHY_STANDARD_80211ac,
  • WIFI_PHY_STANDARD_80211ax,
  • WIFI_PHY_STANDARD_UNSPECIFIED

Which should I chose to reproduce the results of the paper?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.