No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


NE40E V800R010C10SPC500 Configuration Guide - IP Multicast 01

This is NE40E V800R010C10SPC500 Configuration Guide - IP Multicast
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Overview of PIM

Overview of PIM

Protocol Independent Multicast (PIM) is an intra-domain multicast routing protocol that uses unicast routing information to perform reverse path forwarding (RPF) checks on multicast packets and to create multicast routing entries. PIM can dynamically respond to network topology changes and maintain multicast forwarding tables.

"Protocol Independent" indicates that the unicast routing protocol that provides unicast routing information for PIM can be a static route or a dynamic routing protocol, such as Routing Information Protocol (RIP), Open Shortest Path First (OSPF), Intermediate-System to Intermediate-System (IS-IS), or Border Gateway Protocol (BGP). Multicast routing entries are generated based on a unicast routing table.

PIM implements multicast packet forwarding by means of the RPF mechanism. The RPF mechanism uses existing unicast routing information to build an MDT on a network. When a multicast packet reaches a router, the router performs the RPF check first.

  • If the multicast packet passes the RPF check, the router creates a multicast routing entry and forwards the packet.
  • If the multicast packet fails the RPF check, the router discards the packet.

PIM Mode

PIM has two implementation modes: PIM-SM and PIM-SSM, These modes apply to both IPv4 and IPv6 networks.

  • PIM-DM

    The PIM-DM mode applies to a small-scale network with densely distributed members. The key mechanisms of PIM-DM are neighbor discovery, flooding, prune, graft, assert, and status refresh.

  • PIM-SM

    PIM-SM applies to large-scale networks on which multicast data receivers are sparsely distributed. Key PIM-SM mechanisms include neighbor discovery, designated router (DR) election, RP discovery, Join, Prune, Register, and SPT switchover.


    PIM-SSM applies to networks on which multicast data receivers can learn source locations before they join multicast groups and require multicast data from specific multicast sources. PIM-SSM adopts only some of PIM-SM technologies. PIM-SSM does not need to maintain an RP, construct RPTs, or register multicast sources. In PIM-SSM, an SPT can be built directly between the source's DR and the receiver's DR.

PIM Routing Entry

A PIM routing table records PIM routing entries and delivers them to a multicast forwarding table to guide multicast packet forwarding. PIM routing entries are categorized as (S, G) or (*, G) entries. In PIM routing entries, S indicates a multicast source address, G indicates a multicast group address, and * indicates any multicast source address.

  • An (S, G) entry is created for a multicast packet that carries a specified source address and a specified group address.

  • A (*, G) entry is created for a multicast packet that carries a specified group address but does not carry a specified source address.

When a PIM device receives a multicast packet with the source address being S and the group address being G and the packet passes the RPF check, the router forwards the packet based on the following rules:

  • If a matching (S, G) entry exists, the router forwards the packet along the route specified by the (S, G) entry.

  • If a matching (S, G) entry does not exist, the router creates an (S, G) entry, and then forwards the packet along the route specified by the (S, G) entry.

PIM routing entries contain the following information: multicast source addresses, multicast group addresses, upstream interfaces, upstream neighbors, and downstream interface lists. A multicast packet reaches from a unique upstream interface and is forwarded through one or multiple downstream interfaces. Figure 4-1 shows the forwarding process of multicast packets (with the group address on Device A.

Figure 4-1 Multicast packet forwarding

Interfaces 1 through 3 in this example are GE 1/0/0, GE 2/0/0, GE 3/0/0, respectively.

The following example uses the PIM routing table on Device A shown in Figure 4-1.

<DeviceA> display pim routing-table

 VPN-instance: public net
 Total 0 (*, G) entry; 1 (S, G) entry
     Protocol: pim-sm, Flag: SPT ACT
     UpTime: 01:35:25
     Upstream interface: GigabitEthernet2/0/0
         Upstream neighbor:
         RPF prime neighbor:
     Downstream interface(s) information:
     Total number of downstreams: 2
        1: GigabitEthernet3/0/0
            Protocol: igmp, UpTime: 00:03:21, Expires: 00:03:10
        2: GigabitEthernet1/0/0
            Protocol: pim-sm, UpTime: 00:03:27, Expires: 00:03:15

The information used to guide packet forwarding is as follows:

  • Source address:

  • Group address:

  • Upstream interface: GE 2/0/0

  • Upstream neighbor:

  • RPF neighbor:, that is, Device B

  • Downstream interface list: includes interfaces GE 1/0/0 and GE 3/0/0

Updated: 2019-01-03

Document ID: EDOC1100055017

Views: 39517

Downloads: 97

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next