[ns] question about energy model of 802.15.4

2006-06-24 Thread chen guoming

Dear All:
recently I am doing simulations to compare SMAC and 802.15.4. I found
that a problem about the 802.15.4 implemented in NS2.
In the file p802_15_4mac.cc, there are some instruction about the sleep
mode:
//-- Notes for power-saving:
//   It turns out to be very difficult to apply sleeping
model in 802.15.4.
//   First, a node shouldn't go to sleep if peer2peer
transmission mode is
//   used. Non-peer2peer means that a node only communicates
with its parent
//   and/or children, which requests that pure tree routing
be used.
//   Second, even pure tree routing is used, a node can only
go to sleep
//   if it satisfies both the sleeping condition as a parent
(to its children)
//   and that as a child (to its parent) in a multi-hop
environment. To
//   satisfy both conditions requires efficient scheduling
scheme.
//   Since ns2, by default, treats the power consumption in
idle mode same
//   as that in sleeping mode, it makes no difference at
this moment whether
//   we set sleeping mode or not.
  This means that if I simulat a linear topology with 10 nodes, the source
node sends packets to the sink node, then all the node along the path won't
sleep at all,am I right? Then if we apply 802.15.4 to a cluster tree
topology, it won't save any energy,right?
   Another question is that if I simulate a star topology, I still can't
compare the energy efficiency of SMAC and 802.15.4. Since the idle energy
power is much more than the sleep energy power in real node, I think that
802.15.4 treat the sleep mode as the idle mode is incorrect.
  Any one give me some suggestions? Thank you!
your sincere
David


[ns] Movements in wireless scenario

2006-06-24 Thread Andrea M

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: 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] MultiState error model

2006-06-24 Thread Kacper Kurowski

Hello
Could anyone tell me how to create a multistate error model in NS-2 ?
I used the example for documentation but it's behaving in a strange
way... I want my multistate error model to have from time 0 to 30 loss
rate equal to 0.1% from time 30 to 60 loss rate equal to 10% and from
time 60 to 100 loss rate equal to 1%. Could you tell me how to do it?




-- 
Best regards,
 Kacper Kurowski



[ns] TCL variable substitution problem

2006-06-24 Thread Nicholas Loulloudes

Hello,

I have the following problem regarding TCL variable substitution

I have the following code in ns2:

set Appl_udp_0_1 [new Agent/UDP]
$ns attach-agent $n(0) $Appl_udp_0_1
$Appl_udp_0_1 set class_ 1

where the first number in $Appl_udp_0_1  (i.e 0) characterizes the node the
UDP agent is running and the second  number (ie. 1) the flow id.

In a procedure i have the following parameters

proc test { src flowid} {

global Appl_udp_$src_$flowid

}

My problem is that TCL takes as variable the $src_ (including the _
character) and as a result shows that a variable $src_ does not exist.

Is there a way i can make the variable expression to stop before the _
character ??

Thank you.
-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.