Dear All,

              I want to use multicasting on Broadcast LAN. my topology is
given below,

             n0         n1            n3      n4
              |            |              |         |
       -----------------------------------------------------------
                      |             |           |           |
                    n5           n6        n7         n8

there is only multicast group containing three nodes i.e mcastGroup1 = n0,
n3, n6. Node n0 is the sender on this group.  All the tree nodes of the
group join the group and then the sender n0 start sending the data. Since
the media is Broadcast so the all the nodes drop the packet. What i want
here is that nodes n3 and n6 should not drop but should shows receive "r"
event in the trace. I use PIM DM (Dense Mode) as multicasting protocol. the
trace is given below,
------------------------------------------------------------------------------------------------------------
v 1 eval {set sim_annotation {1 0 join-group -2147483648}}
v 1 eval {set sim_annotation {1 3 join-group -2147483648}}
v 1 eval {set sim_annotation {1 6 join-group -2147483648}}
h 1.1 0 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
+ 1.102 0 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
- 1.102 0 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 8 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 7 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 6 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 5 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 4 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 3 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 2 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
d 1.102004 1 9 cbr 210 ------- 0 0.2 -2147483648.0 0 0
 
-----------------------------------------------------------------------------------------------------------------------------
the multicast configuration script is
set mrthandle [$ns mrtproto DM {}] ;# setting multicast routing algo as PIM
with Dense mode
set mcastGroup1 [Node allocaddr]
set mcastCbr0 [new Application/Traffic/CBR]
set mcastUdp0 [new Agent/UDP]
$mcastCbr0 attach-agent $mcastUdp0
$ns attach-agent $node(0) $mcastUdp0
$mcastUdp0 set dst_addr_ $mcastGroup1
$mcastUdp0 set dst_port_ 0
set rcvr [new Agent/LossMonitor]
$ns attach-agent $node(3) $rcvr
#// mcast testing script
$ns at 1.0 "$node(0) join-group $rcvr $mcastGroup1"
$ns at 1.0 "$node(3) join-group $rcvr $mcastGroup1"
$ns at 1.0 "$node(6) join-group $rcvr $mcastGroup1"
$ns at 1.1 "$mcastCbr0 start"
$ns at 1.1 "$mcastCbr0 stop"
$ns at 3.0 "simFinished"
# Now start the simulator.
$ns run
-------------------------------------------------------------------------------
I am suspected that if i attach a router to the LAN in the simultation then
the problem could be solved. But i  wonder if there is a default LanRouter
with each lan node? and how to use it?.
 Wanted an urgent help... ... please

Reply via email to