Re: [ns] Ns-users Digest, Vol 45, Issue 6
Hey all, When I tried to install NOAH in NS-2.28 following the instruction by Monarch webpage,I found there was no Such NOAH in the Agent list. Then I thought I might "make" the ns again to let it update. However, A new problem came out. I entered the NS directory,type "make" or "make depend" ,there was always a error: "makefile 153: *** command commence before first target. Stop" Anyone knows or encountered this before? And Is NOAH not applicable under NS-2.28? And could we install more than two versions of NS-2? (Like NS-2.28 and NS-2.26) Thanks in advance! Regards, Joe
Re: [ns] Ns-users Digest, Vol 45, Issue 5
Hey all, When I tried to install NOAH in NS-2.28 following the instruction by Monarch webpage,I found there was no Such NOAH in the Agent list. Then I thought I might "make" the ns again to let it update. However, A new problem came out. I entered the NS directory,type "make" or "make depend" ,there was always a error: "makefile 153: *** command commence before first target. Stop" Anyone knows or encountered this before? And Is NOAH not applicable under NS-2.28? And could we install more than two versions of NS-2? (Like NS-2.28 and NS-2.26) Thanks in advance! Regards, Joe
[ns] ns2.29 installing problem
Hello everyone I installed ns 2.31 without any problem on centos5. but I couldn't install ns allinone 2.29 on it. i changed the version of linux to FC6 but can't install it again and i receive the same error. i received this error: *"checking system version (for dynamic loading)... ./configure: line 7624: syntax error near unexpected token ')' ./configure: line 7624: ' OSF*)' tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your problem." and I received several solutions from ns-users: 1- "The problem lies in how bash 3.1.x and 4.x.x parse the configure file. This will simply pass through bash 3.0.x and lower versions. So in order to make things work changed the following lines tcl: file tcl8.x.x/unix/tcl.m4. tk: file tk8.x.x/unix/tcl.m4. otcl: file otcl-1.x/configure.in. to: system=MP-RAS-`awk ' { print $3 } '/etc/.relid` " 2- "modify file /home/nsuser/ns-allinone-2.29/nam-1.11/agent.h, on line 73,change the character "NULL" to "0". " 3- " I successfully installed ns-allinone-2.29.2 on FC5 but after slightly modifying the whole package. First, I updated the Tcl and Tk sources to the 8.4.13 (you can grab a copy from sf.net). Then you'll have to modify the configure files (Tcl, Tk, OTcl and TclCL) in this way: cp -v configure{,.orig} sed "s/relid'/relid/" configure.orig > configure " i tried above solutions but again i received the same error and now i don't now how to solve this. can anybody help me? regards, - Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
[ns] [NS] cbr problem in routing layer
I am using NS2 to simulate a reactive routing protocol. I want to send cbr traffic in a MANET. The design of the buffer is based on a map which key is dir ip and the second elment is a vector, where packets are stored. I copy the first packet in a buffer in order to send it before the source has found the route. As you can see, the next line launch the route discovery process: D 45.0 _3_ RTR NRTE 158 cbr 90 [0 0 0 0] --- [3:0 0:0 32 0] [0] 0 0 In the trace I can see that the packet is ready for sending: s 46.723228090 _3_ RTR --- 158 cbr 90 [0 0 0 0] --- [3:0 0:0 32 0] [0] 0 0 This code works correctly, but the problem is when I want to send the packet stored in my map. because it does not reach the MAC layer. And consecuently it is not sent. And the end of the trace I get the following line: D 105.0 _3_ IFQ END 158 cbr 90 [0 0 3 800] --- [3:0 0:0 32 0] [0] 0 0 Has anyone ever experienced this problem too? Thanks in advance Sara
[ns] Xgraph disfuctioning!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hi there , this is what i get when i added this line to my tcl code: #Call xgraph to display results exec xgraph manet.tr -geometry 800X400 & i get this error: /usr/local/ns2/ns-allinone-2.29/bin/xgraph: /usr/local/ns2/ns-allinone-2.29/bin/xgraph: cannot execute binary file cheers J Mahdi Newcastle Upon Tyne ** _ Celeb spotting – Play CelebMashup and win cool prizes https://www.celebmashup.com
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
just add following in your tcl script to generate new trace format # use new trace file format $ns_ use-newtrace -Original Message- From: uknown noname [mailto:[EMAIL PROTECTED] Sent: Thu 06/09/2007 1:15 PM To: uknown noname; Mohammad Haseeb Zafar; Sayeed Ahmed; JEHD MAHDI; ns2 mailing Subject: Re: [ns] cbr packet loss & or packet count scripts in perl Hi.. probably i have using a wrong out.tr file where currently im using /tcl/ex/wireless.tcl. i'm notice this will generated out.tr with old trace format. is there any out.tr with new trace format for dsr that i can used with this cript? many thanks.. uknown noname <[EMAIL PROTECTED]> wrote: hello... i try to implement this script but i've got an error (FILENAME=../out.tr FNR=24960) fatal: division by zero attempted looks like this line delay=sum/recvnum give an error when 'recvnum' is 0, where recvnum++ are not functioning. any idea? Mohammad Haseeb Zafar wrote: 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 ==
[ns] Support for running ad hoc routing protocols for nodes in a LAN
Hi Friends. I wonder if it is possible to configure nodes in a LAN to run ad hoc routing protocols e.g OLSR? This would be very interesting for usage in a wired cum wireless scenario where both nodes in the ad hoc network and nodes in the fixed network can run the same routing protocol. Besides I wonder if ns2 supports nodes with multiple interfaces? Hope someone can answer these questions. Thanks for your replies. Regards Vinh Pham
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
Hi.. probably i have using a wrong out.tr file where currently im using /tcl/ex/wireless.tcl. i'm notice this will generated out.tr with old trace format. is there any out.tr with new trace format for dsr that i can used with this cript? many thanks.. uknown noname <[EMAIL PROTECTED]> wrote: hello... i try to implement this script but i've got an error (FILENAME=../out.tr FNR=24960) fatal: division by zero attempted looks like this line delay=sum/recvnum give an error when 'recvnum' is 0, where recvnum++ are not functioning. any idea? Mohammad Haseeb Zafar wrote: 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 >= 51
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
hello... i try to implement this script but i've got an error (FILENAME=../out.tr FNR=24960) fatal: division by zero attempted looks like this line delay=sum/recvnum give an error when 'recvnum' is 0, where recvnum++ are not functioning. any idea? Mohammad Haseeb Zafar <[EMAIL PROTECTED]> wrote: 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) { de
Re: [ns] I need help in installing ns2
http://mailman.isi.edu/pipermail/ns-developers/2007-September/003342.html http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2 http://wpage.unina.it/marcello.caleffi/ns2-01.html On 9/6/07, Mohana Valli <[EMAIL PROTECTED]> wrote: > > Hai everybody, > > > I am new to ns2. I have to first learn to install ns-2.31 and then simulate > a sensor network to > implement a key management protocol. Can anybody help me by telling how to > install ns-2.31 on Fedora core. > Also I need some tips on how to simulate a sensor network > > Thank You all in advance > > Mohanavalli > -- Regards -Ye
Re: [ns] Marck Grei's Tutorial
Hi All, The figures are getting distorted if I print them as they are. Of course, I can create my own pdf, but I wanted to know if they are available. Thanks On Thu, 06 Sep 2007 Matthias Kuhnert wrote : >I don't think, there are any pdf's available - create them yourself, or print >simply the pages... > Original-Nachricht > > Datum: 6 Sep 2007 08:12:04 - > > Von: "Mukul Shukla" <[EMAIL PROTECTED]> > > An: ns-users@ISI.EDU > > Betreff: [ns] Marck Grei\'s Tutorial > > > > > > > Hi All, > > > > I am new to ns2 and I am going through the tutorials given on the website. > > Can anybody point me to these tutorials in pdf format so that I can take a > > print of it. > > > > Thanking you. > > > > Mukul Shukla > >-- >Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten >Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
[ns] I need help in installing ns2
Hai everybody, I am new to ns2. I have to first learn to install ns-2.31 and then simulate a sensor network to implement a key management protocol. Can anybody help me by telling how to install ns-2.31 on Fedora core. Also I need some tips on how to simulate a sensor network Thank You all in advance Mohanavalli
[ns] Marck Grei's Tutorial
Hi All, I am new to ns2 and I am going through the tutorials given on the website. Can anybody point me to these tutorials in pdf format so that I can take a print of it. Thanking you. Mukul Shukla