HI 
I have ported MAODV on ns-2.26 going through by the instruction.But 
when I running the simulation script ns.tcl it is giving follwing error.
[EMAIL PROTECTED] ex]$ ns ns.tcl 10 30 1
num_nodes is set 50
INITIALIZE THE LIST xListHead
Loading connection pattern ...
Loading scenarios file...
Starting Simulation ...
ns: _o374 aodv-join-group 0xE000000:
(_o374 cmd line 1)
invoked from within
"_o374 cmd aodv-join-group 0xE000000"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o374" line 2)
(SplitObject unknown line 2)
invoked from within
"_o374 aodv-join-group 0xE000000"
please help me out from this problem



---------------------------------
  following are two cbr files:
1)# First Multicast group
# 10 sender: nodes 0 through 9
# receiver(s): nodes 30 through 49
#
for {set i 0} {$i < 10} {incr i} {
set udp_($i) [new Agent/UDP]
$udp_($i) set dst_addr_ 0xE000000
$ns_ attach-agent $node_($i) $udp_($i)
#
set cbr_($i) [new Application/Traffic/CBR]
$cbr_($i) set packetSize_ 256
$cbr_($i) set interval_ 0.50
$cbr_($i) set random_ 1
# send enough packets to keep simulation nearly busy: 2 packets
# a second, starting at 30, stopping at 899: 2*870 = 1740
$cbr_($i) set maxpkts_ 1740
$cbr_($i) attach-agent $udp_($i)
$cbr_($i) set dst_ 0xE000000
$ns_ at 30.0 "$cbr_($i) start"
}
#
# the nodes have to join the multicast group to receive the packet...
#
for {set i 30} {$i < 50} {incr i} {
$ns_ at 0.0100000000 "$node_($i) aodv-join-group 0xE000000"
}

  2)
# First Multicast group
# 10 sender: nodes 0 through 9
# receiver(s): nodes 20 through 49
#
for {set i 0} {$i < 10} {incr i} {
set udp_($i) [new Agent/UDP]
$udp_($i) set dst_addr_ 0xE000000
$ns_ attach-agent $node_($i) $udp_($i)
#
set cbr_($i) [new Application/Traffic/CBR]
$cbr_($i) set packetSize_ 256
$cbr_($i) set interval_ 0.50
$cbr_($i) set random_ 1
# send enough packets to keep simulation nearly busy: 2 packets
# a second, starting at 30, stopping at 899: 2*870 = 1740
$cbr_($i) set maxpkts_ 1740
$cbr_($i) attach-agent $udp_($i)
$cbr_($i) set dst_ 0xE000000
$ns_ at 30.0 "$cbr_($i) start"
}
#
# the nodes have to join the multicast group to receive the packet...
#
for {set i 20} {$i < 50} {incr i} {
$ns_ at 0.0100000000 "$node_($i) aodv-join-group 0xE000000"
}


       
---------------------------------
 Check out what you're missing if you're not on Yahoo! Messenger 

Reply via email to