www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / Design / CCDP / Chapter 4: Designing Advanced IP Multicast / PIM Sparse Mode and RP Design Considerations

PIM Sparse Mode and RP Design Considerations

PIM-SM uses a pull model (or “explicit join” model) that does not rely on flooding traffic. While PIM-DM uses only Source-based Trees, PIM-SM uses a combination of Shared Trees and Source-based Trees. This makes Sparse Mode much more scalable compared to Dense Mode. Sparse Mode will choose to use a Shared Tree approach if it is more efficient to use the RP concept and will use a Source-based Tree approach if it is more efficient. Overall, Sparse Mode is more efficient, even when there is a dense distribution of multicast receivers.

In Sparse Mode, the PIM neighbors are discovered and a designated router is selected; then, the RP is discovered. The RP learns information about sources and receivers, and a Shared Tree from the senders to receivers is built through the RP. For more efficient dissemination of multicast traffic, SPT joins and Shared Trees leave. This is a much more scalable approach, as the Shared Tree can be used through the RP where it is more appropriate and the SPTs can be built where they are more appropriate.

The RP is the reference and aggregation point for the Shared Tree. It learns source information with unicast PIM Register messages and it learns about receivers through PIM Join messages. In multicast environments, routers must have knowledge of the RP because without this information, sources cannot register and clients cannot join multicast groups. The routers must agree on the RP information on a per group basis. An RP is required in networks that have a Shared Tree, such as those that use PIM-SM or Bidirectional PIM. RPs can be configured using many methods:

  • Static RP addressing
  • Anycast RP
  • Auto-RP
  • Bootstrap Router (BSR) 

4.8

Figure 4.8 – Static RP Configuration

The first consideration regards static addressing on the RP, which is shown in Figure 4.8 above. With static RP, every router in the network must be configured manually with the IP address of a single RP, using the “ip pim rp-address <rp_address>” command. If the RP fails, the routers will not be able to failover to a standby RP. The only way a static RP can failover involves using anycast RPs. In this situation, the Multicast Source Discovery Protocol (MSDP) must be running between each RP in the network to share information about active sources.

 4.9

Figure 4.9 – Anycast RP with MSDP

Anycast uses an address shared by devices, such as RPs, DNS servers, or Web servers, which are performing the same function. Analyzing Figure 4.9 above, a packet addressed to an anycast address is actually sent to the geographically closest device, so anycast provides load-sharing capabilities. Anycast RP is a technique that allows the configuration of a PIM-SM network to allow fault-tolerant and load-sharing capabilities in a single multicast domain.

 

4.10

Figure 4.10 – Multicast Auto-RP

Auto-RP is a mechanism that permits all of the routers in the network to learn the RP data dynamically, as shown in Figure 4.10 above. Auto-RP has two IANA-assigned group addresses: 224.0.1.39 and 224.0.1.40. Auto-RP advertises the RP information dynamically and uses the concept of a “candidate RP” to define a router on the network that can assume the RP role. The second role defined by Auto-RP technology is the “mapping agent,” which listens for a potential candidate RP, chooses one, and then relays this information to the rest of the PIM environment. This allows for redundancy of RPs to be designed. The candidate RPs generate an advertisement to multicast group 224.0.1.39. Mapping agents listen automatically on 224.0.1.39 to learn about the candidates, and then generate an advertisement using group 224.0.1.40 to distribute this information. This behavior presents an issue, as Auto-RP is using multicast groups in its operation, and multicast communication might not be available before using Auto-RP.

Another important issue is that the dynamically learned RP mappings are preferred over the statically configured ones, so Auto-RP cannot be used as a backup mechanism for the static RP configuration process. In addition, because Auto-RP relies on multicast groups, Auto-RP control plane messages are subject to an RPF check, which can result in failure in the Auto-RP communication process.

The major issue with Auto-RP is that in a Sparse Mode environment, RPs do not exist for the 224.0.1.39 and 224.0.1.40 groups. Sparse mode devices cannot really function with these groups because they do not know where the RP is. This Auto-RP paradox occurs because clients cannot join the Auto-RP groups, as they do not have the RP and the RP is not known because the Auto-RP groups cannot be joined.

The solution to this issue is statically assigning an RP for just the two Auto-RP groups, 224.0.1.39 and 224.0.1.40. This defeats the purpose of automatic assignment, so Cisco invented PIM Sparse-Dense Mode as a solution to this problem. Cisco Sparse-Dense Mode is not a perfect solution because if there is an RP failure, Dense Mode flooding of the other multicast traffic that is involved with these groups will occur.

These downsides led to the development of a more efficient solution of using Auto-RP in a Sparse-Mode-only environment, which is called the Auto-RP Listener feature. This is a simple command placed on every multicast speaker and it allows just the 224.0.1.39 and 224.0.1.40 groups to operate in Dense Mode. Everything else is guaranteed to work in a Sparse Mode fashion, so there are no potential issues.

Note:    Auto-RP is a Cisco proprietary protocol that can be implemented only on Cisco devices. This technology will soon become legacy, as the newer Bootstrap Router (BSR) method is preferred in modern multicast implementations.

Because of all of the issues presented above, BSR is a much preferred solution to the problems presented by Auto-RP. BSR is similar to Auto-RP but it lacks the issues Auto-RP presents. BSR allows for better interoperability between vendors. Similar to Auto-RP, BSR works by implementing a candidate router for the RP function and for relaying RP data in a group. The network administrator can configure one or more routers in a network to serve as a candidate BSR. The most important improvement offered by BSR is that it does not use multicast in its operation. BSR defines two roles in the multicast domain:

  • RP candidate: Similar to the candidate RP from Auto-RP.
  • BSR: Similar to the mapping agent from Auto-RP. 

 4.11

Figure 4.11 – Multicast BSR

 

When the network is initialized, all of the candidate BSR (C-BSR) routers will participate in an election process by sending a PIM BSR message, as illustrated in Figure 4.11 above. This process is similar to the STP Root-election or OSPF DR-election process. This information is distributed through the local-link multicast messages that travel from one PIM router to another PIM router, and the BSR messages are flooded hop-by-hop through the entire domain. At the end of the election process, the BSR with the highest BSR priority is elected and becomes the active BSR.

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.