Pcornel
Networking · Routing › Multicast

RPF

Cheat sheet · https://pcornel.dk/topic.php?topic=645

Back to the Topic

Answer

The reverse path forwarding check accepts a multicast packet only if it arrives on the interface the router would use to send unicast traffic back to the source (or to the RP for shared-tree traffic). Anything else is dropped to prevent loops.

Remember

RPF uses the unicast routing table (or a separate multicast table / static mroute). If unicast routing to the source points out of a non-PIM interface, the RPF check fails. Asymmetric unicast routing is the usual cause.

First checks

  • show ip rpf <source> — the RPF interface and neighbour for a source.
  • show ip mroute <group> — the incoming interface used for each entry.
  • show ip route <source> — the unicast route RPF is based on.
  • show ip pim interface — whether PIM runs on the RPF interface.
  • show ip mroute <group> count — RPF failures counted per entry.

Commands

show ip route <source>
Display the route toward a multicast source, used for the RPF check.
show ip rpf <source>
Display RPF interface/neighbor decision for a multicast source.
ip mroute
show ip mroute

Verify in this order

unicast route to the source → RPF interface determined → PIM enabled on it → stream arrives there → check passes → packet forwarded

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

RPF quick reference

ItemMeaning
Source Sorigin of multicast data
RPF lookupreverse route decision toward S
RPF interfaceinterface expected to receive source traffic
RPF neighborexpected upstream next hop
IIFincoming interface stored in mroute state
OILoutgoing interfaces toward receivers

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=645

Confirmation

Confirm action

Continue?