GithubHelp home page GithubHelp logo

mohittahiliani / ns-3-python-examples Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 26.0 45 KB

Example python programs for ns-3

License: GNU General Public License v3.0

Python 100.00%
examples ns-3 python

ns-3-python-examples's People

Contributors

mohittahiliani avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ns-3-python-examples's Issues

Passed argument argv unused

cmd.Parse (sys.argv)

In the example, the main function takes an argument argv, to which sys.argv is passed during runtime. However the argv variable is never used in the program and the cmd.Parse is again supplied with sys.argv itself.

I feel this would be confusing to a user reading the code.

Suggestions:

  1. Remove the argv option from main. import sys globally on top. Call cmd.Parse with sys.argv.
  2. Call cmd.Parse with argv.

I feel Option 2 would make the program much more readable.

Stop method required for star.py to terminate

While porting examples/tcp/star.cc to star.py, it was observed that star.cc does not require a "Simulator::Stop" for termination, whereas star.py does require. The reason is not yet clear.

TCP throughput differs when run in python

TCP throughput of the following two programs does not match with that of corresponding C++ programs:

  1. ht-wifi-network.py
  2. vht-wifi-network.py

Run these programs and corresponding C++ programs with --udp=False to see the difference.

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.