What is the difference between unicast, multicast and broadcast?
Short answer
These terms describe how many recipients a packet goes to: unicast is sending to a single recipient, multicast to the recipients that have joined the group (in IPv4, the group addresses in the 224.0.0.0/4 range, RFC 1112), and broadcast to everyone in the same L2 segment (RFC 919). The area a broadcast reaches is called a broadcast domain; VLAN and Bridge draw the boundary of this area, and routers do not forward broadcasts. There is no broadcast in IPv6; multicast does the job. In TR7, the difference is seen most clearly on the VXLAN interface: the Transport Mode field offers the choice of reaching the remote ends with Unicast (remote peer) (default), Unicast (multiple peers) or Multicast Group. In a cluster, while VIP Transition Method = Only VRRP, VRRP advertisements are sent as unicast between the two Interface IPs selected in VIP Communication. ARP requests, on the other hand, are broadcast.
Where It Is Used in TR7
| Where | Field / label | What for |
|---|---|---|
| Network → Interfaces → Add Interface → Type = VXLAN | Transport Mode: Unicast (remote peer) → Remote Peer IP; Unicast (multiple peers) → Peer IPs; Multicast Group → Multicast Group | Choosing how the tunnel reaches the remote ends; the multicast group address must start with 224–239 in IPv4 and have the ff prefix in IPv6 |
| Network → Interfaces → Edit Interface (in a cluster) | VIP Communication, VIP Transition Method = Only VRRP | Sending VRRP advertisements as unicast between the Interface IPs of the two devices |
| Network → Interfaces → Add Interface | VLAN, Bridge | Dividing (VLAN) or joining (Bridge) the broadcast domain |
| The L4 DDoS Management screen of the route table | Smurf rules | Limiting the per-source ICMP echo rate and TCP reset rate against the Smurf attack, which is amplified with echo requests sent to a broadcast address |
| WEB-CLI | sys-cmd ipcalc (ipcalc) | Calculating the broadcast address of a subnet |
Comparison
| Unicast | Multicast | Broadcast | |
|---|---|---|---|
| Recipient | Single | Those that have joined the group | Everyone in the segment |
| Address example | 192.0.2.10 | 239.1.1.1, ff02::1 | 192.0.2.255 (subnet broadcast), 255.255.255.255 |
| Does it pass through a router | Yes | If there is multicast routing | No |
| In IPv6 | Exists | Exists | Does not exist |
| TR7 example | VXLAN Unicast modes, Only VRRP advertisements, vService traffic | VXLAN Multicast Group mode | ARP request |
Common Misconceptions
- "Multicast and broadcast are the same." Multicast goes only to the recipients that have joined the group, broadcast to everyone in the segment.
- "Broadcast spreads across the whole network." Broadcast is limited to the broadcast domain (VLAN, the segment joined with Bridge); routers do not forward broadcasts.
- "Any address can be entered in VXLAN Multicast Group mode." The address must really be in the multicast range; otherwise the record is rejected with the
Invalid multicast group addresserror.
How it is done in the documentation
