May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
System Design Masterclass · Load Balancing Proxies
Free preview: the first 2 parts of this 10-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design courseread the rest of this lesson in
System Design Masterclass
Unlock this lesson and the 751 other paid lessons
$35 once, by card or PayPal
See the System Design coursein Load Balancing Proxies
This lesson is part of the full System Design Masterclass. Unlock it along with 769 other lessons for a one-time payment.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime Access18 Foundation lessons are free, no payment needed. Try them now
It is easy and good
“It is really nice and good Please join the course”
Unicast sends to one machine and scales badly when many want the same thing. Broadcast reaches everybody and wastes the time of everybody who does not care.
Multicast is the obvious answer to both, and it is elegant. A sender transmits one copy. Machines that want it join a group. The network duplicates the packet only where the paths to two members diverge, and nowhere else.

Each router copies a packet only when it has members down more than one interface. A link carries at most one copy of the stream, however many members are beyond it.
A machine that has not joined receives nothing at all, which is exactly what separates this from broadcast.

This is arithmetic rather than a benchmark, and the flat line is the whole argument for the protocol.
The difference between multicast and broadcast is not visible on this chart, because it is not about the sender. It is about who else pays.
So multicast gives you the profile of broadcast with the targeting of unicast. It has worked for thirty years. It carries an enormous amount of real traffic today.
And it is essentially absent from the public internet, which is the more interesting half of this lesson.
The whole of 224.0.0.0/4 is multicast, which is one sixteenth of the IPv4 address space set aside for this. A group address does not belong to any device. It names a conversation that devices can join.
Where in that range your group sits changes what happens to your packets.

224.0.0.0/24 is the one worth memorising. Routers must never forward it, whatever the hop limit says, and that is a rule in the router rather than a consequence of .
That is where OSPF, IGMP and mDNS live, because all three are conversations between neighbours on one wire.

This is genuinely different from unicast, where any address can in principle be reached from anywhere and the boundaries are policy. Here the scope is carried in the address itself.
Putting a neighbour-to-neighbour protocol in a range that physically cannot leave the wire is stronger than any firewall rule.
If you are choosing a group address for something inside your own network, use 239.0.0.0/8. Picking something in the globally assigned range because it looked unused is the multicast equivalent of squatting on somebody else's public IP block.