Module 02 · Networking · How a packet finds a house · about 15 min to read
Continue where you left off ×
One sender, many listeners, and who goes first: multicast and QoS
Inside Your Building · Open board
Shows one building with a router and the devices behind it. This lesson puts a video sender in that building, and asks two questions. How does one stream reach many viewers without a copy for each? And when the cable is busy, whose packets go first?
Before you start. From The corridor inside the building (frames, switches and VLANs) you know that a switch learns which port each MAC address (the hardware address of one device) is behind, and that it floods a frame out of every other port when it does not know the destination. From Inside your building (your router's life) you know that a broadcast reaches every device in the building. From The address that never runs out: IPv6 properly you know that IPv6 uses multicast instead of broadcast, which this lesson explains for IPv4 too. From Design a rate limiter you know the token bucket: a counter that fills at a fixed speed, and each request spends one token.
The idea in 30 seconds
Unicast sends one copy per receiver, so 1,000 viewers of a 5 Mb/s stream need 5,000 Mb/s from the sender.
Multicast sends one packet to a group address, and copies it only where listeners are.
IGMP is how a device joins or leaves a group, and IGMP snooping lets a switch send frames only to the ports that joined.
QoS gives some packets better treatment, for example a priority queue that sends voice before downloads.
DSCP is a 6-bit mark in the IP header, and EF (46) marks voice. Each network chooses whether to trust it.
Policing drops traffic above a rate. Shaping delays it. Both are token buckets.
Read the story
Lesson 12 of 44 in Networking
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson The problem: one live video, one thousand viewers Multicast: one packet, copied only where listeners are IGMP: how a device says “I want this group” IGMP snooping: the switch listens to the joins QoS: when the cable is busy, who goes first DSCP: the label that says which class a packet belongs to Shaping and policing: what to do when traffic is above the agreed speed The address mapping, run Joins, queries and versions Routers: how the copies find the listeners The priority queue, run The 6 bits and the 2 bits Shaper and policer, run Trade-offs, and where this ends up Terms it explains: unicast, Multicast, IGMP, join, IGMP snooping, Quality of service, priority queue, DSCP, Policing, Shaping.
Review Networking
Mark as read Saved in this browser, and to your account when you sign in.