[ns] Fwd: Error: can't read "protocols_(-1)": no such variable

2012-06-19 Thread Melissa Santana

-- Forwarded message --
From: Melissa Santana 
Date: Tue, Jun 19, 2012 at 7:26 PM
Subject: Error: can't read "protocols_(-1)": no such variable
To: ns-users@isi.edu


Good afternoon,

I'm working with ns all in one 2.34, and I'm getting this error

ns: _o331 drop 9 4294967295 -1: can't read "protocols_(-1)": no such
variable
while executing
"$protocols_($iface) drop $replicator $src $dst $iface"
(procedure "_o113" line 3)
(mrtObject drop line 3)
invoked from within
"[$node_ getArbiter] drop $self $src $dst $iface"
(procedure "_o331" line 3)
(Classifier/Replicator/Demuxer drop line 3)
invoked from within
"_o331 drop 9 4294967295 -1"

I'm trying to use multicast. In my tcl script I stablished the $ns
multicast command, created one group and added all the nodes to it using
this:


set mproto DM
set mrthandle [$ns mrtproto $mproto {}]

set group1 [Node allocaddr]

$agent set dst_addr_ $group1
$agent set dst_port_ 0

I have tried everything that i read in internet but it did not work. I
tried to starting the agents later and nothing worked.

Can you help me?

Thanks in advance

-- 
Melissa




-- 
Melissa Santana


[ns] Help Regarding construction of star, mesh, grid, ring topologies in ns-2 for wireless networks

2012-06-19 Thread india 2005

hi friends,
  plz tell me how to construct star,mesh,grid,ring topologies in ns-2
for wireless networks.
ok byee



[ns] Fw: Get Mobilenode object from Mac

2012-06-19 Thread Halen Smith

Hi Guys,

How can I control ssthresh_ in a scenario where I want to visualize two 
nodes with different tcp agents. SOurce is tcp/newreno and sink is 
tcpsink.

By 
controlling ssthresh_ ,i mean that if i change the value of ssthresh_ 
and plot this kind of wave against time. Then I should be able to get 
ssthresh_ according to my defined parameters.

Regards


Halen


[ns] Get Mobilenode object from Mac

2012-06-19 Thread Benjamin Kiessling

Hi,

I am trying to get the MobileNode object from a 802.11 MAC object that
is attached to it. While agents and such are explicitly attached to a
node this happens automagically on node creation when using node-config.
I'm fairly sure there is a clean way to do this, but I'm not familiar
enough with ns-2 to know how.

Regards,
Benjamin



[ns] TCL COMMAND to set on-off status of any node at some particular time

2012-06-19 Thread Shahbaz Akhtar

Hi,

Kindly, if anyone can help me regarding

TCL COMMAND to set on-off status of any node at some particular time.

Actually I want to configure the simulation in a way that when simulation
start there is only one out of 20 nodes in the network is 'on' (means can
send or recieve hello). And then after a specific interval 2nd node node
turn 'on' and so on.

I will really be gratefull to you regarding this issue.

Waiting for reply

Shahbaz
University of Malaya
Kuala lumpur