Multicast routing table Interface forwarding table Tree Information Base... Tree Information Base TIB OS Sends IGMP Report Router enables LAN interface Receive DR IGMP Querier Receiver I
Trang 1Slides rev-09
PIM Routing
Gorry Fairhurst University of Aberdeen gorry@erg.abdn.ac.uk
IP Multicast Workshop at Networkshop 2006
Slides (as flash, QT) at:
http://www.erg.abdn.ac.uk/users/gorry/ipmulticast/docs/
Trang 2• Part 1: Multicast Forwarding
• Part 2: ASM Register
• Part 3: Receiver Join
• Part 4: Variations
• Part 5: Pruning
Trang 3(1) Check Admin Scope (ACL)
(2) Check RPF (to source) in MRIB
(3) Check RPF (to RP) - if SM in MRIB
(0)
Forwarding Process
olist
(4) Check Output list (olist)
(5) Adjust TTL / Check TTL thresh
(6) Replicate using olist (OIL)
Trang 4Multicast routing table
Interface forwarding table
Tree Information Base
Trang 5• Part 1: Multicast Forwarding
• Part 2: ASM Register
• Part 3: Receiver Join
• Part 4: Variations
• Part 5: Pruning
Trang 6Gorry@erg.abdn.ac.ukSending to the LAN DR
Send unicast PIM-Register to RP
PIM Designated Router (DR)
Source
139.133.204.31
139.133.204.31: 224.2.132.76
Reg
PIM Designated Router (DR) may be IGMP Querier
Receive DR receives from local SourcesCreates a TIB entry
Trang 7Gorry@erg.abdn.ac.ukTelling the RP about a Source
DR waits for a PIM-Join
Trang 8• Part 1: Multicast Forwarding
• Part 2: ASM Register
• Part 3: Receiver Join
• Part 4: Variations
• Part 5: Pruning
Trang 9Tree Information Base (TIB)
OS Sends IGMP Report
Router enables LAN interface
Receive DR (IGMP Querier)
Receiver
IGMP Report
OS send IGMP-Report for Group(s)Router creates TIB entry
Trang 10Gorry@erg.abdn.ac.ukIGMP Query
Router updates TIB entry
Receive DR (IGMP Querier)
Router continues to forward packets to Receiver
Router send IGMP-Query to LANReceiver (or another computer) responds
Trang 11Pruning
Routers Prune flows when there are no Joins
Joining / Pruning the Tree
Trang 12Gorry@erg.abdn.ac.ukReceiving via the RP
Packets forwarded via the RP (RPT)
Source
Trang 13Gorry@erg.abdn.ac.ukReceiving from Source
RP 139.133.204.31: 232.2.132.76
Source DR forwards packets to Receiver
X X
Packets forwarded on shortest path (SPT)
Trang 14Traffic never flows up the RPT
to then flow back down the same SPT!
Receive
DR
139.133.204.31
Receive DR sends (*,G) PIM-Join to RP
Turnabout router “prunes” RP & Proxy Joins
Source DR forwards towards RP
Receiver
X
Trang 15Gorry@erg.abdn.ac.ukFinding a Remote Source
DR
X X
Join
X
Source DR forwards flow to Receiver
139.133.204.31
Receive DR sends (*,G) PIM-Join to local RP
Local RP sends (S,G) PIM-Join to Source
Note: Packets not forwarded via the RP
139.133.204.31: 224.2.132.76
Trang 16• Part 1: Multicast Forwarding
• Part 2: ASM Register
• Part 3: Receiver Join
• Part 4: Variations
• Part 5: Pruning PIM-SSM
- when there are few sources
Bi-Dir PIM
- when there are many sources
Trang 17(S,G) Join directly to source (IGMPv3)RPs not to handle these groups
Sending SSM from the DR
Source
139.133.204.31 139.133.204.31: 224.2.132.76
Trang 18BiDir negociated in PIM HelloRules change
Source DR role changes
No Register sent from DRReceive DR forwarding changesSend natively to RP
Other routers can see the packets
Sending BiDir from the DR
Source
139.133.204.31 139.133.204.31: 224.2.132.76
Trang 19R2
BiDir Routing
No per-source state
Good for many sources (c.f SSM)
No problems with bursty sources (as in SSM)
Trang 20Gorry@erg.abdn.ac.ukNetwork changes for BiDir
RP much simpler (No tunnels)
No problems with bursty sources Can be any multicast router
Problems
Does not directly interoperate with SM All traffic can flow to the RP
RP placement important
Trang 21• Part 1: Multicast Forwarding
• Part 2: ASM Register
• Part 3: Receiver Join
• Part 4: Variations
• Part 5: Pruning
Trang 22Gorry@erg.abdn.ac.ukLeaving the Group
Receive DR stops forwarding flow
Receive DR (IGMP Querier)
Send IGMP-Query to check for Receivers
No response indicates no members
PIM-Prune sent upstream
Trang 23Gorry@erg.abdn.ac.ukStopping a Source
Source continues to send to DR
Trang 24Three key things
IGMP tells a Receive Router which flows to Receive
RP's tell Receive Routers about Sources (via packets) Join/Prune used to build trees
So Finally
Multicast isn't hard
It is very different to unicast
Need to work with new "tools"
Trang 25Gorry@erg.abdn.ac.ukQuestion & Answers
?
Slides (as flash, QT) at:
http://www.erg.abdn.ac.uk/users/gorry/ipmulticast/docs/
Trang 26PIM Message Types
PIM Messages
10: BiDir
Common PIM Flags (displayed by "mroute")
- This DR has a local Source for Group G
- Router has sent a Join message for this flow
- Router does not need to forward flow for Group G
- Router is receiving directly from the Source (S,G)
X Turnabout - Router is ending proxy-joins to the Source (S,G)