[ns] Flow monitor problem
Hello I am trying to implement 802.11s on 8 nodes by ns-3.10, cygwin Calculating detail such as end to end delay, lost packets.Using flow monitor for this. But program build successfully, but I am not getting a details of flow monitor. I am sending you a error which i get. ANILTRUPTI@private ~/ns-allinone-3.10/ns-3.10 $ ./waf --run scratch/mytest1 Waf: Entering directory `/home/ANILTRUPTI/ns-allinone-3.10/ns-3.10/build' Waf: Leaving directory `/home/ANILTRUPTI/ns-allinone-3.10/ns-3.10/build' 'build' finished successfully (2.246s) Time 0 Throughput 0Mbps Time 10 Throughput 5.89834Mbps Time 20 Throughput 5.76233Mbps Time 30 Throughput 5.83641Mbps Time 40 Throughput 5.75626Mbps Time 50 Throughput 5.66032Mbps Time 60 Throughput 6.05864Mbps Time 70 Throughput 5.54981Mbps Time 80 Throughput 5.59596Mbps Time 90 Throughput 5.63967Mbps Printing mesh point device #0 diagnostics to boo-report-0.xml Printing mesh point device #1 diagnostics to boo-report-1.xml Printing mesh point device #2 diagnostics to boo-report-2.xml Printing mesh point device #3 diagnostics to boo-report-3.xml Printing mesh point device #4 diagnostics to boo-report-4.xml Printing mesh point device #5 diagnostics to boo-report-5.xml Printing mesh point device #6 diagnostics to boo-report-6.xml Printing mesh point device #7 diagnostics to boo-report-7.xml Command ['/home/ANILTRUPTI/ns-allinone-3.10/ns-3.10/build/debug/scratch/mytest1.exe'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run program --command-template=gdb --args %s args). Pls help me to resolve this problem. It very urgent for my Thesis. I am providing my file also in this mail Thank you in advance. -- Regards Trupti Keluskar Mobile +39 3270251542(Italy) -- Regards Trupti Keluskar Mobile +39 3270251542(Italy)
[ns] FW: ns2.35 Lion OS exception
Dear All, please help with the following error as I fail to install ns2 I use mac os X 10.7 (lion) on a processor i7 I installed xcode with the command line tools to be able to install ns2 but i received the following exception during installation o libotcl otcl.omake: o: No such file or directorymake: [libotcl] Error 1 (ignored)rm -f libotclgcc -o otclsh -g -O2 -I. -I/Users/ahesham/ns-allinone-2.35/include -I/Users/ahesham/ns-allinone-2.35/include -I/Users/ahesham/ns-allinone-2.35/include -I/include otclAppInit.c \ -L. -lotcl -L/Users/ahesham/ns-allinone-2.35/lib -ltk8.5 -L/Users/ahesham/ns-allinone-2.35/lib -ltcl8.5 -L/usr/X11R6/lib -lXext -lX11 -lmUndefined symbols for architecture x86_64: _CFLocaleCopyCurrent, referenced from: _TclpSetVariables in libtcl8.5.a(tclUnixInit.o) _CFLocaleGetIdentifier, referenced from: _TclpSetVariables in libtcl8.5.a(tclUnixInit.o) _CFStringGetCString, referenced from: _TclpSetVariables in libtcl8.5.a(tclUnixInit.o) _CFRelease, referenced from: _TclpSetVariables in libtcl8.5.a(tclUnixInit.o) _Tcl_FinalizeNotifier in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFStringCreateWith! CString, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFBundleGetBundleWithIdentifier, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFBundleCopyBundleURL, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFURLCopyLastPathComponent, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFStringCompare, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFURLCreateCopyAppendingPathComponent, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFBundleCreate, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFBundleCopyResourceURL, referenced from: _Tcl_MacOSXOpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) ! _CFURLGetFileSystemRepresentation, referenced from: _Tcl_MacOSX OpenVersionedBundleResources in libtcl8.5.a(tclMacOSXBundle.o) _CFRunLoopGetCurrent, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopSourceCreate, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _kCFRunLoopCommonModes, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_ServiceModeHook in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopAddSource, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _TclMacOSXNotifierAddRunLoopMode in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopObserverCreate, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopAddObserver, referenced from: _Tcl_InitNotifier in libtcl8.5.a(tclMacOSXNotify.o) _TclMacOSXNotifierAddRunLoopMode in libtcl8.5.a(tclMacOSXNotify.o) _CFAbsoluteTimeGetCurrent, referenced from: _Tcl_SetTimer in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_Sleep in l! ibtcl8.5.a(tclMacOSXNotify.o) _Tcl_ServiceModeHook in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopTimerSetNextFireDate, referenced from: _Tcl_SetTimer in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_Sleep in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopTimerGetNextFireDate, referenced from: _Tcl_Sleep in libtcl8.5.a(tclMacOSXNotify.o) _kCFRunLoopDefaultMode, referenced from: _Tcl_Sleep in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_WaitForEvent in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopRunInMode, referenced from: _Tcl_Sleep in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_WaitForEvent in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopSourceSignal, referenced from: _NotifierThreadProc in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_AlertNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopWakeUp, referenced from: _NotifierThreadProc in libtcl8.5.a(tclMacOSXNotify.o) _Tcl_AlertNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopTimerCreate, ! referenced from: _Tcl_ServiceModeHook in libtcl8.5.a(tclMacOSXNot ify.o) _CFRunLoopAddTimer, referenced from: _Tcl_ServiceModeHook in libtcl8.5.a(tclMacOSXNotify.o) _TclMacOSXNotifierAddRunLoopMode in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopSourceInvalidate, referenced from: _Tcl_FinalizeNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopObserverInvalidate, referenced from: _Tcl_FinalizeNotifier in libtcl8.5.a(tclMacOSXNotify.o) _CFRunLoopTimerInvalidate, referenced from: _Tcl_FinalizeNotifier in libtcl8.5.a(tclMacOSXNotify.o) ___CFConstantStringClassReference, referenced from: CFString in libtcl8.5.a(tclMacOSXNotify.o) CFString in
[ns] how to use awk script
i m using awk script to calculate values of certain parameters but it gives me error: Fatal division by zero ,,can you help me regarding this. waiting for reply with regards robin BEGIN { sends=0; recvs=0; routing_packets=0.0; droppedBytes=0; droppedPackets=0; highest_packet_id =0; sum=0; recvnum=0; } { time = $3; packet_id = $41; # CALCULATE PACKET DELIVERY FRACTION if (( $1 == s) ( $35 == cbr ) ( $19==AGT )) { sends++; } if (( $1 == r) ( $35 == cbr ) ( $19==AGT )) { recvs++; } # CALCULATE DELAY if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == r) ( $35 == cbr ) ( $19==AGT )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } # CALCULATE TOTAL DSR OVERHEAD if (($1 == s || $1 == f) $19 == RTR $35 ==DSR) routing_packets++; # DROPPED DSR PACKETS if (( $1 == d ) ( $35 == cbr ) ( $3 0 )) { droppedBytes=droppedBytes+$37; droppedPackets=droppedPackets+1; } #find the number of packets in the simulation if (packet_id highest_packet_id) highest_packet_id = packet_id; } END { for ( i in end_time ) { start = start_time[i]; end = end_time[i]; packet_duration = end - start; if ( packet_duration 0 ) { sum += packet_duration; recvnum++; } } delay=sum/recvnum; NRL = routing_packets/recvs; #normalized routing load PDF = (recvs/sends)*100; #packet delivery ratio[fraction] printf(send = %.2f\n,sends); printf(recv = %.2f\n,recvs); printf(routingpkts = %.2f\n,routing_packets++); printf(PDF = %.2f\n,PDF); printf(NRL = %.2f\n,NRL); printf(Average e-e delay(ms)= %.2f\n,delay*1000); printf(No. of dropped data (packets) = %d\n,droppedPackets); printf(No. of dropped data (bytes) = %d\n,droppedBytes); }
[ns] dccp for manets
dear all i m working on dccp for manets... i m not able to create a topology by giving dccp instead of tcp.. i m using ns-2.35...please help me what should i do... my work is for my dissertation plz reply ,its urgent -- Regards Mintu Singh 07669037686
Re: [ns] how to use awk script
Hi Robin, Isn't that obvious? It's because your denominator is zero. You can't compute anything with zero denominator. The result would be infinity. Best Regards, Teerawat Issariyakul http://www.ns2ultimate.com/ http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417 http://twitter.com/T_Bear http://www.t-issariyakul.blogspot.com http://www.ece.ubc.ca/~teerawat On Apr 5, 2012, at 12:02 AM, robin turna wrote: i m using awk script to calculate values of certain parameters but it gives me error: Fatal division by zero ,,can you help me regarding this. waiting for reply with regards robin BEGIN { sends=0; recvs=0; routing_packets=0.0; droppedBytes=0; droppedPackets=0; highest_packet_id =0; sum=0; recvnum=0; } { time = $3; packet_id = $41; # CALCULATE PACKET DELIVERY FRACTION if (( $1 == s) ( $35 == cbr ) ( $19==AGT )) { sends++; } if (( $1 == r) ( $35 == cbr ) ( $19==AGT )) { recvs++; } # CALCULATE DELAY if ( start_time[packet_id] == 0 ) start_time[packet_id] = time; if (( $1 == r) ( $35 == cbr ) ( $19==AGT )) { end_time[packet_id] = time; } else { end_time[packet_id] = -1; } # CALCULATE TOTAL DSR OVERHEAD if (($1 == s || $1 == f) $19 == RTR $35 ==DSR) routing_packets++; # DROPPED DSR PACKETS if (( $1 == d ) ( $35 == cbr ) ( $3 0 )) { droppedBytes=droppedBytes+$37; droppedPackets=droppedPackets+1; } #find the number of packets in the simulation if (packet_id highest_packet_id) highest_packet_id = packet_id; } END { for ( i in end_time ) { start = start_time[i]; end = end_time[i]; packet_duration = end - start; if ( packet_duration 0 ) {sum += packet_duration; recvnum++; } } delay=sum/recvnum; NRL = routing_packets/recvs; #normalized routing load PDF = (recvs/sends)*100; #packet delivery ratio[fraction] printf(send = %.2f\n,sends); printf(recv = %.2f\n,recvs); printf(routingpkts = %.2f\n,routing_packets++); printf(PDF = %.2f\n,PDF); printf(NRL = %.2f\n,NRL); printf(Average e-e delay(ms)= %.2f\n,delay*1000); printf(No. of dropped data (packets) = %d\n,droppedPackets); printf(No. of dropped data (bytes) = %d\n,droppedBytes); }