could anyone plz tell me how to send data in LAR. I tried a lot but i
didn't get anything . my whole work gets stucked plz help ...............
please ..

*In box.tcl* , for sending the data they have scheduled the send events
with these commands
for {set k $val(dataStart)} {$k < $val(dataStop)} {set k [expr $k + 0.25] }
\
{
  $ns_ at $k "$g(0) sendData 49 64 B"

this sendData basically calls a function sendNewData(dataPkt, destID);

if we use in the same way as in box.tcl , then in .tr file their is no "s"
packet. In nam window it shows the nodes and their movements but no sending
of data.

*Another option *is if we use CBR on top of LAR agents in the follwoing
manner (without sendData ) , then .tr file is empty.

set g($i) [new Agent/LAR]
$node_($i) attach $g($i) 254
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.25
$cbr_(0) set random_ 1
$cbr_(0) set maxpkts_ 10000
$cbr_(0) attach-agent $g(0)
$ns_ connect $g(0) $null_(0)
$ns_ at 2.5568388786897245 "$cbr_(0) start"

if we use cbr with sendData it shows error..............

*Another option* is with sendData and with CBR traffic  then in .tr file ,
there is no "s" packet, no AODV packets. only LAR and CBR packets
now the question is we should use cbr source and dest same as sendData
source and destination.

plz tell me some link or something.............

rgds
sims

Reply via email to