Re: [ns] Ns-users Digest, Vol 45, Issue 4
i have a problem the foloowing problem in NS2 (1) How to allocate buffer size (2) why is that +(Enqueue) and - (Dequeue) in trace files are sometime the same, when Enqueue means Arrival at the queue and Dequeue is departing , what is the reeason behind this? (3) How do i calculate Throughput and Jitter from the data in my trace file? (4) How do i calculate Loss rate from the information in my trace file. (5) how do i calcualte my sending time, because the trace file i got did not have sending time(s) what do i do? (6) can any one let me know how i can simply get the total (+), (-) , (r), in my trace file? thank you very much. [EMAIL PROTECTED] wrote: Send Ns-users mailing list submissions to ns-users@isi.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.isi.edu/mailman/listinfo/ns-users or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Ns-users digest..." Today's Topics: 1. announcing ns-2.32 release and allinone package (Tom Henderson) 2. How to add a new routing protocol to ns2 (Ehsan Bagherian) 3. Re: How to add a new routing protocol to ns2 (Francisco J. Ros) 4. a question about Nils-Erik Mattsson's DCCP module (WangYaogong) 5. Re: Ns-users Digest, Vol 45, Issue 3 (JOE) 6. Buffer in Olsr (Sayeed Ahmed) 7. Re: cbr packet loss & or packet count scripts in perl (Sayeed Ahmed) 8. printing the ackno (Sebastian Harko) 9. Passive Optical Network module (Renato Cassiolato) 10. Re: cbr packet loss & or packet count scripts in perl (Mohammad Haseeb Zafar) -- Message: 1 Date: Mon, 03 Sep 2007 22:34:12 -0700 From: Tom Henderson Subject: [ns] announcing ns-2.32 release and allinone package To: ns list , [EMAIL PROTECTED], ns-developers Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed This is to announce the posting of the ns-2.32 source code release and a corresponding ns-allinone-2.32 package. Downloads are available at the Sourceforge project pages: http://sourceforge.net/project/showfiles.php?group_id=149743 File checksums are located in the corresponding release notes on Sourceforge. The following have been added to ns-2 since ns-2.31: - enable Tk for ns-2 (Pedro Vale Estrela's patch) - split validation tests into "portable" and "non-portable" tests - SCTP enhancements and bug fixes (from University of Delaware PEL) - change validation compression format to gzip - updated Tcl/Tk (8.4.15) for the allinone package A more descriptive change log is available at: http://www.isi.edu/nsnam/ns/CHANGES.html If people encounter problems with these releases, please post suggestions to the ns-developers mailing list, or file a bug report: http://nsnam.isi.edu/nsnam/index.php/Contributing#Reporting_a_bug For troubleshooting or workaround tips, please consult (and contribute to) the following wiki page: http://nsnam.isi.edu/nsnam/index.php/Troubleshooting - Tom -- Message: 2 Date: Tue, 4 Sep 2007 00:17:04 -0700 (PDT) From: Ehsan Bagherian Subject: [ns] How to add a new routing protocol to ns2 To: NS Users Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=iso-8859-1 Hi, I am looking for some help in wireless ad-hoc routing in NS2 (version 2.31). I am pretty new with NS-2 and going through the documentation. I have a new routing protocol and I want to simulate it in NS2 but I have many problems with it. I saw that the others also had same problems but the document in http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf help them but It does not work. Can you help me about this? - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. -- Message: 3 Date: Tue, 4 Sep 2007 09:57:34 +0200 From: "Francisco J. Ros" Subject: Re: [ns] How to add a new routing protocol to ns2 To: ns-users@ISI.EDU Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="iso-8859-1" Hi, On Tuesday 04 September 2007 09:17, Ehsan Bagherian wrote: > Hi, > I am looking for some help in wireless ad-hoc routing in NS2 (version > 2.31). I am pretty new with NS-2 and going through the documentation. > > I have a new routing protocol and I want to simulate it in NS2 but I have > many problems with it. > > I saw that the others also had same problems but the document in > http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf > help them but It does not work. > The link is available again, but please update your bookmarks to http://masimum.inf.um.es/?Documents The old URL will be removed in the near future. Regards, fran > Can you help me about this? > > > - > Be
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
ops, the link was splitted, here it goes again: http://fly.ath.cx/mobidyn/software On Sep 5, 2007, at 1:12 AM, Julian Monteiro wrote: > > Hello Sayeed, > > I've another awk NS2 trace file analyzer here: http://fly.ath.cx/ > mobidyn > (download the genstats11.awk) > > Best regards, > Julian > > On Sep 4, 2007, at 12:56 PM, Sayeed Ahmed wrote: > >> >> Hi, >> >>> Hi there I've got a script to analyse packets awk file>>> >> >> Can you please tell from where you get the awk script example >> I will help me a lot. >> >> Thanking you, >> >> Sayeed. >> >> >> JEHD MAHDI <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> J Mahdi >> Newcastle Upon Tyne >> ** >> My favourite sites: >> www.al-islam.com >> www.islamspirit.com >> www.troid.org >> >> >> >> From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: cbr packet >> loss & or packet count scripts in perlDate: Sun, 2 Sep 2007 >> 17:36:47 + >> >> >> Hi there I've got a script to analyse packets awk file, but it >> doesn't work, but i know that perl scripts would work, any one >> could help with a similar one in perl...cheers >> >> >> J Mahdi >> Newcastle Upon Tyne >> ** >> >> >> Are you the Quizmaster? Play BrainBattle with a friend now! >> _ >> Discover the new Windows Vista >> http://search.msn.com/results.aspx?q=windows+vista&mkt=en- >> US&form=QBRE >> >> >> >> - >> Shape Yahoo! in your own image. Join our Network Research Panel >> today! >
[ns] For Throughput comparison of TCP Reno, Tahoe , SACK
Hello I m a novice NS user. If i want to see some throughput comparison of TCP Reno, Tahoe, SACK --- which steps i need to follow. If someone can help me providing some good URL for learning my queries i will be grateful. [EMAIL PROTECTED] wrote: Welcome to posting to the ns-users mailing list! We automatically send this message to every new person who sends mail to the list. You should only receive it once. My apologies if the program contacts you twice, perhaps because you have multiple e-mail addresses or send mail from multiple machines. If you are an experienced ns-user who simply has not posted since we started using this responder, our apologies for inconveniencing you with this message. This message is intended to help inform users and cut down on redundant posts, which benefits everyone. Please look at the attached list of ns Frequently Asked Questions. If it answers your question, great! You're done. If not, please RE-SEND your original message to [EMAIL PROTECTED] A copy of your original message is included below for reference. You will NOT have to do re-send your message every time you post, only the FIRST time you send from a new account. The goal is to quickly help new users find the FAQ (hopefully answering their question). Thanks, -the ns development team The Network Simulator ns-2: Frequently Asked Questions (This FAQ is also on the web at http://www.isi.edu/nsnam/ns/ns-faq.html.) * _Where do I get ns?_ >From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and the download page http://www.isi.edu/nsnam/ns/ns-tests.html. * _What platforms does ns run on and what kind of hardware do I need?_ Please see "where to start" on the building ns web page: http://www.isi.edu/nsnam/ns/ns-build.html#start. * _What should I do if I have trouble downloading/extracting ns?_ This question is answered in detail at http://www.isi.edu/nsnam/ns/ns-problems.html#downloading. * _What should I do if I encounter problems building ns?_ Check: 1. the README that comes in the distribution (very brief), 2. the "installation problems, bug fixes and help" web page http://www.isi.edu/nsnam/ns/ns-problems.html, 3. the archives of the ns-users mailing list http://www.isi.edu/nsnam/ns/ns-lists.html, 4. post a bug report (see below) http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. * _What do I do after I successfully build ns?_ + Put the path to your ns executable into your PATH environment + Put the path to your otcl into your LD_LIBRARY_PATH environment + Put the path to your tcl library into your TCL_LIBRARY environment * _Where can I find documentation for ns?_ All documentation is linked from the main ns web page http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial (originally from Marc Greis) and a reference manual (ns notes and documentation). * _Words, words, words... that documentation is nice, but where are some sample scripts I can start from?_ Many sample scripts can be found in the ns distribution in ~ns-2/tcl/ex and ~ns-2/tcl/test. * _What protocols does ns support?_ A lot! Almost all variants of TCP, several forms of multicast, wired networking, several ad hoc routing protocols and propagation models (but not cellular phones), data diffusion, satellite, and other stuff. See the documentation (described above) for details, or download ns and look. * _How do I know that ns correctly implements these protocols?_ Ns has validation tests that cover many protocols, see http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately users are responsible for verifying that ns is accurate for their purposes---since we cannot foresee all the ways ns may be used, we cannot test all cases with all inputs. * _Are there any contributed/additional protocols not in the main distribution?_ Yes, please see the contributed code web page http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list archives can also be helpful (see below). * _How should I get started doing something (like implementing a new protocol or trying an experiment)?_ We recommend that you look through the tutorial (see documentation, above), then start with an example program that is most similar to yours (in the tutorial, or in tcl/ex or tcl/test in the distribution), and then start changing things. * _What should I do to compile ns to reflect my changes if I've modified some .cc or .h files?_ go to ns directory and run "make" or "make depend; make" * _How do I subscribe to the ns-users mailing list? How do I search old list archives? I can't take any more---how do I get off this list?_ To subscribe or unsubscribe, see http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at http://www.isi.edu/nsnam/ns/ns-lists.html. * _What if I have a question that's not answered here?_ If you've checked the installation problems and bug fixes web page (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no answer to your question, you may want to f
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
Hello Sayeed, I've another awk NS2 trace file analyzer here: http://fly.ath.cx/ mobidyn (download the genstats11.awk) Best regards, Julian On Sep 4, 2007, at 12:56 PM, Sayeed Ahmed wrote: > > Hi, > >> Hi there I've got a script to analyse packets awk file>>> > > Can you please tell from where you get the awk script example > I will help me a lot. > > Thanking you, > > Sayeed. > > > JEHD MAHDI <[EMAIL PROTECTED]> wrote: > > > > > > J Mahdi > Newcastle Upon Tyne > ** > My favourite sites: > www.al-islam.com > www.islamspirit.com > www.troid.org > > > > From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: cbr packet > loss & or packet count scripts in perlDate: Sun, 2 Sep 2007 > 17:36:47 + > > > Hi there I've got a script to analyse packets awk file, but it > doesn't work, but i know that perl scripts would work, any one > could help with a similar one in perl...cheers > > > J Mahdi > Newcastle Upon Tyne > ** > > > Are you the Quizmaster? Play BrainBattle with a friend now! > _ > Discover the new Windows Vista > http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE > > > > - > Shape Yahoo! in your own image. Join our Network Research Panel > today!
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
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>>> Hi, >Hi there I've got a script to analyse packets awk file>>> Can you please tell from where you get the awk script example I will help me a lot. Thanking you, Sayeed. JEHD MAHDI <[EMAIL PROTECTED]> wrote: J Mahdi Newcastle Upon Tyne ** My favourite sites: www.al-islam.com www.islamspirit.com www.troid.org
[ns] Passive Optical Network module
Hello! Anybody knows if there is a module in NS to simulate a PON (Passive Module Network)? Any ideas where the implementation can be found? Thanks! Renato Flickr agora em português. Você clica, todo mundo vê. Saiba mais.
[ns] printing the ackno
Hello, I want to print the "acknowledgment number" of every ACK in the terminal... So I went to tcp.cc ( "newack" method ) and I did this: cout << "ACK number is: " << tcph->ackno_ << endl; but all the ACK numbers it prints for a simple simulation are equal to zero... note that i was able to print the correct sequence numbers using the exact same approach. what am i doing wrong ? regards
Re: [ns] cbr packet loss & or packet count scripts in perl>>>>
Hi, >Hi there I've got a script to analyse packets awk file>>> Can you please tell from where you get the awk script example I will help me a lot. Thanking you, Sayeed. JEHD MAHDI <[EMAIL PROTECTED]> wrote: J Mahdi Newcastle Upon Tyne ** My favourite sites: www.al-islam.com www.islamspirit.com www.troid.org From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: cbr packet loss & or packet count scripts in perlDate: Sun, 2 Sep 2007 17:36:47 + Hi there I've got a script to analyse packets awk file, but it doesn't work, but i know that perl scripts would work, any one could help with a similar one in perl...cheers J Mahdi Newcastle Upon Tyne ** Are you the Quizmaster? Play BrainBattle with a friend now! _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE - Shape Yahoo! in your own image. Join our Network Research Panel today!
[ns] Buffer in Olsr
Hi, I am currently working on OLSR protocol. My intension is to find an OLSR implementation where packets are put in a temporary buffer before send to the destionation. Any body knows anything about it? Thanking you, Sayeed. - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
Re: [ns] Ns-users Digest, Vol 45, Issue 3
Hey guys, I am interested in the RSVP-TE implementation in NS-2(version 2.28),and I found the download of its patch is not available now,Could someone please tell me how to do it? or give me some resource Thanks in advance,Have a good day! -- Regards, JOE
[ns] a question about Nils-Erik Mattsson's DCCP module
I'm using Mattsson's DCCP module under ns-2.26. But when I simulate DCCP in large BDP networks, I sometimes get the following error and the program exits: DCCPAckVector::sendAckVector - Failed to add ack vector to option: err -1, size 256 I took a look at the source code and found that the error stems from the length of the options exceeding DCCP_OPT_MAX_LENGTH(=255 by default). So I set the macro to be 1023, hoping that would solve the problem. But when I run the simulation again after modifying the macro, I get some other errors: 21.610164, DCCP/TCPlike(_o216)::send_packetRecv() - No ack vector on acknowledgment! 21.610184, DCCP/TCPlike(_o216)::processOption() - ECN check failed! The only change I made to the source code is just setting the value of the macro bigger. I don't know what's wrong. Can anyone help me? _ 用 Live Search 搜尽天下资讯! http://www.live.com/?searchOnly=true
Re: [ns] How to add a new routing protocol to ns2
Hi, On Tuesday 04 September 2007 09:17, Ehsan Bagherian wrote: > Hi, > I am looking for some help in wireless ad-hoc routing in NS2 (version > 2.31). I am pretty new with NS-2 and going through the documentation. > > I have a new routing protocol and I want to simulate it in NS2 but I have > many problems with it. > > I saw that the others also had same problems but the document in > http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf > help them but It does not work. > The link is available again, but please update your bookmarks to http://masimum.inf.um.es/?Documents The old URL will be removed in the near future. Regards, fran > Can you help me about this? > > > - > Be a better Globetrotter. Get better travel answers from someone who knows. > Yahoo! Answers - Check it out. -- Francisco J. Ros, Ph.D. Student Dept. of Information and Communications Engineering University of Murcia, Murcia (Spain) http://masimum.inf.um.es/fjrm/
[ns] How to add a new routing protocol to ns2
Hi, I am looking for some help in wireless ad-hoc routing in NS2 (version 2.31). I am pretty new with NS-2 and going through the documentation. I have a new routing protocol and I want to simulate it in NS2 but I have many problems with it. I saw that the others also had same problems but the document in http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf help them but It does not work. Can you help me about this? - Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.