Dear all,
I tried creating a new simple Agent which broadcasts the packets with its
fields set statically. I created a linear static topology just to set if the
broadcast works. The topology is like
0 1 2
Part of my tcl script is
set p0 [new Agent/Ant]
$node_(0) attach $p0
set p1 [new Agent/Ant]
$node_(1) attach $p1
set p2 [new Agent/Ant]
$node_(1) attach $p2
$ns at 1.0 "$p0 broadcast"
$ns at 1.5 "$p0 broadcast"
$ns at 2.0 "$p1 broadcast"
Now when 0 broadcasts it is correctly received by 1. when 1 broadcasts, it
should be received by both 0 and 2 since both are within 1's tranmission
range(???). Now i get the following output :
num_nodes is set 3
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Node 1 received broadcast from 0 with no of neighbors 10
Node 1 received broadcast from 0 with no of neighbors 10
Node 0 received broadcast from 1 with no of neighbors 10
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o74: no target for slot 0
_o74 type: Classifier/Port
content dump:
classifier _o74
0 offset
0 shift
2147483647 mask
1 slots
slot 255: _o76 (CMUTrace/Recv)
---------- Finished standard no-slot{} default handler ----------
The problem is node2 is not receiving anything and it is showing some error.
Please help me in fixing this problem. I need this to proceed with my final
year engineering project. Please help me please...
Regards
S.Rajapriya
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2ยข/min or less.