350 likes | 678 Views
IP Multicast Routing Protocol. Prepared by: Moxa NET TS Date: dd -mm- yyyy. Agenda. IP Multicast Review IP Multicast Routing- PIM-DM PIM-DM in MOXA Switch. IP Multicast Review. IP Multicast. Send IP data to Multiple user Reduce network bandwidth requirement IP Multicast address
E N D
IP Multicast Routing Protocol Prepared by: Moxa NET TS Date: dd-mm-yyyy
Agenda • IP Multicast Review • IP Multicast Routing- PIM-DM • PIM-DM in MOXA Switch Confidential
IP Multicast Review Confidential
IP Multicast • Send IP data to Multiple user • Reduce network bandwidth requirement • IP Multicast address • 224.0.0.0 <-> 239.255.255.255 • 224.0.0.x are reserved for protocol control • L2 Multicast MAC address • 01-00-5e-00-00-00 <-> 01-00-5e-7f-ff-ff Confidential Confidential
Multicast address mapping IP Address: 32 bits 1110 5 bits unused 23 bits Mapping Directly Fixed 0 01 – 00 – 5e 23 bits MAC address: 48 bits • 32 IP multicast addresses will be overlapped to a MAC multicast address Confidential
Multicast address mapping • Each MAC represent 32 IP multicast address • 224.0.0.X used for protocol exchange data • Never use IP multicast address • X.0.0.X • X.128.0.X 224.0.0.1 & 224.128.0.1 225.0.0.1 & 225.128.0.1 … 239.0.0.1 & 239.128.0.1 01-00-5e-00-00-01 Confidential
IGMP • IGMP is defined in RFC 1112. • Router and Hosts communication protocol • Used between Router and Host to establish multicast group memberships • IGMP version 1 , 2 & 3 Confidential
IP multicast within one subnet Join 224.2.2.2 • Router works as Querier • Router forward the registered multicast stream 224.1.1.1 Query 224.2.2.2 Join 224.1.1.1 Confidential
IGMP Operation- IGMP v1 report Query 224.0.0.1 • Host send the Join report to request multicast traffic • Router periodically sends query to Host • Host reply IGMP report for required IP Multicast Confidential Confidential Confidential
IGMP Operation- IGMP v2 report Leave Query • Host doesn’t need the multicast stream • Host sends Leave message to Router • Router will send specified query after receive leave Confidential Confidential Confidential
IGMP Operation- IGMP v3 report Join 239.1.1.1 @ 192.168.127.102 IP: 192.168.127.102 Multicast: 239.1.1.1 IP: 192.168.127.101 Multicast: 239.1.1.1 • Host can send Source specify join report Confidential Confidential Confidential
IP Multicast RoutingPIM-DM Confidential
IP Multicast over subnets Subnet C Subnet B Subnet A IGMP Video Server Host Multicast stream Multicast over subnets require Multicast Routing protocol - No IP Multicast Routing - Router filter multicast stream Multicast stream Confidential
Multicast Routing Protocol Multicast Routing protocol Multicast Router Multicast Router • Multicast routing protocol • Router to router communication • PIM-DM • PIM-SM • DVMRP • ... Confidential
Multicast Routing Protocol • PIM-DM • Protocol Independent Multicast Routing- Dense Mode • Flood-Prune behavior • Flood multicast stream to PIM DM neighbors • Prune unwanted multicast stream • RPF Check • Prevent duplicated multicast stream from different interface • Graft • Request multicast stream after prune Confidential
PIM-DM Neighbor discover Routers exchange Hello packet to discovery neighbor PIM-DM router Non PIM-DM Confidential
Neighbor Discovery Hello packet 224.0.0.13 Hello packet 224.0.0.13 Exchange Hello packet to discover neighbor PIM-DM router Confidential
SPT (Shortest Path Tree) Building 230.1.1.1 Flood this packet • RFP Check • Create (S,G) • S= Source Address • G= Multicast group • Flood multicast stream to all • downstream route 230.1.1.1 Confidential
RPF Check A To prevent receiving the same multicast packet from multiple interface 2. Receive multicast from correct interface regard to the routing table B C Routing table of Router A Confidential
PIM-DM Initial Flood Routers flood the multicast stream at the beginning Confidential
PIM-DM Prune & Graft Prune No multicast request Prune Prune Graft Request multicast after Prune Confidential
PIM-DM Assert Assert Join 1.Send Assert messages 2. The Small metric (Administrator Distance) will win 3. If metric value is the same. The highestIP address wins. Decide who should forward the stream Confidential Confidential
PIM-DM in Moxa Switch Confidential
PIM-DM in Moxa Switch 192.168.2.x 192.168.3.x 192.168.4.x VLAN3 192.168.3.254 VLAN4 192.168.4.253 VLAN2 192.168.2.254 IP= 192.168.3.36/24 GW= 192.168.3.254 VLAN2 192.168.2.253 IP= 192.168.4.16/24 GW= 192.168.4.253 Confidential
PIM-DM in MOXA Switch • Create VLAN
PIM-DM in MOXA Switch • Enable IGMP Snooping in each VLAN
PIM-DM in MOXA Switch • Assign Interface IP address
PIM-DM in MOXA Switch • Enable Routing protocol • E.g. Static Route, RIP, or OSPF
PIM-DM in MOXA Switch • Enable PIM-DM in each Interface Enable globally Enable in each VLAN
PIM-DM in MOXA Switch • Check the Neighbor Table • Show the neighbor PIM-DM router
PIM-DM in MOXA Switch Total PIM-DM Entry: 4K Total IGMP Entry: 4K