Re: [ns] urgent: how to analysis the out.tr?
Hi John and everybody: Depending what you want: You should use a generic utilities like: grep, awk, join, ... To filter columns of the out.tr, you can use the 'column' program, that you can found in the ns-2 website. Maybe, you can use your own Perl programs, and finally, you can use 'tracegraph' for ns-2. best regards, /salva On Sun, 25 Mar 2007, john unkle wrote: > >
Re: [ns] calculating throughput using AWK
Hi, Below I have write my awk script to calculate throughput. The columns that you need are: column 7: TCP bytes sent column 8: interval then the throughput is column7/column8 And, this script also calculates: bytes drops, packets drops, bytes arrivals als packets arrivals. I'm sorry, but the names of variables are in Spanish. /salva #: echo "[$1:$2:$3] ...Obteniendo bytes/packets/flows sent/dropped TCP " cat $TMP/out.tr | perl column 3 0 2 1 | sort -g | awk ' BEGIN { max = 0 } { # i = fid # flujo[i,1] = packets_arrivals (+) # flujo[i,2] = packets_drops(d) # flujo[i,3] = packets_sent (-) # flujo[i,4] = bytes_arrivals # flujo[i,5] = bytes_drops # flujo[i,6] = bytes_sent # flujo[i,7] = instante inicio # flujo[i,8] = instante final i = $1; tiempo = $4; evento = $2; max = ((i > max) ? i : max); contabilizar = 0; if (evento == "+") { flujo[i,1]++; flujo[i,4] += $3; contabilizar = 1; } else if (evento == "d") { flujo[i,2]++; flujo[i,5] += $3; contabilizar = 1; } else if (evento == "-") { flujo[i,3]++; flujo[i,6] += $3; contabilizar = 1; } if (contabilizar == 1) { tiempo = $4; if (flujo[i,7] == 0) { flujo[i,7]= tiempo }; if (flujo[i,8] == 0) { flujo[i,8]= tiempo }; if ( tiempo < flujo[i,7]) { flujo[i,7] = tiempo}; if ( tiempo > flujo[i,8]) { flujo[i,8] = tiempo}; } } END { for (i=0; i<=max ; i++) { lapsus = flujo[i,8] - flujo[i,7]; if ( lapsus > 0 ) { printf("%d\t%d\t%d\t%d\t%d\t%d\t%d\t%f\n",i,flujo[i,1],flujo[i,2],flujo[i,3],flujo[i,4],flujo[i,5],flujo[i,6],lapsus) } } }' > $TMP/tcp_flows.dat #: #::: FIN #: On Mon, 26 Mar 2007, paul yoong wrote: > > Hi all, > > I want to calculate the throughput of a link using awk. Can anyone tell me > how to do this for a simple 2 node link. If anyone could direct me to any > example on the web that would be great. > > Thanks > > > > > > ___ > Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. > http://uk.docs.yahoo.com/nowyoucan.html >
Re: [ns] calculating throughput using AWK
Iqbal: I have modified script1 for you, and I have named 'script2' script2 is a linux script, so you must run it in the linux shell. I hope that you would need change only the TMP and GRAPHS variables to your system, and rename yor ns-2 trace file to 'out.tr' Then, execute with: $script2 On Wed, 28 Mar 2007, wacky wrote: could you please tell me how to execute this file, i mean exactly what command should i type in, i saved this file as "throughput.awk"... then i changed the cat out.tr ( from $TMP/out.tr | perl column 3 0 2 1 | sort -g | ) to nodes.tr i tried awk -f throughput.awk > outfile the I tried the command awk -f throughput.awk > outfile i get various errors after executing this. please help me... rgrds Iqbal #: echo "[$1:$2:$3] ...Obteniendo bytes/packets/flows sent/dropped TCP " cat $TMP/nodes.tr | perl column 3 0 2 1 | sort -g | awk ' BEGIN { max = 0 } { # i = fid # flujo[i,1] = packets_arrivals (+) # flujo[i,2] = packets_drops(d) # flujo[i,3] = packets_sent (-) # flujo[i,4] = bytes_arrivals # flujo[i,5] = bytes_drops # flujo[i,6] = bytes_sent # flujo[i,7] = instante inicio # flujo[i,8] = instante final i = $1; tiempo = $4; evento = $2; max = ((i > max) ? i : max); contabilizar = 0; if (evento == "+") { flujo[i,1]++; flujo[i,4] += $3; contabilizar = 1; } else if (evento == "d") { flujo[i,2]++; flujo[i,5] += $3; contabilizar = 1; } else if (evento == "-") { flujo[i,3]++; flujo[i,6] += $3; contabilizar = 1; } if (contabilizar == 1) { tiempo = $4; if (flujo[i,7] == 0) { flujo[i,7]= tiempo }; if (flujo[i,8] == 0) { flujo[i,8]= tiempo }; if ( tiempo < flujo[i,7]) { flujo[i,7] = tiempo}; if ( tiempo > flujo[i,8]) { flujo[i,8] = tiempo}; } } END { for (i=0; i<=max ; i++) { lapsus = flujo[i,8] - flujo[i,7]; if ( lapsus > 0 ) { printf("%d\t%d\t%d\t%d\t%d\t%d\t%d\t%f\n",i,flujo[i,1],flujo[i,2],flujo[i,3],flujo[i,4],flujo[i,5],flujo[i,6],lapsus) } } }' > $TMP/tcp_flows.dat #: #::: FIN #: #:: #!/bin/sh TMP=./temp GRAPHS=./graphs #: echo "[$1:$2:$3] ...Obteniendo bytes/packets/flows sent/dropped TCP " cat $TMP/out.tr | perl column 3 0 2 1 | sort -g | awk ' BEGIN { max = 0 } { # i = fid # flujo[i,1] = packets_arrivals (+) # flujo[i,2] = packets_drops(d) # flujo[i,3] = packets_sent (-) # flujo[i,4] = bytes_arrivals # flujo[i,5] = bytes_drops # flujo[i,6] = bytes_sent # flujo[i,7] = instante inicio # flujo[i,8] = instante final i = $1; tiempo = $4; evento = $2; max = ((i > max) ? i : max); contabilizar = 0; if (evento == "+") { flujo[i,1]++; flujo[i,4] += $3; contabilizar = 1; } else if (evento == "d") { flujo[i,2]++; flujo[i,5] += $3; contabilizar = 1; } else if (evento == "-") { flujo[i,3]++; flujo[i,6] += $3; contabilizar = 1; } if (contabilizar == 1) { tiempo = $4; if (flujo[i,7] == 0) { flujo[i,7]= tiempo }; if (flujo[i,8] == 0) { flujo[i,8]= tiempo }; if ( tiempo < flujo[i,7]) { flujo[i,7] = tiempo}; if ( tiempo > flujo[i,8]) { flujo[i,8] = tiempo}; } } END { for (i=0; i<=max ; i++) { lapsus = flujo[i,8] - flujo[i,7]; if ( lapsus > 0 ) { printf("%d\t%d\t%d\t%d\t%d\t%d\t%d\t%f\n",i,flujo[i,1],flujo[i,2],flujo[i,3],flujo[i,4],flujo[i,5],flujo[i,6],lapsus) } } }' > $TMP/tcp_flows.dat #: #::: FIN #:
Re: [ns] Help configuring Tocken Bucket over Diffserv
Dear Cesar, you can see: Pieda et al, A Network Simulator Differentiated Services implementation, Nortel Networks, 2000 /salva On Tue, 3 Apr 2007, César Cárdenas wrote: Dear all, I really appreciate if you could point me to a procedure for configuring Diffserv Token Bucket policer for TCP flows, in particular how to calculate CIR and CBS... Do you suggest to use TSW2CM for TCP flows? so, how to calculate CIR? Many thanks for your attention, kind regards, César César Cárdenas ([EMAIL PROTECTED]) Monterrey Tech, Querétaro Campus, México http://www.qro.itesm.mx Personal Phone: +(33) 633306689 Office Phone: +(33) 145817146 Office Fax: +(33) 145817158 All phones and fax from abroad France The content of this data transmission is not considered as an offer, proposal, understanding, or agreement unless it is confirmed in a document signed by a legal representative of ITESM. The content of this data transmission is confidential and it is intended to be delivered only to the addresses, therefore, it shall not be distributed and/or disclosed through any mean without the original sender's previous authorization. If you are not the addressee you are forbidden to use it, either totally or partially, for any purpose.
[ns] ns bibtex entry
Could anyone send the bibtex entry for NS-2 reference? Thank you in advance /salva
[ns] An example of 'logweb' module
Hi, Could anyone send a tcl-example of 'logweb'? Thank you in advance /salva
[ns] queueing or queuing (for English people)
Hi all, and sorry for the question: How do you say: Priority queueing or Priority queuing?? I have founded the above two sentences, with 'e' -> 'queueing' and without 'e' -> 'queuing' Thank you very much /salva
Re: [ns] trace file limitations
In Linux, there is limit for your files. Maybe, you can see 'limits.conf' file. /salva On Sat, 7 Jul 2007, Sita S. Krishnakumar wrote: > > Hello, > I am trying to run an extended simulation. I am logging only the routing > layer information to the trace file. When I run the simulation, the > process kills itself after a few hours. Every time, I notice that the > trace file size is approximately 1.4 GB. Is anyone aware of a trace file > limitation when using ns-2? > Regards, > Sita > > > > > > >
Re: [ns] priority queuing in priqueue
Hossein: Maybe, you can use the dsRED class. With dsRED Class, you have several scheduling algorithms: priority queuing, RR, WRR and so on. /salva On Mon, 8 Oct 2007, hossein fotouhi wrote: > > Hi all , > is there any priority queuing implementation for ns-2 . I can find the > c++ class > *PriQueue* in ns-2 . It aims to prioritize routing traffic over > ordinary traffic. > This is not what I am looking for. > i want to create 2 different queues one for high priority and the other > for low priority according to my packet size( ch->size() ). > > please send me your guidance. > Thanks so much > > -- > Hossein Fotouhi >
Re: [ns] RED dropping packet problem
Leo: You can see the file: your-ns2.xx-home/ns-2.xx/tcl/lib/ns-default.tcl Best regards /salva On Thu, 8 Nov 2007, Leo Lin wrote: > > Hi > > did any one know how to control RED queue > how to set its max queue size before it start dropping or marking > packets? > > any comments are welcome > > Regards, > Leo > >
Re: [ns] computation of loss of syn packets, first lost packets and total losses using NS-2 in Diffserv network
Vinod: The information about lost packets is in the trace file. You must analyze this file after the simulation. You can use several tools: awk, perl file, tracegraph, bash file, etc.. /salva On Thu, 15 Nov 2007, vinod kumar wrote: > > Hello > Kindly tell me " How to compute of loss of syn packets, first lost > packets and total losses using NS-2 in Diffserv network" > as soon as possible. > Thanks > >
Re: [ns] Simulation of web traffic from web servers logs
any idea, please? I only need the name of the file or procedure. Thanks. Hi all, I need to simulate web traffic using web servers logs. So, What is the ns-2 module that I need to use? Thank you very much /salva > >