| Internet-Draft | Token Transport for Multimodal AI | December 2026 |
| Mekuria | Expires 7 June 2027 | [Page] |
Distributed multimodal AI pipelines increasingly send the tokens that models consume across networks, commonly in two forms: discrete tokens (codebook indices) and continuous embeddings (one vector per token, such as vision-encoder output). Today these are carried as text or JSON over HTTP, which adds large per-token overhead, offers limited real-time support, and limits visibility to the network. This document describes the problem, argues for a standardized transport container that leaves models and codebooks opaque, summarizes measured traffic characteristics, and states the transport requirements addressed by companion specifications for carriage over HTTP, Media over QUIC Transport (MOQT), and RTP.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 4 June 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
As the stages of AI pipelines are split across devices, edges, and clouds, the tokens that models consume and produce are themselves carried over networks. A camera-equipped device may run the vision encoder of a vision-language model (VLM) and send the resulting tokens to the language model in the cloud; a cloud speech model may stream audio tokens to a device for playback; two agents may exchange multimodal context as part of a shared task. In each case compact AI data, rather than raw media, crosses the network under a latency budget.¶
Language models operate on sequences of tokens. Non-text modalities have been observed to reach a model in two forms. Discrete tokens are integer indices into a learned codebook, produced by vector quantization; they are structurally identical to text tokens. Continuous embeddings are vectors, one per image patch or audio frame, produced by a modality encoder in the language model's input space; this is the form used by currently popular deployed VLMs. From the network's point of view both are token sequences; they differ in element size and in how they are compressed.¶
Today these tokens travel inside application-defined formats, typically JSON over HTTP, streamed with Server-Sent Events (SSE) or carried as base64. This has three consequences:¶
Overhead. Measured carriage costs range from about 2 bytes per token for a compact binary identifier to 120-240 bytes per token for SSE-streamed tokens and about 574 bytes per token for base64 media in JSON (Section 7.5).¶
Limited real-time support. HTTP responses can be streamed and consumed progressively, but current interfaces have no standardized token-level deadlines, importance, or partial reliability, and agent exchanges incur several connections and hundreds of milliseconds of setup per turn.¶
Opacity. Nothing between the endpoints can recognize the structure of the data, so the network cannot prioritize, group, or drop it sensibly.¶
This document argues for a thin, standardized transport container -- not a codec -- carried over HTTP, MOQT [MOQT], and RTP [RFC3550]. It describes the representations (Sections 3 and 5), makes the case for the container (Section 4), summarizes measured characteristics (Section 7), lists requirements (Section 8), and outlines the container (Section 10). It is informational: it defines no protocol, and identifies requirements for work in HTTPBIS, the MOQ Working Group, AVTCORE, and efforts on agent communication.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. As an informational document, normative keywords are used only to state requirements on protocol specifications derived from this work.¶
Data exchanged between stages of a distributed AI pipeline for machine processing: tokens and other embeddings.¶
One position in a model's input or output sequence. A non-text token reaches the network in one of two forms:¶
An integer index into a codebook (Section 5.1).¶
A continuous vector representing one token position in a model's input space, e.g., the vision-encoder output for one image patch (Section 5.2). Also called a visual token or visual embedding in the VLM literature, and a "visual continuous embedding representation" in [SA4-EMB].¶
Continuous vectors that do not represent token positions in a model's input, such as activations or key/value state exchanged between inference stages; covered only briefly (Section 3.2.3).¶
The finite set of K learned codewords that discrete-token indices refer to.¶
A trained, model-specific transform applied to continuous embeddings for transport, typically a down-projection at the sender paired with an up-projection at the receiver. The adapter plays, for continuous embeddings, the role that the codebook plays for discrete tokens.¶
Everything both endpoints must share to interpret the elements: the codebook for discrete tokens; for continuous embeddings, the encoder, any adapter, and any fixed quantizer. The transport identifies it but never carries or interprets it.¶
The class of AI data in a flow or unit: Discrete-Token or Embedding (continuous embeddings and other embeddings).¶
The atomic payload unit: one codebook index (2-4 octets) or one continuous-embedding vector.¶
The unit of uniform handling: a shared header plus one or more elements of one token group with the same handling attributes (representation type, modality, layer, priority). An ADU maps to exactly one RTP payload, one MOQT object, or one length-delimited unit of an HTTP body. Only the header is meaningful to the transport.¶
One or more ADUs that jointly carry one unit of information, e.g., all tokens of one image or video frame. It is the unit mapped to a 3GPP PDU Set.¶
An optional header field, constant across the ADUs of a token group and used only for equality, within the scope of one RTP stream, MOQT track, or HTTP body.¶
The location of an element within its token group, e.g., the patch row and column of a visual token.¶
Sending only a subset of a token group's elements, chosen by an importance measure (e.g., vector norm or attention score).¶
A sender's decision not to send the remaining ADUs of a token group, e.g., because the available rate has dropped.¶
The type of signal represented: image, audio, video, speech, structured data, and so on.¶
An importance-ordered refinement level (e.g., a Residual VQ stage, or an embedding precision layer); lower layers are more important.¶
Vector Quantization, Residual VQ, Finite Scalar Quantization (Section 5.1).¶
Token flows appear on the network in two places. On the uplink, a client that encodes its own media sends tokens instead of the media (e.g., a device running a tokenizer or vision encoder for real-time video understanding). On the downlink, a model returns its output as a stream of generated tokens. Each flow carries one of the two token forms below, together with whatever text and control messages the application exchanges alongside it.¶
Integer indices into a learned codebook, produced by vector quantization of a continuous signal (Section 5.1). An element is 2-4 bytes. Hierarchical schemes such as Residual VQ carry an intrinsic importance order, though many schemes are single-level. Discrete tokens are the native representation of token-based generative models, neural audio codecs, and unified multimodal LLMs.¶
Continuous vectors in the language model's input space, one per image patch (or merged patch group) or audio frame. In most deployed VLMs, a vision encoder turns each frame into a few hundred continuous embeddings. Splitting the model after the vision encoder keeps the image on the device and sends the embeddings instead. Raw, they are large (kilobytes per token); token selection, an adapter, and 8- or 4-bit quantization can reduce them substantially (Section 5.2).¶
A sender uses the form its model consumes; neither form is better in general. The choice depends on the model, and converting between them would require retraining.¶
Activations and key/value state exchanged between disaggregated inference stages are also continuous vectors. They are usually carried within a datacenter and are not the focus of this document (Section 10.9).¶
Evaluations reported to 3GPP SA4 [SA4-AITRAFFIC] suggest a number of properties of token traffic. They are stated for the implementations evaluated so far, and their generality is still being studied (Section 7):¶
Bytes per token: about 2 bytes for discrete token identifiers in binary form, but tens to hundreds of bytes when tokens are carried as text or JSON.¶
Token rate: set by the application (media sampling rate and tokenizer) rather than by the network path.¶
Direction: tokenized uplinks are strongly uplink-dominant.¶
Differential importance: tokens are not equally important to the task; protecting the most important ones improved accuracy under loss.¶
Error resilience: when packets carry whole tokens, task accuracy degraded gradually with packet loss, without retransmission or forward error correction.¶
Pacing: downlink token streams are paced by the model's generation rate; uplink token bursts may need pacing to avoid receive-buffer overflow.¶
The token representations are also related: quantizing a continuous embedding onto a codebook yields a discrete token. This document suggests a single container that can carry both and can be extended to additional representations.¶
A recurring objection is that AI traffic is application-specific: each system has its own serialization, endpoints are usually run by one vendor, and there is no shared "codec" as there is for video. The objection is right about the content and wrong about the transport.¶
Media systems standardize two different things. A codec standard defines how content is coded, so that any compliant decoder can reconstruct it. A container or payload format defines how coded units are packaged, sequenced, timestamped, and prioritized, independently of how they were coded. RTP payload formats are the familiar example: they let senders, receivers, and intermediaries handle a stream without understanding its content, while the codec itself is provisioned at the endpoints and only identified in signaling.¶
This document does not propose to standardize AI semantics, tokenizers, encoders, codebooks, or adapters. These are trained, model-specific, frequently updated artifacts; no universal AI token codec exists, and none is sought here.¶
What is proposed is a container and its handling metadata: representation type, modality, model-configuration identity, element format, layer, positions, sequencing, timing, and priority. The model configuration plays the role of the codec: only the two endpoints need it, it is established per session (often out of band), and the network and relays never decode an element (Section 10.7, REQ-10).¶
Application developers and service providers. The most direct benefits are lower overhead and lower latency: a compact binary encoding returns per-token wire cost to near the size of the data, removes JSON serialization from the critical path, and, carried over a single QUIC connection, removes repeated connection setup (Section 7.5). Real-time bindings add what HTTP lacks: deadlines, priority, partial delivery, and graceful degradation under loss. Models, codebooks, and adapters stay private.¶
Network operators. A mobile or transport network can only apply differentiated treatment, correlate related flows, and meet a latency or loss budget if it can recognize structure. A thin, cross-vendor container provides that structure; it is also a prerequisite for defining QoS budgets, conformance tests, and quality-of-experience measurements for AI services. Under TLS, QUIC, or SRTP the container header is visible only to endpoints and to relays trusted with it; for on-path network elements, importance and grouping have to be exposed separately, for example in an RTP header extension or as DSCP (Section 11).¶
Relays and intermediaries. Priority-based dropping of the least important tokens, fan-out to several inference endpoints, and grouping into network handling units are possible only if importance and grouping are expressed in a form a relay understands without decoding the content.¶
Edge hardware. As tokenization and encoding move onto device and edge accelerators, stable framing supports a common silicon-and-gateway ecosystem.¶
Handling, not semantics. A common container gives handling and infrastructure interoperability. It does not give semantic interoperability: two vendors still cannot interpret each other's tokens without a shared model configuration, just as two RTP endpoints need a shared codec.¶
Streamed AI data only. The container targets tokens streamed between pipeline stages under latency or volume constraints. Short request/response exchanges and tool calls are well served by ordinary application data over HTTP and are out of scope.¶
Optional and negotiated. The container is an option that endpoints negotiate; it does not replace existing AI-serving interfaces.¶
The OpenAI API [OPENAI-API] -- its Responses API, and the earlier Chat Completions API that many providers re-implement as a de-facto interface -- exchanges model input and output as JSON over HTTP, streams generated tokens as Server-Sent Events, and carries images and audio as base64 or referenced files within JSON. Agent protocols such as the Model Context Protocol (MCP) and Agent-to-Agent (A2A) similarly carry tokens, tool calls, and media as JSON over HTTP. These interfaces are effective and define today's developer expectations. Their limits appear with real-time, multimodal, and high-volume traffic:¶
Real-time support is limited. Responses can be streamed, and requests can be prioritized and cancelled, but there are no standardized token-level deadlines, importance, or loss tolerance, and agent exchanges were measured to need several transport connections and hundreds of milliseconds of setup per turn.¶
Overhead is too large. Text/JSON serialization with per-chunk SSE framing places tens to hundreds of bytes on the wire per token, and base64 media in JSON hundreds more (Section 7.5).¶
Only media can be sent. Inputs are images or audio, never the model's intermediate representation, so a device that already runs a vision encoder has no standard way to send its output.¶
This framework is complementary: it provides a binary data plane that these interfaces, and the network, can build on. A deployment streaming tokens as text or JSON over HTTP can move to binary HTTP bodies (Section 9.1), MOQT, or RTP where efficiency and latency matter.¶
| Dimension | OpenAI API | MCP / A2A | This work |
|---|---|---|---|
| Wire format | Text tokens, tool calls as JSON; media as base64/ref | Tokens, tools, media as JSON | Discrete tokens or continuous embeddings, binary |
| Transport | HTTP | HTTP (JSON) | HTTP, MOQT, or RTP (one shared header) |
| Real-time support | streamed; no token-level deadlines or priority | none | deadlines, priority, partial delivery |
| Bytes/token (measured) | ~6 (non-stream) to ~120-237 (SSE) | multi-KB requests; ~5x net overhead | ~2 (discrete); ~256 (compact embedding) |
| Network visibility | none | none | priority and token group, where exposed |
A neural encoder E maps a raw segment x (e.g., a 16x16 image patch, a 20 ms audio frame) to a latent vector z = E(x) in R^d. A quantizer maps z to the nearest codeword of a codebook C = {e_1, ..., e_K}: k* = argmin_k ||z - e_k||_2. The index k* is the discrete token; a decoder D can reconstruct x' = D(e_{k*}). To the language model, k* is a vocabulary item like a subword token.¶
Each index needs ceil(log2 K) bits. For K <= 65536 (typical sizes are 512 to 65536) a token fits in a 16-bit unsigned integer, which is the default element encoding; larger codebooks use ceil(log2 K) bits per index (Section 10.2). Codebook collapse during training lowers stream entropy, but transport designs SHOULD NOT rely on it.¶
Survey work [LI2025] describes several variants with transport implications:¶
Standard VQ: one index per segment.¶
Residual VQ (RVQ): N stages, each quantizing the previous residual, giving N indices per segment (N = 8-12 in neural audio codecs [RVQ] [ENCODEC]). The first stage matters most, which maps onto priority marking.¶
Finite Scalar Quantization (FSQ) [FSQ]: per-dimension scalar levels; tokens may be one composite index or a vector of scalar indices.¶
Group VQ: G independent codebooks, G indices per token.¶
Lookup-Free Quantization: binary codewords, amenable to bit packing.¶
The rates in this section and in Section 5.2.4 are payload rates of the element data, R = N x f x w, for N elements per token group, f token groups per second, and w bits per element (b for discrete tokens; eight times the element size in octets for continuous embeddings). They exclude ADU headers, Position Lists, and transport overhead, which are significant for discrete tokens (Section 7.5). The examples use different models and tokenizers and are not rate-quality comparisons; a lower rate does not by itself indicate more efficient compression or equivalent task accuracy.¶
Visual examples, with b = 16 bits per token and, for the image tokenizer, a 256x256 image with 16x16 patches:¶
| Discrete-token example | Tokens | 8 groups/s | 30 groups/s |
|---|---|---|---|
| Image tokenizer, still image (512 octets, sent once) | 256 | - | - |
| Same image tokenizer applied to each frame of a visual stream | 256 | 32.8 kbps | 122.9 kbps |
| Video tokenizer (example) | 128 | 16.4 kbps | 61.4 kbps |
The lower rate of the video example comes from fewer tokens per frame, which a video tokenizer may obtain, for example, by compressing across consecutive frames; it does not mean that video inherently needs fewer bits than images.¶
Audio examples, also with b = 16: neural audio codecs at 50-75 Hz with 8-12 RVQ levels yield ~6.4-14.4 kbps; self-supervised semantic speech tokens [HUBERT], which represent mainly linguistic content rather than the full audio signal, at ~50 tokens/s yield ~0.8 kbps.¶
Bit-packing to b = ceil(log2 K) bits reduces all of these rates proportionally (e.g., by one eighth for K = 16384, b = 14).¶
A vision encoder (a vision transformer followed by a projector) maps an image to a grid of patch vectors, often merging neighboring patches, and outputs one vector per resulting token in the language model's embedding space. The vector width d therefore follows the language model's hidden size (e.g., 2048 to 5120), not the encoder's. A 640x352 frame yields on the order of 200 tokens. Video models may also merge tokens across consecutive frames. Positional information (row, column, and time) is applied by the language model, so a receiver needs each token's position, not just its value.¶
Raw, at 16-bit precision, one token is 2*d bytes (4 to 10 KB) and one frame of 220 tokens is about 0.9 to 2.3 MB (Section 5.2.4) -- far larger than the compressed image.¶
Three sender-side techniques, each optional and each matched by processing at the receiver, make continuous embeddings practical on networks:¶
Token selection: keep only the most important tokens of each frame (e.g., 64 of 220), ranked by vector norm or attention score. The receiver needs the positions of the kept tokens.¶
Dimension reduction: an adapter projects each token to a smaller width (e.g., 256), with an up-projection at the receiver.¶
Quantization: 8- or 4-bit integers, usually with a per-token scale, instead of 16-bit floating point.¶
All three are part of the model configuration (they are trained or tuned per model) and are identified, not carried, by the transport. Measured results for these operating points are in Section 7.3.¶
The width d of a continuous embedding follows the language model's hidden size, so it largely determines the bytes on the wire. An adapter reduces it. In the evaluated example [SA4-EMB], the adapter is a linear down-projection from d (2048 or 5120) to 512, 256, or 128 dimensions on the device, paired with a small up-projection (two layers with a GELU activation) on the server that restores the width the language model expects. It was trained per model on encoder outputs from about 1,500 images, while the vision encoder and the language model stayed unchanged. The device-side cost is one matrix multiplication per token.¶
Other designs are possible, such as a learned autoencoder with entropy coding [I-D.huang-visual-token-semantic-transport] or a fixed linear transform. In every case the two halves of the adapter belong together and are specific to a model: the sender and receiver must use matching halves, so the adapter is part of the model configuration and is identified, not carried, by the transport (Section 10.7). Its design is not standardized by this work.¶
The following examples use the configurations evaluated in Section 7.3 (220 tokens per frame, or 64 selected tokens), the formula and qualifications of Section 5.1.3, and two example frame rates. A bf16 element is 2*d octets; an int8 element is d octets plus a 2-octet scale (258 octets for d=256).¶
| Continuous-embedding example | Octets per frame | 8 frames/s | 30 frames/s |
|---|---|---|---|
| 220 tokens, d=2048, bf16 | 901,120 | 57.7 Mbps | 216.3 Mbps |
| 220 tokens, d=5120, bf16 | 2,252,800 | 144.2 Mbps | 540.7 Mbps |
| 64 selected tokens, d=256, int8 | 16,512 | 1.06 Mbps | 3.96 Mbps |
Rates scale linearly with the frame rate unless the number of tokens per frame also changes, e.g., through token selection or by merging tokens across frames.¶
Edge-Cloud Split: a device performs local encoding and sends tokens to a cloud inference engine, which returns a response stream. This avoids sending raw, privacy-sensitive, bandwidth-intensive media. For VLMs the natural split point is after the vision encoder, which is small enough for device accelerators while the language model is not. Figure 1 shows this split.¶
Device Network Server +---------------------+ +---------------------+ | camera | | language model | | | | | ^ | | | v | | | | | | tokenizer or | uplink: tokens | up-projection | | | vision encoder | (AI Data Units) | / dequantize | | | | | ====================> | ^ | | | v | | | | | | selection, adapter, | relays and operator | depacketize | | | quantization | network act on | v | | | | priority and groups | generated tokens | | v | | (text, audio) | | packetize | <==================== | | | display / act | downlink: tokens | | +---------------------+ +---------------------+
Multi-Service Pipeline: a workflow chains specialized models, with AI data flowing between services across network boundaries.¶
Disaggregated Inference: inference stages (prefill/decode, tensor or pipeline parallelism) exchange activations and key/value state, usually within a datacenter (Section 3.2.3).¶
Real-Time VLM Inferencing: a wearable, robot, or vehicle streams its visual field to a remote VLM; text or action tokens return on the downlink. The uplink carries discrete tokens or continuous embeddings, and the sender typically selects the most important tokens of each frame. Interaction deadlines are around 300-500 ms. This is the main use case motivating this work.¶
Streaming Speech Synthesis: a model generates audio tokens that are played out as they arrive, at or above the playback rate.¶
Agent Interaction: an agent sends multimodal context to another agent's model as part of a shared task (Section 12).¶
The figures below come from specific models, resolutions, datasets, and testbeds, mainly the 3GPP SA4 6G media study [SA4-AITRAFFIC] [SA4-EMB]. They are illustrative. Absolute values change with the model (e.g., token width), the input resolution, and the compression settings, and will be updated as measurements mature. What generalizes are the qualitative properties: the order of magnitude of element sizes; the fact that framing dominates the transport size of discrete tokens while the element size affects the transport size of continuous embeddings more; and the loss behavior when packets carry whole elements. The evaluations so far use independent (uncorrelated) packet loss, limited question sets, and one loss realization per condition; burst loss and delivery deadlines remain to be studied.¶
An element is ~2 bytes; representative rates are in Section 5.1.3. Vector quantization has already discarded the most expensive detail, so what reaches the wire is compact and has a bounded peak rate (token rate x ceil(log2 K) bits).¶
Discrete tokens are robust to loss and corruption: an index within the codebook range decodes to a valid codeword (with bit-packing, a corrupted index can fall outside the range and is then treated as missing); a lost token damages only its own segment, unless the model makes later tokens depend on earlier ones, as in autoregressive generation; and small units make concealment (repetition or interpolation) simple. These properties hold for fixed-width, self-framed tokens, and are lost if compression couples packets together (Section 10.6). Measured loss behavior is summarized in Section 7.4. The uplink token rate did not change with the network profile in the reported evaluations, which indicates that it is set by the application rather than by adaptation to the network path [SA4-AITRAFFIC].¶
Size. In one evaluation [SA4-EMB], a 640x352 frame produced 220 tokens: 901,120 octets (about 0.9 MB) per frame at d=2048 and 2,252,800 octets (about 2.3 MB) at d=5120 in bf16, against about 70 KB for the JPEG. Raw embeddings would therefore multiply uplink traffic.¶
Compact operating points. Selecting 64 tokens, reducing each to 256 dimensions with a trained adapter, and quantizing to int8 gave 16,512 octets of element data per frame, including the per-token scales (Section 5.2.4) -- smaller than the JPEG -- with video question-answering accuracy (NExT-QA) within 1.5 points of the uncompressed split (and 0.7 points above it for one model). About 8 KB per frame cost up to about three points.¶
Loss. With each packet carrying whole tokens and their positions, uniform uplink packet loss up to 30 %, and no retransmission, accuracy stayed within 0.5 points of the loss-free value for one model and within 2.2 points for the other. For models that accept variable-length, position-aware input, as in this evaluation, a lost packet acts like stronger token selection. Compressing a whole frame as one stream destroyed this property: one lost packet corrupted the frame.¶
Rate profile. Embedding streams are strongly uplink-heavy (uplink to downlink volume ratios above 100), bursty at the frame rate, and adaptable within a frame by sending fewer tokens. Sending a frame as one burst of a few hundred packets overflowed default receive buffers; pacing packets over the frame interval avoids this.¶
Measured task accuracy under loss. Several evaluations in [SA4-AITRAFFIC] carried tokens without retransmission or forward error correction (FEC), mostly over WebRTC (RTP), applied independent uplink packet loss, and measured question-answering accuracy:¶
Discrete tokens from the Liquid and VILA-U tokenizers: accuracy was unchanged up to 5 % loss (and up to 10 % for VILA-U), and about 5 % lower (relative) at 10 % loss for Liquid.¶
Discrete tokens from the NVIDIA Cosmos tokenizer: accuracy was unchanged up to 5 % loss and about 2 % lower (relative) at 10 %.¶
Continuous embeddings (Section 7.3): accuracy stayed within 0.5 and 2.2 points of the loss-free value for two models up to 30 % loss.¶
At a similar transmission budget, continuous embeddings sent without FEC were competitive in task accuracy with a state-of-the-art video codec (VVC) protected by application-layer FEC, and degraded more gradually as loss increased.¶
Differential importance: protecting the 15 % most important discrete tokens of each frame, instead of a random 15 %, gave about 2 %, 5 %, and 7 % (relative) more correct answers at 10 %, 20 %, and 30 % loss, with importance estimated at the sender from the first two layers of the receiver's model.¶
These results indicate that a lost packet removes only the tokens it carried and that the model tolerates their absence over a useful range of loss rates. For real-time use, carriage without retransmission, as is usual with RTP, therefore appears feasible for token streams, with additional protection for the most important tokens where needed (REQ-6).¶
| Carriage on the wire | Bytes / token | Scenario |
|---|---|---|
| Discrete tokens, binary | ~2 | real-time video |
| Token identifiers in JSON | ~6 | chat (non-stream) |
| Tokens streamed via SSE | ~120-237 | chat streaming /reasoning |
| Compact embeddings over RTP (d=256, int8) | ~256 payload; ~338 on wire | real-time video understanding |
| Media as base64 within JSON | ~574 | non-real-time video |
| Raw embeddings (bf16, d=2048-5120) | ~4,000-10,000 | split inference, uncompressed |
For discrete tokens, framing dominates: text/JSON and per-chunk SSE framing inflate a ~2-byte token by one to two orders of magnitude. Agent exchanges over text/JSON transports were also measured to incur about five times their payload in network-layer bytes, around three transport connections per turn, and a few hundred milliseconds of connection setup. For continuous embeddings, the element dominates; the savings come from the compact operating points, and the remaining framing overhead (about one third above the payload in the evaluated testbed format) leaves room for a leaner container.¶
A compact binary container, batching elements to amortize headers and carried over a single QUIC or RTP session, addresses both the bytes and the latency.¶
| Property | Discrete Tokens | Continuous Embeddings |
|---|---|---|
| Element size | 2-4 B | raw 4-10 KB; compact ~0.1-0.5 KB |
| Dominant cost | framing | the element itself |
| Compression | done by (V)Q; bit-packing | selection, adapter, quantization (model) |
| Loss behavior (whole elements per packet, measured) | accuracy unchanged up to ~5 % loss (evaluated without retransmission) | within ~0.5-2 points up to 30 % loss (evaluated without retransmission) |
| Differential importance | protecting the most important tokens improved accuracy under loss | importance score (norm or attention) used for selection |
| Adaptation | drop enhancement layers | send fewer tokens, least important first |
Figure 2 shows the information exchanged in a token flow and where the requirements apply.¶
Sender Network / relay Receiver | | |--- session metadata: representation, modality, model ------>| | configuration ID, element format (SDP, media type | | parameters, or out of band) [REQ-5, REQ-10, REQ-11] | | | |=== AI Data Units: header (type, modality, priority, ======>>| | group, positions) + elements [REQ-2, 3, 4, 11, 12] | | | | | reads priority and | | group; drops least | | important first [REQ-6, REQ-7] | | | |=== end of token group (possibly truncated) ===============>>| | [REQ-13] | |<-- rate feedback (RTCP, QUIC congestion control) -----------| | [REQ-1, REQ-13] | | | | all protected by SRTP or TLS 1.3 [REQ-9]; | | several modalities on one connection [REQ-8] |
The requirements below guide the companion specifications. All of them apply to both discrete tokens and continuous embeddings. They are grouped into requirements specific to token flows (Table 6) and general transport properties that most real-time transports already provide (Table 7). The numbering is kept stable across revisions; requirement levels and details are given in Section 8.2. Section 10 describes the container designed to meet them.¶
| ID | Requirement | Why |
|---|---|---|
| REQ-2 | Carry many tokens per packet in a compact binary form. | Framing dominates the cost of discrete tokens (7.5) |
| REQ-5 | Tell the receiver what the tokens are: type, modality, model configuration, element format. | Needed to interpret the elements (10.2) |
| REQ-6 | Indicate how important each unit is. | Protecting important tokens improved accuracy (7.4) |
| REQ-7 | Make each packet usable on its own, so that a lost packet loses only its own tokens; retransmission is not required. | Accuracy tolerates token loss (7.4) |
| REQ-10 | Keep the model configuration (codebook, adapter) opaque to the transport. | Models are private and change often (4.2) |
| REQ-11 | Indicate whether a flow carries discrete tokens or continuous embeddings. | Elements differ (10.2) |
| REQ-12 | When only some tokens are sent, indicate which ones. | Token selection (5.2) |
| REQ-13 | Signal the end of each token group and pace its packets; allow the sender to send fewer tokens when the rate drops. | Receiver knows when to stop waiting; bursts overflowed buffers (7.3) |
| ID | Requirement | Why |
|---|---|---|
| REQ-1 | Deliver within the application's latency budget (e.g., < 50 ms interactive, < 500 ms near-real-time). | Real-time use cases (6.2) |
| REQ-3 | Let the receiver detect loss, reordering, and duplication. | Basis for loss handling |
| REQ-4 | Associate each token group with a media time. | Alignment with media and other tokens |
| REQ-8 | Carry several modalities on one connection. | Multimodal sessions |
| REQ-9 | Protect token flows with standard transport security. | Tokens reveal their source (11) |
This section states requirement levels where they matter. The keywords describe what a conforming companion specification is expected to provide; they are not normative in this informational document.¶
REQ-2 (batching and compact encoding). Batching is essential for discrete tokens, whose 2-4 byte elements would otherwise be dominated by per-packet headers; compact embeddings are batched a few per packet. Elements of different layer or priority go in separate ADUs so that one priority applies to the whole ADU.¶
REQ-5 (metadata). Session signaling (SDP, media type parameters, or out-of-band agreement) conveys: (a) representation type; (b) modality; (c) model configuration identifier; (d) coding scheme -- VQ variant and token encoding, or embedding element format, dimension, and scale scheme; (e) number of layers; (f) unit sizes such as codebook size K; (g) expected sequence length; and (h) the position format.¶
REQ-6 (importance). Bindings SHOULD carry a per-unit importance indication, based on a layer or on a ranking of tokens, that a sender can use for protection and truncation and a network or relay can use for forwarding and dropping.¶
REQ-7 (partial reliability). For representations tolerant of degradation, bindings SHOULD support selective or no retransmission for lower-priority units, avoiding head-of-line blocking. Framing MUST keep ADU boundaries independently recoverable and MUST NOT split an element across packets unless the element alone exceeds a packet, so that a lost packet removes whole elements and never corrupts others. Receivers SHOULD be able to proceed when units are missing (concealment for discrete tokens; using the received elements, possibly with concealment, for continuous embeddings), and senders SHOULD mark independently decodable units.¶
REQ-10 (model configuration). The transport MUST support out-of-band agreement with the model configuration opaque to the transport, and MUST NOT require in-band negotiation. In-band distribution of a codebook or adapter is an application function (Section 10.7).¶
REQ-12 (positions). When only a subset of a token group's elements is sent, every unit carries the positions of its elements, so that each packet is interpretable on its own.¶
REQ-13 (end of group, pacing, and adaptation). A sender MUST be able to signal the end of a token group, so that a receiver can tell units that will not be sent from units that are delayed or lost. It SHOULD pace a group's packets rather than send them in one burst. It MAY adapt the number of elements per token group to the available rate, including while the group is being sent; this reacts faster than frame-level rate control (Section 10.5).¶
The container is carried in three ways: as an HTTP media type, through a MOQT mapping, and as an RTP payload format. This document refers to the three companion specifications collectively as bindings. HTTP lets existing HTTP-based AI services adopt the compact container without changing their transport; MOQT and RTP add the real-time and low-delay properties that HTTP lacks. All three carry the same AI Data Unit header (Section 10.1), so a unit is interpreted identically whichever transport carries it.¶
HTTP needs no protocol extension: [HTTP-MLM] defines a media type for a stream of ADUs and how HTTP is used to carry it, following the guidance for building protocols on HTTP [RFC9205]. ADUs are carried in HTTP message bodies (chunked transfer or DATA frames), self-delimited by lengths computed from the header. The body is binary, and session metadata is carried as media type parameters in Content-Type. It suits API-style inference, uploads of embeddings in place of images, and non-real-time use. HTTP/3 is preferred for interactive use; HTTP over TCP suffers head-of-line blocking. JSON carriage inflates per-token cost by one to two orders of magnitude and SHOULD NOT be used for high-volume or latency-sensitive flows.¶
The MOQT binding [MOQ-MLM] maps modality and representation to track names, token groups to MOQT groups, ADUs to objects, and importance to publisher priority; session metadata is agreed out of band, a catalog being for further study. Relays can drop the least important objects before a congested link and fan out one publisher to several subscribers, without decoding the objects. Delivery timeouts provide partial reliability, and MOQT's end-of-group signaling marks truncated groups.¶
The RTP payload format [RTP-MLM] carries ADUs as RTP payloads. The RTP timestamp identifies the token group, the sequence number detects loss, and the marker bit ends a group; RTCP feedback supports congestion control, while adapting the number of tokens to the rate is for further study. Existing RTP header extensions, such as the 3GPP PDU Set marking extension, can expose priority and group identity to the network. RTP fits conversational deployments, in RTP implementations that support new payload formats, and the real-time media profiles used by mobile operators; embedding carriage over RTP has been evaluated in the 3GPP SA4 testbed [SA4-EMB].¶
| Scenario | Transport | Reason |
|---|---|---|
| API inference, batch, uploads of continuous embeddings | HTTP (HTTP/3) | deployed today |
| Migration from text/JSON token streaming | HTTP | same HTTP data plane, binary body |
| Real-time streams with relays or several subscribers | MOQT | priority drop, fan-out, delivery timeouts |
| Conversational and operator real-time services | RTP | jitter buffer, RTCP, header extension |
This section presents the AI Data Unit (ADU) container that the companion specifications define in detail; [RTP-MLM] holds the normative field definitions. The ADU is the central proposal of this document: a single, small unit of handling that meets the token-specific requirements of Section 8 in the same way over HTTP, MOQT, and RTP.¶
Design approach. The container was derived from the requirements of Section 8 and from established practice for media payload formats, in particular the payload descriptors of RTP video payload formats such as VP9 [RFC9628] and the object model of MOQT. It rests on six design choices:¶
Container, not codec. The transport carries and identifies tokens but never interprets them; the model configuration stays opaque and is agreed outside the data path (REQ-10).¶
One header for all transports. The same octets are carried as an RTP payload, a MOQT object, or a unit of an HTTP body, so a unit means the same thing whichever transport carries it, and a gateway between transports need not re-encode it.¶
Small fixed header, optional fields by flag. The common case costs 8 octets; identifiers, group identity, and positions are added only when used (REQ-2).¶
Handling attributes separate from payload. Representation type, modality, and priority are in the header, where a sender, a relay, or (when exposed) the network can act on them; the elements themselves are opaque (REQ-6, REQ-11).¶
The packet as the unit of loss. Each packet carries whole elements and enough information to be used on its own, so that loss removes tokens rather than corrupting them (REQ-7, REQ-12).¶
Stable parameters out of band, varying ones in band. Element format, dimension, and model identity are negotiated once per session; only what changes per unit is in the header (REQ-5).¶
Table 9 maps the token-specific requirements of Table 6 to the container features that address them.¶
| Req. | Container feature | Section |
|---|---|---|
| REQ-2 | Element Count batching, binary elements, 8-octet header | 10.1, 10.4 |
| REQ-5 | Negotiated element format; Codebook/Model ID | 10.2, 10.7 |
| REQ-6 | PRI field, optionally exposed to the network | 10.3 |
| REQ-7 | Element-aligned packetization; element fragments | 10.4 |
| REQ-10 | Opaque identifier; binding modes | 10.7 |
| REQ-11 | RType field | 10.1 |
| REQ-12 | P flag and Position List | 10.3 |
| REQ-13 | T flag; empty end-of-group ADU (pacing and adaptation are sender behavior) | 10.5 |
Figure 3 shows how elements build up into ADUs and token groups, and how these map onto the three transports.¶
element AI Data Unit Token Group
(one index --> (header + elements --> (all ADUs of
or vector) of one class) one frame)
carried as: RTP payload | MOQT object |
HTTP body unit
identified by: RTP timestamp | MOQT group |
Group Identifier
Every ADU begins with the same header in all three bindings. The fixed part is 8 octets; optional fields follow only when their flags are set:¶
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, iff C=1) : : Group Identifier (32, iff G=1) : : Position List (16 x Element Count, iff P=1) : : Element Data ... : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
RType is the representation type; Modality, Layer, and PRI (priority: 1 = most important, 15 = least important, 0 = not specified, aligned with the 3GPP PDU Set Importance) are handling attributes. The flags mark an element fragment (F) and its first and last fragment (S, E), an independently decodable unit (I), the presence of the optional fields (C, G, P), and the end of a token group (T); X is reserved for extensions. The Codebook/Model ID identifies the model configuration (Section 10.7). Element Count gives the number of elements; Seq Start gives the index of the ADU's first element within its token group, so that an ADU can be placed even when other ADUs of the group are lost. The header is 8 octets in the common case, so its overhead is negligible next to continuous embeddings and small next to a batch of discrete tokens.¶
Only the header is meaningful to the transport; elements and positions are opaque payload. Timing comes from the transport (the RTP timestamp; for MOQT and HTTP, carriage of a media timestamp is for further study), so no timestamp field is needed in the header.¶
The element is the one thing that differs between representations; everything else in the container is shared.¶
Discrete tokens: an element is one codebook index of a negotiated width b, 16 bits by default. Indices are bit-packed, so any codebook size K is supported with b = ceil(log2 K) and no wasted bits.¶
Continuous embeddings: an element is one vector of dimension d in a negotiated format -- bf16, fp16, fp8 (E4M3), int8, or int4; integer formats are preceded by a per-token scale. d and the format are negotiated per stream, not carried per packet. For a d=256 int8 token, an element is 258 octets.¶
Because element formats are negotiated, new formats can be added without changing the header.¶
When a sender transmits only a subset of a group's tokens, every ADU carries a Position List giving the position of each of its elements (e.g., grid row and column for images and video, or an index for other modalities). Each packet is therefore self-describing: there is no per-frame metadata packet whose loss would make other packets unusable. Positions apply to discrete tokens too, when a sender selects token positions.¶
One or more ADUs form a token group, such as all tokens of one frame. The group is identified by the transport (RTP timestamp, MOQT group) and, optionally, by a Group Identifier carried in every ADU, which a receiver or a network function can use to assemble the group -- for example into a 3GPP PDU Set -- by equality, without decoding elements.¶
PRI SHOULD reflect importance: for discrete tokens typically the layer; for continuous embeddings the score used for selection. A sender groups elements of similar importance into the same ADU, so that network dropping and sender truncation remove the least important first.¶
A packet carries as many whole elements as fit: many discrete tokens, or a few compact embeddings (e.g., four 256-octet vectors in an 1100-octet payload). Elements of a token group that do not fit in one packet are carried in several ADUs, each placed in the group by its Seq Start. An element larger than a packet (e.g., a raw 5120-wide embedding) is carried in a sequence of ADUs with the F flag; the receiver discards it if any fragment is missing. In every case a lost packet removes only the elements it carried.¶
The T flag marks the last ADU a sender will send for a token group, whether or not all of its elements were sent; if that ADU has already gone out, an empty end-of-group ADU carries the flag. A receiver uses the complete elements it has, at their positions, when the group ends or its deadline expires. For continuous embeddings and models that accept variable-length, position-aware input, missing tokens can simply be omitted, so that the group behaves like one with stronger token selection, or replaced by a concealment value such as the mean of the received embeddings; both were used in the evaluations of Section 7. Together with PRI this lets a sender set a token budget per group from its rate estimate and stop a group early when the rate drops, which reacts faster than frame-level rate control.¶
Compression happens on the model side. For continuous embeddings, token selection, the adapter, and quantization are part of the model configuration, are identified by the Codebook/Model ID, and produce the elements the container carries. Discrete tokens are already compact after vector quantization and are carried as bit-packed indices of ceil(log2 K) bits (16 by default).¶
The container does not define entropy coding of the element data. Coding several packets as one compressed stream would make one lost packet affect the others, removing the loss behavior of Sections 7.2 and 7.3.¶
The model configuration -- codebook, or encoder plus adapter plus quantizer -- is opaque to the transport. Three modes are recognized:¶
Implicit: nothing is signaled; both endpoints share the configuration by construction. Bindings MUST support this mode.¶
Reference: an opaque identifier lets endpoints confirm they use the same configuration and detect a mismatch without disclosing it; the identifier may, for example, include a hash of the configuration, which also detects a tampered configuration when the expected identifier is authenticated or pinned. RECOMMENDED where anything is signaled; the identifier is normally declared once per session rather than per packet.¶
Explicit: configuration parameters or content are exchanged by the application or session protocol. OPTIONAL, and not a transport function.¶
No feature of the container depends on the explicit mode. A public registry of codebook or model identifiers raises governance and IPR questions beyond transport and is not proposed.¶
With RTP, the token group carries one media timestamp from the transport (e.g., capture time of the frame; 90 kHz for video, the sample rate for audio); for MOQT and HTTP, carriage of a media timestamp is for further study. Transport sequence numbers detect loss and reordering; Seq Start locates the elements of an ADU within its token group.¶
The Representation Type field and negotiated element formats leave room for further representations -- for example activations or key/value state for disaggregated inference, which may need reliable delivery for their most important layer -- without changing the header.¶
The following examples show how AI Data Units could be structured for some typical cases. They are independent of the transport; how ADUs are carried over HTTP, MOQT, and RTP is defined in the bindings. The models and sizes are example values modeled on the evaluations of Section 7, and are not recommendations. For each example, the parameters agreed out of band are listed first; only the header fields vary per ADU. Flags not mentioned are 0.¶
Modality distinguishes what the tokens represent: a still image uses Modality=2 (IMAGE) and is one token group; a video uses Modality=1 (VIDEO), with one token group per frame (or per merged group of frames), each associated with its media time by the transport (REQ-4). The Representation Type and the element are the same in both cases.¶
Example 1: discrete tokens of a still image. An image is tokenized into 256 discrete tokens with a codebook of K=16384 entries. Out of band: representation discrete tokens, 16-bit indices (the default), and optionally the codebook identifier. All tokens are handled alike and no importance is specified (PRI=0), so the image is one token group consisting of one ADU (S=E=1, I=1, T=1), 8 + 256 x 2 = 520 octets:¶
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 | | 1 | 0 | 2 | 0 |1|1|1|0| 0 |0|0|0|1|0| 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Element Count = 256 | Seq Start = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Element Data: 256 x 16-bit codebook index (512 octets) : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Example 2: discrete tokens of a video frame, with a Group Identifier. Each frame of a video yields 256 tokens with the same tokenizer. The ADU differs from Example 1 in Modality=1 (VIDEO); here the sender also includes a Group Identifier (G=1, e.g., the frame number 42) so that the ADUs of the frame can be grouped without transport-specific information. I=1 indicates that the frame can be decoded without earlier frames. The ADU is 8 + 4 + 512 = 524 octets:¶
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 | | 1 | 0 | 1 | 0 |1|1|1|0| 0 |1|0|0|1|0| 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Element Count = 256 | Seq Start = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Group Identifier = 0x0000002A : : Element Data: 256 x 16-bit codebook index (512 octets) : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
If the tokens of a frame do not fit in one packet (e.g., 1024 tokens of 2048 octets), they are carried in several ADUs, each with its own header. Seq Start gives the index of each ADU's first token in the frame, so each ADU can be placed even if the other is lost:¶
ADU 1: T=0, Element Count=596, Seq Start=0 ADU 2: T=1, Element Count=428, Seq Start=596¶
Example 3: continuous embeddings with token selection. A device runs a vision encoder on a video frame, keeps the 64 most important of 220 tokens, reduces them with an adapter to d=256, and quantizes them to int8. Out of band: representation continuous embeddings, dimension 256, element format int8, and optionally the identifier of the encoder, adapter, and quantizer. Each element is a bf16 scale followed by 256 int8 components (2 + 256 = 258 octets). The sender orders the tokens by importance and places four tokens in each ADU. Because only a subset of the tokens is sent, each ADU carries the positions (row, column) of its tokens (P=1). The first ADU of the frame, with PRI=1, is 8 + 8 + 4 x 258 = 1048 octets:¶
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 | | 1 | 1 | 1 | 0 |1|1|0|0| 1 |0|0|1|0|0| 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Element Count = 4 | Seq Start = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Position List: 0x0307 0x0308 0x0502 0x090C : : (row 3, col 7), (3, 8), (5, 2), (9, 12) : : Element 0: scale (bf16, 2) + 256 x int8 (256 octets) : : Elements 1-3: same layout (3 x 258 octets) : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
The 16 ADUs of the frame differ only in PRI (e.g., 1 for the first four ADUs and 3 for the others), in Seq Start (0, 4, 8, ...), in the positions and elements, and in T, which is 1 in the last ADU. A lost ADU removes only its four tokens; the receiver uses the others at their positions.¶
Example 4: end of a truncated token group. If the sender of Example 3 stops after ten ADUs, for example because the available rate has dropped, and the tenth ADU has already been sent without T=1, it sends an end-of-group ADU: T=1, Element Count=0, and no Position List or Element Data. If the ADUs of the frame carry a Group Identifier, the end-of-group ADU carries the same one and is 12 octets:¶
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 | | 1 | 1 | 1 | 0 |1|1|0|0| 1 |1|0|0|1|0| 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Element Count = 0 | Seq Start = 0 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ : Group Identifier = 0x0000002A : +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Example 5: an element larger than a packet. Without an adapter, an embedding with d=2048 in bf16 is 4096 octets. Each such element is carried in an ADU of its own and split by element fragmentation (F=1, Element Count=1), with Seq Start giving the octet offset of each fragment within the element and the position repeated in each fragment:¶
Fragment 1: S=1, E=0, F=1, P=1, Seq Start=0 (1100 octets) Fragment 2: S=0, E=0, F=1, P=1, Seq Start=1100 (1100 octets) Fragment 3: S=0, E=0, F=1, P=1, Seq Start=2200 (1100 octets) Fragment 4: S=0, E=1, F=1, P=1, Seq Start=3300 (796 octets)¶
If any fragment is lost, the receiver discards that token only.¶
Confidentiality. Tokens reveal their source. Discrete tokens can be decoded by anyone holding the codebook, and continuous embeddings are subject to inversion attacks that reconstruct the input. Sending embeddings instead of an image therefore does not by itself protect the image's content. AI data streams need protection in transit (e.g., SRTP for RTP; TLS 1.3 for HTTP and QUIC for MOQT); each binding specifies this following the conventions of its transport.¶
Integrity and authentication. Crafted tokens injected into an inference pipeline can manipulate its output. Source authentication (e.g., SRTP authentication, TLS, MOQT publisher authorization) is therefore needed, as specified by each binding. A mismatched or tampered model configuration causes systematic misinterpretation; an identifier that includes a hash of the configuration (Section 10.7) can detect this without disclosing the configuration, provided the expected identifier is authenticated or pinned.¶
Metadata exposure. Under SRTP or QUIC the AI Data Unit header is encrypted with the payload. Where a network needs priority or group identity, a binding may expose that small subset in the clear (e.g., in an RTP header extension), revealing an importance pattern and group structure to on-path observers; this exposure is optional and can be avoided or encrypted [RFC6904]. Positions, which indicate the image regions the sender considered important, and the model configuration identifier, which can fingerprint the model, stay in the encrypted payload or in session signaling. Adaptive token counts and packet sizes may still reveal scene activity through traffic analysis, as for variable-rate media.¶
Resource exhaustion. Receivers bound the resources committed per token group and validate positions and element counts.¶
Relays. MOQT relays need only object priority and never the elements or positions; where relays must not see content, end-to-end encryption of object payloads applies.¶
Companion bindings: [HTTP-MLM], [MOQ-MLM], and [RTP-MLM] specify the container for discrete tokens and continuous embeddings.¶
Network-assisted handling: [I-D.hw-protocol-agent] addresses network recognition and QoS of multimodal agent traffic; this container supplies the importance and grouping it relies on.¶
Token-native semantic transport: [I-D.huang-visual-token-semantic-transport] states requirements for compressing visual tokens on a client and adapting their number within a frame. They are met by the embedding support of the bindings (positions, element-aligned ADUs, priority-ordered truncation, end-of-group flag); entropy coding is left to the model configuration. Its "token group" (a packet-sized unit) corresponds to an ADU here, and its "frame" to a token group.¶
Agent communication: the agentproto effort [AGENTPROTO] and drafts carrying A2A and MCP over MOQT ([A2A-MOQ], [MCP-MOQ]) define the session and message plane for agents; when agents exchange multimodal content, this container is the data plane they can use.¶
3GPP: 3GPP SA4 derives the traffic characteristics of AI services, including those of Section 7 [SA4-AITRAFFIC], and may adopt IETF work on token transport, as token streaming is one of the 6G use cases for real-time communication.¶
This document makes no requests of IANA. The registries for the Representation Type and Modality code points of the AI Data Unit header are requested by [RTP-MLM].¶
The author thanks the contributors to the 3GPP SA4 study on 6G media [SA4-AITRAFFIC], in particular Qualcomm, NTT DOCOMO, vivo, and MediaTek, whose traffic characterization and evaluation results informed Section 7 of this document. The views expressed here are those of the author and do not necessarily represent those of 3GPP or of the contributing companies.¶