Use it for groups with many sources, such as trading or conferencing, and when bidir groups do not work.
Bidirectional PIM
Bidirectional PIM builds one shared tree per group, rooted at the RP address, that carries traffic both down to receivers and up from sources. There is no source registration and no per-source state, which suits many-to-many applications.
1. ip pim bidir-enable on every router?
2. show ip pim rp mapping — group range mapped to the RP as bidir everywhere?
3. show ip pim interface df — a DF elected on each link towards the RP?
4. show ip mroute <group> — (*,G) with the B flag?
5. A router that does not run bidir drops the traffic — find it on the path.
bidir enabled on all routers → group range mapped to a bidir RP → DF elected on each link → shared tree built towards the RP → traffic flows up and down the same tree
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip pim bidir-enablePrimary Commands
Configuration and operational commands for this Topic.
ip pim bidir-enableReferenceEnable bidirectional PIM on the router.
Use when: Use only in a deliberate Bidir-PIM design.
Quick note: Verify RP mapping and shared-tree forwarding.
Cisco IOS / IOS XE · mixedip pim rp-address <rp-address> bidirReferenceSet a static bidirectional PIM rendezvous point.
Use when: Define a static Bidir-PIM RP for the intended group scope.
Quick note: Verify show ip pim rp mapping identifies bidirectional mapping.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Use show ip pim rp mapping to confirm that the group range is associated with a bidirectional RP, inspect PIM neighbor state, and use multicast route output to verify shared-tree state and incoming/outgoing interfaces. On multiaccess links, inspect DF election information when available and correlate the elected forwarder with unicast reachability toward the RP address. Packet counters should increase on the shared-tree entries carrying the application. Absence of source-tree switchover is normal in bidirectional mode. If forwarding changes after unicast routing changes, re-check the route toward the RP because the shared-tree/DF logic depends on that topology.
Subtopics
Go one level deeper into this subject.
A bidirectional shared tree is a common tree used by both senders and receivers, reducing per-source state compared with source-specific trees.
Subtopic RPThe Bidir-PIM RP identifies the root/address used to construct the bidirectional shared tree for a group range.
Every router must have ip pim bidir-enable and map the group to the RP as bidir. Instead of RPF towards each source, a designated forwarder (DF) on each link forwards towards the RP. The RP address need not even be a real router — it only has to be routable.
show ip pim rp mapping— the group range marked bidir.show ip pim interface df— the designated forwarder on each interface.show ip mroute <group>— bidir (*,G) entries (flag B).show running-config | include bidir—ip pim bidir-enableand the RP definition.
ReferenceWhat it is1 section · depth on demand
What it is
Bidirectional PIM (Bidir-PIM) builds a shared bidirectional tree for multicast groups, optimized for many-to-many traffic patterns rather than relying on source-specific shortest-path trees for each sender.
ReferenceImportant terms & boundaries5 sections · depth on demand
Key points
- Uses an RP concept but forwarding semantics differ from PIM-SM ASM
- Traffic can flow toward and away from the RP along the shared tree
ip pim bidir-enableenables bidirectional capability in the source taxonomy- RP mapping must identify the group as bidirectional
- Do not infer PIM-SM SPT behavior from Bidir-PIM state.
In depth
Bidirectional PIM
Bidirectional PIM (BIDIR-PIM) builds shared trees that carry traffic in both directions, so every member can send to the group without per-source state. RFC 5015 describes it as a PIM sparse mode variant where routers keep only (*,G) state, sources send natively without Register messages, traffic flows up towards the Rendezvous Point Link and down to receivers, and one Designated Forwarder per link and RP address replaces the per-source RPF check.
Elements (RFC 5015)
| Element | Role |
|---|---|
| RPA | Rendezvous-point address; routable, but need not belong to a router |
| RPL | The link the RPA belongs to; no DF election there |
| Designated Forwarder | One per link per RPA, chosen by the best unicast route to the RPA |
| (*,G) state | The only multicast state routers keep |
When to use it
| Situation | Bidir fit |
|---|---|
| Many senders, many receivers on one group | Good: state doesn't grow with sources |
| Few sources, many receivers | SSM or PIM-SM is simpler |
| Need for source-specific paths | Not possible: traffic always follows the shared tree |
ALL(config)# ip multicast-routing
ALL(config)# ip pim bidir-enable
ALL(config)# ip pim rp-address 10.255.9.2 BIDIR-GROUPS bidir
R2# show ip pim rp mapping | include Bidir|RP:
Group(s): 239.200.0.0/16, Static, Bidir Mode
RP: 10.255.9.2 (?)
R2# show ip pim interface df
Interface RP DF Winner Metric Uptime
Gi0/0/1 10.255.9.2 10.0.12.1 [110/2] 01:12:44
Vlan110 10.255.9.2 10.110.0.2 [110/3] 01:12:44
R2# show ip mroute 239.200.1.1 | include flags|Bidir
Operational points
| Point | Detail |
|---|---|
| Consistent configuration | All routers must agree which groups are bidirectional |
| Hardware support | Check platform support for bidir forwarding |
| Redundancy | Phantom RP with different prefix lengths from two routers |
| Coexistence | Bidir, ASM and SSM groups can run side by side in different ranges |
Documented example, not captured output.
Quick reference
Bidirectional PIM builds one shared tree per group rooted at the RP, along which traffic flows in both directions. Sources do not register and no shortest-path trees are built, so routers keep only (*,G) state — ideal for many-to-many applications with many sources.
ip pim bidir-enable
ip pim rp-address 10.0.0.1 bidir
Documented example, not captured output.
Designated forwarders per link replace RPF checks for traffic travelling up the tree. The trade-off is that traffic always passes the RP's location, which can be suboptimal.
State model and protocol mechanics
Bidirectional PIM builds a shared tree that supports traffic flowing both toward and away from the RP direction. Unlike ordinary PIM Sparse Mode, it does not rely on Register messages to an active RP and does not switch each source to its own shortest-path tree. On multiaccess segments, a Designated Forwarder election selects the router responsible for forwarding upstream toward the RP for that group range, preventing duplicate upstream forwarding. The RP address acts as a topological reference for the shared tree and need not process every data packet. This model is useful for many-to-many applications where large numbers of sources would otherwise create extensive (S,G) state.
Limits and common misconceptions
Bidirectional PIM is not just PIM-SM with a different RP command. Its forwarding/state model intentionally avoids the normal source-registration and shortest-path-tree transition. A valid RP mapping does not show the shared tree is forwarding; neighbor, DF, RPF-like direction and OIL state still matter. The RP address being reachable does not imply a single physical RP device must receive every data packet. Likewise, a missing (S,G) entry is not automatically a fault because shared-tree state is expected. Keep the selected group mode explicit whenever interpreting multicast route output or comparing behavior with ordinary PIM Sparse Mode.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Enable bidirectional PIM capability on participating routers as required by the platform, configure the RP mapping for the intended bidirectional group range and ensure every router that forwards those groups has a consistent interpretation. The unicast route toward the RP address is critical because it influences the shared-tree direction and DF election behavior. Keep bidirectional and ordinary sparse-mode group ranges explicit so operators know which forwarding model to expect. Because the architecture deliberately avoids source-specific SPTs, do not tune or document it as though ordinary PIM-SM Register/SPT transitions should occur. Validate that multiaccess segments have a stable DF election and that RP reachability remains deterministic under routing changes.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Multicast → Bidirectional PIM. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7761.html · confidence 94%Quick lookup tables
Bidirectional PIM · operational reference
Compact state and interpretation boundaries for fast lookup.
| Bidir component | Meaning |
|---|---|
| RP address | Topological root reference |
| Shared tree | Carries traffic in both directions |
| DF election | Selects upstream forwarder on multiaccess LAN |
| Source SPT | Normally not used in Bidir-PIM model |