Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Source Tree

Direct answer

A source tree is source-specific multicast state represented as (S,G), with forwarding rooted toward source S for group G.

When to use this

Use (S,G) to verify active-source state, shortest-path-tree behavior and the actual RPF interface toward the source.

First 30 seconds

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.

Operational verification

traffic on shared tree → last-hop join (S,G) → SPT → prune from RP tree

Evidence · next step

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Key commandshow ip mroute 239.1.1.1 10.1.1.10
Scope / prerequisiteUse (S,G) to verify active-source state, shortest-path-tree behavior and the actual RPF interface toward the source.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points
  • S identifies one source; G identifies the group
  • IIF should match the RPF path toward S
  • OIL lists downstream receiver branches
  • ASM can transition from shared-tree to source-tree state; SSM is inherently source-specific
  • (S,G) presence does not guarantee packet counters are increasing.
Key checks
  • show ip mroute <source> <group> — (S,G) entry and flags
  • show 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

  • S identifies one source; G identifies the group
  • IIF should match the RPF path toward S
  • OIL lists downstream receiver branches
  • ASM can transition from shared-tree to source-tree state; SSM is inherently source-specific
  • (S,G) presence does not guarantee packet counters are increasing.

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)
RootRPSource
StateOne entry per groupOne entry per source and group
PathVia the RP; can be longerShortest unicast path from the source
Built by(*,G) Joins(S,G) Joins

The switchover (RFC 7761)

StepDetail
1Last-hop router receives the first packets on the shared tree
2Policy decides to switch (Cisco IOS: on the first packet by default)
3Router sends an (S,G) Join towards the source
4Once 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

SituationReason
Many low-rate sources per groupSaves (S,G) state
Hardware state limitsFewer entries
RP placed on the natural pathNo benefit from switching

For one-to-many streams, SSM uses source trees from the start, with no RP.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 7761

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%
Confirmation

Confirm action

Continue?