Skip to content

Instantly share code, notes, and snippets.

@Blackhawk95
Last active April 10, 2018 07:00
Show Gist options
  • Save Blackhawk95/9c2e2bb45152e95a53d2344a736ab109 to your computer and use it in GitHub Desktop.
Save Blackhawk95/9c2e2bb45152e95a53d2344a736ab109 to your computer and use it in GitHub Desktop.
ns3 ouput second
CODE
---code---u already took----
output for 1
[jeevan@jeevan-pc ns-3.27]$ ./waf --run "scratch/dsdvwifi_0_1 -nwifisource=4 --saturated=false"
Waf: Entering directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Waf: Leaving directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.097s)
Running:
Flow 1 (10.0.0.1 -> 10.0.0.5)
Tx Packets: 100
Tx Bytes: 3800
Rx Packets: 100
Rx Bytes: 3800
Loss Bytes 0
PDR 1
PLR 0
Sum of all Jitter 0.00191019
Flow 2 (10.0.0.2 -> 10.0.0.6)
Tx Packets: 100
Tx Bytes: 3800
Rx Packets: 100
Rx Bytes: 3800
Loss Bytes 0
PDR 1
PLR 0
Sum of all Jitter 0.0197211
Flow 3 (10.0.0.3 -> 10.0.0.7)
Tx Packets: 100
Tx Bytes: 3800
Rx Packets: 100
Rx Bytes: 3800
Loss Bytes 0
PDR 1
PLR 0
Sum of all Jitter 0.00813424
Flow 4 (10.0.0.4 -> 10.0.0.8)
Tx Packets: 100
Tx Bytes: 3800
Rx Packets: 100
Rx Bytes: 3800
Loss Bytes 0
PDR 1
PLR 0
Sum of all Jitter 0.0159917
------------------------------------------------
[jeevan@jeevan-pc ns-3.27]$ ./waf --run "scratch/dsdvwifi_0_1 -nwifisource=4 --saturated=true"
Waf: Entering directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Waf: Leaving directory `/home/jeevan/networklab/ns-allinone-3.27/ns-3.27/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.138s)
Running:
Flow 1 (10.0.0.1 -> 10.0.0.5)
Tx Packets: 1072
Tx Bytes: 1530816
Rx Packets: 499
Rx Bytes: 712572
Loss Bytes 818244
PDR 0.465485
PLR 0.534515
Sum of all Jitter 9.9168
Flow 2 (10.0.0.2 -> 10.0.0.6)
Tx Packets: 1073
Tx Bytes: 1532244
Rx Packets: 504
Rx Bytes: 719712
Loss Bytes 812532
PDR 0.469711
PLR 0.530289
Sum of all Jitter 9.79295
Flow 3 (10.0.0.3 -> 10.0.0.7)
Tx Packets: 1074
Tx Bytes: 1533672
Rx Packets: 290
Rx Bytes: 414120
Loss Bytes 1119552
PDR 0.270019
PLR 0.729981
Sum of all Jitter 13.534
Flow 4 (10.0.0.4 -> 10.0.0.8)
Tx Packets: 1075
Tx Bytes: 1535100
Rx Packets: 567
Rx Bytes: 809676
Loss Bytes 725424
PDR 0.527442
PLR 0.472558
Sum of all Jitter 8.44393
------------------------------------------------
CSV output PDR,PLR,Jitter
-----------------------------------------------
[jeevan@jeevan-pc ns-3.27]$ cat scratch/sat.csv
1,1,0,0.00573013
2,0.876916,0.123084,6.846
3,0.593653,0.406347,8.53597
4,0.433164,0.566836,10.4219
5,0.353412,0.646588,9.67642
[jeevan@jeevan-pc ns-3.27]$ cat scratch/unsat.csv
1,1,0,0.00573013
2,1,0,0.0104115
3,1,0,0.00995707
4,1,0,0.0114393
5,0.968,0.032,0.435407
---------------------------------------------
graph with 5 node on mail
--------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment