Summary
- RFC 9628 gives VP9 two contracts for declaring inter-picture dependency: flexible mode carries up to three relative references (
P_DIFF) on each predicted picture, while non-flexible mode predeclares a recurring Picture Group inside a Scalability Structure block. - Picture IDs, layer indices,
P_DIFF,SS, theB/Eframe-boundary bits and the RTP marker describe the sender's structure. None of them proves that every fragment arrived, that the receiver retained every reference, that hidden codec state survived, or that a visible picture was produced. - A defensible VP9 receipt joins six things: the negotiated payload context, the active mode-and-structure epoch, packet coverage, reference closure, bitstream validation, and decoder-plus-application output.
The forwarding log was a beautiful thing to behold. Every packet carried a Picture ID. The temporal and spatial layer labels sat in their fields like buttons on a well-pressed shirt. The middlebox walked the declared references backwards and the graph closed with an audible click.
The decoder froze anyway.
Nothing in RFC 9628 is embarrassed by that outcome. The standard describes how VP9 video is carried in RTP and how temporal and spatial scalability gets exposed to endpoints and selective forwarders. It is a description contract. It is not a delivery receipt, a decode certificate, or a photograph of what the viewer saw.
That distinction matters precisely because the header is so persuasive. A dependency graph looks like the system itself. In operation it is one declared layer of reality, and the layers beneath it — packets, retained references, hidden codec state, the display — keep their own books.
One codec, two ways of disclosing the past
VP9 may keep as many as eight reference frames, and a new frame may lean on up to three. RFC 9628 flattens that into spatial and temporal relationships a receiver can reason about. The D bit reports whether a spatial-layer frame depends on the immediately lower spatial layer of the same picture. Inter-picture references are disclosed in one of two modes, and the difference is not cosmetic.
Flexible mode is local and explicit. When a predicted picture arrives with F=1, at least one and at most three P_DIFF values name earlier Picture IDs. A current PID of 112 with P_DIFF=3 points at PID 109, computed modulo the active 7- or 15-bit PID space. Because the references ride along with the picture, the encoder is free to reshuffle the temporal hierarchy as it goes.
Non-flexible mode is compact and historical. A Scalability Structure block predeclares a recurring Picture Group; the key picture anchors position one, and later Picture IDs advance through the declared pattern modulo N_G. The receiver derives a picture's temporal identity, switching point and relative references from its slot in the pattern rather than from a fresh list on every predicted picture.
Two modes, two different evidence obligations. Flexible mode asks an auditor for the current picture and its explicit references. Non-flexible mode asks for the governing SS epoch, its key-picture anchor, and the boundary at which the structure was allowed to change — because without them a later packet is not merely under-documented, it is unreadable.
A Picture ID is useful because it is not a global identity
Picture ID is a running index, not a content address. The sender picks seven or fifteen bits, starts at a random point, wraps at the end of the field, and may change width mid-session: seven to fifteen zero-extends, fifteen to seven truncates.
Every frame belonging to one picture shares the PID, including each spatial representation of that instant. A picture with show_frame=0 still takes a different PID from the picture later displayed. The identifier tracks transport pictures, not images a person would recognise.
Continuity at the receiver is not guaranteed either. A selective forwarder may lawfully discard pictures under the declared scalability structure, and the RFC warns plainly that received Picture IDs need not be contiguous. A gap can mean loss, a forwarding decision, or the edge of your observation window. A beautifully smooth sequence can wrap, or hide missing fragments inside a single picture.
So the audit key has to be bigger than the field: session, SSRC, payload mapping, PID width and value, RTP timestamp, layer, mode epoch, observation point. Strip those coordinates and a precise identifier degrades into an ambiguous number that flatters everyone.
The recurring graph needs an epoch
Non-flexible mode buys bandwidth by making history shared. Its Picture Group fixes a recurring dependency pattern; TL0PICIDX separately tracks temporal-layer-zero pictures so a higher temporal layer knows which base picture holds it up. That index wraps too, after 255.
The economy only works if sender, middlebox and receiver agree on the same structure, so RFC 9628 constrains when the mode and SS data may change. F flips only on the first packet of a key picture. In a fixed scalable stream, SS data should appear on the first packet of each keyframe, and a new structure may begin only at the previous group's first-picture boundary.
A capture that starts halfway through an epoch can show immaculate PIDs and layer IDs while missing the declaration that gives them meaning. A restarted forwarder can hold current packets and not the structure that maps them. A logging system can keep the SS block and lose the key-picture boundary that anchors phase. Guessing the most common pattern repairs none of it.
For non-flexible operation the receipt must preserve the structure version, the packet that introduced it, the key-picture anchor, the Picture Group length, and the observed PID-to-group-position mapping. Otherwise “reference graph reconstructed” is a polite way of saying “reference graph assumed.”
Frame complete and picture complete are different claims
VP9 frames fragment across RTP packets. B marks the first packet of a frame, E the last, and the RTP marker identifies the final packet of the highest spatial-layer frame — the end of the picture. A middlebox that strips higher spatial layers must move that marker to the last packet of the layer it actually forwards.
These flags solve boundary discovery. They do not conjure missing bytes. E=1 does not show that every RTP sequence number after B arrived; the marker does not show that all lower spatial frames required by D=1 were complete. A middlebox can rewrite the picture boundary impeccably while forwarding a stream whose required reference died three packets earlier.
This format offers no finer-grained access mechanism for a partial VP9 frame. Operationally the receiver needs sequence coverage from B through E, a coherent timestamp and spatial ordering, and the correct final marker for its selected output. Boundary metadata and coverage evidence stay separate columns in the ledger.
The visible graph omits part of codec state
Reference pictures are not the only state that crosses VP9 frames. The codec also carries probability tables for entropy and tree coding. RFC 9628 calls out error_resilient_mode precisely because it resets that extra inter-frame state.
In a scalable stream, an encoder must not leave a later frame depending on state from a frame that may legitimately be removed. The base spatial layer therefore needs error-resilient handling wherever such removal is possible; higher layers may relax only under the specified inter-layer conditions.
Here is the hard ceiling on header-only confidence. P_DIFF and SS can describe the permitted reference-picture graph flawlessly while the encoded frame still leans on codec state that was never safely reset after a drop. And a robust decoder can conceal damage without ever validating the sender's description.
A reference-closure checker is necessary. It is not a decoder. The receipt needs bitstream validation and real decoder output before anyone is allowed to say “decodable.”
Layer labels describe a choice surface
TID and SID identify temporal and spatial layers. D reports dependency on the immediately lower spatial layer of the same picture. U announces a switching-up point: after this picture, higher temporal layers will not reach back above the current temporal layer. Z says upper spatial layers do not depend on the current spatial frame, so it can be dropped for a receiver targeting higher layers.
Each field authorises a narrower inference than dashboards hand it. U=1 does not prove the switching picture arrived. Z=1 does not prove discarding was wise or that the retained path met a quality goal. SID=2 is not a resolution, still less an experience. D=0 removes one same-picture dependency and says nothing about inter-picture references or packet completeness.
The VP9 bitstream specification defines what the coded payload means; the RTP descriptor defines how much structure can be exposed around it. Neither lets a forwarding policy grade its own homework from labels alone.
Feedback acknowledges a different event
RFC 9628 also wires VP9 into several feedback mechanisms. A receiver can use Reference Picture Selection Indication to name a correctly decoded golden or altref picture, or to prefer a known reference after loss. Full Intra Request asks for a full state refresh. Layer Refresh Request, defined separately in RFC 9627, requests a narrower temporal or spatial transition.
RPSI is stronger evidence than a parsed PID because the receiver is asserting correct decoding of a reference. It is still not a universal display receipt: it does not say every spatial frame in that picture was shown, that the application chose it for playout, or that the viewer got the intended improvement before the deadline.
For LRR, RFC 9628 recommends carrying layer indices and reference fields so a decoder or selective forwarder can walk backwards until it hits already-decodable material. That recommendation is exactly why the graph matters. It does not fold a request, a structural response, packet delivery and a rendered upgrade into one tidy transaction.
Capability signalling does not close the execution loop
The SDP mapping binds a dynamic payload type to VP9 at 90 kHz. profile-id is the symmetrical media-format configuration; absent it, Profile 0 is inferred. max-fr and max-fs are declarations of receiver capability.
Declarations set expectations, not measurements. RFC 9628 says a sender should stay inside the advertised limits while acknowledging cases — pre-encoded media, selective forwarding — where an exact fit may not exist. An accepted offer therefore proves nothing about the next frame, and a payload-type number means nothing without the negotiated mapping and profile epoch.
So the complete receipt starts before the first VP9 descriptor: offer, answer, payload type, profile, capability claims, SSRC, and any later renegotiation. Only then can packet metadata be read against the right contract.
None of this makes the graph less useful. It makes the graph honest. RFC 9628 hands you the sender's account of structure — and structure is the one thing a frozen decoder cannot argue with after the fact. What the standard will not hand you is the rest of the story. Collect the epoch, the coverage, the codec verdict and the rendered result, or spend the next incident review explaining how a graph that closed perfectly produced a picture that never arrived.
Sources
- Lu Heng — Minimum Initial Specification
- Lu Heng — Running-Code Primacy
- IETF Datatracker — RFC 9628 history
- VP9 Bitstream and Decoding Process Specification v0.6
- IANA — RTP Parameters
- RFC 3264 — Offer/Answer
- RFC 3550 — RTP
- RFC 4585 — RTP/AVPF feedback
- RFC 5104 — Codec-control feedback
- RFC 7667 — RTP topologies
- RFC 8866 — SDP
- RFC 9626 — Video Frame Marking
- RFC 9627 — Layer Refresh Request
- RFC 9628 — status
- RFC 9628 — HTML
- RFC 9628 — canonical text
- RFC 9628 — canonical XML
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






