<?xml version="1.0" encoding="utf-8"?>
<!-- name="GENERATOR" content="github.com/mmarkdown/mmark Mmark Markdown Processor - mmark.miek.nl" -->
<rfc version="3" ipr="trust200902" docName="draft-ramadan-moq-mmt-03" submissionType="IETF" category="std" xml:lang="en" xmlns:xi="http://www.w3.org/2001/XInclude" indexInclude="true">

<front>
<title abbrev="MMT for MoQ">MPEG Media Transport (MMT) Packaging for Media over QUIC</title><seriesInfo value="draft-ramadan-moq-mmt-03" stream="IETF" status="standard" name="Internet-Draft"></seriesInfo>
<author initials="O." surname="Ramadan" fullname="Omar Ramadan"><organization>Blockcast</organization><address><postal><street></street>
</postal><email>omar@blockcast.net</email>
</address></author><date year="2026" month="November" day="20"></date>
<area>wit</area>
<workgroup>moq</workgroup>
<keyword>MMT</keyword>
<keyword>MMTP</keyword>
<keyword>MoQ</keyword>
<keyword>ATSC 3.0</keyword>
<keyword>FEC</keyword>

<abstract>
<t>This document specifies the use of MPEG Media Transport (MMT) as a
container format for Media over QUIC (MoQ).  MMT carries media over
broadcast (ATSC 3.0, ARIB STD-B60), multicast, and unicast
(QUIC/WebTransport) networks.  This specification defines the mapping of
MMT packets to MoQ objects, the &quot;iso-ssbg1-v1&quot; block profile under which
the Forward Error Correction (FEC) mechanism for MoQ protects MMTP
packets -- its source symbols, its Source FEC Payload ID trailer, its
repair packet and its keyframe overlay -- the derivation of MoQ catalogs
from MMTP signaling, and compatibility considerations for both ATSC 3.0
and ARIB STD-B60 systems, including the ATSC 3.0 signed region.</t>
</abstract>

<note removeInRFC="true"><name>Discussion Venues</name>
<t>Discussion of this document takes place on the Media Over QUIC (moq)
Working Group mailing list (moq@ietf.org), which is archived at
<eref target="https://mailarchive.ietf.org/arch/browse/moq/">https://mailarchive.ietf.org/arch/browse/moq/</eref>.</t>
<t>Source for this draft and an issue tracker can be found at
<eref target="https://github.com/Blockcast/moqcast-draft">https://github.com/Blockcast/moqcast-draft</eref>.</t>
</note>

</front>

<middle>

<section anchor="introduction"><name>Introduction</name>
<t>MPEG Media Transport (MMT) <xref target="ISO.23008-1"></xref> is a transport protocol
designed for delivery of multimedia content over heterogeneous
networks.  MMT is supported as a transport in ATSC 3.0 broadcast
television (Americas, South Korea), and is the basis for ARIB
STD-B60 (Japan).
MMT provides native support for:</t>

<ul spacing="compact">
<li>Media Processing Units (MPU, branded &quot;mpuf&quot; in the ISO Base Media
File Format (ISOBMFF) <xref target="ISO.14496-12"></xref>) as the media container,
with structural similarities to fMP4</li>
<li>Application-Layer FEC (AL-FEC) supporting multiple schemes
including RaptorQ and Reed-Solomon</li>
<li>Cross-layer signaling for adaptive streaming</li>
<li>Hybrid delivery combining broadcast and broadband</li>
</ul>
<t>This document defines how MMT-encapsulated media can be transported
over MoQ <xref target="I-D.ietf-moq-transport"></xref>, enabling:</t>

<ol spacing="compact">
<li><strong>Broadcast-to-Unicast bridging</strong>: Content from ATSC 3.0 or ARIB STD-B60
broadcasts can be relayed to MoQ subscribers without transcoding</li>
<li><strong>FEC</strong>: MMT's AL-FEC integrates with MoQ FEC repair tracks per
<xref target="MOQ-FEC-CORE"></xref>, under the &quot;iso-ssbg1-v1&quot; block profile that this
document defines (<xref target="fec-integration"></xref>)</li>
<li><strong>Multicast promotion</strong>: MoQ clients can receive Source-Specific
Multicast (SSM) directly when available, per <xref target="MOQ-MULTICAST"></xref></li>
<li><strong>Broadcast signaling</strong>: Derive MoQ catalogs from MMTP signaling
(Section 13.2)</li>
<li><strong>Broadcast interworking</strong>: ATSC 3.0 A/331 AL-FEC sessions and the
ATSC 3.0 signed region (<xref target="atsc-compatibility"></xref> and
<xref target="a3sa-signed-region"></xref>), and ARIB STD-B60 (<xref target="arib-compatibility"></xref>)</li>
</ol>

<section anchor="relationship-to-other-moq-media-formats"><name>Relationship to Other MoQ Media Formats</name>
<t>This specification complements existing MoQ packaging formats.  The
MOQT Streaming Format (MSF) <xref target="I-D.ietf-moq-msf"></xref> carries media
packaged with the Low Overhead Media Container (LOC)
<xref target="I-D.ietf-moq-loc"></xref>, and CMSF <xref target="I-D.ietf-moq-cmsf"></xref> carries media
packaged in the Common Media Application Format (CMAF).  Like those
packagings, MMTP packaging requires no change to MoQ Transport: an
mmtp track is an ordinary track, each of its objects carries one MMTP
packet (<xref target="object-payload"></xref>), and a relay treats that packet as opaque
payload.  This document adds the packaging value &quot;mmtp&quot; and its track
fields to the MSF catalog and defines no message, parameter or
Property of MoQ Transport; <xref target="MOQ-FEC-CORE"></xref> Section 1.3 lists the
extension points that the document set builds on.  The formats
compare as follows:</t>
<table>
<thead>
<tr>
<th>Format</th>
<th>Container</th>
<th>Primary Use Case</th>
<th>FEC Block Profile</th>
</tr>
</thead>

<tbody>
<tr>
<td>MSF (LOC)</td>
<td>WebCodecs chunks</td>
<td>Low-latency unicast</td>
<td>&quot;moq-object-v1&quot;</td>
</tr>

<tr>
<td>CMSF</td>
<td>CMAF fMP4</td>
<td>Adaptive streaming</td>
<td>&quot;moq-object-v1&quot;</td>
</tr>

<tr>
<td>This spec (MMT)</td>
<td>MMTP + MPU (ISOBMFF)</td>
<td>Broadcast bridge</td>
<td>&quot;iso-ssbg1-v1&quot;</td>
</tr>
</tbody>
</table><t>The last column names the block profile under which the FEC mechanism of
<xref target="MOQ-FEC-CORE"></xref> protects tracks of each packaging. &quot;moq-object-v1&quot; is
the profile of <xref target="MOQ-FEC-CORE"></xref> Section
5.2: each loc or cmaf
object whose Object Status is Normal occupies whole source symbols.
&quot;iso-ssbg1-v1&quot; is the profile that <xref target="iso-ssbg1-v1"></xref> of this document
defines: each FEC source packet (FEC Type 1) is one source symbol.  Both
are registered in the &quot;MoQ FEC Block Profiles&quot; registry of
<xref target="MOQ-FEC-CORE"></xref> Section 15.3.</t>
<t>MMT packaging fits these cases:</t>

<ul spacing="compact">
<li>Ingesting ATSC 3.0 or ARIB STD-B60 broadcasts</li>
<li>FEC protection is required for multicast delivery</li>
<li>Hybrid broadcast/unicast architectures are deployed</li>
<li>Interoperability with broadcast receivers is needed</li>
</ul>
<t>CMAF packaging (CMSF) fits these cases:</t>

<ul spacing="compact">
<li>Content originates as DASH/HLS</li>
<li>No multicast delivery is planned</li>
<li>Interoperability with existing CDN infrastructure is needed</li>
</ul>
<t>A publisher that offers CMAF content can also carry it as an mmtp track
under &quot;iso-ssbg1-v1&quot;, where an MPU corresponds to a CMAF Fragment
(<xref target="object-payload"></xref>).  Such a track is also how CMAF content reaches
multicast, because a multicast endpoint carries only mmtp tracks
(<xref target="MOQ-MULTICAST"></xref> Section 4.1).
The cmaf track and its mmtp alternate track are separate FEC instances
(<xref target="MOQ-FEC-CORE"></xref> Section 5.1), and symbols of one
never repair the other.</t>
</section>

<section anchor="relation-to-other-documents"><name>Relation to the FEC Documents</name>
<t>This document is a companion of <xref target="MOQ-FEC-CORE"></xref>, which defines the
scheme-independent FEC mechanism for MoQ and the configuration data
model that a catalog carries.  <xref target="MOQ-FEC-BLOCK"></xref> specifies the
Reed-Solomon and RaptorQ schemes, <xref target="MOQ-FEC-CATALOG"></xref> the catalog
encoding of the configuration, and <xref target="MOQ-FEC-MULTICAST"></xref> the delivery of
protected tracks over multicast, including the receiver repair policy.
This document defines the &quot;iso-ssbg1-v1&quot; block profile, the part of that
set that is specific to MMTP packets, and the ATSC 3.0 and ARIB STD-B60
interworking that relies on it.  <xref target="MOQ-MULTICAST"></xref> defines multicast
endpoint discovery and the multicast packet format on which the
multicast delivery of mmtp tracks rests.</t>
</section>
</section>

<section anchor="terminology"><name>Terminology</name>
<t>The key words &quot;<bcp14>MUST</bcp14>&quot;, &quot;<bcp14>MUST NOT</bcp14>&quot;, &quot;<bcp14>REQUIRED</bcp14>&quot;, &quot;<bcp14>SHALL</bcp14>&quot;,
&quot;<bcp14>SHALL NOT</bcp14>&quot;, &quot;<bcp14>SHOULD</bcp14>&quot;, &quot;<bcp14>SHOULD NOT</bcp14>&quot;, &quot;<bcp14>RECOMMENDED</bcp14>&quot;,
&quot;<bcp14>NOT RECOMMENDED</bcp14>&quot;, &quot;<bcp14>MAY</bcp14>&quot;, and &quot;<bcp14>OPTIONAL</bcp14>&quot; in this document
are to be interpreted as described in BCP 14 <xref target="RFC2119"></xref> <xref target="RFC8174"></xref> when,
and only when, they appear in all capitals, as shown here.</t>
<t><strong>MMTP</strong>: MMT Protocol - the packet layer of MMT (ISO 23008-1 Clause 9)</t>
<t><strong>MPU</strong>: Media Processing Unit - a generic container for independently
decodable timed or non-timed data (<xref target="ISO.23008-1"></xref> Clause 3.1.14)</t>
<t><strong>MFU</strong>: Media Fragment Unit - a sample or subsample of timed media
data, or an item of non-timed media data, within an MPU
(<xref target="ISO.23008-1"></xref> Clause 9.3.1)</t>
<t><strong>AL-FEC</strong>: Application-Layer Forward Error Correction</t>
<t><strong>AU</strong>: Access Unit</t>
<t><strong>SLT</strong>: Service Layer Table - ATSC 3.0 bootstrap signaling</t>
<t><strong>MPT</strong>: MMT Package Table - signaling table containing MMT asset info</t>
<t><strong>PA</strong>: Package Access - the signaling message that carries the
tables a receiver needs to consume a Package, among them the MPT
(<xref target="ISO.23008-1"></xref> Clause 10.3.2)</t>
<t><strong>MPI</strong>: Media Presentation Information - signalling table carrying
the presentation information document (<xref target="ISO.23008-1"></xref> Clause 10.3.8)</t>
<t>The FEC terms of this document -- Source Track, Repair Track, Repair
Layer, FEC Instance, Source Symbol, Repair Symbol, Source Block, SS_ID,
SS_Start, SSB_length, RS_ID, RSB_length, Encoding Symbol ID (ESI) and
Block Profile -- are those of <xref target="MOQ-FEC-CORE"></xref> Section
2, and the RS_ID offset O_i and
per-block repair symbol count P_i of layer i are those of
<xref target="MOQ-FEC-CORE"></xref> Section 7.3.1.  Under
&quot;iso-ssbg1-v1&quot; the following take a form of their own, and the remaining
terms are specific to this document:</t>
<t><strong>Source Symbol</strong>: Under &quot;iso-ssbg1-v1&quot;, one FEC source packet framed as
<xref target="iso-ssbg1-v1"></xref> specifies.</t>
<t><strong>Repair Track</strong>: Under &quot;iso-ssbg1-v1&quot;, a repair track carries MMTP FEC
repair packets (<xref target="ISO.23008-1"></xref> Section C.4.3; <xref target="repair-packet"></xref>). The
layer-0 repair track carries the FEC repair flow (<xref target="ISO.23008-1"></xref> 3.1.9)
that an ISO AL-FEC message names for the source track's FEC encoded flow
(3.1.7); further repair layers and a keyframe overlay are repair tracks
that only the catalog declares (Section 8.3).</t>
<t><strong>SS_ID</strong>: Under &quot;iso-ssbg1-v1&quot;, the 32-bit sequence number of a source
symbol is carried in the Source FEC Payload ID of its FEC source packet
(<xref target="ISO.23008-1"></xref> Section C.5.2) and advances by one per FEC source
packet (<xref target="source-fec-payload-id"></xref>).</t>
<t><strong>Source Block</strong>: Under &quot;iso-ssbg1-v1&quot;, the ISO source symbol block
(<xref target="ISO.23008-1"></xref> 3.1.34), generated from a source packet block (3.1.32).</t>
<t><strong>FEC Block</strong>: The combination of SSB_length source symbols and P repair
symbols; the ISO encoding symbol block (<xref target="ISO.23008-1"></xref> 3.1.5).</t>
<t><strong>Keyframe Overlay</strong>: A second, independent FEC instance over a 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
(<xref target="overlay-membership"></xref>), with its own source symbol count, its own
repair symbols, and its own repair track, declared with
<tt>&quot;scope&quot;: &quot;keyframe&quot;</tt> (<xref target="overlay-instance"></xref>).  An overlay is not a repair
layer and carries no layer index.  It is defined only under
&quot;iso-ssbg1-v1&quot;.</t>
<t><strong>Base Instance</strong>: Of a source track that a keyframe overlay protects,
the instance that is not the overlay; of any other source track, its
only instance.</t>
<t><strong>Interleave Depth</strong>: When positive, the complete time span, in
milliseconds, of one FEC source/repair packet block, signaled as
<tt>interleaveDepthMs</tt> (<xref target="MOQ-FEC-CORE"></xref> Section
9.3); the catalog form of
<tt>protection_window_time</tt> in <xref target="ISO.23008-1"></xref> Sections 11.2 and C.6.3.
Zero is not a millisecond span: under &quot;iso-ssbg1-v1&quot; it selects the ISO
packet-count alternative (<xref target="interleaving"></xref>).</t>
<t><strong>Object Transmission Information (OTI)</strong>: Parameters required to
configure a RaptorQ decoder, as defined in <xref target="RFC6330"></xref> and derived by
<xref target="MOQ-FEC-BLOCK"></xref> Section 6.1.</t>
<t><strong>Datagram Leg</strong>: A delivery path on which each MMTP packet travels in
a datagram of its own, outside any subgroup: a multicast or Automatic
Multicast Tunneling (AMT) leg (<xref target="MOQ-MULTICAST"></xref> Section 5), or a MoQ
subscription to an &quot;mfu-datagram&quot; track (Section 4.3.1).</t>
</section>

<section anchor="mmt-overview"><name>MMT Overview</name>
<t>MMT uses a layered architecture:</t>

<artwork><![CDATA[+---------------------------------------------+
|              Application Layer              |
+---------------------------------------------+
|  MPU (Media Processing Unit)                |
|  +---------+---------+---------+---------+  |
|  |  MFU 0  |  MFU 1  |  MFU 2  |   ...   |  |
|  | (IDR)   | (P)     | (P)     |         |  |
|  +---------+---------+---------+---------+  |
+---------------------------------------------+
|  MMTP (MMT Protocol)                        |
|  +-----------------------------------------+|
|  | MMTP Header | Payload (MPU fragment)    ||
|  | 12 bytes    | Variable                  ||
|  +-----------------------------------------+|
+---------------------------------------------+
|  Transport: UDP/IP (broadcast/multicast)    |
|             QUIC/WebTransport (unicast)     |
+---------------------------------------------+
]]></artwork>

<section anchor="mmtp-header-format"><name>MMTP Header Format</name>

<artwork><![CDATA[MMTP Header (12 bytes minimum) {
  Version (2),
  Packet Counter Flag (C) (1),
  FEC_type (FEC) (2),
  Reserved (1),
  Extension Flag (X) (1),
  RAP Flag (R) (1),
  Reserved (2),
  type (6),
  Packet ID (16),
  Timestamp (32),
  Packet Sequence Number (32),
  [Packet Counter (32)],       // Present if C=1 (never: C=0)
  [Header Extension (..)]      // Present if X=1
}
]]></artwork>
<t>The fixed fields sum to 96 bits (three 32-bit words).  Byte 0 is
version(2) | packet_counter_flag(1) | FEC_type(2) | reserved(1) |
extension_flag(1) | RAP_flag(1); byte 1 is reserved(2) |
type(6), i.e. the packet type occupies the low six bits of
the second byte (<xref target="ISO.23008-1"></xref> Clause 9.2).</t>
<t>Senders MUST set all reserved bits in the MMTP packet header to zero.
Receivers MUST ignore their values after validating the header; they
MUST NOT assign private semantics to reserved bits.</t>
<t>Every packet of an MMTP packet flow -- media, repair, and signaling
packets alike, on every delivery path -- MUST set the packet counter
flag C to 0, so no packet carries the Packet Counter field.
<xref target="ISO.23008-1"></xref> Clause 9.2.3 requires all packets of an MMTP flow to
share one setting of C; this profile fixes that setting at 0.  The
MMTP packet header is therefore 12 bytes unless X = 1 adds a header
extension.</t>
<t>This document profiles MMTP version 0 (<tt>V = 00</tt>) of
ISO/IEC 23008-1:2023 as amended by Amd 1:2025.  A packet whose version
is not <tt>00</tt> MUST be rejected before its <tt>type</tt> field is parsed: version
1 uses a different type-field layout and is not defined by this
profile.  The <tt>C = 0</tt> requirement above is also a conformance gate;
packets with <tt>C = 1</tt> MUST be rejected.  An <tt>X = 1</tt> header extension is
parsed according to its declared length, but this document defines no
additional version or packet-counter semantics.</t>
<t>Key fields for MoQ mapping:</t>

<ul spacing="compact">
<li><strong>Packet ID</strong>: Maps to MoQ track within namespace.  This document
reserves packet_id 0 for the MMTP signaling flow: MMTP packets of
packet type 0x02 carrying signaling messages, such as the PA message
of a multicast endpoint flow (<xref target="MOQ-MULTICAST"></xref> Section 5)
and the
AL-FEC message of Section 8.3.  No MoQ track is advertised for
the signaling flow, but an mmtp source track MAY carry its AL-FEC
message as an object (Section 8).  An MMTP packet carrying media
(packet type 0x00) or a repair symbol (packet type 0x03) MUST NOT use
packet_id 0; a
track's packet_id is in the range 1..65535, and on multicast
delivery it is the <tt>packetId</tt> the endpoint advertises for the
track (<xref target="MOQ-MULTICAST"></xref> Section
4.1).  On every delivery path, a
receiver MUST NOT deliver an MMTP packet on packet_id 0 to a media
or repair decoder, including one received as the payload of an
object of a media or repair track: a receiver that processes MMTP
signaling reads it as a signaling message, and any other receiver
discards it (<xref target="MOQ-MULTICAST"></xref> Section
5 states the same rule for
every unlisted packet_id on multicast)</li>
<li><strong>Timestamp</strong>: UTC wallclock send time in the NTP short format of
<xref target="RFC5905"></xref> Section 6 (32 bits: 16-bit seconds and 16-bit fraction,
relative to the NTP epoch), carried inside the object payload.  MoQ
Transport defines no per-object timestamp field; receivers needing the send time read
it from the preserved MMTP packet header.  Because the seconds part
is 16 bits, the value wraps every 65 536 seconds (about 18.2
hours): it identifies the send time modulo that period and MUST NOT
be interpreted as an absolute wallclock time without an out-of-band
era reference.  It is used for packet delivery and jitter
measurement and is never media time: not a decoding timestamp,
presentation timestamp, duration, media-clock epoch, or
movie-fragment identifier</li>
<li><strong>Packet Sequence Number</strong>: per-<tt>packet_id</tt>, incremented by one modulo
2^32 across the flow (<xref target="ISO.23008-1"></xref> Clause 9.2.3); carried inside
the object payload for wrap-aware MMTP-layer loss/ordering detection.
It is not the MoQ Object ID.  Object IDs number the objects of a
group in source order, starting at zero in each group (Section 4.6).</li>
<li><strong>FEC Type</strong>: 0=no AL-FEC, 1=AL-FEC source packet (exactly one
4-byte Source FEC Payload ID trails the packet,
<xref target="source-fec-payload-id"></xref>), 2=AL-FEC repair packet for FEC payload
ID mode 0,
3=AL-FEC repair packet for FEC payload ID mode 1 (not used by this
mapping) (<xref target="ISO.23008-1"></xref> Clause 9.2.3)</li>
<li><strong>RAP Flag</strong>: 1 indicates Random Access Point, except on a track that
the catalog protects with a keyframe overlay.  There the packets with
RAP_flag 1 are exactly the overlay's members: the fragments of each
Random Access Point it covers and the FT=0 and FT=1 data units that
govern it (<xref target="overlay-membership"></xref>), each of which also carries the
overlay's SS_ID in a header extension of type 0x8B01
(<xref target="overlay-header-extension"></xref>)</li>
</ul>
<t>A signaling packet (packet type 0x02, on packet_id 0) MUST carry its
messages in the signaling message mode of <xref target="ISO.23008-1"></xref>
Clause 9.3.4: its MMTP payload begins with the 2-byte payload header
of Clause 9.3.4.2:</t>

<artwork><![CDATA[Signaling Message Payload Header {
  f_i (2),                    // fragmentation indicator
  RES (4),                    // reserved, set to 0
  H (1),                      // 1: each MSG_length is 32 bits
  A (1),                      // aggregation_flag
  frag_count (8),             // fragmentation counter
}
]]></artwork>
<t>When A = 1, a MSG_length field of 16 bits, or 32 bits when H = 1,
precedes each aggregated message; when A = 0 no MSG_length field is
present.  The signaling message follows (<xref target="ISO.23008-1"></xref>
Clause 10.2), beginning with its message_id.  A packet that carries
one complete signaling message without aggregation has f_i = 00,
A = 0, and frag_count = 0, and its sender sets H = 0 (H has no
effect when A = 0), so its payload header is the two bytes 0x00 0x00
and the message_id immediately follows them.  A receiver ignores H
when A = 0 and parses the header field by field, never by matching
those two bytes.</t>
</section>
</section>

<section anchor="moq-object-mapping"><name>MoQ Object Mapping</name>

<section anchor="track-structure"><name>Track Structure</name>
<t>An MMT stream maps to MoQ tracks as follows:</t>
<table>
<thead>
<tr>
<th>MMT Component</th>
<th>MoQ Mapping</th>
</tr>
</thead>

<tbody>
<tr>
<td>Package</td>
<td>Namespace</td>
</tr>

<tr>
<td>Asset, by Packet ID (video)</td>
<td>Track &quot;video&quot;</td>
</tr>

<tr>
<td>Asset, by Packet ID (audio)</td>
<td>Track &quot;audio&quot;</td>
</tr>

<tr>
<td>MPU (one MPU per group)</td>
<td>Group; number derived from media time (Section 4.4.1)</td>
</tr>

<tr>
<td>MPU data unit (FT=0, FT=1, or FT=2)</td>
<td>Subgroup ID</td>
</tr>

<tr>
<td>MMTP packet (fragment) within a data unit</td>
<td>Object; Object IDs count the group's objects from 0 in source order (Section 4.6)</td>
</tr>

<tr>
<td>AL-FEC signaling message (OPTIONAL, packet_id 0)</td>
<td>Object in Subgroup 0 immediately before FT=0 (Section 8)</td>
</tr>

<tr>
<td>AL-FEC repair</td>
<td>Track &quot;video/repair&quot;</td>
</tr>
</tbody>
</table><t><xref target="I-D.ietf-moq-msf"></xref> Section 6 leaves the mapping of objects to
streams to the packaging of each track, and recommends Subgroup 0
for each object where the packaging defines no other mapping.  This
document defines the mapping for an mmtp track.  It maps each MPU
data unit to one subgroup (Section 4.3), and the objects of a
subgroup share one stream (<xref target="I-D.ietf-moq-transport"></xref> Section 2.2),
so each data unit's fragments travel in order on one stream.  An
&quot;mfu-datagram&quot; track sends each object as a datagram instead
(Section 4.3.1).  An mmtp
track keeps the Group and Object numbering of <xref target="I-D.ietf-moq-msf"></xref>
Sections 6.1 and 6.2: Group numbers are unique and increase
monotonically (Section 4.4.1), and Object IDs start at zero in each
group and increase by one (Section 4.6).</t>
</section>

<section anchor="object-payload"><name>Object Payload</name>
<t>Each MoQ object carries one complete MMTP packet:</t>

<artwork><![CDATA[MoQ Object Payload {
  MMTP Packet Header (12+ bytes),
  MMTP Payload (MPU-mode payload header,
                then an FT=0, FT=1, or FT=2 data-unit fragment),
  [Source FEC Payload ID (32)],   // trails FEC Type=1 packets
}
]]></artwork>
<t>The object payload begins at byte zero of the preserved MMTP packet
header.  It has no MoQ-private envelope, length prefix, harness prefix,
or other undocumented bytes before that header.  For an FEC Type 1
packet, the Source FEC Payload ID and any profile-defined MMTP header
extensions remain in their specified wire locations.  No object-layer
prefix, suffix, or private replacement for those fields is permitted.
<xref target="MOQ-FEC-CORE"></xref> Section 5.6 requires
every source object to carry the FEC Source Info Object Property; on
an mmtp source object its value is the four-byte form of
that section, which names instance 0 and carries the network-byte-order
<tt>SS_ID</tt> of the base instance, the value of the packet's Source FEC
Payload ID (<xref target="source-fec-payload-id"></xref>); the property is object metadata
and is not inserted into this payload.</t>
<t>The one exception is the OPTIONAL AL-FEC signaling object of
Section 8: its payload is a complete MMTP signaling packet (packet
type 0x02) on packet_id 0 with FEC Type 0.  Its MMTP payload is the
signaling message payload header of Section 3.1 followed by one
complete AL-FEC message (f_i = 00, A = 0), rather than an MPU-mode
payload header and data-unit fragment, and it carries no Source FEC
Payload ID.  No other object on an mmtp source track uses packet
type 0x02 or packet_id 0.</t>
<t>Throughout this document, &quot;MMTP packet&quot; means the header-included
wire unit and &quot;MMTP payload&quot; means the bytes that follow the packet
header, per <xref target="ISO.23008-1"></xref>.  Both MMTP header layers are always
preserved: the packet header carries the FEC Type, RAP Flag, and
timestamp, and the MPU-mode payload header (the first bytes of the
MMTP payload) carries the Fragmentation Indicator and MPU sequence
number that receivers and the FEC layer depend on.  A publisher that
wishes to deliver raw ISOBMFF fragments without MMTP encapsulation
publishes the track with CMAF packaging <xref target="I-D.ietf-moq-cmsf"></xref>
instead.  In this profile an MPU can contain one or more ISOBMFF movie
fragments: FT=1 carries one movie fragment's metadata and each FT=2
data unit carries one whole sample or one producer-authored subsample
of a sample (Section 5.2.1).</t>
</section>

<section anchor="group-boundaries"><name>Group Boundaries</name>
<t>This section defines the object layout of mfu mode
(<tt>mmtpMode: &quot;mfu&quot;</tt>, Section 13.1).  Section 4.3.1 defines its datagram
form (<tt>mmtpMode: &quot;mfu-datagram&quot;</tt>).</t>
<t>Group boundaries align with MPU boundaries, and subgroup boundaries
align with MPU data-unit boundaries:</t>

<ul spacing="compact">
<li>Each group contains all objects of exactly one MPU: a change of MPU
sequence number starts a new group, numbered per Section 4.4.1.</li>
<li>Subgroup 0 of each group carries exactly one complete FT=0 MPU
metadata packet.  Its data unit contains the authored initialization
boxes, including <tt>ftyp</tt>, <tt>mmpu</tt>, and <tt>moov</tt>, and uses FI=0.  When the
publisher carries the OPTIONAL AL-FEC signaling object of Section 8,
that object is in Subgroup 0 of the same group and is the object
immediately before the FT=0 object; Subgroup 0 then carries exactly
these two objects.  No other object precedes FT=0, and a group
carries at most one signaling object.</li>
<li>Subgroups 1..M each carry exactly one subsequent MPU data unit in
authored order.  An FT=1 movie-fragment-metadata data unit is one
complete FI=0 object.  An FT=2 timed sample is either one FI=0 object
or an FI=1, zero-or-more FI=2, FI=3 object chain.  A timed sample
whose media exceeds one data unit's capacity is carried as a
contiguous run of producer-authored subsample data units
(Section 5.2.1), one subgroup per subsample data unit, in ascending
<tt>offset</tt> order.  Section 5.2 defines the only permitted
fragmentation state machine.</li>
<li>A timed MPU MUST publish its single FT=0 metadata data unit before
any FT=1 or FT=2 data unit; only the OPTIONAL signaling object of
Section 8 may precede FT=0.  It then MUST publish each FT=1
data unit before every FT=2 sample or subsample that references that movie
fragment.  If an MPU contains multiple movie fragments, the sequence
repeats as FT=1 followed by its FT=2 samples.  A receiver MUST
validate and process subgroups in ascending Subgroup ID, not network
arrival order, and MUST NOT admit an FT=2 sample before its FT=1
metadata: concurrently delivered subgroups MAY arrive in any order
and are buffered until their turn.  A missing or duplicate FT=0 invalidates the group; a gap,
duplicate data-unit identity, or invalid FT=1/FT=2 sequence in that
logical order invalidates the affected movie fragment.  A receiver
MUST NOT infer the missing structure.  The signaling object is not a
data unit: its presence or absence does not affect this validation,
and a signaling object anywhere other than immediately before FT=0
in Subgroup 0, or a second one in a group, invalidates the group.</li>
<li>The FI=0 or FI=1 object that begins the first FT=2 sample of each
timed group -- for a subsample-partitioned sample, the object that
begins its offset-0 data unit -- MUST have RAP Flag = 1.  On a video
track that sample is the group's only RAP, and no object of a later
sample of the group has RAP Flag = 1 (Section 5.3.4).</li>
</ul>
<t>The MPU sequence number remains present in-band (in the MMTP payload
header of every MPU fragment) and delimits which packets belong to the
same group, but it is not the MoQ Group number.  Publishers MUST NOT
copy the MPU sequence number into the Group number, and subscribers
MUST NOT derive media time or switching decisions from it.  (The MPU
sequence number is a per-Asset counter.  It starts at zero for the first
MPU in an Asset and increments by one for every following MPU
(<xref target="ISO.23008-1"></xref> Clause 7.3.3), but it is
Asset-local: independently packetized alternate tracks need not assign the
same MPU number to the same media instant.  Counter-based group
numbering therefore cannot satisfy the switching-set alignment
requirements of Section 4.4.)</t>
<t>On a track instance a publisher MUST give each MPU a greater MPU
sequence number than the MPU before it, in serial number arithmetic
modulo 2^32: greater by one, or by more where it dropped MPUs between
the two.  A track of a mixed-interval switching set drops none
(Section 4.4.2).  It MUST NOT go back to a number that it has used on that
track instance; <xref target="ISO.23008-1"></xref> Section 7.3.3 says that &quot;The sequence
number is unique within an Asset&quot;.  A publisher that restarts and
cannot continue the count MUST close the track instance and start a
new track with a distinct (namespace, track name) pair, as
Section 4.4.1 requires of a publisher that cannot continue the Group
numbers.  A receiver tells the packets of one MPU from those of the
next by this number (<xref target="MOQ-FEC-MULTICAST"></xref> Section 6.1).</t>
<t>For an ISOBMFF source, the publisher MUST preserve initialization in
FT=0, MUST copy the authored <tt>moof</tt> and the original <tt>mdat</tt> prefix
through the byte before the first media sample byte-for-byte into FT=1,
and MUST copy the referenced sample bytes byte-for-byte and without
transformation into FT=2.  A receiver can therefore reconstruct the
authored movie fragment without synthesizing box fields, sample timing,
or media bytes (Section 5.1).</t>
<t>Mapping each data unit to its own subgroup makes a complete metadata
unit or sample the unit of in-order delivery, loss, and FEC.  A
publisher MUST send the objects of an &quot;mfu&quot; track in subgroups, not
as datagrams: a datagram object belongs to no subgroup
(<xref target="I-D.ietf-moq-transport"></xref> Section 2.2) and cannot carry this
mapping.  Subgroups can be delivered concurrently, and a subgroup can
still be lost, for example when its stream is reset on a delivery
timeout (<xref target="I-D.ietf-moq-transport"></xref> Sections 5.2 and 11.3.2); the
resulting gap invalidates the affected movie fragment rather than
authorizing inferred metadata, timing, or cadence.</t>

<section anchor="datagram-delivery"><name>Datagram Delivery</name>
<t>An &quot;mfu-datagram&quot; track (Section 13.1) has the Groups, Object IDs and
object payloads of an &quot;mfu&quot; track (Sections 4.2, 4.3 and 4.6).  Its
publisher MUST send every one of its objects as a datagram
(<xref target="I-D.ietf-moq-transport"></xref> Section 11.2), one MMTP packet per
datagram.  One lost datagram then erases one FEC source symbol, as on
a multicast leg (<xref target="iso-ssbg1-v1"></xref>), and nothing is retransmitted: a
receiver on a lossy path with a deadline near the round-trip time
recovers by FEC instead of waiting for a QUIC retransmission
(<xref target="MOQ-FEC-CORE"></xref> Section 3.3).  Support for &quot;mfu-datagram&quot; is
OPTIONAL for publishers and subscribers.  Over WebTransport on HTTP/2,
datagrams are reliable and ordered and a lost packet blocks every
stream (<xref target="I-D.ietf-moq-transport"></xref> Section 6.2), so a subscriber whose
session runs over HTTP/2 SHOULD take the &quot;mfu&quot; track instead.</t>
<t>The objects of an &quot;mfu-datagram&quot; track have no Subgroup ID, and a
subscription to such a track is a datagram leg (Section 2), whose
receiver takes them in the serial packet order of Section 5.3.3.
Elsewhere in this document, on such a track, Subgroup 0 means the
FT=0 object and the signaling object before it (Section 4.6), and a
data unit's subgroup means the objects of that data unit.</t>
<t>Every object of an &quot;mfu-datagram&quot; track and of its repair tracks MUST
fit one datagram: its MMTP packet, Source FEC Payload ID included,
with its OBJECT_DATAGRAM header and Object Properties
(<xref target="I-D.ietf-moq-transport"></xref> Section 11.2.1), within the maximum
datagram size of every session on the path.  An object that exceeds
the maximum datagram size of a session is dropped without notification
whenever it is sent on that session as a datagram
(<xref target="I-D.ietf-moq-transport"></xref> Section 11.2), and FEC cannot replace it,
because a repair object of 12 + 13 + T bytes (<xref target="repair-packet"></xref>) is
larger than every source packet of its block.  The size rule binds
the FT=0 and FT=1 objects too: each is one unfragmented packet
(Section 5.2, item 4).  A publisher that offers an &quot;mfu-datagram&quot;
track SHOULD size every object of that track and of its repair tracks
so that, with its QUIC and any WebTransport framing and room for
Object Properties that relays add, it fits a UDP payload of 1200
bytes, the smallest maximum datagram size that QUIC allows
(<xref target="RFC9000"></xref> Section 14); any QUIC path then carries it from the first
packet, before path MTU discovery.  This mapping does not repacketize
(Section 5.2), so the same MMTP packets travel on every path and this
size bounds them on multicast too: a publisher whose packets do not
fit either has the origin packetizer emit smaller ones or does not
offer an &quot;mfu-datagram&quot; track.  A subscriber whose session cannot
carry the track's repair objects SHOULD take the &quot;mfu&quot; track instead.</t>
<t>MoQ Transport fixes an object's delivery mode when the Original
Publisher first sends it (<xref target="I-D.ietf-moq-transport"></xref> Section 2.1.1),
so a subscriber chooses the delivery mode by choosing a track.  A
publisher MUST NOT publish an &quot;mfu-datagram&quot; track unless it also
publishes, in the same Track Namespace, an &quot;mfu&quot; track whose objects
are identical to those of the &quot;mfu-datagram&quot; track in Group ID, Object
ID and payload, except that each track's AL-FEC signaling object
(Section 8) describes its own track's FEC instance.  The two MAY
share a switching set (Section 4.4).  They are the mmtp form of the
conventional and FEC families of <xref target="MOQ-FEC-CORE"></xref> Section 6.4, except
that each is a source track, so a receiver that moves from one to the
other joins it as Section 6.1 specifies.  They carry the same MMTP
packet sub-flow, so a multicast endpoint lists the &quot;mfu&quot; track and
never the &quot;mfu-datagram&quot; track (<xref target="MOQ-MULTICAST"></xref> Section 4.1), and
the signaling object of the &quot;mfu-datagram&quot; track is no packet of the
signaling sub-flow that the endpoint carries (<xref target="MOQ-MULTICAST"></xref>
Section 5).  Each track's FEC instances (<xref target="MOQ-FEC-CORE"></xref> Section 5.1)
and repair tracks (<xref target="MOQ-FEC-CORE"></xref> Section 10.3, rule 2) are its own,
so a receiver does not feed a symbol of one track to the decoder of
the other.  Only repair objects delimit a block (<xref target="MOQ-FEC-CORE"></xref>
Section 5.4), so the two tracks' base instances can differ in K, T,
repair layers and block span although their source packets carry the
same SS_IDs, and that of the &quot;mfu-datagram&quot; track can suit a deadline
near the round-trip time.  A keyframe overlay is not free to differ in
the same way: its membership and overlay SS_IDs ride in the source
packets themselves, in <tt>RAP_flag</tt> and the 0x8B01 header extension
(<xref target="overlay-membership"></xref>, <xref target="overlay-header-extension"></xref>), and the two
tracks carry identical packets.  So either both tracks declare an
overlay, with the same membership and overlay SS_IDs, or neither does,
and only their overlay repair tracks can differ.  The repair tracks of an &quot;mfu-datagram&quot; track
SHOULD send their objects as datagrams, so that stream data does not
delay the repair that is meant to beat retransmission.</t>
<t>FETCH sends a group's objects on a stream in Object ID order whatever
their delivery mode (<xref target="I-D.ietf-moq-transport"></xref> Section 3.2.1), so
the join of Section 6.1 is unchanged; only the subscription's objects
arrive as datagrams.  The Object IDs of a group are contiguous from
zero (Section 4.6), so the Object IDs missing between two received
objects name objects that exist.  When an &quot;mfu-datagram&quot; track
reaches a receiver on a unicast path, the receiver's repair serves it
alone, so the receiver repair policy of <xref target="MOQ-FEC-MULTICAST"></xref>
Section 6, which rations the repair of a multicast or AMT leg, does
not apply; on a multicast QUIC channel (<xref target="MOQ-FEC-MULTICAST"></xref>
Section 3.4), where many receivers share the repair path, that policy
applies as on any multicast leg.  Once a receiver on a unicast path
judges, after allowing for reordering (<xref target="MOQ-FEC-CORE"></xref> Section 9.3),
that FEC will not rebuild a block or an object in time, it MAY fetch
at once, without waiting for the block's deadline: a block's repair by
Group as <xref target="MOQ-FEC-CORE"></xref> Section 7.7 specifies, or the missing
objects of one Group in one FETCH whose LOCATION_FILTER spans them and
whose OBJECTID_FILTER, where the peer's MAX_FILTER_RANGES admits that
many Ranges, lists them (<xref target="I-D.ietf-moq-transport"></xref> Sections 3.3.2,
9.1.6, 9.19.9 and 9.19.11).  It chooses its repair layers as
<xref target="MOQ-FEC-CORE"></xref> Section 7.4 describes, and stops waiting for a repair
where Section 6.1, step 6, says.</t>
<t>No field signals when a receiver that took an &quot;mfu-datagram&quot; track gives
it up for the &quot;mfu&quot; track: the receiver decides, from its own playout
delay and the track's FEC instances.  Let D be the receiver's playout
delay, the time that it keeps between the arrival of media and its
presentation, and let W be the largest sum of <tt>interleaveDepthMs</tt> and
<tt>reorderToleranceMs</tt> among the FEC instances of the track that the
receiver decodes (<xref target="MOQ-FEC-CORE"></xref> Section 9.3); an omitted
<tt>reorderToleranceMs</tt> adds nothing to that sum.  W is the sum that the
catalog signals: a deadline of the receiver's own, or a local allowance
for an omitted <tt>reorderToleranceMs</tt>, does not change it.  A receiver
SHOULD NOT take an &quot;mfu-datagram&quot; track if none of the FEC instances
that it decodes carries a positive <tt>interleaveDepthMs</tt>.  It SHOULD NOT
take one whose W exceeds D either: a block's deadline then falls after
the presentation time of the media that the block protects.  A receiver
that took the track SHOULD return to the &quot;mfu&quot; track once no object of
the track has arrived for the larger of D and W; by then the media that
it holds has been presented, every block that it could still decode has
passed its deadline, and every repair that it requested is due (Section
6.1, step 6).  While objects of the track still arrive, a receiver that
has nothing to present SHOULD NOT return sooner than the larger of D and
the sum of one Group duration, the duration of one access unit and W,
because the loss of a RAP MFU leaves it nothing to present until the
next Group (Section 6.1, step 6).  A subscription that starts at the
next Group boundary, with no fill of the current Group (Section 6.1,
step 3), can deliver its first object as late as one Group duration plus
W after it is accepted, and the receiver allows that long before it
judges the track silent.  A receiver that returned to the &quot;mfu&quot; track
MAY take the &quot;mfu-datagram&quot; track again.  It SHOULD then keep presenting
from the &quot;mfu&quot; track until the first RAP MFU of the &quot;mfu-datagram&quot; track
is complete, and SHOULD wait longer before each further attempt, by a
random amount, so that receivers that lost the track together do not
return together.</t>
<t>A delivery timeout drops a datagram without notice
(<xref target="I-D.ietf-moq-transport"></xref> Section 5.2), so the receiver learns of it
only as a missing packet.  A subscriber MAY set an
OBJECT_DELIVERY_TIMEOUT (<xref target="I-D.ietf-moq-transport"></xref> Section 9.19.4)
so that the publisher or relay serving it drops an object that has
waited there longer than that, instead of sending it; the timeout
counts only that wait, so it does not drop an object that was already
late when it arrived there.  A relay serves an &quot;mfu-datagram&quot; track
only if it forwards every object of a datagram Group that a delivery
timeout does not drop (<xref target="MOQ-FEC-CORE"></xref> Section 12, item 1).</t>
</section>
</section>

<section anchor="switching-sets"><name>Switching Sets</name>
<t>When multiple tracks are alternate versions of the same
media (e.g., an adaptive bitrate (ABR) ladder), they form a
switching set: a set of alternate tracks that MUST be time-aligned per
<xref target="I-D.ietf-moq-msf"></xref> Section 4.2 (the same construct that
<xref target="I-D.ietf-moq-cmsf"></xref> Section 3.2 applies to CMAF tracks).  MoQ
Group boundaries MUST be media-time-aligned across all tracks of a
switching set so that subscribers can switch at group boundaries.
Tracks with equal group durations MUST carry the same Group number for the
same media interval.  Only an intra-only mmtp track can have a
shorter group duration than the other tracks, under the exception of
Section 4.4.2, which also defines its Group number mapping.  A cmaf
member keeps equal group durations and the Group number alignment
that <xref target="I-D.ietf-moq-cmsf"></xref> Section 3.2 requires.  The switch is
without discontinuity when the MPUs are closed groups of pictures
(GOPs).  On a join or switch at a Group boundary, leading pictures (Section 4.4.1)
that reference the preceding Group are not decodable, and presentation
of the new track begins at its RAP.  If the old track's next MPU has
leading pictures, neither track has decodable pictures for their
presentation interval, and the receiver conceals that gap.</t>
<t>Switching-set membership is declared in the catalog via the
per-track field:</t>

<artwork><![CDATA[altGroup (OPTIONAL, unsigned integer)
]]></artwork>
<t>defined by <xref target="I-D.ietf-moq-msf"></xref> Section 5.2.13: an integer
identifying a group of tracks that are alternate versions of one
another.  Two tracks are members of the same switching set if and only if both
carry the <tt>altGroup</tt> field and the values are equal.  A track that
omits <tt>altGroup</tt> is a member of no switching set, and the
switching-set requirements of this section do not bind it.  A repair
track (Section 8.2) carries no <tt>altGroup</tt>.  It is not an alternate
track, and its Groups are FEC blocks (<xref target="MOQ-FEC-CORE"></xref> Section
7.6), not media-time-aligned
Groups.  A subscriber finds the repair tracks of the track it
selects through the <tt>repairTrack</tt> of each of that track's FEC
instances and the <tt>source</tt> fields of its repair tracks
(<xref target="MOQ-FEC-CATALOG"></xref> Section 3.2; the data model of
<xref target="MOQ-FEC-CORE"></xref> Section 10.2).</t>

<section anchor="group-number-formula"><name>Group Number Formula</name>
<t>The Group number of every mmtp-packaged track MUST be computed from
media time by the formula in this section.  This single definition is
what makes group boundaries align across the tracks of a switching
set.  FEC interleave timing is independent of this grouping;
<xref target="interleaving"></xref> does not derive FEC block boundaries or a number of
Groups per FEC block from this formula:</t>

<artwork><![CDATA[relative_ticks = ticks - presentationAnchorTicks
group_number = floor(relative_ticks / groupDurationTicks)
]]></artwork>
<t>where:</t>

<ul spacing="compact">
<li><tt>ticks</tt> is the presentation timestamp (PTS) of the MPU's first AU in
decode order, expressed in the track's <tt>timescale</tt> (Hz, Section
4.4.2) as a signed integer.  That AU is first in the MPU payload, as
ISO/IEC 23008-1 requires, and is the MPU's RAP (Section 4.3).
Leading pictures, which follow the RAP in decode order but present
before it, do not select <tt>ticks</tt>, even when they present within the
preceding MPU's Group interval.</li>
<li><tt>groupDurationTicks</tt> is the per-track group duration expressed
in the same <tt>timescale</tt>, as a positive integer.  The catalog
signals it either directly or through an exact millisecond
conversion as specified in Section 4.4.2.</li>
<li><tt>presentationAnchorTicks</tt> is the signed timestamp in this track's
<tt>timescale</tt> that corresponds to presentation time zero.  It includes
the publisher's edit-list, encoder-priming, and composition-time
decisions, and MUST be applied before the formula.  A track that is
intended to be rendered with another audio or video track MUST signal
this field; a track that is not part of a synchronized presentation
MAY omit it and use zero as its local origin.</li>
</ul>
<t>The publisher MUST choose <tt>presentationAnchorTicks</tt> no later than the
smallest <tt>ticks</tt> value of the MPUs it admits for the track.  If an
MPU's <tt>ticks</tt> is earlier than the anchor, the publisher MUST reject
that MPU.  Before the first group is published, the publisher MAY
instead revise the catalog anchor and validate the complete initial
input again; after publication, the anchor is immutable for that track
instance.  It MUST NOT clamp the Group number to zero.  The <tt>floor</tt> in
the formula is mathematical floor (floor division), not truncation
towards zero.  With the anchor requirement, every admitted MPU has a
non-negative <tt>relative_ticks</tt> value.  The requirement binds <tt>ticks</tt>
only; a leading picture of an admitted MPU can present before the
anchor.</t>
<t>Timeline origin: <tt>ticks</tt> is measured on the track's media
presentation timeline; <tt>presentationAnchorTicks</tt> maps that track to
the shared presentation timeline.  For every set of audio and video
tracks intended to be rendered together, the publisher MUST choose one
presentation origin and MUST signal an anchor for each track such that</t>

<artwork><![CDATA[presentation_time = (ticks - presentationAnchorTicks) / timescale
]]></artwork>
<t>has the same rational value for samples representing the same media
instant.  This is a media-time relation, not an NTP or wall-clock
relation, and it is not the <tt>Timestamp</tt> field of the MMTP packet header
(Section 3.1).  For
ISOBMFF-derived MPU content, the anchor is applied to the composition
timeline after edit-list and priming adjustments.  All tracks of a
switching set MUST use the same presentation origin as well.  A
publisher that resets the timeline (a timeline discontinuity) MUST
reset it identically, at the same media instant, across every affected
audio, video, and switching-set track.  A discontinuity on an existing
track does not reset its Group number sequence.</t>
<t>This Group anchor is a MoQ scheduling and switching key only.  ISO/IEC
23008-1 presentation timing remains authoritative: the presentation time
of an MPU is signaled by the presentation information (or the
<tt>mpu_timestamp_descriptor</tt> when no presentation information is present),
with any applicable <tt>elst</tt> offset, and is not rewritten by this Group
number calculation.</t>
<t>For each track, when the MPU changes, the computed Group number MUST be
strictly greater than the Group number of the preceding admitted MPU.
The publisher MUST NOT put two different MPUs in one Group, reuse a
Group number, or alter authored timestamps to satisfy this rule.  A
publisher that restarts or declares a discontinuity MUST retain the last
Group number for the existing track instance and resume with a greater
number; numeric gaps are allowed, except on the tracks of a
mixed-interval switching set, where Section 4.4.2 allows none.  The publisher SHOULD signal the
skipped numbers with the PRIOR_GROUP_ID_GAP Object Property
(<xref target="I-D.ietf-moq-transport"></xref> Section 10.8), as <xref target="I-D.ietf-moq-msf"></xref>
Section 6.1 recommends.  If it cannot resume with a greater number
while preserving the formula and authored timing, it MUST close that
track instance and
start a new track with a distinct (namespace, track name) pair before
emitting the reset MPU.  That new identity is the Group-number
scope for the restarted stream; it MUST NOT be presented as a
continuation of the old track.  Group-number state is transport state;
this document defines no new catalog field for it.</t>
<t>Because its Group numbers follow media time, an mmtp publisher cannot
start a Group early.  It MUST NOT set the DYNAMIC_GROUPS Track
Property (<xref target="I-D.ietf-moq-transport"></xref> Section 10.6) to 1.</t>
<t>For two tracks A and B, a receiver can verify that timestamps describe
the same presentation instant without floating-point conversion:</t>

<artwork><![CDATA[(ticksA - presentationAnchorTicksA) * timescaleB ==
    (ticksB - presentationAnchorTicksB) * timescaleA
]]></artwork>
<t>The group-duration agreement rule in this section applies after the
same anchor conversion.  Consequently, equal rational values of
<tt>groupDurationTicks / timescale</tt> and correctly paired
<tt>presentationAnchorTicks</tt> values are what align 30-fps video with
audio; per-track <tt>timescale</tt> and <tt>groupDurationTicks</tt> values alone do
not establish synchronization.</t>
<t>All arithmetic is in integers: <tt>relative_ticks</tt> and <tt>groupDurationTicks</tt>
are integers, <tt>floor(relative_ticks / groupDurationTicks)</tt> is integer division,
and implementations MUST NOT compute the group number in floating
point or apply any tolerance.  An input held in another unit
(seconds, milliseconds, a different timescale) MUST be converted to
an exact integer tick count before the formula is applied; if that
conversion is not exact, the publisher's timescale or group-duration
choice is wrong (Section 4.4.2) -- implementations MUST NOT round to
compensate.</t>
<t>For ISOBMFF content, authored composition timestamps use the media
track's <tt>mdhd</tt> timescale.  If that differs from the catalog <tt>timescale</tt>,
the publisher MUST convert the adjusted composition timestamps by the
exact ratio <tt>timescale / mdhd.timescale</tt> before applying this formula.
It MUST reject a timestamp that is not an integer in the selected
catalog clock; it MUST NOT relabel media ticks as asset-clock ticks.</t>
<t>Worked example.  A switching set of two video tracks of the same
content: track A with <tt>timescale: 90000</tt>, track B with
<tt>timescale: 44100</tt>, both with <tt>presentationAnchorTicks: 0</tt> and
<tt>groupDurationMs: 2000</tt> in the catalog (Section 4.4.2).  The sample
that is 10.5 seconds into the shared presentation timeline has an
integer timestamp in both timescales:</t>

<artwork><![CDATA[A: groupDurationTicks = 2000 * 90000 / 1000 = 180000
B: groupDurationTicks = 2000 * 44100 / 1000 =  88200

Same media instant, t = 10.5 s on the shared timeline:
A: relative_ticks = 945000 -> floor(945000 / 180000) = 5
B: relative_ticks = 463050 -> floor(463050 /  88200) = 5
]]></artwork>
<t>Both tracks place the instant in group 5.  No intermediate value
is shared between the two computations -- only the integer results
agree -- which is exactly the property group-boundary switching
requires.</t>
<t>Negative authored timestamps use the same rule and are not clamped.  For
one 90 kHz track with <tt>groupDurationTicks: 180000</tt>, choose the shared
presentation anchor <tt>presentationAnchorTicks: -180000</tt>, which is earlier
than the <tt>ticks</tt> of the first admitted MPU:</t>

<artwork><![CDATA[MPU 0 ticks = -90000: relative_ticks =  90000 -> group 0
MPU 1 ticks =  90000: relative_ticks = 270000 -> group 1
]]></artwork>
<t>The negative authored PTS therefore maps to group 0 through the shared
earlier anchor.  A catalog with the same samples and
<tt>presentationAnchorTicks: 0</tt> is invalid for this profile; the publisher
rejects MPU 0 instead of mapping it to group 0.</t>
<t>With reordered samples, the first AU in decode order selects the
Group number.  This example lists the authored PTS values of the first
three AUs of two consecutive MPUs in decode order.  MPU 0 is a closed
GOP.  MPU 1 is an open GOP: its RAP presents at 180000, and its two
leading pictures present before it, inside Group 0's interval:</t>

<sourcecode type="json"><![CDATA[{
  "timescale": 90000,
  "presentationAnchorTicks": 0,
  "groupDurationTicks": 180000,
  "mpuSamplePtsInDecodeOrder": [
    [0, 6000, 3000],
    [180000, 174000, 177000]
  ],
  "ticks": [0, 180000],
  "groupNumbers": [0, 1]
}
]]></sourcecode>
<t><tt>ticks</tt> is the first entry of each MPU's list.  Selecting the minimum
presented PTS instead would give <tt>ticks</tt> 0 and 174000, both in Group 0,
which violates the strictly-greater rule above.</t>
</section>

<section anchor="catalog-signaling-of-group-duration"><name>Catalog Signaling of Group Duration</name>
<t>For a subscriber to apply the formula in Section 4.4.1, the catalog
MUST publish the group duration for every mmtp-packaged track.
The catalog publishes either the millisecond form or the exact tick
form defined here:</t>

<artwork><![CDATA[groupDurationMs (REQUIRED unless groupDurationTicks is present,
                positive unsigned integer, milliseconds)
]]></artwork>
<t>The timescale is the MSF <tt>timescale</tt> field (<xref target="I-D.ietf-moq-msf"></xref>
Section 5.2.22), resolved per the track's <tt>packaging</tt> value
(<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.4; this document adds <tt>mmtp</tt>,
Section 13.1):</t>
<table>
<thead>
<tr>
<th><tt>packaging</tt></th>
<th>Timescale source</th>
</tr>
</thead>

<tbody>
<tr>
<td><tt>mmtp</tt></td>
<td>The <tt>timescale</tt> field, REQUIRED for mmtp tracks (Section 13.1); absence is a catalog error, and the 90 000 <tt>asset_timescale</tt> default of <xref target="ISO.23008-1"></xref> Clause 10.3.9.3 does not apply.</td>
</tr>

<tr>
<td><tt>cmaf</tt></td>
<td>The <tt>timescale</tt> field.  <xref target="I-D.ietf-moq-msf"></xref> Section 5.2.22 makes it optional, so this document makes it REQUIRED for any cmaf track to which this section applies (a member of a switching set governed by Section 4.4.1); leaving it unset on such a track is a catalog error.</td>
</tr>

<tr>
<td><tt>loc</tt></td>
<td>The <tt>timescale</tt> field.  As for cmaf, this document makes it REQUIRED for any loc track to which this section applies; leaving it unset on such a track is a catalog error.  When the publisher also sends the TIMESCALE Property (<xref target="I-D.ietf-moq-loc"></xref> Section 2.3.1.2) on such a track, its value MUST equal the field.</td>
</tr>

<tr>
<td>(unrecognized <tt>packaging</tt>)</td>
<td>1 000 000 (microseconds).  This row covers track entries whose <tt>packaging</tt> value is unrecognized; the convention is fixed by this document and does not derive from <xref target="I-D.ietf-moq-transport"></xref>.  A track entry without <tt>packaging</tt> is malformed (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.4) and fails catalog validation (Section 6.1, step 1).</td>
</tr>
</tbody>
</table><t>When <tt>groupDurationTicks</tt> is absent, conversion is
<tt>groupDurationTicks = groupDurationMs * timescale / 1000</tt>.  The
catalog publisher MUST choose a <tt>groupDurationMs</tt> such that the
resulting tick count is a positive integer and the conversion is exact
(i.e. <tt>(groupDurationMs * timescale) % 1000 == 0</tt>).  If this cannot be
satisfied, or if the intended cadence is not an integer number of
milliseconds, the catalog MUST publish ticks directly via the exact
tick field:</t>

<artwork><![CDATA[groupDurationTicks (OPTIONAL, positive unsigned integer)
]]></artwork>
<t>If both <tt>groupDurationMs</tt> and <tt>groupDurationTicks</tt> are present,
<tt>groupDurationTicks</tt> wins and <tt>groupDurationMs</tt> is informational; it is
not used in the conversion and need not have an exact millisecond
conversion.  Cases where the override is required include:</t>

<ul spacing="compact">
<li>An MPU group duration at a 30-per-second cadence
(<tt>1/30 s = 33.333... ms</tt>): expressing this in integer ms is
impossible.  If the track <tt>timescale</tt> is divisible by 30, publishers
set <tt>groupDurationTicks: timescale / 30</tt> directly (e.g. <tt>3000</tt> at
90 000 Hz, <tt>1500</tt> at 45 000 Hz).  A timescale not divisible by 30
cannot represent this cadence as an integer tick count and MUST be
changed or rejected for this profile; it MUST NOT be rounded.</li>
<li>Audio sample-rate timescales not divisible by 1000 Hz, such as
44 100 Hz: a 333 ms field would imply
<tt>333 x 44 100 / 1000 = 14 685.3</tt> ticks.  A publisher whose authored
cadence is the exact integral cadence of 14 685 ticks MUST publish
<tt>groupDurationTicks: 14685</tt> (about 332.993 ms); it MUST NOT claim
that this preserves an exact 333 ms duration.  A publisher that
requires exactly 333 ms MUST choose a compatible timescale or reject
that cadence.</li>
</ul>
<t>For example, this catalog uses the exact 30-per-second cadence on a
44 100 Hz track.  It omits <tt>groupDurationMs</tt> because 33.333... ms is
not an integer millisecond value:</t>

<sourcecode type="json"><![CDATA[{
  "version": "draft-02",
  "tracks": [{
    "name": "video-30fps",
    "packaging": "mmtp",
    "isLive": true,
    "mmtpMode": "mfu",
    "timescale": 44100,
    "presentationAnchorTicks": 0,
    "groupDurationTicks": 1470,
    "codec": "avc1.64001f",
    "framerate": 30,
    "bitrate": 2000000
  }]
}
]]></sourcecode>
<t>Switching-set agreement: every track in the same switching set MUST
publish the same effective group duration as a rational number of
seconds.  Raw <tt>groupDurationTicks</tt> values need not be equal when track
timescales differ.  For tracks A and B, subscribers validate exact
equality with integer arithmetic:</t>

<artwork><![CDATA[A.groupDurationTicks * B.timescale ==
    B.groupDurationTicks * A.timescale
]]></artwork>
<t>One exception applies, to mmtp tracks only.  An mmtp track is
intra-only when its <tt>framerate</tt> field is present and its group
duration is one frame period at that rate:</t>

<artwork><![CDATA[groupDurationTicks * framerate == timescale
]]></artwork>
<t>Because <tt>framerate</tt> need not be an integer (29.97), this comparison is
made within a relative tolerance of 10^-3 of <tt>timescale</tt>; a GOP track
misses it by a factor of at least two.  The tolerance only classifies
a track as intra-only.  It never enters Group number arithmetic: the
remainder test below, the quotient n, and every Group number use
exact integers, and Section 4.4.1 forbids any tolerance there.  Every
other track in the switching set, including every track whose
<tt>packaging</tt> is not <tt>mmtp</tt>, is a GOP track.  Exact equality above is
required between all GOP tracks.  An intra-only track I MAY instead publish a shorter
group duration that divides that of the GOP tracks a whole number of
times.  For every GOP track G in the switching set:</t>

<artwork><![CDATA[(G.groupDurationTicks * I.timescale) %
    (I.groupDurationTicks * G.timescale) == 0
]]></artwork>
<t>Since an intra-only track has a group boundary at every frame, each GOP
group boundary is also one of its group boundaries, and switching
remains group-aligned.  With quotient
<tt>n = (G.groupDurationTicks * I.timescale) / (I.groupDurationTicks *
G.timescale)</tt> and a shared presentation anchor, Group g of G starts at
the same instant as Group g * n of I.  The exception does not
apply to a switching set with no GOP track: intra-only tracks with no
GOP peer still require exact equality.</t>
<t>A switching set in which an intra-only track has a shorter group
duration than a GOP track (n greater than 1) is called a
mixed-interval switching set in this document.  It is an
alternate group whose tracks have dissimilar keyframe intervals, and
its publisher MUST follow <xref target="I-D.ietf-moq-msf"></xref> Section 4.3.  A
switching set whose tracks all have one group duration has one
keyframe interval, whatever the frame rates of its tracks, and that
section does not bind it.  Section 4.3 of that document, its Section
6.3 and the <tt>keyframeSpacing</tt> field
(<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.46) count objects, for a packaging
that puts one sample in each object (<xref target="I-D.ietf-moq-msf"></xref> Section
4.1).  An mmtp object is an MMTP packet
(Section 4.2).  On an mmtp track, where those sections count objects,
the count is of samples, and the Object ID N of
<xref target="I-D.ietf-moq-msf"></xref> Section 6.3.2 is the number of samples that
precede a sample in its MPU, in decode order.  It is not the
<tt>sample_number</tt> of the DU header, which counts from 1 within a movie
fragment (Section 5.3.1).  In a mixed-interval switching set:</t>

<ol spacing="compact">
<li>The first sample of each group is a keyframe, and the group holds
no other.  Section 5.3.4 requires one RAP in each MPU of every mmtp
video track.  In a mixed-interval switching set a publisher also
MUST NOT send a keyframe as a later sample of an MPU, which Section
5.3.4 otherwise allows.</li>
<li>Every track MUST carry <tt>keyframeSpacing</tt>.  On an mmtp track its
value is the number of samples in a group, and every group of the
track MUST hold exactly that many, except the first and the last
group of the track.  The first MAY hold another number where later
groups begin with leading pictures (Section 4.4.1), and the last
where the track ends.  The value MUST be 1 on an intra-only
track.  A track of another
packaging carries the field as <xref target="I-D.ietf-moq-msf"></xref> defines it and
MUST put one sample in each object, so that its objects and the
samples of an mmtp track count the same thing.</li>
<li>The tracks MUST be time-aligned at every sample, not only at group
boundaries.  All of them have one sample period, the group duration
divided by <tt>keyframeSpacing</tt>, and every sample of a track lasts
exactly that long.  The test after this list checks the catalog
values.</li>
<li>Every track MUST start at the same media instant, and that instant
MUST be the shared presentation origin, so that the first Group of
every track is Group 0.  On an mmtp track, the <tt>ticks</tt> of its first
MPU equals its <tt>presentationAnchorTicks</tt>.  Group 0 is the identical
starting Group ID that <xref target="I-D.ietf-moq-msf"></xref> Section 4.3 requires:
no other starting number is the same on an intra-only track and on
a GOP track at one instant.  No track joins the switching set
later.</li>
<li>On each track, each Group number MUST be one greater than the one
before it.  A publisher MUST NOT leave a numeric gap, whether after
a restart, at a timeline discontinuity, at a change of frame rate
or of group duration, or for input that it did not receive.  A
publisher that cannot publish the next Group number of a track, or
cannot put <tt>keyframeSpacing</tt> samples in a group of it, MUST end
that track; the other tracks of the switching set continue.  An
ended track cannot return, and no new track can take its place,
because item 4 lets no track start later than the others.  To offer
it again, or to go on when every track is affected, the publisher
MUST end every track of the switching set, and every track that
shares its presentation origin (Section 4.4.1), whose anchor cannot
move, and start new tracks under new names, as Section 4.4.1 says
of a track that cannot resume.  Items 4 and 5 bind the new tracks from their
first Group.  A publisher ends a track with PUBLISH_DONE and the
status TRACK_ENDED (<xref target="I-D.ietf-moq-transport"></xref> Sections 9.9 and
12.4), and with a catalog update that no longer lists the track and
that lists the new tracks, if there are any.  The repair tracks of
an ended track end with it.</li>
</ol>
<t>The test of item 3 uses exact integers.  For every two tracks A and B
of the switching set:</t>

<artwork><![CDATA[A.keyframeSpacing * B.groupDurationTicks * A.timescale ==
    B.keyframeSpacing * A.groupDurationTicks * B.timescale
]]></artwork>
<t>The quotient n above is then <tt>G.keyframeSpacing</tt>.</t>
<t>An mmtp track that is not in a mixed-interval switching set MUST NOT
carry <tt>keyframeSpacing</tt>, and a receiver ignores the field on such a
track.  <xref target="I-D.ietf-moq-msf"></xref> Section 6.3 applies its formula wherever
the values of an alternate group differ, and in any other switching
set equal Group numbers already mark the same instant (Section 4.4).</t>
<t>With these rules the switch points of <xref target="I-D.ietf-moq-msf"></xref> Section
6.3.2 include those of the mapping above.  From Group g of a source
track with <tt>keyframeSpacing</tt> S, where N is the first sample of that
group that the subscriber does not take from the source track, a
switch to a target track with
<tt>keyframeSpacing</tt> T is valid when <tt>(g * S + N) / T</tt> is an integer.
That integer is the Group of the target track at which the subscriber
starts, at the RAP of that group.  A subscriber can therefore switch
from G to I at any G group boundary, where it starts at Group g * n
of I.  It can switch from I to G only at an I group whose number is a
multiple of n.  Inside a group of G, a sample N greater than zero is a
switch point to I only where the samples of G decode in the order in
which they present.  Two intra-only tracks of one mixed-interval
switching set have the same sample period, so they are group-aligned
at every group.</t>
<t>For example, an mmtp 15 fps intra-only base track with <tt>timescale: 90000</tt>,
<tt>groupDurationTicks: 6000</tt> and <tt>keyframeSpacing: 1</tt> may share a
switching set with a 15 fps GOP
track with <tt>timescale: 30000</tt>, <tt>groupDurationTicks: 30000</tt> and
<tt>keyframeSpacing: 15</tt>,
because <tt>30000 * 90000 = 15 * (6000 * 30000)</tt>.  A subscriber that
has played Group 44 of the intra-only track can switch to the GOP
track at Group 45, since 45 * 1 / 15 = 3: it starts at Group 3 of the
GOP track.  At Group 46 it cannot, since 46 / 15 is not an integer.
With
<tt>groupDurationTicks: 31500</tt> on the GOP track the remainder is non-zero
and the catalog is invalid.  Two GOP tracks with group durations of 2 s
and 1 s are invalid even though one nests in the other.</t>
<t>Subscribers SHOULD validate these rules at catalog load, including the
presence and the values of <tt>keyframeSpacing</tt> in a mixed-interval
switching set, and, on disagreement,
SHOULD reject the catalog and signal a catalog-validation error to the
application.  A track of such a set that lacks <tt>keyframeSpacing</tt> fails
this check, not the per-track validation of Section 6.1, step 1.
Subscribers that proceed despite disagreement are
non-conformant for switching across the affected tracks; ABR transitions
on such tracks will produce group-boundary discontinuities.  A
subscriber does not take a missing Group number on a track of such a
set for a breach of item 5: a relay or a delivery timeout can drop a
Group.</t>
</section>

<section anchor="catalog-signaling-of-keyframe-interval"><name>Catalog Signaling of Keyframe Interval</name>
<t>A video MPU holds exactly one RAP, its first sample (Section 5.3.4),
and an MPU is one group (Section 4.3), so the keyframes of a video
track are its group starts.  The packets of a stream do not say that
their publisher keeps to this.  This document defines an OPTIONAL
per-track field by which the publisher says so in the catalog, and
which the repair policy of <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.1 reads
before it takes a group boundary to bound the track's keyframes:</t>

<artwork><![CDATA[keyframeIntervalMs (OPTIONAL, unsigned integer, milliseconds)
]]></artwork>
<t><tt>keyframeIntervalMs</tt> is the interval between consecutive video
keyframes, in integer milliseconds.  On a track whose groups each last
one group duration (Section 4.4.2) it equals the group duration, and
that equality is the statement that receivers read.  A
publisher MUST NOT publish a keyframe interval shorter than the
track's group duration: such a value states keyframes inside a group,
which Section 5.3.4 forbids.  The field applies to video tracks only;
a publisher that cannot state one interval for the track omits it.</t>
<t>Its absence is not a catalog error:
subscribers MUST NOT reject a catalog solely because it is missing,
and a receiver MUST NOT substitute a locally chosen or observed
cadence for it.  When present, <tt>keyframeIntervalMs</tt> MUST be a
positive integer; a zero value is a catalog error.</t>
<t>A published keyframe interval binds every keyframe of the track: the
publisher MUST NOT emit a keyframe other than at a group start, and a
publisher whose keyframe interval equals the group duration MUST NOT
let an MPU of the track last longer than one group duration.  A
receiver that reads a keyframe interval equal to the group duration
relies on every keyframe of the track being the first sample of an
MPU.  It does not rely on that for a track whose catalog carries no
keyframe interval, or one that differs from the group duration.
Revisions of this document up to -02 let an MPU hold further keyframes
after its first sample, each a whole number of keyframe intervals
after the group start, and did not bound how long an MPU lasts.  Their
publishers described such keyframes with an interval shorter than the
group duration, and omitted the field where an encoder could place
keyframes off its cadence, for example at scene cuts.  On a track of
such a revision whose keyframe interval equals its group duration, an
MPU that lasts no longer than the interval holds one keyframe, and a
longer MPU can hold more.  <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.1 says how
a receiver guards against a longer MPU, and what it does with a track
that does not make the statement.</t>
<t>As with the group duration, the integer-millisecond form cannot
express a keyframe cadence whose tick count is non-integer on the
track's timescale.  A publisher MAY publish an exact override:</t>

<artwork><![CDATA[keyframeIntervalTicks (OPTIONAL, unsigned integer)
]]></artwork>
<t>expressed in the same timescale as <tt>groupDurationTicks</tt> (Section 4.4.2,
selected by the track's <tt>packaging</tt>).  If both
<tt>keyframeIntervalMs</tt> and <tt>keyframeIntervalTicks</tt> are present,
<tt>keyframeIntervalTicks</tt> wins.  The interval is compared with the group
duration in ticks of that timescale: <tt>keyframeIntervalTicks</tt>, or
<tt>keyframeIntervalMs</tt> converted to the track timescale where that
conversion is exact, against <tt>groupDurationTicks</tt>.  An inexact
<tt>keyframeIntervalMs</tt> gives no usable interval.</t>
</section>
</section>

<section anchor="init-segment-signaling"><name>Init Segment Signaling</name>
<t>Publishers signal MPU metadata inline as the complete FT=0 object in
Subgroup 0 of every group (Section 4.3), preceded in that subgroup only
by the OPTIONAL AL-FEC signaling object of Section 8.  Its data unit contains the
authored initialization boxes, including <tt>ftyp</tt>, <tt>mmpu</tt>, and <tt>moov</tt>.</t>
<t>In addition, publishers SHOULD carry decoder initialization data in
the catalog, using the mechanism of the base catalog that
<xref target="I-D.ietf-moq-cmsf"></xref> Section 3.1 also uses for CMAF headers.  The
data is an entry of the root <tt>initDataList</tt> array
(<xref target="I-D.ietf-moq-msf"></xref> Section 5.1.7) whose <tt>type</tt> is &quot;inline&quot; and
whose <tt>data</tt> is the base64 encoding of an ISOBMFF initialization
segment (<tt>ftyp</tt> + <tt>moov</tt>) sufficient to initialize the decoder for
the track (including the codec configuration record, e.g. avcC or
hvcC).  The track's <tt>initRef</tt> field (<xref target="I-D.ietf-moq-msf"></xref>
Section 5.2.14) holds that entry's <tt>id</tt>.  This lets a subscriber
initialize its decoder at catalog load, before the first FT=0 MPU
metadata object arrives, removing one delivery round trip from the
join path (Section 6.1).  A receiver ignores an <tt>initRef</tt> that names
no entry, or names an entry whose <tt>type</tt> is not &quot;inline&quot;, and joins
without catalog initialization data.</t>
<t>Catalog initialization data is a join optimization, not a replacement
for in-band metadata: the per-group FT=0 MPU metadata remains
authoritative, and a receiver MUST adopt in-band metadata when it
differs from the catalog's initialization data.  Catalog content is
untrusted input; a receiver MUST validate that the decoded <tt>data</tt> is
a well-formed <tt>ftyp</tt> + <tt>moov</tt> sequence before passing it to a
decoder, and MUST discard it otherwise.</t>
<t>Some implementations carry the same bytes in a per-track string
field, <tt>initData</tt>, which <xref target="I-D.ietf-moq-msf"></xref> does not define.  A
receiver MAY accept <tt>initData</tt> on an mmtp track and validates it in
the same way.  When a track carries both <tt>initRef</tt> and <tt>initData</tt>, the
receiver uses <tt>initRef</tt>.</t>
</section>

<section anchor="object-identifier-assignment-and-reconstruction"><name>Object Identifier Assignment and Reconstruction</name>
<t>The publisher numbers the objects of each group in source order, as
<xref target="I-D.ietf-moq-msf"></xref> Section 6.2 requires.  The first object of the
group has Object ID 0.  It is the AL-FEC signaling object when the
group carries one (Section 8), and the FT=0 object otherwise.  Each
later object, in whichever subgroup, has the Object ID of the object
before it plus one.  An Object ID therefore identifies one object of
its group, as <xref target="I-D.ietf-moq-transport"></xref> Section 2.1 requires, and
the Subgroup ID still identifies the data unit (Section 4.3).  The
packetizer emits each data unit's packets contiguously
(Section 5.2.2), and Subgroup IDs follow source order
(Section 5.3.2), so ascending Object ID order within a group is also
ascending Subgroup ID order.  A FETCH or fill fetch stream, which
sends a group's objects in Object ID order
(<xref target="I-D.ietf-moq-transport"></xref> Section 3.2.1), therefore delivers them
in the order that Section 4.3 requires.</t>
<t>MoQ Transport carries Object IDs as deltas on subgroup and fetch
streams (<xref target="I-D.ietf-moq-transport"></xref> Sections 11.3.1 and 11.4.1.1) and
as absolute values in datagrams (<xref target="I-D.ietf-moq-transport"></xref> Section
11.2.1), and the objects of every subgroup other than Subgroup 0 have
Object IDs greater than zero.  A receiver MUST reconstruct each
object's absolute Object ID from that encoding.  It MUST NOT assume
that a subgroup's first Object ID is zero, that successive objects
differ by a fixed step, or that a stream carries an absolute Object ID
explicitly.</t>
<t>Object IDs identify preserved source objects
within a group; they do not replace the MMTP packet sequence, FI
countdown, or active-data-unit association required by Sections 5.2
and 5.3.</t>
</section>
</section>

<section anchor="media-fragment-unit-mfu-mode"><name>Media Fragment Unit (MFU) Mode</name>
<t>This timed-media profile transports each authored MPU data unit without
rewriting it:</t>

<artwork><![CDATA[MFU Mode (one subgroup per MPU data unit):
  Group N:
   [SG 0 / Obj 0: [MMTP type=0x02 id=0][SH][AL-FEC msg]] (Section 8)
    SG 0 / Obj s:   [MMTP][PH FT=0 FI=0][ftyp+mmpu+moov]
    SG 1 / Obj s+1: [MMTP][PH FT=1 FI=0][moof+mdat prefix]
    SG 2 / Obj s+2: [MMTP][PH FT=2 FI=0][DU][sample 1]
    SG 3 / Obj s+3: [MMTP][PH FT=2 FI=0][DU][sample 2]
  ...

Fragmented FT=2 sample (Section 5.2):
  Group N, SG 2:
    Obj s+2: [MMTP][PH FT=2 FI=1][DU][sample part 1]
    Obj s+3: [MMTP][PH FT=2 FI=2][sample part 2]
    Obj s+4: [MMTP][PH FT=2 FI=3][sample part 3]

Subsample-partitioned FT=2 sample (Section 5.2.1): one sample,
two producer-authored subsample data units:
  Group N:
    SG 4 / Obj a..b:   [MMTP][PH FT=2 FI=1][DU offset=0]  ... FI=3
    SG 5 / Obj b+1..c: [MMTP][PH FT=2 FI=1][DU offset=L0] ... FI=3

[MMTP] = MMTP packet header (Section 3.1): 12 bytes, since C = 0,
         plus a header extension when X = 1.
[PH]   = MPU-mode payload header, which carries the Fragmentation
         Indicator (FI); the FI is not in the MMTP packet header.
[SH]   = signaling message payload header (Section 3.1).
[...]  = OPTIONAL signaling object.  When present it is Object 0,
         the first object of SG 0, and FT=0 is the object after it.
s      = 1 when the signaling object is present, 0 when it is
         absent.  Object IDs count the group's objects in source
         order across subgroups (Section 4.6).
]]></artwork>
<t>For conformance, an <tt>mmtp</tt> track in this document carries timed media
only.  ISO/IEC 23008-1 Clause 9.3.2.3 defines the Timed Flag as
indicating whether the MPU is timed or non-timed, independently of the
FT value.  Every MPU-mode packet with FT=0, FT=1, or FT=2 in this
profile MUST carry <tt>T = 1</tt>; a packet with <tt>T = 0</tt> MUST be rejected.
Checking only FT=2 would leave metadata packets unchecked.  The ISO
non-timed DU identity and four-byte header remain outside this profile;
no <tt>Item_ID</tt>-based mapping is defined here.</t>
<t>FT=0 initializes the track, FT=1 supplies the authoritative movie
fragment structure and sample table, and FT=2 supplies the exact bytes
of each sample.  That order is a decoder contract, not a hint.</t>

<section anchor="authored-movie-fragment-timing"><name>Authored Movie-Fragment Timing</name>
<t>For timed media, receivers MUST derive sample timing and layout only
from the authored ISOBMFF metadata carried by FT=0 and FT=1:</t>

<ol spacing="compact">
<li>FT=0 supplies the one media track's <tt>mdhd</tt> timescale and <tt>trex</tt>
defaults.  It MUST contain a usable <tt>mvex</tt>/<tt>trex</tt> for that track.</li>
<li>FT=1 begins with a byte-for-byte copy of the authored <tt>moof</tt> and
carries a byte-for-byte copy of the original <tt>mdat</tt> prefix through
the byte before the first media sample.  This includes the original
<tt>mdat</tt> header and any auxiliary sample information.  The
<tt>mfhd.sequence_number</tt> identifies the movie fragment referenced by
subsequent timed-MFU DU headers.</li>
<li>For the <tt>traf</tt> whose <tt>tfhd.track_ID</tt> matches the independent media
track's <tt>tkhd.track_ID</tt>, <tt>tfdt</tt> supplies the first decode time.
Each sample duration and size is resolved using the ISOBMFF
precedence rules across <tt>trun</tt>, <tt>tfhd</tt>, and <tt>trex</tt>; composition time
is decode time plus the authored <tt>trun</tt> composition-time offset.
Signed offsets MUST remain signed.  Sample byte positions are
resolved from the authored base-data-offset and <tt>trun.data_offset</tt>
rules, not from a fixed <tt>mdat</tt>-header guess.</li>
<li>Each FT=2 timed DU identifies one sample -- or one producer-authored
subsample of it -- by <tt>(MPU_sequence_number,
movie_fragment_sequence_number, sample_number, offset)</tt>.  A
whole-sample data unit carries <tt>offset</tt> zero; a subsample data unit
(Section 5.2.1) carries the authored byte position of its first
media byte within the sample.  Section 5.3.3 defines sample
completion.</li>
</ol>
<t>A receiver MUST reject a missing or ambiguous media track, timescale,
movie-fragment sequence, <tt>tfdt</tt>, or sample identity.  It MUST also
reject any sample duration, sample size, byte position, or composition
offset that remains unresolved or invalid after applying all authored
<tt>trun</tt>, <tt>tfhd</tt>, <tt>trex</tt>, and implicit ISOBMFF rules.  An absent
per-sample <tt>trun</tt> composition-time-offset resolves to zero, and an
absent <tt>trun.data_offset</tt> is not by itself an error when the ISOBMFF
base-data-offset and run-continuation rules resolve the byte position.
The receiver MUST reject overlapping sample byte ranges, undeclared
bytes, duplicate samples, duplicate or overlapping subsample data
units (Section 5.2.1), and FT=2 media for which the governing FT=0
or FT=1 has not been accepted.  It MUST NOT synthesize timing from the
MMTP Timestamp, packet or MPU counters, MoQ Object IDs, arrival time,
catalog cadence, codec frame-rate guesses, or previously observed
samples.</t>
<t>The MMTP Timestamp is a send time, not media time (Section 3.1).
Any absolute MMT presentation anchor and edit-list offset are applied
as specified by PI/MPU presentation signalling and ISOBMFF; a receiver
without the required anchor MUST reject that timeline rather than
silently omit the authored adjustment.</t>
</section>

<section anchor="fragmentation-and-strict-active-du-reassembly"><name>Fragmentation and Strict Active-DU Reassembly</name>
<t>A single MFU can exceed the path MTU, but the ISO MPU-mode payload
header does not permit an unbounded number of fragments.  The 8-bit
<tt>fragment_counter</tt> is the number of MMTP payloads containing fragments
of the same data unit that succeed the current payload; it is not a
modulo sequence number.  A complete FI=0 data unit MUST carry zero.
For a fragmented data unit carried in N payloads, where 2 &lt;= N &lt;= 256,
the FI=1 payload MUST carry N - 1, every succeeding payload MUST
decrement the value by one, and the FI=3 payload MUST carry zero.  The
counter MUST NOT wrap or repeat within a data unit.</t>
<t>The mfu mapping defined here carries exactly one data unit per MMTP
payload, so <tt>aggregation_flag</tt> MUST be zero.  The upstream MMTP
packetizer produces conformant data units, and an input MMTP flow used
by this mapping MUST already satisfy the 256-payload bound for every
data unit.  In this profile an FT=2 timed data unit carries one whole
sample, or exactly one producer-authored subsample of it
(Section 5.2.1).  A sample whose media exceeds one data unit's
capacity MUST be partitioned into subsample data units by the origin
packetizer per Section 5.2.1, before this mapping applies -- never by
a relay and never by this mapping, which does not repacketize or
subdivide an input data unit.  Such a sample MUST NOT be carried by
wrapping or extending the counter, silently truncated, or split into a
second MPU, and an access unit MUST NOT be split across multiple MPUs
(<xref target="ISO.23008-1"></xref> Section 6.4).  A publisher MUST reject a purported
data unit that exceeds the bound, has an invalid countdown, or uses
aggregation.  It MUST NOT wrap or extend the counter, divide one data
unit's overflow between subgroups, or synthesize MoQ Object IDs to
make a non-conformant MMTP data unit appear valid.</t>
<t>Each MMTP packet maps to exactly one MoQ object, and the publisher
MUST NOT reassemble MFU fragments:</t>

<ol spacing="compact">
<li>The publisher MUST publish each MMTP packet of a data unit as a
separate object within that data unit's subgroup (Section 4.3), preserving the
MMTP packet header and the MPU-mode payload header.  Those headers
carry the Fragmentation Indicator
and MPU sequence number.  Object IDs identify the preserved source
packets within the group (Section 4.6) but are not MFU identities
or media timestamps.</li>
<li>The publisher MUST NOT reassemble or reorder fragments based on
the Fragmentation Indicator.  It routes each packet to (track,
group, subgroup) by packet_id, MPU boundary, data-unit type, and the
strict active-DU state of Section 5.3: a change of MPU sequence
number starts the next group (Section 4.3), and each distinct data
unit within the group maps to its own subgroup as defined in
Section 5.3.</li>
<li><t>The receiver MUST reassemble each data unit from the objects of its
subgroup before media processing.  After restoring serial packet
order (Section 5.3.3), it applies the FI/counter state machine of
Section 5.3:</t>

<ul spacing="compact">
<li>A single object with FI=0 is a complete, unfragmented data unit;
for FT=2 that data unit is one MFU.</li>
<li>FT=2 objects with FI=1 (first), FI=2 (zero or more middle), and FI=3
(last) reassemble, in that restored MMTP order, into one MFU by
concatenating each fragment's media bytes, delimited as defined
below.</li>
<li>The receiver MUST validate the <tt>fragment_counter</tt> countdown with
the state machine of Section 5.3.2.  Any missing, repeated,
wrapped, or non-decrementing count invalidates the entire MFU.</li>
<li>The reassembled MFU's RAP flag is taken from its FI=1 (or FI=0)
object.</li>
</ul></li>
</ol>
<t>The bytes concatenated are each fragment's media (data unit)
   bytes only -- not everything after the MMTP packet header.  Every
   fragment begins with a 12-or-more-byte MMTP packet header.  The
   receiver MUST parse the C and X flags, packet-counter presence, and
   header-extension length to locate the following 8-byte MPU-mode
   payload header; it MUST NOT assume a fixed offset of 12 bytes.  The
   MPU-mode payload header contains, by <xref target="ISO.23008-1"></xref>
   Clause 9.3.2.3 name with this document's alias in parentheses,
   length (<tt>payload_length</tt>, 16), FT (<tt>fragment_type</tt>, 4), T
   (<tt>timed_flag</tt>, 1), f_i (<tt>fragmentation_indicator</tt>, 2),
   aggregation_flag (1), fragment_counter (8), and
   MPU_sequence_number (32); both headers are stripped from every
   fragment.</t>
<t>The 16-bit <tt>payload_length</tt> field MUST be encoded and interpreted
   as the number of bytes following that field within the MPU payload,
   as defined by <xref target="ISO.23008-1"></xref>.  It therefore includes the remaining
   six bytes of the 8-byte MPU-mode payload header.  For FT=2 packets,
   the declared lengths are:</t>

<artwork><![CDATA[   FI=0 or FI=1: payload_length = 6 + DU_header_octets + media_octets
   FI=2 or FI=3: payload_length = 6 + media_octets
]]></artwork>
<t><tt>DU_header_octets</tt> is 14 for timed media and 4 for non-timed media,
   and the right-hand side MUST NOT exceed the 16-bit maximum of 65535.
   A trailing Source FEC Payload ID is outside the declared MPU payload
   and MUST NOT be counted.  A publisher MUST NOT encode a media-only or
   DU-plus-media length convention.  A receiver MUST require the
   declared MPU payload to end exactly at the protected MPU boundary
   before the Source FEC Payload ID, when present.  It MUST reject a
   declaration that is too short, cannot contain the required header
   bytes, extends beyond the available MPU payload bytes, leaves
   undeclared bytes before the outer trailer, or consumes that trailer.</t>
<t>The DU header (<xref target="ISO.23008-1"></xref> Figures 12 and 13: 14 bytes for
   timed media -- movie_fragment_sequence_number (32),
   sample_number (32), offset (32), priority (8),
   dep_counter (8) -- or 4 bytes for non-timed media) follows the
   payload header on an FI=0 object and on the FI=1 first fragment;
   it is likewise stripped rather than concatenated into the media
   stream.  When the packet's FEC Type is 1, the trailing 4-byte
   Source FEC Payload ID (<xref target="source-fec-payload-id"></xref>) is excluded as
   well.</t>

<ol spacing="compact" start="4">
<li>FT=0 and FT=1 MUST each be unaggregated, complete FI=0 data units
with <tt>fragment_counter</tt> zero.  Their payload length is six plus the
metadata octets; they have no DU header.  Fragmented or empty
metadata is rejected by this profile.</li>
<li>The receiver MUST bound both in-flight data-unit memory and pending
FT=1 sample records.  At either bound it MUST reclaim a slot by
evicting the least recently admitted incomplete record (an open
data unit or a parked continuation run) and admit the new one; it
rejects only when no such record exists.  A record that has
already completed is never a candidate.  An incomplete data
unit is discarded on declared discontinuity or unrecoverable loss
and is never emitted.</li>
</ol>
<t>For very large frames where FEC cannot recover the loss, receivers
SHOULD support resolution-tier fallback (subscribe to a lower-resolution
track of the switching set and upscale) rather than stalling.</t>

<section anchor="subsample-data-units"><name>Subsample Data Units</name>
<t>At a given packet size, one data unit carries at most 256 MMTP
payloads of media.  A single intra-coded 4K or 8K sample routinely
exceeds that capacity.  This section defines the only conformant way
to carry such a sample: the origin packetizer partitions it into
subsample data units, using the <tt>offset</tt> field that <xref target="ISO.23008-1"></xref>
Section 9.3.2.3 already defines in the timed-MFU DU header.  The
partition is producer-authored and wire-stated; nothing about it is
inferred.</t>
<t>A subsample data unit is an ordinary FT=2 timed data unit: it has its
own DU header, its own FI chain, and its own <tt>fragment_counter</tt>
countdown bounded by 256 payloads (Section 5.2).  Its identity is
<tt>(packet_id, MPU_sequence_number, movie_fragment_sequence_number,
sample_number, offset)</tt>, where <tt>offset</tt> is the authored byte position
of the data unit's first media byte within the sample.</t>
<t>Origin packetizer requirements:</t>

<ol spacing="compact">
<li>A packetizer MUST emit a sample as a single whole-sample data unit
(<tt>offset</tt> zero) whenever the sample fits within one data unit's
capacity.  Subsample partitioning of a sample that fits is not
conformant.</li>
<li>When partitioning, the first subsample data unit MUST carry
<tt>offset</tt> zero and each subsequent one MUST carry an <tt>offset</tt> equal
to the sum of the media lengths of all preceding subsample data
units of that sample: offsets are strictly increasing, with no gap
and no overlap.</li>
<li>Each subsample data unit of one sample MUST be published as its
own subgroup per Section 5.3.2, contiguously per Section 5.2.2.</li>
<li><tt>priority</tt> and <tt>dep_counter</tt> describe the sample and SHOULD be
identical across its subsample data units.  <tt>priority</tt> MUST be
identical across them on every sample of an MPU whose RAP carries
<tt>priority</tt> 254 in any of its data units (Section 5.3.4).</li>
</ol>
<t>Relays and this mapping MUST NOT create, merge, or re-partition
subsample data units.</t>
<t>Receiver sample assembly: a subsample-partitioned sample completes
only when every one of its subsample data units has completed under
the state machine of Section 5.3.2 and, ordered by <tt>offset</tt>, the data
units begin at zero, are byte-adjacent (each <tt>offset</tt> equals the
preceding <tt>offset</tt> plus the preceding data unit's media length), and
their total media length equals the sample's authored size from the
FT=1 record.  A gap, overlap, duplicate <tt>offset</tt>, or length mismatch
invalidates the sample; the receiver MUST NOT emit a partial sample or
synthesize missing bytes.  Completion is a protocol event -- every
constituent subgroup complete -- and on reliable transport a receiver
MUST NOT substitute timers, cadence, buffer occupancy, or successor
arrival for it.  On lossy paths each subsample data unit completes,
possibly after FEC recovery (<xref target="MOQ-FEC-CORE"></xref> Section
9), or is discarded
as incomplete (Section 5.2, item 5), like any other data unit; no
additional sample-level timer is defined or permitted.</t>
<t>The sample's RAP flag is the RAP flag of the FI=0 or FI=1 object of
its offset-0 data unit.  On a video track it is set on the first
sample of an MPU and on no other (Section 5.3.4), with or without a
keyframe overlay (<xref target="overlay-membership"></xref>).  FEC is unaffected by the
partition: source
symbols are MMTP packets (<xref target="iso-ssbg1-v1"></xref>), and the packet stream's
block and interleave structure does not depend on data-unit boundaries.</t>
</section>

<section anchor="source-contiguity"><name>Source Contiguity</name>
<t><xref target="ISO.23008-1"></xref> does not prohibit a packetizer from emitting an
unrelated payload of the same <tt>packet_id</tt> between two fragments of one
data unit.  This profile does prohibit it.</t>
<t>An origin packetizer MUST emit every multi-packet unit on consecutive
<tt>packet_sequence_number</tt> values of its <tt>packet_id</tt>, in authored order,
with no other payload of that <tt>packet_id</tt> between its packets: the
fragments of a data unit in FI order, and the subsample data units of
one sample (Section 5.2.1) in ascending <tt>offset</tt> order.  The sequence
numbers of the FI=1 fragment, of each FI=2 fragment, and of the FI=3
fragment MUST be successive values under
modulo-2^32 arithmetic.  A data unit of a different <tt>packet_id</tt> MAY be
emitted at any point, and a further data unit of the same <tt>packet_id</tt>
MAY be emitted once that data unit's FI=3 fragment has been emitted,
subject to the sample-level contiguity above.</t>
<t>The requirement constrains the packetizer's emission order only.  Loss
or reordering on the path does not violate it: the receiver restores
serial packet order before reassembly (Section 5.3.3).  Repair
carried on its own flow bears a different <tt>packet_id</tt> and therefore
cannot interleave.</t>
<t>A violating data unit never completes at the receiver, which
associates continuations only through active data-unit state
(Section 5.3) and evicts the stranded records without a protocol
error (Section 5.2, item 5).  A receiver MUST NOT relax association to
tolerate such a producer: a continuation admitted into the wrong data
unit corrupts media that would otherwise have been discarded.</t>
</section>
</section>

<section anchor="active-data-unit-association-and-subgroup-derivation"><name>Active Data-Unit Association and Subgroup Derivation</name>
<t>Object IDs are transport coordinates, not an MMTP continuation key.
A fragment recovered below the MoQ object layer has no Object ID, and
Object IDs from two delivery paths are not comparable.  The MMTP DU
header is also not a per-fragment coordinate: this profile carries it
only in the FI=0 or FI=1 payload (<xref target="ISO.23008-1"></xref> Clause 9.3.2 does
not specify whether FI=2 and FI=3 fragments repeat it).  FI=2 and FI=3
continuations carry media bytes but no movie-fragment sequence, sample
number, or sample offset.</t>
<t>Consequently a receiver MUST associate continuations through the
ordered, bounded active-data-unit state defined here.  It MUST NOT use
an MMTP Timestamp, MoQ Object ID, signaling identifier, packet arrival
time or order, inferred byte offset, recently completed identity, or a
(stream, MPU sequence number) pair or fragment counter alone as a
fallback association.</t>

<section anchor="first-fragment-identity"><name>First-Fragment Identity</name>
<t>For an FT=2 first or complete fragment, <xref target="ISO.23008-1"></xref> defines a
transport-independent data-unit identity in the DU header:</t>
<table>
<thead>
<tr>
<th>Object class</th>
<th>Data-unit identity</th>
<th><xref target="ISO.23008-1"></xref></th>
</tr>
</thead>

<tbody>
<tr>
<td>Timed-media MFU</td>
<td>packet_id, MPU_sequence_number, movie_fragment_sequence_number, sample_number, offset</td>
<td>Section 9.3.2.3</td>
</tr>

<tr>
<td>Non-timed media MFU</td>
<td>packet_id, MPU_sequence_number, Item_ID</td>
<td>Section 9.3.2.3</td>
</tr>
</tbody>
</table><t>For this timed-media profile, <tt>offset</tt> MUST be zero for a whole-sample
data unit and MUST equal the authored subsample byte position for a
subsample data unit (Section 5.2.1);
<tt>movie_fragment_sequence_number</tt> and <tt>sample_number</tt> MUST be non-zero,
and <tt>MPU_sequence_number</tt> MAY be zero (indeed, ISO/IEC 23008-1 requires
zero for the first MPU in an Asset).  The <tt>packet_id</tt> MUST be
non-zero: packet_id 0 is the MMTP signaling flow (Section 3.1) and
carries no media data unit, so a receiver MUST reject an MPU-mode
packet (packet type 0x00) on packet_id 0 rather than admit it to
active state.  A non-zero <tt>packet_id</tt> is validated in the scope of its
MMTP session; on multicast delivery it is validated against the
<tt>packetId</tt> values the endpoint advertises (<xref target="MOQ-MULTICAST"></xref>
Section 5).  A continuation inherits the accepted first-fragment
identity from active state; it does not reconstruct or guess another
copy of the DU header.</t>
</section>

<section anchor="subgroup-derivation"><name>Subgroup Derivation</name>
<t>Section 4.3 assigns Subgroup 0 to FT=0.  The publisher assigns every
following FT=1 or FT=2 data unit the next unused Subgroup ID in source
order.  All packets from one FI=1 through FI=3 chain share that ID.
An FI=2 or FI=3 packet therefore remains in the subgroup opened by the
immediately preceding FI=1 packet on the same <tt>packet_id</tt>; a new data
unit MUST NOT interleave before the chain closes (Section 5.2.2).</t>
<t>The publisher and receiver each maintain at most one active fragmented
data unit per <tt>(packet_id, MPU_sequence_number)</tt> while processing
subgroups in order:</t>

<ol spacing="compact">
<li>FI=0 requires <tt>fragment_counter == 0</tt> and no active data unit.  For
FT=2 it requires a valid DU header and represents the complete
sample.  FT=0 and FT=1 are permitted only in this form.</li>
<li>FI=1 requires no active data unit, a counter <tt>c</tt> in 1..255, and, for
FT=2, a valid DU header.  It creates active state containing the
data-unit type, timed flag, full first-fragment identity, destination
subgroup, and <tt>next_expected_counter = c - 1</tt>.</li>
<li>FI=2 requires exactly one matching active state and a non-zero
counter equal to the next expected counter.  It appends only the
declared media bytes and decrements the expected counter.</li>
<li>FI=3 requires exactly one matching active state,
<tt>next_expected_counter == 0</tt>, and a wire counter of zero.  It appends
the declared media bytes, closes the state, and emits the complete
data unit only after all size and authored-timing checks succeed.</li>
</ol>
<t>An FI=0 or FI=1 while state is active is an overlap.  An FI=2 or FI=3
without it is an orphan.  A changed packet ID, MPU sequence, FT, timed
flag, subgroup, skipped/repeated counter, FI=2 at zero, or FI=3 before
the expected counter reaches zero is a mismatch or gap.  The receiver
MUST reject all of these and MUST NOT advance, replace, or consume valid state or pending sample
timing on rejection.  A new MPU arriving while the prior MPU has an
incomplete data unit declares loss and discontinuity, except where
Section 5.3.3 provides otherwise; the incomplete unit is discarded and
never emitted.</t>
</section>

<section anchor="receiver-admission-and-completion"><name>Receiver Admission and Completion</name>
<t>A receiver admits a fragment only after its declared MPU payload
boundary, outer FEC trailer, stream scope, subgroup order, and active-DU
transition all validate.  Duplicate packets may be dropped by exact
MMTP packet identity before admission, but a duplicate MUST NOT create
or advance active state.  Whatever path or mechanism delivers or
recovers a packet, the receiver MUST restore the same per-<tt>packet_id</tt>
serial packet order before this state machine, using modulo-2^32
serial-number arithmetic across <tt>packet_sequence_number</tt> wrap within a
bounded replay window, except where a later MPU is released ahead of
an earlier one (below).  The MMTP-session and MoQ-track scope are part
of that ordering state and of the active state of Section 5.3.2, so an
&quot;mfu&quot; track and its &quot;mfu-datagram&quot; track (Section 4.3.1), whose
packets share a <tt>packet_id</tt>, share neither; no mechanism may fabricate
a missing transition.</t>
<t>On a datagram leg (Section 2), and on every other path of a track that
a datagram leg also delivers (<xref target="MOQ-MULTICAST"></xref> Section 6), restored
serial order takes the place of subgroup order, and MMTP-session or
MoQ-track scope that of stream scope: the active state of
Section 5.3.2 records no destination subgroup, and the FT=0, FT=1 and
FT=2 order of Section 4.3 is checked in restored serial order.  A
packet that arrives, or is recovered, ahead of a missing one is held,
not admitted, until the missing packet arrives or is recovered, or the
receiver declares it lost.  Where the receiver decodes FEC for the
missing packet, it declares the packet lost once every block that it
decodes and that holds the packet, the overlay block of a RAP packet
included (Section 7.4.4), has passed the deadline that the receiver
uses for it (<xref target="MOQ-FEC-CORE"></xref> Section 9.3) or been discarded
(<xref target="MOQ-FEC-CORE"></xref> Section 9.4), and otherwise once its bounded replay
window has passed.  It does not declare the packet lost while it waits
for a repair that it requested for the packet or its block, including
one that it requests as such a deadline passes (Section 4.3.1;
<xref target="MOQ-FEC-MULTICAST"></xref> Section 6.2), or for a fill fetch stream that
can still deliver the packet (Section 6.1, step 3).  It cancels a
repair that it stops waiting for (<xref target="I-D.ietf-moq-transport"></xref>
Section 3.2.4); on a multicast or AMT leg it stops waiting where
<xref target="MOQ-FEC-MULTICAST"></xref> Section 6 does not let it stall presentation,
and on any other datagram leg where Section 6.1, step 6, says.</t>
<t>On those paths, once the receiver holds an FT=0 packet that follows a
missing packet in serial order, the missing packet, which belongs to
an earlier MPU (Section 4.3), no longer holds that FT=0 packet or the
packets after it, and the new MPU does not declare loss of the earlier
MPU's incomplete data unit (Section 5.3.2): that unit is discarded
only when its missing packet is declared lost.  The loss of a packet
declared lost is unrecoverable (Section 5.2, item 5): before admitting
a packet held behind it, the receiver discards the data unit, if any,
that the lost packet would have continued, so that a following FI=0 or
FI=1 is not an overlap and a continuation of the discarded unit is an
orphan (Section 5.3.2).  A packet that arrives, or is recovered, after
it was declared lost is late and is not admitted.</t>
<t>Completion is transactional.  For a whole-sample data unit the
receiver first validates the full FI chain and the matching unconsumed
FT=1 sample record; the reassembled FT=2 media length MUST equal that
sample's authored size.  For a subsample-partitioned sample it
additionally requires every constituent subsample data unit to have
completed, with the byte-adjacency and total-length checks of
Section 5.2.1.  Only then may it emit the sample and consume that
record.  Every <tt>(sample, offset)</tt> data unit is admitted at most once,
and every described sample is emitted at most once.  A failed check leaves every pre-existing valid state and timing record
unchanged, except that an explicitly declared discontinuity discards
the incomplete prior unit.</t>
</section>

<section anchor="random-access-and-priority"><name>Random Access and Priority</name>
<t>An MPU begins at a Stream Access Point: the first access unit of an
MPU is a random access point (RAP) (<xref target="ISO.23008-1"></xref> Section 6.4;
Section 4.3).  Accordingly a receiver:</t>

<ul spacing="compact">
<li>SHOULD gate the start of media decoding on the availability of a
complete RAP MFU, including a RAP MFU completed by FEC recovery;
and</li>
<li>SHOULD prioritize FEC recovery and retention of fragments whose
DU header carries a higher priority or dep_counter value
(Section 5.2; the subsample_priority and dependency_counter of
<xref target="ISO.23008-1"></xref> Section 9.3.2.3), since these are decode-order
roots upon which other access units depend.</li>
</ul>
<t>On a video track a publisher MUST begin a new MPU at every RAP.  The
first sample of an MPU is then its only RAP: no later sample of the
MPU is one.  <xref target="ISO.23008-1"></xref> Section 6.4 says that &quot;The first access
unit of an MPU shall be an SAP (of SAP type 1, 2, or 3)&quot;; this mapping
adds that no later access unit of the MPU is one.  A publisher
MUST NOT set <tt>RAP_flag</tt> on a packet of a later sample of the MPU.  An
MPU is one group (Section 4.3), so a group begins at every RAP of the
track and holds no other.  Section 4.4.1 gives each MPU a Group number
greater than that of the MPU before it, so no two RAPs of a track fall
in the same group-duration interval of that formula.  A publisher
whose encoder could place a second RAP there, for example at a scene
cut, sets the encoder not to.  A publisher whose encoder codes a
keyframe inside a group all the same MAY send that picture as a later
sample of the MPU, without <tt>RAP_flag</tt> and with a <tt>priority</tt> that the
table below allows on a sample that is not a RAP.  It is then not a
RAP, nor a keyframe in the sense of Section 4.4.3: no receiver begins
decoding at it, and its loss is concealed as that of any later
sample.  This mapping does not repacketize
(Section 5.2): an input MMTP flow whose video MPUs hold a later RAP
does not meet this requirement until its origin packetizer begins an
MPU at every RAP.  This paragraph binds video tracks only.</t>
<t>Every MMTP packet of an MPU carries the MPU sequence number
(Section 4.3).  With one RAP in an MPU, a receiver that compares that
number on the two sides of a loss knows whether the loss can hold a
RAP, and <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.1 gives the rule.  The rule
reads no field that describes later samples, so it holds for reordered
frames and for layered streams as it does for a chain of frames each
predicted from the one before.</t>
<t>The packets of a stream do not name the revision that its publisher
follows, and revisions of this document up to -02 let an MPU hold
further RAPs after its first sample and required the RAP flag only on
the first sample of a group.  A receiver therefore learns from the
catalog that a track keeps to one RAP in an MPU: a keyframe interval
that is equal to the group duration says so (Section 4.4.3).  A
publisher that wants receivers to rely on it publishes that interval,
and then lets no MPU of the track last longer than one group
duration.  A track of an earlier revision whose catalog carries such
an interval holds one RAP in each MPU that lasts no longer than the
interval, since a published interval already bound every keyframe of
the track to that cadence.  Those revisions did not bound how long an
MPU lasts, so such a track can hold a further RAP in an MPU that
lasts longer.  A receiver does not take one RAP in an MPU for granted
on a track whose catalog carries no keyframe interval or one that
differs from the group duration.  Nor does it on a track on which it
has found a RAP that is not the first sample of its MPU, or an MPU
that lasts longer than the keyframe interval.  <xref target="MOQ-FEC-MULTICAST"></xref>
Section 6.1 says what it does then.</t>
<t><tt>dep_counter</tt> is the dependency_counter of <xref target="ISO.23008-1"></xref>
Section 9.3.2.3, which &quot;indicates the number of data units that depend
on their media processing upon the media data in this MFU&quot;.  This
mapping gives the field no meaning of its own.  A publisher sends 0
unless it knows that number.  A receiver MUST NOT take from
<tt>dep_counter</tt> any decision that changes what it decodes or presents;
the guidance above on recovery and retention is its only use.</t>
<t>A sample needs another sample when a decoder cannot decode it
correctly unless it has decoded the other.  That covers a picture the
sample predicts from, a picture its reference lists name without
using, stored entropy or filter state, a parameter set that only the
other sample carried, and a counter that the decoder checks for gaps.</t>
<t>A publisher MAY state what a video sample needs in the <tt>priority</tt> of
its DU header.  Every sample that arrives carries its own statement,
so a receiver applies it without the header of a sample that was lost.</t>
<t>A RAP sample whose <tt>priority</tt> is 254 promises one thing about every
sample after it up to the next RAP, that is every later sample of its
MPU: the sample carries 128, or a value from 1 to 62 or from 65 to 126
that is true of it by the table below.  It does not promise that any
of them names an anchor: a sample that carries 128 states nothing.
Any other value on a RAP sample promises
nothing about the samples after it.  A publisher that makes no promise
sends 255, or 0 where it authors no priority at all.  A publisher
MUST NOT send a value from 129 to 253, and a receiver reads such a
value on a RAP sample as 255.  A publisher MUST NOT send a value above
128 on a sample that is not a RAP.  A publisher of an earlier revision
that sent 255 on such a sample does not meet this requirement.  Its
tracks keep working all the same: a receiver reads a value from 129
to 255 on a sample that is not a RAP as stating nothing, as the table
below says.</t>
<table>
<thead>
<tr>
<th><tt>priority</tt> of a sample that is not a RAP</th>
<th>Meaning</th>
</tr>
</thead>

<tbody>
<tr>
<td>128</td>
<td>The sample is not a RAP.  It states nothing about what it needs.</td>
</tr>

<tr>
<td>0</td>
<td>States nothing, not even whether the sample is a RAP.  A publisher that authors no priority at all sends it on every sample.</td>
</tr>

<tr>
<td>1 to 62</td>
<td>The sample's anchor is the sample D places before it, D being the value.  No later sample of the track needs this sample.</td>
</tr>

<tr>
<td>65 to 126</td>
<td>The sample's anchor is the sample D places before it, D being the value minus 64.  A later sample may need this sample.</td>
</tr>

<tr>
<td>63, 64, 127</td>
<td>Reserved.  A publisher MUST NOT send them.  A receiver reads them as stating nothing.</td>
</tr>

<tr>
<td>129 to 255</td>
<td>Not sent on a sample that is not a RAP.  A receiver reads them as stating nothing.</td>
</tr>
</tbody>
</table><t>&quot;D places before&quot; counts samples in the track's authored order
(Section 4.3).  An anchor states that this sample can be decoded
correctly once the anchor has been decoded correctly.  Every sample
that this sample needs is its anchor or a sample that the anchor
needs.  An anchor MUST NOT be earlier than the RAP with which the
sample's MPU begins: a publisher sends 128 on a sample that needs a
sample before that RAP.  An anchor therefore always lies in the MPU of
the sample that names it.</t>
<t>A publisher that sends 254 on a RAP MUST derive the <tt>priority</tt> of
every later sample of that MPU from the sample's coded data: the
reference lists the sample carries, or a marking that the codec makes
binding.  These values are not configuration.  On such a sample it
MUST send 128 when it cannot tell, when no single sample serves as
anchor, or when the nearest sample that serves is more than 62 places
back.  It MAY name as anchor a sample nearer than the sample strictly
needs, provided the rule above holds.  It MUST NOT send a value from 1
to 62 unless the sample itself shows that no later sample can need it.
It MUST place exactly one sample in each movie fragment of an MPU that
holds more than one movie fragment, so that a receiver can count the
places between two samples from their DU headers.  It MUST carry the
same <tt>priority</tt> in every subsample data unit of a sample
(Section 5.2.1).</t>
<t>A receiver takes a sample for a RAP when its RAP flag is set
(Section 5.2.1), and reads the <tt>priority</tt> of any other sample from the
table above.  It applies the table only on a sample that follows, in
the same MPU, a RAP of <tt>priority</tt> 254 which it has decoded.  It draws
nothing about a sample from the header of a sample that it did not
receive.  It takes a sample that states nothing to need every sample
from the RAP of its MPU up to itself.  A receiver that reads an anchor
earlier than that RAP knows that the publisher does not follow this
section, and reads no further statement of the track.
<xref target="MOQ-FEC-MULTICAST"></xref> Section 6.3 says what a receiver does with a
sample whose anchor was lost.</t>
<t>A receiver finds an anchor from DU header fields, and only among the
samples that carry the MPU sequence number of the sample that names
it.  Where two DU headers carry the same
<tt>movie_fragment_sequence_number</tt>, their samples are apart by the
difference of their <tt>sample_number</tt> values.  Where they carry
different ones and both carry <tt>sample_number</tt> 1, their samples are
apart by the difference of the two <tt>movie_fragment_sequence_number</tt>
values in serial number arithmetic.  In any other case the count is
undetermined.  A receiver that cannot tell which sample a sample names
reads that sample as stating nothing.  A sample of another MPU is
never taken for an anchor, whatever numbers it carries.</t>
<t>The bands keep the order of the subsample_priority of <xref target="ISO.23008-1"></xref>
Section 9.3.2.3, in which a higher value has higher priority: a RAP
(254, 255), then a sample that states nothing (128), then a sample
that a later one may need (65 to 126), then a sample that no later one
needs (1 to 62).  A sample that states nothing ranks above the samples
that state a need because what depends on it is unknown, not because
more does.  Inside a band the value is a distance and ranks nothing.
The value 0 is outside this order: a publisher that authors no
priority sends it on every sample.  The guidance at the head of this
section, to favour a higher value in recovery and retention, applies
to these values as to any other.</t>
<t>On a multicast or AMT leg, <xref target="MOQ-FEC-MULTICAST"></xref> Section 6 specifies
the receiver repair policy this implies, and on any other datagram
leg Section 4.3.1 does.</t>
</section>
</section>
</section>

<section anchor="subscriber-join-and-relay-behavior"><name>Subscriber Join and Relay Behavior</name>
<t>This section defines the join procedure for subscribers.  A
subscriber reaches its first decodable frame without waiting for the
next group boundary by joining at the start of the current group
with the fill mechanism of <xref target="I-D.ietf-moq-transport"></xref> Section 3.5.
The join needs no relay behavior beyond <xref target="I-D.ietf-moq-transport"></xref>,
and relays never parse MMTP (Section 6.2).</t>

<section anchor="subscriber-join-procedure"><name>Subscriber Join Procedure</name>
<t>A subscriber joins a live mmtp-packaged track as follows:</t>

<ol>
<li><t><strong>Catalog.</strong> Subscribe to the catalog track (the track named
<tt>catalog</tt>, Section 13) as <xref target="I-D.ietf-moq-msf"></xref> Section 5 requires,
joining at the start of its current group
(<xref target="I-D.ietf-moq-transport"></xref> Section 3.5), and validate the
catalog.  Validation includes the per-track REQUIRED fields of
Section 13.1.  A subscriber MUST NOT issue SUBSCRIBE for a track
whose catalog entry fails validation.  It also applies the
switching-set agreement check of Section 4.4.2 and handles a
disagreement as that section specifies.</t>
</li>
<li><t><strong>Decoder initialization.</strong> If the catalog provides
initialization data for the track (Section 4.5) and that data
validates, initialize the decoder from it immediately.  In all
cases the subscriber MUST accept the
authoritative FT=0 object in Subgroup 0 before admitting this
group's FT=1 or FT=2 data units.  An AL-FEC signaling object that
precedes FT=0 in Subgroup 0 (Section 8) is not decoder
initialization and does not satisfy this step.</t>
</li>
<li><t><strong>Subscribe at a group boundary.</strong> Join at the start of the
current group, as <xref target="I-D.ietf-moq-transport"></xref> Section 3.5
describes.  Send SUBSCRIBE with a LOCATION_FILTER of type 0x05
(Next Object) and a FILL_PARAMETERS parameter whose
LOCATION_FILTER has type 0x01 (Relative Start) and StartGroup = 1
(<xref target="I-D.ietf-moq-transport"></xref> Sections 3.4, 9.19.9, and 9.19.15).
The publisher sends the current group, from its start up to the
Largest Object, on a fill fetch stream, and every later object on
the subscription, so each object arrives once.  The group start
carries FT=0 initialization (Subgroup 0), the FT=1 metadata
governing the first samples, and the RAP-bearing first FT=2
subgroup (Section 4.3); a subscription that starts mid-group
without a fill yields objects that cannot be decoded until the
next group.  A data unit that was still open at the join arrives
partly on the fill fetch stream and partly on its subgroup stream,
and the receiver combines the two before reassembly (Section 5.2).
If the fill fails or leaves a gap, the subscriber waits for the
next group, which the subscription delivers from its start.  A
subscriber that does not want the current group sends SUBSCRIBE
with a LOCATION_FILTER of type 0x01 and StartGroup = 0 instead.  A
NEW_GROUP_REQUEST (<xref target="I-D.ietf-moq-transport"></xref> Section 9.19.19)
cannot shorten that wait (Section 4.4.1).</t>
</li>
<li><t><strong>Repair track.</strong> If the subscriber wants FEC protection and the
catalog signals FEC for the track, it SHOULD subscribe to the
repair track (Section 8.2) at the same time as the source track,
so that the first FEC block spanning the join point is
repairable.  Repair-track subscription is selective and optional
(<xref target="MOQ-FEC-CORE"></xref> Section 7.2).</t>
</li>
<li><t><strong>Presentation gate.</strong> A subscriber MUST NOT submit media to the
decoder until it has (a) accepted the authoritative FT=0 and FT=1
data units and (b) a completely reassembled FT=2 sample whose RAP
flag is set (Section 5.2).  Objects received before that point are buffered
or discarded according to the receiver's reassembly bounds.</t>
</li>
<li><t><strong>Loss and discontinuity.</strong> If a RAP MFU is discarded under
unrepairable loss (Section 5.2), the subscriber MUST
treat the track as discontinuous and MUST NOT resume presentation
before the next completely reassembled RAP MFU, which begins a
later group (Section 5.3.4).  The same holds when the group's FT=0
data unit, or the FT=1 data unit governing its RAP, is lost, since
the RAP then cannot be admitted (Section 4.3).  On a datagram leg
(Section 2), loss that spares those three data units does not make
the track discontinuous.  A receiver tells such loss from the MPU
sequence numbers of the packets that it holds on the two sides of
the loss, by the MPU rule of <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.1.
Where that rule does not apply to the track, the receiver cannot
tell, and treats the loss as one that may include them.  On
a multicast or AMT leg
<xref target="MOQ-FEC-MULTICAST"></xref> Section 6 specifies its handling.  On any
other datagram leg the receiver stops waiting for a repair that it
requested (Section 4.3.1) no later than the presentation time of the
first media that the repair would supply, unless the repair may
supply part of one of those three data units, and conceals what is
still missing, as <xref target="MOQ-FEC-MULTICAST"></xref> Sections 6.3 and 6.4
specify, without stalling presentation.  It stops waiting for a
repair that may supply part of one of those three data units once
that repair is moot, as <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.2.1 defines
a moot keyframe repair, and then resumes from the RAP that made it
moot.  A RAP MFU reassembled completely while the repair can still
arrive by its playout deadline does not end the wait.
Section 4.3.1 says when it leaves an &quot;mfu-datagram&quot; track that does
not get that far.</t>
</li>
</ol>
</section>

<section anchor="relay-retention-for-late-joiners"><name>Relay Retention for Late Joiners</name>
<t>This section is informative.  A relay serves the fill fetch stream of
Section 6.1 from its cache, and fetches from upstream the objects it
does not hold (<xref target="I-D.ietf-moq-transport"></xref> Sections 3.2.3 and 3.4).  A
relay that caches the current group of each track it serves can
therefore start a late joiner without an upstream round trip.  The
join needs no mmtp-specific relay behavior.  A fill fetch stream
sends a group's objects in Object ID order, which is source order on
an mmtp track (Section 4.6), so it delivers Subgroup 0 and each
metadata subgroup before the FT=2 subgroups that depend on them, and
the relay does not parse MMTP.</t>
<t>Retention of groups older than the current group (for example to
serve FETCH-based catch-up) is permitted but out of scope for this
document.</t>
</section>
</section>

<section anchor="fec-integration"><name>FEC Integration</name>
<t>MMT's AL-FEC framework supports multiple FEC schemes, with the MMT FEC
codes specified in <xref target="ISO.23008-10"></xref> and parameters signaled via MMTP
signaling messages (Section 8.3); neither the framework nor ATSC 3.0,
which uses it for MMTP sessions (<xref target="ATSC-A331"></xref> Section 8.1.2.5),
requires a particular code, so the codes are specified by
<xref target="MOQ-FEC-BLOCK"></xref>: &quot;reed-solomon&quot;, the Reed-Solomon code of
<xref target="ISO.23008-10"></xref> Clause 6 (its Section 5), is the
mandatory-to-implement scheme, and RaptorQ <xref target="RFC6330"></xref> (its Section
6) is OPTIONAL (<xref target="MOQ-FEC-BLOCK"></xref> Section
10).  FEC repair uses the model defined in
<xref target="MOQ-FEC-CORE"></xref> (its Sections 3.1 and
7), under the block profile that <xref target="iso-ssbg1-v1"></xref>
defines for mmtp tracks:</t>

<artwork><![CDATA[Source Track: video
  +-- Objects: MMTP packets with FEC Type=0 or 1 (source)

Repair Track: video/repair
  +-- Objects: MMTP packets with FEC Type=2 (repair)
]]></artwork>
<t>This section defines that profile, &quot;iso-ssbg1-v1&quot;: its source symbols,
the Source FEC Payload ID trailer, the MMTP form of the repair packet,
the keyframe overlay and the interleave window.  It states where the
profile deviates from <xref target="MOQ-FEC-CORE"></xref>, whose remaining rules apply
unchanged (<xref target="MOQ-FEC-CORE"></xref> Section
5.2).</t>

<section anchor="iso-ssbg1-v1"><name>The iso-ssbg1-v1 Block Profile</name>
<t>&quot;iso-ssbg1-v1&quot; is the block profile (<xref target="MOQ-FEC-CORE"></xref> Section
5.2) of this document:
the ISO/IEC 23008-1 Annex C profile, all of whose rules a receiver
applies together.  It admits the <tt>mmtp</tt> packaging
(<xref target="iana-considerations"></xref>).  A source symbol is the ssbg_mode1 framing of
one FEC source packet (below).  A block holds SSB_length source symbols,
with <tt>sourceSymbols</tt> as the upper bound on SSB_length (<xref target="MOQ-FEC-CORE"></xref>
Section 5.4), carried in band as
<tt>maximum_k_for_repair_flow</tt> (Section 8.3).  SS_IDs advance by one per
FEC source packet, blocks are consecutive, and a source symbol is placed
in its block by range membership (<xref target="MOQ-FEC-CORE"></xref> Section
5.5).  SS_ID arithmetic is modulo 2^32,
and a block's repair objects are grouped under its 62-bit extended
SS_Start (<xref target="MOQ-FEC-CORE"></xref> Section
7.6).  An in-band AL-FEC message
that describes such a track carries the coding byte 0x14 (Section 8.3).</t>
<t>The rules of <xref target="MOQ-FEC-CORE"></xref> apply to a track under this profile with
the following deviations, which <xref target="MOQ-FEC-CORE"></xref> Section
5.2 asks a companion
profile to state:</t>

<ul>
<li><t>The unit of protection is the MMTP packet, not the MoQ object: a
source symbol is formed from one FEC source packet as this section
specifies, and the Protected Object Unit of <xref target="MOQ-FEC-CORE"></xref> Section
5.2 is not used.  A
source object of an mmtp track carries one source symbol, the FEC
source packet that is its payload, so SS_IDs advance by one per source
object.</t>
</li>
<li><t>A source packet carries its SS_ID in a 4-byte trailer, the Source FEC
Payload ID (<xref target="source-fec-payload-id"></xref>), which is the canonical carrier.
The FEC Source Info Object Property of the object that carries the
packet restates it in the 4-byte form, which names instance 0
(<xref target="MOQ-FEC-CORE"></xref> Section 5.6); the
Property is object metadata, not part of the protected packet, and is
not recovered with it.  When an object carries a source symbol but no
FEC Source Info Property, a receiver that parses the packet MAY take
the SS_ID from the trailer and feed the symbol to the base decoder
(<xref target="source-fec-payload-id"></xref>), a deviation from <xref target="MOQ-FEC-CORE"></xref> Section
5.6, under which such an object is not
a source object; a receiver that does not parse the packet has no
SS_ID for it and feeds it to no decoder.</t>
</li>
<li><t>A repair object is one complete MMTP repair packet of 12 + 13 + T
bytes (<xref target="repair-packet"></xref>), not the 13 + T byte payload of
<xref target="MOQ-FEC-CORE"></xref> Section 7.5.</t>
</li>
<li><t>The keyframe overlay (<xref target="keyframe-overlay"></xref>) is this profile's form of
an overlapping instance (<xref target="MOQ-FEC-CORE"></xref> Section
8.4), with two differences from that
section and from <xref target="MOQ-FEC-CORE"></xref> Section 5.1: a
RAP packet's overlay SS_ID travels in an MMTP header extension, not in
a second entry of the FEC Source Info Property, and the Property keeps
the 4-byte form, so a receiver learns a packet's overlay membership
and overlay SS_ID from that extension, which lies inside the protected
packet (<xref target="overlay-membership"></xref>), rather than from the Property alone;
and because a recovered packet carries its overlay SS_ID but not its
base SS_ID, a base recovery places the packet in the overlay instance,
whereas an overlay recovery counts toward the base instance only where
the receiver has determined the packet's base SS_ID independently
(<xref target="iso-ssbg1-v1"></xref>).</t>
</li>
<li><t><tt>interleaveDepthMs</tt> admits the value zero, with the ISO packet-count
meaning of <xref target="interleaving"></xref>, under the permission of <xref target="MOQ-FEC-CORE"></xref>
Section 10.1 for a block profile to give zero
a meaning of its own.</t>
</li>
<li><t>The symbol carriage of <xref target="MOQ-FEC-CORE"></xref> Section
6.2, and with it the symbol track and the FEC
Unit Start Property, does not apply to an mmtp track: its source
symbols reach a receiver inside the track's own objects or as
multicast datagrams (<xref target="MOQ-MULTICAST"></xref> Section
5), each carrying one whole FEC
source packet.</t>
</li>
</ul>
<t>Per <xref target="ISO.23008-1"></xref> Section C.3.3 (signalled per C.6.3, Table C.5), the
FEC block structure is described by the source symbol block generation
(SSBG) mode (ssbg_mode).  This profile uses ssbg_mode1, with the
one-stage FEC coding structure and FEC payload ID mode 0
(<xref target="ISO.23008-1"></xref> Clause C.1).</t>
<t><strong>ssbg_mode1</strong>: One MMTP source packet = one source symbol, which
records the packet's length.  Each MoQ object or multicast UDP datagram
carries exactly one FEC symbol.  Repair symbols are exactly T bytes on
the wire; a source packet MAY be shorter than T on the wire -- the
length field and the zero padding that complete its T-byte source symbol
are applied by the encoder and decoder as part of the source symbol
construction below and are not transmitted.  This is the natural model
for MMTP because packets are sized to fit in UDP datagrams and no
fragmentation or reassembly is needed at the FEC layer.  Every source
symbol is exactly T bytes, so a block of SSB_length source symbols is
exactly SSB_length x T bytes -- the property the derived Transfer Length
of <xref target="MOQ-FEC-BLOCK"></xref> Section 6.1 relies on.  This is
ssbg_mode1 of <xref target="ISO.23008-1"></xref>, not ssbg_mode0, which carries no length
and requires every packet of the flow to be exactly one symbol long.</t>
<t><strong>Source symbol construction</strong>: The protected packet of an FEC source
packet is the complete MMTP packet -- the MMTP packet header, including
any header extension, followed by the MMTP payload -- before its 4-byte
Source FEC Payload ID is appended (<xref target="ISO.23008-1"></xref> Section C.4.2;
<xref target="source-fec-payload-id"></xref>).  Its T-byte source symbol is (<xref target="ISO.23008-1"></xref>
Section C.3.3):</t>

<artwork><![CDATA[Source Symbol {
  Length (16),                  # protected packet length, octets
  Protected Packet (..),        # Length octets
  Padding (..),                 # zero octets, up to T in total
}
]]></artwork>
<t>The Length field is in network byte order and every Padding octet is
zero, so the largest protected packet a symbol can carry is T - 2
octets, and T MUST be at least 14: a shorter symbol carries no protected
packet of the 12-octet MMTP packet header (Section 3.1). (Under
&quot;raptorq&quot;, whose T is a multiple of 8, the least T is therefore 16,
<xref target="MOQ-FEC-BLOCK"></xref> Section 6.1.)  A publisher MUST size
every FEC source packet so that its protected packet does not exceed T -
2 octets.  A receiver that observes a source packet whose protected
packet exceeds T - 2 octets MUST NOT feed it to the decoder -- a
truncated symbol would corrupt recovery for the entire block -- but MAY
still deliver the packet as media. On a RAP packet under a keyframe
overlay (<xref target="keyframe-overlay"></xref>), the base and the overlay instance form
the symbol from the same protected packet, so the two protect one
identical T-byte symbol.</t>
<t>Recovery yields the block's SSB_length source symbols.  From each, the
receiver takes the Length octets that follow the Length field as the
recovered protected packet, and delivers that packet to the MMTP parser.
A receiver MUST NOT deliver a recovered symbol whose Length is less than
12, the size in bytes of the MMTP packet header (Section 3.1), or points
past the end of the symbol, or whose Padding octets are not all zero:
each means that the symbol is not the one the publisher encoded.</t>
<t>A recovered packet carries no Source FEC Payload ID, of either instance:
the trailer is appended after FEC encoding and is not part of the
protected packet.  A receiver MUST NOT re-append a trailer before
delivering the recovered packet to the MMTP parser, and MUST NOT expect
the recovered bytes to end in a block coordinate.  This holds
identically for a symbol recovered by a keyframe overlay, which the
receiver delivers as media on the strength of the overlay recovery
alone.  The 0x8B01 header extension of a RAP packet under an overlay
(<xref target="overlay-header-extension"></xref>) is part of the protected packet, by
contrast, and is recovered with it.</t>
<t>The packet's base SS_ID was in the trailer, and this document defines no
mapping from an overlay coordinate to a base one: a receiver MUST NOT
place an overlay-recovered symbol into a base source block unless it has
determined that packet's base SS_ID independently.  Absent that, an
overlay recovery is usable as media but MUST NOT be counted toward base
block recovery, and in particular MUST NOT be treated as reducing the
number of erasures the base decoder still has to solve. The other
direction needs no such determination, because a RAP packet recovered by
the base instance still carries its overlay SS_ID
(<xref target="overlay-header-extension"></xref>).</t>
<t><strong>SS_ID</strong>: Every FEC source packet carries a Source FEC Payload ID
(<xref target="source-fec-payload-id"></xref>), and a receiver that parses the packet takes
each source symbol's SS_ID from that field on every path that delivers
the packet with its trailer.  The SS_ID is also carried alongside the
packet where the packaging says so: on the MoQ path every object
carrying a source symbol carries it in the FEC Source Info Object
Property (<xref target="MOQ-FEC-CORE"></xref> Section 5.6),
under the same value and the same definition, whether or not that object
also delivers the trailer.  A receiver that does not parse the FEC
source packet -- a relay, or a MoQ receiver with no MMTP parser -- takes
the SS_ID from there.  The SS_ID advances by one per FEC source packet,
modulo 2^32, in the order the publisher emits the packets
(<xref target="ISO.23008-1"></xref> Section C.5.2), and the blocks of an FEC instance are
consecutive: each starts at the SS_ID that follows the last source
symbol of its predecessor (<xref target="MOQ-FEC-CORE"></xref> Section
5.4).  Every transport path that delivers a track yields the same
SS_ID for the same packet, because each path carries the same MMTP
packet, so receivers MAY combine the symbols of a track from every
transport path that delivers it toward the same FEC block recovery.
An &quot;mfu&quot; track and its &quot;mfu-datagram&quot; track carry the same source
packets but have FEC instances of their own (Section 4.3.1), and a loc
or cmaf track reaches multicast only through a separate mmtp alternate
track (<xref target="MOQ-MULTICAST"></xref> Section 4.1), whose symbols belong to another
FEC instance; a receiver does not combine symbols across either pair
(<xref target="MOQ-FEC-CORE"></xref> Section 5.1).</t>
<t><strong>OTI and sub-blocks</strong>: MoQ carries no RaptorQ Object Transmission
Information (OTI, <xref target="RFC6330"></xref> Section 3.3) in-session: receivers derive
it per block from the instance's configuration and the block's
SSB_length per <xref target="MOQ-FEC-BLOCK"></xref> Section 6.1.  The
AL-FEC message of an MMTP session (Section 8.3) carries none either.
When a source block is too large to decode in the decoder's working
memory, RFC 6330 permits dividing each block into N sub-blocks (the
Number of Sub-Blocks field of the OTI).  The derived OTI fixes N = 1, so
catalog-signaled sessions do not use sub-blocks; the AL-FEC message of
<xref target="ISO.23008-1"></xref> carries no OTI, and the split source blocks of its
Clause C.2.2 are the two-stage coding structure, which this profile does
not use.  A publisher using MMTP packaging under this profile therefore
uses ssbg_mode1 without sub-blocks, and never ssbg_mode2.</t>
</section>

<section anchor="source-fec-payload-id"><name>Source FEC Payload ID</name>
<t>Exactly one 4-byte Source FEC Payload ID (SS_ID; ffsrpts_flag = 0, so no
FFSRP_TS, <xref target="ISO.23008-1"></xref> Section C.5.1) is appended at the end of each
MMTP FEC source packet -- following the MMTP payload, outside the MMTP
packet header -- with or without a keyframe overlay
(<xref target="overlay-header-extension"></xref>).  The trailer lies outside the declared
MPU payload (Section 5.2) and outside the protected packet
(<xref target="iso-ssbg1-v1"></xref>).</t>
<t>For MoQ-only receivers (no A3SA verification), the trailing 4-byte
Source FEC Payload ID remains the canonical identifier by which a source
packet is placed in its block (<xref target="MOQ-FEC-CORE"></xref> Section
5.5).  QUIC transport encryption provides
equivalent integrity protection.  <xref target="a3sa-signed-region"></xref> states why the
ATSC 3.0 signing mechanism does not authenticate the trailer, and what a
receiver that requires authenticated block assignment does instead.</t>
<t>Whatever the receiver's verification posture, the FEC Source Info Object
Property (<xref target="MOQ-FEC-CORE"></xref> Section 5.6)
carries the same value for a receiver that does not parse the packet;
where an object delivers both and they disagree, the trailer is the one
that is canonical, because it is the field the FEC encoder emitted and
the one the receiver locates the symbol by.  The Property restates it at
the MoQ layer.</t>
<t>On an mmtp source object the Property's value is the 4-byte form of
<xref target="MOQ-FEC-CORE"></xref> Section 5.6, which names
instance 0: the sequence number of the source symbol the object carries,
the same value and the same definition that the Source FEC Payload ID
trailer of the FEC source packet carries.  The Property is that
trailer's MoQ-layer carrier: one identifier, one definition, whichever
path the symbol travels.  Both carry the same value and a publisher MUST
make them identical, on every source object, because the object payload
is the whole FEC source packet, trailer included. The Property is wanted
there as well: it places the symbol at the MoQ layer, reachable by a
relay and by a receiver that does not parse MMTP, whereas the trailer is
the field the FEC encoder emitted.  A packet the decoder recovers
carries neither (<xref target="iso-ssbg1-v1"></xref>): the Property is not recovered with
the object, and the trailer is appended after FEC encoding, so a
receiver that recovers a packet determines its SS_ID from the block
coordinate that recovered it, within that FEC instance's SS_ID space; an
overlay coordinate does not yield a base SS_ID.</t>
<t>Where a keyframe overlay applies (<xref target="keyframe-overlay"></xref>), an object
carrying an overlay member (<xref target="overlay-membership"></xref>), a fragment of a
Random Access Point that the overlay covers or an FT=0 or FT=1 data
unit that governs one, is a source symbol of two FEC instances, whose
SS_ID spaces are disjoint, so &quot;the source symbol the
object carries&quot; names two SS_IDs rather than one.  The Property carries
the base instance's SS_ID -- the value the Source FEC Payload ID trailer
carries -- and a publisher MUST NOT place an overlay SS_ID in it.  No
second Property entry conveys the overlay SS_ID: it travels in the
0x8B01 MMTP header extension, which lies inside the MMTP packet header
and is therefore part of the protected packet of both instances
(<xref target="overlay-header-extension"></xref>), so it rides inside the object's payload
on this path as on any other.  A receiver takes an overlay SS_ID from
that extension and from nothing else, and in particular MUST NOT infer
one from the Property.</t>
<t>An object that carries a source symbol but no FEC Source Info Property
violates the publisher requirement of <xref target="MOQ-FEC-CORE"></xref> Section
5.6.  A receiver that does not parse the
FEC source packet has no SS_ID for it -- at the MoQ layer the Property
is the only carrier -- so it MUST NOT feed such an object to the base
decoder and MUST NOT count it in K or in any base block, and MAY still
deliver it as media.  A receiver that parses the packet MAY take the
SS_ID from the trailer instead, since the packaging delivers it; this is
a deviation from that section, which has no trailer to fall back on.  An
overlay SS_ID is unaffected either way: it travels in the 0x8B01 MMTP
header extension (<xref target="overlay-header-extension"></xref>), which the Property does
not carry, and that section alone governs when the overlay decoder may
be fed.</t>
</section>

<section anchor="repair-packet"><name>Repair Packet</name>
<t>Each object on a repair track is one complete MMTP repair packet (packet
type 0x03, FEC Type 2) carrying exactly one repair symbol. Its layout is
the ISO 23008-1 AL-FEC repair packet form -- the MMTP packet header
followed by the 13-byte Repair FEC Payload ID and the repair symbol data
(<xref target="ISO.23008-1"></xref> Sections C.4.3 and C.5.3; ssbg_mode1, one-stage FEC
with N = 1, and ffsrpts_flag = 0, so no FFSRP_TS, Section C.5.1) -- so
the same repair packet is valid on MoQ, multicast UDP, and native
broadcast paths without translation, and matches the repair-object
depiction of <xref target="fec-integration"></xref>.  The layout below reproduces
<xref target="ISO.23008-1"></xref> Section C.5.3 for convenience.  The Repair FEC Payload
ID carries the fields of the repair object of <xref target="MOQ-FEC-CORE"></xref> Section
7.5 with the semantics that section gives them
-- SS_Start, RSB_length, RS_ID and SSB_length -- and this section
defines only the MMTP packet header in front of them:</t>

<artwork><![CDATA[Repair Packet {
  MMTP Packet Header (96),      # packet type 0x03, FEC Type 2
  Repair FEC Payload ID {
    SS_Start (32),
    RSB_length (24),
    RS_ID (24),
    SSB_length (24),
  },
  Repair Symbol Data (..),      # exactly one symbol, T bytes
}
]]></artwork>
<t><strong>MMTP Packet Header</strong>: The standard 12-byte MMTP packet header (Section
3.1) with packet type 0x03 (repair) and FEC Type 2; its <tt>packet_id</tt>
routes the repair flow.  Like every packet of its MMTP packet flow,
source and signaling packets included, a repair packet has the packet
counter flag C = 0 (Section 3.1; <xref target="ISO.23008-1"></xref> Clause 9.2.3).  A
repair packet MUST NOT carry a header extension (X = 0).  Because C = 0
and X = 0, the Repair FEC Payload ID always begins at byte offset 12.</t>
<t>A repair object under this profile is therefore 12 + 13 + T bytes long,
not the 13 + T bytes that <xref target="MOQ-FEC-CORE"></xref> Section
7.5 requires of a repair object under
&quot;moq-object-v1&quot;; a receiver MUST discard a repair object of an mmtp
track whose payload is not exactly 12 + 13 + T bytes.  It reads the
Repair FEC Payload ID at byte offset 12, and every other rule of that
section applies to the fields: a receiver routes the packet to the
decoder of the instance that the configuration relates to the repair
track it arrived on, and discards a packet whose RS_ID is not less than
RSB_length or that fails a bound of the instance's scheme
(<xref target="MOQ-FEC-BLOCK"></xref> Section 7).</t>
</section>

<section anchor="keyframe-overlay"><name>Keyframe Overlay</name>
<t>A source track MAY additionally be protected by a keyframe overlay: a
second, independent FEC instance whose source symbols are only the
fragments of Random Access Points of that source track and the FT=0
and FT=1 data units that govern them (<xref target="overlay-membership"></xref>).  It is this
profile's form of an overlapping instance (<xref target="MOQ-FEC-CORE"></xref> Section
8.4).  The overlay is defined only for a
source track under &quot;iso-ssbg1-v1&quot;, because its membership and its
overlay SS_ID rely on the MMTP <tt>RAP_flag</tt> and header extension
(<xref target="overlay-membership"></xref> and <xref target="overlay-header-extension"></xref>), which a loc or
cmaf object does not have; a track under &quot;moq-object-v1&quot; has no overlay,
and a catalog that declares one for such a track fails the rule of
<xref target="overlay-instance"></xref>.</t>
<t>Losing part of a Random Access Point makes every dependent frame
undecodable until the next one.  Losing the FT=0 or FT=1 data unit that
governs it does as much, since a receiver cannot admit the Random
Access Point without it (Sections 4.3 and 5.1), and losing the FT=0
data unit invalidates the whole group (Section 4.3).  The overlay
protects all of these across a block of its own, which can be wider
than the base window, without changing the base instance's latency.</t>

<section anchor="overlay-instance"><name>Overlay Instance</name>
<t>An overlay is a separate FEC instance over the same source track.  It
has its own <tt>sourceSymbols</tt> (K_overlay), its own <tt>repairSymbols</tt> and its
own <tt>interleaveDepthMs</tt> (<xref target="overlay-membership"></xref>), declared on its own
instance entry with its own repair track
(<xref target="MOQ-FEC-CATALOG"></xref> Section 3.1), and it shares
the source track's <tt>scheme</tt>, <tt>blockProfile</tt> and <tt>symbolSize</tt>. It does
not share the base instance's K, its block partition, its SS_ID space,
or its RS_ID space.  Because each source packet carries one base SS_ID,
a different base K or interleave window needs a separate alternate track; the
keyframe overlay is a separate FEC instance, not a layer.</t>
<t>An overlay instance whose base instance carries a positive
<tt>interleaveDepthMs</tt> SHOULD carry a positive <tt>interleaveDepthMs</tt> and a
<tt>reorderToleranceMs</tt> of its own.  Without the first a receiver has no
deadline for an overlay block (<xref target="MOQ-FEC-CORE"></xref> Section 9.3), so it
holds what waits on the overlay until a deadline it chooses itself;
without the second a receiver whose deadline needs a signaled
allowance does not use the overlay at all (<xref target="MOQ-FEC-CORE"></xref>
Section 9.3).</t>
<t>The overlay's instance object carries one member that this document
defines, under the rule of <xref target="MOQ-FEC-CATALOG"></xref> Section
3.4 that lets a block profile's document define
further keys for the tracks it admits, and further exceptions among
them:</t>
<t><strong>scope</strong> (string, OPTIONAL): When present, MUST be <tt>&quot;keyframe&quot;</tt>, and
declares this instance to be the source track's keyframe overlay.  It is
an unknown-key exception (<xref target="overlay-receiver-behavior"></xref>).  An overlay is
defined only for a source track under &quot;iso-ssbg1-v1&quot;
(<xref target="keyframe-overlay"></xref>).</t>
<t>Every per-block quantity of <xref target="MOQ-FEC-CORE"></xref> -- K, the total repair
count P, SS_ID, ESI, RS_ID, SS_Start, RSB_length, SSB_length, the
short-block rules, the wrap epoch and repair group IDs, and the bounds
of its Section 10.3 -- is defined within one FEC instance
(its Section 5.1).  For the base instance, K is the
source track's <tt>sourceSymbols</tt> and P is the sum of <tt>repairSymbols</tt> over
its published layers (<xref target="MOQ-FEC-CORE"></xref> Section
7.3.1); for an overlay, K and P are the
<tt>sourceSymbols</tt> and <tt>repairSymbols</tt> of its own instance.  A repair
packet belongs to the instance of the track it arrived on
(<xref target="overlay-membership"></xref>).</t>
<t>An overlay is not a repair layer.  It carries no <tt>repairLayer</tt>, it is
not a member of the layer index chain, and it is excluded from the
contiguity and priority monotonicity rules of <xref target="MOQ-FEC-CORE"></xref> Section
10.3, which order the base layer chain only.  Its
<tt>priority</tt> is independent within 192 to 255 (<xref target="MOQ-FEC-CORE"></xref> Section
10.3, rule 10, and Section
11), and MAY be numerically lower than a
base enhancement layer's so that a keyframe repair symbol is delivered
before an ordinary one.</t>
<t>Overlay ESIs never collide with base ESIs because the two are different
instances decoded by different decoders; a receiver does not feed a
repair symbol of one instance to the decoder of the other, nor reuse a
source symbol's coordinate in one instance as its coordinate in the
other (<xref target="MOQ-FEC-CORE"></xref> Section 5.1).  A RAP source
packet is a source symbol of both instances, at an unrelated coordinate
in each (<xref target="overlay-membership"></xref>).</t>
<t>A source track has at most one overlay, a wire constraint explained in
<xref target="overlay-header-extension"></xref>, and none when its <tt>blockProfile</tt> is
&quot;moq-object-v1&quot;; the overlay instance's repair track carries no
<tt>repairLayer</tt>.  A receiver MUST validate this before starting FEC for an
overlay instance of the source track, and on any violation MUST fail
closed as <xref target="MOQ-FEC-CORE"></xref> Section 10.3 requires for its
own rules: it reports the offending catalog path, does not start FEC for
any overlay instance of that source track, and MUST NOT repair the
catalog by ignoring a track.  An overlay is declared only by the
catalog, never in an in-band AL-FEC message, and only where no FEC
source or repair packet carries FFSRP_TS (<xref target="overlay-header-extension"></xref>).</t>
<t>Under &quot;reed-solomon&quot; the overlay has its own bound: K_overlay +
P_overlay is at most 255 (<xref target="MOQ-FEC-BLOCK"></xref> Section
7), whatever the base instance uses, and its rows
and columns of A are numbered within the overlay instance
(<xref target="MOQ-FEC-BLOCK"></xref> Section 5.2).  An overlay with
K_overlay 256 and P_overlay 32 has an RS_ID range of 0 to 31, an ESI
range in a full overlay block of 256 to 287, and packets carrying
RSB_length 32; it is valid only under &quot;raptorq&quot;, since 256 + 32 = 288
exceeds 255.  Under &quot;reed-solomon&quot;, an overlay whose instance declares
<tt>sourceSymbols</tt> 192 and <tt>repairSymbols</tt> 32 is valid, since 192 + 32 =
224.</t>
</section>

<section anchor="overlay-membership"><name>Overlay Membership</name>
<t>The overlay's source symbols are, in transmission order, the packets of
the source track that a receiver needs to present each Random Access
Point the overlay covers: the fragments of its MFUs and the FT=0 and
FT=1 data units that govern it, which a receiver accepts before it
admits the Random Access Point (Sections 4.3 and 5.1).  A source packet
of the track is an overlay member if and only if its payload belongs
to:</t>

<ul spacing="compact">
<li>a keyframe MFU covered by the overlay, and, where that keyframe
sample is partitioned (Section 5.2.1), each of its subsample data
units;</li>
<li>the FT=0 data unit, the MPU metadata, of an MPU whose first sample is
such a keyframe; or</li>
<li>the FT=1 data unit, the movie fragment metadata, of a movie fragment
that contains such a keyframe.</li>
</ul>
<t>Every packet of a member data unit is a member: the one FI=0 packet of
an unfragmented keyframe MFU, each FI=1, FI=2 and FI=3 fragment of a
fragmented one, and the one FI=0 packet that carries an FT=0 or FT=1
data unit, which this profile never fragments (Section 5.2, item 4).
No other packet is a member; in particular, no packet of an FT=1 data
unit whose movie fragment contains no covered keyframe, or of an FT=2
data unit of any other sample, is one.  The AL-FEC signaling object of
Section 8 is not an FEC source packet and is never a member, and a
publisher that declares an overlay MUST NOT set <tt>RAP_flag</tt> on it.</t>
<t>A publisher that declares an overlay MUST set <tt>RAP_flag</tt> on a source
packet of the track, MUST include the packet in the overlay instance,
and MUST carry the packet's overlay SS_ID in its 0x8B01 header
extension (<xref target="overlay-header-extension"></xref>), if and only if that packet is
an overlay member.  On such a track the packets that set <tt>RAP_flag</tt>,
which this document calls its RAP packets, are therefore exactly its
overlay members, the FT=0 and FT=1 members included.  Section 4.3 maps
each MPU to exactly one group and requires the FI=0 or FI=1 object that
begins the first FT=2 sample of each timed group, the Random Access
Point with which its MPU begins (Section 5.3.4), to set <tt>RAP_flag</tt>.  On
a track under an overlay that object is therefore a member, so the
first sample of every MPU is a covered keyframe and the FT=0 data unit
of every MPU is a member; an MPU without a Random Access Point does not
occur in this profile.  An MPU holds no keyframe after its first
sample (<xref target="random-access-and-priority"></xref>), so the overlay covers every
keyframe of the track, and the members of an MPU are its FT=0 data
unit, the FT=1 data unit of its first movie fragment and the fragments
of its first sample.  A receiver takes membership from the 0x8B01
extension alone (<xref target="overlay-header-extension"></xref>).</t>
<t>Overlay source symbols are numbered consecutively within the overlay
instance, in the order the publisher emits them: the overlay SS_ID is 0
at the first overlay source symbol of the stream and advances by one per
overlay source symbol, modulo 2^32 (<xref target="MOQ-FEC-CORE"></xref> Section
7.6).  Section 4.3 fixes that order within an MPU: its FT=0 data unit
first, then the FT=1 data unit of its first movie fragment, then the
fragments of its first sample, the covered keyframe (Section 5.2.2); a
packet emitted between two members takes no overlay SS_ID.  The
overlay SS_ID is the value the RAP
source packet carries in its 0x8B01 header extension
(<xref target="overlay-header-extension"></xref>).  It lives in the overlay instance's own
SS_ID space, independent of the base instance's, and the two IDs on one
packet are unrelated numbers.  An overlay source block holds at most
K_overlay overlay source symbols, and overlay blocks, including short
ones, are formed, located and wrapped exactly as base blocks are
(<xref target="MOQ-FEC-CORE"></xref> Sections 5.4,
5.5 and
7.6), with K_overlay as the upper
bound on their SSB_length.  An overlay block that holds the fragments
of several RAPs spans many base blocks, since a RAP and the metadata
that governs it are a small
fraction of the media, and one that the publisher closes once its RAP
has been sent spans little more than that RAP.  Either way the
overlay's recovery latency is its own block span, which the overlay
instance's own <tt>interleaveDepthMs</tt> bounds, and is unrelated to the
base instance's.  An FT=0 or FT=1 member that the overlay recovers
is of use to a receiver only while the receiver still holds the
fragments that member governs unadmitted, within its bounded replay
window (<xref target="overlay-receiver-behavior"></xref>), so a receiver may have to hold
them for up to that span.  The overlay instance's own positive
<tt>interleaveDepthMs</tt>, which <xref target="overlay-instance"></xref> recommends, bounds every
overlay block's send span (<xref target="MOQ-FEC-CORE"></xref> Section 9.3) and so tells a
receiver how long to hold them; a publisher can shorten the span by
closing an overlay block once the last fragment of a covered keyframe
has been emitted (<xref target="MOQ-FEC-CORE"></xref> Section 5.4).</t>
<t>A receiver knows that a source packet is an overlay source symbol
because the packet carries the 0x8B01 header extension
(<xref target="overlay-header-extension"></xref>).  It knows that a repair packet belongs to
the overlay because it arrives on the repair track that the catalog
declares for the overlay instance of this source track, and that track
has its own <tt>packet_id</tt>.  The instance is therefore fixed by the track
the packet arrived on; no field of the repair packet distinguishes the
two, and a receiver does not infer the instance from SS_Start,
RSB_length, or SSB_length, whose values are only interpretable once the
instance is known (<xref target="MOQ-FEC-CORE"></xref> Section
7.5).</t>
</section>

<section anchor="overlay-header-extension"><name>Overlay SS_ID Header Extension</name>
<t>When the catalog declares a keyframe overlay for a source track
(<xref target="keyframe-overlay"></xref>), a source packet of that track that is an overlay
member (<xref target="overlay-membership"></xref>), one carrying a fragment of a Random
Access Point that the overlay covers or an FT=0 or FT=1 data unit that
governs one, is a source symbol of two FEC instances. It
carries its base SS_ID in the one Source FEC Payload ID trailer that
every FEC source packet carries (<xref target="source-fec-payload-id"></xref>), and its
overlay SS_ID (<xref target="overlay-membership"></xref>) in an MMTP header extension
(<xref target="ISO.23008-1"></xref> Clause 9.2.3) of type 0x8B01:</t>

<artwork><![CDATA[Source Packet with Overlay {
  MMTP Packet Header {
    ...,                          # X = 1, RAP_flag = 1
    Header Extension {
      Type (16) = 0x8B01,
      Length (16) = 4,
      Overlay SS_ID (32),
    },
  },
  MMTP Payload (..),
  Source FEC Payload ID (32),     # base instance SS_ID
}
]]></artwork>
<t>A publisher that declares an overlay MUST carry this extension as the
header extension, with X = 1, of exactly the source packets that it
includes in the overlay instance, that is the packets on which it sets
<tt>RAP_flag</tt> (<xref target="overlay-membership"></xref>), and of no other packet of the track.
An MMTP packet carries at most one header extension (<xref target="ISO.23008-1"></xref>
Clause 9.2.3), so the RAP packets of a track under an overlay, its
FT=0 and FT=1 members included, carry no other MMTP header extension,
and a publisher that needs another header extension on those packets
cannot use the overlay for that track.  The extension adds eight octets
to each of them.  An FT=0 or FT=1 data unit is always a single packet
(Section 5.2, item 4) and cannot be fragmented to make room for it, so
a publisher that declares an overlay chooses a <tt>symbolSize</tt> T under
which every FT=0 and FT=1 member, extension included, still fits within
the T - 2 octets that <xref target="iso-ssbg1-v1"></xref> allows a protected packet.
<xref target="ISO.23008-1"></xref> specifies no particular header extension and no registry
of header extension types; this document uses the type 0x8B01 for the
overlay SS_ID (<xref target="iana-considerations"></xref>).</t>
<t>The trailer is never more than one Source FEC Payload ID.  On a packet
with or without the extension, the last four bytes are the base SS_ID,
as <xref target="ISO.23008-1"></xref> Section C.4.2 places it, so a receiver that does not
implement overlays locates the trailer and the payload as on any other
packet, stepping over the extension by its Length field. The extension
lies inside the MMTP packet header, so it is part of the protected
packet of both instances (<xref target="iso-ssbg1-v1"></xref>), which protect one identical
source symbol.  The permission of <xref target="ISO.23008-1"></xref> Clause 9.2.3 to
discard a header extension therefore extends only to a receiver's own
processing: a node that forwards the packet MUST NOT remove or alter the
extension.  A RAP packet recovered by either instance carries its
overlay SS_ID, so a receiver MAY place a RAP packet that the base
instance recovered into the overlay block that the extension locates;
<xref target="iso-ssbg1-v1"></xref> states why the converse requires the packet's base
SS_ID.</t>
<t>A receiver that implements overlays takes a packet's overlay SS_ID from
this extension and from nothing else.  It MUST NOT feed the overlay
decoder a source packet that lacks the extension, whatever its
<tt>RAP_flag</tt>, or one whose extension has a Length other than 4, and MUST
NOT infer an overlay SS_ID from <tt>RAP_flag</tt>, from the packet's position,
or from its base SS_ID.</t>
<t>A source track has at most one overlay (<xref target="overlay-instance"></xref>) because a
source packet has one header extension, and so carries one overlay
SS_ID; relaxing that bound would be a revision of this document and a
change to the source packet layout, not a catalog-only change.</t>
<t>The overlay is declared only by the catalog: Section 8.3 forbids
describing the overlay's repair flow in an AL-FEC message, which
identifies an FEC source flow by packet_id (<xref target="ISO.23008-1"></xref> Clause
C.6.3) and cannot describe the RAP subset that the overlay protects, so
a receiver that consumes the flow without the catalog uses the base
instance alone.  An overlay is defined only without FFSRP_TS: a
publisher MUST NOT declare an overlay for a source track whose FEC
source or repair packets carry FFSRP_TS (ffsrpts_flag = 1,
<xref target="ISO.23008-1"></xref> Section C.5.1), and the extension carries an SS_ID
alone.</t>
<t><xref target="a3sa-signed-region"></xref> applies to the overlay SS_ID as to the base one:
A3SA signing authenticates neither, and a receiver that requires
authenticated block assignment treats each as that section requires.</t>
</section>

<section anchor="overlay-receiver-behavior"><name>Receiver Behavior</name>
<t>A receiver that implements overlays and has joined the overlay repair
track decodes the two instances independently and MAY use the packets
the overlay recovers, the fragments of a Random Access Point that it
covers and the FT=0 and FT=1 data units that govern it
(<xref target="overlay-membership"></xref>), even when the base instance failed to recover
the block that carried them.  Like every recovered packet, they enter
reassembly in serial packet order (Section 5.3.3).  That order puts a
recovered FT=0 or FT=1 data unit before the fragments it governs only
while the receiver still holds those fragments unadmitted: the replay
window of Section 5.3.3 is bounded, the overlay's recovery latency is
its own block span (<xref target="overlay-membership"></xref>), and a fragment that reaches
reassembly before the FT=0 or FT=1 data unit that governs it is
rejected (Section 5.1).</t>
<t>The overlay is the publisher-side half of keyframe protection.  On a
multicast or AMT leg, the receiver-side half is the repair policy of
<xref target="MOQ-FEC-MULTICAST"></xref> Section 6, under which a receiver gives a
keyframe-bearing base block that in-band decoding leaves unrecovered
priority unicast repair; its Section 6.6 states how the two combine.
On any other datagram leg it is the repair of Section 4.3.1.</t>
<t>A receiver that does not implement overlays MUST fail closed on a
catalog that declares one for a track it intends to consume, that is on
an FEC instance carrying the unknown <tt>scope</tt> key, and MUST NOT ignore
the key and consume the source track anyway.  This is an unknown-key
exception that this document defines (<xref target="overlay-instance"></xref>) under
<xref target="MOQ-FEC-CATALOG"></xref> Section 3.4, which lets a block
profile's document define further exceptions: a receiver that ignored
the key could not tell the overlay's repair track from a repair layer of
the base instance, and would feed the base decoder repair symbols of
another FEC instance (<xref target="overlay-membership"></xref>).</t>
<t>This mechanism is not backward compatible with receivers that predate
it, for the same reason.  A publisher that must serve such receivers
publishes the overlay on a separate source track, or does not publish
it.</t>
</section>
</section>

<section anchor="interleaving"><name>Interleaving</name>
<t>Interleaving and typical interleave windows (<tt>interleaveDepthMs</tt>) follow
<xref target="MOQ-FEC-CORE"></xref> Section 9.3.  A positive
<tt>interleaveDepthMs</tt> is the elapsed source/repair send-span bound for
each actual FEC block; it does not select FEC block boundaries, derive a
number of groups per block, or require a fixed relationship between an
FEC block and a media Group.  A typical window for ARIB STD-B60 content
is 2000 ms.  The receiver's block-abandonment timeout -- how long it
waits for a block's source and repair symbols before declaring the block
unrecoverable -- follows the ISO receiver-buffer model <xref target="ISO.23008-1"></xref>
Section 11.2.</t>
<t><xref target="MOQ-FEC-CORE"></xref> Section 10.1 admits a positive
<tt>interleaveDepthMs</tt> and lets a block profile give the value zero a
meaning of its own.  Under this profile the field MAY also be zero.  A
value of zero has the ISO meaning of using <tt>protection_window_size</tt>
instead of a time window (<xref target="ISO.23008-1"></xref> Clause C.6.3); this catalog
profile carries no packet-count window. A catalog-only receiver
therefore MUST NOT treat zero as a zero-duration span or use it to
derive a block count, and has no elapsed-time FEC deadline from this
field.  If an applicable ISO packet-count window is accepted in-band, it
governs separate count-based processing; it does not supply a
millisecond deadline, it is not converted to milliseconds without an
independently defined time mapping, and the receiver MUST NOT assume a
media cadence to convert it.  A publisher uses a zero value only with
that ISO <tt>protection_window_size</tt> alternative.  An absent field supplies
no catalog-signaled span; neither an absent nor a zero value supplies an
elapsed-time deadline.  Without an elapsed-time deadline, open-block
state is bounded only by the local policy of <xref target="MOQ-FEC-CORE"></xref> Section
9.4, and on a multicast or AMT leg the receiver
performs no block classification or unicast repair
(<xref target="MOQ-FEC-MULTICAST"></xref> Section 6) and
keeps its repair-layer selection fixed (its Section
4).</t>
</section>
</section>

<section anchor="fec-parameter-signaling"><name>FEC Parameter Signaling</name>
<t>FEC parameters for mmtp-packaged tracks are signaled in the catalog
<tt>fec</tt> field, whose encoding <xref target="MOQ-FEC-CATALOG"></xref> defines (its Section
3) for the configuration data model of
<xref target="MOQ-FEC-CORE"></xref> Section 10, which is
authoritative for MoQ receivers (that section).  A MoQ receiver requires
no in-session FEC signaling: the catalog carries every FEC parameter it
needs.  This document does not redefine the catalog fields but specifies
MMT-specific considerations for their use.</t>
<t>A publisher MAY also carry the MMTP AL-FEC signaling message of
Section 8.3 on a MoQ mmtp source track, as an object whose payload
is an MMTP signaling packet on packet_id 0 (Section 3.1).  When
present, it is published in Subgroup 0 of an MPU group as the object
immediately before, and in the same subgroup as, that group's FT=0
object, and a group carries at most one such object (Sections 4.2
and 4.3).  On a MoQ
track such an object is a redundant in-band copy of catalog state: the
message MUST NOT signal FEC parameters that contradict the track's
catalog <tt>fec</tt> instances, and where the two disagree the catalog governs,
as <xref target="MOQ-FEC-CORE"></xref> Section 10 requires
of any in-band signaling. The object carries no media data
unit and no repair symbol, so a MoQ receiver MUST NOT deliver it to
a media or repair decoder (Section 3.1); a receiver that does not
process MMTP signaling discards it.</t>
<t>The signaling object is not an FEC source symbol.  Its MMTP packet
has FEC Type 0 and no Source FEC Payload ID; it is not protected by
any repair symbol, is not counted in any FEC block or in
<tt>sourceSymbols</tt> (K), and has no SS_ID and no Encoding Symbol ID.
Because it occupies an Object ID (Object ID 0 of its group,
Section 4.6), Object IDs on an mmtp source track are not positions
in the FEC block: a receiver MUST take each source symbol's SS_ID from
the Source FEC Payload ID that trails its FEC Type 1 packet
(<xref target="source-fec-payload-id"></xref>), never from its Object ID, and places the
symbol in its block by that SS_ID (<xref target="MOQ-FEC-CORE"></xref> Section
5.5).</t>
<t>A MoQ track carries only the
signaling packets its publisher chose to place on that track, so
the packet_sequence_number values it exhibits on packet_id 0 need
not be contiguous.  A receiver MUST NOT infer loss from a
packet_sequence_number gap on packet_id 0 of a MoQ track, and MUST
NOT defer any packet, including a later packet on packet_id 0,
behind such a gap.</t>

<section anchor="mmt-specific-fec-parameters"><name>MMT-Specific FEC Parameters</name>
<t>When used with MMT packaging, the instance parameters of
<xref target="MOQ-FEC-CORE"></xref> Section 10.1, as the catalog
encodes them (<xref target="MOQ-FEC-CATALOG"></xref> Section 3.1),
map as follows:</t>

<ul>
<li><t><strong>scheme</strong>: the scheme identifier (<xref target="MOQ-FEC-BLOCK"></xref> Section 3)
whose <xref target="ISO.23008-10"></xref> code point the
MMTP AL-FEC message carries in <tt>fec_code_id_for_repair_flow</tt> (Section
8.3)</t>
</li>
<li><t><strong>blockProfile</strong>: &quot;iso-ssbg1-v1&quot; (<xref target="iso-ssbg1-v1"></xref>; registered in
<xref target="MOQ-FEC-CORE"></xref> Section 15.3),
the ISO 23008-1 Annex C block profile, for which an AL-FEC message
carries the coding byte 0x14 (Section 8.3); REQUIRED on every FEC
instance, with no default</t>
</li>
<li><t><strong>sourceSymbols</strong>: The largest number of MMTP packets (source symbols)
that an FEC block may hold; each block holds SSB_length of them
(<xref target="MOQ-FEC-CORE"></xref> Section 5.4).  On the
MMT path the canonical FEC source symbol is one whole MMTP packet,
before its Source FEC Payload ID, framed with its length
(<xref target="iso-ssbg1-v1"></xref>)</t>
</li>
<li><t><strong>interleaveDepthMs</strong>: When positive, the elapsed source/repair send
span bound of each actual FEC block, as defined by <xref target="MOQ-FEC-CORE"></xref>
Sections 10.1 and
9.3; <xref target="interleaving"></xref> defines absent and
zero values under this profile.  It is independent of
<tt>groupDurationMs</tt> and does not imply a block count or block boundary
from MoQ Groups.  When ingesting broadcast content, use the ISO
protection-window signaling or a known source/repair send-span bound.
A source-frame count alone does not bound the actual packet send span.</t>
</li>
</ul>
<t>See <xref target="MOQ-FEC-CATALOG"></xref> for the complete catalog field definitions,
<xref target="MOQ-FEC-CORE"></xref> Section 15.2 for the
scheme registry, and <xref target="MOQ-FEC-BLOCK"></xref> for the scheme bounds and the OTI
derivation (its Sections 7 and
6.1).</t>
<t>For FEC block alignment and timing to be deterministic, an mmtp
publisher MUST, in addition to the encoder constraints of
<xref target="MOQ-FEC-CORE"></xref> Section 5.3:</t>

<ol>
<li><t>Signal the catalog-authored group duration and frame rate in the MoQ
catalog: publish a positive duration as <tt>groupDurationMs</tt> when its
integer-millisecond form is exact, or as the exact positive
<tt>groupDurationTicks</tt>; when both are present, <tt>groupDurationTicks</tt>
wins and <tt>groupDurationMs</tt> is informational.  Signal the keyframe
interval in <tt>keyframeIntervalMs</tt> (or <tt>keyframeIntervalTicks</tt>) where
Section 4.4.3 permits one, and the frame rate in the <tt>framerate</tt>
field (Sections 4.4.2, 4.4.3 and 13.1).
The ISO 23008-1 AL-FEC message has no field for either value
(<xref target="ISO.23008-1"></xref> Table C.3), so an encoder signals neither there, and
a receiver takes neither from it.</t>
</li>
<li><t>If frame rate or GOP size changes mid-session, update the MoQ catalog
and signal a manifest discontinuity for DASH/HLS.  On a track of a
mixed-interval switching set neither changes: the publisher ends
the track (Section 4.4.2, item 5).</t>
</li>
<li><t>When <tt>interleaveDepthMs</tt> is positive, choose it so that the actual
elapsed send span from the first source or repair packet of every
block to its last does not exceed the signaled value.  A zero value
is usable only with the ISO <tt>protection_window_size</tt> alternative of
<xref target="interleaving"></xref>.  A value computed from a group count, frame count,
or per-symbol interval does not by itself bound the send span; a
publisher that computes it that way, for example from the cadence
at which it closes blocks, keeps it as a bound by closing a block
early and by starting no repair symbol it cannot send within it
(<xref target="MOQ-FEC-CORE"></xref> Sections 5.4 and 9.3).</t>
</li>
</ol>
</section>

<section anchor="repair-tracks"><name>Repair Tracks</name>
<t>A source track's repair tracks are the track that each of its FEC
instances names in <tt>repairTrack</tt> and the tracks that name it in <tt>source</tt>
(<xref target="MOQ-FEC-CATALOG"></xref> Section 3.2; <xref target="MOQ-FEC-CORE"></xref>
Section 10.2);
<xref target="MOQ-FEC-CATALOG"></xref> Section 6 gives their
conventional names.  Subscription to them follows <xref target="MOQ-FEC-CORE"></xref>
Section 7.2, and their priorities its Section
11.</t>
</section>

<section anchor="al-fec-message"><name>FEC Signaling for Multicast Delivery</name>
<t>For SSM and Any-Source Multicast (ASM) delivery there is no
bidirectional signaling channel.  FEC parameters reach multicast
receivers via:</t>

<ol>
<li><t><strong>MoQ Catalog Extension</strong> (authoritative for MoQ receivers,
<xref target="MOQ-FEC-CORE"></xref> Section 10):
out-of-band delivery in the catalog <tt>fec</tt> field (see the worked
catalog of <xref target="MOQ-FEC-CATALOG"></xref> Appendix A).</t>
</li>
<li><t><strong>MMTP AL-FEC Signaling (message_id=0x0203)</strong>: in-band delivery
of the AL-FEC message of <xref target="ISO.23008-1"></xref> Clause C.6, with
Table C.3 as replaced by <xref target="ISO.23008-1.AMD1"></xref>,
for ISO/IEC 23008-1 receivers that consume the flow without the
catalog, such as native broadcast (ATSC 3.0, ARIB STD-B60)
receivers.  A publisher that sends this message MUST carry it in
an MMTP signaling packet (packet type 0x02) on packet_id 0, the
MMTP signaling flow, after the signaling message payload header of
<xref target="ISO.23008-1"></xref> Clause 9.3.4.2 (Section 3.1); on
multicast delivery it shares the multicast group of the media it
describes, and on MoQ delivery it MAY be carried as an object of an
mmtp source track under the rules of Section 8.  No track is
advertised on packet_id 0
(<xref target="MOQ-MULTICAST"></xref> Section 4.1),
and a receiver does not deliver
these packets to a media or repair decoder (Section 3.1;
<xref target="MOQ-MULTICAST"></xref> Section 5)</t>
</li>
</ol>
<t>Each FEC source flow has one FEC encoded flow (<xref target="ISO.23008-1"></xref>
Clause C.6.3), so the message describes a source track's flow as one
entry of the message's <tt>fec_flow_descriptor</tt> naming exactly one repair
flow, the track's layer-0 repair track (<xref target="MOQ-FEC-CORE"></xref> Section
7.3).  For a track whose instance's <tt>blockProfile</tt> is
&quot;iso-ssbg1-v1&quot;, that entry carries:</t>

<ul spacing="compact">
<li>a <tt>number_of_assets</tt> of 1, the one Asset it lists being the source
track's, the Asset whose packet_id is the track's: an FEC source
flow of <xref target="ISO.23008-1"></xref> may carry the packets of several Assets
(its Clause C.1), where an FEC instance of <xref target="MOQ-FEC-CORE"></xref>
protects one source track (its Section 5.1);</li>
<li>the coding byte 0x14, that is <tt>fec_coding_structure</tt> 0001
(one-stage), <tt>ssbg_mode</tt> 01, <tt>ffsrpts_flag</tt> 0 and
<tt>fec_payload_id_mode</tt> 0 (<xref target="iso-ssbg1-v1"></xref>);</li>
<li>as its <tt>fec_code_id_for_repair_flow</tt>, the code point that
<xref target="ISO.23008-10"></xref> Table 1 assigns to the code that the instance's
<tt>scheme</tt> names (<xref target="MOQ-FEC-BLOCK"></xref> Section
3): 3, the &quot;6330 code&quot; (RaptorQ), for
&quot;raptorq&quot;, and 1, the Reed-Solomon code, for &quot;reed-solomon&quot;;</li>
<li>as its <tt>repair_flow_id</tt>, the packet_id of the layer-0 repair
packets.  <xref target="ISO.23008-1.AMD1"></xref> makes this field 16 bits in the
one-stage branch, where the 2023 edition of Table C.3 gives it 8
bits and so cannot name a repair packet_id above 255;</li>
<li>as its <tt>length_of_repair_symbol</tt>, the instance's <tt>symbolSize</tt> (T), the
byte length of every repair symbol and, under ssbg_mode1, of every
source symbol (<xref target="MOQ-FEC-CORE"></xref> Section 10.1;
<xref target="iso-ssbg1-v1"></xref> and <xref target="repair-packet"></xref>).  The entry carries no
<tt>num_of_repair_symbol_per_packet</tt> and no
<tt>num_of_symbol_element_per_source_symbol</tt>: Table C.3 places both
inside its <tt>ssbg_mode == 10</tt> branch, so under ssbg_mode1 neither is
on the wire, and the one repair symbol each repair packet carries
(<xref target="repair-packet"></xref>; <xref target="MOQ-FEC-CORE"></xref> Section 7.5) follows from the
profile rather than from the message;</li>
<li>as its <tt>maximum_k_for_repair_flow</tt>, the instance's <tt>sourceSymbols</tt>:
like that field, it bounds each block's SSB_length and is not the size
of any particular block (<xref target="MOQ-FEC-CORE"></xref> Section
5.4); and</li>
<li>as its <tt>maximum_p_for_repair_flow</tt>, the RSB_length that every
repair packet of the track's FEC instance carries: the total
repair count over the published layers, which is the instance's
<tt>repairSymbols</tt> while layer 0 is the only published layer
(<xref target="MOQ-FEC-CORE"></xref> Section 7.3.1).  A
publisher that appends a layer (<xref target="MOQ-FEC-CORE"></xref> Section
7.3.2) raises that total and sends a new
version of the message carrying it only after the last repair packet
generated under the previous total, of whichever block: a block's
RSB_length is the total in force when its repair symbols were
generated (<xref target="MOQ-FEC-CORE"></xref> Section 7.5), so
every repair packet
sent after the new version carries a value no lower than the
field it names.  The path keeps no order between the message, on
<tt>packet_id</tt> 0, and the repair flow (Section 5.2.2), so a receiver
of both can take a packet generated under the previous total
after the new version; the blocks generated under the raised
total follow every block generated under the previous one in the
serial order of their SS_Start (<xref target="MOQ-FEC-CORE"></xref> Section
7.6), as its Section
7.3.2 requires of the publisher, which the
conversion rule of Section 13.2 relies on instead.</li>
</ul>
<t>A receiver that holds layer 0 under the AL-FEC message alone, without
the catalog (<xref target="atsc-compatibility"></xref>), applies the fail-closed check of
<xref target="MOQ-FEC-CORE"></xref> Section 7.3.2 with
<tt>maximum_p_for_repair_flow</tt> standing for its O_0 + P_0, by that check's
anchored clause alone: layer 0 has no clause of its own track, its O_0
being 0 and its symbols' coordinates depending on no published count, so
a packet of the flow generated under a previous total, which the message
can precede (above), fails it closed on nothing.</t>
<t>Layered repair is an extension of <xref target="ISO.23008-1"></xref> that an ISO AL-FEC
message cannot express: each FEC source flow has one FEC encoded flow,
whose one-stage coding structure carries a single <tt>repair_flow_id</tt>
(<xref target="ISO.23008-1"></xref> Clause C.6.3), so only layer 0 maps to an ISO repair
flow.  A repair layer is also unrelated to the layers of ISO layer-aware
FEC (LA-FEC, Clause C.2.3).  A publisher MUST NOT describe a repair
layer above layer 0, or a keyframe overlay, in the message, whether in
that entry or in an entry of its own: the one-stage coding structure
names one repair flow per FEC encoded flow, the overlay protects a RAP
subset that no <tt>packet_id</tt> identifies, and only the catalog declares
either (<xref target="MOQ-FEC-CORE"></xref> Section 7.3;
<xref target="keyframe-overlay"></xref> and <xref target="overlay-header-extension"></xref>).</t>
</section>
</section>

<section anchor="multicast-integration"><name>Multicast Integration</name>
<t>MMT content can be delivered via IP multicast (SSM, AMT) and TreeDN
<xref target="RFC9706"></xref>.  Platform-specific delivery paths, the
multicast endpoint catalog extension, and TreeDN/AMT integration are
defined in <xref target="MOQ-MULTICAST"></xref>, and the multicast packet format in its
Section 5.</t>
</section>

<section anchor="atsc-compatibility"><name>ATSC 3.0 Compatibility</name>
<t>This specification is designed for interoperability with the
Application-Layer FEC of ATSC A/331 <xref target="ATSC-A331"></xref> MMTP sessions.
<xref target="ATSC-A331"></xref> applies AL-FEC to an MMTP session, when it applies it at
all, through the AL-FEC framework of <xref target="ISO.23008-1"></xref> Annex C and
requires no FEC code of its own (its Section 8.1.2.5): the framework
carries whichever code the AL-FEC message names by its <xref target="ISO.23008-10"></xref>
code point.  The codes are those of <xref target="MOQ-FEC-BLOCK"></xref>, which specifies
two, &quot;reed-solomon&quot; (code point 1, mandatory to implement) and &quot;raptorq&quot;
(code point 3, OPTIONAL) (its Sections 3 and
10); Section 8.3 gives the AL-FEC message
a publisher sends for a track of either, and an MMTP session whose
AL-FEC message names any other code is outside this document and its
companions until a scheme registered in the &quot;MoQ FEC Schemes&quot; registry
of <xref target="MOQ-FEC-CORE"></xref> Section 15.2 is specified for that code point.  A
publisher
that ingests an A/331 MMTP session takes the FEC parameters of its
tracks from that message and the asset locations of the MP table
(Section 13.2), and a receiver that consumes the session without the
catalog takes them from the message alone, holding the one repair flow
as layer 0 under the block total the message bounds, as Section 8.3
specifies.  An MMTP session carries no <xref target="RFC6330"></xref> OTI: the derived OTI
of <xref target="MOQ-FEC-BLOCK"></xref> Section 6.1 fixes N = 1, and
sub-blocks are never used (<xref target="iso-ssbg1-v1"></xref>).  ROUTE delivery, whose
repair protocol (Annex A.4 of <xref target="ATSC-A331"></xref>) is RaptorQ-based, is
outside the scope of this document.</t>
</section>

<section anchor="arib-compatibility"><name>ARIB STD-B60 Compatibility</name>
<t>ARIB STD-B60 <xref target="ARIB-B60"></xref> (Japan's MMT-based broadcasting standard)
uses the same ISO 23008-1 foundation as ATSC 3.0.  Publishers SHOULD
preserve the original FEC parameters when ingesting ARIB STD-B60
content.</t>

<section anchor="clock-reference"><name>Clock Reference</name>
<t>ARIB STD-B60 uses the MMTP Timestamp of Section 3.1: the UTC send
time of the packet in NTP short format.</t>
</section>
</section>

<section anchor="transport-hierarchy"><name>Transport Hierarchy</name>
<t>Clients SHOULD attempt transports in the preference order that
<xref target="MOQ-MULTICAST"></xref> Section 3 defines for native and browser clients.
AL-FEC (Section 7) is the loss recovery on a datagram leg (Section 2),
which has no retransmission over UDP or QUIC.</t>
</section>

<section anchor="catalog-signaling"><name>Catalog Signaling</name>
<t>The MoQ catalog indicates MMT packaging and multicast endpoints.</t>
<t>The catalog of this suite is an MSF catalog: the root object and its
fields (<tt>version</tt>, <tt>generatedAt</tt>, <tt>tracks</tt>, ...), the requirement that
parsers ignore fields they do not understand, and the base per-track
fields are those of <xref target="I-D.ietf-moq-msf"></xref> Section 5.  The catalog is
delivered as a MoQ track whose case-sensitive Track Name is <tt>catalog</tt>
(<xref target="I-D.ietf-moq-msf"></xref> Section 5).  The documents of this suite extend
the base in the same manner as <xref target="I-D.ietf-moq-cmsf"></xref> extends it: this
document adds the packaging value <tt>mmtp</tt> and the mmtp track fields
(Section 13.1), <xref target="MOQ-FEC-CATALOG"></xref> adds the per-track <tt>fec</tt> array of
FEC instances and the <tt>fec-repair</tt> and <tt>fec-source</tt> packaging values
(its Sections 3 and
3.3), and <xref target="MOQ-MULTICAST"></xref> adds the root-level
<tt>multicast</tt> member.  Every catalog field this suite uses is defined
either by <xref target="I-D.ietf-moq-msf"></xref> or locally by a document of this suite
(with <tt>cmaf</tt> tracks per <xref target="I-D.ietf-moq-cmsf"></xref>); no field is defined by
any other catalog specification.</t>

<section anchor="packaging-value-and-track-fields"><name>Packaging Value and Track Fields</name>
<t>This document defines a single packaging value:</t>

<artwork><![CDATA[packaging: "mmtp"
]]></artwork>
<t>carried in the per-track <tt>packaging</tt> field of the catalog
(<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.4).  The value extends the
allowed packaging values of that specification in the same manner
as the <tt>cmaf</tt> value of <xref target="I-D.ietf-moq-cmsf"></xref> Section 3.5.1; see
Section 15 for the registry request.  Object payloads of an
mmtp-packaged track are whole MMTP packets per Section 4.2.</t>
<t>Per-track catalog fields for mmtp packaging:</t>
<table>
<thead>
<tr>
<th>Field</th>
<th>Status</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>

<tbody>
<tr>
<td><tt>packaging</tt></td>
<td>REQUIRED</td>
<td>String</td>
<td>MUST be &quot;mmtp&quot;</td>
</tr>

<tr>
<td><tt>mmtpMode</tt></td>
<td>REQUIRED</td>
<td>String</td>
<td>&quot;mfu&quot; or &quot;mfu-datagram&quot; (Sections 4.3, 4.3.1 and 5); defined by this document</td>
</tr>

<tr>
<td><tt>timescale</tt></td>
<td>REQUIRED</td>
<td>Number</td>
<td>Media timescale in Hz (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.22, profiled REQUIRED here; Section 4.4.2)</td>
</tr>

<tr>
<td><tt>presentationAnchorTicks</tt></td>
<td>REQUIRED for synchronized audio/video tracks</td>
<td>Signed integer</td>
<td>Track timestamp corresponding to shared presentation time zero (Section 4.4.1); defined by this document</td>
</tr>

<tr>
<td><tt>groupDurationMs</tt></td>
<td>Conditional</td>
<td>Number</td>
<td>REQUIRED without the tick form; positive integer ms (Section 4.4.2); informational when ticks are present</td>
</tr>

<tr>
<td><tt>groupDurationTicks</tt></td>
<td>OPTIONAL</td>
<td>Number</td>
<td>Positive exact group duration in track ticks; authoritative when present (Section 4.4.2); defined by this document</td>
</tr>

<tr>
<td><tt>altGroup</tt></td>
<td>OPTIONAL</td>
<td>Number</td>
<td>Switching-set membership key (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.13, profiled in Section 4.4)</td>
</tr>

<tr>
<td><tt>keyframeSpacing</tt></td>
<td>Conditional</td>
<td>Number</td>
<td>Samples in each group (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.46, profiled in Section 4.4.2); REQUIRED on every track of a mixed-interval switching set, where its absence is a switching-set disagreement (Section 4.4.2) and not a missing per-track field; not carried on any other mmtp track</td>
</tr>

<tr>
<td><tt>keyframeIntervalMs</tt></td>
<td>OPTIONAL</td>
<td>Number</td>
<td>Keyframe cadence, integer ms; video only; never shorter than the group duration, and equal to it where every keyframe begins a group (Section 4.4.3); defined by this document</td>
</tr>

<tr>
<td><tt>keyframeIntervalTicks</tt></td>
<td>OPTIONAL</td>
<td>Number</td>
<td>Integer-tick override for the keyframe interval (Section 4.4.3); defined by this document</td>
</tr>

<tr>
<td><tt>initRef</tt></td>
<td>OPTIONAL</td>
<td>String</td>
<td><tt>id</tt> of the root <tt>initDataList</tt> entry, of type &quot;inline&quot;, that holds the base64 ftyp+moov init segment (<xref target="I-D.ietf-moq-msf"></xref> Sections 5.1.7 and 5.2.14, profiled in Section 4.5)</td>
</tr>

<tr>
<td><tt>fec</tt></td>
<td>OPTIONAL</td>
<td>Array</td>
<td>FEC instances, encoded per <xref target="MOQ-FEC-CATALOG"></xref> Section 3 (Section 8)</td>
</tr>
</tbody>
</table><t>All other base track fields of <xref target="I-D.ietf-moq-msf"></xref> Section 5.2
apply unchanged.  In particular <tt>name</tt> and the selection
properties -- <tt>codec</tt> (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.19; required
for media tracks per that section), <tt>framerate</tt>, <tt>width</tt>, <tt>height</tt>,
<tt>samplerate</tt>, <tt>channelConfig</tt>, <tt>bitrate</tt>, and <tt>lang</tt> -- are flat,
top-level fields of the track object.</t>
<t><tt>mmtpMode</tt> selects the object layout and delivery mode and MUST be
&quot;mfu&quot; or &quot;mfu-datagram&quot;.  &quot;mfu&quot; delivers one subgroup per FT=0, FT=1,
or FT=2 data unit as defined in Sections 4.3 and 5.  &quot;mfu-datagram&quot;
delivers the same objects, each as a datagram (Section 4.3.1).  A
subscriber MUST reject a track whose <tt>mmtpMode</tt> is absent or is a
value that it does not implement; the object layout cannot be
inferred safely from received objects.  A publisher of an
&quot;mfu-datagram&quot; track SHOULD give each FEC instance of that track a
positive <tt>interleaveDepthMs</tt> close to the send span that it keeps: a
receiver decides from it whether to take the track and when to leave
it (Section 4.3.1), and cannot assume less than the signaled value.</t>
<t>Example, with the <tt>data</tt> value shortened:</t>

<sourcecode type="json"><![CDATA[{
  "version": "draft-02",
  "tracks": [{
    "name": "video",
    "packaging": "mmtp",
    "isLive": true,
    "mmtpMode": "mfu",
    "timescale": 90000,
    "presentationAnchorTicks": 0,
    "groupDurationMs": 1000,
    "codec": "avc1.640028",
    "width": 1920,
    "height": 1080,
    "framerate": 30,
    "bitrate": 6000000,
    "initRef": "video-init"
  }],
  "initDataList": [{
    "id": "video-init",
    "type": "inline",
    "data": "AAAAIGZ0eXBpc29t..."
  }]
}
]]></sourcecode>
</section>

<section anchor="mmtp-signaling-to-moq-catalog-conversion"><name>MMTP Signaling to MoQ Catalog Conversion</name>
<t>This section is informative: it documents how a converter that
ingests an MMTP broadcast service, an ATSC 3.0 MMTP session
(<xref target="ATSC-A331"></xref> Section 8.1.2.1) or an ARIB STD-B60 service, derives a
MoQ catalog from the MMT signaling, and imposes no interoperability
requirements on MoQ publishers or subscribers.  A converter's output
catalog is subject to the normative catalog requirements of
Section 13.1 like any other catalog.  The MP table gives the
location of each Asset (<xref target="ISO.23008-1"></xref> Clause 10.3.9) and the
AL-FEC message the FEC parameters of each protected flow
(<xref target="ISO.23008-1"></xref> Annex C.6; Section 8.3 gives the fields a MoQ
publisher sets, which a converter reads back).</t>
<t>The <tt>multicast</tt> field in the output uses the multicast endpoint
format of <xref target="MOQ-MULTICAST"></xref> Section
4.1.  Conversion rules:</t>

<ul spacing="compact">
<li>each MMTP session the MP table locates by its source address,
destination address and destination port -&gt; one
<tt>multicast.endpoints[]</tt> entry (<tt>sourceAddress</tt>, <tt>groupAddress</tt>,
<tt>port</tt>), and the Assets it carries -&gt; that endpoint's <tt>tracks[]</tt></li>
<li>each Asset -&gt; a track whose <tt>packetId</tt> is the Asset's packet_id,
unique within the session (<xref target="ATSC-A331"></xref> Section 8.1.2.1.1) and
carried by every packet of the flow, so a converter cannot renumber
it.  <xref target="MOQ-MULTICAST"></xref> Section 4.1
requires each <tt>packetId</tt> value to
denote one sub-flow across all endpoints of a sending entity and
reserves 0 for the signaling flow, so a converter publishes
sessions whose packet_ids collide under different namespaces, and
never advertises a track on packet_id 0</li>
<li>the AL-FEC message's entry for a flow -&gt; the track's FEC instance
(instance 0, encoded as <xref target="MOQ-FEC-CATALOG"></xref> Section
3.1 specifies): <tt>scheme</tt> from
<tt>fec_code_id_for_repair_flow</tt>, &quot;reed-solomon&quot; for code point 1 and
&quot;raptorq&quot; for 3 (<xref target="MOQ-FEC-BLOCK"></xref> Section
3), <tt>symbolSize</tt> (T) from
<tt>length_of_repair_symbol</tt>, <tt>sourceSymbols</tt> (K) from
<tt>maximum_k_for_repair_flow</tt>, <tt>repairSymbols</tt> (P) from
<tt>maximum_p_for_repair_flow</tt>, and a repair track, named in
<tt>repairTrack</tt>, whose <tt>packetId</tt> is the packet_id that <tt>repair_flow_id</tt>
names (Section 8.3).  The converter accepts an
entry whose <tt>number_of_assets</tt> is 1, whose coding byte is 0x14 and
whose <tt>fec_code_id_for_repair_flow</tt> is 1 or 3: a source flow of
several Assets (<xref target="ISO.23008-1"></xref> Clause C.1) is one block sequence
over the packets of several packet_ids, which no FEC instance of
<xref target="MOQ-FEC-CORE"></xref> protects (its Section 5.1 protects
one source track), a flow under any other coding structure,
<tt>ssbg_mode</tt>, FFSRP_TS or FEC payload ID mode is not one that
&quot;iso-ssbg1-v1&quot; describes (<xref target="iso-ssbg1-v1"></xref>), a session whose message
names any other code is outside this document and its companions until
a scheme registered in the &quot;MoQ FEC Schemes&quot; registry of
<xref target="MOQ-FEC-CORE"></xref> Section 15.2 is specified for that code point
(<xref target="atsc-compatibility"></xref>), and the conversion of such a flow fails. The
one
repair flow the
one-stage entry names is the track's layer 0, and
<tt>maximum_p_for_repair_flow</tt> is its P while layer 0 is the only
published layer, as in a one-stage session of <xref target="ISO.23008-1"></xref>,
whose one repair flow carries the block's whole repair count.
That field bounds the repair count of a block (<xref target="ISO.23008-1"></xref>
Clause C.6.3: the maximum allowed number of repair symbols in a
repair symbol block) where &quot;iso-ssbg1-v1&quot; carries P as the RSB_length
of every repair packet (<xref target="repair-packet"></xref>; <xref target="MOQ-FEC-CORE"></xref> Section
7.5), on
which every receiver holding the highest layer the converter lists
(below) fails closed when a packet of that layer, where it is
above 0, or of a block at or after (in the serial order of
<xref target="MOQ-FEC-CORE"></xref> Section 7.6) one
of which it has received a repair
packet carrying at least the value, carries less than the
O_i + P_i its catalog derives for that layer, the field itself
(its Section 7.3.2), so
the converter, which receives the flow's repair packets before it
lists the repair track (below), lists it only once it has received
a repair packet of the flow carrying an RSB_length of at least the
field of the version it holds, and fails the conversion of a flow
whose repair packets carry an RSB_length below that field on a
block at or after, in the serial order of their SS_Start
(<xref target="MOQ-FEC-CORE"></xref> Section 7.6),
one of which it has received a repair packet carrying at least the
field: such a flow is not one
&quot;iso-ssbg1-v1&quot; describes.  A block before that one whose repair
packets carry less was generated under the previous total, after
whose last repair packet a publisher that appends a layer sends
the raised field (Section 8.3) but which the path, keeping no
order between the message and the repair flow (Section 5.2.2),
can deliver after it; and a flow no block of which carries at
least the field is one the converter never lists.  Such a packet
of an earlier block, below the <tt>repairSymbols</tt> the catalog gives
layer 0 (below) where the layers the converter lists above 0 count
less than the appended one, fails a receiver of the catalog closed
on nothing: the clause of <xref target="MOQ-FEC-CORE"></xref> Section
7.3.2 for a packet of a layer's own track
applies to layers above 0 alone, layer 0's
coordinates depending on no count, and its anchored clause, which
anchors a held layer on a block of which the receiver has received
a repair packet carrying at least that layer's O_i + P_i, for
layer 0 its <tt>repairSymbols</tt> (the field where the converter lists
none above 0), treats such a packet as the conforming packet it
is, every block generated under a total below a layer's O_i + P_i
preceding, in the serial order of its Section
7.6, every block generated under
one at or above it (its Section 7.3.2, which
has
a publisher apply a raised total from a block onward in that order
and lower none), on the repair track the
converter publishes as on the session's own endpoint, which
carries the sender's packets and from which the converter
withholds nothing.
An RSB_length above the
field is the append case of the next sentence.  A
MoQ publisher that appended a layer (<xref target="MOQ-FEC-CORE"></xref> Section
7.3.2) sends the raised total in that field
(Section 8.3) while the named flow carries only the P_0 symbols of
each block (<xref target="MOQ-FEC-CORE"></xref> Section 7.3.1),
and neither the message nor the MP table describes
the layers above, so the converter sets <tt>repairSymbols</tt> to
<tt>maximum_p_for_repair_flow</tt> less the <tt>repairSymbols</tt> of every
layer above 0 that it lists, and lists a layer it learns from
provisioning only where provisioning places it, with every other
layer it lists, above every layer it does not list, the topmost
layers of the publisher's set: layer 0's <tt>repairSymbols</tt> is then
the publisher's total below the lowest layer it lists above 0 (the
whole field where it lists none) and each listed layer's O_i
(<xref target="MOQ-FEC-CORE"></xref> Section 7.3.1) is the
publisher's, while listing a
layer above which lies one the converter does not list would give
it an O_i that is not the publisher's, which no check detects, and
an O_i + P_i that its own-track packets generated before the
append of the layer it does not list fall below (its Section
7.3.2).  One that lists none publishes the
whole field, which
overstates layer 0's count, and the loss tolerance a receiver
derives from it, by the layers it does not list.  The converter
keeps the <tt>repairSymbols</tt> it first
published for a track, and those of every layer it has listed,
for as long as it publishes the track: a later version of the
message that raises <tt>maximum_p_for_repair_flow</tt> changes nothing in
its catalog by itself, since <xref target="MOQ-FEC-CORE"></xref> Section
7.3.2 forbids
changing the <tt>repairSymbols</tt> of a published layer while any
receiver may still be consuming the source track, and says that a
receiver reading the smaller bound excludes only symbols of layers
it has not joined.  A layer above 0 that the converter learns from
provisioning after it published the track, one that provisioning
places next above the highest layer the converter lists, the
publisher having appended it after the converter read the field
with no layer the converter has not learned below it, so that its
O_i, the total of every layer below it (<xref target="MOQ-FEC-CORE"></xref> Section
7.3.1), is the total the catalog derives for
the highest layer
listed before it, layer 0's <tt>repairSymbols</tt> plus those of every
layer above 0 listed before it, and the field of the version it
holds has risen by at least that layer's <tt>repairSymbols</tt>, it
appends at the next index (its Section
7.3.2): its symbols' RS_IDs
run upward from that total, and its O_i + P_i is at most the
field, which every block generated under the raised total carries.
The field's rise alone places no layer, a field risen by more than
a layer's <tt>repairSymbols</tt> counting a layer the converter has not
learned, which can lie below the learned one.  A layer that
provisioning does not so place, or whose symbols the field the
converter first read already counted, it lists only by retiring
the source encoding and publishing the source track and its repair
tracks as a new source encoding that lists it, since appending it
would give it an O_i that is not the publisher's, which no check
detects, or an O_i + P_i above the wire RSB_length, on which every
receiver joining it fails closed (that section), while lowering
layer 0's <tt>repairSymbols</tt> to fit it is the change that section
forbids.  A
later version that lowers <tt>maximum_p_for_repair_flow</tt> below the
total its catalog derives for the highest layer it lists, layer
0's <tt>repairSymbols</tt> plus those of every layer above 0 it lists, is
a change that section lets no publisher make, on which a receiver
holding the highest layer it lists fails closed on the first
packet of that layer, where it is above 0, or of a block at or
after, in that serial order, one of which it has received a repair
packet carrying at least that total, whose RSB_length falls below
the O_i + P_i its catalog derives for that layer, which is that
total, and one that no such packet reaches, the check anchored on
no block it received or, holding that layer alone, reached by no
repair packet after the change, learns of the change only at the
next catalog refresh (that section), so the
converter
retires the source encoding and
publishes the source track and its repair tracks as a new source
encoding carrying the lowered value, as that section has a
publisher that must retire a layer do; a repair packet whose
RSB_length falls below that total once the track is published, on
a block at or after, in that serial order, one of which it has
received a repair packet carrying at least that total, is the same
violation and has the converter retire the source encoding in the
same way, the new source encoding listing the repair track as the
first listing did, once a repair packet of the flow received after
that one carries at least the field of the version it then holds,
as the violating packet, below the field of the version held when
it arrived, did not.  The
conversion
of a flow fails where the FEC instance it would yield fails a rule of
<xref target="MOQ-FEC-CORE"></xref> Sections 10.1 and
10.3, or of <xref target="MOQ-FEC-CATALOG"></xref> Section
5, on which a receiver fails closed: a
<tt>maximum_p_for_repair_flow</tt> of 0 names no repair flow a catalog can
publish (<xref target="MOQ-FEC-CORE"></xref> Section 10.1
requires a <tt>repairSymbols</tt> of at least 1), a
<tt>maximum_k_for_repair_flow</tt> of 0 names no block (a <tt>sourceSymbols</tt> of
at least 1), and a <tt>length_of_repair_symbol</tt> below 14 names a symbol
that protects no MMTP packet under the T - 2 construction of
<xref target="iso-ssbg1-v1"></xref>, whose protected packet begins with the 12-octet MMTP
packet header of Section 3.1 (a <tt>symbolSize</tt> of at least 14 under
&quot;iso-ssbg1-v1&quot;); an entry that names code point 3 with a
<tt>length_of_repair_symbol</tt> that is not a multiple of 8 names a T no
&quot;raptorq&quot; track can carry (<xref target="MOQ-FEC-BLOCK"></xref> Section
6.1 fixes the Symbol Alignment at 8, which an MMTP
session, carrying no OTI, does not impose on its symbol length), one
with <tt>maximum_k_for_repair_flow</tt> above 56403 fails the RaptorQ bound
of <xref target="MOQ-FEC-BLOCK"></xref> Section 7, and one with
<tt>maximum_k_for_repair_flow</tt> plus <tt>maximum_p_for_repair_flow</tt> above
2^24 names an ESI no instance can produce (<xref target="MOQ-FEC-CORE"></xref> Section
10.3 bounds K + totalP - 1 by 2^24 - 1, a sum the two
24-bit fields can exceed); and an entry that names code point 1 with
<tt>maximum_k_for_repair_flow</tt> plus <tt>maximum_p_for_repair_flow</tt> above 255
names a block no &quot;reed-solomon&quot; instance can hold (the Reed-Solomon
bound of <xref target="MOQ-FEC-BLOCK"></xref> Section 7, which
bounds K plus the repair count of every layer).  The
conversion also fails for a flow whose <tt>repair_flow_id</tt> is 0, the
signaling flow (Section 3.1), the flow's own packet_id, or the
packet_id of another track of the session, a value that
<xref target="MOQ-MULTICAST"></xref> Section 4.1
requires to denote one sub-flow (a
repair flow carries a packet_id of its own, <xref target="ISO.23008-1"></xref>
Clause C.6.3), and for the flows of any two entries that name one
<tt>repair_flow_id</tt> or list one Asset: two source tracks naming one
repair track, or two base instances for one track, are shapes no FEC
instance of <xref target="MOQ-FEC-CORE"></xref> has, a repair packet belonging to the
instance that the configuration relates to the track it arrived on
(its Sections 5.1 and
7.5).  The
message names the repair flow
by packet_id without a location, and the MP table does not list it
(<xref target="MOQ-MULTICAST"></xref> Section 5),
so the converter lists the repair
track in the <tt>tracks[]</tt> of each endpoint on whose session it
receives packets of that packet_id, which is where a receiver
without the catalog finds them; a repair-only endpoint
(<xref target="MOQ-FEC-MULTICAST"></xref> Section 4) is one
the converter learns from provisioning, not from the signaling</li>
<li>the instance's <tt>interleaveDepthMs</tt>, the ISO protection-window send
span from
the first source or repair packet to the last: set only when the
AL-FEC message's <tt>protection_window_time</tt> or an independently known
source/repair send schedule supplies that span, as a positive
integer millisecond upper bound that covers the complete span,
never rounded down; when the span is unknown, or the message
signals zero (the size-based case), the converter omits it</li>
<li>a live service -&gt; <tt>isLive</tt> = true (<xref target="I-D.ietf-moq-msf"></xref>
Section 5.2.8) on each media track and on its repair track, which
the converter publishes while it ingests the service</li>
<li>the source composition/edit-list origin for each synchronized media
track -&gt; <tt>presentationAnchorTicks</tt>; a converter preserves one
common presentation origin across audio and video, and does not
emit zero merely because the source offset was unavailable</li>
<li><tt>bitrate</tt> (<xref target="I-D.ietf-moq-msf"></xref> Section 5.2.23) from whatever
signaling carries it, or from another source, or the conversion of
that track fails</li>
</ul>
<t>Flows sharing one (sourceAddress, groupAddress, port) tuple collapse
into a single endpoint whose <tt>tracks[]</tt> array lists them all.  MMT
signaling carries no <tt>networkSource</tt> (<xref target="MOQ-MULTICAST"></xref> Section
4.2).
A converter that adds an AMT network source advertises &quot;driad&quot;
discovery only for a source address whose reverse DNS zone carries an
AMT relay record, and otherwise names a relay service hostname in
<tt>relay</tt> with &quot;dns&quot; discovery (<xref target="MOQ-MULTICAST"></xref> Section
4.2.1).</t>
<t><tt>timescale</tt>, the group-duration field and <tt>mmtpMode</tt> are required
fields (Section 13.1).  The converter takes <tt>timescale</tt> from
<tt>asset_timescale</tt> in the MP table when <tt>asset_timescale_flag</tt> is 1,
and uses 90 000 Hz when that flag is 0, as specified by
<xref target="ISO.23008-1"></xref> Clause 10.3.9.3.  For each timed
Asset, it obtains the presentation time of each MPU's first AU in
presentation order from the PI document when PI is present;
ISO/IEC 23008-1 Clause 10.5.2.1 says that the MPU timestamp
descriptor is ignored in that case.  Otherwise it decodes each
descriptor's 64-bit NTP <tt>mpu_presentation_time</tt> value
(<xref target="ISO.23008-1"></xref> Clause 10.5.2) and does not treat the encoded NTP
integer as a media tick count.  It converts those presentation
instants through the selected asset/media clock, retaining the
authored media timing when NTP fractional quantization does not land
on an integer media tick.  That instant is not <tt>ticks</tt>
(Section 4.4.1) when the MPU has leading pictures: <tt>ticks</tt> is that
instant plus the difference between the authored composition times
(Section 5.1) of the MPU's first AU in decode order and its
earliest-presented AU, converted to the selected timescale as
Section 4.4.1 requires.</t>
<t>The converter derives the group duration from the authored MPU/media
cadence and validates it against those <tt>ticks</tt> values.  It may emit
<tt>groupDurationMs</tt> only when the conversion to the selected timescale
is an exact positive integer tick count; when the cadence is exact
only in ticks it emits <tt>groupDurationTicks</tt>.
The fixed-cadence profile cannot represent a source whose MPU cadence
is not one constant positive duration, so conversion fails rather
than rounding or inventing a cadence.  It sets <tt>mmtpMode</tt> to &quot;mfu&quot;
on every mmtp track that it lists on an endpoint, the only mode such a
track may have (<xref target="MOQ-MULTICAST"></xref> Section 4.1).
The AL-FEC message does not name <tt>blockProfile</tt>, which is required on
every FEC instance (<xref target="MOQ-FEC-CORE"></xref> Section
10.1); the converter sets it to &quot;iso-ssbg1-v1&quot;,
the profile whose entry carries the coding byte 0x14 that the converter
accepts (Section 8.3; <xref target="iso-ssbg1-v1"></xref>).</t>
</section>
</section>

<section anchor="security-considerations"><name>Security Considerations</name>
<t>MMT content protection uses Common Encryption (CENC) <xref target="ISO.23001-7"></xref>
which is preserved through MoQ transport.  The MMTP packet and
payload headers are not encrypted by CENC, so receivers, and MMTP
gateways outside MoQ, can inspect packet type, sequence, and
fragmentation metadata without accessing media sample content.  A MoQ
relay treats the object payload, MMTP headers included, as opaque
(<xref target="I-D.ietf-moq-transport"></xref> Section 7.9) and never parses MMTP
(Section 6.2).</t>

<section anchor="a3sa-signed-region"><name>ATSC 3.0 Signed Region (A3SA)</name>
<t>Per <xref target="ATSC-A360"></xref> Section 5.2.2.5, the ATSC 3.0 signing mechanism, whose
certificates the ATSC 3.0 Security Authority (A3SA) administers, covers
signaling messages and MA3 messages (packet type 0x2) but excludes asset
packets (type 0x00 MPU and type 0x03 repair).</t>
<t>Neither <xref target="ISO.23008-1"></xref> nor <xref target="ATSC-A331"></xref> carries the SS_ID inside the
A3SA signed region.  In particular the MMT hint sample does not: neither
its ISO syntax (<xref target="ISO.23008-1"></xref> Clause 8.3.2) nor the ATSC
<tt>MMTHSampleATSC3</tt> syntax (<xref target="ATSC-A331"></xref> Section 7.2.4.2.2.3) has a
Source FEC Payload ID field, and hint samples travel as MPU-mode data
units on the Asset's own packet_id (<xref target="ATSC-A331"></xref> Section 7.2.4.2.3),
that is in asset packets, which A3SA does not sign.  This document
therefore defines no A3SA-authenticated FEC block assignment: block
assignment taken from the trailing Source FEC Payload ID
(<xref target="source-fec-payload-id"></xref>) of an A3SA verified packet is
unauthenticated.  A receiver that requires authenticated FEC block
assignment MUST obtain it from an integrity mechanism, other than A3SA
signing, whose coverage includes the complete MMTP packet, the trailer
included.  Version 2 of the bc-provenance profile (<xref target="MOQ-MULTICAST"></xref>
Section 7.2) is such a mechanism: its
digest covers the whole UDP payload as transmitted, the Source FEC
Payload ID included.  The same holds for the overlay SS_ID
(<xref target="overlay-header-extension"></xref>): A3SA signing authenticates neither, and a
receiver that requires authenticated block assignment treats each as
this section requires.</t>
<t>An attacker who can modify the Source FEC Payload ID without detection
could redirect source symbols to incorrect FEC blocks, causing recovery
failures or corrupted output.  On multicast networks without A3SA
verification, receivers SHOULD cross-check the SS_ID against the MMTP
packet_sequence_number to detect obvious tampering (e.g., an SS_ID that
advances further than the packet_sequence_number of the same packet_id,
whereas SS_ID advances by one per FEC source packet, <xref target="iso-ssbg1-v1"></xref>).</t>
</section>

<section anchor="multicast-security"><name>Multicast Security</name>
<t>Multicast-specific security considerations (source authentication,
replay protection, AMT relay trust) are defined in
<xref target="MOQ-MULTICAST"></xref> Section 7.</t>
</section>
</section>

<section anchor="iana-considerations"><name>IANA Considerations</name>
<t>This document defines the catalog <tt>packaging</tt> value &quot;mmtp&quot;
(Section 13.1), extending the allowed packaging values of the MOQT
Streaming Format <xref target="I-D.ietf-moq-msf"></xref> Section 5.2.4 in the same
manner as <xref target="I-D.ietf-moq-cmsf"></xref>.  If a registry of packaging
values is established for that format, this document requests
registration of:</t>
<table>
<thead>
<tr>
<th>Value</th>
<th>Description</th>
<th>Reference</th>
</tr>
</thead>

<tbody>
<tr>
<td>&quot;mmtp&quot;</td>
<td>MMTP packets carrying MPU/MFU payloads</td>
<td>This document</td>
</tr>
</tbody>
</table><t>This document requests the registration of the block profile
&quot;iso-ssbg1-v1&quot; (<xref target="iso-ssbg1-v1"></xref>) in the &quot;MoQ FEC Block Profiles&quot;
registry that <xref target="MOQ-FEC-CORE"></xref> Section
15.3 creates:</t>
<table>
<thead>
<tr>
<th>Block Profile</th>
<th>Admitted Packaging</th>
<th>Reference</th>
</tr>
</thead>

<tbody>
<tr>
<td>&quot;iso-ssbg1-v1&quot;</td>
<td>mmtp</td>
<td>This document, <xref target="iso-ssbg1-v1"></xref></td>
</tr>
</tbody>
</table><t>The header extension type 0x8B01 of <xref target="overlay-header-extension"></xref> is an
MMTP value, not a MoQ one; <xref target="ISO.23008-1"></xref> Clause 9.2.3 defines no
registry of MMTP header extension types, so its use requires no IANA
action.</t>
<t>This document requests no MoQ message type registrations.  FEC signaling
uses no MoQ control message (<xref target="MOQ-FEC-CORE"></xref> Section
15.1); no document in this suite requests a
control-message codepoint.</t>
</section>

</middle>

<back>
<references><name>References</name>
<references><name>Normative References</name>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-moq-loc.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-moq-msf.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-moq-transport.xml"/>
<reference anchor="ISO.14496-12" target="">
  <front>
    <title>Information technology - Coding of audio-visual objects - Part 12: ISO base media file format</title>
    <author>
      <organization>ISO/IEC</organization>
    </author>
    <date year="2026"></date>
  </front>
  <seriesInfo name="ISO/IEC" value="14496-12:2026"></seriesInfo>
</reference>
<reference anchor="ISO.23008-1" target="">
  <front>
    <title>Information technology - High efficiency coding and media delivery in heterogeneous environments - Part 1: MPEG media transport (MMT)</title>
    <author>
      <organization>ISO/IEC</organization>
    </author>
    <date year="2023"></date>
  </front>
  <seriesInfo name="ISO/IEC" value="23008-1:2023"></seriesInfo>
</reference>
<reference anchor="ISO.23008-1.AMD1" target="">
  <front>
    <title>Information technology - High efficiency coding and media delivery in heterogeneous environments - Part 1: MPEG media transport (MMT) - Amendment 1: Signalling of adaptive FEC scheme</title>
    <author>
      <organization>ISO/IEC</organization>
    </author>
    <date year="2025" month="May"></date>
  </front>
  <seriesInfo name="ISO/IEC" value="23008-1:2023/Amd 1:2025"></seriesInfo>
</reference>
<reference anchor="ISO.23008-10" target="">
  <front>
    <title>Information technology - High efficiency coding and media delivery in heterogeneous environments - Part 10: MPEG media transport forward error correction (FEC) codes</title>
    <author>
      <organization>ISO/IEC</organization>
    </author>
    <date year="2015"></date>
  </front>
  <seriesInfo name="ISO/IEC" value="23008-10:2015"></seriesInfo>
</reference>
<reference anchor="MOQ-FEC-BLOCK" target="">
  <front>
    <title>Block FEC Schemes for Media over QUIC: Reed-Solomon and RaptorQ</title>
    <author fullname="Omar Ramadan" initials="O." surname="Ramadan">
      <organization>Blockcast</organization>
    </author>
    <date year="2026" month="November" day="20"></date>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-ramadan-moq-fec-block-codes-01"></seriesInfo>
</reference>
<reference anchor="MOQ-FEC-CATALOG" target="">
  <front>
    <title>Catalog Binding for Forward Error Correction in Media over QUIC</title>
    <author fullname="Omar Ramadan" initials="O." surname="Ramadan">
      <organization>Blockcast</organization>
    </author>
    <date year="2026" month="November" day="20"></date>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-ramadan-moq-fec-catalog-01"></seriesInfo>
</reference>
<reference anchor="MOQ-FEC-CORE" target="">
  <front>
    <title>Forward Error Correction for Media over QUIC: Core Mechanism</title>
    <author fullname="Omar Ramadan" initials="O." surname="Ramadan">
      <organization>Blockcast</organization>
    </author>
    <author fullname="Marc E. Fiuczynski" initials="M. E." surname="Fiuczynski">
      <organization>Rutgers University</organization>
    </author>
    <date year="2026" month="November" day="20"></date>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-ramadan-moq-fec-core-01"></seriesInfo>
</reference>
<reference anchor="MOQ-FEC-MULTICAST" target="">
  <front>
    <title>Forward Error Correction for Multicast Delivery of Media over QUIC</title>
    <author fullname="Omar Ramadan" initials="O." surname="Ramadan">
      <organization>Blockcast</organization>
    </author>
    <date year="2026" month="November" day="20"></date>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-ramadan-moq-fec-multicast-01"></seriesInfo>
</reference>
<reference anchor="MOQ-MULTICAST" target="">
  <front>
    <title>Multicast Delivery and Endpoint Discovery for Media over QUIC</title>
    <author fullname="Omar Ramadan" initials="O." surname="Ramadan">
      <organization>Blockcast</organization>
    </author>
    <date year="2026" month="November" day="20"></date>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-ramadan-moq-multicast-03"></seriesInfo>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9000.xml"/>
</references>
<references><name>Informative References</name>
<reference anchor="ARIB-B60" target="">
  <front>
    <title>MMT-Based Media Transport Scheme in Digital Broadcasting Systems</title>
    <author>
      <organization>ARIB</organization>
    </author>
    <date></date>
  </front>
  <seriesInfo name="ARIB STD-B60" value="Version 1.14"></seriesInfo>
</reference>
<reference anchor="ATSC-A331" target="https://www.atsc.org/atsc-documents/3312017-signaling-delivery-synchronization-error-protection/">
  <front>
    <title>Signaling, Delivery, Synchronization, and Error Protection</title>
    <author>
      <organization>ATSC</organization>
    </author>
    <date year="2026" month="April"></date>
  </front>
  <seriesInfo name="ATSC" value="A/331:2026-04"></seriesInfo>
</reference>
<reference anchor="ATSC-A360" target="https://www.atsc.org/atsc-documents/3602018-atsc-3-0-security-service-protection/">
  <front>
    <title>ATSC 3.0 Security and Service Protection</title>
    <author>
      <organization>ATSC</organization>
    </author>
    <date year="2026" month="August"></date>
  </front>
  <seriesInfo name="ATSC" value="A/360:2026-08"></seriesInfo>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-moq-cmsf.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml3/reference.I-D.ramadan-moq-fec.xml"/>
<reference anchor="ISO.23001-7" target="">
  <front>
    <title>Information technology - MPEG systems technologies - Part 7: Common encryption in ISO base media file format files</title>
    <author>
      <organization>ISO/IEC</organization>
    </author>
    <date year="2023"></date>
  </front>
  <seriesInfo name="ISO/IEC" value="23001-7:2023"></seriesInfo>
</reference>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.5905.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.6330.xml"/>
<xi:include href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.9706.xml"/>
</references>
</references>

<section anchor="change-log"><name>Change Log</name>
<t>This appendix is informative.  It is to be removed before
publication as an RFC.</t>

<section anchor="changes-since-mmt-02"><name>Changes Since draft-ramadan-moq-mmt-02</name>

<ul spacing="compact">
<li>Section 7.4.1 recommends that an overlay
instance whose base instance carries a positive <tt>interleaveDepthMs</tt>
carry its own positive <tt>interleaveDepthMs</tt> and <tt>reorderToleranceMs</tt>,
since without them a receiver has no deadline for an overlay block.
Section 7.4.2 no longer says that every overlay block spans many
base blocks: a publisher may close one once its RAP has been sent.
Item 3 of Section 8.1 no longer forbids a value computed from a
count; it says such a value bounds the send span only when the
publisher keeps it, by closing blocks early and withholding repair
it cannot send in time.</li>
<li>Section 5.3.4 puts exactly one RAP in a video MPU.  A publisher
begins a new MPU at every RAP, so the first sample of an MPU is its
only RAP, and the group that the MPU maps to begins at that RAP and
holds no other.  <xref target="ISO.23008-1"></xref> Section 6.4 requires the first
access unit of an MPU to be a SAP; -02 let further RAPs follow it.
A receiver now tells from the MPU sequence numbers on the two sides
of a loss whether the loss can hold a RAP (<xref target="MOQ-FEC-MULTICAST"></xref>
Section 6.1), for any frame structure.  The class of a loss reads
no decode time.
No two RAPs fall in one group-duration interval of Section 4.4.1,
and no packet of a later sample of an MPU sets <tt>RAP_flag</tt>
(Sections 4.3, 5.2.1 and 5.3.4).  A publisher of -02 or earlier may
have placed further RAPs in an MPU, and nothing in the packets
names the revision.  A receiver therefore relies on one RAP in an
MPU only where the catalog carries a keyframe interval that is
equal to the group duration.  It stops relying on it once it has
found a RAP that is not the first sample of its MPU, or an MPU that
lasts longer than that interval: -02 did not bound how long an MPU
lasts, and a -02 track with equal values can hold a further RAP in
a longer MPU.  A keyframe that an encoder codes inside a group all
the same may be sent as a later sample that is not a RAP.</li>
<li>Section 4.3 requires the MPU sequence number to grow from each MPU
of a track instance to the next and never to return to a number
already used there, since a receiver now tells one MPU from the
next by it.  A publisher that restarts and cannot continue the
count starts a new track.</li>
<li>Section 4.4.3 gives the keyframe interval one job: it is the
publisher's statement, in the catalog, that every keyframe of the
track begins a group.  An interval equal to the group duration
makes the statement, and a publisher that makes it lets no MPU last
longer than one group duration.  A publisher MUST NOT publish an
interval
shorter than the group duration.  In -02 the fields also described
further keyframes inside an MPU, and
draft-ramadan-moq-fec-multicast-00 placed those keyframes by decode
time.  A -02 track whose interval is shorter than its group duration
loses that: a receiver of this revision treats each of its losses as
one that may hold a keyframe, as it does on a track with no
interval.  So does a receiver on a unicast datagram leg (step 6 of
Section 6.1).  The sentence that let the tracks of a switching set
carry
different keyframe cadences is gone, since a track's keyframes are
now its group starts.</li>
<li>Section 5.3.4 gives <tt>priority</tt> a value map.  A RAP of <tt>priority</tt> 254
promises that every later sample of its MPU carries 128 or a true
statement of the map.  A sample that is not a RAP states the one
earlier sample it
needs, its anchor, and, where the codec says so, that no later
sample needs it.  128 states nothing.  The values 0, 128 and 255,
which earlier publishers sent, keep their reading at a receiver.  A
publisher of this revision no longer sends 255 on a sample that is
not a RAP.  A receiver feeds
a decoder by these statements after a loss (<xref target="MOQ-FEC-MULTICAST"></xref>
Section 6.3).  Item 4 of Section 5.2.1 requires the same <tt>priority</tt>
in every subsample data unit of a sample of such an MPU.</li>
<li>Section 5.3.4 says what <tt>dep_counter</tt> is: the dependency_counter of
<xref target="ISO.23008-1"></xref> Section 9.3.2.3, to which this mapping gives no
meaning of its own.  A publisher sends 0 unless it knows that count,
and a receiver takes from it no decision that changes what it
decodes.  It stays a hint for recovery and retention, as in -02.</li>
<li>Erratum: Section 8.3 no longer lists
<tt>num_of_repair_symbol_per_packet</tt> among the fields of an
&quot;iso-ssbg1-v1&quot; entry.  <xref target="ISO.23008-1"></xref> Table C.3, in the 2023 edition
and as replaced by <xref target="ISO.23008-1.AMD1"></xref>, carries that field and
<tt>num_of_symbol_element_per_source_symbol</tt> only inside its
<tt>ssbg_mode == 10</tt> branch, so an entry with coding byte 0x14
(ssbg_mode1) has neither.  The -01 and -02 text, and the -00 entry of
this change log, described a field that is not on the wire; no byte
of the message changes, since no reference writer or reader emitted
or read it.</li>
<li>The keyframe overlay also protects the
metadata that a Random Access Point needs (Section 7.4.2).  Its
members are the fragments of each keyframe MFU it covers, and of
every subsample data unit of such a keyframe sample when it is
partitioned, the FT=0 data unit of each MPU whose first sample is
such a keyframe, which on a track under an overlay is every MPU, and
the FT=1 data unit of each movie fragment that contains one.  Each
member sets <tt>RAP_flag</tt>, carries its overlay SS_ID in the 0x8B01
header extension, and takes the next overlay SS_ID in emission
order.  The overlay covers the first sample of every MPU, which is
the MPU's only keyframe (Section 5.3.4), so it covers every keyframe
of the track; since a receiver
can use a recovered FT=0 or FT=1 member only within its bounded
replay window, the overlay instance's own positive
<tt>interleaveDepthMs</tt> (Section 7.4.1) tells it how long to hold what
that member governs.  In -02, as in
<xref target="I-D.ramadan-moq-fec"></xref> from which the overlay moved, the overlay
held only the keyframe MFU's fragments, so a loss
that also took the keyframe's FT=0 or FT=1 data unit left an
overlay-recovered keyframe that a receiver could not admit (Sections
4.3 and 5.1), and Section 6.6 of draft-ramadan-moq-fec-multicast-00
said that the overlay does not recover those data units.  Sections
2, 3.1, 7.2, 7.4, 7.4.3 and 7.4.4 follow.  The extension's format is
unchanged: a receiver that takes overlay membership from the
extension alone, as Section 7.4.3 requires, decodes the overlay of a
publisher that follows either text.  An FT=0 or FT=1 packet that is
a member is eight octets longer than in -02 and carries no other
MMTP header extension.  <xref target="MOQ-FEC-MULTICAST"></xref> is now cited at its -01
revision, whose Section 6.6 says that the overlay can recover those
data units.</li>
<li>An mmtp track MAY be sent as datagrams.  The
new <tt>mmtpMode</tt> value &quot;mfu-datagram&quot; (Section 13.1) keeps the Groups,
Object IDs and object payloads of &quot;mfu&quot; and sends every object as a
datagram, so that a receiver on a lossy path with a deadline near the
round-trip time recovers by FEC instead of by retransmission (new
Section 4.3.1).  Section 4.3 now requires subgroups of an &quot;mfu&quot; track
only; the -00 entry below records that -01 first required them of
every mmtp track.  Section 4.3.1 requires every object and repair
object, FT=0 and FT=1 included, to fit one datagram, and recommends
sizing them for a UDP payload of 1200 bytes, which also sizes the
packets sent on multicast.  A publisher offers an &quot;mfu-datagram&quot;
track only beside an &quot;mfu&quot; track with the same MMTP packets, each
track's AL-FEC signaling object aside, so a subscriber, which chooses
the mode by choosing a track, always has an &quot;mfu&quot; track, and one
whose session runs over HTTP/2 SHOULD take it.  Each of the two
tracks has its own FEC instances, whose parameters may differ, and
its own repair tracks, except that a keyframe overlay, which rides in
the source packets, is declared on both tracks with the same
membership or on neither; a multicast endpoint lists only the &quot;mfu&quot;
track, and the signaling object of the &quot;mfu-datagram&quot; track is not
sent on multicast.  A receiver that takes an &quot;mfu-datagram&quot; track on
a unicast path MAY fetch what FEC will not rebuild in time without
waiting for the block's deadline, chooses its repair layers as
<xref target="MOQ-FEC-CORE"></xref> Section 7.4 describes, and, by Section 6.1, step 6,
stops waiting for a repair by the presentation time of what it would
supply and conceals the rest without stalling; on a multicast QUIC
channel <xref target="MOQ-FEC-MULTICAST"></xref> Section 6 governs its repair.  A
delivery timeout drops a datagram without notice, and a subscriber
MAY set an OBJECT_DELIVERY_TIMEOUT that bounds how long an object
waits at the hop that serves it.  New in Section 2, a datagram leg is
a multicast or AMT leg or a subscription to an &quot;mfu-datagram&quot; track.
On every datagram leg, and on every other path of a track that one
also delivers, Section 5.3.3 now checks restored serial order in
place of subgroup order; holds a packet behind a missing one until
the missing packet arrives, is recovered or is declared lost, which
it is only once neither FEC nor a repair or fill fetch stream that
the receiver waits for can still supply it; stops holding a later
MPU once that MPU's FT=0 packet is held; discards the data unit that
a lost packet would have continued; and does not admit a packet that
comes after it was declared lost.  This changes the receiver of a
multicast or AMT leg: there, a packet that was never recovered left
its data unit open, and Section 5.3.2 rejected every later data unit
of that MPU as an overlap.  An &quot;mfu&quot; track and its &quot;mfu-datagram&quot;
track keep separate ordering and active states, and Section 7.1
combines symbols only within one track's FEC instances.  Section 4.6
notes that a datagram carries an absolute Object ID, Sections 4.1,
5.3.2, 5.3.4, 7.4.4 and 12 refer to datagram delivery, Section 13.1
rejects an <tt>mmtpMode</tt> that the subscriber does not implement, and in
Section 13.2 a converter sets &quot;mfu&quot;.  <xref target="RFC9000"></xref> is a new normative
reference.</li>
<li>Section 4.3.1 now says when a receiver takes and leaves an
&quot;mfu-datagram&quot; track.  No field signals it.  With D the receiver's
playout delay and W the largest sum of <tt>interleaveDepthMs</tt> and
<tt>reorderToleranceMs</tt> among the track's FEC instances that the receiver
decodes (the sum that the catalog signals, whatever deadline or local
allowance the receiver itself applies; an omitted <tt>reorderToleranceMs</tt>
adds nothing), a receiver SHOULD NOT take a track with no positive
<tt>interleaveDepthMs</tt> or with W above D, SHOULD return to the &quot;mfu&quot;
track once no object has arrived for the larger of D and W, and SHOULD
NOT return for want of media to present sooner than the larger of D
and one Group duration plus one access unit plus W.  It MAY take the
track again, and then waits longer before each further attempt, by a
random amount.  Section 6.1, step 6, ends the wait for a repair that
may supply RAP, FT=0 or FT=1 data once the repair is moot, by the rule
that <xref target="MOQ-FEC-MULTICAST"></xref> Section 6.2.1 gives a multicast leg, so
both kinds of datagram leg end that wait the same way.  In Section
13.1 a publisher of an &quot;mfu-datagram&quot; track SHOULD signal a positive
<tt>interleaveDepthMs</tt> close to the send span that it keeps.</li>
<li>Editorial: items 4 and 5 of Section 5.2 render
as list items; in -02 they ran into the paragraph before them, so a
citation of &quot;Section 5.2, item 5&quot; named no list item.</li>
<li>References: the companion documents are now cited as
draft-ramadan-moq-fec-core-01, draft-ramadan-moq-fec-block-codes-01,
draft-ramadan-moq-fec-catalog-01,
draft-ramadan-moq-fec-multicast-01 and draft-ramadan-moq-multicast-03.</li>
<li>From a review before posting: Section 10 and Section 13.2 keep a
session whose AL-FEC message names another code outside these
documents until a scheme registered in the &quot;MoQ FEC Schemes&quot; registry
is specified for that code point; they had said until that registry
lists the code, which it has no field for.  Four citations that
wrapped onto a new line as numbered list items now render as text.
<xref target="ATSC-A331"></xref> is cited at its April 2026 edition, as
<xref target="MOQ-MULTICAST"></xref> cites it.</li>
<li><xref target="relationship-to-other-moq-media-formats"></xref> says that MMTP packaging
requires no change to MoQ Transport, as LOC and CMAF packaging
require none, and points to <xref target="MOQ-FEC-CORE"></xref> Section 1.3 for the
extension points that the document set builds on.  A note before the
Introduction names the mailing list and the repository where this
document is discussed.  No requirement changes.</li>
<li>Section 4.2 no longer restates the type of the FEC Source Info
Object Property, which <xref target="MOQ-FEC-CORE"></xref> Section 5.6 gives.  -02 said
0x11, which that document no longer uses.</li>
<li>Citations of other Internet-Drafts follow
draft-ietf-moq-transport-23, draft-ietf-moq-msf-02,
draft-ietf-moq-loc-05 and draft-ietf-moq-cmsf-01.  The text was
written against draft-ietf-moq-transport-22 and
draft-ietf-moq-msf-01.  Against them, six cited MoQ Transport
sections and the sections of six fields of the MOQT Streaming
Format (<tt>altGroup</tt>, <tt>initRef</tt>, <tt>codec</tt>, <tt>timescale</tt>, <tt>bitrate</tt> and
<tt>isLive</tt>) have new numbers, in this Change Log as well.</li>
<li>Section 4.1 no longer says that an mmtp track departs from a rule
of the MOQT Streaming Format: Section 6 of draft-ietf-moq-msf-02
leaves the mapping of objects to streams to the packaging.  This
changes no mmtp track on the wire.</li>
<li>A switching set in which an intra-only track has a shorter group
duration than a GOP track, here called mixed-interval, follows the
rules that draft-ietf-moq-msf-02 adds, in its Sections 4.3 and 6.3,
for alternate tracks with dissimilar keyframe intervals (Sections
4.3, 4.4.1, 4.4.2, 8.1 and 13.1).  Every track of such a set carries
<tt>keyframeSpacing</tt>, which counts samples on an mmtp track.  A track
of another packaging in such a set, a cmaf track for one, puts one
sample in each object, which -02 did not ask of it.  All its
tracks have one sample period and start together at Group 0.  None
leaves a gap in its Group numbers or sends a keyframe inside a
group.  A publisher that cannot publish the next Group number of a
track ends that track; to offer it again it ends the tracks of the
set, and the tracks that share their presentation origin, and starts
new ones.  -02 let such a set start at any Group number and leave
gaps, and required alignment only at group boundaries.  The switch
points at group boundaries are unchanged.  Section 6.3.2 of
draft-ietf-moq-msf-02 adds switches from inside a group of a GOP
track to an intra-only track, and two intra-only tracks of such a
set now align at every group.  An mmtp track outside such a set does
not carry <tt>keyframeSpacing</tt>.  No other mmtp track changes.</li>
<li>The worked catalogs carry <tt>&quot;version&quot;: &quot;draft-02&quot;</tt>.  The <tt>version</tt>
field is a string (<xref target="I-D.ietf-moq-msf"></xref> Section 5.1.1), and
&quot;draft-02&quot; names draft-ietf-moq-msf-02; -02 carried the number 1.</li>
<li>&quot;Rendition&quot; now reads &quot;alternate track&quot;.  Tracks that share an
<tt>altGroup</tt> are alternate tracks in <xref target="I-D.ietf-moq-msf"></xref> Section
5.2.13, and &quot;the rendition parameters&quot; reads &quot;the selection
properties&quot;, as that section has it.  Where a publisher retires a
source encoding, &quot;a separate rendition&quot; now reads &quot;a new source
encoding&quot; (<xref target="MOQ-FEC-CORE"></xref> Section 7.6).  No requirement changes.</li>
</ul>
</section>

<section anchor="changes-since-mmt-01"><name>Changes Since draft-ramadan-moq-mmt-01</name>
<t>The FEC draft <xref target="I-D.ramadan-moq-fec"></xref> was split into a core mechanism
<xref target="MOQ-FEC-CORE"></xref> and companion documents <xref target="MOQ-FEC-BLOCK"></xref>,
<xref target="MOQ-FEC-CATALOG"></xref> and <xref target="MOQ-FEC-MULTICAST"></xref>.  The MMTP block profile
moved into this document, and every citation of the FEC draft was
re-pointed.  The section numbers in the -00 entry below are those of
-01.</t>

<ul>
<li><t>Moved in from draft-ramadan-moq-fec-01: the &quot;iso-ssbg1-v1&quot; block
profile definition (-01 Sections 5.1, 7.3, 7.4 and 8.3, as the new
Section 7.1), the Source FEC Payload ID trailer and its relation to
the FEC Source Info Property (-01 Sections 5.3 and 8.5, as Section
7.2), the MMTP form of the repair packet (-01 Section 7.1, as Section
7.3), the keyframe overlay and its 0x8B01 header extension (-01
Sections 2, 5.1.1, 5.1.2, 6.3.1, 6.3.4 rule 10, 6.4 to 6.4.3, 7.6.6
and 8.5.1, as Section 7.4), the ISO packet-count meaning of
<tt>interleaveDepthMs</tt> zero (-01 Sections 2, 5.1, 8.4 and 9, into Section
7.5, which was Section 7.1), the mmtp encoder constraints (-01 Section
8.4, into Section 8.1), the ISO single-repair-flow paragraph and the
catalog-less layer-0 check (-01 Sections 6.3 and 6.3.9, into Section
8.3), ATSC 3.0 compatibility (-01 Section 12, as the new Section 10),
the A3SA signed region (-01 Sections 8.5, 8.5.1 and 14.5, as the new
Section 14.1), the &quot;iso-ssbg1-v1&quot; registration and the 0x8B01 note
(-01 Sections 15.1 and 15.4, into Section 15), the MMTP capacity
arithmetic (-01 Appendix B, as Appendix B), the mmtp alternate track of CMAF
content (-01 Section 13, 3893-3900, into Section 1.1; the diagram of
-01 Section 13 depicts direct protection of a cmaf track under
&quot;moq-object-v1&quot; and is not carried here) and the FEC terms specific to
this profile (-01 Section 2, into Section 2).  Section 7.2 OTI
Signaling of -01 is folded into Section 7.1.</t>
</li>
<li><t>Section 7.1 states where the profile deviates from <xref target="MOQ-FEC-CORE"></xref>:
the unit of protection is the MMTP packet, the trailer carries the
SS_ID and the FEC Source Info Property restates it in the 4-byte form
naming instance 0 (and a receiver that parses the packet can place a
symbol by the trailer when the Property is absent, Section 7.2), the
repair object is an MMTP packet of 12 + 13 + T bytes rather than 13 +
T, the keyframe overlay is the profile's form of an overlapping
instance with its overlay SS_ID in the 0x8B01 extension rather than in
a Property entry, so that overlay membership is read from the
extension inside the protected packet rather than from the Property
alone and an overlay recovery counts toward the base instance only
with an independently determined base SS_ID, <tt>interleaveDepthMs</tt>
admits zero, and symbol carriage does not apply.</t>
</li>
<li><t>Duplicates collapsed to one normative copy: the in-band precedence
rule (Section 8 cites <xref target="MOQ-FEC-CORE"></xref>), the coding-byte paragraph
(Section 8.3), the prohibition on describing the overlay in the AL-FEC
message (Section 8.3; Section 7.4.3 keeps the rationale and the
FFSRP_TS prohibition), and the catalog-less layer-0 anchored check
(Section 8.3; Sections 10 and 13.2 cite it).  Three further -01
passages that fall to this document were already stated by
draft-ramadan-moq-mmt-01 Sections 8 and 8.3 and are collapsed into
that text rather than moved: the -01 Section 5.2 sentences naming the
AL-FEC message as the in-band FEC signaling of the mmtp packaging for
a receiver that consumes the flow without the catalog (Section 8.3;
Section 8 makes the message optional on a MoQ track), the -01 Section
8.3 paragraph on the signaling object that carries no source symbol,
no SS_ID and no ESI and is not counted in K (Section 8), and the -01
Appendix A.1 sentence that no in-session message is required and that
a track may carry no AL-FEC signaling object (Section 8). Their
profile-neutral sentences are kept by <xref target="MOQ-FEC-CORE"></xref> Sections
5.3 and 10 and
Appendix E.</t>
</li>
<li><t>Every citation of the FEC draft is re-pointed: the mechanism to
<xref target="MOQ-FEC-CORE"></xref>, the schemes, their bounds, the OTI derivation and
the mandatory-to-implement designation to <xref target="MOQ-FEC-BLOCK"></xref>, the
catalog encoding, the worked catalog, the naming convention and the
unknown-key rules to <xref target="MOQ-FEC-CATALOG"></xref>, and the receiver repair
policy, block classification and repair-only endpoints to
<xref target="MOQ-FEC-MULTICAST"></xref>; the profile, the trailer, the repair packet and
the overlay are cited within this document.  Catalog field names
follow the data model of <xref target="MOQ-FEC-CORE"></xref>: <tt>algorithm</tt> is <tt>scheme</tt>,
<tt>depends</tt> is <tt>source</tt>, the per-track <tt>fec</tt> field is an array of FEC
instances, and the &quot;none&quot; scheme is no longer used (a track without
instances declares no FEC).  <xref target="RFC6330"></xref> is now an informative
reference, since RaptorQ is specified by <xref target="MOQ-FEC-BLOCK"></xref>.
<xref target="ATSC-A360"></xref> is a new informative reference and <xref target="MOQ-MULTICAST"></xref> is
cited at its -02 revision.</t>
</li>
<li><t>Section 1.2 names the document set, Section 2 lists the FEC terms this
document uses and points at <xref target="MOQ-FEC-CORE"></xref> for the rest, and the
Abstract and Section 1 say that this document defines the block
profile, the overlay and the ATSC 3.0 interworking.  Sections 10 to 14
of -01 are now Sections 11 to 15.</t>
</li>
<li><t>The worked catalogs carried <tt>&quot;version&quot;: 1</tt> in -02, in place of the
<tt>&quot;draft-01&quot;</tt> string of -01.  They now carry <tt>&quot;version&quot;: &quot;draft-02&quot;</tt>
(see the changes since -02).</t>
</li>
<li><t>Sentences that are new rather than moved, listed verbatim with the -01
text they replace where one exists:</t>

<ul>
<li><t>This specification defines the mapping of MMT packets to MoQ
objects, the &quot;iso-ssbg1-v1&quot; block profile under which the Forward
Error Correction (FEC) mechanism for MoQ protects MMTP packets --
its source symbols, its Source FEC Payload ID trailer, its repair
packet and its keyframe overlay -- the derivation of MoQ catalogs
from MMTP signaling, and compatibility considerations for both ATSC
3.0 and ARIB STD-B60 systems, including the ATSC 3.0 signed region.</t>
</li>
<li><t>FEC: MMT's AL-FEC integrates with MoQ FEC repair tracks per
[MOQ-FEC-CORE], under the &quot;iso-ssbg1-v1&quot; block profile that this
document defines (Section 7)</t>
</li>
<li><t>Broadcast interworking: ATSC 3.0 A/331 AL-FEC sessions and the ATSC
3.0 signed region (Sections 10 and 14.1), and ARIB STD-B60 (Section
11)</t>
</li>
<li><t>The last column names the block profile under which the FEC
mechanism of [MOQ-FEC-CORE] protects tracks of each packaging.</t>
</li>
<li><t>&quot;moq-object-v1&quot; is the profile of [MOQ-FEC-CORE] Section
5.2: each loc or
cmaf object whose Object Status is Normal occupies whole source
symbols.</t>
</li>
<li><t>&quot;iso-ssbg1-v1&quot; is the profile that Section 7.1 of this document
defines: each FEC source packet (FEC Type 1) is one source symbol.</t>
</li>
<li><t>Both are registered in the &quot;MoQ FEC Block Profiles&quot; registry of
[MOQ-FEC-CORE] Section 15.3.</t>
</li>
<li><t>A publisher that offers CMAF content can also carry it as an mmtp
track under &quot;iso-ssbg1-v1&quot;, where an MPU corresponds to a CMAF
Fragment (Section 4.2). [reworded from -01 13 3893-3895:
&quot;Alternatively, the publisher carries the media as an mmtp track
under iso-ssbg1-v1, where an MPU corresponds to a CMAF Fragment (see
[MOQ-MMT])&quot;; the alternative it followed, direct protection under
&quot;moq-object-v1&quot;, is [MOQ-FEC-CORE] Section 13.2, and the
pointer to this document became a pointer to Section 4.2; the two
sentences that follow are carried verbatim from -01 13 3895-3900
with the Section 4.1 citation written as a token]</t>
</li>
<li><t>Section 1.2, all four sentences: This document is a companion of
[MOQ-FEC-CORE], which defines the scheme-independent FEC mechanism
for MoQ and the configuration data model that a catalog carries.
[MOQ-FEC-BLOCK] specifies the Reed-Solomon and RaptorQ schemes,
[MOQ-FEC-CATALOG] the catalog encoding of the configuration, and
[MOQ-FEC-MULTICAST] the delivery of protected tracks over multicast,
including the receiver repair policy. This document defines the
&quot;iso-ssbg1-v1&quot; block profile, the part of that set that is specific
to MMTP packets, and the ATSC 3.0 and ARIB STD-B60 interworking that
relies on it. [MOQ-MULTICAST] defines multicast endpoint discovery
and the multicast packet format on which the multicast delivery of
mmtp tracks rests.</t>
</li>
<li><t>The FEC terms of this document -- Source Track, Repair Track, Repair
Layer, FEC Instance, Source Symbol, Repair Symbol, Source Block,
SS_ID, SS_Start, SSB_length, RS_ID, RSB_length, Encoding Symbol ID
(ESI) and Block Profile -- are those of [MOQ-FEC-CORE] Section
2, and the RS_ID offset O_i and
per-block repair symbol count P_i of layer i are those of
[MOQ-FEC-CORE] Section 7.3.1.</t>
</li>
<li><t>Under &quot;iso-ssbg1-v1&quot; the following take a form of their own, and the
remaining terms are specific to this document:</t>
</li>
<li><t>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. (New definition; -01 used the term without defining
it. [MOQ-FEC-MULTICAST] Section
2 carries the same text.)</t>
</li>
<li><t>[MOQ-FEC-CORE] Section 5.6 requires
every source object to carry the FEC Source Info Object Property;
on an mmtp source object its value is the four-byte
form of that section, which names instance 0 and carries the
network-byte-order SS_ID of the base instance, the value of the
packet's Source FEC Payload ID (Section 7.2); the property is object
metadata and is not inserted into this payload.</t>
</li>
<li><t>A subscriber finds the repair tracks of the track it selects
through the repairTrack of each of that track's FEC instances
and the source fields of its repair tracks ([MOQ-FEC-CATALOG]
Section 3.2; the data model of [MOQ-FEC-CORE]
Section 10.2).</t>
</li>
<li><t>This section defines that profile, &quot;iso-ssbg1-v1&quot;: its source
symbols, the Source FEC Payload ID trailer, the MMTP form of the
repair packet, the keyframe overlay and the interleave window.</t>
</li>
<li><t>It states where the profile deviates from [MOQ-FEC-CORE], whose
remaining rules apply unchanged ([MOQ-FEC-CORE] Section
5.2).</t>
</li>
<li><t>The rules of [MOQ-FEC-CORE] apply to a track under this profile with
the following deviations, which [MOQ-FEC-CORE] Section
5.2 asks a
companion profile to state:</t>
</li>
<li><t>The unit of protection is the MMTP packet, not the MoQ object: a
source symbol is formed from one FEC source packet as this section
specifies, and the Protected Object Unit of [MOQ-FEC-CORE] Section
5.2 is not used.</t>
</li>
<li><t>A source object of an mmtp track carries one source symbol, the FEC
source packet that is its payload, so SS_IDs advance by one per
source object.</t>
</li>
<li><t>A source packet carries its SS_ID in a 4-byte trailer, the Source
FEC Payload ID (Section 7.2), which is the canonical carrier.</t>
</li>
<li><t>The FEC Source Info Object Property of the object that carries the
packet restates it in the 4-byte form, which names instance 0
([MOQ-FEC-CORE] Section 5.6); the
Property is object metadata, not part of the protected packet, and
is not recovered with it.</t>
</li>
<li><t>When an object carries a source symbol but no FEC Source Info
Property, a receiver that parses the packet MAY take the SS_ID from
the trailer and feed the symbol to the base decoder (Section 7.2),
a deviation from [MOQ-FEC-CORE] Section
5.6, under which such an object is
not a source object; a receiver that does not parse the packet has
no SS_ID for it and feeds it to no decoder. [new; restates the -01
5.3 permission (1103-1104) as a deviation in the Section 7.1 list]</t>
</li>
<li><t>A repair object is one complete MMTP repair packet of 12 + 13 + T
bytes (Section 7.3), not the 13 + T byte payload of [MOQ-FEC-CORE]
Section 7.5.</t>
</li>
<li><t>The keyframe overlay (Section 7.4) is this profile's form of an
overlapping instance ([MOQ-FEC-CORE] Section
8.4), with two differences from that
section and from [MOQ-FEC-CORE] Section 5.1: a
RAP packet's overlay SS_ID travels in an MMTP header extension, not
in a second entry of the FEC Source Info Property, and the Property
keeps the 4-byte form, so a receiver learns a packet's overlay
membership and overlay SS_ID from that extension, which lies inside
the protected packet (Section 7.4.2), rather than from the Property
alone; and because a recovered packet carries its overlay SS_ID but
not its base SS_ID, a base recovery places the packet in the overlay
instance, whereas an overlay recovery counts toward the base
instance only where the receiver has determined the packet's base
SS_ID independently (Section 7.1). [the clauses from &quot;with two
differences&quot; on are new, restating Sections 7.1, 7.2 and 7.4.2
against the core's instance-membership rule]</t>
</li>
<li><t>interleaveDepthMs admits the value zero, with the ISO packet-count
meaning of Section 7.5, under the permission of [MOQ-FEC-CORE]
Section 10.1 for a block profile to give
zero a meaning of its own.</t>
</li>
<li><t>The symbol carriage of [MOQ-FEC-CORE] Section
6.2, and with it the symbol track and the FEC
Unit Start Property, does not apply to an mmtp track: its source
symbols reach a receiver inside the track's own objects or as
multicast datagrams ([MOQ-MULTICAST] Section
5), each carrying one whole FEC
source packet.</t>
</li>
<li><t>This profile uses ssbg_mode1, with the one-stage FEC coding
structure and FEC payload ID mode 0 ([ISO.23008-1] Clause C.1).
[reworded from -01 7.3: &quot;The iso-ssbg1-v1 block profile (Section
5.1) uses ssbg_mode1 ...&quot;; the sentence &quot;This subsection specifies
the source symbols of iso-ssbg1-v1; Section 7.6 specifies those of
moq-object-v1&quot; is dropped]</t>
</li>
<li><t>(Under &quot;raptorq&quot;, whose T is a multiple of 8, the least T is
therefore 16, [MOQ-FEC-BLOCK] Section 6.1.)
[carried from -01 5.1 688-691, reduced to the iso-ssbg1-v1
consequence]</t>
</li>
<li><t>OTI and sub-blocks: MoQ carries no RaptorQ Object Transmission
Information (OTI, [RFC6330] Section 3.3) in-session: receivers
derive it per block from the instance's configuration and the
block's SSB_length per [MOQ-FEC-BLOCK] Section
6.1. [-01 mmt 7.2, &quot;from the catalog fec fields&quot;
reworded]</t>
</li>
<li><t>The trailer lies outside the declared MPU payload (Section 5.2) and
outside the protected packet (Section 7.1).</t>
</li>
<li><t>Section 14.1 states why the ATSC 3.0 signing mechanism does not
authenticate the trailer, and what a receiver that requires
authenticated block assignment does instead.</t>
</li>
<li><t>On an mmtp source object the Property's value is the 4-byte form of
[MOQ-FEC-CORE] Section 5.6, which
names instance 0: the sequence number of the source symbol the
object carries, the same value and the same definition that the
Source FEC Payload ID trailer of the FEC source packet carries. [-01
5.3 1034-1039 reworded for the 4-byte form]</t>
</li>
<li><t>Both carry the same value and a publisher MUST make them identical,
on every source object, because the object payload is the whole FEC
source packet, trailer included. [-01 5.3 1046-1049, two sentences
merged]</t>
</li>
<li><t>No second Property entry conveys the overlay SS_ID: ... [-01 5.3
1072 &quot;No second Property conveys&quot; reworded for the list form of the
core]</t>
</li>
<li><t>A receiver that parses the packet MAY take the SS_ID from the
trailer instead, since the packaging delivers it; this is a
deviation from that section, which has no trailer to fall back on.
[-01 5.3 1103-1104 plus the deviation clause]</t>
</li>
<li><t>The Repair FEC Payload ID carries the fields of the repair object of
[MOQ-FEC-CORE] Section 7.5 with the
semantics that section gives them -- SS_Start, RSB_length, RS_ID and
SSB_length -- and this section defines only the MMTP packet header
in front of them:</t>
</li>
<li><t>A repair object under this profile is therefore 12 + 13 + T bytes
long, not the 13 + T bytes that [MOQ-FEC-CORE] Section
7.5 requires of a repair object under
&quot;moq-object-v1&quot;; a receiver MUST discard a repair object of an mmtp
track whose payload is not exactly 12 + 13 + T bytes.</t>
</li>
<li><t>It reads the Repair FEC Payload ID at byte offset 12, and every
other rule of that section applies to the fields: a receiver routes
the packet to the decoder of the instance that the configuration
relates to the repair track it arrived on, and discards a packet
whose RS_ID is not less than RSB_length or that fails a bound of the
instance's scheme ([MOQ-FEC-BLOCK] Section 7).</t>
</li>
<li><t>It is this profile's form of an overlapping instance ([MOQ-FEC-CORE]
Section 8.4).</t>
</li>
<li><t>a track under &quot;moq-object-v1&quot; has no overlay, and a catalog that
declares one for such a track fails the rule of Section 7.4.1. [-01
7.6.6 2629-2634 condensed]</t>
</li>
<li><t>An overlay is a separate FEC instance over the same source track. It
has its own sourceSymbols (K_overlay) and its own repairSymbols,
declared on its own instance entry with its own repair track
([MOQ-FEC-CATALOG] Section 3.1), and it
shares the source track's scheme, blockProfile and symbolSize. [-01
6.4.1: &quot;declared on its own repair track&quot; and &quot;algorithm&quot; renamed]</t>
</li>
<li><t>Its priority is independent within 192 to 255 ([MOQ-FEC-CORE]
Section 10.3, rule 10, and Section
11), and MAY be numerically lower
than a base enhancement layer's so that a keyframe repair symbol is
delivered before an ordinary one. [-01 6.4.1: the range is now the
core's validation rule 10 and is cited]</t>
</li>
<li><t>Overlay ESIs never collide with base ESIs because the two are
different instances decoded by different decoders; a receiver does
not feed a repair symbol of one instance to the decoder of the
other, nor reuse a source symbol's coordinate in one instance as its
coordinate in the other ([MOQ-FEC-CORE] Section
5.1). [-01 6.4.1: the two MUST NOTs are the rule
of [MOQ-FEC-CORE] Section 5.1, now cited rather
than restated; one normative copy]</t>
</li>
<li><t>A source track has at most one overlay, a wire constraint explained
in Section 7.4.3, and none when its blockProfile is &quot;moq-object-v1&quot;;
the overlay instance's repair track carries no repairLayer. [-01
6.3.4 rule 10 and 6.4.1 merged]</t>
</li>
<li><t>A receiver MUST validate this before starting FEC for an overlay
instance of the source track, and on any violation MUST fail closed
as [MOQ-FEC-CORE] Section 10.3 requires for its own
rules: it reports the offending catalog path, does not start FEC for
any overlay instance of that source track, and MUST NOT repair the
catalog by ignoring a track. [-01 6.3.4 preamble 1349-1354 restated
for rule 10; fail closed is per instance as [MOQ-FEC-CORE] Section
10.3 scopes it, not per source track as -01 had]</t>
</li>
<li><t>An overlay with K_overlay 256 and P_overlay 32 has an RS_ID range of
0 to 31, an ESI range in a full overlay block of 256 to 287, and
packets carrying RSB_length 32; it is valid only under &quot;raptorq&quot;,
since 256 + 32 = 288 exceeds 255. [-01 5.1.2 930-938 and 6.4.1
1813-1815 merged, no longer tied to the -01 worked catalog]</t>
</li>
<li><t>It knows that a repair packet belongs to the overlay because it
arrives on the repair track that the catalog declares for the
overlay instance of this source track, and that track has its own
packet_id. [-01 6.4.2: &quot;declares with scope: keyframe&quot; reworded]</t>
</li>
<li><t>The instance is therefore fixed by the track the packet arrived on;
no field of the repair packet distinguishes the two, and a receiver
does not infer the instance from SS_Start, RSB_length, or
SSB_length, whose values are only interpretable once the instance is
known ([MOQ-FEC-CORE] Section 7.5). [-01
6.4.2: the MUST NOT is the rule of [MOQ-FEC-CORE] Section
7.5, applied to the MMTP repair packet by
Section 7.3; now cited rather than restated]</t>
</li>
<li><t>The overlay is declared only by the catalog: Section 8.3 forbids
describing the overlay's repair flow in an AL-FEC message, which
identifies an FEC source flow by packet_id ([ISO.23008-1] Clause
C.6.3) and cannot describe the RAP subset that the overlay protects,
so a receiver that consumes the flow without the catalog uses the
base instance alone. [-01 8.5.1 3041-3046: the MUST NOT is collapsed
into the one copy in Section 8.3]</t>
</li>
<li><t>The receiver-side half is the repair policy of [MOQ-FEC-MULTICAST]
Section 6, under which a receiver
gives a keyframe-bearing base block that in-band decoding leaves
unrecovered priority unicast repair; its Section
6.6 states how the two
combine. [-01 6.4.3: the Section 11.4 and 11.4.6 pointers
re-pointed]</t>
</li>
<li><t>A receiver that does not implement overlays MUST fail closed on a
catalog that declares one for a track it intends to consume, that is
on an FEC instance carrying the unknown scope key, and MUST NOT
ignore the key and consume the source track anyway. [-01 6.4.3: &quot;on
a fec-repair track carrying&quot; became &quot;on an FEC instance carrying&quot;]</t>
</li>
<li><t>scope (string, OPTIONAL): When present, MUST be &quot;keyframe&quot;, and
declares this instance to be the source track's keyframe overlay. It
is an unknown-key exception (Section 7.4.4). An overlay is defined
only for a source track under &quot;iso-ssbg1-v1&quot; (Section 7.4). [-01
5.1.1 816-820: &quot;declares this track&quot; became &quot;declares this
instance&quot;, the member moved from the repair-track entry to the
overlay's instance object, and &quot;one of the unknown-key exceptions
below&quot; became an exception this document defines under
[MOQ-FEC-CATALOG] Section 3.4; the -01 overlay
sourceSymbols member (821-824) is now the instance's ordinary
sourceSymbols, Section 7.4.1]</t>
</li>
<li><t>The overlay's instance object carries one member that this document
defines, under the rule of [MOQ-FEC-CATALOG] Section
3.4 that lets a block profile's document define
further keys for the tracks it admits, and further exceptions among
them. [new bridging sentence, Section 7.4.1]</t>
</li>
<li><t>This is an unknown-key exception that this document defines (Section
7.4.1) under [MOQ-FEC-CATALOG] Section 3.4,
which lets a block profile's document define further exceptions.
[-01 6.4.3: &quot;one of the unknown-key exceptions of Section 5.1.1&quot;
re-pointed, since the catalog binding no longer lists scope]</t>
</li>
<li><t>[MOQ-FEC-CORE] Section 10.1 admits a
positive interleaveDepthMs and lets a block profile give the value
zero a meaning of its own.  Under this profile the field MAY also be
zero.</t>
</li>
<li><t>A publisher uses a zero value only with that ISO
protection_window_size alternative. [-01 8.4 item 4, 2923-2925
reworded]</t>
</li>
<li><t>An absent field supplies no catalog-signaled span; neither an absent
nor a zero value supplies an elapsed-time deadline. [-01 5.1 723 and
mmt-01 7.1 1497-1498 merged]</t>
</li>
<li><t>FEC parameters for mmtp-packaged tracks are signaled in the catalog
fec field, whose encoding [MOQ-FEC-CATALOG] defines (its Section 3)
for the configuration data model of
[MOQ-FEC-CORE] Section 10, which is
authoritative for MoQ receivers (that section).</t>
</li>
<li><t>the message MUST NOT signal FEC parameters that contradict the
track's catalog fec instances, and where the two disagree the
catalog governs, as [MOQ-FEC-CORE] Section
10 requires of any in-band signaling.</t>
</li>
<li><t>When used with MMT packaging, the instance parameters of
[MOQ-FEC-CORE] Section 10.1, as the catalog
encodes them ([MOQ-FEC-CATALOG] Section
3.1), map as follows:</t>
</li>
<li><t>scheme: the scheme identifier ([MOQ-FEC-BLOCK] Section 3)
whose [ISO.23008-10] code point the
MMTP AL-FEC message carries in fec_code_id_for_repair_flow (Section
8.3)</t>
</li>
<li><t>blockProfile: ... REQUIRED on every FEC instance, with no default
[replaces &quot;REQUIRED when algorithm is not none&quot;]</t>
</li>
<li><t>See [MOQ-FEC-CATALOG] for the complete catalog field definitions,
[MOQ-FEC-CORE] Section 15.2 for the
scheme registry, and [MOQ-FEC-BLOCK] for the scheme bounds and the
OTI derivation (its Sections 7 and
6.1).</t>
</li>
<li><t>For FEC block alignment and timing to be deterministic, an mmtp
publisher MUST, in addition to the encoder constraints of
[MOQ-FEC-CORE] Section 5.3: [-01 8.4 preamble,
scoped to mmtp]</t>
</li>
<li><t>A zero value is usable only with the ISO protection_window_size
alternative of Section 7.5. [-01 8.4 item 4]</t>
</li>
<li><t>A source track's repair tracks are the track that each of its FEC
instances names in repairTrack and the tracks that name it in source
([MOQ-FEC-CATALOG] Section 3.2; [MOQ-FEC-CORE]
Section 10.2);
[MOQ-FEC-CATALOG] Section 6 gives their
conventional names.</t>
</li>
<li><t>A receiver that holds layer 0 under the AL-FEC message alone,
without the catalog (Section 10), applies the fail-closed check of
[MOQ-FEC-CORE] Section 7.3.2 with
maximum_p_for_repair_flow standing for its O_0 + P_0, by that
check's anchored clause alone: layer 0 has no clause of its own
track, its O_0 being 0 and its symbols' coordinates depending on no
published count, so a packet of the flow generated under a previous
total, which the message can precede (above), fails it closed on
nothing. [-01 6.3.9 1631-1642 and 1713-1715 and -01 12 3844-3851
merged into one copy]</t>
</li>
<li><t>Layered repair is an extension of [ISO.23008-1] that an ISO AL-FEC
message cannot express: each FEC source flow has one FEC encoded
flow, whose one-stage coding structure carries a single
repair_flow_id ([ISO.23008-1] Clause C.6.3), so only layer 0 maps to
an ISO repair flow. [-01 6.3 1206-1211, &quot;Under iso-ssbg1-v1&quot; dropped
as implied]</t>
</li>
<li><t>The codes are those of [MOQ-FEC-BLOCK], which specifies two,
&quot;reed-solomon&quot; (code point 1, mandatory to implement) and &quot;raptorq&quot;
(code point 3, OPTIONAL) (its Sections 3
and 10); ... outside this document and
its companions until the &quot;MoQ FEC Schemes&quot; registry of
[MOQ-FEC-CORE] Section 15.2 lists that
code. [-01 12 3836-3843: &quot;this document's to specify&quot; re-pointed to
the block-codes draft]</t>
</li>
<li><t>... and a receiver that consumes the session without the catalog
takes them from the message alone, holding the one repair flow as
layer 0 under the block total the message bounds, as Section 8.3
specifies. [-01 12 3847-3851: the check itself now lives in Section
8.3]</t>
</li>
<li><t>[MOQ-FEC-CATALOG] adds the per-track fec array of FEC instances and
the fec-repair and fec-source packaging values (its Sections
3 and 3.3)</t>
</li>
<li><t>fec | OPTIONAL | Array | FEC instances, encoded per
[MOQ-FEC-CATALOG] Section 3 (Section 8)</t>
</li>
<li><t>the AL-FEC message's entry for a flow -&gt; the track's FEC instance
(instance 0, encoded as [MOQ-FEC-CATALOG] Section
3.1 specifies): scheme from
fec_code_id_for_repair_flow, &quot;reed-solomon&quot; for code point 1 and
&quot;raptorq&quot; for 3 ([MOQ-FEC-BLOCK] Section
3), ...</t>
</li>
<li><t>a session whose message names any other code is outside this
document and its companions until the &quot;MoQ FEC Schemes&quot; registry of
[MOQ-FEC-CORE] Section 15.2 lists that
code (Section 10)</t>
</li>
<li><t>The conversion of a flow fails where the FEC instance it would yield
fails a rule of [MOQ-FEC-CORE] Sections 10.1
and 10.3, or of [MOQ-FEC-CATALOG] Section
5, on which a receiver fails closed: ... fails
the RaptorQ bound of [MOQ-FEC-BLOCK] Section 7
... ([MOQ-FEC-CORE] Section 10.3 bounds K + totalP -
1 by 2^24 - 1 ...) ... (the Reed-Solomon bound of [MOQ-FEC-BLOCK]
Section 7, which bounds K plus the repair
count of every layer). [rules 5, 6 and 12 of -01 6.3.4 re-pointed]</t>
</li>
<li><t>two source tracks naming one repair track, or two base instances for
one track, are shapes no FEC instance of [MOQ-FEC-CORE] has, a
repair packet belonging to the instance that the configuration
relates to the track it arrived on (its Sections
5.1 and 7.5).</t>
</li>
<li><t>The AL-FEC message does not name blockProfile, which is required on
every FEC instance ([MOQ-FEC-CORE] Section
10.1); the converter sets it to
&quot;iso-ssbg1-v1&quot;, the profile whose entry carries the coding byte 0x14
that the converter accepts (Section 8.3; Section 7.1).</t>
</li>
<li><t>The same holds for the overlay SS_ID (Section 7.4.3): A3SA signing
authenticates neither, and a receiver that requires authenticated
block assignment treats each as this section requires. [-01 8.5.1
3055-3057 moved here]</t>
</li>
<li><t>An attacker who can modify the Source FEC Payload ID without
detection could redirect source symbols to incorrect FEC blocks,
causing recovery failures or corrupted output. [-01 14.5: &quot;it&quot; made
explicit after the first sentence of 14.5 was merged into the
paragraph above]</t>
</li>
<li><t>This document requests the registration of the block profile
&quot;iso-ssbg1-v1&quot; (Section 7.1) in the &quot;MoQ FEC Block Profiles&quot;
registry that [MOQ-FEC-CORE] Section
15.3 creates:</t>
</li>
<li><t>Appendix B, lead sentence, parameter block and the sentence after
the block: This appendix is informative. It carries the MMTP
capacity arithmetic of the -01 FEC draft's catalog example, for two
mmtp tracks with the FEC parameters shown. The block lists each
track's scheme, K, P, T, groupDurationMs, interleaveDepthMs and
bitrate in place of the -01 catalog JSON (-01 Appendix B 4415-4497,
now in [MOQ-FEC-CATALOG]). The video instance is valid only under
&quot;raptorq&quot;, since 625 + 125 = 750 exceeds the &quot;reed-solomon&quot; bound of
255 ([MOQ-FEC-BLOCK] Section 7); the audio
instance, with 32 + 8 = 40, is within that bound under either
scheme.</t>
</li>
<li><t>Appendix B, two sentences carried from -01 Appendix B with their
keyword lowercased because the appendix is informative: &quot;Every
protected MMTP packet still must fit within <tt>T - 2</tt>
(<xref target="iso-ssbg1-v1"></xref>)&quot; (-01: &quot;still MUST fit within <tt>T - 2</tt>&quot;; the rule
is Section 7.1) and &quot;The publisher must choose the actual
source-packet count and block boundaries ...&quot; (-01: &quot;The publisher
MUST choose ...&quot;).</t>
</li>
<li><t>Appendix B, parameter block: the video and audio lines restate the
K, P, T, groupDurationMs, interleaveDepthMs and bitrate values of
the -01 Appendix B catalog, which this document does not carry.</t>
</li>
</ul></li>
</ul>
</section>

<section anchor="changes-since-mmt-00"><name>Changes Since draft-ramadan-moq-mmt-00</name>

<ul spacing="compact">
<li>Object IDs are numbered per group: 0 for the first object of a group
and one more for each later object in source order, across subgroups,
as <xref target="I-D.ietf-moq-msf"></xref> Section 6.2 requires.  In -00 they restarted
at 0 in each subgroup, so several objects of one group shared an
Object ID, which <xref target="I-D.ietf-moq-transport"></xref> Section 2.1 does not allow
(Sections 3.1, 4.1, 4.6, 5, 5.2, and 8). Section 4.6 is retitled
&quot;Object Identifier Assignment and Reconstruction&quot;.</li>
<li>Section 4.1 states that an mmtp track maps one data unit to a
stream, a mapping that <xref target="I-D.ietf-moq-msf"></xref> Section 6 leaves to the
packaging, and keeps the Group and Object numbering of its Sections
6.1 and 6.2.</li>
<li>The join (Section 6.1, step 3) uses the current-group join of
<xref target="I-D.ietf-moq-transport"></xref> Section 3.5: SUBSCRIBE with a Next Object
LOCATION_FILTER and FILL_PARAMETERS with StartGroup = 1. Section 6.2
is now an informative note.  The relay replay and completeness
requirements of -00 are removed, because a publisher must not send
objects outside the requested range (<xref target="I-D.ietf-moq-transport"></xref>
Section 3.3.1).</li>
<li>Section 4.4.1: an mmtp publisher, whose Group numbers follow media
time, does not set the DYNAMIC_GROUPS Track Property to 1, and Section
6.1 notes that NEW_GROUP_REQUEST cannot shorten a wait for the next
group.  A publisher that skips Group numbers on a restart signals the
gap with PRIOR_GROUP_ID_GAP, as <xref target="I-D.ietf-moq-msf"></xref> Section 6.1
recommends.</li>
<li>Section 6.1, step 1: the catalog is read through a subscription that
joins its current group, as <xref target="I-D.ietf-moq-msf"></xref> Section 5 requires,
and a switching-set disagreement is handled as Section 4.4.2
specifies.</li>
<li>Section 4.3: objects of an mmtp track are sent in subgroups, not as
datagrams.  The permission for a relay to drop a subgroup under
congestion is removed; <xref target="I-D.ietf-moq-transport"></xref> Section 5.2 governs
when objects go undelivered.  Section 5.2.1 no longer refers to
datagram paths: on a lossy path a subsample data unit completes,
possibly after FEC recovery, or is discarded as incomplete, like any
other data unit.</li>
<li>Section 4.4: a repair track carries no <tt>altGroup</tt>, so it is not a
member of a switching set.  In -00 it carried the <tt>altGroup</tt> of the
track it protects, although its Groups are FEC blocks, not
media-time-aligned Groups.</li>
<li>Catalog initialization data uses the <tt>initDataList</tt> and <tt>initRef</tt>
fields of <xref target="I-D.ietf-moq-msf"></xref> in place of the per-track <tt>initData</tt>
field, which the current revisions of <xref target="I-D.ietf-moq-msf"></xref> and
<xref target="I-D.ietf-moq-cmsf"></xref> do not define.  A receiver may still accept
<tt>initData</tt> from -00 implementations (Sections 4.5, 6.1, 12, and 12.1).</li>
<li>Switching sets (Sections 4.4 and 4.4.2): an intra-only mmtp track may
use a group duration that divides that of the GOP tracks a whole
number of times.  The exception applies to mmtp tracks only, so cmaf
members keep the Group number alignment of <xref target="I-D.ietf-moq-cmsf"></xref>
Section 3.2.  The g * n Group mapping is the alternate mechanism of
<xref target="I-D.ietf-moq-msf"></xref> Section 4.2, and the 10^-3 tolerance only
classifies a track as intra-only.</li>
<li>Section 4.4.2, Table 3: the optional <tt>timescale</tt> field of cmaf tracks
is attributed to <xref target="I-D.ietf-moq-msf"></xref> Section 5.2.22, not to
<xref target="I-D.ietf-moq-cmsf"></xref>.  A loc switching-set member, like a cmaf one,
carries a catalog <tt>timescale</tt>, which a TIMESCALE Property on the track
must equal, so <xref target="I-D.ietf-moq-loc"></xref> is now a normative reference.  A
track entry without <tt>packaging</tt> is malformed.</li>
<li>Section 8.3: the AL-FEC message carries in
<tt>fec_code_id_for_repair_flow</tt> the <xref target="ISO.23008-10"></xref> Table 1 code point
of the track's algorithm: 3 for &quot;raptorq&quot; and 1 for &quot;reed-solomon&quot;.
Sections 7 and 8.1 follow <xref target="I-D.ramadan-moq-fec"></xref>, which now fully
specifies &quot;reed-solomon&quot; and makes it the mandatory-to-implement
scheme.  RaptorQ is optional there.  Section 7 states that neither the
MMT AL-FEC framework nor <xref target="ATSC-A331"></xref>, which uses it for MMTP
sessions, requires a particular code, so the codes are those
<xref target="I-D.ramadan-moq-fec"></xref> specifies. <xref target="ISO.23008-10"></xref> is now a normative
reference.  The message's <tt>length_of_repair_symbol</tt> carries the
track's <tt>symbolSize</tt>, which Section 12.2 reads back; its
<tt>maximum_p_for_repair_flow</tt> carries the RSB_length of the track's FEC
instance, the block total, which Section 12.2 reads back as
<tt>repairSymbols</tt> less the layers above 0 it lists, listing a layer it
learns from provisioning only where provisioning places it, with every
other listed layer, above every layer it does not list, keeping the
value it first published for a track, and those of the layers it has
listed, across later versions of the message that raise the field,
retiring the source encoding under one that lowers the field below the
total its catalog derives for the highest layer it lists
(<xref target="I-D.ramadan-moq-fec"></xref> Section 6.3.9), appending at the next index a
layer it learns from provisioning after it published the track only
where provisioning places it next above the highest layer it lists
with no unlearned layer below it, the field's rise alone placing none,
and listing one provisioning does not so place, or whose symbols the
field it first read already counted, only by retiring the source
encoding and publishing a new source encoding.  Section 12.2 states
that the field is a bound in <xref target="ISO.23008-1"></xref> where &quot;iso-ssbg1-v1&quot;
carries P as every repair packet's RSB_length, lists the repair track
only once a repair packet of the flow carries at least the field, and
fails the conversion of a flow whose repair packets carry an
RSB_length below the field on a block at or after, in the serial order
of <xref target="I-D.ramadan-moq-fec"></xref> Section 7.5, one received carrying at least
the field, since a publisher that appends a layer sends the new
version only after the last repair packet generated under the previous
total (Section 8.3) while the path keeps no order between the message
and the repair flow (Section 5.2.2); once the track is published such
a packet, below the total its catalog derives for the highest layer it
lists, retires the source encoding, the new source encoding listing the
repair track again as the first listing did; a previous-total packet
of an earlier block fails a receiver of the catalog closed on nothing,
the own-track clause of <xref target="I-D.ramadan-moq-fec"></xref> Section 6.3.9 applying
to layers above 0 alone.  Section 8.3 sets the entry's
<tt>number_of_assets</tt> to 1, the one Asset being the source track's.
Section 12.2 accepts only an entry with a <tt>number_of_assets</tt> of 1, the
coding byte 0x14 and code point 1 or 3, and fails the conversion of a
flow whose <tt>fec</tt> object would fail a catalog rule of
<xref target="I-D.ramadan-moq-fec"></xref> Sections 5.1 and 6.3.4 (a maximum K or maximum
P of 0, a symbol length below 14, a RaptorQ symbol length that is not
a multiple of 8, a RaptorQ maximum K above 56403 or maximum K plus
maximum P above 2^24, a Reed-Solomon maximum K plus maximum P above
255), of one whose repair flow is packet_id 0, the flow's own
packet_id or the packet_id of another track of the session, and of the
flows of two entries that name one repair flow or list one Asset.</li>
<li>Section 1.1: the CARP row is removed.  CARP (draft-law-moq-carp-00)
has expired, and its content continues as <xref target="I-D.ietf-moq-cmsf"></xref>. The
FEC column names the <xref target="I-D.ramadan-moq-fec"></xref> block profile for each
packaging, including &quot;moq-object-v1&quot; for loc and cmaf tracks.  The
section names MSF, LOC and CMSF with their references, and the cases
that suit each packaging are no longer stated with BCP 14 keywords.</li>
<li>Sections 12.2 and 12.3 and Appendix A of -00 (the S-TSID conversion
example): the S-TSID conversion of -00 is removed, and this appendix
of changes is now Appendix A.  This document targets MMTP services and
not ROUTE, so Section 12.2 now derives the catalog from MMTP
signaling, the MP table and the AL-FEC message, there is no export to
broadcast signaling, and the Abstract, Section 1, Section 2 and
Section 7 no longer name S-TSID.  Section 7.2 no longer cites the
S-TSID <tt>fecOTI</tt> attribute and says the AL-FEC message carries no OTI,
and the Section 8.1 <tt>algorithm</tt> rule reads the code point from
<tt>fec_code_id_for_repair_flow</tt> alone, with no ROUTE-ingest case.</li>
<li>Sections 4.4.2 and 12.1: the example catalogs carry the fields that
<xref target="I-D.ietf-moq-msf"></xref> requires.</li>
<li>Section 13: a MoQ relay treats MMTP headers as opaque object payload.</li>
<li>Editorial: abbreviations such as ISOBMFF, SSM, ASM, AMT, ABR, GOP and
OTI are expanded, and Section 2 defines AU.  Section 1 says &quot;FEC&quot;
instead of &quot;Unified FEC&quot;.  Capitalized words that are not BCP 14
keywords (NOT, LOW, NO) are lowercased.  Section 3.1 cites <xref target="RFC5905"></xref>
for the NTP short format, Section 9 cites <xref target="RFC9706"></xref> for TreeDN, and
Section 13 cites <xref target="ISO.23001-7"></xref> for Common Encryption.  Section 14
uses the name &quot;MOQT Streaming Format&quot;.</li>
<li><xref target="ISO.14496-12"></xref> (ISOBMFF) is a normative reference, and
<xref target="ISO.23008-10"></xref> is dated.</li>
<li>References to the companion drafts point to their -01 revisions.</li>
</ul>
</section>
</section>

<section anchor="symbol-capacity-example"><name>MMTP Symbol Capacity Example</name>
<t>This appendix is informative.  It carries the MMTP capacity arithmetic
of the catalog example of draft-ramadan-moq-fec-01
(<xref target="I-D.ramadan-moq-fec"></xref>), Appendix B of that revision, as a
historical example: its parameters are the ones shown
here, and are not those of the worked catalog of <xref target="MOQ-FEC-CATALOG"></xref>.</t>

<artwork><![CDATA[video: scheme raptorq, K 625, P 125, T 1000,
       groupDurationMs 1000, interleaveDepthMs 1000,
       bitrate 4990000 bit/s
audio: scheme raptorq, K 32, P 8, T 512,
       groupDurationMs 1000, interleaveDepthMs 1000,
       bitrate 128000 bit/s
]]></artwork>
<t>The video instance is valid only under &quot;raptorq&quot;, since 625 + 125 = 750
exceeds the &quot;reed-solomon&quot; bound of 255 (<xref target="MOQ-FEC-BLOCK"></xref> Section
7); the audio instance, with 32 + 8 = 40, is
within that bound under either scheme.</t>
<t>Parameter consistency: both tracks use one-second MMTP groups (one MPU
per MoQ Group), and each has a 1000 ms source/repair send-span budget.
The group duration does not determine the FEC partition.  A worked
capacity check must include the MMTP and MPU-mode headers, not only the
media bitrate.  With no MMTP header extension, a timed FT=2 packet has
the following media capacity, depending on whether it starts a data unit
(Section 5.2):</t>

<artwork><![CDATA[FI=0 or FI=1: T - 2 (length) - 12 (MMTP) - 8 (MPU) - 14 (DU) = T - 36
FI=2 or FI=3: T - 2 (length) - 12 (MMTP) - 8 (MPU)           = T - 22
]]></artwork>
<t>The source packet also carries a 4-byte Source FEC Payload ID on the
wire, outside the protected packet and therefore outside these symbol
budgets (<xref target="source-fec-payload-id"></xref>).  FT=0/FT=1 metadata consumes
source packets but does not carry sample bytes, and any MMTP extension
consumes additional space.  Every protected MMTP packet still must fit
within <tt>T - 2</tt> (<xref target="iso-ssbg1-v1"></xref>).  Using the larger continuation
capacity gives a media ceiling, not a packetization plan:</t>

<ul>
<li><t>Video: 4,990,000 bit/s x 1.0 s / 8 = 623,750 bytes of media per
one-second group.  <tt>K x (T - 22) = 625 x 978 = 611,250</tt> bytes is an
upper bound on the media capacity of one full block.  The media
therefore needs at least <tt>ceil(623,750 / 978) = 638</tt> source packets
and at least two K=625 blocks; MMTP metadata, fragmentation, and
authored packet boundaries can require more.  Repair overhead is <tt>P /
K = 125 / 625 = 20%</tt>.</t>
</li>
<li><t>Audio: 128,000 bit/s x 1.0 s / 8 = 16,000 bytes of media per group;
the upper-bound capacity of one full block is <tt>K x (T - 22) = 32 x 490
= 15,680</tt> bytes.  The media therefore needs at least
<tt>ceil(16,000 / 490) = 33</tt> source packets and at least two K=32 blocks;
packetization and metadata can require more.  Repair overhead is
<tt>P / K = 8 / 32 = 25%</tt>.</t>
</li>
</ul>
<t>The publisher must choose the actual source-packet count and block
boundaries so that every packet, including FT=0 and FT=1 metadata, fits
the selected symbol size and every block's repair fields describe the
actual <tt>(SS_Start, SSB_length)</tt> partition.  These calculations are
capacity examples, not a rule that one FEC block equals one Group.</t>
</section>

<section anchor="acknowledgements" numbered="false"><name>Acknowledgements</name>
<t>Portions of this document were drafted with the assistance of AI
tools.  The author reviewed, edited and takes responsibility for all
of its content.</t>
</section>

</back>

</rfc>
