[ns] Loading a large movement trace file

2005-12-22 Thread Marco Fiore

Hi all,

I am experienceing the following problem:
I have a large 
movement trace file (around
200 nodes whose speed is updated every 0.5s
for 2000s of simulation), which is 40Mb in size
(evry line of the file 
is a setdest command).

When I run the simulation, it takes a very
long 
time (I do not know how much, I stopped
it after 30 mins)  after the 
INITIALIZE THE
LISTHEAD xListHead message is displayed
and before the 
actual start of simulation
(i.e. simulatied time 0 is not reached).

I 
think this is due to the large movement trace
file, but I am not sure, 
and I do not know what
to do to avoid that.

Does anyone have any idea 
about how to get
rid of such a problem, or any experience with
similar 
issues?

Thanks,

Marco Fiore



[ns] R: Can we get rid of TCP in wireless?

2006-02-05 Thread Marco Fiore


 It seems that all the wireless network simulation examples in ns 
tutorials
adopt such a format: app-TCP/UDP-routing-MAC-PHY. 
However, there
is no transport protocol in real wireless 
implementations. Is it possible 
to get rid of TCP/UDP and connect 
application directly to the routing?

Actually, a transport protocol 
*is* present in real wireless implementations.
Moreover that protocol 
is often TCP, without which you could not perform
any task requiring 
reliable data transfer (e.g. internet browsing, file sharing).
Maybe 
you mean that in your simulation you do not need reliability at
transport layer: in that case it is sufficient to use the UDP 
protocol... you
can do that simply changing the level 4 protocol from 
TCP to UDP...

Regards,

Marco Fiore



[ns] R: Check_pktCTRL: Invalid MAC Control subtype.

2006-03-04 Thread Marco Fiore

That error message is generated by 802.11.
See mac/mac-802_11.cc for 
details.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 4-mar-2006 6.23 AM
A: ns-users@ISI.EDU
Ogg: [ns] quot;Check_pktCTRL: Invalid MAC Control subtypequot;.


Hi,


I have written a routing algorithm (modification of AODV). 
when i run the 
program, i get the error as

Check_pktCTRL: Invalid 
MAC Control subtype.

Where could be the possible location of the 
error?. I checked the packet 
formats of send routines, they are fine.

I actually included the Hello packets . It gave me an error as 
segmentation 
fault.
When i removed the hello packets, i get the 
error as Check_pktCTRL.

If the error is with regards to the packet 
format, then whats the correct 
format? i have used the same one as in 
AODV.

Can someone please help me.

Subashini.







[ns] R: regarding promiscuous mode

2006-03-13 Thread Marco Fiore

Krithiga,

answers are inline.

Regards,

Marco Fiore

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 12-mar-2006 1.24 PM
A: 
ns-users@ISI.EDU, [EMAIL PROTECTED], aodvimpl-public-
[EMAIL PROTECTED]
Ogg: [ns] regarding promiscuous mode


hi all,
 i am doing proj in mobile adhoc networks. i 
need to know some
clarifications regarding mobile adhoc networks.

1. we need to make use of promiscuous mode for our proj. (i.e) a node 
need
to overhear the other  transmissions that are happening in its 
transmission
range.. is it already implemented in NS2?
If so, kindly 
let me know the inbuilt function that can be used for
overhearing. 
Otherwise, how this overhearing concept can be implemented in
NS2?

There's no promiscuous mode implementation in ns-2.
However, you can 
easily add such feature in 802.11.
In the file mac/mac-802_11.cc, look 
for the recv_timer()
function, look for the Address Filtering 
section: there
you can decide to pass the frame to the upper LL agent,
instead of discarding it.

2. how can we determine the 2-hop 
neighbours of the node and maintain the
list of the same??

Two ways: 
the easy, bad one is to make it via tcl (e.g. at each time step,
compute all inter-node distances and comunicate to each node the list
of neighbors), the more complex, good one is to do that implementing 
in
C++ some layer-3 mechanism which propagates the information on
neighbor nodes using actual packets (many examples of that in 
literature).
This second solution is preferable since it is more 
realistic (in the first case
you have a no-error, no-cost information 
exchange!). I think you could
loo for some existing C++ implementation 
and start your changes from there...



[ns] R: sending packets from objects within agent

2006-03-27 Thread Marco Fiore

Elise,

you could have a look at the website:

http://masimum.dif.um.
es/?Documents

where Francisco Ros and other researchers
present their 
work on implementing a new
routing protocol for ad-hoc networks.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 27-mar-2006 9.29 PM
A: ns-users@ISI.EDU
Ogg: [ns] sending packets from objects within agent


Hi,

i have 
implemented a routing agent for ad-hoc routing, but i have a problem: 
the agent attached to a node has several 'roles', so the agent has a 
central 
subclass of agent, and contains several objects which take 
care of different 
behaviours.
Now i need to send packets from those 
objects - how should i transmit the 
Scheduler used in the central 
agent ?  Or should i just transmit target_ ?
(or should i use another 
way to get those packets sent ?) (i use ns-2.29)
Masters of ns ;-) , i 
hope you can help me !
thanks,

Elise

_
Free blogging with MSN Spaces  http://spaces.msn.com/?mkt=nl-be






Re: [ns] Trace file

2006-03-31 Thread Marco Fiore

Sara,

the simplest way is probably to post-process your tracefile
using awk or perl. Modifying the C++ code which generates
the tracefile 
could be very time-consuming, as it is spread
among all the implemented 
agents...

Using awk or perl on the ns-2 tracefile you can print only
some particular lines. Many references/tutorials/examples
of both 
languages are available on the web.

Regards,

Marco Fiore


Original Message
From: [EMAIL PROTECTED]
Date: Mar 31, 2006 
12:52 PM
To: ns-usersns-users@ISI.EDU
Subj: [ns] Trace file


Hi all,
Is there a simple mode to modify the trace file? 
For 
example I wouldn't print the lines  about beacon frames.
Thanks in 
advance ,

Sara.  






[ns] R: why setdest so slow?

2006-04-03 Thread Marco Fiore

Guanhua,

are you referring to the generation of the mobility traces or 
to the simulation
of the network itself? In the first case that's very 
strange, in the second case
it could be due to the fact that the 
default ns-2 scheduler is very slow in
allocating events far in time. 
My advice is to patch the scheduler with
the following code:

  http:
//netlab.caltech.edu/~weixl/technical/ns2patch/ns2patch.htm

Hope this 
helps,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
com
Data: 1-apr-2006 7.39 PM
A: ns-users@ISI.EDU
Ogg: [ns] why 
setdest so slow?


Hi, I am using the setdest tool in ns-2 to 
generate a mobility scenario that 
has 200 users and lasts 1 hour. I 
used version 2. It took seven to eight 
hours to generate only 800 
seconds. Is this normal? I hope some people more 
experienced with 
this can give me help.

thanks,
Guanhua







[ns] DataRate in Header

2006-04-03 Thread Marco Fiore

Hi everyone,

does anybody know if and where the DataRate at which 
packets
are transmitted on a wireless channel is recorded in some 
header?

Thanks,

Marco Fiore



[ns] R: make: *** No rule to make target `tcl/lib/noah.tcl', needed by `gen/ns_tcl.cc'. Stop.

2006-04-05 Thread Marco Fiore

Qasim,

the error messages you get informs you that the
file 
tcl/lib/noah.tcl could not be find. Check that
the path is correct and 
the file exists.

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 4-apr-2006 3.27 PM
A: [EMAIL PROTECTED]
EDU
Ogg: [ns] make: *** No rule to make target `tcl/lib/noah.
tcl#39;, needed by `gen/ns_tcl.cc#39;.  Stop.


Dear All

I am 
trying to implement the Noah protocol. After following the
instructions below
##
Makefile.in add noah/noah.o 
\ to OBJ_CC and tcl/mobility/noah.tcl \ to
NS_TCL_LIB
noah/noah.{h,
cc} add noah.h and noah.cc to a new subdirectory noah/
tcl/mobility/noah.tcl  add noah.tcl to tcl/mobility/
tcl/lib/ns-lib.
tcl.h   line 191: add source ../mobility/noah.tcl
line 603ff: add

   
NOAH {
   set ragent [$self create-noah-agent $node]
   }

line 768ff: add

Simulator instproc create-noah-agent { node } {
# Create a noah routing agent for this node
set ragent [new 
Agent/NOAH]

## setup address (supports hier-addr) for noah agent
## and mobilenode
set addr [$node node-addr]

$ragent 
addr $addr
$ragent node $node

if [Simulator set mobile_ip_] 
{
$ragent port-dmux [$node demux]
}
$node addr $addr
$node set ragent_ $ragent
return $ragent
}
##

I get the following problem
first I was told to run config
I ran ./config
than I ran make 
clean
and then I ran make

but after a while it has given me this 
error

make: *** No rule to make target `tcl/lib/noah.tcl', needed by
`gen/ns_tcl.cc'.  Stop.

please help

your help is very much 
appreciated

regards

Qasim UK







[ns] R: which trace format is more accurate?

2006-04-15 Thread Marco Fiore

Sasan,

both versions of tracefile report the same information.
The 
difference only lies in the format (actually, the
new trace format is 
somehow more complete).
So they are accurate in the same way, but the 
point
is that you can't use the same awk script on both!
You have to 
write two versions of you awk script,
and then you'll get the same 
results.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 15-apr-2006 8.06 AM
A: ns-users@ISI.EDU
Ogg: [ns] which trace format is more accurate?


Hi All,

I am 
generating both trace formats (old and new) for the exact same
simulation, and for instance I count total number of messages sent as
below (in my awk file)

$1~/s/  /AGT/  { sent ++; }

but I get 
two different results

now I wonder, which one of the trace files are 
accurate? which one should
I pick? the version is 2.29.

I'll 
appreciate your advice.

Thanks,
Sasan








[ns] R: Re: R: which trace format is more accurate?

2006-04-18 Thread Marco Fiore

Sasan,

I see your point.
How much do differ results you got in the two 
cases?
By exact same simulation you mean that you simply
changed the 
trace format and nothing else (included
the machine you working on)? 

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
ucc.ie
Data: 15-apr-2006 9.33 PM
A: Marco Fiore[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], ns-users@isi.edu
Ogg: Re: R: [ns] 
which trace format is more accurate?

Marco,

I agree that I need 
separate awk scripts for different trace formats but
the particular 
example that I gave below is straight forward

$1~/s/  /AGT/  { 
sent ++; }

and should return total number of sents message in a 
simulation and that
still returns different values (unless this is not 
the correct way to
calculate the total sent messages)

what do you 
think?

Thanks,
Sasan



 Sasan,

 both versions of 
tracefile report the same information.
 The
 difference only lies 
in the format (actually, the
 new trace format is
 somehow more 
complete).
 So they are accurate in the same way, but the
 point
 
is that you can't use the same awk script on both!
 You have to
 
write two versions of you awk script,
 and then you'll get the same
 results.

 Regards,

 Marco Fiore

Messaggio 
originale
Da:
 [EMAIL PROTECTED]
Data: 15-apr-2006 8.06 
AM
A: ns-users@ISI.EDU
Ogg: [ns] which trace format is more 
accurate?


Hi All,

I am
 generating both trace 
formats (old and new) for the exact same
simulation, and for 
instance I count total number of messages sent as
below (in my awk 
file)

$1~/s/  /AGT/  { sent ++; }

but I get
 two 
different results

now I wonder, which one of the trace files are
 accurate? which one should
I pick? the version is 2.29.

I'll
 appreciate your advice.

Thanks,
Sasan














[ns] R: help regarding trace file

2006-04-19 Thread Marco Fiore

Please have a look to ns manual, ns mailing list history
and relative 
FAQ before posting to the mailing list itself!
This is the third or 
fourth mail about trace file format
this month!

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 19-
apr-2006 9.36 AM
A: ns-users@ISI.EDU, [EMAIL PROTECTED], 
ns-users@ISI.EDU
Ogg: [ns] help regarding trace file


  i m 
working on simualtion of AD-Hoc routing algorithms DSDV, DSR, AODV. i 
unable to extract data form trace files. So please send me how to read 
trace file , which coloum of trace file show packet id?   how to 
calculate Throughput and  Delay. i have attached  trace file of DSDV 
algorithm.
 please help me.  


s 0.032821055 _1_ RTR  --- 
0 message 32 [0 0 0 0] --- [1:255 -1:255 
32 0] 
s 0.178591360 
_2_ RTR  --- 1 message 32 [0 0 0 0] --- [2:255 -1:255 
32 0] 
s 
1.113402886 _0_ RTR  --- 2 message 32 [0 0 0 0] --- [0:255 -1:255 
32 0] 
M 10.0 0 (5.00, 5.00, 0.00), (45.00, 285.00), 5.00
s 
10.0 _0_ AGT  --- 3 tcp 40 [0 0 0 0] --- [0:0 1:0 32 0] 

[0 0] 0 0
r 10.0 _0_ RTR  --- 3 tcp 40 [0 0 0 0] --- [0:0 
1:0 32 0] 
[0 0] 0 0
s 12.530838300 _0_ RTR  --- 4 message 32 [0 0 0 
0] --- [0:255 
-1:255 32 0] 
s 13.830059915 _2_ RTR  --- 5 
message 32 [0 0 0 0] --- [2:255 
-1:255 32 0] 
s 14.280428760 _1_ 
RTR  --- 6 message 32 [0 0 0 0] --- [1:255 
-1:255 32 0] 
M 
15.0 1 (390.00, 385.00, 0.00), (250.00, 250.00), 3.00
s 
16.0 _0_ AGT  --- 7 tcp 40 [0 0 0 0] --- [0:0 1:0 32 0] 

[0 0] 0 0
r 16.0 _0_ RTR  --- 7 tcp 40 [0 0 0 0] --- [0:0 
1:0 32 0] 
[0 0] 0 0
s 25.369352037 _0_ RTR  --- 8 message 32 [0 0 0 
0] --- [0:255 
-1:255 32 0] 
r 25.370484730 _2_ RTR  --- 8 
message 32 [0  0 800] --- 
[0:255 -1:255 32 0] 
s 
26.386541965 _2_ RTR  --- 9 message 32 [0 0 0 0] --- [2:255 
-1:
255 32 0] 
r 26.387454644 _0_ RTR  --- 9 message 32 [0  2 800] 
--- 
[2:255 -1:255 32 0] 
r 26.387454789 _1_ RTR  --- 9 message 
32 [0  2 800] --- 
[2:255 -1:255 32 0] 
s 27.274269018 
_1_ RTR  --- 10 message 32 [0 0 0 0] --- [1:255 
-1:255 32 0] 
r 
27.275141834 _2_ RTR  --- 10 message 32 [0  1 800] --- 
[1:
255 -1:255 32 0] 
s 28.0 _0_ AGT  --- 11 tcp 40 [0 0 0 0] 
--- [0:0 1:0 32 0] 
[0 0] 0 0
r 28.0 _0_ RTR  --- 11 tcp 
40 [0 0 0 0] --- [0:0 1:0 32 0] 
[0 0] 0 0
s 37.379947379 _2_ 
RTR  --- 12 message 32 [0 0 0 0] --- [2:255 
-1:255 32 0] 
r 
37.380919914 _0_ RTR  --- 12 message 32 [0  2 800] --- 
[2:
255 -1:255 32 0] 
r 37.380920097 _1_ RTR  --- 12 message 32 [0 
 2 800] --- 
[2:255 -1:255 32 0] 
s 37.425885784 _0_ RTR  
--- 13 message 32 [0 0 0 0] --- [0:255 
-1:255 32 0] 
r 
37.426998317 _2_ RTR  --- 13 message 32 [0  0 800] --- 
[0:
255 -1:255 32 0] 
s 38.388685824 _1_ RTR  --- 14 message 32 [0 0 0 0] 
--- [1:255 
-1:255 32 0] 
r 38.389638533 _2_ RTR  --- 14 message 
32 [0  1 800] --- 
[1:255 -1:255 32 0] 
s 38.432288490 
_0_ RTR  --- 15 message 32 [0 0 0 0] --- [0:255 
-1:255 32 0] 
r 
38.433061011 _2_ RTR  --- 15 message 32 [0  0 800] --- 
[0:
255 -1:255 32 0] 
s 39.277760075 _2_ RTR  --- 16 message 32 [0 0 0 0] 
--- [2:255 
-1:255 32 0] 
r 39.278692587 _0_ RTR  --- 16 message 
32 [0  2 800] --- 
[2:255 -1:255 32 0] 
s 39.278692587 
_0_ RTR  --- 3 tcp 80 [0 0 0 0] --- [0:0 1:0 32 2] 
[0 0] 0 0
s 
39.278692587 _0_ RTR  --- 7 tcp 80 [0 0 0 0] --- [0:0 1:0 32 2] 

[0 0] 0 0
D 39.278692587 _0_ IFQ  ARP 3 tcp 80 [0 0 0 800] --- [0:
0 1:0 32 2] 
[0 0] 0 0
s 39.278692587 _0_ RTR  --- 11 tcp 80 [0 0 0 
0] --- [0:0 1:0 32 2] 
[0 0] 0 0
D 39.278692587 _0_ IFQ  ARP 7 
tcp 80 [0 0 0 800] --- [0:0 1:0 32 2] 
[0 0] 0 0
r 39.278692775 
_1_ RTR  --- 16 message 32 [0  2 800] --- 
[2:255 -1:255 
32 0] 
r 39.284898168 _2_ RTR  --- 11 tcp 80 [13a 2 0 800] --- [0:
0 1:0 32 
2] [0 0] 1 0
f 39.284898168 _2_ RTR  --- 11 tcp 80 [13a 2 0 
800] --- [0:0 1:0 31 
1] [0 0] 1 0
r 39.293478160 _1_ AGT  --- 11 
tcp 80 [13a 1 2 800] --- [0:0 1:0 31 
1] [0 0] 2 0
s 39.293478160 
_1_ AGT  --- 17 ack 40 [0 0 0 0] --- [1:0 0:0 32 0] 
[0 0] 0 0
r 
39.293478160 _1_ RTR  --- 17 ack 40 [0 0 0 0] --- [1:0 0:0 32 0] 

[0 0] 0 0
s 39.293478160 _1_ RTR  --- 17 ack 60 [0 0 0 0] --- [1:0 
0:0 32 2] 
[0 0] 0 0
r 39.295636260 _2_ RTR  --- 17 ack 60 [13a 2 1 
800] --- [1:0 0:0 32 
2] [0 0] 1 0
f 39.295636260 _2_ RTR  --- 17 
ack 60 [13a 2 1 800] --- [1:0 0:0 31 
0] [0 0] 1 0
r 39.297773794 
_0_ AGT  --- 17 ack 60 [13a 0 2 800] --- [1:0 0:0 31 
0] [0 0] 2 0
s 39.297773794 _0_ AGT  --- 18 tcp 1040 [0 0 0 0] --- [0:0 1:0 32 
0] [1 0] 0 0
r 39.297773794 _0_ RTR  --- 18 tcp 1040 [0 0 0 0] 
--- [0:0 1:0 32 
0] [1 0] 0 0
s 39.297773794 _0_ RTR  --- 18 tcp 
1060 [0 0 0 0] --- [0:0 1:0 32 
2] [1 0] 0 0
s 39.297773794 _0_ 
AGT  --- 19 tcp 1040 [0 0 0 0] --- [0:0 1

[ns] R: Re: R: which trace format is more accurate?

2006-04-19 Thread Marco Fiore

Sasan,

don't have a clue on that.
I fear the only way is to analyze 
the trace files
by hand to spot the differences. Maybe printing
the 
sending times (using an awk script) can
speed up the process.

Let us 
know if you can solve the problem.

Regards,

Marco Fiore


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 19-apr-2006 
12.47 PM
A: Marco Fiore[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
ie, ns-users@isi.edu
Ogg: Re: R: [ns] which trace format is more 
accurate?

Marco,

This is the exact point,

the difference is 
about 300 to 400 for 100 sec sim time

I reran the same simulation 
and all I did was to change the trace format,
but I see such a 
difference in number of sent

$1~/s/  /AGT/  { sent ++; }

any 
comments?

both running on the same machine. all the equipment and 
environment
settings are the same. you might be able to reproduce it 
easily.

Thanks,
Sasan


 Sasan,

 I see your point.
 How 
much do differ results you got in the two
 cases?
 By exact same 
simulation you mean that you simply
 changed the
 trace format and 
nothing else (included
 the machine you working on)?

 Regards,

 Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
cs.
 ucc.ie
Data: 15-apr-2006 9.33 PM
A: Marco Fiore
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], ns-users@isi.edu
Ogg: Re: R: [ns]
 which trace format is more accurate?

Marco,

I agree that I need
 separate awk scripts for 
different trace formats but
the particular
 example that I gave 
below is straight forward

$1~/s/  /AGT/  {
 sent ++; }

and should return total number of sents message in a
 simulation 
and that
still returns different values (unless this is not
 the 
correct way to
calculate the total sent messages)

what do you
 think?

Thanks,
Sasan



 Sasan,

 
both versions of
 tracefile report the same information.
 The
 difference only lies
 in the format (actually, the
 new 
trace format is
 somehow more
 complete).
 So they are 
accurate in the same way, but the
 point

 is that you can't 
use the same awk script on both!
 You have to

 write two 
versions of you awk script,
 and then you'll get the same
 
results.

 Regards,

 Marco Fiore


Messaggio
 originale
Da:
 [EMAIL PROTECTED]
Data: 15-apr-2006 8.06
 AM
A: ns-users@ISI.EDU
Ogg: 
[ns] which trace format is more
 accurate?


Hi All,

I am
 generating both trace
 formats (old and new) for 
the exact same
simulation, and for
 instance I count total 
number of messages sent as
below (in my awk
 file)

$1~/s/  /AGT/  { sent ++; }

but I get
 two
 
different results

now I wonder, which one of the trace files 
are
 accurate? which one should
I pick? the version is 2.29.

I'll
 appreciate your advice.

Thanks,
Sasan




















[ns] R: help regarding for awk file

2006-04-27 Thread Marco Fiore

For simple topologies/statistics, you may
give a look at trace2stats:

http://www.reti.polito.it/fiore

Regards,

Marco Fiore

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 26-apr-2006 1.25 
PM
A: ns_users_request[EMAIL PROTECTED], ns_usersns-
[EMAIL PROTECTED]
Ogg: [ns] help regarding for awk file



i m 
working on simulation of adhoc networks. i want  throughput  Delay 
calculation awk program for trace file analysis.
thanks





[ns] R: Which ad hoc routing protocol is used in 802.11?

2006-04-27 Thread Marco Fiore

Jeevesh,

802.11 is a MAC level protocol, thus it can be used
with 
*any* routing protocol you want. I think the
default one in ns-2 
wireless simulations is DSDV.
You can verify that (and possibile change 
the routing
protocol) by looking at mobile node configuration
in your 
tcl script.

Regards,

Marco Fiore

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 26-apr-2006 12.46 PM
A: NS USERS
ns-users@ISI.EDU
Ogg: [ns] Which ad hoc routing protocol is used in 
802.11?


Hi All,
   Which ad hoc routing protocol is used 
in 802.11? I can't find any information about this. Can any one help 
me?
 Thanks a lot.
 Best regards.

  jeevesh kumar

   
-
 Jiyo cricket on Yahoo! 
India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies 
all the time.





[ns] R: Adhoc Rounting Overhead

2006-04-27 Thread Marco Fiore

Diego,

you are looking at MAC level frames (lower layer
with respect 
to routing one). If you do not need
them (and you should not, if you 
are evaluating
the routing protocol overhead), you can turn
MAC level 
tracing OFF in mobile node configuration
in your tcl script (refer to 
the ns manual for that).

Regards,

Marco Fiore

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 25-apr-2006 6.33 PM
A: ns_usersns-users@ISI.EDU
Ogg: [ns] Adhoc Rounting Overhead


Hello NS users,

I am working on some Adhoc simulations for my 
graduation project, and I am
trying to describe this protocols 
behavior and performance, for some
different environment. One metric 
that I am analysing is Rounting Overhead.
During my analysis I 
realised that in my trace file I have some AODV
packets, some CBR 
packets, and some packets that I don't know that they are,
and if I 
should count them for this metric.
Can any one tell me that are this 
packets? Should I count them as Routing
packets or data packets? 
Should I ignore them?
I attached below this packets.
Thanks in 
advance.


s -t 41.07456 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 
793.35 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md  -Ms 
8 -Mt 806 -P arp -Po REQUEST
-Pms 8 -Ps 8 -Pmd 0 -Pd 1

s -t 
41.023318192 -Hs 1 -Hd -2 -Ni 1 -Nx 612.03 -Ny 664.36 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 41e -Md 8 -Ms 1 -Mt 0

s -t 41.023680928 -
Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.34 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 2e4 -Md 1 -Ms 0 -Mt 0

s -t 41.023995664 -Hs 1 -Hd -2 
-Ni 1 -Nx 612.04 -Ny 664.36 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -
Ma 13a -Md 8 -Ms 1 -Mt 806 -P arp -Po REPLY -Pms 1
-Ps 1 -Pmd 8 -Pd 8

s -t 41.024422400 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.33 -Nz 0.00 -
Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md 1 -Ms 0 -Mt 0

s -t 
41.024836400 -Hs 8 -Hd -2 -Ni 8 -Nx 791.27 -Ny 793.33 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 45e -Md 1 -Ms 8 -Mt 0

s -t 41.025199136 -
Hs 1 -Hd -2 -Ni 1 -Nx 612.05 -Ny 664.36 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 324 -Md 8 -Ms 0 -Mt 0

s -t 41.026004608 -Hs 1 -Hd -2 
-Ni 1 -Nx 612.06 -Ny 664.36 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -
Ma 0 -Md 8 -Ms 0 -Mt 0

s -t 41.026598608 -Hs 1 -Hd -2 -Ni 1 -Nx 
612.06 -Ny 664.36 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md 
 -Ms 1 -Mt 806 -P arp -Po REQUEST
-Pms 1 -Ps 1 -Pmd 0 -Pd 6

s -t 41.027354427 -Hs 6 -Hd -2 -Ni 6 -Nx 370.36 -Ny 620.18 -Nz 0.00 -
Ne -
1.00 -Nl MAC -Nw --- -Ma 41e -Md 1 -Ms 6 -Mt 0

s -t 
41.027717246 -Hs 1 -Hd -2 -Ni 1 -Nx 612.07 -Ny 664.36 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 2e4 -Md 6 -Ms 0 -Mt 0

s -t 41.028032065 -
Hs 6 -Hd -2 -Ni 6 -Nx 370.35 -Ny 620.18 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 13a -Md 1 -Ms 6 -Mt 806 -P arp -Po REPLY -Pms 6
-Ps 6 -
Pmd 1 -Pd 1

s -t 41.028458884 -Hs 1 -Hd -2 -Ni 1 -Nx 612.08 -Ny 
664.36 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md 6 -Ms 0 -Mt 0

s -t 41.029272884 -Hs 1 -Hd -2 -Ni 1 -Nx 612.09 -Ny 664.37 -Nz 0.00 -
Ne -
1.00 -Nl MAC -Nw --- -Ma 45e -Md 6 -Ms 1 -Mt 0

s -t 
41.029635704 -Hs 6 -Hd -2 -Ni 6 -Nx 370.34 -Ny 620.19 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 324 -Md 1 -Ms 0 -Mt 0

s -t 41.030441342 -
Hs 6 -Hd -2 -Ni 6 -Nx 370.34 -Ny 620.20 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 0 -Md 1 -Ms 0 -Mt 0

s -t 41.030935342 -Hs 6 -Hd -2 -
Ni 6 -Nx 370.33 -Ny 620.20 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 
0 -Md  -Ms 6 -Mt 806 -P arp -Po REQUEST
-Pms 6 -Ps 6 -Pmd 0 -
Pd 7

s -t 41.032030786 -Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 
0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 41e -Md 6 -Ms 7 -Mt 0

s -t 
41.032393231 -Hs 6 -Hd -2 -Ni 6 -Nx 370.32 -Ny 620.21 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 2e4 -Md 7 -Ms 0 -Mt 0

s -t 41.032707675 -
Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 13a -Md 6 -Ms 7 -Mt 806 -P arp -Po REPLY -Pms 7
-Ps 7 -
Pmd 6 -Pd 6

s -t 41.033134119 -Hs 6 -Hd -2 -Ni 6 -Nx 370.32 -Ny 
620.21 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md 7 -Ms 0 -Mt 0

s -t 41.034048119 -Hs 6 -Hd -2 -Ni 6 -Nx 370.31 -Ny 620.22 -Nz 0.00 -
Ne -
1.00 -Nl MAC -Nw --- -Ma 45e -Md 7 -Ms 6 -Mt 0

s -t 
41.034410563 -Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
1.
00 -Nl MAC -Nw --- -Ma 324 -Md 6 -Ms 0 -Mt 0

s -t 41.035215452 -
Hs 7 -Hd -2 -Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
1.00 -Nl 
MAC -Nw --- -Ma 0 -Md 6 -Ms 0 -Mt 0

s -t 41.035689452 -Hs 7 -Hd -2 -
Ni 7 -Nx 237.60 -Ny 632.41 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 
bfe -Md 6 -Ms 7 -Mt 0

s -t 41.036051896 -Hs 6 -Hd -2 -Ni 6 -Nx 
370.30 -Ny 620.23 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma ac4 -Md 
7 -Ms 0 -Mt 0

s -t 41.038808784 -Hs 6 -Hd -2 -Ni 6 -Nx 370.27 -Ny 
620.25 -Nz 0.00 -Ne -
1.00 -Nl MAC -Nw --- -Ma 0 -Md 7 -Ms 0 -Mt 0

s -t 41.039522784 -Hs 6 -Hd -2 -Ni 6 -Nx 370.27 -Ny 620.26 -Nz 0.00 -
Ne -
1.00 -Nl MAC -Nw --- -Ma bfe -Md 1 -Ms 6 -Mt 0

s -t 
41.039885604 -Hs 1 -Hd -2 -Ni 1 -Nx 612.19 -Ny 664.38

[ns] R: codes of mobility models in adhoc.

2006-04-27 Thread Marco Fiore

Look for projects such as IMPORTANT,
BonnMotion, CanuMobiSim.

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
com
Data: 25-apr-2006 12.23 PM
A: ns-users@ISI.EDU
Ogg: [ns] codes 
of mobility models in adhoc.


hi every body
im interested in a 
project dealing with mobility models (especially group 
mobility 
models) in adhoc, i can't find the source codes of mobility models, 
i 
just found the one of RWMM.
please if any one has an idea on this 
topic i would really be grateful if 
you help me.
thanks alot in 
advance.

_
Testez Windows Live Mail Beta ! http://www.ideas.live.com/






[ns] R: Modifying 802.11 wireless Channel Propagation Delay

2006-05-05 Thread Marco Fiore

Look for the define line commanding
the propagation delay of the 
wireless
channel in mac/mac-802_11.h.

Regards,

Marco Fiore


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 5-mag-2006 9.49 
AM
A: ns-users@ISI.EDU
Ogg: [ns] Modifying 802.11 wireless Channel 
Propagation Delay



Hi,

Does anyone know how I can change the 
wireless channel propagation delay.

I have two mobile nodes, use FTP 
over TCP, with RTS-CTS mechanism.

I want to increase the delay, so 
that every packet (including the control 
packets) passing the channel 
goes though this delay.  Then I want to 
increase this delay, until 
there wouldn't be any throughput because the 
CTS_Timeout expires and 
the transmitter keeps retransmitting the RTS packet 
until it stops.

Any ideas, please let me know.

Regards,

Bahman







[ns] R: Underwater acoustic channel model?

2006-05-20 Thread Marco Fiore

Christian,

ns-2 does not support any of the models/protocols you 
mentioned.
I think you will have to code and add to the simulator them 
if you
want to use them within ns.

Regards,

Marco Fiore


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 19-mag-
2006 4.09 PM
A: ns-users@ISI.EDU
Ogg: [ns] Underwater acoustic 
channel model?


Hi guys,

I'm very new to ns, and I'm trying to 
figure out whether or not I'll
need to develop some new models for 
what I need to do.  If found no
documentation on what I'm looking 
for.  Can anyone tell me if ns has
support for any of the following?

- Underwater acoustic channels in which the noise level isn't 
uniformly
dispersed?  (I.e., where there are point-sources of acoustic 
noise that
interfere with communication.)

- Underwater acoustic 
channels where certain propagation paths simply
don't exist?  (The 
varied sound speed of water in a given environment
can lead to some 
really wacky propagation paths.)

- Directionally-transmitting 
modems.  (The beam pattern can be somewhat
complex, because the 
directionality can be accomplished using a
multi-transducer array.  
This leads to a main lobe of sound in the
intended direction, and some 
weaker lobes of sound in directions
adjacent to the intended direction 
of transmission.)

- MAC protocols for any commercially available 
underwater acoustic
modems (such as WHOI MicroModems).

I'm very 
grateful for any suggestions.

Thanks,
Christian






[ns] R: WLAN and SCTP?

2006-05-22 Thread Marco Fiore

Hi,

unfortunately, ns-2 SCTP implementation
does not currently support 
wireless links.

Regards,

Marco Fiore

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 22-mag-2006 3.09 AM
A: ns-
[EMAIL PROTECTED]
Ogg: [ns] WLAN and SCTP?


Hi,

I am a posgraduate 
in Beijing University of Posts and Communications(BUPT)
in China.I am 
working on handover,nowadays,I plan to do some research on
WLAN with 
SCTP,but I have not found some useful resources and modules,I am a
beginner in NS,if anyone have or had done the same research,I hope you 
can
give me some advice,modules are appreciated,thanks a lot.

best 
regards,
-- 
jiangren
[EMAIL PROTECTED]





[ns] R: About the multihome in SCTP!

2006-06-07 Thread Marco Fiore

SCTP is not designed to work with wireless links.
You should add 
wireless support yourself, by extending
the multihome-attach-agent and 
multihome-add-destination
methods in tcl/lib/ns-lib.tcl. If you look 
there, you will see that
only wired liks are supported, and you should 
add wireless
links support as well.

Regards,

Marco Fiore

 
Messaggio originale
Da: [EMAIL PROTECTED]
Data: 7-giu-2006 
11.07 AM
A: ns-users@ISI.EDU
Ogg: [ns] About the multihome in SCTP!


Hi,

I want to know how to configure a SCTP node in NS2.29,the 
type of address is
hierachical.I simulate the code in WLAN,there are 
some other
nodes:CN,Router,BS.The MN node in my simulation is made up 
of three nodes,
they are configured the same attribute.Please give me 
some advice 



[ns] R: Re: R: two equal UDP CBR flows in droptail queue get different bandwidths?

2006-06-08 Thread Marco Fiore

Eduardo,

the flag simply introduces a random delay to each packet
(i.
e. the CBR sources does not send 1 pkt ever T seconds,
but every 
T+random(-T/2,T/2). I am not sure about the random
interval, but this 
is the way it works, and it is useful to avoid
that the two sources 
transmit at the same *exact* time.

Regards,

Marco Fiore


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 8-giu-2006 
5.09 AM
A: Marco Fiore[EMAIL PROTECTED]
Ogg: Re: R: [ns] two 
equal UDP CBR flows in droptail queue get different bandwidths?

That 
does this flag do exactly?
On Wednesday 07 June 2006 08:39, Marco 
Fiore wrote:
 Eduardo,

 it could be a synchronization issue.
 
Try to avoid
 synchronization between flows
 by setting the random 
flag of the cbr
 flows
 to true: $cbr_name set random_ 1.

 
Regards,

 Marco Fiore

 

 Messaggio originale

 Da: [EMAIL PROTECTED]
 Data: 7-giu-2006

 3.00 PM

 
A: ns-users@ISI.EDU
 Ogg: [ns] two equal UDP CBR flows in

 
droptail queue get differentbandwidths?

 Hi there:
 
 I've 
set up

 this experiment. I have two source nodes S1 and S2 
directly

 connected

 to a node R1 and two destination nodes 
D1 and D2 also directly

 connected to a node R2. Nodes R1 and R2 
are connected. All links are 1

 Mb/s

 Full duplex with 
DropTail. Now, here's the thing. I set up two

 flows, one

 
going from S1 to D1 and the other one form S2 to D2. Both

 flows 
are UDP CBR 1

 Mb/s. Flow 1 starts at t=0 and finishes at t=20.

 flow 2 starts at t=10 and

 stops at t=15. Sim runs from t=0 
to t=25.
 
 I'd expect that at t=10 (when flow 2 starts), both 
flows would

 experience the

 same amount of packet losses, 
so that each one would

 use about 0.5Mb/s of the

 link 
between R1 and R2. But what really

 happens is that from t=10 to 
t=15,

 flow 2 uses all bandwidth while

 flow 1 loses all 
packets. Since both flows

 have the same parameters,

 
shouldn't they receive the same share of bandwidth

 during that

 period? Or am i missing something here?

 Thanks in advance.
 
 --
 Eduardo J. Ortega - Linux user #222873
 No fake - 
I'm a big fan of

 konqueror, and I use it for everything. -- 
Linus

 Torvalds

-- 
Eduardo J. Ortega - Linux user #222873 

No fake - I'm a big fan of konqueror, and I use it for everything. -- 
Linus 
Torvalds





[ns] R: Autorate in 802.11G

2006-06-13 Thread Marco Fiore

However this modification is not working, I see that everytime
 the 
dataRate is at 54Mbps, including if I comment
every line that define 
the dataRate, including the lines

 tcl.evalf(Mac/802_11 set 
dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   
bind_bw(dataRate_, dataRate_);


This is strange: are you sure you 
recompiled ns
after changing the files?

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 13-giu-2006 
12.52 AM
A: ns-users@ISI.EDU
Ogg: [ns] Autorate in 802.11G



Hello.

I´m working on 802.11g in ns-2.28. I need to make automatic
change in dataRate depending in distance between tow nodes.

I tried 
to make some changes on the on the mac-802_11.h and
in the mac-802_11.
cc but they did not worked for me.

I make some other changes in ns-
default.tcl and ns-mac.tcl
for make that the 802.11g standard work in 
ns-2.28, this
changes were succesful.

In order to make the 
automatic change in dataRate I tried to
make some changes in mac-
802_11.cc:

 Packet *p = Packet::alloc();
 
 struct hdr_cmn *ch = 
HDR_CMN(p);   
 struct hdr_mac802_11 *dh = 
HDR_MAC802_11(p);
 struct hdr_arp *ah = HDR_ARP(p); 

 
double tX_,tY_,tZ_,rX_,rY_,rZ_;
 nsaddr_t txid=index_;

nsaddr_t rxid;
 
 MobileNode *tx_node= (MobileNode*)(Node::
get_node_by_address(txid));
 tx_node-getLoc(tX_,tY_,tZ_); 
 
 ch-tX()=tX_;  
 ch-tY()=tY_;  ch-tZ()=tZ_;
   
 if (strcmp(packet_info.name(ch-ptype()), ARP) == 0)
  rxid=ah-arp_tpa;
 else
  rxid=ETHER_ADDR(dh-dh_ra);  
 
 MobileNode *rx_node= (MobileNode*)(Node::
get_node_by_address(rxid));
 rx_node-getLoc(rX_,rY_,rZ_); 
 dist 
= sqrt((rX_ - tX_) * (rX_ - tX_) + (rY_ - tY_) * (rY_ - tY_)  + 
(rZ_ 
- tZ_) * (rZ_ - tZ_));
   

 // End of 
modification


 Tcl tcl = Tcl::instance();
 tcl.evalf(Mac/802_11 
set basicRate_);
 if (strcmp(tcl.result(), 0) != 0) 
  bind_bw(basicRate_, basicRate_);
  else
   basicRate_ = 
bandwidth_;


 tcl.evalf(Mac/802_11 set dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   bind_bw
(dataRate_, dataRate_);

 //Modification to obtain dataRate VS 
distance by Jonathan Lopez

  else if (dist=100  dist77)

   
dataRate_ = 1*1e6;
  else if (dist=77  dist65)
   dataRate_ = 
2*1e6;
  else if (dist=65  dist57)
   dataRate_ = 6*1e6;
  else 
if (dist=57  dist54)
   dataRate_ = 9*1e6;
  else if (dist=54  
dist50)
   dataRate_ = 12*1e6;
  else if (dist=50  dist42)
   
dataRate_ = 18*1e6;
  else if (dist=42  dist35)
   dataRate_ = 
24*1e6;
  else if (dist=35  dist23)
   dataRate_ = 36*1e6;
  else 
if (dist=23  dist19)
   dataRate_ = 48*1e6;
  else
   dataRate_ = 
bandwidth_;
  

 // End of modification

EOTtarget_ = 0;
bss_id_ = IBSS_ID;
 //printf(bssid in constructor %d\n,
bss_id_);
}


Here I just tried to change dataRate depending the 
distance
between the nodes, for make the change for every packet that
is send.

However this modification is not working, I see that every
time the
 dataRate is at 54Mbps, including if I comment
every line 
that define the dataRate, including the lines

 tcl.evalf(Mac/802_11 
set dataRate_);
if (strcmp(tcl.result(), 0) != 0) 
   bind_bw(dataRate_, dataRate_);

I can modify the dataRate with 
Mac/802_11 set dataRate_ xMb
in my tcl script. But I need that the 
dataRate been modified
for every packet that is send denpending in the 
distance.

Can anyone tell me what is happend or how can I do the
modifications that I need?.

Thanks.
  
 
__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 





[ns] R: Movements in wireless scenario

2006-06-24 Thread Marco Fiore

Andrea,

god is only used for statistical purposes.
If you are 
interested in generating nodes movement simply use the 'setdest' 
command, ignoring god. E.g.

$ns_ at 10.0 $node_(0) setdest X Y S

where X,Y are the coords of destination and S is the speed (in m/s).

bye,

Marco

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 24-giu-2006 10.59 AM
A: ns-usersns-users@ISI.EDU
Ogg: [ns] 
Movements in wireless scenario


Hi
I want to introduce movements 
in my wireless simulations (I'm using
UM-OLSR), and for large numbers 
of nodes and movements I'm using SETDEST (
ns-2.29\indep-utils\cmu-
scen-gen\setdest). An example of what this utility
makes is following:

$node_(12) set X_ 365.446284881986
$node_(12) set Y_ 
72.300575449718
$node_(12) set Z_ 0.
$god_ set-dist 0 1 
16777215
$god_ set-dist 0 2 16777215
$god_ set-dist 0 3 16777215
$god_ set-dist 0 4 16777215
$god_ set-dist 0 5 16777215
$god_ set-
dist 0 6 16777215
$god_ set-dist 0 7 16777215


I don't know how 
to implement SETDEST's movement because I don't know how to
define 
god_ variable, can you help me?

Thank you very much, I'm sorry for 
my poor english.
Andrea





[ns] R: RTSThreshold in Simulations

2006-07-04 Thread Marco Fiore

Alicia,

RTS/CTS is used when frame size is greater than the RTS 
threshold.
So you should act on the RTS threshold value to set RTS/CTS 
on or off.

Marco

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 3-lug-2006 1.31 PM
A: ns-users@ISI.EDU
Ogg: [ns] 
RTSThreshold in Simulations


Hello guys:

I wonder if you 
activate the RTS/CTS in simulations for MANET. Does it 
depend on the 
packet size or on the number of neighbors?

Thanks in advance,


Alicia Triviño   / Tl. +34-95.213.71.91
Dpto. Tecnologia Electronica
E.T.S. Ing. Telecomunicacion
Universidad de Malaga
Campus Universitario de Teatinos
29071 Malaga, 
Spain







[ns] R: Ending the simulation after a transfer is finished

2006-07-04 Thread Marco Fiore

Prateek,

setting the finish time to a high value should not cause any 
harm, nor should it make you wait more.
Since ns-2 is an event-driven 
simulator, once no event is scheduled the time shall move directly to 
the
'end of simulation' event, in no (user) time.

I don't know if 
other better solutions exist, though.

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 4-lug-2006 12.53 PM
A: ns-users@ISI.EDU
Ogg: [ns] Ending the simulation after a 
transfer is finished


Hi,

Is there a way to end the simulation 
just after a transfer is finished and
not by specifying a time on 
which to end it. For e.g.: my script has a line:

$ns at 5.0 $ftp 
send 6000

Where ns is a network simulator object and ftp is an ftp 
application object.
Now, I don't know at what time will this transfer 
be over. So, I can't have
a line which says:

$ns at 10.0 finish

I also don't want to use a big number for the time over there because 
that
will mean unnecessary waiting in most cases.

Is there a way to 
end the simulation when $ftp is over with its transfer? In
other 
words, is there a way to know the time when a transfer will be over?

Thanks,
Prateek Singhal

-- 
Prateek Singhal | mailto:singhal.
[EMAIL PROTECTED]





[ns] R: Re: R: Ending the simulation after a transfer is finished

2006-07-04 Thread Marco Fiore

Prateek,

unfortunately, I think you are right...

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 4-lug-
2006 1.27 PM
A: ns-users@isi.edu
Cc: Marco Fiore[EMAIL PROTECTED]
it
Ogg: Re: R: [ns] Ending the simulation after a transfer is 
finished

Hi Marco,

I think this does not hold if the Scheduler 
type is Realtime, right? I
should have mentioned that earlier :(

Prateek

On 7/4/06, Marco Fiore [EMAIL PROTECTED] wrote:

 
Prateek,

 setting the finish time to a high value should not cause 
any
 harm, nor should it make you wait more.
 Since ns-2 is an 
event-driven
 simulator, once no event is scheduled the time shall 
move directly to
 the
 'end of simulation' event, in no (user) 
time.

 I don't know if
 other better solutions exist, though.

 Marco

 Messaggio
 originale
 Da: singhal.
[EMAIL PROTECTED]
 Data: 4-lug-2006 12.53 PM
 A: [EMAIL PROTECTED]
EDU
 Ogg: [ns] Ending the simulation after a
 transfer is 
finished
 
 
 Hi,
 
 Is there a way to end the 
simulation
 just after a transfer is finished and
 not by 
specifying a time on
 which to end it. For e.g.: my script has a 
line:
 
 $ns at 5.0 $ftp
 send 6000
 
 Where ns is a 
network simulator object and ftp is an ftp
 application object.
 
Now, I don't know at what time will this transfer
 be over. So, I 
can't have
 a line which says:
 
 $ns at 10.0 finish
 
 
I also don't want to use a big number for the time over there because
 that
 will mean unnecessary waiting in most cases.
 
 Is 
there a way to
 end the simulation when $ftp is over with its 
transfer? In
 other
 words, is there a way to know the time when a 
transfer will be over?
 
 Thanks,
 Prateek Singhal
 
 --
 Prateek Singhal | mailto:singhal.
 [EMAIL PROTECTED]
 





-- 
Prateek Singhal | mailto:[EMAIL PROTECTED]





[ns] R: 802.11 dynamic bit rate change

2006-07-11 Thread Marco Fiore

Guillermo,

ns-2 does not offer native support for such phenomenon.
You 
can have a look at the patch at  www.reti.polito.it/fiore
which adds 
realistic propagation and ARF support.

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 11-lug-2006 11.50 AM
A: 
Ns Usersns-users@ISI.EDU
Ogg: [ns] 802.11 dynamic bit rate change


Hi,

In real 802.11b and 802.11g wireless cards the bit rate 
changes dynamically
depending on the channel conditions. If the card 
is working at 54Mbps and
is  receiving no ACK's from the receiver it 
will automatically switch to a
lower bit rate. Modulations used by 
lower bit rates are stronger against
errors, so the link may improve 
its performance at a lower speed (at least
some packets will arrive). 
There are some algorithms that rule the bit rate
such as the one used 
by the mad-wifi driver for atheros chips.
I would like to simulate 
this behavior in ns2. I'm new using ns2 and I was
not able to find the 
code which simulates this behaviour, is this feature
implemented on 
ns2? Is anybody else interested on this topic?

Thanks,

Guillermo





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

2006-07-17 Thread Marco Fiore

Nicholas,

I think the right way would be:

mean = [mean * (total_pkts-
1) + curr_pkt_delay] / total_pkts

where total_pkts represents the 
number of packets received, including
the current one (i.e., that 
determining the curr_pkt_delay contribution).

Regards,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 17-
lug-2006 3.06 AM
A: ns-users@ISI.EDU
Ogg: [ns] Calculating Mean end-
to-end delay.


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.





[ns] R: How to generate ocean node movement for wireless scenarios

2006-08-31 Thread Marco Fiore

Hi,

look for references to the 'setdest' command, which allows you
to 
define nodes movements during simulation.

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 30-ago-2006 7.02 PM
A: ns-users@ISI.EDU
Ogg: [ns] How to generate ocean node movement 
for wireless scenarios


Hi all,
   i'm trying to generate 
a scenario for node movement in an ocean 
environment. I've got a sets 
of data that is assocated with time, Longitude, 
Latitude, velocity ( 
U (cm/s)  V (cm/s)). Can anyone advice me how this can 
be done?

Thanks,
Kwang Yong







[ns] R: Re: Measuring physical data rate for wireless medium

2006-09-14 Thread Marco Fiore

Hi,

you could have a look at the wireless patch at
http://www.reti.
polito.it/fiore

regards,

Marco

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 14-set-2006 8.22 PM
A: Piyush 
Agrawal[EMAIL PROTECTED]
Cc: ns-users@ISI.EDU
Ogg: Re: [ns] 
Measuring physical data rate for wireless medium


ns does not 
currently model such fluctuations (i.e. ARF,RBAR, or OAR).
 the data 
rate used is always the same.

On 9/14/06, Piyush Agrawal piyush.
[EMAIL PROTECTED] wrote:

 Hi all,

 I wish to implement a 
feature for 802.11, in which I need to know the
 current physical 
data rate of the wireless medium form the C++ code. I know
 that in 
the real world scenario, the data rate fluctuates. Does ns model
 
such fluctuations and can the changing rates be measured?

 Thanks,
 Piyush

 --
 Piyush Agrawal
 4th Year Undergraduate Student,
 Department of Computer Science  Engineering,
 IIT Kanpur, India







[ns] R: RSSI measurement

2006-10-18 Thread Marco Fiore

Loreno,

in common/packet-stamp.h you can find the PacketStamp 
structure, which is
included in any ns packet. It stores information on 
the transmitted and received
power. You can access this information 
with, for example,  p-txInfo_.RxPr,
which returns the received power 
of packet p. Note that the original implementation
of ns does not 
include interference: if you want to add this feature, you can install
the patch for wireless support you can find at http://www.reti.polito.
it/fiore

bye,

Marco

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 18-ott-2006 12.38 AM
A: [EMAIL PROTECTED]
EDU
Ogg: [ns] RSSI measurement


Hi All,

does anybody know how 
do I measure the RSSI between two wireless nodes?? As
far as I have 
seen in the archive, this question has been posted during
years in 
this list without any reply. I will be extremelly thankful if
somebody 
had some hint about it.

Regards,

Loreno





[ns] R: Re: R: RSSI measurement

2006-10-19 Thread Marco Fiore

Loreno,

you may want to have a look at the following paper:
Naumov et 
al., The Study of Inter-Vehicle Ad Hoc Networks on Realistic Vehicular 
Traces, MOBIHOC 2006.
It's about 802.11 and vehicular networks, but it 
exploits the RSSI information to estimate the distance between
nodes.

Regards,

Marco

Messaggio originale
Da: [EMAIL PROTECTED]
com
Data: 18-ott-2006 7.58 PM
A: Marco Fiore[EMAIL PROTECTED]
Cc: ns-users@isi.edu
Ogg: Re: R: [ns] RSSI measurement

Hi Marco, 
very thanks to your reply!

I will take a look at the structure you 
said and doing some tests. Based in
what you said, probably this 
solves my problem. A priori I am only
considering simpler scenarios 
where I do not need to deal with
interferences. My actual concern is 
only finding a way of estimating the
distance between two bluetooth 
devices, and I thought RSSI was the
straingforward solution...

Regards,

Loreno

On 10/18/06, Marco Fiore [EMAIL PROTECTED] 
wrote:

 Loreno,

 in common/packet-stamp.h you can find the 
PacketStamp
 structure, which is
 included in any ns packet. It 
stores information on
 the transmitted and received
 power. You can 
access this information
 with, for example,  p-txInfo_.RxPr,
 
which returns the received power
 of packet p. Note that the original 
implementation
 of ns does not
 include interference: if you want 
to add this feature, you can install
 the patch for wireless support 
you can find at http://www.reti.polito.
 it/fiore

 bye,

 
Marco

 Messaggio originale
 Da:
 
[EMAIL PROTECTED]
 Data: 18-ott-2006 12.38 AM
 A: ns-
[EMAIL PROTECTED]
 EDU
 Ogg: [ns] RSSI measurement
 
 
 Hi All,
 
 does anybody know how
 do I measure the RSSI between two 
wireless nodes?? As
 far as I have
 seen in the archive, this 
question has been posted during
 years in
 this list without any 
reply. I will be extremelly thankful if
 somebody
 had some hint 
about it.
 
 Regards,
 
 Loreno
 








[ns] R: TCP fixed data transfer

2006-11-06 Thread Marco Fiore

Andrea,

if you want to transmit 1 Mbps every 10 mins,
simply use a 
recursive function like:

proc sendData {} {
global ns_

puts time : [$ns_ now]
$ns at [$ns_ now] $ftp send 1e6 
$ns_ at [expr [$ns_ now] + 600.0] sendData
}
$ns_ at 600.0 
sendData

which every 600 sec send 1MB and reschedules itself.
$ftp 
is the FTP instance attached to TCP.

bye,

Marco


Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 5-nov-2006 6.56 PM
A: ns-
usersns-users@ISI.EDU
Ogg: [ns]  TCP fixed data transfer


Hi. I 
need to transfer 1MB every 10 minutes on wireless lan with TCP. How
can I stop tcp after 1MB is sent?

Thx for help and sorry for my 
poor english
Andrea M





[ns] R: how to calculate end to end delay in wireless scenario

2006-11-15 Thread Marco Fiore

Hi,

have a look at trace2stats, at http://www.reti.polito.it/fiore

bye,

Marco

Messaggio originale
Da: [EMAIL PROTECTED]
Data: 15-nov-2006 10.38 AM
A: ns usersns-users@ISI.EDU
Ogg: [ns] 
how to calculate end to end delay in wireless scenario



 hi all,
  
 can any one tell me, how to calculate end to end delay in 
wireless scenario from the trace output or in any other way.
 
 its 
urgent please.
 
 thanks in advance
 venkat.
  

-
  Find out what India is talking 
about on  - Yahoo! Answers India 
  Send FREE SMS to your friend's 
mobile from Yahoo! Messenger Version 8. Get it NOW

   
-
 Find out what India is talking 
about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's 
mobile from Yahoo! Messenger Version 8. Get it NOW





[ns] R: wimax and Wifi TxPower default value

2006-11-23 Thread Marco Fiore

Ramzi,

you can use the Tcl command

Phy/WirelessPhy set Pt_ power

Look in tcl/lib/ns-default.tcl for default value and
other wireless phy 
parameters.

bye,

Marco

Messaggio originale
Da: ramzi.
[EMAIL PROTECTED]
Data: 22-nov-2006 4.06 PM
A: ns-users@ISI.EDU
Ogg: 
[ns] wimax and Wifi TxPower default value


Hi all,
Could someone 
tell me what is the default Tx Power for 802.11 ns
implementation and 
what could be a 802.16 default Tx Power.
How do we set Tx Power values 
from C++ code and TCL script ?
Best regards,
 Ramzi TKA





[ns] R: Phy/WirelessPhy set Pt_ ?

2006-11-27 Thread Marco Fiore

Hi,

Array should be array...

bye,

Marco

Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 26-nov-2006 5.42 
PM
A: ns-users@ISI.EDU
Ogg: [ns]  Phy/WirelessPhy set Pt_ ?


I 
am attemped to use the code line [[lindex [$node_ (0) Array get  
netif_] 1] set Pt_ 0,5] and you giving the error ?invalid command 
name  
?0,5??. somebody knows to say me why?

http://decision.csl.
uiuc.edu/~kawadia/SOFTWARE/ns2-txpower-describe.txt


Thank you!


This 
message was sent using IMP, the Internet Messaging Program.







[ns] R: send off packet on different link

2006-12-05 Thread Marco Fiore

Luca,

the routing of multiple flows generated by the
same source node 
is determined by:
1. destination node of flow
2. routing algorithm 
employed

In your case, if the two flows are directed to two
different 
nodes, they will probably choose different
(not necessarily disjoint) 
routes. If the flows are
directed to the same desitnation they will 
select
the same route, and you'll have to play with
routing to avoid 
that.

bye,

Marco

Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 5-dic-2006 6.29 PM
A: ns-usersns-
[EMAIL PROTECTED]
Ogg: [ns] send off packet on different link


Hi,

if I have a node from that issue themselves different link, is 
possible to send off the packet on different link in base to the flowid

Thanks
Regards
Luca


--
Francesco ha 
perso ben 45 Kg! Scopri come! Clicca qui
http://click.libero.
it/webnation05dic06








[ns] R: Rate adaptation in ns-2

2006-12-14 Thread Marco Fiore

Hi,

if you refer to rate-based congestion control, the first result
by 
searching Google is:
Source code for RAP in ns2
http://netweb.usc.
edu/reza/RAP/NewRAP/

If you refer to rate adaptation at MAC layer in 
wireless networks,
by looking at the ns mailing list archives, a patch 
is available at:
http://reti.polito.it/fiore

Next time please avoid 
posting to the mailing list without
searching the web and the mailing 
list archives.

bye,

Marco

Messaggio originale
Da: emin.
[EMAIL PROTECTED]
Data: 12-dic-2006 9.05 PM
A: ns-users@ISI.EDU
Ogg: [ns] Rate adaptation in ns-2


Hi all ns-2 users,

Is there 
anyone that implemented rate adaptation over ns-2 before ? We hope
RAP 
to simulate. And end-to-end (IP) network to simulate with rate
adaptation.

Need a help as soon as possible...
Thanks in advance.





[ns] R: obstacle mobility model

2007-03-03 Thread Marco Fiore


Ibrahim,

have a look at: Amit Jardosh, Elizabeth M. Belding-Royer, 
Kevin C. Almeroth, and Subhash Suri. Towards Realistic Mobility Models 
for Mobile Ad hoc Networks. In the Proceedings of MOBICOM, San Diego, 
CA, September 2003.

bye,

Marco


Messaggio originale
Da: 
[EMAIL PROTECTED]
Data: 27-feb-2007 2.21 AM
A: [EMAIL PROTECTED]
EDU
Ogg: [ns] obstacle mobility model


Hi ALL
i have 
simulated (DSR,AODV,DSDV) using Manhattan and  Random Waypoint.I want 
to check the performance of these adhoc   protocols in real environment.
i looked  for added obstacle mobility model for  more realistic work. 
thanks for any suggestion with regards
ibrahim khider

 
-
Finding fabulous fares is fun.
Let 
Yahoo! FareChase search your favorite travel sites to find flight and 
hotel bargains.





[ns] R: SINR and NS-2 802.11 simulations

2007-03-08 Thread Marco Fiore


Hi,

ns-2 physical layer modeling is notoriously weak.
A patch solving 
some of the issues you mentioned
is avaialble at http://www.reti.polito.
it/fiore

bye,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
cmu.edu
Data: 8-mar-2007 3.21 AM
A: ns-users@ISI.EDU
Ogg: [ns] 
SINR and NS-2 802.11 simulations


Hi,

I have a question about NS-
2's 802.11 modeling (or lack there off) of
SINR/SNR. I've been going 
through wireless-phy.cc and as far as I can
tell,there's no SINR 
modeling at all. To receive a packet successfully,
the receiving side 
checks if the received signal power strength is
greater than both 
CSThreshold and RXThreshold. 
There's some mention of a capture 
threshold where if another packet is
received at the same time, the 
first packet will be received
successfully if its signal strength is 
CPThresh* the other signal.
However, I don't see it being implemented 
any where.
Am I reading this right? Is there no SNR or SINR modeling 
at all?

And are there any patches that implement a more accurate 
physical layer
and are good for MANET simulations? 

Thank you.

Chun Ming Lee






[ns] R: Re: Awk script for Jitter in NS2

2007-03-12 Thread Marco Fiore


For the question on the jitter, you can find the formulae
in the read.
me. There's no right formula, I used to
employ the first, which is 
defined in RTP's RFC.
I added the other three upon request of other 
users,
who usually employed them for jitter calculation.

Regards,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 11-mar-2007 11.13 PM
A: ns-users@ISI.EDU
Ogg: Re: [ns] Awk 
script for Jitter in NS2


Regarding your second question, my 
understanding is that -Hs is the
node at which the event is observed, 
and not necessarily the source.
In receive events, -Hs is the node 
receiving the packet and hence
Hs = Hd (the receiver is the observer 
of the event) and other
subsequent fields will report the actual 
source.


On Sun, 11 Mar 2007 18:01:43 -0400
Shaili Desai 
[EMAIL PROTECTED] wrote:

 
 Hello all
 
 I wanted to 
know if anyone has used trace2stats v0.5b awk scripts for
 wireless 
formats, and if you can explain me the jitter file in it. I
 mean we 
have 4 different values of jitter, and the calculations in
 the 
script dont explain me fully which jitter you would look for
 finding 
out whats the jitter for that particular communication.
 Can someone 
please help me for this?
 It would be a great help.
 Also, I had 
asked this que before,  I wanted to know during post
 analysis 
generally we look at the AGT level right? But in my
 simulations, I 
am getting AGT in 's' but if that AGT in 's' is for
 lets say Hs-2 to 
Hd-0 then at receiving I m not getting r with Hs-2
 and Hd-0, then 
does it mean ther is a flaw? Also I am getting r with
 Hs and Hd both 
0.
 
 Can anyone please help me with this.
 
 Thanks in 
advance.






Re: [ns] Question about wireless testing ?

2007-03-19 Thread Marco Fiore


The output is correct. It's just some control messages
ns-2 gives at 
the beginning and end of simulation.
If you see NS EXITING... 
everything went fine and
you can find the results in your tracefile :)

bye,

Marco

Original Message
From: [EMAIL PROTECTED]
Date: Mar 17, 2007 5:31 PM
To: ns-users@ISI.EDU
Subj: [ns] 
Question about wireless testing ?


Hi,
I've a question about NS-
2.30:
When I run some example about wireless (or wireless sensor) like 
: diffusion (in ns-2.30\tcl\ex or ns-2.30\tcl\ex\diffusion...)...I 
received the same result like this :
  num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-
mitf.tcl
INITIALIZE THE LIST xListHead

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - 
Calc highestAntennaZ_ and distCST_
  highestAntennaZ_ = 1.5,  
distCST_ = 550.0
SORTING LISTS ...DONE!
NS 
EXITING...
  I don't know this is right or wrong ?If wrong,can you 
help me to correct it ...?
Thanks so much...!



 
-
Be a PS3 game guru.
Get your game 
face on with the latest PS3 news and previews at Yahoo! Games.





[ns] R: problem in delay and throughput script

2007-03-23 Thread Marco Fiore


Ibrahim,

download the latest version from
http://reti.polito.it/fiore
and follow the read.me for instructions on how to run the scripts.

bye,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
com
Data: 22-mar-2007 10.19 AM
A: ns-users@ISI.EDU
Ogg: [ns] 
problem in delay and throughput script


Hi all,
  I have worked 
for  TRACE format .I have used  delay.awk,throughput.awk for my tcl 
progrm 
It runs successfully for delay but not for thrpughput.
for 
throughput error :
 awk: thrput.awk:44: (FILENAME=hybrid.tr 
FNR=122048) fatal: division by zero attempted
while executing
 
awk -f thrput.awk hybrid.tr  result.tr

for delay
  it runs 
successfully.But the problem is that the new file generated (.tr) is 
empty.The new file has not any data.
   
  # throughput.awk
   BEGIN 
{
 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
 }
 # 
Trace line format: new
 if ($2 == -t) {
 
event = $1
 time = $3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 pkt_size = $37
 }
 # Calculate 
total received packets' size
 if (flow_id == flow  event == 
r  node_id == dst) {
 if (flow_t != sctp) {
 recv += pkt_size - hdr_size
 #printf(recv[%g] = %g %g\n,node_id,pkt_size
  -hdr_size,recv)
 } else {
 
# Rip off SCTP header, whose size depends
 # 
on the number of chunks in each packet
if 
(pkt_size != 448  pkt_size != 864  
  pkt_size != 1280) pkt_size = 
0
 if (pkt_size == 448) pkt_size = 400
 if (pkt_size == 864) pkt_size = 800
 if (pkt_size == 1280) pkt_size = 1200
 recv += pkt_size
 
#printf(recv[%g] = %g -- tot: %
  g\n,node_id,pkt_size,recv)
 }
 }
 }
 END {
 printf(%10g %10s 
%10g\n,flow,flow_t,(recv/simtime)*(8/1000))
 }

  #Delay.awk
BEGIN 
{
 for (i in send) {
 send[i] = 0
 }
 for (i in recv) {
 recv[i] = 0
 }
 delay = avg_delay = 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
 }
 # Trace line format: new
 
if ($2 == -t) {
 event = $1
 time = 
$3
 node_id = $5
 flow_id = $39
 pkt_id = $41
 }
 # Store packets 
send time
 if (flow_id == flow  node_id == src  send
[pkt_id] == 0  (event == + || event 
  ==s)) {
 
send[pkt_id] = time  
 }
 # Store packets 
arrival time
 if (flow_id == flow  node_id == dst  event 
== r) {
 recv[pkt_id] = time
}
 }
 END {
 # Compute average delay
 for (i in recv) {
 if (send[i] == 0) {
 printf
(\nError %g\n,i)
 }
 delay += recv
[i] - send[i]
 num ++
 }
 printf(%
10g ,flow)
 if (num != 0) {
 avg_delay = 
delay / num
 } else {
 avg_delay = 0
 }
 printf(%10g\n,avg_delay*1000)
}
   
  thanks
   
  ibrahim

 
-
Don't be 
flakey. Get Yahoo! Mail for Mobile and 
always stay connected to 
friends.





[ns] R: analyse trace files

2007-04-06 Thread Marco Fiore


Hi Stephan,

have a look at tracegraph or trace2stats.

bye,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 6-apr-
2007 7.37 AM
A: ns-users@ISI.EDU
Ogg: [ns] analyse trace files


Hello again!
Think my last Mail was lost :-(
I'm using ns-2.29 and 
do some wireless simulations.
Now i'm looking for some scripts to 
analyse the .tr Files. Need some
scripts that give me throughput, 
Number of lost/received packets and so
on.
Thanks in advance
Stephan









[ns] R: why RTP header in UDP's sendmsg() ?

2007-04-06 Thread Marco Fiore


Hi Timo,

my guess is that those infos can be useful for
statistics 
collection. Is the RTP header considered
in the UDP header size? If 
not, it is an invisible
header, put there just for informational 
purposes
and not affecting the simulation outcome.

bye,

Marco



Messaggio originale
Da: [EMAIL PROTECTED]
Data: 4-apr-
2007 4.37 PM
A: ns-users@ISI.EDU
Ogg: [ns] why RTP header in 
UDP#39;s sendmsg() ?


Hiya,

I'm not sure if this issue rather 
belongs to the dev-mailinglist instead
of the users' one but since 
it's just a question and not some sort of
contribution I'll try here 
first:

I've looked at the UDP code (in apps/udp.cc) and came to 
realize that
everytime the sendmsg() function is called a RTP header 
is put on top of
the packet, including (talk burst) flags, sequence 
number, and a time
stamp.

Just wondering: What's the rationale 
behind this?


Cheers,

--Timo






[ns] R: how can I graphically show ad hoc mobile nodes using nam?

2007-04-06 Thread Marco Fiore


Ciao,

other than nam, you can try with Huginn:
http://www.informatik.
uni-mannheim.de/pi4.data/content/projects/huginn/
or iNSpect:
http:
//toilers.mines.edu/Public/NsInspect

bye,

Marco


Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 6-apr-2007 7.12 PM
A: ns-
usersns-users@ISI.EDU
Ogg: [ns] how can I graphically show ad hoc 
mobile nodes using nam?


Hi All,
I am new in NS world. I am 
running same tlc sample scripts and showing nodes and links using nam.
Can anybody tell me, after having defined a topology of a mobile ad 
hoc network and having defined the node movement, how can I graphically 
show the network topology.
Is it possible to see the node movement and 
the trasmission range?
Thanks in advance for any reply,
Seba


--
Leggi GRATIS 
le tue mail con il telefonino i-mode™ di Wind
http://i-mode.wind.it/









[ns] R: analyse trace file- packet delay

2007-04-06 Thread Marco Fiore


Hi,

you can use Perl/awk to parse the tracefile,
or have a look at 
tracegraph or trace2stats
(google for them).

Also, you find a ton of 
mails on the topic in
the mailing list archives...

bye,

Marco



Messaggio originale
Da: [EMAIL PROTECTED]
Data: 6-apr-2007 6.18 PM
A: ns-users@ISI.EDU
Ogg: [ns] analyse trace file- packet delay


Hello,

I am new to NS2.

I want to find packet delay from node 2 
to node 3. Topology is like

2-
0--1---3

0-1 is a 
bottleneck link

I got the output trace file of format (sample)

r 
4.030256 10 1 ack 40 --- 5 10.0 5.0 74 579
+ 4.030256 1 0 ack 40 
--- 5 10.0 5.0 74 579
- 4.030256 1 0 ack 40 --- 5 10.0 5.0 74 
579
r 4.031008 4 0 tcp 1040 --- 4 4.0 9.0 69 578
+ 4.031008 0 1 
tcp 1040 --- 4 4.0 9.0 69 578
- 4.031008 0 1 tcp 1040 --- 4 
4.0 9.0 69 578
r 4.031824 0 4 ack 40 --- 4 9.0 4.0 66 560
+ 
4.031824 4 0 tcp 1040 --- 4 4.0 9.0 77 593
- 4.031824 4 0 tcp 1040 
--- 4 4.0 9.0 77 593
r 4.031872 1 11 tcp 1040 --- 6 6.0 11.0 
41 552

now I have to find minimum/maximum/average Packet delay from 
node 2 to node3?
Please tell me the idea.

Thanks
Rinky







[ns] R: Help in simulating Bianchi's results

2007-04-12 Thread Marco Fiore


Hi Riz,

1. I am not sure about how to generate a scenario where all 
the
nodes are contending as in my case of 10 nodes only 0 2 4 6 8 are
contending and the other 1 3 5 7 9 are the sink or them so how can I
come with a scenario where all nodes are coteding as in Bianchi's 
paper

attach one traffic source and one traffic sink to each node.

2. whether cbr interval 0.005 can meet the saturation requirement

you 
are in saturation conditions when each node generates
more traffic than 
it can send. Broadly, it depends on the bandwidth
you are using and one 
the number of contending nodes, but you
can choose a very high value, 
so that even a single source would
saturate the channel (e.g. if you 
are using 11Mbps as MAC datarate,
you can set the CBR rate to 11Mbps, 
and you're sure your nodes
are backlogged).

3. I cannot see any RTS 
and CTS in the trace file why?

because they are off. RTSthreshold_ 
controls the RTS/CTS
(frames smaller than this value go without 
RTS/CTS, frames
bigger require RTS/CTS, defualt is 3000 - i.e. never 
use it),
so the try adding the line
$val(mac) set RTSthreshold_ 0

bye,

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 11-apr-2007 10.27 AM
A: isi[EMAIL PROTECTED]
Ogg: [ns] Help 
in simulating Bianchi#39;s results


Hi,
 
I am new to Ns and am 
trying to simulate the results for the paper:
 
G. Bianchi, 
Performance Analysis of the IEEE 802.11 Distributed
Coordination 
Function,IEEE JSAC, vol. 18, no. 3, March 2000 
 
My script is given 
below when I am running it with DumbAgent as the
routing protocol I 
don't see any activity in the trace file and the
throughput is zero 
but with a routing protocol I can get some throughput
and I understand 
why this is happening but I don't get why my script
with dumbagent is 
not working. I am using the parameters from Bainchi's
paper
 
I have 
a few questions:
 
1. I am not sure about how to generate a scenario 
where all the
nodes are contending as in my case of 10 nodes only 0 2 
4 6 8 are
contending and the other 1 3 5 7 9 are the sink or them so 
how can I
come with a scenario where all nodes are coteding as in 
Bianchi's paper
2. whether cbr interval 0.005 can meet the saturation 
requirement
3. I cannot see any RTS and CTS in the trace file why?
 
 
# Script to reproduce the results of Bianchi's paper
# 
==
# Define options
# 
==
set val(chan)   Channel/WirelessChannel;# channel type
set val(prop)Propagation/FreeSpace  ;# radio-
propagation
model
set val(netif)
Phy/WirelessPhy;# network
interface type
set val
(mac)Mac/802_11 ;# MAC type
set val
(ifq)  Queue/DropTail/PriQueue;# interface queue
type
set val(ll)LL ;# link layer 
type
set val(ant) Antenna/OmniAntenna;# antenna 
model
set val(ifqlen)  50 ;# max 
packet in ifq
set val(nn)  10  ;# 
default number
of mobilenodes
set val(rp)   
DumbAgent ;# routing protocol
DumbAgent
set val
(x)   100.0   ;
set val
(y)   100.0   ;
set val
(simtime)  30.0; #sim time 600
 
# 
==
# Main Program
# 
==
set ns_ [new Simulator]
set tracefd [open bianchi.tr 
w]
$ns_ trace-all $tracefd
 
set namtrace [open bianchi.nam 
w]   ;# for nam tracing
$ns_ namtrace-all-wireless $namtrace 
$val(x) $val(y)
#$ns_ use-newtrace
 
#
# set up topography object
#
 
set topo   [new Topography]
$topo load_flatgrid $val(x) $val
(y)
 
#
# Create God
#
 
set god_ [ create-god $val(nn) ]
 
# 
Parameters for 802.11
$val(mac) set SlotTime_ 0.50
$val(mac) set 
SIFS_ 0.28
$val(mac) set PreambleLength_ 0
$val(mac) set 
PLCPHeaderLength_ 128
$val(mac) set PLCPDataRate_ 1.0e6
$val(mac) set 
DIFS_ 0.000128
$val(mac) set dataRate_ 1.0e6
$val(mac) set basicRate_ 
1.0e6
$val(mac) set CWMin_ 31
$val(mac) set CWMax_ 255
#$val(mac) 
set RTShreshold_ 3000
 
set chan_1_ [new $val(chan)]
 
set rng [new 
RNG]
$rng seed 1
set rand1 [new 
RandomVariable/Uniform]
$rand1 use-rng $rng
$rand1 
set min_ -50.0
$rand1 set max_ 50.0
 
#
#  Create the 
specified number of nodes 
#  configure node
 
 
$ns_ node-
config -adhocRouting $val(rp) \
 -
llType $val(ll) \
 -macType $val
(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
  

[ns] R: Simulation with real payload

2007-04-14 Thread Marco Fiore


Anand,

there's a traffictrace agent somewhere in the ns distribution.
Look for traffictrace.cc/h in the source tree to get the actual
Tcl 
class name.

Marco


Messaggio originale
Da: [EMAIL PROTECTED]
Data: 12-apr-2007 3.54 AM
A: [EMAIL PROTECTED]
Ogg: [ns] Simulation 
with real payload


Hi,

Can anyone please tell me if it is 
possible with NS2 to give an input file as
real payload for the 
simulation traffic like video files?

Thanks,
Anand






[ns] R: Scheduler error in 802.11

2007-05-07 Thread Marco Fiore


Bahman,

ususally the Event UID not valid! error means that an event
in the event list has a time that is lower than the current time,
or 
that the handler (the timer in your case) was deleted before
the event 
was extracted from the list.

So I suggest you to look for strange 
behaviors of your code,
which may cause the event to be scheduled with 
a negative
time.

hope this helps,

Marco


Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 4-mag-2007 5.30 PM
A: 
ns-users@ISI.EDU
Ogg: [ns] Scheduler error in 802.11


Hi,

I'm 
simulating a simple wireless (802.11b Basic Mode) experiment.  At the 
end of the
simulation, I get this error:

   Scheduler: Event UID 
not valid!

I understand that the message is being initiated from 
/ns/common/scheduler.cc file line 93 only because the UID of an event 
is 
positive. In other words, an event with positive UID cannot be 
scheduled 
again.

Now, I'm using a timer to introduce a fixed delay 
for each packet -either 
control or data packet- passing through the 
interface layer.  When I 
introduce 1 to 39us of delay to my system, 
the simulation works perfectly 
and as expected (i.e. there is a fixed 
delay for the transmission of each 
packet reflected into my trace 
file).  However, when I increase this delay 
to 40us and above, then  
run the simulation I get the above error.  I have 
adjusted the 
timeouts in the ns/mac/mac-802_11.cc as well so that my packets 
are 
not all dropped.

Please let me know if you have any ideas or 
thoughts about this.  Where do 
you think I should look at first?  
What could the problem be?

Thanks,

Bahman

_
Txt 
a lot? Get Messenger FREE on your mobile.  
https://livemessenger.
mobile.uk.msn.com/






[ns] R: Re: Ask Google is not a polished answer, isn't it?

2008-04-28 Thread Marco Fiore


Dear Sidney and Hagen,

actually there's a way to include real 
application-level data in an ns-2 packet.
The manual has one section on 
this: http://www.isi.edu/nsnam/ns/doc/node516.html
Basically, it's all 
about defining an Application Data Unit (ADU) containing all the
desired data, to be attached to the basic packet.

bye,

Marco




[ns] R: throughput of 802.11b

2008-05-12 Thread Marco Fiore


You might find the following link interesting:

http://www.ece.rice.
edu/~jpr/ns/docs/ns-802_11b.html

bye,

Marco


Messaggio 
originale
Da: [EMAIL PROTECTED]
Data: 11-mag-2008 10.46 AM
A: 
ns-users@ISI.EDU
Ogg: [ns] throughput of 802.11b


Hi all,
I 
have tried to run 802.11b in ns2, and I use the following setting:

Mac/802_11 setSlotTime_0.20;# 20us

Mac/802_11 setSIFS_0.10;# 10us

Mac/802_11 setPreambleLength_  144 ;# 144 bits

Mac/802_11 setPLCPHeaderLength_48  ;# 48 bits

Mac/802_11 setPLCPDataRate_1.0e6   ;# 1 Mbps

Mac/802_11 setdataRate_11.0e6  ;# 11 Mbps

Mac/802_11 setbasicRate_   1.0e6   ;# 1 Mbps
 
However, it turns out that the actually achieved throughput of a 
tcp connection and a cbr connection is around 1.34Mbps and 3Mbps 
respectively, can anyone tell me why?

Thanks in advance!