<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rfc [
  <!ENTITY nbsp "&#160;">
]>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     docName="draft-mekuria-avtcore-rtp-payload-mlm-tokens-00"
     category="std"
     ipr="trust200902"
     submissionType="IETF"
     consensus="true"
     tocInclude="true"
     tocDepth="3"
     symRefs="true"
     sortRefs="false"
     version="3">
  <front>
    <title abbrev="RTP Payload for MLM Tokens">RTP Payload Format for Token Streams of Multimodal AI: Discrete Tokens and Continuous Embeddings</title>
    <seriesInfo name="Internet-Draft" value="draft-mekuria-avtcore-rtp-payload-mlm-tokens-00"/>
    <author initials="R." surname="Mekuria" fullname="Rufael Mekuria" role="editor">
      <organization>Huawei Technologies Co., Ltd.</organization>
      <address>
        <email>rufael.mekuria@huawei.com</email>
      </address>
    </author>
    <date year="2026" month="December"/>
    <workgroup>AVTCore Working Group</workgroup>
    <abstract>
<t>This document specifies an RTP payload format for AI data streams exchanged by distributed multi-modal AI pipelines. It covers two representations: discrete tokens (codebook indices) and continuous embeddings such as the output of a vision encoder in a split vision-language model. It reuses the shared AI Data Unit header defined for the RTP, Media over QUIC Transport (MOQT), and HTTP bindings, and maps timing, sequencing, priority, and multiplexing onto native RTP mechanisms. It defines per-element position lists for selected (pruned) token subsets, an end-of-group indication for sender-side truncation, and element-aligned packetization that turns packet loss into the loss of whole tokens. It addresses the transport requirements of the companion framework document and establishes the registries for the Representation Type and Modality code points shared with the other bindings.</t>
    </abstract>
  </front>
  <middle>
<section anchor="sect-1">
<name>Introduction</name>
<t>Distributed multi-modal AI pipelines exchange AI data between encoding, inference, and decoding stages (see <xref target="I-D.discrete-token-transport-mlm"/> for motivation, the representation taxonomy, and the transport requirements REQ-1 through REQ-13). This document defines an RTP <xref target="RFC3550"/> payload format for such streams in real-time deployments.</t>
<t>Two representations are specified:</t>
<ul spacing="normal">
<li><t>Discrete tokens (RType=0): integer codebook indices produced by vector quantization, as used by token-native multimodal models and neural codecs.</t></li>
<li><t>Continuous embeddings (RType=1): floating-point or quantized vectors, in particular the output of the vision encoder (vision transformer and projector) of a vision-language model whose language model runs remotely. This split is used by currently popular deployed vision-language models, and its carriage over RTP has been evaluated with measured task accuracy under packet loss <xref target="SA4-EMB"/>.</t></li>
</ul>
<t>The format uses a single, small payload header (shared with the MOQT <xref target="I-D.moqt-mlm-token-streams"/> and HTTP <xref target="I-D.http-mlm-tokens"/> specifications) carried after the RTP fixed header, with RTP itself providing timing, sequencing, and loss detection. Carrying AI data in this compact binary form, rather than as the text or JSON used by current AI-serving interfaces, keeps per-token wire cost close to the size of the data itself and removes serialization latency from the real-time path (see <xref target="I-D.discrete-token-transport-mlm"/> Sections 4.5 and 7.5).</t>
<t>Applicability. This payload format targets token streams that have a media clock and benefit from real-time delivery, typically the uplink from a device that tokenizes or encodes captured media. Generated tokens returned by a model are often delivered over HTTP <xref target="I-D.http-mlm-tokens"/>. This payload format is intended for RTP implementations that allow new payload formats to be added and for operator real-time media services.</t>
<t><xref target="sect-3"/> gives a short background on the data carried. <xref target="sect-4"/> defines the payload format: the use of the RTP header, the payload header and payload data, packetization, positions, and token groups. Sections 5 to 7 cover receiver behaviour, priority and loss resilience, and model configuration. <xref target="sect-8"/> defines the payload format parameters and their use in SDP, and <xref target="sect-9"/> gives examples.</t>
</section>
<section anchor="sect-2">
<name>Conventions and Terminology</name>
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals.</t>
<t>This document uses the terms AI Data, Token, Discrete Token, Continuous Embedding, Representation Type, Modality, Layer, Codebook, Adapter, and Model Configuration as defined in <xref target="I-D.discrete-token-transport-mlm"/>. The data model is used consistently at three granularities, from the atomic element up to the unit of information:</t>
<dl newline="false" spacing="normal">
<dt>Element:</dt>
<dd><t>the atomic payload unit. For discrete tokens, a single codebook index of b bits (16 by default). For continuous embeddings, a single vector (one token row) of dimension d in the negotiated element format (<xref target="sect-4.3"/>).</t></dd>
<dt>AI Data Unit (ADU):</dt>
<dd><t>the unit of uniform handling -- one payload header (<xref target="sect-4.2"/>) plus elements of one token group that share the same handling attributes (representation type, modality, layer, and priority). An ADU is carried as exactly one RTP payload. Elements that differ in priority or layer are carried in separate ADUs, so that a single priority applies to the whole ADU. The only case in which content spans packets is an element too large for one packet, which is carried in a sequence of ADUs by element fragmentation (<xref target="sect-4.4"/>).</t></dd>
<dt>Token group:</dt>
<dd><t>one or more ADUs that jointly represent one unit of information (e.g., all tokens of one image or one video frame); the token group is the unit mapped to a 3GPP PDU Set (<xref target="sect-4.6"/>).</t></dd>
<dt>Position:</dt>
<dd><t>the location of an element within the position space of its token group, for its representation type, modality, and layer (e.g., the patch row and column of a visual token in the frame's token grid, or the index of a token in an audio segment; <xref target="sect-4.5"/>).</t></dd>
<dt>Truncation:</dt>
<dd><t>the decision by a sender not to transmit the remaining elements of a token group (<xref target="sect-4.6"/>).</t></dd>
</dl>
</section>
<section anchor="sect-3">
<name>Media Format Background</name>
<t>This section gives a short overview of the data carried; more background, measured traffic characteristics, and the transport requirements are given in <xref target="I-D.discrete-token-transport-mlm"/> Sections 3, 5, 7, and 8.</t>
<t>Discrete tokens. A tokenizer maps each segment of the input (e.g., an image patch or an audio frame) to the index of an entry of a learned codebook of K entries. An index needs ceil(log2 K) bits; codebooks of up to 65536 entries are common, so a token is commonly carried as a 16-bit integer, and larger codebooks use more bits. Hierarchical schemes such as Residual VQ produce several indices per segment, of decreasing importance.</t>
<t>Continuous embeddings. A modality encoder, for example the vision encoder of a vision-language model, maps each image patch (or group of patches) to a vector of dimension d in the input space of the language model; a frame typically yields a few hundred such vectors. Raw, a vector is a few kilobytes. A sender can keep only the most important vectors (token selection), reduce their dimension with a trained adapter, and quantize them, which can reduce a vector to a few hundred octets.</t>
<t>In both cases the tokens of one image, video frame, or audio segment form one unit of information, called a token group in this document. In reported evaluations, tokens differed in their importance to the task, and task accuracy degraded gradually when packets carrying whole tokens were lost (<xref target="I-D.discrete-token-transport-mlm"/> Section 7). The payload format is designed around these properties: each packet carries whole tokens, their positions where needed, and an importance value, and the end of each token group is signaled.</t>
<t>The codebook, encoder, adapter, and quantizer -- the model configuration -- are specific to a model and are needed to interpret the tokens. They are not defined or carried by this payload format; they are identified in signaling (<xref target="sect-7"/>).</t>
</section>
<section anchor="sect-4">
<name>Payload Format</name>
<t>An RTP packet of this payload format carries exactly one AI Data Unit after the RTP header: a payload header (<xref target="sect-4.2"/>) followed by the payload data (<xref target="sect-4.3"/>), as shown in Figure 1.</t>
<figure>
<name>RTP packet carrying one AI Data Unit</name>
<artwork type="ascii-art"><![CDATA[
+---------------------------------------------------------------+
| RTP header [RFC3550], including any CSRC list and header      |
| extensions (Section 4.1)                                      |
+---------------------------------------------------------------+
| Payload header: 8 octets plus optional fields (Section 4.2)   |
+---------------------------------------------------------------+
| Payload data: Element Count elements (Section 4.3)            |
+---------------------------------------------------------------+
]]></artwork>
</figure>
<section anchor="sect-4.1">
<name>RTP Header Usage</name>
<dl newline="false" spacing="normal">
<dt>Payload Type (PT):</dt>
<dd><t>A dynamic PT (96-127) negotiated via SDP.</t></dd>
<dt>Timestamp:</dt>
<dd><t>The media-clock instant of the token group (e.g., the capture time of the video frame) carried by the packet, satisfying REQ-4. Clock rate is negotiated in SDP (e.g., the audio sample rate, or 90000 for image/video). All packets of the same token group carry the same timestamp; the timestamp therefore also identifies the token group when no Group Identifier is used.</t></dd>
<dt>Sequence Number:</dt>
<dd><t>Per-packet sequencing per <xref target="RFC3550"/>, used with Seq Start for loss and reordering detection (REQ-3).</t></dd>
<dt>Marker (M):</dt>
<dd><t>Set to 1 on the last packet of a token group. A packet with T=1 MUST have M=1. This mirrors common RTP video usage.</t></dd>
<dt>SSRC and multiplexing (REQ-8):</dt>
<dd><t>Each media source and modality is sent as its own RTP stream with its own SSRC <xref target="RFC3550"/> <xref target="RFC7656"/>; for example, audio tokens and visual embeddings from the same device use two SSRCs, each with its own clock rate. The Modality field in the payload header describes the content. Per-packet priority and resilience (<xref target="sect-6"/>) require neither several SSRCs per source nor a layered structure.</t></dd>
</dl>
</section>
<section anchor="sect-4.2">
<name>Payload Header</name>
<t>The payload header is the AI Data Unit header shared by the three bindings (RTP, MOQT, HTTP), so that a payload is interpreted identically regardless of transport. The fixed part is 8 octets. Optional fields follow in the order shown, each present only when its flag is set; all fields are in network byte order:</t>
<figure>
<name>Payload header</name>
<artwork type="ascii-art"><![CDATA[
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Ver=1 | RType |Modal. | Layer |S|E|I|C|  PRI  |G|X|P|T|F| Rsv |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|         Element Count         |          Seq Start            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:  Codebook/Model ID (16)       :            (present iff C=1)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:                  Group Identifier (32)                        :
:                                               (present iff G=1)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:  Position 0 (16)              :  Position 1 (16)  ...         :
:              (Element Count entries, present iff P=1)         :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:  Payload data ...  (Section 4.3)                              :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
]]></artwork>
</figure>
<t>The header length is therefore 8 + 2*C + 4*G + 2*P*(Element Count) octets, computable from the fixed part alone.</t>
<dl newline="false" spacing="normal">
<dt>Ver (4):</dt>
<dd><t>Format version, MUST be 1. A receiver MUST discard an ADU with any other version.</t></dd>
<dt>RType (4):</dt>
<dd><t>Representation Type. 0 = Discrete-Token, 1 = Embedding (continuous embeddings), 0xF = Experimental; others unassigned (<xref target="sect-12.2"/>). (Satisfies REQ-11.) A receiver MUST discard an ADU with an RType it does not support. This payload format specifies RType=0 and RType=1 (<xref target="sect-4.3"/>).</t></dd>
<dt>Modality (4):</dt>
<dd><t>0 AUDIO, 1 VIDEO, 2 IMAGE, 3 SPEECH, 4 METADATA, 5 IMAGE_TEXT, 6 VIDEO_TEXT, 7 SPEECH_TEXT, 8 GENERIC, 0xF EXPERIMENTAL; others unassigned (<xref target="sect-12.3"/>).</t></dd>
<dt>Layer (4):</dt>
<dd><t>Optional, informational scalability layer (e.g., the Residual VQ quantization level, or an embedding precision/rank layer); 0 for single-level schemes. This field is descriptive metadata and MUST NOT be required for forwarding, dropping, or resilience decisions, which use PRI (<xref target="sect-6"/>).</t></dd>
<dt>Flags:</dt>
<dd><t>S - when F=1, first fragment of the element. When F=0, S MUST be 1. E - when F=1, last fragment of the element. When F=0, E MUST be 1. I - independently decodable (a resynchronization point). C - Codebook/Model ID present (adds 2 octets). G - Group Identifier present (adds 4 octets). X - Extension present; reserved for future extensions. It MUST be 0 in this version. Because the length of an extension is not defined, a receiver MUST discard an ADU with X=1. P - Position List present (adds 2 octets per element; <xref target="sect-4.5"/>). T - End of token group: this is the last ADU the sender will send for the current token group, whether or not all of the group's elements were sent (<xref target="sect-4.6"/>). F - Element fragment: the packet carries part of a single element that is too large for one packet (<xref target="sect-4.4"/>).</t></dd>
<dt>PRI (4):</dt>
<dd><t>Per-packet priority/importance: 1 = highest importance (protect), 15 = lowest (most droppable), and 0 = importance not specified. The values are aligned with the PDU Set Importance of <xref target="TS26.522"/>. A generic marking used for preferential scheduling, dropping, unequal loss protection, and sender-side truncation order (Sections 6 and 10); it does not depend on any layer structure.</t></dd>
<dt>Rsv (3):</dt>
<dd><t>Reserved, set to 0, ignored on receipt.</t></dd>
<dt>Element Count (16):</dt>
<dd><t>Number of elements carried in this ADU. It MUST NOT be 0, except in an end-of-group marker (<xref target="sect-4.6"/>). When F=1 it MUST be 1.</t></dd>
<dt>Seq Start (16):</dt>
<dd><t>When F=0, the zero-based index, within the token group, of the first element of this ADU, counted separately for each combination of representation type, modality, and layer. It lets a receiver place the elements of an ADU in their token group even when other ADUs of the group are lost. A token group can therefore hold at most 65536 elements per such combination. When F=1, the zero-based octet offset, within the encoded element, of the first element octet carried in this packet; fragment offsets are therefore limited to 65535 octets.</t></dd>
<dt>Codebook/Model ID (16, optional):</dt>
<dd><t>Opaque identifier, present only if C=1, not interpreted by the transport (<xref target="sect-7"/>). It is a short label whose association with a model configuration is agreed out of band; it is not an encoding of the "codebook-id" parameter (<xref target="sect-8.2"/>).</t></dd>
<dt>Group Identifier (32, optional):</dt>
<dd><t>Present only if G=1. An identifier that is constant across all AI Data Units of one token group -- one unit of information, e.g., one image, one video frame, or one audio segment. It is opaque to the transport and to network nodes, which use it only for equality (to group AI Data Units that belong together; see <xref target="sect-4.6"/>) and never parse or interpret it. Its scope is one RTP stream (SSRC); a sender MUST NOT reuse a value for another token group of the same stream while ADUs of the earlier group may still be in transit. An endpoint MAY additionally use it to associate the elements with an application-level frame, image, or request identifier.</t></dd>
<dt>Position List (16 x Element Count, optional):</dt>
<dd><t>Present only if P=1. Entry k gives the position of element k of this packet within the position space of its token group, encoded in the position format of <xref target="sect-4.5"/>. When P=0, the elements are contiguous: element k of the ADU is element Seq Start + k of its token group, for its representation type, modality, and layer, in the token order of the group (e.g., raster order for a grid).</t></dd>
</dl>
</section>
<section anchor="sect-4.3">
<name>Payload Data</name>
<t>The payload header is followed by the payload data: the concatenation of Element Count elements, each of the negotiated element width. Only the header fields are meaningful to the transport; the elements are opaque payload, interpretable only by an endpoint holding the codebook or model (<xref target="sect-7"/>). One ADU carries elements of one handling class (representation type, modality, layer, and PRI); elements of different layer or priority are placed in separate ADUs and, where they form one unit of information, are handled together as a token group (<xref target="sect-4.6"/>).</t>
<t>Discrete tokens (RType=0). The element is a codebook index of b bits, where b is given by the "token-bits" parameter (<xref target="sect-8.2"/>; default 16) and a codebook of K entries needs b &gt;= ceil(log2 K). The indices are packed most significant bit first without gaps. The payload data of each packet starts on an octet boundary and its last octet is padded with zero bits, so that it is ceil(Element Count * b / 8) octets and a lost packet never affects the elements of another packet. With the default b=16, the payload data is a sequence of 16-bit unsigned, big-endian integers.</t>
<t>Continuous embeddings (RType=1). The element is one vector (one token row) of dimension d. The dimension and the element format are fixed per stream and negotiated in SDP (<xref target="sect-8"/>); they are not carried per packet:</t>
<dl newline="false" spacing="normal">
<dt>emb-dim (d):</dt>
<dd><t>number of components per vector, e.g., the language model hidden size (post-projector) or the reduced dimension output by an adapter.</t></dd>
<dt>elem-format:</dt>
<dd><t>the component format:</t>
<dl newline="false" spacing="compact" indent="12">
<dt>"bf16"</dt><dd>16-bit bfloat16: 1 sign bit, 8 exponent bits, and 7 fraction bits, i.e., the 16 most significant bits of an IEEE 754 binary32 value <xref target="IEEE754"/></dd>
<dt>"fp16"</dt><dd>IEEE 754 binary16 <xref target="IEEE754"/></dd>
<dt>"fp8-e4m3"</dt><dd>8-bit floating point in the E4M3 format of <xref target="OFP8"/> (1 sign bit, 4 exponent bits with bias 7, 3 fraction bits, no infinities)</dd>
<dt>"int8"</dt><dd>8-bit signed two's complement</dd>
<dt>"int4"</dt><dd>4-bit signed two's complement, two components per octet, first component in the high-order nibble; an odd final component is padded with a zero nibble</dd>
</dl></dd>
</dl>
<t>Floating-point components are in network byte order. For the integer formats ("int8", "int4"), each element is preceded by a 16-bit bfloat16 scale s, and the dequantized component value is s * q for each integer component q.</t>
<t>The encoded element width is therefore</t>
<artwork type="ascii-art"><![CDATA[
W = (2 if elem-format is an integer format, else 0)
    + ceil(d * bits(elem-format) / 8)  octets.
]]></artwork>
<t>Examples: d=256 int8: W = 258 octets. d=2048 bf16: W = 4096 octets. d=5120 int8: W = 5122 octets. Because fragment offsets are 16 bits (<xref target="sect-4.2"/>), W MUST NOT exceed 65536 octets when element fragmentation (F=1) is used.</t>
</section>
<section anchor="sect-4.4">
<name>Packetization</name>
<t>Packetization is element-aligned, which is the basis of loss resilience: the impairment seen by the receiver is then the loss of whole elements, never a partly corrupted element.</t>
<dl newline="false" spacing="normal">
<dt>Batching (REQ-2):</dt>
<dd><t>A packet SHOULD carry as many elements as fit (Element Count &gt; 1 where possible), because a discrete token is a few octets and per-packet overhead would otherwise dominate. Elements of a different layer or priority are placed in separate ADUs (<xref target="sect-2"/>), so a single PRI applies to the whole packet.</t></dd>
<dt>Element alignment (REQ-7):</dt>
<dd><t>A sender MUST NOT split an element across packets unless W exceeds the payload capacity available for a single element. Otherwise each packet carries as many complete elements as fit in the available payload capacity (e.g., four d=256 int8 elements per packet of 1100 octets of payload, or several hundred discrete tokens). When the elements of a token group that share the same handling attributes do not fit in one packet, they are carried in several ADUs, each in its own packet, split at element boundaries. Each ADU carries the Seq Start of its first element within the token group (and, where P=1, the positions of its elements), so each packet is independently usable: a lost packet removes only the elements it carried.</t></dd>
<dt>Element fragmentation (F=1):</dt>
<dd><t>An element whose width exceeds the payload capacity (typically a wide embedding vector) is carried in an ADU of its own and split by element fragmentation: every fragment sets F=1 and Element Count=1; Seq Start carries the octet offset of the fragment within the encoded element. The fragments do not overlap and together cover the element: the first (Seq Start=0) sets S=1, and the last, whose octets end at the element width, sets E=1. Every fragment sets P=1 and carries the position of the element, since Seq Start does not give it. A receiver MUST discard an element for which any fragment is missing at the time the token group is released (<xref target="sect-5.2"/>). For example, for d=2048 int8 (W = 2050 octets) an element spans two packets; for d=5120 int8 it spans five packets. The loss of any one of them removes that token only.</t></dd>
</dl>
</section>
<section anchor="sect-4.5">
<name>Positions and Token Selection</name>
<t>A sender may transmit a selected subset of the tokens of a token group (token selection or pruning), chosen by an importance measure, for example the most important visual tokens of a frame. The receiver then needs the original position of every received element, both to place it in the model's positional encoding and to tolerate loss without re-signaling.</t>
<ul spacing="normal">
<li><t>When the elements of a token group are not the complete, ordered token sequence, the sender MUST set P=1 in every ADU of the group, so that every packet lists the positions of the elements it carries. Each packet is then self-describing: no separate per-frame metadata packet is needed, and losing a packet never makes other packets uninterpretable.</t></li>
<li><t>Each position is 16 bits, and its format depends on the Modality:</t>
<ul spacing="normal">
<li><t>For VIDEO and IMAGE, the high-order octet is the token-grid row and the low-order octet the token-grid column (grids up to 256 x 256). The receiver does not need the grid size to place a token, so this format suits dynamic resolution.</t></li>
<li><t>For all other modalities, the position is the zero-based index of the element within its token group (up to 65536 elements), e.g., the index of an audio token within a segment.</t></li>
</ul></li>
<li><t>Positions are relative to the token group and to the representation type, modality, and layer; elements of different layers may have the same position. For temporal token merging (one token group covering several frames), the token group is the merged unit and its RTP timestamp is that of its first frame; a temporal component of the position is not defined in this version and is for further study.</t></li>
</ul>
</section>
<section anchor="sect-4.6">
<name>Token Groups and End of Group</name>
<t>One or more ADUs often jointly carry one unit of information (e.g., all tokens of one image or video frame). Such a token group (<xref target="sect-2"/>) is the natural unit for coordinated handling and aligns with the 3GPP PDU Set concept. The packets of a token group share one RTP timestamp; a token group MAY in addition be identified by a common Group Identifier (G=1, <xref target="sect-4.2"/>) carried in every packet of the group, which lets a receiver or an endpoint-adjacent function group the packets without transport-specific cues. The RTP marker bit delimits the last packet of a group.</t>
<dl newline="false" spacing="normal">
<dt>End of group:</dt>
<dd><t>The sender sets T=1 (and M=1) on the last packet it sends for a token group, whether or not all of the group's elements were sent. If that packet has already been sent, the sender MAY send an end-of-group marker: an ADU with T=1, Element Count=0, S=E=1, F=0, P=0, C=0, Seq Start=0, no Position List, and no payload data. It ends the entire token group, across all layers. It carries the RType and Modality of the group, the group's RTP timestamp, and the group's Group Identifier (G=1) if one is used; its Layer field is set to 0 and ignored on receipt. The T flag lets the receiver distinguish packets that were never sent from packets that are delayed or lost, and release the group without waiting for its deadline.</t></dd>
</dl>
</section>
</section>
<section anchor="sect-5">
<name>Receiver Behaviour</name>

<section anchor="sect-5.1">
<name>Validation</name>
<t>A receiver MUST discard an ADU that it cannot interpret consistently, in particular when:</t>
<ul spacing="normal">
<li><t>Ver is not 1, RType or Modality is not supported or not assigned, or X=1 (<xref target="sect-4.2"/>);</t></li>
<li><t>F=0 and S or E is 0, or F=1 and Element Count is not 1 or P=0;</t></li>
<li><t>Element Count is 0 and the ADU is not a valid end-of-group marker (<xref target="sect-4.6"/>);</t></li>
<li><t>F=0 and the payload length differs from the length computed from the header, Element Count, and the element width;</t></li>
<li><t>F=1 and Seq Start plus the number of element octets carried exceeds the element width, S=1 with a non-zero Seq Start, or the fragment overlaps another fragment of the same element; or</t></li>
<li><t>a position is outside the position space (<xref target="sect-4.5"/>), or occurs twice for the same representation type, modality, and layer within a token group. The fragments of one element (F=1) repeat the element's position and count as one element; this check applies to complete elements.</t></li>
</ul>
<t>Discarding an ADU removes only its own elements; the rest of the token group remains usable.</t>
</section>
<section anchor="sect-5.2">
<name>Forming and Releasing Token Groups</name>
<ul spacing="normal">
<li><t>The receiver forms the input of a token group from the complete elements received, placed at their positions. For discrete tokens, missing elements can be concealed, e.g., by repeating or interpolating the previous unit (<xref target="sect-6.2"/>). For continuous embeddings, missing elements MAY simply be omitted, in which case the token group is equivalent to a more strongly pruned one, which models that accept variable-length, position-aware input handle natively, or MAY be replaced by a concealment value such as the mean of the received embeddings; both approaches were used in reported evaluations.</t></li>
<li><t>A token group is released to the model when its end has been indicated (a packet with T=1 or M=1 has been received) and a receiver-chosen reordering window has then passed, or when a receiver-chosen deadline for the group expires, whichever comes first. The group is released with the elements received at that time. A jitter buffer MUST be able to release a token group with missing packets; it MUST NOT discard a token group only because some of its packets are missing.</t></li>
<li><t>Retransmission is not required. The evaluated configurations operated without retransmission and maintained task accuracy over a useful range of loss rates for both representations (<xref target="I-D.discrete-token-transport-mlm"/> Section 7.4); for continuous embeddings, element-aligned carriage kept task accuracy within about two points of the loss-free case at uniform packet loss up to 30 % <xref target="SA4-EMB"/>. RTP retransmission <xref target="RFC4588"/> MAY be used for high-priority ADUs when the deadline permits (<xref target="sect-6.2"/>).</t></li>
</ul>
</section>
</section>
<section anchor="sect-6">
<name>Priority and Loss Resilience</name>
<t>This payload format does not rely on layered (SVC-style) transport or on several SSRCs per source. Importance is expressed per packet, and loss is handled generically by exploiting the intrinsic robustness of tokenized content. This may suit wireless and other lossy paths, where generic resilience and unequal error protection can be preferable to source-layer-aware dropping.</t>
<section anchor="sect-6.1">
<name>Importance</name>
<t>The PRI field (REQ-6) marks the relative importance of each packet (1 highest, 15 lowest, 0 not specified), and, where grouping is used, a common Group Identifier (<xref target="sect-4.2"/>) marks the packets of one token group. PRI is generic: single-level tokenizers, hierarchical ones (RVQ), and embeddings ranked by importance all use it. The Layer field, if present, is informational only.</t>
<t>PRI SHOULD reflect the relative importance of the elements in the ADU, for example the layer for hierarchical discrete tokens, or the score used for token selection (vector norm or attention). A sender SHOULD place elements of similar importance in the same ADU, so that PRI-based protection, network dropping (<xref target="sect-6.3"/>), and sender-side truncation (<xref target="sect-4.6"/>) all remove the least important tokens first. When no importance information is available, a sender SHOULD set PRI to 0 (not specified) in all ADUs.</t>
</section>
<section anchor="sect-6.2">
<name>Loss Resilience</name>
<dl newline="false" spacing="normal">
<dt>Generic loss resilience (REQ-7):</dt>
<dd><t>Packet loss removes whole elements and never corrupts the remaining ones. For discrete tokens, each element within the codebook range is a valid symbol, so loss produces localized, concealable gaps rather than decoder failure, unless the model makes later tokens depend on earlier ones (see <xref target="I-D.discrete-token-transport-mlm"/> Section 7.2). A receiver treats an index outside the codebook range like a missing element. Receivers SHOULD conceal lost packets (e.g., repeat or interpolate the previous unit) and MAY use the I flag to resume cleanly at the next independently decodable unit. For continuous embeddings, the receiver proceeds with the elements received (<xref target="sect-5.2"/>).</t></dd>
<dt>Optional loss protection:</dt>
<dd><t>Where residual loss is too high for concealment alone, generic protection MAY be added and applied according to PRI (unequal protection): RTP retransmission <xref target="RFC4588"/> for high-priority packets when the deadline permits, or forward error correction <xref target="RFC8627"/> / redundant transmission <xref target="RFC2198"/> weighted toward high-priority packets. These mechanisms are priority-driven, not layer-driven, and need no multi-SSRC structure.</t></dd>
</dl>
</section>
<section anchor="sect-6.3">
<name>Network-Visible Marking</name>
<t>Every field of the payload header is carried in the RTP payload and is therefore encrypted under SRTP. This payload format does not define an RTP header extension for network-visible marking. Where a network needs per-packet importance or token-group membership, existing mechanisms can be used, in particular the PDU Set marking RTP header extension of <xref target="TS26.522"/>. A sender using such a mechanism populates it consistently with the payload header, which remains the endpoint source of truth. Positions are never exposed outside the payload.</t>
<t>How the per-packet importance and the grouping reach network elements depends on the deployment and the direction of the flow. The mechanisms below are informative; they are outside the scope of this document and impose no requirement on any network node.</t>
<ul spacing="normal">
<li><t>RTP header extension. When the PDU Set marking RTP header extension of <xref target="TS26.522"/> is used, each token group is mapped to a PDU Set, and the sender populates the PDU Set fields (including the PDU Set sequence number, the PDU sequence number within the set, the end indication, and the PDU Set Importance) according to <xref target="TS26.522"/>. PRI maps to the PDU Set Importance, whose values it shares. Any association between the Group Identifier and the PDU Set sequence number is local to the sender. Header extensions are visible to the network under plain SRTP, but not when they are encrypted, e.g., with <xref target="RFC9335"/> or <xref target="RFC6904"/>.</t></li>
<li><t>Downlink (network to device). A 5G/6G user-plane function may use such marking to construct PDU Set information for the radio access network. This is a 3GPP matter, referenced here only as motivation.</t></li>
<li><t>Uplink (device to network). Mapping of importance to radio or QoS treatment on the uplink is implementation-specific; where supported, reflective QoS may be used to derive uplink treatment from the downlink. The uplink is the main direction for this payload format.</t></li>
<li><t>IP transport. A sender MAY map PRI to an IP DSCP value for differentiated handling within an administrative or operator domain. DSCP is commonly re-marked or ignored across the public Internet and is not relied upon as a general guarantee.</t></li>
</ul>
</section>
</section>
<section anchor="sect-7">
<name>Model Configuration</name>
<t>The sender and receiver must agree on everything needed to interpret the elements: for discrete tokens, the codebook; for continuous embeddings, the encoder (e.g., a vision encoder and projector), any dimension-reducing adapter (e.g., a trained down-projection at the sender paired with an up-projection at the receiver), and any fixed quantizer. This model configuration is opaque to this payload format, is never carried in band by it, and is handled per the binding modes of <xref target="I-D.discrete-token-transport-mlm"/> Section 10.7:</t>
<ul spacing="normal">
<li><t>Implicit (out-of-band): C=0 and no identifier on the wire; both endpoints share the codebook or model by construction. This mode MUST be supported and is the default.</t></li>
<li><t>Reference: an opaque Codebook/Model ID is carried (C=1) or declared once in SDP with the "codebook-id" parameter. The identifier MAY, for example, include a hash of the configuration, so that a mismatch can be detected; a hash shows that a configuration is untampered only when the expected identifier is itself authenticated or pinned.</t></li>
<li><t>Explicit in-band distribution of codebook or model content is out of scope of this payload format.</t></li>
</ul>
<t>Per-packet carriage of the Codebook/Model ID is NOT required; where an identifier is used it SHOULD be declared in SDP and C left 0. Since each payload type identifies one model configuration (<xref target="sect-8.2"/>), the in-band Codebook/Model ID is needed only where an application uses its own out-of-band mapping of such labels. Within one negotiated payload type, the Codebook/Model ID MUST NOT be used to switch to a different model configuration.</t>
</section>
<section anchor="sect-8">
<name>Payload Format Parameters</name>
<t>This section defines the media type of this payload format, its parameters, and their mapping to SDP. The parameters convey the session metadata of REQ-5.</t>
<section anchor="sect-8.1">
<name>Media Type Definition</name>
<dl newline="false" spacing="normal">
<dt>Type name:</dt>
<dd><t>application</t></dd>
<dt>Subtype name:</dt>
<dd><t>mlm-tokens</t></dd>
<dt>Required parameters:</dt>
<dd><t>rate (the RTP clock rate, when used with RTP); rtype (<xref target="sect-8.2"/>).</t></dd>
<dt>Optional parameters:</dt>
<dd><t>token-bits, emb-dim, elem-format, codebook-id (<xref target="sect-8.2"/>).</t></dd>
<dt>Encoding considerations:</dt>
<dd><t>This media type is framed and binary; see Section 4.8 of <xref target="RFC6838"/>. With RTP, it is framed as an RTP payload, one AI Data Unit per packet (this document). As an HTTP message body it is a sequence of AI Data Units <xref target="I-D.http-mlm-tokens"/>.</t></dd>
<dt>Security considerations:</dt>
<dd><t>See <xref target="sect-11"/>.</t></dd>
<dt>Interoperability considerations:</dt>
<dd><t>The payload is interpreted with the model configuration identified in signaling (<xref target="sect-7"/>).</t></dd>
<dt>Published specification:</dt>
<dd><t>This document; <xref target="I-D.http-mlm-tokens"/> for use as an HTTP message body.</t></dd>
<dt>Applications that use this media type:</dt>
<dd><t>Distributed multimodal AI inference, for example split vision-language models.</t></dd>
</dl>
<t>Fragment identifier considerations: N/A.</t>
<dl newline="false" spacing="normal">
<dt>Additional information:</dt>
<dd><t>Deprecated alias names: N/A; magic numbers: N/A; file extensions: N/A; Macintosh file type code: N/A.</t></dd>
</dl>
<t>Person and email address to contact for further information: Rufael Mekuria &lt;rufael.mekuria@huawei.com&gt;</t>
<dl newline="false" spacing="normal">
<dt>Intended usage:</dt>
<dd><t>COMMON</t></dd>
<dt>Restrictions on usage:</dt>
<dd><t>For transfer over RTP, this media type depends on RTP framing <xref target="RFC3550"/>. Its use as an HTTP message body is defined in <xref target="I-D.http-mlm-tokens"/>.</t></dd>
<dt>Author:</dt>
<dd><t>Rufael Mekuria</t></dd>
<dt>Change controller:</dt>
<dd><t>IETF AVTCORE Working Group delegated from the IESG.</t></dd>
</dl>
</section>
<section anchor="sect-8.2">
<name>Parameter Definitions</name>
<artwork type="ascii-art"><![CDATA[
rate           REQUIRED with RTP.  The RTP clock rate
               (Section 8.4).
rtype          REQUIRED.  Representation Type: "token" or
               "embedding".
token-bits     For rtype=token: number of bits b per codebook
               index, from 1 to 32 (Section 4.3); default 16.
               Receivers MUST support 16.
emb-dim        For rtype=embedding: REQUIRED.  Vector dimension d.
elem-format    For rtype=embedding: "bf16" (default), "fp16",
               "fp8-e4m3", "int8", or "int4" (Section 4.3).
codebook-id    OPTIONAL.  Opaque identifier of the model
               configuration (Section 7).  At most one per payload
               type; different model configurations use different
               payload types.  Its absence means the configuration
               is agreed implicitly.
]]></artwork>
<t>The token-bits range and the elem-format values are defined by this document and extended only by revising it.</t>
</section>
<section anchor="sect-8.3">
<name>ABNF</name>
<t>The syntax of the parameters, as carried in an SDP "a=fmtp" attribute or in the media type parameters, is defined using ABNF <xref target="RFC5234"/>:</t>
<sourcecode type="abnf"><![CDATA[
mlm-params    = mlm-param *( ";" *SP mlm-param )
mlm-param     = rtype-p / tok-bits-p / emb-dim-p / elem-format-p
              / cb-id-p / ext-p
rtype-p       = "rtype=" ( "token" / "embedding" )
tok-bits-p    = "token-bits=" 1*2DIGIT   ; 1 to 32
emb-dim-p     = "emb-dim=" 1*5DIGIT
elem-format-p = "elem-format=" ( "bf16" / "fp16" / "fp8-e4m3"
              / "int8" / "int4" )
cb-id-p       = "codebook-id=" 1*64id-char
ext-p         = 1*id-char "=" 1*id-char   ; unknown, ignored
id-char       = ALPHA / DIGIT / "-" / "." / "_"
]]></sourcecode>
<t>Parameter names and the enumerated values are case-insensitive, as are ABNF string literals <xref target="RFC5234"/>; the value of codebook-id is compared case-sensitively. A parameter MUST NOT appear more than once. Receivers MUST ignore parameters they do not understand.</t>
</section>
<section anchor="sect-8.4">
<name>Mapping to SDP</name>
<ul spacing="normal">
<li><t>The media type ("application") is used in the SDP "m=" line, and the subtype ("mlm-tokens") as the encoding name in "a=rtpmap".</t></li>
<li><t>The RTP clock rate in "a=rtpmap" is the "rate" of the media type (e.g., 90000 for image and video, the sample rate for audio).</t></li>
<li><t>The remaining parameters are carried in "a=fmtp" as defined in <xref target="sect-8.3"/>.</t></li>
<li><t>One payload type describes one representation and one model configuration. Several model configurations are offered as several payload types; separate media sources or modalities use separate RTP streams (<xref target="sect-4.1"/>).</t></li>
</ul>
<section anchor="sect-8.4.1">
<name>Offer/Answer Considerations</name>
<t>The offer/answer model <xref target="RFC3264"/> applies. The parameters of a payload type describe the RTP stream that is sent with that payload type.</t>
<ul spacing="normal">
<li><t>Sendonly offer (e.g., a device offering its uplink): the offerer lists the payload types it is able to send. The answerer keeps those it can receive, with the same parameter values, and removes the others; the offerer sends using one of the payload types kept.</t></li>
<li><t>Recvonly offer: the offerer lists the payload types it is able to receive, possibly several with different parameters; the answerer sends using one of them.</t></li>
<li><t>Sendrecv: as required by <xref target="RFC3264"/>, each endpoint lists the payload types, with parameters, that it is willing to both send and receive. An endpoint that needs different parameters in the two directions uses sendonly and recvonly media descriptions (or separate media descriptions) instead.</t></li>
</ul>
</section>
<section anchor="sect-8.4.2">
<name>Declarative SDP Considerations</name>
<t>In declarative use (e.g., RTSP or SAP), the parameters describe the stream as sent. A receiver that does not support the declared rtype, token-bits, or element format MUST NOT join the session.</t>
</section>
</section>
</section>
<section anchor="sect-9">
<name>Examples</name>
<t>The following examples show how token groups are carried in RTP packets and how the payload format is declared in SDP. The sizes and values are example values, not recommendations. Flags not mentioned are 0; the payload header layouts themselves are illustrated in <xref target="I-D.discrete-token-transport-mlm"/> Section 10.10.</t>
<section anchor="sect-9.1">
<name>Discrete Tokens of a Video Frame</name>
<t>A device tokenizes each frame of a 30 frame/s video into 1024 discrete tokens with the default b=16 (2048 octets), from a codebook of at most 65536 entries; it uses an SDP declaration as in Example 3 of <xref target="sect-9.3"/>, but without the token-bits parameter. With a payload budget of 1200 octets, a frame does not fit in one packet, so it is carried in two ADUs, split at element boundaries:</t>
<artwork type="ascii-art"><![CDATA[
Packet  SN   Timestamp  M  Payload header
1       n    t          0  T=0, PRI=0, Element Count=596,
                           Seq Start=0       (8 + 1192 octets)
2       n+1  t          1  T=1, PRI=0, Element Count=428,
                           Seq Start=596     (8 + 856 octets)
]]></artwork>
<t>Both packets carry the timestamp t of the frame, and the next frame uses the timestamp t + 3000 (90 kHz clock). If packet 1 is lost, the receiver detects the gap from the sequence numbers, places the tokens of packet 2 at indices 596 to 1023 using Seq Start, and conceals the missing tokens (<xref target="sect-5.2"/>).</t>
</section>
<section anchor="sect-9.2">
<name>Selected Continuous Embeddings with Truncation</name>
<t>A device runs a vision encoder and an adapter on each frame, keeps the 64 most important tokens, and sends them with d=256 and elem-format "int8" (W = 258 octets), as declared in Example 2 of <xref target="sect-9.3"/>. It orders the tokens by importance and places four in each ADU, with their positions (P=1), so that each payload is 8 + 8 + 4 x 258 = 1048 octets:</t>
<artwork type="ascii-art"><![CDATA[
Packet  SN         Timestamp  M  Payload header
1-4     n..n+3     t          0  PRI=1, P=1, Element Count=4,
                                 Seq Start=0, 4, 8, 12
5-15    n+4..n+14  t          0  PRI=3, P=1, Element Count=4,
                                 Seq Start=16, 20, ..., 56
16      n+15       t          1  PRI=3, P=1, T=1,
                                 Element Count=4, Seq Start=60
]]></artwork>
<t>If the available rate drops after the tenth packet, which has already been sent without T=1, the sender stops and sends an end-of-group marker:</t>
<artwork type="ascii-art"><![CDATA[
11      n+10       t          1  T=1, Element Count=0,
                                 Seq Start=0 (8-octet payload)
]]></artwork>
<t>The receiver then releases the group with 40 tokens, at their positions, without waiting for its deadline (<xref target="sect-5.2"/>). If the PDU Set marking header extension of <xref target="TS26.522"/> is used, the frame is one PDU Set, the end indication is set on the packet with M=1, and the PDU Set Importance of each packet equals its PRI (<xref target="sect-6.3"/>).</t>
</section>
<section anchor="sect-9.3">
<name>SDP Examples</name>
<t>In the following examples, lines of an "a=fmtp" attribute that are folded for display are shown indented; in an actual SDP the attribute is a single line. The examples use the RTP/AVPF profile <xref target="RFC4585"/>. Example 1 uses an implicitly agreed codebook (no codebook-id).</t>
<t>Example 1: a device sends audio tokens with an implicit codebook.</t>
<artwork type="ascii-art"><![CDATA[
m=application 5004 RTP/AVPF 96
a=rtpmap:96 mlm-tokens/16000
a=fmtp:96 rtype=token
a=sendonly
]]></artwork>
<t>Example 2: a device sends vision-encoder embeddings for selected tokens (256 dimensions after an adapter, int8).</t>
<artwork type="ascii-art"><![CDATA[
m=application 5006 RTP/AVPF 97
a=rtpmap:97 mlm-tokens/90000
a=fmtp:97 rtype=embedding;emb-dim=256;elem-format=int8;
   codebook-id=vt-a3b-p256
a=sendonly
]]></artwork>
<t>Example 3: discrete video tokens from a codebook of 2^18 entries, carried as 18-bit indices.</t>
<artwork type="ascii-art"><![CDATA[
m=application 5008 RTP/AVPF 98
a=rtpmap:98 mlm-tokens/90000
a=fmtp:98 rtype=token;token-bits=18
a=sendonly
]]></artwork>
</section>
</section>
<section anchor="sect-10">
<name>Congestion Control Considerations</name>
<t>Congestion control for RTP SHALL be used in accordance with <xref target="RFC3550"/> and with any applicable RTP profile, for example <xref target="RFC3551"/>. Senders SHALL implement the RTP circuit breakers of <xref target="RFC8083"/>, and SHOULD use a congestion control algorithm that meets the requirements of <xref target="RFC8836"/>, driven by RTCP feedback (e.g., with the RTP/AVPF profile <xref target="RFC4585"/>). A sender can reduce its rate by sending fewer elements per token group (token selection, <xref target="sect-4.5"/>), least important first (<xref target="sect-6.1"/>), and ending the group early (<xref target="sect-4.6"/>). How quickly AI senders can adapt the number of tokens to network conditions, and the mechanisms for doing so, are for further study.</t>
<t>A sender SHOULD pace the packets of a token group over the group interval rather than sending them in one burst, which can overflow receive buffers.</t>
</section>
<section anchor="sect-11">
<name>Security Considerations</name>
<t>RTP packets using the payload format defined in this specification are subject to the security considerations discussed in the RTP specification <xref target="RFC3550"/>, and in any applicable RTP profile such as RTP/AVP <xref target="RFC3551"/>, RTP/AVPF <xref target="RFC4585"/>, RTP/SAVP <xref target="RFC3711"/>, or RTP/SAVPF <xref target="RFC5124"/>. However, as "Securing the RTP Protocol Framework: Why RTP Does Not Mandate a Single Media Security Solution" <xref target="RFC7202"/> discusses, it is not an RTP payload format's responsibility to discuss or mandate what solutions are used to meet the basic security goals like confidentiality, integrity, and source authenticity for RTP in general. This responsibility lies on anyone using RTP in an application. They can find guidance on available security mechanisms and important considerations in "Options for Securing RTP Sessions" <xref target="RFC7201"/>. Applications SHOULD use one or more appropriate strong security mechanisms. The rest of this section discusses the security-impacting properties of the payload format itself.</t>
<t>Confidentiality. Token and embedding streams inherit the sensitivity of the source data, since both can be reconstructed given the codebook or by embedding inversion (see <xref target="I-D.discrete-token-transport-mlm"/> Section 11). This applies fully to vision-encoder embeddings: although the image itself never leaves the device, its embeddings can reveal its content. Confidentiality protection, for example with SRTP <xref target="RFC3711"/>, is therefore particularly important for this payload format.</t>
<t>Integrity and source authentication. Crafted tokens or embeddings injected into an inference pipeline can manipulate its output, so integrity protection and source authentication (e.g., SRTP) are particularly important. Keeping the codebook or model out of band (<xref target="sect-7"/>) reduces model-fingerprint exposure; an identifier that includes a hash of the configuration allows a mismatch to be detected without disclosing the configuration, and a tampered configuration to be detected when the expected identifier is authenticated or pinned.</t>
<t>Metadata exposure. Under SRTP the payload header is encrypted with the payload. Network-visible marking, where used (<xref target="sect-6.3"/>), reveals an importance pattern and token-group structure to on-path observers; header extensions can be encrypted with <xref target="RFC9335"/> or <xref target="RFC6904"/>, at the cost of that visibility. Position lists, which indicate which regions of an image the sender considered important, are carried only in the encrypted payload.</t>
<t>Resource use. Depacketization of this payload format does not exhibit any significant non-uniformity in the receiver-side computational complexity for packet processing, and the payload format does not contain any active content. The cost of the model that consumes the elements is outside this payload format. A receiver MUST bound the resources it commits per token group and validate each ADU using <xref target="sect-5.1"/>, including its fragment and complete-element position checks.</t>
</section>
<section anchor="sect-12">
<name>IANA Considerations</name>

<section anchor="sect-12.1">
<name>Media Type Registration</name>
<t>IANA is requested to register the media type "application/mlm-tokens" defined in <xref target="sect-8.1"/> in the "Media Types" registry, following <xref target="RFC6838"/> and <xref target="RFC4855"/>. This document does not register an RTP header extension.</t>
</section>
<section anchor="sect-12.2">
<name>AI Data Representation Type Registry</name>
<t>IANA is requested to create a new registry group "AI Data Unit Parameters" and, within it, the "AI Data Representation Type" registry for the 4-bit RType field of the AI Data Unit header (<xref target="sect-4.2"/>), which is shared by this document, <xref target="I-D.moqt-mlm-token-streams"/>, and <xref target="I-D.http-mlm-tokens"/>. The registration policy is IETF Review <xref target="RFC8126"/>. Each entry has a value, a name, and a reference. The initial contents are:</t>
<artwork type="ascii-art"><![CDATA[
Value     Name                        Reference
0x0       Discrete-Token              this document
0x1       Embedding                   this document
0x2-0xE   Unassigned
0xF       Experimental (not to be     this document
          registered)
]]></artwork>
</section>
<section anchor="sect-12.3">
<name>AI Data Modality Registry</name>
<t>IANA is requested to create, within the "AI Data Unit Parameters" registry group, the "AI Data Modality" registry for the 4-bit Modality field of the AI Data Unit header (<xref target="sect-4.2"/>). The registration policy is IETF Review <xref target="RFC8126"/>. Each entry has a value, a name, the position format used (<xref target="sect-4.5"/>), and a reference. The initial contents are:</t>
<artwork type="ascii-art"><![CDATA[
Value     Name          Position format   Reference
0x0       AUDIO         index             this document
0x1       VIDEO         row/column        this document
0x2       IMAGE         row/column        this document
0x3       SPEECH        index             this document
0x4       METADATA      index             this document
0x5       IMAGE_TEXT    index             this document
0x6       VIDEO_TEXT    index             this document
0x7       SPEECH_TEXT   index             this document
0x8       GENERIC       index             this document
0x9-0xE   Unassigned
0xF       EXPERIMENTAL  index             this document
          (not to be registered)
]]></artwork>
</section>
</section>
  </middle>
  <back>
<references anchor="sect-13">
<name>References</name>
<references anchor="sect-13.1">
<name>Normative References</name>
<reference anchor="RFC2119">
  <front>
    <title>Key words for use in RFCs to Indicate Requirement Levels</title>
    <author><organization>Bradner, S.</organization></author>
    <date month="March" year="1997"/>
  </front>
  <seriesInfo name="BCP" value="14"/>
  <seriesInfo name="RFC" value="2119"/>
</reference>
<reference anchor="RFC8174">
  <front>
    <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
    <author><organization>Leiba, B.</organization></author>
    <date month="May" year="2017"/>
  </front>
  <seriesInfo name="BCP" value="14"/>
  <seriesInfo name="RFC" value="8174"/>
</reference>
<reference anchor="RFC3550">
  <front>
    <title>RTP: A Transport Protocol for Real-Time Applications</title>
    <author><organization>Schulzrinne, H., Casner, S., Frederick, R., and V. Jacobson</organization></author>
    <date month="July" year="2003"/>
  </front>
  <seriesInfo name="STD" value="64"/>
  <seriesInfo name="RFC" value="3550"/>
</reference>
<reference anchor="RFC3551">
  <front>
    <title>RTP Profile for Audio and Video Conferences with Minimal Control</title>
    <author><organization>Schulzrinne, H. and S. Casner</organization></author>
    <date month="July" year="2003"/>
  </front>
  <seriesInfo name="STD" value="65"/>
  <seriesInfo name="RFC" value="3551"/>
</reference>
<reference anchor="RFC3711">
  <front>
    <title>The Secure Real-time Transport Protocol (SRTP)</title>
    <author><organization>Baugher, M., McGrew, D., Naslund, M., Carrara, E., and K. Norrman</organization></author>
    <date month="March" year="2004"/>
  </front>
  <seriesInfo name="RFC" value="3711"/>
</reference>
<reference anchor="RFC6904">
  <front>
    <title>Encryption of Header Extensions in the Secure Real-time Transport Protocol (SRTP)</title>
    <author><organization>Lennox, J.</organization></author>
    <date month="April" year="2013"/>
  </front>
  <seriesInfo name="RFC" value="6904"/>
</reference>
<reference anchor="RFC5234">
  <front>
    <title>Augmented BNF for Syntax Specifications: ABNF</title>
    <author><organization>Crocker, D., Ed. and P. Overell</organization></author>
    <date month="January" year="2008"/>
  </front>
  <seriesInfo name="STD" value="68"/>
  <seriesInfo name="RFC" value="5234"/>
</reference>
<reference anchor="RFC4855">
  <front>
    <title>Media Type Registration of RTP Payload Formats</title>
    <author><organization>Casner, S.</organization></author>
    <date month="February" year="2007"/>
  </front>
  <seriesInfo name="RFC" value="4855"/>
</reference>
<reference anchor="RFC6838">
  <front>
    <title>Media Type Specifications and Registration Procedures</title>
    <author><organization>Freed, N., Klensin, J., and T. Hansen</organization></author>
    <date month="January" year="2013"/>
  </front>
  <seriesInfo name="BCP" value="13"/>
  <seriesInfo name="RFC" value="6838"/>
</reference>
<reference anchor="RFC3264">
  <front>
    <title>An Offer/Answer Model with Session Description Protocol (SDP)</title>
    <author><organization>Rosenberg, J. and H. Schulzrinne</organization></author>
    <date month="June" year="2002"/>
  </front>
  <seriesInfo name="RFC" value="3264"/>
</reference>
<reference anchor="RFC8083">
  <front>
    <title>Multimedia Congestion Control: Circuit Breakers for Unicast RTP Sessions</title>
    <author><organization>Perkins, C. and V. Singh</organization></author>
    <date month="March" year="2017"/>
  </front>
  <seriesInfo name="RFC" value="8083"/>
</reference>
<reference anchor="RFC8126">
  <front>
    <title>Guidelines for Writing an IANA Considerations Section in RFCs</title>
    <author><organization>Cotton, M., Leiba, B., and T. Narten</organization></author>
    <date month="June" year="2017"/>
  </front>
  <seriesInfo name="BCP" value="26"/>
  <seriesInfo name="RFC" value="8126"/>
</reference>
<reference anchor="RFC8836">
  <front>
    <title>Congestion Control Requirements for Interactive Real-Time Media</title>
    <author><organization>Jesup, R. and Z. Sarker, Ed.</organization></author>
    <date month="January" year="2021"/>
  </front>
  <seriesInfo name="RFC" value="8836"/>
</reference>
<reference anchor="IEEE754">
  <front>
    <title>IEEE Standard for Floating-Point Arithmetic</title>
    <author><organization>IEEE</organization></author>
    <date month="July" year="2019"/>
  </front>
  <refcontent>IEEE Std 754-2019</refcontent>
</reference>
<reference anchor="OFP8">
  <front>
    <title>OCP 8-bit Floating Point Specification (OFP8)</title>
    <author><organization>Open Compute Project</organization></author>
    <date month="June" year="2023"/>
  </front>
  <refcontent>Revision 1.0</refcontent>
</reference>
</references>
<references anchor="sect-13.2">
<name>Informative References</name>
<reference anchor="RFC2198">
  <front>
    <title>RTP Payload for Redundant Audio Data</title>
    <author><organization>Perkins, C., et al.</organization></author>
    <date month="September" year="1997"/>
  </front>
  <seriesInfo name="RFC" value="2198"/>
</reference>
<reference anchor="RFC4585">
  <front>
    <title>Extended RTP Profile for RTCP-Based Feedback (RTP/AVPF)</title>
    <author><organization>Ott, J., Wenger, S., Sato, N., Burmeister, C., and J. Rey</organization></author>
    <date month="July" year="2006"/>
  </front>
  <seriesInfo name="RFC" value="4585"/>
</reference>
<reference anchor="RFC4588">
  <front>
    <title>RTP Retransmission Payload Format</title>
    <author><organization>Rey, J., Leon, D., Miyazaki, A., Varsa, V., and R. Hakenberg</organization></author>
    <date month="July" year="2006"/>
  </front>
  <seriesInfo name="RFC" value="4588"/>
</reference>
<reference anchor="RFC5124">
  <front>
    <title>Extended Secure RTP Profile for Real-time Transport Control Protocol (RTCP)-Based Feedback (RTP/SAVPF)</title>
    <author><organization>Ott, J. and E. Carrara</organization></author>
    <date month="February" year="2008"/>
  </front>
  <seriesInfo name="RFC" value="5124"/>
</reference>
<reference anchor="RFC7201">
  <front>
    <title>Options for Securing RTP Sessions</title>
    <author><organization>Westerlund, M. and C. Perkins</organization></author>
    <date month="April" year="2014"/>
  </front>
  <seriesInfo name="RFC" value="7201"/>
</reference>
<reference anchor="RFC7202">
  <front>
    <title>Securing the RTP Framework: Why RTP Does Not Mandate a Single Media Security Solution</title>
    <author><organization>Perkins, C. and M. Westerlund</organization></author>
    <date month="April" year="2014"/>
  </front>
  <seriesInfo name="RFC" value="7202"/>
</reference>
<reference anchor="RFC8627">
  <front>
    <title>RTP Payload Format for Flexible Forward Error Correction (FEC)</title>
    <author><organization>Zanaty, M., Singh, V., Begen, A., and G. Mandyam</organization></author>
    <date month="July" year="2019"/>
  </front>
  <seriesInfo name="RFC" value="8627"/>
</reference>
<reference anchor="RFC7656">
  <front>
    <title>A Taxonomy of Semantics and Mechanisms for Real-Time Transport Protocol (RTP) Sources</title>
    <author><organization>Lennox, J., et al.</organization></author>
    <date month="November" year="2015"/>
  </front>
  <seriesInfo name="RFC" value="7656"/>
</reference>
<reference anchor="RFC9335">
  <front>
    <title>Completely Encrypting RTP Header Extensions and Contributing Sources</title>
    <author><organization>Uberti, J., Jennings, C., and S. Murillo</organization></author>
    <date month="January" year="2023"/>
  </front>
  <seriesInfo name="RFC" value="9335"/>
</reference>
<reference anchor="TS26.522">
  <front>
    <title>5G Real-time Media Transport Protocol Configurations</title>
    <author><organization>3GPP</organization></author>
    <date/>
  </front>
  <refcontent>3GPP TS 26.522 (RTP header extension for PDU Set marking)</refcontent>
</reference>
<reference anchor="I-D.discrete-token-transport-mlm">
  <front>
    <title>Transport of Tokens for Distributed Multimodal AI: Discrete Tokens and Continuous Embeddings</title>
    <author initials="R." surname="Mekuria" fullname="Rufael Mekuria"/>
    <date/>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-mekuria-multimodal-ai-token-transport-00"/>
</reference>
<reference anchor="I-D.moqt-mlm-token-streams">
  <front>
    <title>Media over QUIC Transport (MOQT) Mapping for Token Streams of Multimodal AI: Discrete Tokens and Continuous Embeddings</title>
    <author initials="R." surname="Mekuria" fullname="Rufael Mekuria"/>
    <date/>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-mekuria-moq-moqt-mlm-token-streams-00"/>
</reference>
<reference anchor="I-D.http-mlm-tokens">
  <front>
    <title>Media Type for Token Streams of Multimodal AI and Its Use with HTTP</title>
    <author initials="R." surname="Mekuria" fullname="Rufael Mekuria"/>
    <date/>
  </front>
  <seriesInfo name="Internet-Draft" value="draft-mekuria-httpbis-http-mlm-tokens-00"/>
</reference>
<reference anchor="SA4-EMB">
  <front>
    <title>[FS_6G_MED] Realtime Video understanding with embedding streaming</title>
    <author><organization>MediaTek Inc.</organization></author>
    <date/>
  </front>
  <refcontent>3GPP TSG-SA4#138, S4-261887, November 2026 (results agreed for 3GPP TR 26.870)</refcontent>
</reference>
</references>
</references>
<section anchor="app-A">
<name>Requirements Conformance</name>
<t>Mapping to <xref target="I-D.discrete-token-transport-mlm"/> requirements:</t>
<artwork type="ascii-art"><![CDATA[
REQ-1  Low latency     RTP/UDP real-time delivery; small packets.
REQ-2  Batching/compact Element Count batching (many same-class
                       elements per ADU); compact binary (b-bit
                       indices, quantized embedding formats) over
                       text/JSON (Sections 4.3, 4.4).
REQ-3  Sequencing      RTP sequence number + Seq Start.
REQ-4  Timestamping    RTP timestamp (per token group).
REQ-5  Metadata        SDP fmtp (Section 8) + header fields.
REQ-6  Priority        Per-packet PRI, 0 = not specified (+
                       optional Group Identifier); network-visible
                       marking via existing mechanisms
                       ([TS26.522], DSCP); no layering required
                       (Section 6).
REQ-7  Partial reliab. Element-aligned packets; intrinsic token
                       resilience + concealment; embeddings
                       proceed with received elements; optional
                       priority-driven FEC/RTX; group-relative
                       Seq Start; I/F framing (Sections 4.4, 5,
                       6.2).
REQ-8  Multiplexing    One SSRC per media source / modality.
REQ-9  Security        Strong security mechanisms per [RFC7202],
                       e.g., SRTP (Section 11).
REQ-10 Codebook agree. Opaque, out-of-band by default (Section 7).
REQ-11 Rep-type signal RType field in the header (Section 4.2).
REQ-12 Positions       Per-packet Position List (P flag,
                       Section 4.5).
REQ-13 Adaptation      End-of-group signal (T flag / marker,
                       Section 4.6); pacing; rate adaptation for
                       further study (Section 10).
]]></artwork>
</section>
<section anchor="acknowledgments" numbered="false">
<name>Acknowledgments</name>
<t>The author thanks the contributors to the 3GPP SA4 study on 6G media, in particular Qualcomm, NTT DOCOMO, vivo, and MediaTek, whose evaluation results, including the carriage of continuous embeddings over RTP <xref target="SA4-EMB"/>, informed this document. The views expressed here are those of the author and do not necessarily represent those of 3GPP or of the contributing companies.</t>
</section>
  </back>
</rfc>
