[ns] sumo and move installation
Hey can somebody help me install sumo for vanet in ubuntu 10.10 (I'm using ns2 on this ) the method indicated at the website is too complicated ,
[ns] active time out route
could anyone please explain me the code part of aodv ACTIVE_ROUTE_TIMEOUT * aodv.cc: // Set expiry time to CURRENT_TIME + ACTIVE_ROUTE_TIMEOUT aodv.cc: rt0-rt_expire = CURRENT_TIME + ACTIVE_ROUTE_TIMEOUT; aodv.cc: rt-rt_expire = CURRENT_TIME + ACTIVE_ROUTE_TIMEOUT; aodv.h:#define ACTIVE_ROUTE_TIMEOUT10 // 50 seconds foobar/ns-2.27/aodv$ ?
[ns] error in awk data extraction
Hi :I'm using the old trace format in ns2 ,I have an awkscript that is calculating parameters for routing ,I am able to calculate all the dropped,send and received packets ,but when I calculate pdf,and normalized routing load I'm getting the error : awk: run time error: improper conversion(number 1) in printf( 4. Normalised routing load (Packets %) = %.3f % ) FILENAME=simple1.tr FNR=23418 NR=23418 can anybody tell me what's the problem ?Please reply asap .
[ns] trace2stats v0.5b awk support help understand
Hello all I wanted to know if anyone has used trace2stats v0.5b awk scripts for wireless formats, and if you can explain me the jitter file in it. I mean we have 4 different values of jitter, and the calculations in the script dont explain me fully which jitter you would look for finding out whats the jitter for that particular communication. Can someone please help me for this? Also explain me what is this instant throughput there?we have flow id,what is it ?we have source node and dest node,if I put source node=2 and dest node =3 and tic=3 secs I get the results of throughput after 3 seconds to how long ?I mean can somebody please explain me the results ?
[ns] control overhead in sn2 for aodv
How can I measure control overhead in ns2 for routing protocol comparison?I want to compare aodv and dsr in terms of which protocol generates less overhead .How can I do that?Should the overhead include AGT as well as RTR ?and what about mac layer packets ?can someone describe that for me?and is there a difference between normalized routing load and control overhead ?
[ns] awk script from mailing list
Hey i found the awk script from mailing list,wondering if this would function,but it doesn't can anyone tell me why ? from mailing list : Plz see the following awk scripts that calcualate the following Performance Metrics Used Routing Overhead Normalize Routing Load Packet Delivery Fraction Average End to End delay Jitter Drop Packets Drop Bytes Throughput These scripts work with new trace format and DSR protocol. Make changes for other protocols. As an example, if you want to calculate throughput, awk -f throughput.awk output.tr # ==throughput.awk BEGIN { recvdSize = 0 startTime = 1e6 stopTime = 0 } { # Trace line format: normal if ($2 != -t) { event = $1 time = $2 if (event == + || event == -) node_id = $3 if (event == r || event == d) node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = AGT } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store start time if (level == AGT (event == + || event == s) pkt_size = 512) { if (time startTime) { startTime = time } } # Update total received packets' size and store packets arrival time if (level == AGT event == r pkt_size = 512) { if (time stopTime) { stopTime = time } # Rip off the header hdr_size = pkt_size % 512 pkt_size -= hdr_size # Store received packet's size recvdSize += pkt_size } } END { printf(Average Throughput[kbps] = %.2f\t\t StartTime=%.2f\tStopTime=%.2f\n,(recvdSize/(stopTime-startTime))*(8/1000),startTime,stopTime) } # = parameters.awk 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; } #= 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 = routing load but it differ from routing overhead 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); printf(Packet Loss [%]= %.2f \n, (droppedPackets/(highest_packet_id+1))*100); } # == jitter.awk BEGIN { num_recv=0 } { # Trace line format: normal if ($2 != -t) { event = $1 time = $2 if (event == + || event == -) node_id = $3 if (event == r || event == d) node_id = $4 flow_id = $8 pkt_id = $12 pkt_size = $6 flow_t = $5 level = AGT } # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 } # Store packets send time if (level == AGT sendTime[pkt_id] == 0 (event == + || event == s) pkt_size = 512) { sendTime[pkt_id] = time } # Store packets arrival time if (level == AGT event == r pkt_size = 512) { recvTime[pkt_id] = time num_recv++ } } END { # Compute average jitter jitter1 = jitter2 = tmp_recv = 0 prev_time = delay = prev_delay = processed = 0 prev_delay = -1 for (i=0; processed if(recvTime[i] != 0) { tmp_recv++ if(prev_time != 0) { delay = recvTime[i] - prev_time e2eDelay = recvTime[i] - sendTime[i] if(delay 0) delay = 0 if(prev_delay != -1) { jitter1 += abs(e2eDelay - prev_e2eDelay) jitter2 += abs(delay-prev_delay) } prev_delay = delay prev_e2eDelay = e2eDelay } prev_time = recvTime[i] }
[ns] trace2stats for awk
http://perso.citi.insa-lyon.fr/mfiore/research.html the website has A set of AWK scripts to get node-to-node statistics from the tracefiles generated by the ns-2 network simulat ,the awk script for instant throughput,instant jitter and avgstats but when I run any of them i don't get the results in any case just blank lines ,I'm using the new trace format as stated in readme file . this is from instant throughput script in awk # Trace line format: new if ($2 == -t) { event = $1 time = $3 node_id = $5 flow_id = $39 pkt_id = $41 pkt_size = $37 flow_t = $45 level = $19 I have a question is this the correct field setting values because I think $5!= node id if it is ,then why is it note working please reply .
[ns] INSPECT installation in ns2.34
Hey how can I install visualizing Wireless simulations on ns2 is iNSpect in ns2 2.34 ?Is it better than nam visualizer ?and why do I need that ?
[ns] understanding aodv flow
Hey I need to understand the aodv algorithm implemented in ns2,but my programming skills aren't that good in c++.how can I understand the flow of aodv.cc and other ffiles for aodv ,Should I use IDE for c++ to understand that ?How do I do that ?I've gone through the code many times but can't understand ,finds it too difficult .
[ns] aodv source code understanding
Hey I wanna learn aodv c++ code implemented in ns2.34 step by step but I have poor c++ skills .Can anybody tell me how do I do that ?I have to use eclipse and start debugging and learn the flow of code ,somebody told me that but I have no idea how do I do that ?
[ns] simulating more nodes in wireless
Hey I found a link which is quite old and not maintained anymore telling few thing about simulating 500 nodes http://www.cs.binghamton.edu/~kliu/research/ns2code/index.html#EclipseDoes this method really work ?I couldn't understand the part of the author's method of doing it .
[ns] RREP.RREQ packet
Hi I need the syntax of grep command or simple and easy enough script to find out the RREP,RREQ.RRER packet in routing protocol for all aodv,dsr ,dsdv etc
[ns] shell script for olsr
Hey I couldn't run http://www.inf.ufrgs.br/~wlccordeiro/resources/olsr/README.html shell script provided here the scripts run.sh and result.sh are actually a batch for processing the wtrace.tr file generated during the simulation execution. run.sh runs the simulation 10 times, using 10 different seeds for the random number generator, and result.sh aggregates the information about throughput, delay, jitter, and packet loss from all the 10 simulations, and outputs a .txt that contains data to plot graphics for each of these aspects evaluated. but these script won't run why ?
[ns] two routing protocols implemented on all nodes
hey is it possible to implement two routing protocols for adhoc network like all the nodes in the network have olsr and aodv routing protocol enabled and then they decide which one to use.
[ns] aodv code understanding
Hey I wanna change aodv protocol for different data rate and a little protocol enhancement in the sense to use different routing metric like etx and wcett,and also to use different mobility pattern and models like rpgm ,any body has any idea how do I do that?
[ns] um olsr metric implementation
Hey anybody has any idea about the implementation of different routing metric of umolsr ?can I implement the same metric for aodv routing protocol ,?and what are the default parameters of aodv routing protocol and where are these information in ns2 ? like packet format and routing table calculation?
[ns] Qos for aodv
How can Qos routing parameter like bandwidth optimization be achieved in ns2 for aodv ?and how and what to change in mac layer of aodv so that to increase packet sending ratio and minimizing latency ?
[ns] packet loss awk script
Here is an awk script for packet loss I found it on mailing list post but something is wrong with this script it always give 0 tx: 0 drop: 0 pkt_loss: 0 can anyone find out what's wrong with this script ?
[ns] awk script analysis
Hi I'm posting from http://www.4ellene.net/tt/1078 I couldn't run it ,has anybody tried this ?Is this the write method and script to calculate the parameters. 1. Routing Overhead Routing Overhead How to define Routing Overhead. How to define Routing Overhead. if All the routing packets no matter broadcasting or unicasting per -hop should be count once. if All the routing packets no matter broadcasting or unicasting per-hop should be count once. There are some options: There are some options: The total number of routing packets, counted once per hop The total number of routing packets, counted once per hop The total number of routing bytes, counted once per hop The total number of routing bytes, counted once per hop The # of routing packets, count with seqence number, this means end-to-end, not calculated by per-hop basis. The # of routing packets, count with seqence number, this means end-to-end, not calculated by per-hop basis. To calulate the number of DSR packets in method 1 To calulate the number of DSR packets in method 1 $ cat out.tr | grep DSR | wc -l $ Cat out.tr | grep DSR | wc-l The result is 3301 dsr packets for a 1000 seconds, 50 nodes 10 connections, 4pkt/sec, 512B size, 670X670 area, mobility speed is at most 20m/s and the average pause time is 600 seconds. The result is 3301 dsr packets for a 1000 seconds, 50 nodes 10 connections, 4pkt/sec, 512B size, 670X670 area, mobility speed is at most 20m / s and the average pause time is 600 seconds. However, this is not true. However, this is not true. becasue both send and recv are included. becasue both send and recv are included. $cat out.tr |grep ^s.*DSR | wc -l $ Cat out.tr | grep ^ s. * DSR | wc-l shows only 514 DSR packets are sending. shows only 514 DSR packets are sending. Finally, use this awk code to count how many bytes are used. Finally, use this awk code to count how many bytes are used. BEGIN {pktno = 0; byte = 0;} BEGIN {pktno = 0; byte = 0;} $1~/s/ /DSR/ { pktno ++ $ 1 ~ / s / / DSR / {pktno + + byte+=$8 } byte + = $ 8} END { print ( pktno, byte) } END {print (pktno, byte)} It shows 544 27016. It shows 544 27016. So only 544 packets and 27016 bytes sent. So only 544 packets and 27016 bytes sent. With this method, the packet is only count once. With this method, the packet is only count once. But this may be wrong in some sense, becasue any forwarding packets are not calculate as overhead. But this may be wrong in some sense, becasue any forwarding packets are not calculate as overhead. The new awkcode should be: The new awkcode should be: BEGIN {pktno = 0; byte = 0;} BEGIN {pktno = 0; byte = 0;} $1~/s/ /DSR/ { pktno ++ $ 1 ~ / s / / DSR / {pktno + + byte+=$8 } byte + = $ 8} $1~/f/ /DSR/ { pktno ++ $ 1 ~ / f / / DSR / {pktno + + byte+=$8 } byte + = $ 8} END { print ( pktno, byte) } END {print (pktno, byte)} This shows: 806 packets 43696 bytes. This shows: 806 packets 43696 bytes. Becsaue, the concern is the time spent to send routing signalings, this is more accurate way to measure routing overhead. Becsaue, the concern is the time spent to send routing signalings, this is more accurate way to measure routing overhead. However, all of the above methods are not fair to compare. However, all of the above methods are not fair to compare. The way to count MAC transmissions is the only correct way to do that. The way to count MAC transmissions is the only correct way to do that. How many MAC packets are sent for routing purpose and how many MAC packets are sent for traffic. 노드 설정에서 macTrace ON 여부확인 How many MAC packets are sent for routing purpose and how many MAC packets are sent for traffic. Node settings determine whether macTrace ON BEGIN {dsrpktno = 0; dsrbyte = 0; cbrpktno = 0; cbrbyte = 0; } BEGIN {dsrpktno = 0; dsrbyte = 0; cbrpktno = 0; cbrbyte = 0;} $1~/s/ /DSR/ /MAC/ { dsrpktno ++ ; $ 1 ~ / s / / DSR / / MAC / {dsrpktno + +; dsrbyte+=$8 ;} dsrbyte + = $ 8;} $1~/s/ /cbr/ /MAC/ { cbrpktno ++ ; $ 1 ~ / s / / cbr / / MAC / {cbrpktno + +; cbrbyte+=$8; } cbrbyte + = $ 8;} END { print ( dsrpktno, dsrbyte , cbrpktno, cbrbyte) } END {print (dsrpktno, dsrbyte, cbrpktno, cbrbyte)} 바로 값 나오도록 수정 Directly modify the value to come BEGIN {dsrpktno = 0; dsrbyte = 0; cbrpktno = 0; cbrbyte = 0; } BEGIN {dsrpktno = 0; dsrbyte = 0; cbrpktno = 0; cbrbyte = 0;} $1~/s/ /AODV/ /MAC/ { dsrpktno ++ ; $ 1 ~ / s / / AODV / / MAC / {dsrpktno + +; dsrbyte+=$8 ;} dsrbyte + = $ 8;} $1~/s/ /tcp/ /MAC/ { cbrpktno ++ ; $ 1 ~ / s / / tcp / / MAC / {cbrpktno + +; cbrbyte+=$8; } cbrbyte + = $ 8;} END { print ( dsrpktno, cbrpktno,dsrpktno/(dsrpktno+cbrpktno)) } END {print (dsrpktno, cbrpktno, dsrpktno / (dsrpktno + cbrpktno))} The result show 787 DSR MAC packets totaled as 83568 Bytes, but with data traffic as 4806 MAC packets of 2873836 Bytes. The result show 787 DSR MAC packets totaled as
[ns] througuput awk script
Hi I found on ns mailing list the awk script for throughput calculation but I'm unable to calculate throughput and plot in xgraph.it's from a very old post from 2002 and 2004 genstats.awk genstats.awk throughput.awk throughput.awk I cannot run it and probably need modification I guess.first tell me are these the correct one to use on old trace fomrat for wireless ?and modification for new trace format ?Please tell me the correct scripts .I really need it
[ns] qos in olsr
HIHi every body I would like to implement QOLSR (OLSR with QoS ) on NS2 I would like to know if some one have yet tried and if he can help me Thank very much
[ns] single awk script needed
Hey please send me single awk script to calculate all the parameters for wireless old trace format or new trace format for end to end delay,jitter ,throughput,instant throughput of any node,routing overhead,normalized routing load etc few awk scripts are provided here http://translate.google.com/translate?hl=enprev=/search%3Fq%3Drouting%2Boverhead%2B%2B%252Bns2%2B%252Bawk%2B%252Bxgraph%252Btcl%26start%3D10%26hl%3Den%26client%3Dfirefox-a%26sa%3DN%26rls%3Dorg.mozilla:en-US:official%26channel%3Ds%26biw%3D1366%26bih%3D549%26prmd%3Divnsrurl=translate.google.com.pksl=kou=http://www.4ellene.net/tt/1078 and there is trace2state file which gives node to node charateristic, I need these working ,I tried but couldn't make them work please help me all the awk scripts are there .and I want to plot in xgraph these parameters so I don't need single value to be printed on terminal
[ns] implementing different metric for aodv
Hey I wanna implement different metrics for aodv routing protocol in manet.like I wanna implement etx and wcett .etx is implemented in olsr but I wanna do that.how do I do that .Is there a code .? please tell me and also how do I calculate round trip time in ns2 and calculate it ?please quick reply,have to present in few days.
[ns] shadowing and rayleigh model
Hey I require code for different propagation model for ns2 2.34 like shadowing which is also present in ns2 2.34 but log normat shadowing isn't there and also rician and rayleigh model .and how would I compare this model in ns2 ?
[ns] changing the .cc files in aodv
hey if i want to change the C++ files in ns2 where should i write make and make clean etc.I mean how I recompile it so that changes take place and work .and also tell me how can i revert back the changes so that if anything goes wrong I can go back to previous state. for eg If I want to change something from aodv.cc file ,at which directory I should write make .?cd ns2.34/tcl etc etc /aodv / here ? or ns2 34/ here ?
[ns] generalize the shell script
hey can anybody generalize these shell script so that I may use it for my simulation for aodv .dsr .olsr etc. #!/bin/bash PROTO=$1 for i in $(seq 1 10); do printf jitter num\t\tdelay num\t\tthroughput num\t\tloss\n for j in $(seq 1 12); do JITTER=$(awk '{print $2 $3}' sim-$i-$PROTO/jitter$j.jit.avg) delay=$(awk '{print $2 $3}' sim-$i-$PROTO/delay$j.del.avg) throughput=$(awk '{print $2 $3}' sim-$i-$PROTO/throughput$j.vaz.avg) loss=$(grep fluxo: $j sim-$i-$PROTO/loss.blq | awk '{print $9}') printf -- $JITTER\t\t$delay\t\t$throughput\t\t$loss\n done done second is #!/bin/bash DEFAULT_SCRIPT_DIR=default function calculate_average() { PREFIX=$1 SUFFIX=$2 BEGIN=$3 END=$4 for i in $(seq $BEGIN $END); do FILE_NAME=$PREFIX$i$SUFFIX SUM=0 for i in $(awk '{print $2}' $FILE_NAME); do SUM=$(echo $SUM+\(`./conv $i`\) | bc); done COUNT=$(wc -l $FILE_NAME | awk '{print $1}') echo $FILE_NAME $SUM $COUNT $FILE_NAME.avg done } function simulate_protocol() { SEED=$1 PROTO=$2 NEWDIR=sim-$SEED-$PROTO echo Creating $NEWDIR... cp -a $PROTO $NEWDIR cd $NEWDIR sed s/set opt(seed) X/set opt(seed) $SEED/g script.tcl script_run.tcl time ns2 script_run.tcl debug time ns2 atsroot.tcl /dev/null time ns2 vzroot.tcl /dev/null TX=0; for i in $(awk '{print $6}' loss.blq); do TX=$((TX+i)); done; DROPPED=0; for i in $(awk '{print $4}' loss.blq); do DROPPED=$((DROPPED+i)); done; echo Packets transmitted $TX , dropped $DROPPED echo Calculating average for JITTER... calculate_average jitter .jit 1 12 echo Calculating average for delay... calculate_average delay .del 1 12 echo Calculating average for throughput... calculate_average throughput .vaz 1 12 cd .. } BEGIN=$1 END=$2 for i in $(seq $BEGIN $END); do SEED=$i # echo Simulating OLSR with seed $SEED... # simulate_protocol $SEED olsr # echo Simulating OLSR-ETX with seed $SEED... # simulate_protocol $SEED olsr-etx # echo Simulating OLSR-ML with seed $SEED... # simulate_protocol $SEED olsr-ml echo Simulating OLSR-LD with seed $SEED... simulate_protocol $SEED olsr-ld done
[ns] needs new trace formant awk script
Hi I need awk scripts for caculating packet dellivery ratio.throughput ,latency ,jitter etc for new trace format ?' I've looked at few through google but couldn't make them work.also tell me will i get same results( i think i should ) with new trace awk scripts as old ones.? and please tell me how make changes in C++ code say for example aodv.cc and make it work for one simulation and then revert it back ?
[ns] adov parameter changing
Hey I wanna imprive aodv performance in ns2 ,how do I do that?what algorithm should I have to study?where can the paramter change occur?what files need to be modified ?and what about adding a new routing protocol in ns2
[ns] adding new routing protocol
Hey I wanna impement new routing protocol ,actually enhancing the aodv,i wanna know how ? don't refer me this article ,imtl.skku.ac.kr/.../Implementing%20a%20New%20Manet%20Unicast%20Routing%20Protoc... I have already had this,I wanna know some very useful links or atleast what files have to be modified,and also the patching issues of new routing protocol with ns2
[ns] randomness in simulation
Hey could anyone tell me how to introduce randomness in my simulation ,seed value changing , if i use seed different for every run ,i get the different results right ? then i take average for close approximation ,but what about plotting graph ? and is seed changed with ./sedest utility or from another command ? i read on mailing list set nextseed 0.0 proc randomNumber { min max } { global nextseed global defaultRNG $defaultRNG seed $nextseed set nRNG [new RNG] $nRNG next-substream set num_ [new RandomVariable/Uniform] $num_ set min_ $min $num_ set max_ $max $num_ use-rng $nRNG set nextseed [expr round([$num_ value])] but i don't understand that ?quick reply is needed, return $nextseed
[ns] um-olsr patching error
Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. this is the error after installing masimum um-olsr in ns2 34 in ubuntu 11.04 what to do ?
[ns] xgraph error when plotting
Hey I ran a script ,and xgraph ran and plotted the desired graph but I got this error ,anyone faimiliar with XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :1.0 after 202 requests (193 known processed) with 0 events remaining. XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :1.0 after 298 requests (206 known processed) with 0 events remaining. XIO: fatal IO error 11 (Resource temporarily unavailable) on X server :1.0 after 300 requests (207 known processed) with 0 events remaining. ? I had issues with xgraph in ubuntu 10.10 I installed it with synaptic manager ,Is there any environment variable problem,I need to take care of? i installed ns2 2.34 earliear ,got the error of xgraph ,and then did the above thing.
[ns] cbrgen.tcl nothing is generated
umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 40 -seed 0 -mc 30 -rate 4 /home/umair/cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 40 -seed 0 -mc 30 -rate 4 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 20 -seed 0 -mc 16 -rate 4 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 20 -seed 0 -mc 16 -rate 4 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 20 -seed 0 -mc 16 -rate 4 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 20 -seed 1 -mc 16 -rate 4 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 20 -seed 1 -mc 16 -rate 16 cbrtest.tcl umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34/indep-utils/cmu-scen-gen$ ns cbrgen.tcl -type cbr -nn 50 -seed 1 -mc 24 -rate 20 tst.tcl in all the case nothing is genearated inside the files ,only says invalid sending rate or blank any help?
[ns] ns2 802.11 standards for manet
can anybody tell what standard does the following code show ? and what are the default parameters ? Mac/802_11 set RTSThreshold_ 3000 ;# bytes Mac/802_11 set ShortRetryLimit_ 7 ;# retransmittions Mac/802_11 set LongRetryLimit_ 4 ;# retransmissions Mac/802_11 set PreambleLength_ 144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1Mb ;# 1Mbps Mac/802_11 set dataRate_ 1Mb Mac/802_11 set basicRate_ 1Mb Mac/802_11 set CWMin_ 31 Mac/802_11 set CWMax_ 1023 Mac/802_11 set SlotTime_ 0.20 ;# 20us Mac/802_11 set SIFS_ 0.10 ;# 10us
[ns] ns2 802.11 standards for manet
can anybody tell what standard does the following code show ? and what are the default parameters ? Mac/802_11 set RTSThreshold_ 3000 ;# bytes Mac/802_11 set ShortRetryLimit_ 7 ;# retransmittions Mac/802_11 set LongRetryLimit_ 4 ;# retransmissions Mac/802_11 set PreambleLength_ 144 ;# 144 bit Mac/802_11 set PLCPHeaderLength_ 48 ;# 48 bits Mac/802_11 set PLCPDataRate_ 1Mb ;# 1Mbps Mac/802_11 set dataRate_ 1Mb Mac/802_11 set basicRate_ 1Mb Mac/802_11 set CWMin_ 31 Mac/802_11 set CWMax_ 1023 Mac/802_11 set SlotTime_ 0.20 ;# 20us Mac/802_11 set SIFS_ 0.10 ;# 10us
[ns] um-olsr in ns2 2.34
Hi i installed um-olsr in ns2 2.34 and patched it successfully but when i write make at terminal see what happens . umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34$ tar zxvf um-olsr-0.8.8.tgz um-olsr-0.8.8/ um-olsr-0.8.8/OLSR_state.h um-olsr-0.8.8/um-olsr_ns-2.29_v0.8.8.patch um-olsr-0.8.8/OLSR_printer.cc um-olsr-0.8.8/LICENSE um-olsr-0.8.8/OLSR_state.cc um-olsr-0.8.8/OLSR.h um-olsr-0.8.8/README um-olsr-0.8.8/CHANGELOG um-olsr-0.8.8/OLSR_rtable.h um-olsr-0.8.8/OLSR.cc um-olsr-0.8.8/OLSR_printer.h um-olsr-0.8.8/OLSR_rtable.cc um-olsr-0.8.8/OLSR_repositories.h um-olsr-0.8.8/OLSR_pkt.h umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34$ mv um-olsr-0.8.8 olsr umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34$ patch -p1 olsr/um-olsr-2.34_v0.8.8.patch patching file Makefile.in patching file common/packet.h patching file queue/priqueue.cc patching file tcl/lib/ns-agent.tcl patching file tcl/lib/ns-default.tcl patching file tcl/lib/ns-lib.tcl patching file tcl/lib/ns-packet.tcl patching file trace/cmu-trace.cc patching file trace/cmu-trace.h umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34$ make Makefile.in is newer than Makefile. You need to re-run configure. false make: *** [Makefile] Error 1 umair@umair-VirtualBox:~/ns-allinone-2.34/ns-2.34$
[ns] olsr for 30 nodes takes a lot of time
Hey I wanna run olsr simulation ,I've successfully patched olsr in ns2 2.34 ,from masimum site.tell me can I use the same tcl script as that of aodv for instance,and It takes a lot of time for olsr simulation ,how can i simulate it quickly
[ns] routing protocol for wireless mesh network
Hey can anybody guide me in developing routing protocol for wireless mesh network,any article book or anything useful .
[ns] routing algorithm for wireless mesh network
I asked earlier how can i develop routing protocol for wireless mesh network ,people recommended me to http://fikirankubuntu.blogspot.com/2010/03/adding-new-routing-protocol-in-ns2.html but I ask you this is developing new routing protocol in ns2 ,so to develop that I must have my own routing algorithm ,right? How do I do that ,make my own routing algorithm ,i.e. clearify me that the protocol developed in ns2 have their own algos,how do I make my own,What should i study for that?
[ns] 802.11s mesh network
Hey could anyone tell me if it's possible to simulate wireless mesh network in ns2, Is the wired cum wireless scenario same as wireless mesh network.
[ns] routing protocol comparison
Hi i don't know why the community people aren't replying with useful info.I just am very disappointed.I wanna simulate routing protocol for manet simulate research paper (some ) and calculate parameter like those calculated and plotted in the papers using xgraph ,gnuplot or whatever but don't know,anything no one is helping very well ,I just need some scripts tcl and awk and be able to plot the results also wanna know how to be able to simulate any research paper for manet like performance comparison of manet routing protocol.
[ns] extracting trace file information
Hiey can anyone tell me what's the best way to extract trace file information? awk or perl ? and how can i extract information for manet routing protocol like pdf,average end to end delay ,latency ,throughput via both perl and awk scripts.Do they produce the same results ,of course they shoud ,but what is better in anyway ,just let me know .
[ns] xgraph again no response
Hi i am working in ns2 for performance comparison of manet routing protocol like aodv and dsr ,I get the result in nam ,but don't know how to plot routing overhead ,pdf,end to end delay etc using xgraph ,please guide me
[ns] 802.11 standards for latency and pdf
hello guys..i need some help here. does anyone has references about standard QoS value such as latency,delay,packet loss for voice in IEEE 802.11? i would like to compare my simulation results with the real. thanks before
[ns] comparing simulation of aodv and dsr
Hey how can I automate my simulation, can anyone tell me whether it is right that run the simulation for aodv like 15 nodes and same tcl script for dsr and the dsdv ,Is this the right way to compare simulation ? or would I have to write a comparison tcl program,? How close my simulation results can be to rght ? how can i calculate routing overhead,average end to end delay,pdf,etc ?perl or awk script with step by step guide are required.thanks
[ns] error in ns2
Hi when i'm running simulation in ns2 I'm getting the following error ,can anyone help me Missing required flag -y in: W -t 100 Parsing error in event.
[ns] setdest utility can't use
Hey I can't use setdest THis is what happening umair@umair-VirtualBox:~/ns2/ns-2.34/indep-utils$ cd cmu-scen-gen/ umair@umair-VirtualBox:~/ns2/ns-2.34/indep-utils/cmu-scen-gen$ cd setdest umair@umair-VirtualBox:~/ns2/ns-2.34/indep-utils/cmu-scen-gen/setdest$ ./setdestbash: ./setdest: No such file or directory umair@umair-VirtualBox:~/ns2/ns-2.34/indep-utils/cmu-scen-gen/setdest$ can anybody help me ?asap
[ns] Olsr patch not working
Hi ,I am using ns2 2.34 on ubuntu 11.04 in virtualbox, and I can't patch olsr http://masimum.dif.um.es/?Software:UM-OLSR:Installation i 've tried details given in this link yet i can't do that.it gives me error when i run this patch -p1 olsr/um-olsr_ns-2.29_v0.8.8.patch gives no directory or command or something like that,
[ns] olsr patching issue
i get the following error when i tried the olsr patching from masimum Installation of otcl seems incomplete or can't be found automatically. Please correct the problem by telling configure where otcl is using the argument --with-otcl=/path/to/package (perhaps after installing it), or the package is not required, disable it with --with-otcl=no. after i configure it what should i do ?
[ns] Xgraph plotting packet delivery ratio and throughput
can anyone please tell me how to plot packet delivery ratio and throughput via xgraph ,Please provide detailed description ,I've posted many times but not satisfied with the answers,i have to plot the graph for aodv and dsr for 30 nodes and 45 nodes ,tcl and awk scripts are required.
[ns] invalid command lltype error in ns2
Hi while i try to run a tcl script for a wireless scenario using ns 2.34 i get the following error message invalid command name -llType while executing -llType $val(ll) \ can anyone help please
[ns] INvalid command errror
when I run tcl for wireless scenario i get the error invalid command name -phyType while executing -phyType $val(netif) \ THis is not always the case ,this error occurs sometimes ,however ,but i use the same tcl basic script so there is no point of this error ,Can anyone tell me satisfied answer.
[ns] caculation of routing parameters like routing overhead
Hi I need AWK script to measure routing overhead,normalized routing overhead,end to end delay,throughput etc for routing protocols ,Also tell me how to use these scripts and can there be any other method to do this all .thanks
[ns] trace file analysis
Dear all, I've read some research papers in which they compared performances of different routing using some normal performance metrics, such as: Packet delivery fraction routing control overhead Average end-to-end delay Average number of hops .. How can we have these things using Ns2 simulation ? I can not see it from trace file after simulation. I really appreciate your help! Regards,
[ns] mobile and static nodes in aodv and dsr comparison
Hi : I wanna compare aodv and dsr for 40 nodes mobile ,30 nodes statics and 4 gateways . How do I do that ?
[ns] DSR AND AODV XGRAPH AND TRACEGRAPH
HI I wanna produce comparison graph for aodv and dsr using xgraph.How do I do that ?I don't know anything about using xgraph.and what is the difference between tracegraph and xgraph?How can I compare for 40 nodes of AODV AND DSR?WIll it be a single tcl script containing both protocols and xgraph or I have to run separate simulation.Please detailed help will be really appreciated as I am new to ns2
[ns] AODV and DSR
If I run some tcl script regarding AODV or DSR and get the result How can I be so sure that simulation performed has yielded the correct results i.e. is there any standard simulation ?like under certain parameters this protocol should perform like this.etc.
[ns] Step by step xgraph
Can someone please tell me step by step what shoud I do in order to simulate and compare AODV,DSR and OLSR in ns2 2.34?How should analysis be done?How to calculate packet delivery ratio,latency and throughput and create simulation graph?
[ns] How can I run examples scripts provided by ns2 2.34?
HI : I still cannot run any wireless simulation ,and how to analyse simulation ?I downloaded a simple script from the internet ran and got the errors like : ouldn't read file ../lib/ns-bsnode.tcl: no such file or directory while executing source.orig ../lib/ns-bsnode.tcl (uplevel body line 1) invoked from within uplevel source.orig [list $fileName] invoked from within if [$instance_ is_http_url $fileName] { set buffer [$instance_ read_url $fileName] uplevel eval $buffer } else { uplevel source.orig [list $fileName] ... (procedure source line 8) invoked from within source ../lib/ns-bsnode.tcl (file umairwireless.tcl line 19 what should I do ?
[ns] AODV and DSR tcl code and simulation comparison
Hi I could not simulate AODV and DSR successfully ,May be there are errors in tcl files.can someone please tell me the authentic tcl file links that really work? And please tell me how to analyse the simulation and calculate routing protocol parametersl like Packet Delivery Ratio and latency. Please reply asap