Use (S,G) to verify active-source state, shortest-path-tree behavior and the actual RPF interface toward the source.
Source Tree
A source tree is source-specific multicast state represented as (S,G), with forwarding rooted toward source S for group G.
1. The source tree (S,G) is the shortest path from source to receivers.
2. Last-hop routers switch to SPT after the first packet by default (T flag).
3. RPF toward the source must be correct.
4. Prunes remove shared-tree duplication.
5. Check outgoing interface lists.
traffic on shared tree → last-hop join (S,G) → SPT → prune from RP tree
Capture/check source-side traffic and interface counters before changing tree configuration.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip mroute 239.1.1.1 10.1.1.10Verification & 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 Checks Verify boundary
show ip mroute 239.1.1.1 10.1.1.10
show ip mroute active
Flags: T (on SPT), J (join SPT), F (register flag on the first-hop router). Counters increasing in show ip mroute count show traffic flows on the (S,G) path.
Step 2 Common mistakes Narrow the fault
- Unicast route to the source via a different interface (RPF failure).
- Expecting the source tree without traffic reaching the last-hop router.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ip mroute <source> <group>— (S,G) entry and flagsshow ip mroute count— packets forwarded
ReferenceWhat it is1 section · depth on demand
Characteristics
- Rooted at the source's DR; path follows unicast routing toward the source.
- Optimal path, but one (S,G) state per source.
- Used after SPT switchover in ASM and always in SSM.
show ip mroute 239.1.1.1 10.1.1.10 shows the (S,G) entry with flags (T = SPT, J = join SPT) and its incoming and outgoing interfaces.
ReferenceImportant terms & boundaries3 sections · depth on demand
Key points
In depth
Source trees (shortest-path trees)
A source tree, written (S,G), is a distribution tree rooted at one source. RFC 7761 describes it as built by (S,G) Joins sent hop by hop towards the source. Last-hop routers start on the shared tree through the RP and can then switch to the source tree; the RFC leaves that decision to a policy function, with examples ranging from never switching to switching on the first packet.
Shared tree versus source tree
| Shared tree (*,G) | Source tree (S,G) | |
|---|---|---|
| Root | RP | Source |
| State | One entry per group | One entry per source and group |
| Path | Via the RP; can be longer | Shortest unicast path from the source |
| Built by | (*,G) Joins | (S,G) Joins |
The switchover (RFC 7761)
| Step | Detail |
|---|---|
| 1 | Last-hop router receives the first packets on the shared tree |
| 2 | Policy decides to switch (Cisco IOS: on the first packet by default) |
| 3 | Router sends an (S,G) Join towards the source |
| 4 | Once traffic arrives natively, the SPT bit is set |
| 5 | (S,G,rpt) Prune sent towards the RP to stop the duplicate copy |
R4# show ip mroute 239.1.1.1 10.10.0.25
(10.10.0.25, 239.1.1.1), 00:03:12/00:02:51, flags: JT
Incoming interface: GigabitEthernet0/0/1, RPF nbr 10.0.14.1
Outgoing interface list:
Vlan140, Forward/Sparse, 00:03:12/00:02:54
R4(config)# ip pim spt-threshold infinity group-list SHARED-ONLY
Flag T shows the SPT bit; J means the entry joined the SPT. spt-threshold infinity keeps selected groups on the shared tree.
When to stay on the shared tree
| Situation | Reason |
|---|---|
| Many low-rate sources per group | Saves (S,G) state |
| Hardware state limits | Fewer entries |
| RP placed on the natural path | No benefit from switching |
For one-to-many streams, SSM uses source trees from the start, with no RP.
Documented example, not captured output.
Quick reference
A source tree (S,G) is the shortest path from a specific source to its receivers. PIM Sparse Mode starts delivery over the shared tree through the RP, then normally switches receivers to the source tree because it is more direct. Seeing both kinds of entries in the multicast routing table is therefore normal, and the flags show which tree is in use.
The source tree (S,G) is the shortest-path tree from source to receivers. In PIM-SM, receivers first get traffic via the shared tree through the RP, then the last-hop router switches to the SPT (default immediately after the first packet, ip pim spt-threshold infinity to stay on the shared tree).
show ip mroute 239.1.1.1
(*, 239.1.1.1) … RP 10.255.0.100
(10.50.0.10, 239.1.1.1) … flags: T ! T = SPT bit set
Documented example, not captured output.
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 → PIM Sparse Mode → Source Tree. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7761.html · confidence 94%