10

I am trying to send a packet to several nodes from my PC through a border router. The nodes and the border router are developed using Contiki. The problem is that I cannot send multicast messages because the border router does not forward them to the nodes. Is there any way to solve this?

Edit: I am using IPv6 for routing and the multicat packets are sent using UDP protocol. Moreover the border router interfaces are Ethernet or SLIP (connection to the PC can be made both ways) and 6lowpan over 802.15.4 (connection with the nodes).

JuanMa
  • 345
  • 1
  • 8

2 Answers2

7

Likely you'll have to include a protocol like IGMP—assuming you're using IPv4. The standard multicast in the Internet Protocol ends at router boundaries for a good reason. Unfortunately, I have no Contiki experience to help you out with the specifics of the implementation.

However you solve the issue, you'll need to establish proper boundaries for the mutlticast. IGMP does that by creating multicast groups that cross router boundaries.

The IPv6 protocol for similar purposes is MLD—Multicast Listener Discovery.

Helmar
  • 8,450
  • 6
  • 36
  • 84
3

Multicast routing is very different than unicast routing. Multicast routing needs a multicast routing protocol, such as PIM, and uses IGMP (IPv4) and MLD (IPv6) for the host to inform the multicast router that it wants traffic for a particular multicast group.

Unicast routing is based on the singular destination address, so it is pretty simple to get a packet from the source to the destination. Multicast sends to a group address, and multicast routing is to prevent multicast from going where it is not wanted, and to go where it has been requested, so it is much more complex than unicast routing.

You need to have multicast routing configured on every router between the source and destination, which is why you cannot multicast on the public Internet. You can multicast across the public Internet through a tunnel that supports multicast (not all do). The tunnel will encapsulate the multicast packets in unicast packets, allowing it to traverse the Internet to the destination network, which also must be configured for multicast routing.

Ron Maupin
  • 131
  • 3