User Tools

Site Tools


cs:ns-3
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cs:ns-3 [2016/07/19 17:25]
zioskenz created
cs:ns-3 [2019/02/26 14:33] (current)
Line 5: Line 5:
 ./waf --run <​ns3-program>​ --command-template="​%s <​args>"​ ./waf --run <​ns3-program>​ --command-template="​%s <​args>"​
 ./waf --run=hello-simulator --command-template="​gdb %s --args <​args>"​ ./waf --run=hello-simulator --command-template="​gdb %s --args <​args>"​
 +</​code>​
 +
 +Example for enabling logging:
 +<code bash>
 +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'​
 +</​code>​
 +
 +Setting attributes at command line:
 +<code bash>
 +./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"​
 +</​code>​
 +
 +Tcpdump:
 +<code bash>
 +tcpdump -nn -tt -r myfirst-0-0.pcap
 </​code>​ </​code>​
  
 Important classes: Node, Application,​ Channel (WifiChannel),​ NetDevice (WifiNetDevice) 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: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/ns-3?rev=1551188038&do=diff
/web/htdocs/www.skenz.it/home/data/pages/cs/ns-3.txt ยท Last modified: 2019/02/26 14:33 (external edit)

Privacy Policy