Guidance in NS2.35

26 views
Skip to first unread message

sd6...@gmail.com

unread,
Nov 16, 2018, 2:51:06 AM11/16/18
to Network Simulator 2 (NS2)
Dear all,

1) I am new with ns2, need help and guidance in ns2.35.

2) Can I get tcl code to run and compare Quality routing in MANETs, such as Delay factor ..  etc  for  AODV, DSR and DSDV.

tq,

Amsd.

sd6...@gmail.com

knudfl

unread,
Nov 16, 2018, 5:41:11 AM11/16/18
to Network Simulator 2 (NS2)
Hi.

Manet examples :   manet-examples-6.tar.gz


Scripts for analyzing a trace-file.tr :

-overview.txt .... Section "Delay scripts" ...
**** Delay ****
all-2.awk
Avg_Del.awk
Avg_Del_Flow.awk
Instnt_Del.awk
Instnt_Del_Flow.awk
            -----------
delay_alterado_einar.awk
delay.awk
delay-e2e.awk
delay-link.awk
delay_original.awk
del-ratio.awk
insdelay_tcp-cbr-vbr.awk
measure-delay.awk
thr_drop_delay.awk
            ------------
avg-delay_E2E.pl
e2e.awk 
e2edelay.awk
e2ethroughput.awk
en2end-delay.awk  ?
end-to-end.awk
Endtoenddelay.awk   
End-to-End-Delay.awk   
End-to-End-Delay##.pl
Endtoenddelay-Xgr.awk   
delay-e2e.awk
tess-delay.awk

Application for analyzing : ns2 APP-Tool → text outputs and plots / curves

Amsd

unread,
Nov 16, 2018, 6:19:02 AM11/16/18
to Network Simulator 2 (NS2)
Dear Knudfl,

Thank U for your response ..

It seems, I still need more guidance ..

best regards,

Amsd

knudfl

unread,
Nov 16, 2018, 6:54:10 AM11/16/18
to Network Simulator 2 (NS2)
Hi.

Please explain what you already have done.
If not done already, then please run all the available Manet examples. I.e. the examples you can run with a stock ns-2.35.

Example, my test with "aodvattacker.tcl"
[ex-manet6]$ ns235-64-orig aodvattacker.tcl
num_nodes
is set 20
Creating nodes...
INITIALIZE THE LIST xListHead
Loading random connection pattern...
cbr_
(0) has been created over udp_(0)
udp_
(0) and null_(0) agents has been connected each other
cbr_
(1) has been created over udp_(1)
udp_
(1) and null_(1) agents has been connected each other
cbr_
(2) has been created over udp_(2)
udp_
(2) and null_(2) agents has been connected each other
cbr_
(3) has been created over udp_(3)
udp_
(3) and null_(3) agents has been connected each other
cbr_
(4) has been created over udp_(4)
udp_
(4) and null_(4) agents has been connected each other
cbr_
(5) has been created over udp_(5)
udp_
(5) and null_(5) agents has been connected each other
cbr_
(6) has been created over udp_(6)
udp_
(6) and null_(6) agents has been connected each other
cbr_
(7) has been created over udp_(7)
udp_
(7) and null_(7) agents has been connected each other
cbr_
(8) has been created over udp_(8)
udp_
(8) and null_(8) agents has been connected each other
Starting Simulation...
channel
.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_
= 1.5,  distCST_ = 550.0
SORTING LISTS
...DONE!

... The NAM window opens. "Play" is running the animation.
Three Xgraph windows are opening :  Throughput, Package_Loss and  Delay.

$ awk -f delay_alterado_einar.awk trust.tr
0.00245529


screen8862.jpg
screen20467.jpg
Reply all
Reply to author
Forward
0 new messages