Re: [ns] Calculating Mean end-to-end delay.

2006-07-18 Thread Dimitris Antonellis

You have to give a different weight in the mean.
e.g. mean=(mean*(total_pkts-1) + curr_pkt_delay*1) / total_pkts.

Regards
Dimitrios Antonellis


Message: 1
 Date: Mon, 17 Jul 2006 02:06:07 +0100
 From: Nicholas Loulloudes [EMAIL PROTECTED]
 Subject: [ns] Calculating Mean end-to-end delay.
 To: ns-users@ISI.EDU
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hello,

 i have created an agent which allows me to record the end-to-end delays of
 packets arriving at a specific node. What i want to do is to calculate the
 mean end-to-end delay at specific time intervals and later on output it on
 a
 trace file.

 To calculate the mean end-to-end delay i use the following:

 mean=(mean+curr_pkt_delay)/total_pkts.

 I do this every time a new packet arrives.

 Is this the correct way of calculating mean end-to-end delay or i am
 totally
 wrong here?

 Regards,

 --
 Nicholas Loulloudes

 Postgraduate at Communication Networks and Software.

 BSc in Computer Science.





Re: [ns] simple-wireless.tcl is not running on ns2.28

2006-06-15 Thread Dimitris Antonellis

* couldn't read file ../mobility/scene/cbr-3-test
no such file or directory

Probably, you changed the path of the script ns simple-wireless.tcl so as to
run it. Thus, it cant find the path for the mobility script /cbr-3-test
You have to open the script ns simple-wireless.tcl and change the
correspondig paths so as to represent the new relative path of the
/cbr-3-test.


Dimitris Antonellis


Message: 4
 Date: 14 Jun 2006 07:15:38 -
 From: Srirupa  Dasgupta [EMAIL PROTECTED]
 Subject: [ns] simple-wireless.tcl is not running on ns2.28
 To: ns-users@ISI.EDU
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;   charset=iso-8859-1




 Dear friend,
 please help me to run wireless scripts on ns2 .
 i am typing the following command:
 ns simple-wireless.tcl
 the error messafe that i am getting is as follows:
 num_nodes is set 3
 warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
 INITIALIZE THE LIST xListHead
 Loading connection pattern...
 couldn't read file ../mobility/scene/cbr-3-test: no such file or
 directory
 while executing
 source.orig ../mobility/scene/cbr-3-test
 (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 $val(cp)
 (file wireless1.tcl line 121)
 what is this?
 please help




Re: [ns] Changing trace files

2006-05-07 Thread Dimitris Antonellis

Check the files... trace/race.cc and trace/trace.h

Cheers
Dimitrios Antonellis

Message: 6
 Date: Sat, 6 May 2006 11:04:39 -0300
 From: Diego Soares [EMAIL PROTECTED]
 Subject: [ns] Changing trace files
 To: ns_users ns-users@ISI.EDU
 Message-ID:
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 Hello NS users,

 Which source code should I chance to write only the fields that I want in
 my
 trace files?? I am simulation Ad-Hoc networks using new-trace format!!!

 --
 Diego G. Soares