Labs / The Switchyard / VLANs, trunks & multicast

Lab 3 of 3 · VLANs, trunks & multicast

Multicast: one stream, only to those who asked

Send one stream to a group and see only the members that joined receive it.

Open this lab Pro 6 steps

The idea

A studio camera streams video to a group; tv1 and tv2 want it, the laptop does not, and all hang off studioSwitch, a Switch. desk sits behind officeRouter, a Router. The stream reaches only the devices that joined, and the switch learns them by reading their joins.

32 groups, one MAC
32 groups, one MAC
Sent once, copied only to members
Sent once, copied only to members

Steps

  1. A group address, a group MAC

    The camera streams to the group 239.1.1.1, one address for every viewer. tv1 joins it; list the groups on its card, to see what joining changes.

    tv1:~# ip addr add 239.1.1.1/32 dev eth0 autojoin
    tv1:~# ip maddr show dev eth0
  2. Joining: IGMP reports and the switch's table

    The switch must learn which ports want the group, or it would send the stream everywhere. Join tv2 too, while studioSwitch records its port to tv2; then read the switch's table of groups.

    tv2:~# ip addr add 239.1.1.1/32 dev eth0 autojoin
    studioSwitch:~# bridge mdb show

Pro

4 more steps in the app

  1. One stream, only to those who asked
  2. The querier keeps the table fresh
  3. Unknown groups, and a switch that does not snoop
  4. A router is where the group ends
Get Pro

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Open this lab