Re: [ns] urgent: how to analysis the out.tr?

2007-03-25 Thread salcaraz


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

2007-03-27 Thread salcaraz



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] Help configuring Tocken Bucket over Diffserv

2007-04-04 Thread salcaraz




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

2007-05-10 Thread salcaraz



Could anyone send the bibtex entry for NS-2 reference?

Thank you in advance

/salva



[ns] An example of 'logweb' module

2007-05-28 Thread salcaraz


Hi,

Could anyone send a tcl-example of 'logweb'?

Thank you in advance


/salva



[ns] queueing or queuing (for English people)

2007-06-09 Thread salcaraz

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

2007-07-08 Thread salcaraz


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] RED dropping packet problem

2007-11-08 Thread salcaraz

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

2007-11-15 Thread salcaraz


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

2008-02-13 Thread salcaraz


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