Testing Multicast Protocol

63 views
Skip to first unread message

Trinacriax

unread,
Jul 12, 2011, 10:38:06 AM7/12/11
to ns-3-users
Hi Folks,

I'm testing my PIM-DM implementation on ns-3 using the OnOff
application towards the multicast group/port.
Basically, the test file is like csma-multicast, but I don't use any
"AddMulticastRoute" because I don't need
static multicast route because the "dynamic" multicast is done by PIM-
DM.

Q1. Is it correct or I have to use "AddMulticastRoute"??

When the multicast packet is received by a peer:
1. Ipv4L3Protocol:Receive() (e.g., Ipv4L3Protocol:Receive(): Packet
from 02-06-00:00:00:00:00:01 received on node 2))
2. Ipv4ListRouting:RouteInput() (e.g.,
Ipv4ListRouting:RouteInput(0x669fa0, tos 0x0 ttl 64 id 1 protocol 17
offset (bytes) 0 flags [none] length: 238 10.1.0.1 > 225.1.1.4,
0x656ad0))
3. Ipv4L3Protocol:IsDestinationAddress() (e.g., For me (Ipv4Addr
multicast address))
4. Ipv4ListRouting:RouteInput(): (e.g., Address 225.1.1.4 is a match
for local delivery)
5. Ipv4EndPointDemux:Lookup() it doesn't find the right endpoint,
returning "RX_ENDPOINT_UNREACH"
here more info:
[...]
1.02113s Ipv4EndPointDemux:Lookup()
1.02113s Ipv4EndPointDemux:Lookup(0x654eb0, 224.0.0.13, 703, 10.1.0.1,
49153, 0x658430)
1.02113s Ipv4EndPointDemux:Lookup(): Looking up endpoint for
destination address 224.0.0.13
1.02113s Ipv4EndPointDemux:Lookup(): Looking at endpoint dport=703
daddr=10.1.0.2 sport=0 saddr=0.0.0.0
1.02113s Ipv4EndPointDemux:Lookup(): dest addr 224.0.0.13 broadcast? 0
1.02113s Ipv4EndPointDemux:Lookup(): Looking at endpoint dport=703
daddr=10.1.1.2 sport=0 saddr=0.0.0.0
1.02113s Ipv4EndPointDemux:Lookup(): Skipping endpoint 0x7fffffffc058
because endpoint is bound to specific device and0x6575f0 does not
match packet device 0x656ad0
1.02113s Ipv4EndPointDemux:Lookup(): Looking at endpoint dport=698
daddr=10.1.0.2 sport=0 saddr=0.0.0.0
1.02113s Ipv4EndPointDemux:Lookup(): Skipping endpoint 0x7fffffffc058
because endpoint dport 698 does not match packet dport 703
1.02113s Ipv4EndPointDemux:Lookup(): Looking at endpoint dport=698
daddr=10.1.1.2 sport=0 saddr=0.0.0.0
1.02113s Ipv4EndPointDemux:Lookup(): Skipping endpoint 0x7fffffffc058
because endpoint dport 698 does not match packet dport 703
[...]

Q2. Probably I missed something in the protocol registration, because
I expect "Ipv4EndPointDemux:Lookup()" finds the
"localAddressMatchesWildCard"...I'm a little bit confused about this
behaviour.

Any idea?
thanks!!

Alessandro R.

Trinacriax

unread,
Jul 13, 2011, 8:29:11 AM7/13/11
to ns-3-users
Hi,

I found the problem: I forgot to create/bind the socket, and setting
the corresponding callback.
thanks

Haitham

unread,
Sep 20, 2012, 7:14:31 AM9/20/12
to ns-3-...@googlegroups.com
 
Hi all,

I would like to implement PIM-DM multicast protocol using NS3 but i don't know from where shall i start. Is anyone implemented before and willing to share the code. Many Thanks



Haitham

Reply all
Reply to author
Forward
0 new messages