I have created a udp packet with contents 0011 by using allocdata_ as
shown in below code  between node 0 and 2..


#
# 0 connecting to 2 at time 2.93667922166023
#
set udp_(0) [new Agent/UDP]
$ns_ attach-agent $node_(0) $udp_(0)
set null_(0) [new Agent/Null]
$ns_ attach-agent $node_(2) $null_(0)
set cbr_(0) [new Application/Traffic/CBR]
$cbr_(0) set packetSize_ 512
$cbr_(0) set interval_ 0.05
$cbr_(0) set random_ 1
$cbr_(0) set maxpkts_ 10000
$cbr_(0) set allocdata_ 0011
$cbr_(0) attach-agent $udp_(0)
$ns_ connect $udp_(0) $null_(0)
$ns_ at 2.93667922166023 "$cbr_(0) start"


So da node 2 received the packet..

Now how to check the data at recived node i.e node 2..?????
Help please.. Urgent

Reply via email to