[ns] URGENT HELP object tracking with wireless sensor networks in NS 2 !!!

2006-04-03 Thread Hadi JamaliRad

Hi all,
  I want to simulate a sensor network for example with 10 sesnors and an object 
passing between them, sensors should sense the object and track it and tell the 
base station, but i cant find any help file with examples of such simulations 
!!!
  how to simulate such networs in NS2 ?? if you have worked on it please help 
me with sending manuals or help files containg the base steps of such 
simulations. 
  thanks in advance .
  Regards.
  Hadi.


-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2ยข/min or less.


[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] a comparison between the wireless routing protocols

2006-04-03 Thread Alexandra Cioroianu

Hello ns users!
 I,m working with ns 2.29 in Mandriva 2006 and i need to make a comparison 
between the  existing wireless routing protocols(DSDV, AODV, DSR...). I thought 
about creating Xgraph files that would show the traffic, delay, speed...,but i 
don't know what topologies to use to be relevant. Shall i start with the 
examples in the tutorial?
 Has anyone made this before or anyone knows some steps to be followed? Any 
ideas, sugestions would help me.
 Thank you in advance!
 Regards, Alexandra
 

-
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.


Re: [ns] a comparison between the wireless routing protocols

2006-04-03 Thread Daniel Mahrenholz

Hello Alexandra,

Alexandra Cioroianu schrieb:
 Hello ns users!
  I,m working with ns 2.29 in Mandriva 2006 and i need to make a comparison 
 between the  existing wireless routing protocols(DSDV, AODV, DSR...). I 
 thought about creating Xgraph files that would show the traffic, delay, 
 speed...,but i don't know what topologies to use to be relevant. Shall i 
 start with the examples in the tutorial?
  Has anyone made this before or anyone knows some steps to be followed? Any 
 ideas, sugestions would help me
An important advice from me: test the performance of the protocols using 
different propagation models - at least compare them using the 
TwoRayGround and the Shadowing model. Additionally, it can't hurt to 
have some bottlenecks in your topology. Either place the nodes by hand 
or use a random topology e.g. on a 100x5000 m grid.

Daniel.



[ns] [bug] checking system version (for dynamic loading)... ./configure: line 7068: syntax

2006-04-03 Thread Prashant Khanna

[Bug Report]

-
Category:  Installation Failure
Package:   ns 2.29
OS:Fedora Core 5
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=


-
Description:

Description of Problem:
The ns2-allinone for 2.29 in not installing.
Actual Results:
(describe what the application did after performing the above steps)



[ns] MPEG source traffic

2006-04-03 Thread Daniele

Hi fellow,
someone know how can i simulate a MPEG source traffic?
i wanna put this source on a node and monitor the delay trought a diffserv
scenario.
please answer

Cheers
--
Daniele


Re: [ns] a comparison between the wireless routing protocols

2006-04-03 Thread Martina Umlauft

To follow up on this:

Make a simulation plan first. What do I mean by that? I mean that, 
before you implement anything, think about WHAT you want to test and how 
you could show that. I am currently attending a lecture on simulation 
and our professor really stressed that most people doing computer 
simulations focus too much on the implementation and forget about the 
planning. He also said that planning should be 30-40% of the total work...

I don't work with wireless routing protocols, but this is what I'd do:

- ask myself what are the strengths/weaknesses of these protocols. For 
this you'll have to read the theorethical papers describing them and to 
understand how they are optimizing the network. Basically, routing is an 
optimization problem but it is not defined what to optimize for. eg. 
quick set-up of routes? guaranteeing route correctness? little 
signalling overhead? quality of routes once they are set up? etc.

- now compare the theorethical goals of these protocols with each other. 
How could they be compared in a live setting? eg. is one of them tuned 
to a specific situation and the other one more to another scenario? Can 
they be compared at all or would you be comparing apples with oranges? 
How can you set up obstacles or bottlenecks for the protocols to see 
if they deal effectively with these difficulties?

- definitely check the papers MANET simulations - the incredibles by 
Kurkowski, Camp, and Colagrosso as well as The mistaken axioms of 
wireless-network research by Kotz, Newport, and Elliot. Think very hard 
about the PHY layer model you are going to use and whether/how this PHY 
model will influence your results. If you check the mailing list, you 
will find that some newer implementations have been announced - maybe 
you'll need to check them out.

- to make your own life more simple: how can you seperate concerns so 
you really can test for cause and effect. I made this mistake in my own 
simulations; I tried to set up a typical scenario which got very, very 
complicated and I couldn't show anything anymore because the effects I 
saw were caused by multiple causes which all interacted/interfered with 
each other. I have now gone one step back and try to work out simple 
scenarios which test for only one effect first. When I have a better 
understanding (after doing several simple tests) I will try the complex 
scenario again. With the insight gained through the simple settings I 
might even be able to interpret what is happening there then :-)

- only AFTER you have thought theoretically about all that and planned 
your simulation, sit down and actually start coding.


Good luck with your simulations!

 Martina Umlauft

Daniel Mahrenholz schrieb:
 Hello Alexandra,
 
 Alexandra Cioroianu schrieb:
 Hello ns users!
  I,m working with ns 2.29 in Mandriva 2006 and i need to make a comparison 
 between the  existing wireless routing protocols(DSDV, AODV, DSR...). I 
 thought about creating Xgraph files that would show the traffic, delay, 
 speed...,but i don't know what topologies to use to be relevant. Shall i 
 start with the examples in the tutorial?
  Has anyone made this before or anyone knows some steps to be followed? Any 
 ideas, sugestions would help me
 An important advice from me: test the performance of the protocols using 
 different propagation models - at least compare them using the 
 TwoRayGround and the Shadowing model. Additionally, it can't hurt to 
 have some bottlenecks in your topology. Either place the nodes by hand 
 or use a random topology e.g. on a 100x5000 m grid.
 
 Daniel.



Re: [ns] Newbie questions on wpan demo

2006-04-03 Thread Ahmad Khayyat

Hi Bruce,

Read chapeter 13 in ns-manual.. I think you are looking for Error Model
instead of Loss Model.
The commands you are using are for wired networks only, if I am not
mistaken.

Bruce Who wrote:

hi, Ahmad:

=== 2006-04-03 02:05:24 Ahmad Khayyat wrote: ===

  

Hi Bruce,

If you enable AGT and RTR tracing (in node-config command in the tcl
file), you will see that when a tcp packet is sent out of the RTR layer,
its size is larger than its size when sent by the AGT layer. This
reflects the fact that the RTR layer adds some headers that contribute
to the packet size. The same thing happens when the packet is sent by
the MAC layer; it gets a little bigger due to MAC headers.

For the inconsistent packet size in the MAC layer between send time and
recv time, my guess is that the packet size is measured in the receive
event after removing the MAC headers. You will see that the received
packet size in the MAC is equal to the packet size sent by RTR, which is
the size before adding the MAC headers. Having that said, my guess is
that the packet size reported in the send event is the correct size sent
out of the MAC layer. In that case, the packet size in the receive event
is the size that the MAC layer reports to higher layers.



I agree with you. I find that all beacon/ack packets are exactly 7 bytes.
I guess this is a bug of ns2?

And I still cannot apply lossmodel to wpan. I modified 
ns-2.29\tcl\ex\wpan\wpan_demo2.tcl this way:

=
proc seterrmodel { src dst } {
global ns_ val node_
set errmodel [new ErrorModel]
$errmodel set rate_ $val(per)
$errmodel set unit_ $val(errUnit)
eval $ns_ lossmodel $errmodel \$node_($src) \$node_($dst)
}

...

seterrmodel 0 1
=

I added above code into wpan_demo2.tcl, and got the following traceback:

$ ns wpan_demo2.tcl
num_nodes is set 7
INITIALIZE THE LIST xListHead

Traffic: ftp
Acknowledgement for data: on
invalid command name 
while executing
$link errormodule $lossobj
(procedure _o3 line 3)
(Simulator lossmodel line 3)
invoked from within
_o3 lossmodel _o158 $node_(0) $node_(1)
(eval body line 1)
invoked from within
eval $ns_ lossmodel $errmodel \$node_($src) \$node_($dst)
(procedure seterrmodel line 7)
invoked from within
seterrmodel 0 1
invoked from within
if { $val(traffic) == ftp } {
   puts \nTraffic: ftp
   #Mac/802_15_4 wpanCmd ack4data off
   puts [format Acknowledgement for data: %s [Mac/8...
(file wpan_demo2.tcl line 231)

Could anyone give me any clue?

  

Bruce Who wrote:



hi, Ahmad:

=== 2006-03-31 23:40:43 Ahmad Khayyat wrote: ===

 

  

2) assoPermit means whether the node should permit other nodes to 
associate with it so that it becomes their coordinator. Look at the 
802.15.4-2003 standard for details.

5) This is not how LossModel is used. Consult ns-manual for the correct 
usage. It still applies for wpan.
   



Thanks, I'll look into the document.

And I have another question. This is a snippet from wpan_demo2.tr, I find 
that all tcp packets sent out is always 7 bytes bigger than the received 
packets. Why do they not have the same size? Then which one(97 or 90) is the 
real size of the tcp packets?

s 11.928192000 _0_ MAC  --- 255 tcp 97 [0 5 0 800] --- [0:2 5:0 30 5] 
[133 0] 0 0
s 11.931712033 _5_ MAC  --- 255 ACK 5 [0 0 5 0] 
r 11.932064067 _0_ MAC  --- 255 ACK 5 [0 0 5 0] 
r 11.932704033 _5_ MAC  --- 255 tcp 90 [0 5 0 800] --- [0:2 5:0 30 5] 
[133 0] 1 0

 

  

Bruce Who wrote:

   





Hi, all:

Recently I begin to learn how to use ns2 to run wpan simulations, and 
stumbled
by some problems, hope someone could help me out.

1)I found there are some commands like this:
eval $ns_ attach-agent \$node_($src) \$udp_($src)

why don't we just use this command?

$ns_ attach-agent $node_($src) $udp_($src)

2) for this command
$node sscs startCTDevice isFFD = 1 assoPermit = 1 txBeacon = 0
beaconOrder = 3 SuperframeOrder = 3

what does assoPermit mean?

3) I ran wpan_demo2.tcl and found that all extended addresses of nodes are
 [0]. Is it necessary to set the address to different values by ourselves?

4) I ran nam wpan_demo2.nam and found that data stream is only seem 
between
 PANCoor(node0) and node1. But we have such statements in the 
 wpan_demo2.tcl
 script:

 ftptraffic 0 1 $appTime1
 ftptraffic 0 3 $appTime3
 ftptraffic 0 5 $appTime5

So why could no communications be seen between node0 and node3/node5?

5) And how to set lossmodel for nodes in wpan? I tried following code, but 
it
 doesn't work: 

set loss_module [new ErrorModel]
$loss_module set rate_ 0.01
$loss_module unit pkt
$loss_module ranvar [new RandomVariable/Uniform]
$loss_module drop-target [new Agent/Null]
eval $ns lossmodel $loss_module \$node_($src) \$node_($dst) 


[ns] mobilenode object gets messed up

2006-04-03 Thread Listad

Hi all,

I am working with the mobilenode class of ns-2.29. At
the beginning of my simulation the mobile node objects
hold proper values for X_, Y_ coordinates, amongst
others. But after the SORTING LISTS when the Pr()
function of the propagation model is called, all the
mobilenode objects only contain rubbish information.
Between those two points none of my code is being
executed.

After battling with this issue for quite a while I
would appreciate of some of you could give me pointer
on where to look for the cause ...

If you lack information but are willing to think about
it, please let me know, I'd appreciate any idea.

Regards,
Christian






___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



[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] Anyone recognise this error msg?

2006-04-03 Thread Nick Read


I have a number of scripts that are all failing with exactly the same 
error msg (see below).
It appears to be something to do with starting a server for a group.
Im using MDP (Multicast Dissemination Protocol), does anyone else have 
experience with MDP out of interest. The files that are failing are the 
example scripts bundled with the MDP source code, so i'm not sure what 
to with them.

cslin200% ns mdpTest1.tcl
ns: _o204 start server -2147483648:
(_o204 cmd line 1)
invoked from within
_o204 cmd start server -2147483648
invoked from within
catch $self cmd $args ret
invoked from within
if [catch $self cmd $args ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error error when calling class $cls: $args $...
(procedure _o204 line 2)
(SplitObject unknown line 2)
invoked from within
_o204 start server -2147483648



[ns] urgent help reg energy model in ns

2006-04-03 Thread amrutha ravichandran

HI,
I have used the energy model in my tcl file and have specified initial
energy to be 200..
according to cmu-trace.cc file the mobile node must become green..
in my nam it has become green..
however wen the energy gets depleted or reaches zero ,the color of the node
must change acc to cmu-trace..
In my case this is not happening although the energy of the node reaches 0
as shown in my trace file..
how do i solve the problem??
i have used ns-2.29 and ns-2.26..same results..
Pl help its urgent..

Thx,
Amrutha.


Re: [ns] Newbie questions on wpan demo

2006-04-03 Thread Bruce Who

Hi,

I got it. Page 127 of ns-doc.pdf tells us how to do it. But it's
really hard to find it. I thought it is covered in Chapter 16 Mobile
Networking in ns or Chapter 6 Links: Simple Links

Another question,
How long does it take to transmit a packet? I found this snippet in
ns/tcl/ex/wpan:

   set expl($src) [new Application/Traffic/Exponential]
   eval \$expl($src) set packetSize_ 70
   eval \$expl($src) set burst_time_ 0
   eval \$expl($src) set idle_time_ [expr
$interval*1000.0-70.0*8/250]ms  ;# idle_time + pkt_tx_time = interval
   eval \$expl($src) set rate_ 250k

the packet size is set to 70 and pkt_tx_time is calculated as
70.0*8/250, but according to the wpan_demo2.tr file the packet(MAC)
size is 97 bytes, then should we calculate the pkt_tx_time as
97.0*8/250 ? Or is it unnecessary to consider the mac header?

On 4/3/06, Ahmad Khayyat [EMAIL PROTECTED] wrote:
  Hi Bruce,

  Read chapeter 13 in ns-manual.. I think you are looking for Error Model
 instead of Loss Model.
  The commands you are using are for wired networks only, if I am not
 mistaken.


  Bruce Who wrote:
  hi, Ahmad:

 === 2006-04-03 02:05:24 Ahmad Khayyat wrote: ===



  Hi Bruce,

 If you enable AGT and RTR tracing (in node-config command in the tcl
 file), you will see that when a tcp packet is sent out of the RTR layer,
 its size is larger than its size when sent by the AGT layer. This
 reflects the fact that the RTR layer adds some headers that contribute
 to the packet size. The same thing happens when the packet is sent by
 the MAC layer; it gets a little bigger due to MAC headers.

 For the inconsistent packet size in the MAC layer between send time and
 recv time, my guess is that the packet size is measured in the receive
 event after removing the MAC headers. You will see that the received
 packet size in the MAC is equal to the packet size sent by RTR, which is
 the size before adding the MAC headers. Having that said, my guess is
 that the packet size reported in the send event is the correct size sent
 out of the MAC layer. In that case, the packet size in the receive event
 is the size that the MAC layer reports to higher layers.

  I agree with you. I find that all beacon/ack packets are exactly 7 bytes.
 I guess this is a bug of ns2?

 And I still cannot apply lossmodel to wpan. I modified
 ns-2.29\tcl\ex\wpan\wpan_demo2.tcl this way:

 =
 proc seterrmodel { src dst } {
  global ns_ val node_
  set errmodel [new ErrorModel]
  $errmodel set rate_ $val(per)
  $errmodel set unit_ $val(errUnit)
  eval $ns_ lossmodel $errmodel \$node_($src) \$node_($dst)
 }

 ...

 seterrmodel 0 1
 =

 I added above code into wpan_demo2.tcl, and got the following traceback:

 $ ns wpan_demo2.tcl
 num_nodes is set 7
 INITIALIZE THE LIST xListHead

 Traffic: ftp
 Acknowledgement for data: on
 invalid command name 
  while executing
 $link errormodule $lossobj
  (procedure _o3 line 3)
  (Simulator lossmodel line 3)
  invoked from within
 _o3 lossmodel _o158 $node_(0) $node_(1)
  (eval body line 1)
  invoked from within
 eval $ns_ lossmodel $errmodel \$node_($src) \$node_($dst)
  (procedure seterrmodel line 7)
  invoked from within
 seterrmodel 0 1
  invoked from within
 if { $val(traffic) == ftp } {
  puts \nTraffic: ftp
  #Mac/802_15_4 wpanCmd ack4data off
  puts [format Acknowledgement for data: %s [Mac/8...
  (file wpan_demo2.tcl line 231)

 Could anyone give me any clue?



  Bruce Who wrote:



  hi, Ahmad:

 === 2006-03-31 23:40:43 Ahmad Khayyat wrote: ===





  2) assoPermit means whether the node should permit other nodes to
 associate with it so that it becomes their coordinator. Look at the
 802.15.4-2003 standard for details.

 5) This is not how LossModel is used. Consult ns-manual for the correct
 usage. It still applies for wpan.



  Thanks, I'll look into the document.

 And I have another question. This is a snippet from wpan_demo2.tr, I find
 that all tcp packets sent out is always 7 bytes bigger than the received
 packets. Why do they not have the same size? Then which one(97 or 90) is the
 real size of the tcp packets?

 s 11.928192000 _0_ MAC --- 255 tcp 97 [0 5 0 800] --- [0:2 5:0 30 5]
 [133 0] 0 0
 s 11.931712033 _5_ MAC --- 255 ACK 5 [0 0 5 0]
 r 11.932064067 _0_ MAC --- 255 ACK 5 [0 0 5 0]
 r 11.932704033 _5_ MAC --- 255 tcp 90 [0 5 0 800] --- [0:2 5:0 30 5]
 [133 0] 1 0





  Bruce Who wrote:





 

 Hi, all:

 Recently I begin to learn how to use ns2 to run wpan simulations, and
 stumbled
 by some problems, hope someone could help me out.

 1)I found there are some commands like this:
 eval $ns_ attach-agent \$node_($src) \$udp_($src)

 why don't we just use this command?

 $ns_ attach-agent $node_($src) $udp_($src)

 2) for this command
 $node sscs startCTDevice isFFD = 1 assoPermit = 1 txBeacon 

[ns] energy model in ns

2006-04-03 Thread amrutha ravichandran

HI,
I find that in the energy model the energy is getting reduced(in receive and
transmit mode) only for MAC,RTS,CTS etc. packets and not for TCP packets..
I need to find out how much energy is consumed for the transmission and
reception of TCP packets and also the amount of time spent in the 'sleep'
mode..
How do i do this??
Pls help its urgent..

Thanks,
Amrutha.