sumu on ns2

90 views
Skip to first unread message

Academic Group of NS2

unread,
Sep 21, 2019, 9:36:31 AM9/21/19
to Network Simulator 2 (NS2)
when i run the command "python /usr/local/src/sumo-src-0.32.0/sumo-0.32.0/tools/randomTrips.py -n map.net.xml -r map.rou.xml -e 50 -l" i face the error called
python: can't open file '/usr/local/src/sumo-src-0.32.0/sumo-0.32.0/tools/randomTrips.py': [Errno 2] No such file or directory. how can fix it please help me.

knudfl

unread,
Sep 21, 2019, 9:42:25 AM9/21/19
to Network Simulator 2 (NS2)
$ locate randomTrips.py
/usr/local/share/sumo/tools/randomTrips.py

.... Usually  /usr/local/src  is not used for anything !  !

knudfl

unread,
Nov 17, 2019, 4:19:50 AM11/17/19
to Network Simulator 2 (NS2)
.... Either ask in a thread that you started,  or https://groups.google.com/forum/?fromgroups#!newtopic/ns-users
..... There is also an advantage :  The thread gets higher viability
..... the thread headline shows  "By Academic Group of NS"

------------------------------------------------------------------------------

»» awk: delay.awk:43: (FILENAME=vanet.tr FNR=1473998) fatal: division by zero attempted «« :
Use another "Delay script" ....  An awk or perl script must be a match for the trace file to analyze.
And :  Be aware that  $ns use-newtrace enables the new trace format used by most scripts.
No  line with  $ns use-newtrace  in your simulation.tcl will write an "out.tr" in  `old trace format´.

Scripts, see the list  "scripts-overview.txt" currently z7-scripts-overview-7.txt

-----  ~ 25  Delay scripts -----
all-2.awk
Avg_Del.awk
Avg_Del_Flow.awk
Instnt_Del.awk
Instnt_Del_Flow.awk
metrics.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

And : $ dash Metrics_Performance_Extractor.sh

ayene zinabie

unread,
Nov 17, 2019, 9:15:49 AM11/17/19
to ns-u...@googlegroups.com
hi sir based on your recommendation i tried to find the network performance like that of throughput, packet delivery ratio, delay and routing overhead for ns2 .tcl files but when i troed to find the delay and network over head on terminals using the command awk -f filename.awk filename.tr, it says that 
awk: delay.awk:82: (FILENAME=vanet.tr FNR=1473998) fatal: division by zero attempted, there fore how can fix this error? thankew very match.


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/b0be1058-ab24-427e-aad9-65facdf16e89%40googlegroups.com.

knudfl

unread,
Nov 17, 2019, 10:19:25 AM11/17/19
to Network Simulator 2 (NS2)
Hi.

»» awk: delay.awk «« :                   Missing information
Plenty of files with the name  delay.awk :  Please attach the file, delay.awk
** You forgot to confirm that you tried out all 25 possible files.awk, files.pl .
And that you also tried using a version of vanet.tcl with a line   $ns use-newtrace
Please attach vanet.tcl and the connected traffic / movement files.
....... Unless it's about one of my examples in Vanet-examples-10.19.tar.xz
... with no modifications. Then please specify.


lework dagne

unread,
Nov 26, 2019, 2:21:10 AM11/26/19
to ns-u...@googlegroups.com
hello sir please donot take your help from me? and thanks for your valuable help? when i run this as you tell me..there iis a trace file but there is no any packet sent and received in olsr...at time 0 always what the problem?
end to end delay.awk also canot find the e2e delay ..because it say division by 0


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
4-olsr-wca.tcl

knudfl

unread,
Nov 26, 2019, 5:01:47 AM11/26/19
to Network Simulator 2 (NS2)
$ ns235-olsr-64 4-olsr-wca.tcl 50

.......  The files oWCA.nam 208.9kb,  oWCA.tr 528.4kB are created.
$ grep "s " oWCA.tr | wc -l
384
$ grep
"r " oWCA.tr | wc -l
384
...... so 384 packets are sent, and 384 packets are received, according to a simple count.

AWK example :
$ awk -f qos.awk oWCA.tr
       startTime
:  0
        stopTime
:  2
    receivedPkts
:  1256
   avgTput
[kbps]:  151.286

Do not rely on one test file = your unknown `delay.awk´.
  • All possible choices of analyzing scripts must be run.
  • You have ~20 scripts to run :
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



On Tuesday, November 26, 2019 at 8:21:10 AM UTC+1, lework dagne wrote:
hello sir please donot take your help from me? and thanks for your valuable help? when i run this as you tell me..there iis a trace file but there is no any packet sent and received in olsr...at time 0 always what the problem?
end to end delay.awk also canot find the e2e delay ..because it say division by 0


On Sun, Nov 17, 2019 at 6:19 PM knudfl <knu...@ofir.dk> wrote:
Hi.

»» awk: delay.awk «« :                   Missing information
Plenty of files with the name  delay.awk :  Please attach the file, delay.awk
** You forgot to confirm that you tried out all 25 possible files.awk, files.pl .
And that you also tried using a version of vanet.tcl with a line   $ns use-newtrace
Please attach vanet.tcl and the connected traffic / movement files.
....... Unless it's about one of my examples in Vanet-examples-10.19.tar.xz
... with no modifications. Then please specify.


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-u...@googlegroups.com.
qos.awk

lework dagne

unread,
Nov 26, 2019, 6:28:54 AM11/26/19
to ns-u...@googlegroups.com
dear knudf thanks alot i have no idea to give than for your cooperation...god bless you. and ns235-olsr-64 4-olsr-wca.tcl 50.how you run  like this i am running like'ns 4-olsr-wca.tcl 50.

To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/3ebabe8b-e3db-4b0b-b984-55ce2542a6ff%40googlegroups.com.

lework dagne

unread,
Nov 26, 2019, 6:33:27 AM11/26/19
to ns-u...@googlegroups.com
for what reason makes you to run by starting/typing ns235-olsr-64 ????rather than ns?and can i use bandwidth,mobility/jitter from hello messages and delay instead of distance,mobility and power?

lework dagne

unread,
Nov 26, 2019, 6:35:20 AM11/26/19
to ns-u...@googlegroups.com
what is the difference between End-to-End-Delay##.pl
Endtoenddelay-Xgr.awk ,..those two files?how we use to run owca.tr and what we got.?excuse me i didnot have knowledge about these area..i face many problems and makes you busy,,.because i am stressed. 

knudfl

unread,
Nov 26, 2019, 7:01:40 AM11/26/19
to Network Simulator 2 (NS2)
»» for what reason makes you to run by starting/typing ns235-olsr-64 «« :
Imagine you have several ns2 installs. 32 and 64bits executable.
They cannot all have an "ns command".
..... I have ~300 different patched ns2. All the executable ns-name are in /usr/local/bin/.
See attachments, usr.local.bin-29Sep19.txt, ns2-INFO.txt

»»can i use bandwidth,mobility/jitter from hello messages and delay instead of distance,mobility and power«« :  Where and why ? Please make your own investigations, Google is your friend.
... And please be aware that official ns2 support ended many years ago.
The ns2 developers are all busy with ns3, and will answer ns3 questions only.
And I only have a limited knowledge of ns2.


ns2 install-able packages with  /usr/local/bin/[ns-name] :
usr.local.bin-29Sep19.txt
ns2-INFO.txt

knudfl

unread,
Nov 26, 2019, 7:05:58 AM11/26/19
to Network Simulator 2 (NS2)
Commands for analyzing ns2 scripts .... examples :
$ awk Endtoenddelay-Xgr.awk out.tr
$ perl
End-to-End-Delay##.pl out.tr

ns2 :  A week to learn how to build ns2.  And three months (minimum) to learn how to use ns2.

lework dagne

unread,
Nov 26, 2019, 9:32:32 AM11/26/19
to ns-u...@googlegroups.com
ok thanks alot dear kundlf?thank very very much .

To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-users/c57e8591-c60a-4e01-9b00-8b5cf385e25e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages