mohittahiliani / ns-3-python-examples Goto Github PK
View Code? Open in Web Editor NEWExample python programs for ns-3
License: GNU General Public License v3.0
Example python programs for ns-3
License: GNU General Public License v3.0
TCP throughput of the following two programs does not match with that of corresponding C++ programs:
Run these programs and corresponding C++ programs with --udp=False to see the difference.
SetFill method accepts "four" arguments in C++ (e.g., examples/udp/udp-echo.cc, line #134), but does not accept more than "three" in Python (see udp/udp-echo.py, line #130 in this repo)
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.
ns-3-python-examples/tcp/tcp-bulk-send.py
Line 47 in 8ee504f
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:
argv
option from main. import sys
globally on top. Call cmd.Parse
with sys.argv
.cmd.Parse
with argv
.I feel Option 2 would make the program much more readable.
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.