User Tools

Site Tools


cs:ns-3
Site was transfered to www.skenz.it
Please, always refer to this link with the following URL: http://www.skenz.it/cs/ns-3

ns-3

Run a program:

./waf --run <ns3-program> --command-template="%s <args>"
./waf --run=hello-simulator --command-template="gdb %s --args <args>"

Example for enabling logging:

export NS_LOG=UdpEchoClientApplication=level_all|prefix_func|prefix_time:UdpEchoServerApplication=level_all|prefix_func|prefix_time'
export 'NS_LOG=*=level_all|prefix_func|prefix_time'

Setting attributes at command line:

./waf --run "scratch/myfirst --PrintHelp"
./waf --run "scratch/myfirst --PrintAttributes=ns3::PointToPointNetDevice"
./waf --run "scratch/myfirst --ns3::PointToPointNetDevice::DataRate=5Mbps --ns3::PointToPointChannel::Delay=2ms --ns3::UdpEchoClient::MaxPackets=2"

Tcpdump:

tcpdump -nn -tt -r myfirst-0-0.pcap

Important classes: Node, Application, Channel (WifiChannel), NetDevice (WifiNetDevice)


If you found any error, or if you want to partecipate to the editing of this wiki, please contact: wiki [at] altervista.org

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: http://www.skenz.it/cs/ns-3
/membri/wiki/data/pages/cs/ns-3.txt · Last modified: 2016/07/21 16:47 by Z


Policy sui Cookie