PIM Configuration. Page 1 of 9

Similar documents
IPv6 PIM. Based on the forwarding mechanism, IPv6 PIM falls into two modes:

Table of Contents 1 PIM Configuration 1-1

Multicast Communications

Chapter 24 PIM Commands

FSOS Multicast Configuration Guide

Configuring PIM. Information About PIM. Send document comments to CHAPTER

Configuring IP Multicast Routing

Table of Contents Chapter 1 IPv6 PIM Configuration

Configuring IP Multicast Routing

Configuring IP Multicast Routing

Configuring IP Multicast Routing

IPv6 PIM-DM configuration example 36 IPv6 PIM-SM non-scoped zone configuration example 39 IPv6 PIM-SM admin-scoped zone configuration example 42 IPv6

Exercises to Communication Systems

IP Multicast. Falko Dressler Regionales Rechenzentrum Grundzüge der Datenkommunikation IP Multicast

Multicast Protocol Configuration Examples H3C S7500 Series Ethernet Switches Release Table of Contents

FiberstoreOS IPv6 Multicast Configuration Guide

IP Multicast Technology Overview

Multicast H3C Low-End Ethernet Switches Configuration Examples. Table of Contents

This chapter describes how to configure the Cisco ASA to use the multicast routing protocol.

Table of Contents 1 IGMP Configuration 1-1

Table of Contents Chapter 1 Multicast Routing and Forwarding Configuration

Multicast Configuration

Advanced Network Training Multicast

PIM-SM Multicast Routing

Table of Contents 1 Multicast VPN Configuration 1-1

ASM. Engineering Workshops

Configuring Bidirectional PIM

Configuring Basic IP Multicast

IPv6 Multicast: PIM Sparse Mode

IPv6 Multicast: PIM Sparse Mode

Implementing IPv6 Multicast

IP Multicast Optimization: Optimizing PIM Sparse Mode in a Large IP Multicast Deployment

Table of Contents 1 MSDP Configuration 1-1

Configuring Multicast Routing

Configuring a Rendezvous Point

Configuring multicast VPN

Troubleshooting - IP Multicast

What is Multicasting? Multicasting Fundamentals. Unicast Transmission. Agenda. L70 - Multicasting Fundamentals. L70 - Multicasting Fundamentals

IP Multicast Survival Guide Part 2

PIM Allow RP. Finding Feature Information. Restrictions for PIM Allow RP

Multicast routing protocols

Lab 7-3 Routing IP Multicast with PIM Sparse Mode

IP Multicasting: Explaining Multicast Cisco Systems, Inc. All rights reserved. Cisco Academy

This module describes how to configure IPv6 Multicast PIM features.

Module 7 Implementing Multicast

Table of Contents 1 MSDP Configuration 1-1

IP Multicast Technology Overview

Multicast Technology White Paper

DD2490 p IP Multicast routing. Multicast routing. Olof Hagsand KTH CSC

BASIC MULTICAST TROUBLESHOOTING. Piotr Wojciechowski (CCIE #25543)

HP 5920 & 5900 Switch Series

Verifying IPv4 Multicast Forwarding Using the MFIB

Configuring Basic IP Multicast

Why multicast? The concept of multicast Multicast groups Multicast addressing Multicast routing protocols MBONE Multicast applications Conclusions

Implementing IPv6 Multicast

Configuring MSDP. MSDP overview. How MSDP works. MSDP peers

Configuring SSM. Finding Feature Information. Prerequisites for Configuring SSM

IP Multicast Load Splitting across Equal-Cost Paths

Configuring PIM Snooping

Viewing IP and MPLS Multicast Configurations

Layer 3 Routing (UI 2.0) User s Manual

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

Configuring MSDP. Overview. How MSDP operates. MSDP peers

IP Multicast Routing Protocols

IP Multicast: Multicast Optimization Configuration Guide

Configuring MLD. Overview. MLD versions. How MLDv1 operates. MLD querier election

IP Multicast: PIM Configuration Guide, Cisco IOS XE Release 3S

IP Multicast: PIM Configuration Guide, Cisco IOS Release 12.4T

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15S

MulticastForwardingInformationBaseOverview

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

Multicast overview. Introduction to multicast. Information transmission techniques. Unicast

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15M&T

Contents. Configuring MSDP 1

Copyright 2009 Internetwork Expert i

IP Multicast: Multicast Optimization Configuration Guide, Cisco IOS Release 12.4T

Lab 7-1 Implementing IGMP and IGMP Snooping

Cisco Nexus 9000 Series NX-OS Multicast Routing Configuration Guide, Release 6.x

Developing IP Muiticast Networks

HP 6125G & 6125G/XG Blade Switches

IGMP Proxy. Finding Feature Information. Prerequisites for IGMP Proxy

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

Network Working Group Request for Comments: Category: Experimental. A. Helmy USC

H3C S9800 Switch Series

Network Working Group. Category: Standards Track H. Holbrook Arastra I. Kouvelas Cisco August 2006

Multicast Troubleshooting

Implementing Multicast Service Reflection

Veryx ATTEST TM. Sample Test cases Overview. Conformance Test Suite. Protocol Independent Multicast Sparse Mode (PIM-SM)

Configuring PIM snooping

Load Splitting IP Multicast Traffic over ECMP

IP Multicast: PIM Configuration Guide, Cisco IOS Release 15SY

HPE FlexNetwork 7500 Switch Series

IP Multicast: PIM Configuration Guide

Implementing Layer-3 Multicast Routing on Cisco IOS XR Software

Broadcast Routing. Multicast. Flooding. In-network duplication. deliver packets from source to all other nodes source duplication is inefficient:

Introduction to Multicast Routing View PDF

HP 5500 EI & 5500 SI Switch Series

Financial Services Design for High Availability

H3C SR G Core Routers

Brocade Vyatta Network OS PIM Configuration Guide, 5.2R1

Transcription:

PIM Configuration Page 1 of 9

Contents Contents...2 Chapter 1 PIM Configuration...3 1.1 PIM Description...3 1.1.1 Principles of PIM-DM...3 1.1.2 Principles of PIM-SM...4 1.1.3 Principles of PIM-SSM...5 1.2 PIM Configuration...5 1.2.1 Configuring PIM...5 1.2.2 Basic PIM Configuration...6 1.2.3 Advanced PIM Configuration...6 1.2.4 Configuration Examples...8 Page 2 of 9

Chapter 1 PIM Configuration 1.1 PIM Description Protocol Independent Multicast-Dense Mode (PIM-DM) is a dense-mode multicast routing protocol, which is applicable to small-sized networks. In a PIM-DM network, members of a multicast group are densely distributed. 1.1.1 Principles of PIM-DM The operation of PIM-DM can be understood as neighbor discovery, flooding-prune, and graft. (1) Neighbor discovery Upon startup, a PIM-DM router needs to discover neighbors by sending Hello packets. The relationships between PIM-DM capable network nodes are maintained through exchange of Hello packets. In PIM-DM, Hello packets are sent periodically. (2) Flooding&Prune PIM-DM assumes that all the hosts on a network are ready to receive multicast data. A packet is transmitted from multicast source S to multicast group G. After receiving this multicast packet, the router performs an RPF check based on the unicast routing table and creates an (S,G) entry if the RPF check is successful. Then the router floods the packet to all the downstream PIM-DM nodes in the network. The router discards the packet if the RPF check fails (the multicast packet is from an incorrect interface). In the flooding process, an (S,G) entry will be created in the PIM-DM multicast domain. If no downstream node is a multicast group member, the router sends a Prune message to notify the upstream node that data should not be sent to downstream nodes any more. After receiving the Prune message, the upstream node removes the interface that sends the multicast packet from the outbound interface list matching the (S,G) entry. Eventually, a Shortest Path Tree (SPT) with S as the root is created. The prune process is initiated by a leaf router. The whole process is called the flooding&prune process. A timeout mechanism is made available on a pruned router so that the router may initiate a flooding&prune process again if the prune process times out. The flooding&prune mechanism of PIM-DM operates periodically over and over again. In the flooding&prune process, PIM-DM performs RPF check and builds a multicast forwarding tree with the data source as the root based on the current unicast routing tables. When a multicast packet arrives, the router first judges whether the path of the multicast packet is correct. If the interface where the packet arrives is what specified in the unicast route, the path is considered correct. Otherwise, the multicast packet is discarded as a redundant packet and will not be forwarded in multicast mode. The unicast route may be discovered by any unicast routing protocol such as RIP and OSPF instead of a specific routing Page 3 of 9

protocol. (3) Assert As shown in the following figure, multicast routers A and B are on the same LAN segment and they have their respective paths to multicast source S. After receiving a multicast packet from S, both of them will forward the packet on the LAN. As a result, the downstream multicast router C will receive two identical multicast packets. An upstream router uses the Assert mechanism to select the only forwarder. The upstream router sends Assert messages to select the best route. If two or more paths have the same priority and metric value, the router with the largest IP address is selected as the upstream neighbor of the (S,G) entry and is responsible for forwarding the (S,G) multicast packet. Assert mechanism (4) Graft When the pruned downstream node needs to enter the forwarding state again, it sends a Graft message to the upstream node. Before configuring the features of IGMP, you must enable the multicast routing function. (5) SRM To avoid repeated flooding&prune actions, the SRM is added to new protocol standards. The router in direct connection with the multicast source sends state update packets periodically. After receiving a state update packet, the PIM-capable router refreshes the prune state. 1.1.2 Principles of PIM-SM The operation of Protocol Independent Multicast-Sparse Mode (PIM-SM) can be understood as neighbor discovery, rendezvous point tree (RPT) generation, multicast source registration, and SPT switch. The neighbor discovery of PIM-SM is the same as that of PIM-DM. (6) RPT generation When a host joins a multicast group (G), the leaf router which is directly connected with the host if detecting receivers of G by sending IGMP packets, calculates an RP for G and sends a Page 4 of 9

Join message to an upper-level node of the RP for participating in the multicast group. Every router between the leaf router and the RP will generate a (*,G) entry in its forwarding table and therefore they will forward any packets destined for G regardless of where the packets come from. When the RP receives a packet bound for G, the packet will later be sent to the leaf router along the established path and then reach the host. Finally an RPT with the RP as the root is created. (7) Multicast source registration When multicast source S is sending a multicast packet to multicast group G, the PIM-SM router which is directly connected with S encapsulates the multicast packet into a registration packet and then sends it to an RP in unicast mode. If multiple PIM-SM routers exist on a network segment, the designated router (DR) sends the multicast packet. 1.1.3 Principles of PIM-SSM PIM-Source Specific Multicast (PIM-SSM) is dependent on PIM-SM and they may coexist on a router. Whether PIM-SSM or PIM-SM is used is subject to the multicast address in a data or protocol packet. IANA assigns SSM an address segment (232.0.0.0 to 232.255.255.255). The multicast groups on this address segment will not join an RPT but is processed by SSM. In PIM-SSM, Hello packets are also transmitted periodically between routers for neighbor discovery and DR election. Usually IGMPv3 is deployed on the host to establish and maintain multicast group memberships. Compared with IGMPv2, IGMPv3 is designed with the source-based filtering function. This function allows a host to receive only the data from a specific group and even from a specific source in this group. Based on a received IS_IN packet of IGMPv3, the SSM-enabled router learns that a host on the network connected with the interface receiving the IS_IN packet wants to receive (S,G) packets. This router unicasts a PIM (S,G) Join message to the next-hop router of the multicast source hop by hop and thereby an SPT can be established between the multicast source and the last-hop router. When the multicast source is sending multicast data, the data reaches the receiver along the SPT. If a host supports only IGMPv1/IGMPv2, you can configure SSM mapping on the router connected with the host to convert the (*,G) Join messages of IGMPv1/IGMPv2 into (S,G) Join messages. 1.2 PIM Configuration 1.2.1 Configuring PIM The operations listed in Table 1-1 must be performed sequentially during PIM configuration. It is recommended that PIM-DM be enabled on all the interfaces of a non-border router running in PIM-DM domains. In contrast, PIM-SM does not need to be enabled on every interface. Page 5 of 9

Table 1-1 PIM configuration tasks Basic PIM configuration Advanced PIM configuration Configuration Task Description Details Enables EFM. Mandatory 1.2.2 Configures EFM mode. Mandatory 1.2.2 Configures the transmission interval of Hello packets. Enables a multicast protocol. Enables PIM-DM or PIM-SM. Sets the domain border of a bootstrap router (BSR). Enters the PIM mode. Configures multicast source (group)-based filtering. Configures PIM neighbor filtering. Configures the maximum of PIM neighbors for an interface. Configures a static RP. Specifies a candidate BSR. Specifies a candidate RP. Configures the SPT switching threshold. Configures the range of an SSM multicast group. 1.2.2 Basic PIM Configuration Table 1-2 Basic PIM configuration Operation Command Remarks Enables PIM-DM on an interface. ip pim dense-mode - Disables PIM-DM on an interface. no ip pim dense-mode - Enables PIM-SM on an interface. ip pim sparse-mode Disables PIM-SM on an interface. no ip pim sparse-mode Note: Enable a multicast protocol before PIM-SM on an interface. 1.2.3 Advanced PIM Configuration Table 1-3 Advanced PIM configuration Operation Command Remarks Configures the transmission interval of Hello packets. ip pim query-interval seconds - Restores the default transmission interval. i no ip pim query-interval - Page 6 of 9

Operation Command Remarks Configures an interface as the border of a BSR. ip pim bsr-border Deletes the BSR border configuration of an interface. no ip pim bsr-border Enters the PIM mode. pim Exits the PIM mode. exit Filters the received multicast packets based on the source. source-policy acl-number Cancels source-based filtering. no source-policy Filters PIM neighbors. ip pim neighbor-policy acl-number Cancels PIM neighbor filtering. no ip pim neighbor-policy Configures the maximum of PIM neighbors for an interface. ip pim neighbor-limit limit Restores the default value. no ip pim neighbor-limit Configures a static RP. static-rp address Deletes a static RP. no static-rp Configures a C-BSR. bsr-candidate interface-type interface-number hash-mask-length priority Deletes a C-BSR. no bsr-candidate Configures a C-RP. rp-candidate interface-type interface-number group-list acl-number priority Deletes a C-RP. rp-candidate interface-type interface-number group-list acl-number Configures a switching threshold. spt-threshold { immediately infinity } Restores the default switching threshold. no spt-threshold Displays the information of PIM interfaces. show ip pim interface [ vlan-interface vid ] Displays the information of PIM neighbors. show ip pim neighbor Displays the multicast routing tables learned by PIM, including static and dynamic routing entries. show ip mroute group-address [ static dynamic ] Displays dynamic and static RPs of PIM. show ip pim rp-info group-address Displays the information of BSRs, including the elected BSR and local C-BSRs. show ip pim bs Displays the range of SSM group addresses. show ip pim ssm range Configures the range of an SSM multicast group. ssm {default range access-list} Deletes the configuration of the range of an SSM multicast group. no ssm {default range access-list} Note: Be sure to enable PIM on an interface before configuring the PIM attributes of the interface. This point must be noted when you use the commands for configuring interface attributes and will not be given again. Ensure that all the devices in the domain are configured with the same range of SSM multicast group addresses. Otherwise, multicast information cannot be transmitted using the SSM Page 7 of 9

model. If members of an SSM multicast group send Join messages over IGMPv1 or IGMPv2, (*,G) Join messages will not be triggered. 1.2.4 Configuration Examples! To configure the last member query interval to 60s on interface 1, run the following command: Switch(config-if-vlanInterface-1)#ip pim query-interval 60! To run PIM-SM on VLAN interface 1, run the following command: Switch(config-if-vlanInterface-1)#ip pim sparse-mode! To enable the bsr-border function on a PIM-SM interface, run the following command: Switch(config-if-vlanInterface-1)#ip pim bsr-border! To enter the PIM mode, run the following command: Switch(config)#mroute pim! To display multicast routing tables, run the following command: Switch(config-if-vlanInterface-1)#show ip mroute! To display a PIM neighbor list, run the following command: Switch(config-if-vlanInterface-1)# show ip pim neighbor! To display the information of PIM interfaces, run the following command: Switch(config-if-vlanInterface-1)#show ip pim interface! To display the information of all the PIM RPs, run the following command: Switch(config-if-vlanInterface-1)#show ip pim rp-info! To display the information of the current BSRs, run the following command: Switch(config-if-vlanInterface-1)#show ip pim bsr! To configure a switch to forward only the multicast packets from 192.168.1.1, run the following commands: Switch (config)# access-list 1 permit 192.168.1.1 0 Switch(config-pim) # source-policy 1! To configure a static RP to 192.168.1.1, run the following command: Switch(config-pim) # static-rp 192.168.1.1! To configure VLAN interface 1 of a switch as a C-BSR, run the following command: Switch(config-pim) # bsr-candidate vlan-interface 1 10 10! To configure VLAN interface 1 of a switch as a C-RP, run the following command: Switch(config-pim) # rp-candidate vlan-interface 1 group-list 1 10! To configure the switching threshold of a switch to infinity, run the following command: Switch(config-pim) # spt-threshold infinity The following describes how to configure the SSM service by using an ACL to specify an address range. access-list 4 permit 224.2.151.141 mroute pim ssm range 4 The following describes how to view the information of an SSM group address range. Switch# show ip pim ssm range Page 8 of 9

Group Address Mask Length ACL 237.0.0.0 8 1 Totle ssm group range entries:1. The following shows the default SSM group address range. Switch# show ip pim ssm range Group Address Mask Length Desc 232.0.0.0 8 default The following displays the information when no SSM group address range is configured. Switch # show ip pim ssm range No configged ssm group range. Page 9 of 9