Comparing Unicast, Multicast, Broadcast
Comparing Unicast, Multicast, Broadcast
Application Note
Comparing unicast, multicast, broadcast
50977
April, 2008
1 of 4
Unicast, multicast, broadcast
Purpose
Povide an overview for the 3 types of Ethernet messaging (unicast, multicast, and
broadcast) and provide use cases.
- Unicast typically has a TTL (time-to-live) parameter of 32 (or more) which means that it
can propagate through 31 routers (assuming that the target is outside the subnet).
(For details about TTL, http://en.wikipedia.org/wiki/Time_to_live )
Multicast
- Used for one-to-many communications.
- With multiple consumers, multicast is more efficient and timely than unicast.
- Always is UDP.
2 of 4
Unicast, multicast, broadcast
- The TTL parameter in the IP packet determines the maximum number of routers a
packet can traverse. For EtherNet/IP, a multicast packet is set to TTL = 1.
This means that the first router will decrement the TTL parameter and discard when the
result is 0.
Broadcast
- Used for one-to-all communications.
“All” means all in the subnet/VLAN.
- Can be either OSI layer 2 (e.g. ARP) or OSI layer 3 (e.g. AB_ETHIP driver.)
OSI layer 2 deals with Ethernet MAC addresses.
OSI layer 3 deals with IP (Internet Protocol) addresses.
If you have only a single tag consumer, you can use unicast. If you have 2 or more consumers,
multicast would be the best choice because it is more efficient.
Example:
Logix_1 produces tag1 to only Logix_2.
Logix_1 produces tag2 to only Logix_3
In this example Logix_1 produces multiple tags but each tag has only 1 consumer.
Unicast would be a good choice because each tag has only 1 consumer.
Unicast has the benefit of being simpler than multicast. When using multicast, the
recommendation is to configure IGMP. When there is no multicast in your system, you don’t
need to use IGMP.
Another benefit of unicast is that it can propagate thru routers because the TTL parameter is
64. This is important if your producer and consumer are on different subnets.
Important!!
Because routers can become busy, packet delivery may experience latency. The
recommendation is to select RPI values large enough to avoid:
- packet delivery in the wrong order at the consumer
- CIP connection timeouts
3 of 4
Unicast, multicast, broadcast
Finally, with unicast you can have more than 32 tags. With multicast, you are limited to 32
produce tags through a single Ethernet module because our Ethernet modules have a multicast
address pool of 32 maximum.
End of document…
4 of 4