| Internet-Draft | MoQ FEC Multicast | November 2026 |
| Ramadan | Expires 24 May 2027 | [Page] |
This document specifies how the Forward Error Correction (FEC) mechanism for Media over QUIC (MoQ) is used when protected tracks are delivered over multicast. It defines repair-only multicast endpoints and how a receiver adds and drops the repair layers they carry, states which tracks a multicast endpoint carries in this revision, specifies how a receiver treats blocks and symbols that a multicast content-authentication profile has not admitted, and specifies the receiver repair policy of a multicast or AMT leg: in-band FEC first, then per-block unicast repair for the blocks that FEC did not recover, with a budget and priorities derived from the catalog. It is independent of how multicast is carried, whether by Source-Specific Multicast and Automatic Multicast Tunneling or by a multicast QUIC channel.¶
This note is to be removed before publishing as an RFC.¶
Discussion of this document takes place on the Media Over QUIC (moq) Working Group mailing list (moq@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/moq/.¶
Source for this draft and an issue tracker can be found at https://github.com/Blockcast/moqcast-draft.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 24 May 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The FEC mechanism of [MOQ-FEC-CORE] lets a receiver recover lost source symbols from repair symbols that the publisher sends ahead of need, and lets each receiver choose how much repair it takes by subscribing to repair tracks. On a MoQ unicast path a receiver can also fall back on QUIC retransmission. On a multicast path it cannot: IP multicast and Automatic Multicast Tunneling (AMT) deliver the same packets to every receiver, no receiver can ask the network for a retransmission, and a receiver without a return path cannot ask anyone. FEC is therefore the primary recovery mechanism on a multicast leg, and this document specifies what is particular to it.¶
On a multicast endpoint the receiver does not choose tracks; the operator of the endpoint does. This document defines how the repair layers of an FEC instance are placed on endpoints, including endpoints that carry only repair, and how a receiver that measures loss moves between them (Section 4). It states which tracks a multicast endpoint carries in this revision (Section 3.3), and how the mechanism relates to the repair that a multicast QUIC channel may provide below it (Section 3.4). Where a multicast content-authentication profile decides which packets a receiver may trust, it specifies how blocks delimited by packets that the profile has not admitted are held (Section 5). Finally it specifies the receiver repair policy of a multicast or AMT leg (Section 6): every block gets in-band FEC first, and a receiver that holds a MoQ session requests unicast repair, by the per-block FETCH of [MOQ-FEC-CORE], only for blocks that FEC did not recover, in an order and within a budget that the catalog fixes.¶
This document is a companion to [MOQ-FEC-CORE], which defines the
scheme-independent mechanism: source symbols and blocks, symbol and
repair tracks, repair layers, repair Group IDs, fetching by block,
deadlines and the configuration data model. Everything this document
does not define it takes from there. The set of documents is
completed by [MOQ-FEC-BLOCK], which specifies the Reed-Solomon and
RaptorQ schemes, [MOQ-FEC-CATALOG], which binds the configuration
data model to the catalog, and [MOQ-MMT], which defines the MMTP
block profile iso-ssbg1-v1 and the keyframe overlay. Multicast
carriage itself, endpoint discovery, the multicast packet format and
the bc-provenance content-authentication profile are defined in
[MOQ-MULTICAST]; this document adds the FEC-specific behavior on
top of them and does not depend on which carriage delivers the
multicast packets. Like the core, it defines no message, parameter
or Property of MoQ Transport ([MOQ-FEC-CORE] Section 1.3). Most of the text of this document is taken from
[I-D.ramadan-moq-fec]; Appendix B
lists what moved here and what changed.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The terms below are used in this document with the meaning that [MOQ-FEC-CORE] gives them; every other term of that document, and of [MOQ-MULTICAST], keeps its meaning there.¶
Source Track: A MoQ track whose objects carry media, for example video or audio, and which an FEC instance protects.¶
FEC Instance: One independent FEC encoding over a sequence of source symbols, with its own source symbol bound K, symbol size T, SS_ID space, block partition, repair symbols and repair tracks. A source track has one or more FEC instances (Section 5.1 of [MOQ-FEC-CORE]).¶
Base Instance: Of a source track that a keyframe overlay protects, the instance that is not the overlay; of any other source track, its only instance.¶
Source Symbol: A T-byte unit of source data that an FEC instance
encodes. Under iso-ssbg1-v1 a source symbol is one FEC source
packet, an MMTP packet framed as Section 7.1 of
[MOQ-MMT] specifies.¶
Repair Symbol: A T-byte unit generated by the FEC scheme from the source symbols of one block.¶
SS_ID: The 32-bit sequence number of a source symbol within its FEC instance. It wraps modulo 2^32 (Section 7.6 of [MOQ-FEC-CORE]).¶
Source Block: A run of SSB_length consecutive source symbols, 1 <= SSB_length <= K, over which a block FEC scheme encodes. A block is the SS_ID range [SS_Start, SS_Start + SSB_length) and is identified by its SS_Start.¶
SS_Start and SSB_length: The first SS_ID of a source block and the block's source symbol count, carried in the Repair FEC Payload ID of every repair packet of the block (Section 7.5 of [MOQ-FEC-CORE]).¶
RS_ID: The zero-based index of a repair symbol among the repair symbols of its block.¶
Repair Track: A MoQ track whose objects each carry one repair
symbol of one FEC instance. Under iso-ssbg1-v1 its objects are MMTP
FEC repair packets ([ISO.23008-1] Section C.4.3), the layer-0 repair
track carries the FEC repair flow that an ISO AL-FEC message names for
the source track's FEC encoded flow (Section 8.3
of [MOQ-MMT]), and further repair layers and a keyframe overlay are
repair tracks that only the catalog declares.¶
Repair Layer: One of possibly several repair tracks of one FEC instance, each carrying a disjoint range of RS_IDs for every block (Section 7.3 of [MOQ-FEC-CORE]). Layer 0 is the base layer. Layer i may use RS_IDs from its RS_ID offset O_i, and carries P_i repair symbols per block.¶
Symbol Track: A MoQ track whose objects each carry exactly one source symbol of one FEC instance, grouped by block (Section 6.2 of [MOQ-FEC-CORE]).¶
Keyframe Overlay: A second, independent FEC instance over an MMTP-packaged source track whose source symbols are only the fragments of Random Access Points and the FT=0 and FT=1 data units that govern them, defined in Section 7.4 of [MOQ-MMT]. An overlay is not a repair layer and carries no layer index.¶
Interleave Depth: When positive, the complete time span, in
milliseconds, of one FEC source/repair packet block, signaled as
interleaveDepthMs (Section 9.3 of
[MOQ-FEC-CORE]). Zero is not a millisecond span: under
iso-ssbg1-v1 it selects the ISO packet-count alternative (Section
7.5 of [MOQ-MMT]).¶
FEC Deadline: The elapsed-time deadline that a receiver derives
for a block from a positive interleaveDepthMs together with
reorderToleranceMs (Section 9.3 of
[MOQ-FEC-CORE]). A block has an FEC deadline only when its
instance carries a positive interleaveDepthMs.¶
Multicast Endpoint: One multicast group of a catalog's multicast
extension, with the list of tracks it carries (Section
4.1 of [MOQ-MULTICAST]).¶
Unlisted Track and Admitted Packet: Within a consumer that the bc-provenance profile of [MOQ-MULTICAST] protects, an unlisted track is one that no endpoint of a flow the consumer is protected under lists, and an admitted packet is one that step 2 of the receiver procedure of that profile (Section 7.2.7 of [MOQ-MULTICAST]) has admitted.¶
The FEC mechanism of [MOQ-FEC-CORE] is designed to support hybrid delivery architectures where the same media stream is delivered via multiple transport paths simultaneously. Multicast delivery paths, TreeDN integration, and the transport hierarchy are defined in [MOQ-MULTICAST] (its Sections 1 and 3); this section covers FEC-specific considerations for hybrid delivery.¶
The catalog's authority over FEC configuration (Section 10 of [MOQ-FEC-CORE]) holds uniformly across a MoQ receiver's delivery paths, its multicast and AMT legs included. MoQ control messages cannot reach multicast or sessionless receivers at all, so no control-message mechanism could serve as the common signaling path; the catalog can, because it is delivered as track data or out of band.¶
IP multicast (including Source-Specific Multicast per [RFC4607]) and Automatic Multicast Tunneling (AMT per [RFC7450]) provide efficient one-to-many delivery but are inherently unreliable. FEC enables receivers to recover from packet loss without retransmission:¶
For an mmtp track, the same MMTP packets (source and repair) can be transmitted over both unicast (QUIC/WebTransport) and multicast (UDP/SSM/AMT) paths. Receivers that take the track on QUIC streams can skip FEC decoding (Section 3.3 of [MOQ-FEC-CORE]), while receivers on lossy multicast paths use FEC for recovery and apply the receiver repair policy of Section 6 to any block that FEC does not recover. Receivers that take its "mfu-datagram" track, which carries the same source packets as unicast datagrams under FEC instances and repair tracks of its own ([MOQ-MMT] Section 4.3.1), use FEC too, and repair as that section specifies. A multicast endpoint carries only mmtp tracks, so a loc or cmaf track reaches multicast through an mmtp alternate track, which is a separate FEC instance ([MOQ-MULTICAST] Section 4.1; see Section 3.3).¶
Publisher
|
v
+----------------+
| MoQ Relay |
| (Origin/Root) |
+-------+--------+
|
+----+----+--------------------+
| | |
v v v
Unicast SSM Multicast AMT Tunnel
(QUIC) (Native) (Encapsulated)
| | |
v v v
[Web [Native SSM [Mobile/
Client] Clients] Remote]
FEC: FEC: FEC:
Optional Expected Expected
¶
The repair overhead this mechanism adds is justified only where the delivery path actually loses packets, and multicast loss characteristics differ by orders of magnitude across access technologies. FEC strength (P and Interleave Depth) is a per-path deployment choice, expressed by which tracks each endpoint carries, not a protocol constant.¶
Engineered low-loss segments. On managed PON or DOCSIS delivered over a provisioned VLAN, steady-state loss is typically far below 10^-6. Disabling FEC for such a path is signaled by omitting the repair track from the tracks that path's endpoints carry. Adding repair symbols on such a path spends bandwidth to recover losses that do not occur.¶
FEC-capable broadcast PHYs. ATSC 3.0, DVB-S2/S2X, and 5G broadcast already apply bit-error correction on their own radio link (e.g., LDPC/BCH in ATSC 3.0 and DVB-S2/S2X). Application-layer FEC is not a duplicate of that correction: it recovers packet erasures the PHY cannot address -- bursts when reception falls below the PHY threshold (rain fade, mobility, indoor reception), and losses on upstream aggregation or backbone hops that the last-hop PHY never sees. Its value on these paths comes primarily from Interleave Depth spreading a burst across the time domain, not from the code rate. On a one-way broadcast downlink with no return path, application-layer FEC is the only available erasure-recovery mechanism -- which is why ATSC 3.0 (see Section 10 of [MOQ-MMT]) specifies it above the PHY.¶
Public Internet and AMT tunnels. Loss is real and bursty; a non-trivial repair count with interleaving is RECOMMENDED.¶
Which tracks a multicast endpoint carries in this revision, and so which of the core's carriages reach a multicast leg, is stated in Section 3.3.¶
In this revision a multicast endpoint of [MOQ-MULTICAST] carries
mmtp tracks and their repair tracks only ([MOQ-MULTICAST] Section
4.1), so every track that a
multicast leg carries is protected under the iso-ssbg1-v1 block
profile of [MOQ-MMT], where one MMTP packet is one source symbol. A
loc or cmaf track reaches a multicast endpoint only through an mmtp
alternate track, which is a separate FEC instance. A symbol track of
the symbol carriage of [MOQ-FEC-CORE] (its Section
6.2) has the packaging value fec-source
([MOQ-FEC-CATALOG] Section 3.3), which the
name rule of [MOQ-MULTICAST] Section
4.1 does not permit, so a symbol
track is not listed on a multicast endpoint, and a receiver ignores an
endpoint that lists one under the rule of that section; this document
adds no receiver rule of its own.¶
Editor's Note: Symbol carriage makes one lost datagram erase one symbol, which is what multicast needs, and nothing in the core ties a symbol track to a MoQ path. Carrying symbol tracks and their repair layers on multicast endpoints, with a packet format for them, is future work for this document and [MOQ-MULTICAST].¶
This section is informative.¶
[QUIC-MULTICAST] lets a server send QUIC packets on one-way multicast channels. A channel is an alternate path of the unicast QUIC connections whose clients have joined it, and its packets can carry STREAM and DATAGRAM frames. Clients acknowledge channel packets with MC_ACK frames on their unicast connections ([QUIC-MULTICAST] Section 4.4). The server of each connection remains responsible for any necessary frame data that a channel loses, and Section 8 of [QUIC-MULTICAST] recommends that it send FEC repair packets on the channel instead of retransmitting the lost frames. That repair is a transport mechanism below this mechanism, and this document does not depend on it. This mechanism can serve as the application-layer FEC on such a channel, and suits broadcast-scale audiences better than unicast repair, because per-receiver retransmission does not scale.¶
When this mechanism is carried over a multicast QUIC channel:¶
Symbol-to-datagram mapping. Each source or repair symbol (one MMTP packet, per [MOQ-MMT]) is best carried in exactly one QUIC DATAGRAM frame, as an object of an mmtp track sent as datagrams, or of its repair tracks ([MOQ-MMT] Section 4.3.1). This aligns the erasure unit (a lost QUIC packet) with the FEC symbol, so one lost packet erases exactly one source symbol. STREAM framing defeats symbol-aligned recovery of FEC-protected media on a multicast channel: a lost packet then spans a byte range crossing symbol boundaries.¶
Crypto boundary. FEC encoding operates on application-layer objects, ABOVE the QUIC packet protection of [QUIC-MULTICAST]. Unlike bare multicast UDP -- which lacks QUIC's integrity guarantees (see Section 7) -- the multicast QUIC binding applies a shared-key AEAD per packet. A sender computes source and repair symbols over the unencrypted objects; the channel then applies its AEAD; a receiver decrypts each surviving packet and recovers erased objects from the decrypted source and repair symbols. A lost packet cannot be decrypted, but its object is reconstructed from other verified symbols, so recovery does not depend on possessing it.¶
Integrity of recovered objects. The MC_INTEGRITY frames of [QUIC-MULTICAST] carry hashes of channel packets, and a client decodes a channel packet only after a matching hash has arrived over another integrity-protected path ([QUIC-MULTICAST] Section 4.5). A FEC-reconstructed object was never carried in a single packet and is therefore not individually covered by a packet hash; it inherits trust transitively from the verified surviving symbols used to reconstruct it. Deployments requiring per-object authentication of recovered data can additionally apply a scheme that authenticates every multicast symbol before it enters the decoder, repair symbols included, and, whenever a symbol of its decode was not so authenticated, checks a recovered packet against its own digest or, where it can derive no coordinate to hash with, withholds it (for example version 2 of the manifest-based bc-provenance profile of [MOQ-MULTICAST] Section 7.2, whose receiver procedure is its Section 7.2.7).¶
Repair channel versus unicast repair. A publisher using this mechanism broadcasts repair symbols on the multicast channel (the repair track) rather than relying on unicast retransmission. Receivers covered by the repair flow have no need to drive unicast repair for losses the FEC recovers, which preserves the O(1) sender cost that motivates broadcast FEC. Unicast repair remains a last resort for losses exceeding the repair budget, and Section 6 specifies it.¶
Item 1 assumes iso-ssbg1-v1, under which one MMTP packet is one
source symbol; Section 3.3 states that this is the
only block profile a multicast endpoint carries in this revision.¶
A receiver deduplicates the symbols it receives on a multicast QUIC channel as on any other path, within one FEC instance: source symbols by SS_ID and repair symbols by (SS_Start, RS_ID). Section 5.5 of [MOQ-FEC-CORE] states that requirement; [QUIC-MULTICAST] states none for application symbols. That section also permits combining them with symbols received from other paths.¶
Multicast endpoints carry only mmtp tracks and their repair tracks
(Section 3.3), so this section concerns tracks
under iso-ssbg1-v1.¶
On a multicast endpoint the receiver cannot choose tracks; the
operator of the endpoint chooses which tracks that path carries. Each
repair layer carried on an endpoint is listed with its own packetId
([MOQ-MULTICAST] Section 4.1),
exactly as a source track is, and a
receiver MUST route every such packetId to the decoder of the FEC
instance that layer serves, the one its source and instanceId
name (Section 10.2 of
[MOQ-FEC-CORE]). Because every endpoint carries the same
source packets under the same block partition (Section
7.3 of [MOQ-FEC-CORE]), a
receiver that moves between endpoints, or that is side-fed over MoQ
unicast, mixes symbols from all of them in one decode. Layers not
carried on any endpoint the receiver holds remain reachable over MoQ
unicast (Section 7.2 of [MOQ-FEC-CORE]) for
receivers that have a return path.¶
An operator MAY carry the source track and its layers together on one
endpoint, or MAY place layers on endpoints of their own. An endpoint
whose track list contains only fec-repair tracks (the packaging
value of Section 3.3 of [MOQ-FEC-CATALOG])
is a repair-only endpoint:¶
{
"multicast": {
"endpoints": [
{
"sourceAddress": "198.51.100.100",
"groupAddress": "232.1.1.50",
"port": 5000,
"tracks": [
{ "name": "video", "packetId": 1 },
{ "name": "video/repair", "packetId": 2 }
]
},
{
"sourceAddress": "198.51.100.100",
"groupAddress": "232.1.1.51",
"port": 5000,
"tracks": [
{ "name": "video/repair/1", "packetId": 3 },
{ "name": "video/repair/2", "packetId": 4 }
]
}
]
}
}
¶
The first endpoint suits a regional path with low random loss. The second is repair-only: a receiver on a lossy path holds both, and receives source packets once while adding layers 1 and 2 to the same decode.¶
A repair-only endpoint is never a media tier. A receiver MUST NOT
treat one as an alternate track or quality choice, and endpoint or ladder
selection MUST exclude it on every path by which a receiver picks
what to render. A repair-only endpoint's bandwidth
([MOQ-MULTICAST] Section 4.1) is
the cost of adding repair to a
stream the receiver has already selected, not the cost of an
alternate track, and MUST NOT be compared against a media
endpoint's bandwidth when choosing one.¶
A receiver joins a repair-only endpoint on measured loss: the rate at which its FEC blocks fail to recover, and the margin by which recovering blocks consume the repair symbols available to it. A receiver MUST NOT use goodput, throughput, or estimated available bandwidth to decide whether to add or drop a repair layer. The capacity check that Section 7.4 of [MOQ-FEC-CORE] recommends before a layer is added is the one exception: it can withhold an add that measured loss calls for, but it is neither a trigger for adding a layer nor a reason to drop one.¶
Layer changes are make-before-break. A receiver MUST join the additional layer's endpoint and begin receiving from it before leaving any endpoint it currently holds, so that no source block is left with less coverage than the receiver already had. A layer whose endpoint the receiver has left is carried on no endpoint it holds, reachable over MoQ unicast as above; under the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 a receiver holds an endpoint while joined to its group, reading its manifest track or receiving the broadcast that carries the flow (its Section 7.2.9), and a consumer is protected under that endpoint's flow only while the receiver holds it (step 2 of [MOQ-MULTICAST] Section 7.2.7).¶
Hysteresis MUST derive from the FEC block span, that is from
interleaveDepthMs together with reorderToleranceMs, and MUST NOT
come from a fixed timer or a fixed symbol count. A receiver MUST
observe at least one full block span at the new layer set before
making a further layer change.¶
That loss measure and this hysteresis both need a block deadline,
which exists only for a positive interleaveDepthMs (Section
9.3 of [MOQ-FEC-CORE]). On a
multicast or AMT leg, a receiver of a track whose catalog omits that
field or sets it to zero MUST NOT add or drop a repair layer of the
track on block-recovery evidence, and keeps its repair-layer selection
for the track fixed. This is an exception to the layer addition that
Section 7.4 of [MOQ-FEC-CORE] recommends
when a block fails to recover: without a signaled span a receiver has
only a deadline of its own (its Section
9.3), and on a multicast or AMT leg this
document does not let it change layers on that basis.¶
Layering changes the shape of the amplification exposure, because the attacker's lever is now which layers a victim can be made to receive rather than only whether it receives repair at all. Each layer i adds P_i x T bytes per source block, so a receiver induced to hold more layers receives proportionally more repair traffic. Deployments SHOULD bound the number of layers any single receiver may hold, and SHOULD apply the same join authorization to repair-layer endpoints as to media endpoints; a repair-only endpoint is not less sensitive than a media one merely because it carries no media. A receiver MUST NOT be made to receive a repair layer it did not join. A publisher or relay MUST NOT push a repair-layer endpoint to a receiver that has not joined it, and MUST NOT add a layer to an endpoint a receiver has already joined as a way of raising that receiver's protection (Section 14.4 of [MOQ-FEC-CORE]).¶
The repair track of a keyframe overlay ([MOQ-MMT] Section 7.4) is
not a layer of the base instance: it carries no repairLayer and
stays outside the base instance's layer chain ([MOQ-MMT] Section
7.4.1). The rules of this section for adding and dropping a repair
layer apply to adding and dropping the overlay's repair track: the
join on measured loss, the capacity check, make-before-break, the
hysteresis and the fixed selection without a block deadline. For the
overlay's repair track they read the overlay instance's blocks,
interleaveDepthMs and reorderToleranceMs, and for a repair layer
the base instance's. The overlay instance has its own block
partition, whose blocks can span many base blocks ([MOQ-MMT] Section
7.4.2), and its own block span (Sections 8.4, 9.3 and 10.1 of
[MOQ-FEC-CORE]).¶
A receiver that does not hold the overlay's repair track cannot
delimit an overlay block, because only repair packets carry a block's
extent (Section 5.4 of [MOQ-FEC-CORE]). The loss it measures for
the overlay is then the RAP packets that it lacks and that base
decoding has not recovered, which gaps in the overlay SS_IDs of the
RAP packets it holds reveal (Sections 7.4.2 and 7.4.3 of
[MOQ-MMT]). A gap shows only when the next member arrives, so this
measure can lag a loss by up to one interval between covered
keyframes, which can be longer than the overlay's block span that
bounds the hysteresis. On a multicast or AMT leg, a receiver of an overlay
whose instance omits interleaveDepthMs or sets it to zero keeps
fixed whether it holds the overlay's repair track. A positive
overlay interleaveDepthMs, which [MOQ-MMT] Section 7.4.1
recommends wherever the base instance carries one, lets receivers on
those legs add and drop that track on loss. Where one endpoint
carries the overlay's repair track and a repair layer of the base
instance, joining or leaving it
changes both, and a receiver does so only when the rules for each
allow it.¶
The overlay's repair track adds P_overlay x T bytes per overlay block,
P_overlay being the overlay instance's repairSymbols. Every rule of
the paragraph on amplification above applies to it as to a repair
layer, and the bound on the layers a receiver may hold counts it.¶
The bc-provenance profile of [MOQ-MULTICAST] Section 7.2 decides, in step 2 of its receiver procedure (its Section 7.2.7), which packets of a protected flow a consumer admits. This section specifies what a receiver does with the blocks and symbols that the profile has not admitted; it adds no admission rule of its own. The block and short-block rules that it qualifies are those of Section 5.4 of [MOQ-FEC-CORE], the fail-closed layer check is that of Section 7.3.2, the Group-range FETCH is that of Section 7.7, and the block deadline and receiver-state policy are those of Sections 9.3 and 9.4.¶
A consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks is one protected under a flow whose endpoint lists its source track (step 2 of its Section 7.2.7). A consumer protected under no such flow, as one that a repair-only endpoint feeds while the receiver takes the source track over MoQ unicast alone, is, for this section, Section 5.4 and Section 6, a consumer outside the profile. The scoping of the check of Section 5.2 to admitted packets is wider: it reaches a consumer wherever it is protected under any flow of the profile, as it reaches every consumer so protected.¶
An unlisted track is one that no endpoint of a flow the consumer is protected under lists, as that step defines it: a track that no multicast endpoint the receiver holds lists, where holding an endpoint is being joined to its group, reading its manifest track or receiving the broadcast that carries the flow; or a track that a held endpoint lists while the consumer is not yet protected under its flow (Section 4).¶
Within a consumer the profile governs for its blocks, a block that only symbols of an unlisted track have delimited is provisional: it yields to a repair packet the profile has admitted whose (SS_Start, SSB_length) conflicts with it, as that step specifies, and the fail-closed consistency rules of Section 5.4 of [MOQ-FEC-CORE] then apply among admitted packets. A provisional block is held for decoding only: it has no ts and no FEC deadline (Section 9.3 of [MOQ-FEC-CORE]), and the SS_IDs in its range that the receiver lacks belong, for Section 6, to blocks the receiver holds no repair packet of, as if the block were not delimited; such a symbol reveals no run of lost SS_IDs, which a packet the profile admits above them alone reveals.¶
Section 7.3.2 of [MOQ-FEC-CORE] requires a receiver to fail closed, and stop FEC for the instance, when, for a layer i that it holds, a repair object of that layer's track, i being above 0, or a repair object of the instance of a block at or after, in the serial order of Section 7.6 of [MOQ-FEC-CORE], one of which it has received a repair object carrying at least O_i + P_i, carries an RSB_length below the O_i + P_i derived from its configuration; a block before the anchoring one whose objects carry less is not subject to the check. Within a consumer protected under a flow of the bc-provenance profile of [MOQ-MULTICAST] Section 7.2, whether or not that profile governs it for its blocks (Section 5.1), the packet that anchors the check and the packet it tests are both repair packets that profile has admitted (step 2 of its Section 7.2.7): a symbol of an unlisted track reaches the consumer under the integrity protection of a MoQ unicast path, which vouches for the relay and not for the publisher, so the total it carries attests to no coordinate the publisher is using; it anchors nothing, and one whose RSB_length is below the O_i + P_i of a layer the receiver holds is discarded, leaving the state of every block unchanged, so that a relay on that path cannot stop FEC for the instance with one packet.¶
Section 7.7 of [MOQ-FEC-CORE] derives, for a lost SS_ID x, the Group range [ max(ext(S_prev) + 1, ext(x) - (K - 1)), ext(x) ], where S_prev is the SS_Start of the last block that the receiver has delimited that ends before x. Within a consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks (Section 5.1), only a block that a repair packet the profile has admitted delimits counts here: a provisional block, one that only symbols of an unlisted track (Section 5.1) have delimited, is no such block, as its (SS_Start, SSB_length) is unverified and the block that contains x may start within its range. When the receiver has delimited no such block, the first term is absent and the range is [ max(ext(x) - (K - 1), 0), ext(x) ].¶
The block deadline of Section 9.3 of
[MOQ-FEC-CORE] is anchored at first_arrival, written ts in this
document: the timestamp of the first source or repair packet of the
block when the receiver received that packet, not at block creation
or the first repair receipt. A
block whose first packet the receiver did not receive is one that it
first learns of from a later signal -- a later source or repair
packet of the block, a packet of a successor block, or a FETCH
response that covers the block (Section
7.7 of [MOQ-FEC-CORE]) --
and its ts is the
arrival time of that signal. Within a consumer that the
bc-provenance profile of [MOQ-MULTICAST] Section
7.2 governs for
its blocks (Section 5.1), the packet whose receipt anchors
ts is
the first packet of the block, in the order received, that the
profile admits, whenever it admits it (a datagram held on a miss
and admitted later keeps its receipt time), and a symbol of an
unlisted track (Section 5.1) is neither that packet nor such
a
signal, whether or not a repair packet the profile admits later
delimits the same block; a block that only such symbols have
delimited is held for decoding only: it has no ts and no FEC
deadline,
whatever packets the profile admits into or above its range, and the
SS_IDs in its range that the receiver lacks are runs of
Section 6, each with the ts the packet admitted
above it gives, as step
2 of [MOQ-MULTICAST] Section
7.2.7 specifies.¶
Under that profile a sender holds a datagram until the window that
covers it closes, up to manifestTimerMs, and a receiver holds one
whose signed record it lost until the record's twin arrives, which
the sender transmits up to maxAuthDelayMs / 2 after the record
([MOQ-MULTICAST] Section 7.2.5); a symbol admitted after its
block's FEC deadline is too late for the decode of
Section 6. A publisher whose flows that profile
protects SHOULD include both holds in an instance's
reorderToleranceMs, the allowance for processing of Section 9.3
of [MOQ-FEC-CORE], so that a short interleaveDepthMs does not
let a block's deadline pass while a datagram that arrived in time
awaits verification.¶
A receiver bounds the state it holds for open blocks by the
receiver-local policy of Section 9.4 of
[MOQ-FEC-CORE], which forbids discarding a block that has an FEC
deadline before that deadline, or while a FETCH for it is outstanding,
the unicast repair FETCH of Section 6.2 included,
except under a memory cap. A block so discarded is, under that
section, treated from then on as having reached its FEC deadline
unrecovered and, on a track whose blocks Section 6.1
classifies, of unknown class. Within a consumer that the
bc-provenance profile governs for its blocks (Section 5.1),
the
policy discards a block that has no ts, one that only symbols of
an unlisted track have delimited, before any block that has a ts,
on a track that derives no FEC deadline as on one that does, and
such a discard is neither a reached deadline nor a
signal: it gives the block no deadline and no class, drops its repair
symbols and returns its source symbols to the undelimited state of
Section 5.4 of [MOQ-FEC-CORE] (step 2
of [MOQ-MULTICAST] Section
7.2.7). The policy is not
signaled and is kept separate from the configured values (Section
9.4 and Section 9.3
of [MOQ-FEC-CORE]): it changes neither interleaveDepthMs nor
reorderToleranceMs nor a deadline derived from them, and discarding
a block under it does not create an FEC deadline
(Section 6).¶
This section specifies what a receiver of a multicast or AMT leg does
with a base-instance block of a source track that in-band FEC has not
recovered by the block's FEC deadline (Section
9.3 of [MOQ-FEC-CORE]). A receiver that takes an mmtp track as MoQ
datagrams on a unicast QUIC path ([MOQ-MMT] Section 4.3.1) has no
retransmission either, but its repair serves it alone, and it requests
repair as that section specifies; on a multicast QUIC channel
(Section 3.4) this section applies as on any multicast leg. A
receiver on a MoQ/QUIC leg that delivers the track on streams relies
on transport retransmission (Section
3.3 of [MOQ-FEC-CORE])
and does not need it, and nothing in this section adds a deadline or
a timer to such a leg. Multicast and AMT legs carry only mmtp tracks
([MOQ-MULTICAST] Section 5;
Section 3.3), so this section, which classifies
blocks from MMTP fields, concerns tracks under iso-ssbg1-v1.¶
Every step of this section is keyed on a block's FEC deadline, which
exists only when the track's catalog carries a positive
interleaveDepthMs (Section 9.3 of
[MOQ-FEC-CORE]). On a multicast or AMT leg, this
section therefore requires a positive interleaveDepthMs: a receiver
of a track whose catalog omits it or sets it to zero MUST disable the
block classification and unicast repair of this section for that
track. The receiver still decodes in-band FEC from the symbols that
arrive (Section 5.5 of
[MOQ-FEC-CORE]), with open-block state bounded by the local
policy of Section 9.4 of [MOQ-FEC-CORE] and
Section 5.4.
Media still missing at its presentation time is
lost: the loss of a RAP, or of a data unit that governs one, is
handled as for an unrecoverable keyframe-bearing block
(Section 6.2), and other loss is concealed as in
Section 6.3 and Section 6.4.¶
Every block receives in-band FEC processing. A receiver MUST attempt to recover every block, whatever its class, from the source and repair symbols received on its multicast and AMT paths, together with any it receives on other paths (Section 5.5 of [MOQ-FEC-CORE]), up to the block's FEC deadline. Within a consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks (Section 5.1), a symbol of an unlisted track (Section 5.1) enters a decode only as step 2 of [MOQ-MULTICAST] Section 7.2.7 allows, which takes none into a decode of a block that two decodes with such symbols' help have left unrecovered; the attempt continues from the symbols the profile admits. The rest of this section governs only a block that is still unrecovered at that deadline: the receiver does not hold all of its SSB_length source symbols (Section 5.4 of [MOQ-FEC-CORE]), and decoding from the symbols it holds has not recovered them. Within such a consumer, a source symbol the profile has not admitted, received or recovered, is not held for this purpose (step 2 of [MOQ-MULTICAST] Section 7.2.7).¶
A run of SS_IDs that the receiver lacks and that lies in no block it has delimited belongs to one or more blocks of which it holds no repair packet (Section 5.4 of [MOQ-FEC-CORE]). For this section the receiver treats such a run as one block of the instance (within a consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks, Section 5.1, a block only symbols of an unlisted track have delimited being no block the receiver has delimited, and the run one only once a packet the profile has admitted lies above it, step 2 of [MOQ-MULTICAST] Section 7.2.7): Section 6.1 classifies it from the source packets the receiver holds on either side of it, and its repair is requested by the Group range of Section 7.7 of [MOQ-FEC-CORE], whose response also delimits the blocks it covers.¶
The policy distinguishes keyframe-bearing blocks, whose loss can stop video decoding until the next Random Access Point (RAP), from other blocks, whose loss damages only frames up to the next RAP. Keyframe-bearing blocks are protected by priority unicast repair and are the only blocks whose loss may stall video. Other blocks are repaired on a best-effort basis and, when repair fails, concealed. Every frame and audio sample a receiver presents MUST be presented at its authored time on the presentation clock shared by its tracks, and a receiver MUST NOT stall video or pause that clock except for a keyframe-bearing block (Section 6.2).¶
This section applies to tracks protected under the iso-ssbg1-v1
block profile of [MOQ-MMT], and the fields it reads are those of
the MMTP packet header, of the MPU-mode payload header and of the DU
header, as Sections 3.1 and 5.2 of
[MOQ-MMT] define them. The classification is a receiver-side
repair-ordering policy computed from MMTP packet headers that the
receiver already holds: it decides which unrecovered blocks are
requested first and which may stall video. It is not instance
membership. A receiver never uses it to decide which FEC instance a
packet belongs to, which repair layers to hold, or whether to feed a
symbol to a decoder: instance membership and the symbols a decoder
takes follow from the configuration and the Source FEC Payload ID
alone, and the layers a receiver holds are chosen as Section
7.4 of [MOQ-FEC-CORE] describes, from the
loss it observes and its capacity, never from a payload, as Section
8.5 of [MOQ-FEC-CORE]
requires. What this section decides from the headers is only the
order and budget of the per-block unicast repair of
Section 6.2 and Section 6.5, a choice
that Sections 7.4 and
7.7 of [MOQ-FEC-CORE] leave
to the receiver.¶
A base block of a video source track is keyframe-bearing if the
source symbols that the receiver lacks from it carry, or may carry,
any part of a RAP: a fragment of a RAP MFU, or of the FT=0 or FT=1
data unit that governs it ([MOQ-MMT] Sections 4.3 and 5.1). The
class goes by what the receiver lacks: it orders repair and decides
what may stall video. The budget of Section 6.5 is
credited by what a block carries, held or not, as that section says.
The receiver classifies each block when the block reaches its FEC
deadline, from two inputs and only from them: fields of the source
packets that it holds, and the track's keyframe interval and group
duration in the catalog ([MOQ-MMT] Sections 4.4.2 and 4.4.3). A
video MPU holds exactly one RAP, its first sample ([MOQ-MMT]
Section 5.3.4), and every packet of an MPU carries the MPU sequence
number. A keyframe interval that is equal to the group duration
tells the receiver that the publisher keeps to this. The receiver
reads neither priority nor dep_counter. It reads a decode time
for one purpose only, to check that statement, as this section says
below. The block's
SS_Start and SSB_length, once known
(Section 5.4 of [MOQ-FEC-CORE]), fix
which SS_IDs belong to the block, and a positive
interleaveDepthMs with reorderToleranceMs fixes the elapsed-time
deadline at which the class is taken (Section
9.3 of [MOQ-FEC-CORE]).¶
The receiver first bounds what the block's missing source symbols can carry. The lower bounding packet is the last source packet it holds, in SS_ID order, before the block's first missing source symbol; the upper bounding packet is the first source packet it holds after the block's last missing source symbol. Either may lie in an adjacent block. Only FEC source symbols count: the AL-FEC signaling object of [MOQ-MMT] Section 8.3 carries no SS_ID and is never a bounding packet. A publisher MUST assign the base SS_IDs of a track's source packets in increasing order along the authored order of [MOQ-MMT] Section 4.3, so every data unit the missing symbols can carry lies between the data units of the two bounding packets, those two included.¶
The bounding packets bound that data. The class comes from two DU headers, which the MPU rule reads and which need not be the bounding packets. The lower DU header is the last FT=2 source packet carrying a DU header that the receiver holds, in SS_ID order, before the block's first missing source symbol. The upper DU header is the first one it holds after the block's last missing source symbol. Either may lie in an adjacent block.¶
The rule uses two things that the receiver knows about what it holds:¶
The lower side is clear when the receiver can tell that the lower
DU header's sample is not the first sample of its MPU, or when it
holds every packet of that first sample. The block's missing
symbols then carry no
part of the RAP of the lower header's MPU. [MOQ-MMT] Section 4.3
sets RAP_flag on the packet that begins the first sample of an
MPU, the packet whose DU header carries offset zero, and
[MOQ-MMT] Section 5.3.4 lets no packet of a later sample set it.
So a DU header that carries offset zero in a packet that does not
set RAP_flag belongs to a later sample. So does a DU header whose
movie_fragment_sequence_number or sample_number differs from
those of a DU header of the same MPU whose packet sets RAP_flag.¶
The start of an MPU is held whole when the receiver holds the MPU metadata packet (FT=0) of that MPU, the movie fragment metadata packet (FT=1) sent before its first sample, and every packet of that first sample.¶
A receiver holds every packet of a sample when it has reassembled the sample completely ([MOQ-MMT] Section 5.3.3). The MPU rule has four items:¶
Same MPU. The two DU headers carry the same MPU sequence number, and the lower side is clear. Every missing symbol then belongs to that MPU and lies after its first sample, so none carries part of a RAP or of the FT=0 or FT=1 data unit that governs one. The block is non-keyframe-bearing.¶
Next MPU. The upper DU header's MPU sequence number is the lower
DU header's plus one, modulo 2^32. The start of the upper
header's MPU then lies between the two headers. The block is
non-keyframe-bearing if the lower side is clear and the receiver
holds the start of the upper header's MPU whole. Otherwise it is
keyframe-bearing. Where the upper DU header begins the first
sample of its MPU, that is, it carries offset zero and its packet
sets RAP_flag, the FT=0 and FT=1 packets of that start are
enough: every other packet of the sample follows the header, so
none is a missing symbol of this block.¶
More than one MPU apart. The two MPU sequence numbers differ in any other way. A whole MPU can then lie between the two headers, its RAP with it. The block is keyframe-bearing.¶
No header on one side. The receiver holds no lower or no upper DU header. The block is of unknown class.¶
A block whose two DU headers carry the same MPU sequence number, and whose lower side is not clear, is keyframe-bearing: its missing symbols can carry part of the first sample of that MPU. A receiver MUST treat a block of unknown class as keyframe-bearing. A block of unknown class takes its class from items 1 to 3 once the receiver holds the header that it lacked, also after the block's FEC deadline, and the receiver treats it by that class from then on. A repair that it already requested for the block stands as requested.¶
The rule compares fields that every packet of the track already carries. Its four items read no decode time and need no knowledge of the samples that follow a loss, so it holds for any frame structure: a chain of frames each predicted from the one before, reordered frames, or layers. Its cost is that the class of a loss at the end of what the receiver holds is known only when the next DU header arrives.¶
The rule rests on two things that a publisher keeps: exactly one RAP in a video MPU ([MOQ-MMT] Section 5.3.4), and an MPU sequence number that is never used twice on a track ([MOQ-MMT] Section 4.3). A publisher of an earlier revision of [MOQ-MMT] could place further RAPs in an MPU, and no packet names the revision. A receiver MUST NOT apply items 1 and 2 to a track unless its catalog carries a keyframe interval that is equal to the track's group duration ([MOQ-MMT] Section 4.4.3). It MUST NOT apply them to a track once it has found on that track either of two things:¶
a RAP that is not the first sample of its MPU; or¶
an MPU that lasts longer than the keyframe interval, that is, an MPU one of whose samples has an authored decode time ([MOQ-MMT] Section 5.1) one keyframe interval or more after that of its first sample.¶
A track of an earlier revision whose keyframe interval equals its group duration can hold a further RAP only in an MPU of the second kind. A receiver that applies items 1 and 2 MUST look for the second before it classes a block, among the samples whose decode times it can determine, those of the block's two DU headers included. This is the only use of a decode time in this section. It decides whether the rule applies to the track, never the class of a block. Once the receiver has found either thing, every block that item 1 or item 2 classed, or would class, is of unknown class.¶
The second check reaches only the samples whose decode times the receiver can determine. Until it has found such an MPU, for example where the FT=1 packet that times the upper DU header's sample was lost, a receiver can class as non-keyframe-bearing a block whose missing symbols carry a further RAP of a track of an earlier revision. It then requests that repair at the lower priority and does not stall video for it. The cost is bounded. Such a track carries no statement of [MOQ-MMT] Section 5.3.4, so concealment runs to the next RAP that the receiver holds (Section 6.3). A track of this revision holds no further RAP, so the case does not arise on it.¶
A track to which items 1 and 2 do not apply gets no non-keyframe-bearing block from this section. Each loss on it is treated as one that may hold a RAP: its repair is requested at keyframe priority, video may stall for it, and where the repair fails video does not resume before the next RAP (Section 6.2). The statements of [MOQ-MMT] Section 5.3.4 cannot end concealment earlier on such a track. This is the case of a track with no keyframe interval, of a track whose keyframes are not one group duration apart, for example one that moves a keyframe to a scene cut, and of a track of an earlier revision whose keyframe interval is shorter than its group duration.¶
The same four items class a run of packets that a receiver lacks on any datagram leg ([MOQ-MMT] Section 6.1, step 6), read with the last DU header that it holds before the run and the first that it holds after it.¶
In particular:¶
A block discarded before its FEC deadline under a memory cap (Section 5.4) is of unknown class.¶
A block's keyframe classification uses its actual source-packet
range. A block MAY contain a complete Group, span a Group boundary,
or close inside a Group; none of those shapes is inferred from
interleaveDepthMs or from the catalog's group duration.¶
A receiver MUST NOT classify a block from any input other than those
this section names; in particular, the absence of RAP_flag on the
packets it holds says nothing about a packet that was lost. A
publisher that wants receivers to be able to apply the non-keyframe
treatment of Section 6.3 begins an MPU at every RAP, one
every group duration, and publishes a keyframe interval equal to that
duration ([MOQ-MMT] Sections 5.3.4 and 4.4.3). It states nothing
else, and nothing about later samples.¶
The blocks of a track that the catalog identifies as audio are treated by Section 6.4, not classified by this section. A track that the receiver cannot identify from its catalog entry is treated as video.¶
When a keyframe-bearing block is still unrecovered at its FEC deadline, a receiver that holds a MoQ session with a relay serving the block's repair track MUST request on-demand unicast repair for it, with the priority of Section 6.5, unless the repair is already moot (Section 6.2.1); within a consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks (Section 5.1), a block only symbols of an unlisted track (Section 5.1) have delimited reaches no deadline and is never requested, the SS_IDs it covers that the receiver lacks being runs of this section (step 2 of [MOQ-MULTICAST] Section 7.2.7). The request is a FETCH [I-D.ietf-moq-transport], over QUIC, of the block's repair-track group, whose Group ID is the block's extended SS_Start, or, for a run that the receiver has not delimited, of the Group range that Section 7.7 of [MOQ-FEC-CORE] derives from a lost SS_ID x of the run. The receiver sends it on layer 0, and on further layers in layer order where it needs more symbols than layer 0 carries (Sections 7.3.1 and 7.4 of [MOQ-FEC-CORE]). Section 7.7 of [MOQ-FEC-CORE] gives the LOCATION_FILTER of either form, and the receiver establishes the wrap epoch as Section 7.6 of [MOQ-FEC-CORE] specifies, for instance by a TRACK_STATUS request when it has received no repair-track Group ID over MoQ. The FETCH of a single group MAY be limited to the object range that covers the block's shortfall. The repair symbols it returns are deduplicated against the symbols already held by (SS_Start, RS_ID) (Section 5.5 of [MOQ-FEC-CORE]) and fed to the same decoder; their SS_Start and SSB_length also delimit a block the receiver had not delimited (Section 5.4 of [MOQ-FEC-CORE]). The receiver MUST NOT delay this request behind any non-keyframe or audio repair; Section 6.6 covers its interplay with a keyframe overlay. A FETCH completes or fails by MoQ Transport events, its last object or an error; a receiver MUST NOT declare it failed on a locally chosen timeout. A relay answers it from its cache where it holds the repair track's objects, datagram-delivered ones included (Section 12 of [MOQ-FEC-CORE]), and otherwise fetches them upstream ([I-D.ietf-moq-transport] Section 3.2.3). A FETCH for a group that neither the relay nor any publisher upstream of it still holds fails by those events or returns none of the group's objects (Section 6.2 of [MOQ-MULTICAST]).¶
Only a keyframe-bearing block may stall video. While its unicast repair is outstanding, the receiver MAY hold video presentation for it. The block is unrecoverable when its unicast repair fails or completes without recovering it, or when the receiver holds no MoQ session through which to request it (for example a receiver that consumes an MMTP stream without a MoQ session, [MOQ-MULTICAST] Section 1.1). If the data of an unrecoverable block that the receiver could not recover includes, or may include, any part of a RAP (Section 6.1), the receiver treats the track as discontinuous, MAY stall video, and does not resume video before the earlier of these two samples: the next RAP ([MOQ-MMT] Section 6.1, step 6); the first sample whose DU header, taken as the upper DU header of the MPU rule (Section 6.1), shows by item 1 or item 2 of that rule that the data it could not recover includes no part of a RAP. From such a sample it conceals as Section 6.3 specifies. Otherwise, as when it holds or has recovered every part of the block's RAPs (including through a keyframe overlay, Section 6.6), it conceals the block's remaining loss as for a non-keyframe block (Section 6.3).¶
A keyframe repair is moot when both of the following hold:¶
The receiver holds a RAP the receiver has already admitted complete that lies above the block, that is, after the last SS_ID the block covers.¶
The repair cannot arrive by the block's playout deadline. The playout deadline is the later of the block's FEC deadline and the presentation time of the earliest media the block would repair. It does not include any time for which the receiver holds video presentation for the repair (Section 6.2): a repair that arrives by the playout deadline holds nothing, and a repair that arrives only within such a hold stalls video for media the receiver no longer needs. The repair cannot arrive by the playout deadline when either the current time is not earlier than it, or t_sent + RTT is not earlier than it, where RTT is the receiver's current round-trip time estimate for the QUIC connection that carries or would carry the FETCH (for instance the smoothed_rtt of [RFC9002] Section 5.3), and t_sent is the time the receiver sent the FETCH or, for a repair not yet requested, the current time. A FETCH already sent is judged by the time it was sent, not by the time the RAP completes. A receiver that has no round-trip time estimate for that connection treats the repair as unable to arrive by the playout deadline.¶
When a repair becomes moot, the receiver resumes from that RAP and SHOULD cancel the FETCH; a block whose repair is moot when it reaches its FEC deadline is not requested at all. A repair that is not moot is requested and kept whatever RAP the receiver admits complete after it: while its playout deadline has not passed, the media it recovers is presented by that deadline. Once the deadline has passed, a newer RAP the receiver has admitted complete makes an outstanding repair moot and the receiver SHOULD cancel it.¶
For a non-keyframe-bearing block of a video track, in-band FEC remains the primary repair. A receiver MAY also request unicast repair for it, in the form of Section 6.2, but only on the terms of Section 6.5: never ahead of or concurrently with keyframe repair, and only within the budget that keyframe repair leaves unspent.¶
When such a block is unrecovered -- at its FEC deadline without unicast repair, or when its unicast repair has not completed by the presentation time of the first media it would repair -- the receiver MUST NOT stall. It conceals the affected frames and every frame that depends on them, and keeps presentation and audio/video synchronization running, as the list below specifies. Where the publisher states what each sample needs ([MOQ-MMT] Section 5.3.4), a later frame depends on a lost frame when its anchor was lost or was itself concealed. A frame that states nothing depends on every frame since the latest RAP, so without statements every frame up to the next RAP is concealed.¶
Concealment fills the presentation interval of the frames it replaces and ends at the authored presentation time of the next frame the receiver presents. The receiver MUST NOT drop later frames to absorb the loss. Withholding a frame that depends on a lost frame is concealment, not such a drop. The receiver derives no timing for the frames it replaces ([MOQ-MMT] Section 5.1).¶
The concealment method is an implementation choice: for example holding or replaying the last presented frame, or presenting decoder output in which missing reference data is filled (commonly visible as a solid or green fill). The receiver MUST NOT submit to the decoder a sample that the packaging's reassembly rules have invalidated ([MOQ-MMT] Section 5.2). A receiver MUST NOT submit to a decoder a frame that depends on a lost frame, unless it knows that the decoder produces output from a sample with a missing reference. Which decoders do is local knowledge of the receiver. No field of the stream states it. A receiver whose decoder reports an error on a frame that the statements showed to depend on no lost frame SHOULD read no further statement of that track, and conceals until the next RAP.¶
Concealment ends at the first frame that depends on no lost frame, and the receiver resumes decoding from it. That frame is the next RAP unless the publisher's statements show an earlier one. A receiver MAY conceal until the next RAP.¶
In-band FEC applies to the blocks of an audio track as to every block,
and a receiver MAY
request unicast repair for an audio block on the same best-effort
terms as for a non-keyframe video block (Section 6.5).
RAP_flag
on an audio packet does not make its block keyframe-bearing; that
class applies to video tracks only.¶
When an audio block is unrecovered, the receiver MUST conceal the lost audio, for example with silence or packet-loss concealment, from the end of the last audio it presented to the authored presentation time of the next audio it presents, and MUST keep the audio clock advancing through the loss. It MUST NOT stall audio presentation waiting for a repair that has not completed by the presentation time of the lost audio.¶
A receiver's unicast repair budget is derived from the catalog, not
from a receiver-local rate or byte constant. It is kept per MoQ
session and counted in bytes of repair symbol data, a repair symbol of
a track counting as that track's symbolSize T (Section
10.1 of [MOQ-FEC-CORE]).¶
A block of a video source track that carries, or may carry, the
start of an MPU credits the budget with P_t x T bytes when it
reaches its FEC deadline, where P_t is the total repair count of
its base instance, the sum of P_i over its published layers (Section
7.3.1 of [MOQ-FEC-CORE]), and T is its
track's symbolSize. The start of an MPU is its FT=0 data unit,
the FT=1 data unit sent before its first sample, and that sample.
The credit goes by what the block carries, whether or not the
receiver lacks any of it: a block that arrives whole credits the
budget as one with losses does. A block carries the start of an MPU
when a source packet that the receiver holds from it is an FT=0
packet or sets RAP_flag, or when two source packets that the
receiver holds from it carry different MPU sequence numbers. A
block may carry one when Section 6.1 classes it as
keyframe-bearing or of unknown class.¶
A credit expires when the next block of the same source track that credits the budget reaches its FEC deadline, so unspent budget never accumulates beyond one block's credit per source track.¶
Every unicast repair FETCH debits the budget with the repair symbol bytes it requests. A FETCH of a Group range (Section 7.7 of [MOQ-FEC-CORE]) requests every Group that starts in the range, a number the receiver learns only from the response, and is debited with the repair symbol bytes of every Group it returns.¶
A receiver does not withhold a keyframe-bearing block's repair for lack of credit. For a block that it has delimited, it requests at most one repair-track Group per base repair layer, that is at most the P_t x T bytes that the block itself credits. For a run of blocks that it has not delimited, it issues the one Group range FETCH of Section 7.7 of [MOQ-FEC-CORE] per base repair layer. Each Group that FETCH returns is the repair of one block of the run, and every block holds at least one SS_ID of a range that spans at most K SS_IDs (that section), so these FETCHes cost at most K x P_t x T bytes in all, which can exceed the credit. A debit that exceeds the remaining credit exhausts it: the budget never falls below zero, and no deficit carries over to a later credit. A receiver MUST NOT have more than one repair FETCH outstanding for the same block and repair layer.¶
Non-keyframe and audio repair MAY spend only unexpired credit that keyframe repair left unspent, and a receiver MUST NOT issue a non-keyframe or audio repair FETCH that the remaining credit does not cover. Because the cost of a Group range FETCH is not known before it is issued, a receiver MUST NOT request non-keyframe or audio repair by a Group range.¶
A receiver MUST NOT issue a non-keyframe or audio repair FETCH while a keyframe repair FETCH is outstanding on the same session, and SHOULD cancel its outstanding non-keyframe and audio repair FETCHes when it requests the repair of a keyframe-bearing block that reaches its FEC deadline unrecovered; a block whose repair Section 6.2 does not request cancels nothing.¶
Priorities follow the ranges of Section 11 of [MOQ-FEC-CORE]. A keyframe repair FETCH MUST carry a SUBSCRIBER_PRIORITY ([I-D.ietf-moq-transport] Section 9.19.7) in the source track range, numerically at most 191. It MUST also be numerically no greater than the SUBSCRIBER_PRIORITY of the receiver's subscription to the source track, where the receiver holds one on the session, and numerically lower than the SUBSCRIBER_PRIORITY of every repair-track subscription that the receiver holds on the session. Subscriber priority is compared first ([I-D.ietf-moq-transport] Section 5.1.2), so the FETCH is then delivered ahead of the receiver's repair tracks and is not shed with repair data under congestion. A non-keyframe or audio repair FETCH MUST carry a SUBSCRIBER_PRIORITY numerically no lower than the Publisher Priority of the repair track it fetches ([MOQ-FEC-CORE] Section 11), and so at least 192, so that it is shed first.¶
The keyframe overlay of Section 7.4 of [MOQ-MMT], an overlapping instance in the sense of Section 8.4 of [MOQ-FEC-CORE], and this policy are complementary. The overlay is publisher-side and proactive: it protects RAP fragments and the FT=0 and FT=1 data units that govern them across a block of its own, needs no return path, and so also serves sessionless receivers. This policy is receiver-side and reactive: it spends unicast repair only on keyframe-bearing blocks that in-band FEC actually failed to recover, and it needs a MoQ session. A receiver that holds both:¶
classifies blocks by Section 6.1 whether or not it holds the overlay;¶
MUST NOT defer the unicast repair of a keyframe-bearing block to wait for overlay recovery, whose latency is the overlay's own block span (Section 7.4 of [MOQ-MMT]), not the base deadline;¶
ends its wait for a RAP once it holds every part of it, the RAP's fragments and the FT=0 and FT=1 data units that govern it, whichever of base decoding, overlay decoding, or unicast repair supplies each part; and¶
once it holds every part of a block's RAPs, the overlay having recovered one or more of them, conceals the rest of that block's loss as for a non-keyframe block (Section 6.3) and SHOULD cancel any outstanding keyframe repair FETCH for it. The overlay's members include the FT=0 and FT=1 data units that govern each RAP it covers (Section 7.4.2 of [MOQ-MMT]), so it can recover a lost FT=0 or FT=1 data unit that governs such a RAP as it recovers the RAP's fragments.¶
The security considerations of [MOQ-FEC-CORE] and of [MOQ-MULTICAST] apply. Join authorization for repair-layer endpoints and the amplification exposure of layers are covered in Section 4.¶
When FEC is used over multicast (SSM/AMT), which carries only mmtp
tracks under iso-ssbg1-v1 ([MOQ-MULTICAST] Section
4.1; Section 3.3),
additional considerations
apply:¶
No QUIC Protection: Multicast UDP has neither the confidentiality nor the integrity of QUIC. A publisher that needs confidentiality SHOULD encrypt the media samples, for example with Common Encryption [ISO.23001-7] and its 'cbcs' scheme, as [MOQ-MMT] Section 14 describes for mmtp tracks. All receivers of the flow share the content keys, which reach each receiver over its unicast MoQ session or from a Digital Rights Management (DRM) system. Sample encryption leaves the MMTP headers and the Source FEC Payload ID in the clear and leaves every packet identical across paths, so FEC encodes the ciphertext (Section 14.1 of [MOQ-FEC-CORE]) and symbols still combine across paths (Section 5.5 of [MOQ-FEC-CORE]). Encrypting each MoQ object payload instead, as MoQ Secure Objects [I-D.ietf-moq-secure-objects] does, would make the MoQ copy of a packet differ from its multicast copy. A keying handshake per receiver, such as DTLS-SRTP, needs a return path and cannot key a one-to-many flow. A key that every receiver holds does not authenticate the publisher; item 3 covers authentication.¶
Repair Injection: Attackers could inject malicious repair symbols on multicast networks. The bc-provenance profile of items 3 and 5 is the mitigation: a receiver that enforces it admits a symbol only when its digest is in a verified manifest, so an injected symbol never enters a decode; a receiver that does not enforce it has, beyond the container parsing of its media pipeline, only the block-level checksum of item 4 where it implements one.¶
Source Authentication: SSM limits which sources reach a receiver ([MOQ-MULTICAST] Section 7.1), and version 2 of the bc-provenance profile ([MOQ-MULTICAST] Section 7.2) authenticates the datagrams themselves, repair symbols included, with a digest that covers the whole UDP payload, the Source FEC Payload ID included (Section 7.2 of [MOQ-MMT]).¶
Block Integrity: Receivers MAY implement block-level checksums to detect corrupted recovery. A block whose decoded source data fails such a check, or, within a consumer that the bc-provenance profile of [MOQ-MULTICAST] Section 7.2 governs for its blocks (Section 5.1), whose recovered packets step 2 of its Section 7.2.7 does not admit, is unrecovered: Section 6 governs it from its FEC deadline, and the receiver requests unicast repair for it only as that section directs, never by the multicast-to-unicast failover of [MOQ-MULTICAST], which replaces the multicast path.¶
Repair Policy Inputs: The in-band evidence that Section 6.1 classifies blocks from, and the SSB_length by which Section 5.4 of [MOQ-FEC-CORE] completes a short block, are unauthenticated on bare multicast. An injected packet that marks a block keyframe-bearing costs at most the unicast repair that block's own credit covers (Section 6.5). An injected source packet inside a block's gap can instead narrow the bounds of Section 6.1 until a keyframe-bearing block is classified otherwise, and an injected repair packet carrying a false SS_Start or SSB_length, accepted before the genuine ones, can mis-delimit a block, mark it complete early, or cause its genuine repair packets to be discarded as inconsistent (Section 5.4 of [MOQ-FEC-CORE]). An injected source packet can also carry a false statement of what a sample needs ([MOQ-MMT] Section 5.3.4), which leads a receiver to give a decoder a frame whose reference is missing (Section 6.3). An injected packet that shows a RAP after the first sample of an MPU, or an MPU that lasts longer than the keyframe interval, ends the use of items 1 and 2 of Section 6.1 for that track at that receiver. Each later block of the track that stays unrecovered is then treated as keyframe-bearing: it costs the repair that its own credit covers, and video may stall for it. The finding belongs to the track. A new track, such as the one that a publisher starts under [MOQ-MMT] Section 4.4.1 when it cannot continue its numbering, begins without it. A change of the catalog does not end it, because it does not refute what the receiver saw. Where a receiver verifies an integrity mechanism of the kind named next before it reads a packet, an injected packet cannot produce either finding. Deployments exposed to injection SHOULD authenticate source and repair packets with an integrity mechanism whose coverage includes the complete packet, the Source FEC Payload ID and the Repair FEC Payload ID included (Section 7.2 of [MOQ-MMT]). Version 2 of the bc-provenance profile ([MOQ-MULTICAST] Section 7.2) is such a mechanism: its digest covers the whole UDP payload of source and repair packets, both Payload IDs included.¶
This document has no IANA actions.¶
This appendix is informative. It lists every sentence that is new or changed since draft-ramadan-moq-fec-multicast-00.¶
New sentences:¶
priority and no dep_counter. Of the catalog it reads
one thing: a receiver applies items 1 and 2 only where the keyframe
interval is equal to the group duration, which states that every
keyframe begins a group and that a group lasts one group duration.
It stops applying them once it has found a RAP that is not the
first sample of its MPU, or an MPU that lasts longer than the
keyframe interval. The second check is the one use of a decode
time: a track of an earlier revision with equal values can hold a
further RAP only in such an MPU. A track that does not make the
statement gets no non-keyframe-bearing block, so each of its losses
is treated as one that may hold a RAP. -00 treated a track with no
keyframe interval that way. A track of an earlier revision whose
keyframe interval is shorter than its group duration is now treated
that way too, where item 3 of -00 classed its blocks by decode
time. The rule relies on an MPU sequence number that is never used
twice on a track ([MOQ-MMT] Section 4.3). A block is now
keyframe-bearing by what the symbols that the receiver lacks can
carry; -00 also counted a RAP that the receiver holds. The budget
of Section 6.5 is still credited by what a block
carries, so a block that arrives whole with the start of an MPU
credits it as before, and that section now says so in its own
words. A block of
unknown class takes its class once the header that it lacked
arrives. The first paragraph of the
section names the MPU-mode payload header and the DU header among
the fields read, where -00 named the overlay header extension.¶
reorderToleranceMs the time for which a sender holds a datagram
until its window closes and a receiver holds one whose record it
lost until the record's twin arrives.¶
interleaveDepthMs and reorderToleranceMs, and for a
repair layer the base instance's. A receiver that does not hold the
track measures the overlay's loss as the RAP packets it lacks that
base decoding has not recovered, a measure that can lag a loss by
up to one interval between covered keyframes. On a multicast or AMT
leg, a
receiver of an overlay whose instance omits interleaveDepthMs or
sets it to zero keeps fixed whether it holds the track; a positive
one, which [MOQ-MMT] Section 7.4.1 recommends, lets those
receivers add and drop it. A receiver joins or
leaves an endpoint that carries both the track and a repair layer
of the base instance only when the rules for each allow it. Every
rule of the paragraph on amplification applies to the track as to a
repair layer, and the bound on the layers a receiver may hold counts
it. -00 stated these rules for repair layers and said in
Section 2 that an overlay is not one, which
left open whether they govern the overlay's repair track. Its join
rule already covered a repair-only endpoint that carries only that
track; the other rules are new for the track.¶
Changed sentences:¶
altGroup are alternate tracks in draft-ietf-moq-msf-02 (its
Section 5.2.13). No requirement changes.¶
This appendix is informative. It lists what this document takes from [I-D.ramadan-moq-fec] and every sentence that is new or changed rather than carried. In it, -01 means draft-ramadan-moq-fec-01, not a revision of this document.¶
Moved here, by section of this document:¶
Changed sentences:¶
interleaveDepthMs nor reorderToleranceMs nor a deadline
derived from them, and discarding a block under it does not create
an FEC deadline (Section 6).", because the
requirements themselves are the core's; this document keeps only
their consequences on a multicast or AMT leg.¶
New sentences:¶
Marc E. Fiuczynski reviewed draft-ramadan-moq-fec-01 and reported how relays and MoQ Transport stacks of the time handle datagram-delivered repair objects, which shaped the FETCH behavior of Section 6.2 and the priority rules of Section 6.5. He proposed the division of draft-ramadan-moq-fec-01 into the core document and its companions, of which this document is one.¶
Portions of this document were drafted with the assistance of AI tools. The author reviewed, edited and takes responsibility for all of its content.¶