Internet-Draft MOQT Mapping for MLM Tokens December 2026
Mekuria Expires 7 June 2027 [Page]
Workgroup:
MOQ Working Group
Internet-Draft:
draft-mekuria-moq-moqt-mlm-token-streams-00
Published:
Intended Status:
Standards Track
Expires:
Author:
R. Mekuria, Ed.
Huawei Technologies Co., Ltd.

Media over QUIC Transport (MOQT) Mapping for Token Streams of Multimodal AI: Discrete Tokens and Continuous Embeddings

Abstract

Distributed multimodal AI applications increasingly send the tokens that AI models consume, rather than raw media, across the network. For example, a device runs the vision encoder of a vision-language model and sends the resulting tokens to a language model in the cloud. This document specifies how such token flows, discrete tokens and continuous embeddings, are carried over Media over QUIC Transport (MOQT). It describes the intended use cases, explains why MOQT suits them, and defines the mapping of token flows onto MOQT tracks, groups, and objects, including priority, delivery mode, end-of-group signaling, and default settings.

Status of This Memo

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.

▲

Table of Contents

1. Introduction

AI applications increasingly run as pipelines split across devices, edge, and cloud. Language models operate on sequences of tokens, and non-text inputs such as images, video, and audio reach a model in one of two forms:

In split inference, part of a model runs on one device and the rest elsewhere. For example, a camera device runs the vision encoder of a VLM and sends the resulting tokens, instead of the video, to the language model in the cloud. The tokens then cross the network under a latency budget, which for interactive use is around a few hundred milliseconds.

Today such data is often carried as text or JSON over HTTP, which adds per-token overhead, has no notion of deadlines or priority, and does not handle loss gracefully. Evaluations reported to 3GPP indicate that models tolerate the loss of some tokens, that tokens differ in importance, and that the tokens of a frame form a natural unit ([I-D.discrete-token-transport-mlm] Section 7). These properties match the object model of MOQT (Section 3).

This document specifies how token flows are carried over MOQT [MOQT]. The framework document [I-D.discrete-token-transport-mlm] gives more background, measured traffic characteristics, and the transport requirements; companion documents specify carriage over RTP [I-D.rtp-payload-mlm-tokens] and HTTP [I-D.http-mlm-tokens]. All three use the same payload format, so that a unit is interpreted in the same way whichever transport carries it (Section 12).

2. Use Cases and Architecture

2.1. Device-to-Cloud Split Inference

A wearable, robot, vehicle, or camera streams its view to a remote VLM. The device runs a tokenizer or vision encoder on each frame, optionally keeps only the most important tokens, and publishes them; the language model subscribes and returns text, actions, or audio. This is the main use case of this document. The flow is uplink-heavy, bursty at the frame rate, and each frame is useful only until its deadline.

2.2. Several Consumers of a Token Flow

The same token flow may be consumed by several subscribers, for example a perception agent, a safety monitor, and a recorder that all use the tokens of one camera, or several agents working on a shared task. When the device publishes once to a relay that forwards to each subscriber, the device does not need to send the flow several times.

2.3. Delivery of Generated Tokens

A model may generate audio or other tokens that are played out as they arrive, possibly at several receivers, for example speech synthesis in a group session. The same mapping applies, with the model as publisher.

2.4. Architecture

Figure 1 shows the architecture for the use cases above.

+-------------+                         +------------------+
| Device      |                    +--->| Inference        |
| (publisher) |    +------------+  |    | server A         |
|             |    |            |--+    | (subscriber)     |
|  camera     |    |            |       +------------------+
|  encoder    |--->| MOQT relay |
|  selection  |    |            |       +------------------+
|  publish    |    |            |--+    | Inference        |
|             |    +------------+  |    | server B / agent |
+-------------+                    +--->| (subscriber)     |
       ^                                +------------------+
       |                                          |
       +------ generated tokens (separate tracks) +
Figure 1: Token flows over MOQT with a relay

The device publishes one track per modality and representation (Section 6). A relay forwards the objects to each subscriber and, when a path is congested, uses their Publisher Priority to decide what to drop (Section 11). This is useful even with a single subscriber: a relay placed before a congested link, for example at the network edge, can drop the least important tokens there. Responses flow back on separate tracks. Relays, and any network element, handle the objects without interpreting the tokens.

3. Why MOQT

MOQT provides a publish/subscribe model over QUIC [RFC9000] with tracks, groups, objects, priorities, and relays. Each of these matches a property of token flows:

RTP offers several of these properties for point-to-point real-time sessions, and HTTP suits request/response interfaces. MOQT adds relay fan-out and priority-aware forwarding, which suit the use cases of Section 2. MOQT is still being developed; this mapping uses its current object model [MOQT] and leaves some points for further study.

4. What This Document Specifies

This document specifies, for MOQT:

Not specified, and for further study: a MOQT catalog for the parameters, carriage of media timestamps, and mechanisms for rate adaptation. Section 13 gives examples; readers mainly interested in how the mapping can be used can start with Sections 2, 3, and 13.

5. Terminology

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.

This document uses the MOQT terms track, namespace, group, subgroup, object, Publisher Priority, and relay as defined in [MOQT], and the following terms (see also [I-D.discrete-token-transport-mlm]):

Discrete token:

an integer index into a learned codebook.

Continuous embedding:

a vector representing one token position in a model's input, e.g., the vision-encoder output for one image patch.

Model configuration:

everything both endpoints must share to interpret the tokens: the codebook for discrete tokens; the encoder, any adapter, and any quantizer for continuous embeddings. It is opaque to this mapping.

Element:

one discrete token or one continuous embedding.

AI Data Unit (ADU):

a header plus one or more elements that share the same handling (representation type, modality, layer, and priority). In this mapping, one MOQT object carries one ADU (Section 12).

Token group:

the ADUs that together carry one unit of information, e.g., all tokens of one frame or image.

Datagram:

a MOQT Object Datagram [MOQT], which carries one object in one QUIC DATAGRAM frame.

Subgroup stream:

a QUIC stream that carries the objects of one MOQT subgroup [MOQT].

The word "stream" alone is not used for either of these.

6. Track Naming

Tracks for one pipeline session are published under the namespace:

"mlm" / <pipeline-id> / <session-id>

Within it, the default is one track per modality and representation: "<modality>" for discrete tokens (e.g., "audio", "image", "video") and "<modality>-emb" for continuous embeddings (e.g., "video-emb"). A deployment MAY expose scalability layers as separate tracks with a layer suffix, e.g., "audio/L0" and "audio/L1"; this is not required (Section 8). Because modality and representation are part of the track name, a subscriber can select what it needs, and a relay can act without parsing payloads. Tracks in the other direction, e.g., generated tokens, follow the same naming.

7. Groups, Objects, and Delivery Mode

7.1. Groups and Objects

Group:

One MOQT group carries one token group, e.g., all tokens of one frame or image. Publishers SHOULD start a new group at natural boundaries (each frame or image, an utterance, a scene change) or at least periodically. Where a group does not depend on earlier groups, its first ADU sets I=1, and late or recovering subscribers can start at that group; otherwise a subscriber starts at the next ADU with I=1.

Object:

One MOQT object carries one ADU. Elements of a token group that do not fit in one object are carried in several objects, each placed in the group by the Seq Start of its ADU (Section 12). The Object ID increases monotonically within the group. Because an ADU batches many elements, the object rate follows the frame rate, not the token rate. When layers are published as separate tracks, corresponding objects use the same Object ID.

The ADUs of a group MAY also carry a common Group Identifier (Section 12), which identifies the token group independently of MOQT within the scope of the full track name, for example so that a network function can map the group to a 3GPP PDU Set. The precise mapping of token groups to PDU Sets is for further study ([I-D.discrete-token-transport-mlm] Section 10.3).

7.2. Delivery Mode

Both MOQT delivery modes are used, depending on the data:

  • Objects that tolerate loss and have a deadline, such as the tokens or embeddings of real-time perception, SHOULD be sent as datagrams. Objects then do not wait for each other, and a lost datagram removes only the elements it carried.

  • Data that needs every token, such as image tokens used for reconstruction or generated text tokens, SHOULD be sent on subgroup streams.

  • Elements larger than a datagram, such as wide uncompressed embeddings, SHOULD be sent on subgroup streams, since over datagrams the loss of any fragment discards the whole element.

  • The most important objects of a token group MAY be sent on a subgroup stream, with a delivery timeout matched to the group deadline, and the other objects as datagrams.

Each datagram fits in one QUIC DATAGRAM frame [RFC9221]. Before sending an object as a datagram, the publisher checks that the object, with the MOQT datagram header, fits within the maximum datagram size currently available on the connection, since an oversized datagram can be dropped without notification. Elements that do not fit are carried in several objects, each an ADU placed in the group by its Seq Start, or are sent on a subgroup stream; an element that does not fit on its own is split by element fragmentation (F=1), following the element-aligned rules of [I-D.rtp-payload-mlm-tokens] Section 4.4. Over subgroup streams an object MAY carry many elements; publishers SHOULD nevertheless bound object size so that losing or expiring one object removes a small, low-importance part of the group. A delivery timeout matched to the group deadline bounds the delay of objects on subgroup streams.

7.3. Timing

Group and object order give sequencing, and each group corresponds to one media instant (e.g., one frame). Carriage of an explicit media clock or a per-group media timestamp is for further study.

8. Priority and Loss Resilience

Each ADU carries an importance value, PRI (Section 12): 1 is the most important, 15 the least, and 0 means that the importance is not specified. For PRI values 1 to 15, the publisher sets the MOQT Publisher Priority from PRI, preserving its order (in both, a lower value means higher priority). The mapping is configured per track, for example Publisher Priority = B + PRI with a base value B chosen relative to the other tracks of the session, so that token tracks do not unintentionally take precedence over unrelated tracks; B MUST NOT exceed 240, so that B + 15 stays within the Publisher Priority range. For PRI=0, the publisher uses the default Publisher Priority of the track. MOQT carries Publisher Priority per subgroup (in the Subgroup Header) or per datagram (in the Object Datagram), so objects with different PRI values are sent in different subgroups or as separate datagrams. When no importance information is available, PRI is 0 for all objects.

A publisher SHOULD set PRI from the importance of the tokens, for example the layer for hierarchical discrete tokens or the score used to select embeddings, and SHOULD place tokens of similar importance in the same object, so that relays drop the least important tokens first. This needs no layered structure: one track carries the token flow by default, and layers MAY be published as separate tracks where a subscriber wants only some of them (Section 6).

Loss is handled per object. Every object carries whole elements, except the fragments of an element larger than a datagram (F=1, Section 7.2); when only a subset of a group's tokens is sent, every object MUST set P=1 and list the positions of its elements, so that each object is self-describing. A lost or expired object therefore removes only its own tokens; losing one fragment of an element makes the other fragments of that element unusable:

A subscriber releases a group to the model after the end of the group has been signaled and a reordering window has passed (Section 9), or at its deadline, whichever comes first. Delivery timeouts MAY be shorter for low-importance objects, and subgroup streams or FETCH MAY recover important objects when the deadline permits.

Network-visible marking (informative). MOQT runs over QUIC, so the object header and payload are encrypted on the path; only relays see the Publisher Priority. Beyond relays, a sender MAY map PRI to a DSCP value within an administrative domain; DSCP is commonly re-marked or ignored across the public Internet. How a 5G/6G network treats such traffic is a 3GPP matter on which this document places no requirement.

9. End of Group

A subscriber must be able to tell objects that will never be sent from objects that are delayed or lost, for example when a publisher stops a group early because the available rate has dropped:

The publisher MAY also set T=1 on the last ADU of the group, so that the ADU carries the same indication as in the other bindings; a subscriber treats either signal as the end of the group. The empty end-of-group marker ADU (T=1, Element Count=0) of the other bindings is not used in this mapping, since the MOQT End of Group status serves that purpose.

When a group uses both datagrams and subgroup streams, the publisher signals the end of the group once, after the last object of the group has been sent on either delivery mode. A subscriber that receives the end-of-group signal continues to accept objects of the group with smaller Object IDs, from either delivery mode, until a receiver-chosen reordering window has passed or the group deadline expires, whichever comes first, and then releases the group.

Rate adaptation. QUIC provides congestion control for MOQT. A publisher can reduce its rate by sending fewer elements per group, least important first, and ending the group early; how quickly AI senders can adapt the number of tokens, and the mechanisms for doing so, are for further study.

10. Default Settings and Model Configuration

To interpret a track, a subscriber needs the parameters of [I-D.rtp-payload-mlm-tokens] Section 8.2 (rtype, token-bits, emb-dim, elem-format, codebook-id), with the same values and meanings; "rate" is not used. This mapping keeps what needs to be signaled to a minimum:

The model configuration is opaque to this mapping and is handled per the binding modes of [I-D.discrete-token-transport-mlm] Section 10.7:

Where parameters need to be agreed explicitly, for example to select one of several model configurations, they are agreed out of band, for example by the application that sets up the pipeline; this document does not define a mechanism for this. Conveying them in a MOQT catalog or as track properties is for further study. A subscriber MUST NOT subscribe to a track whose parameters it does not support. Because the length of each object is known, a subscriber can also check that the parameters match: for an unfragmented object of an embedding track, the object payload length minus the header length, divided by Element Count, gives the element width W ([I-D.rtp-payload-mlm-tokens] Section 4.3).

11. Relay Behaviour

A relay forwards objects using the MOQT priorities [MOQT] and MAY read the track name (modality, representation, optional layer) to inform dropping; it MUST NOT need to read or interpret the codebook, model, positions, or elements to operate. Under congestion a relay drops lower-priority (higher PRI) objects first and MUST NOT modify object payloads. A relay fans out one publisher to several subscribers (e.g., several inference servers). End-to-end encryption of object payloads MAY be applied by the application; a relay then uses only MOQT-level priority for dropping. Because every object is self-describing, a relay that drops objects never makes the remaining objects of a group uninterpretable; the only exception is an element carried in fragments (F=1), which becomes unusable when one of its fragments is dropped.

12. Object Payload

Each MOQT object payload is one AI Data Unit, in the format shared with the RTP and HTTP bindings. The fields are defined in [I-D.rtp-payload-mlm-tokens] Section 4.2; a unit can therefore be passed between transports without re-encoding. The fixed part of the header is 8 octets; optional fields follow only when their flag is 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 ...                                             :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 2: AI Data Unit header

In summary:

For discrete tokens, each element is a codebook index of b bits (16 by default), packed as defined in [I-D.rtp-payload-mlm-tokens] Section 4.3. For continuous embeddings, each element is one vector in the element format of [I-D.rtp-payload-mlm-tokens] Section 4.3. Only the header is meaningful to relays; the elements and positions are opaque. Except for element fragments, S=E=1 and F=0.

13. Illustrative Examples

The following examples illustrate the mapping. The names, sizes, and priority values are example values, not recommendations; B is the base value of the priority mapping (Section 8); the AI Data Unit layouts themselves are illustrated in [I-D.discrete-token-transport-mlm] Section 10.10. All examples use the namespace "mlm" / "cam1" / "s42" and the implicit model configuration.

Example 1: discrete video tokens as datagrams. A device tokenizes each video frame into 256 discrete tokens and publishes them on the track "video". The default token-bits=16 applies, so no parameters are signaled. Each frame is one token group, carried as one MOQT group:

Group ID:    the frame number, e.g., 42
Object 0:    one ADU, S=E=1, T=1, PRI=0 (not specified),
             Element Count=256, 8 + 512 = 520 octets
Datagram:    Publisher Priority = track default (PRI=0);
             END_OF_GROUP flag set, since this is the last object

Example 2: continuous embeddings with token selection as datagrams. A device runs a vision encoder and an adapter and publishes, on the track "video-emb", the 64 most important tokens of each frame, with d=256 and elem-format "int8". Both values are part of the shared model configuration, so they are not signaled. Each frame is one MOQT group of 16 objects, each one ADU of four elements with their positions (P=1), 1048 octets:

Objects 0-3:   PRI=1, Publisher Priority B+1
Objects 4-15:  PRI=3, Publisher Priority B+3
Seq Start:     0, 4, 8, ... in objects 0, 1, 2, ...
Object 15:     END_OF_GROUP flag set in its datagram

If the available rate drops after object 9, the publisher stops and, since object 9 has already been sent, sends a datagram with the End of Group status as Object ID 10. The subscriber then releases the frame with 40 tokens without waiting for its deadline. If object 7 is lost, the subscriber uses the other tokens at their positions.

Example 3: relay under congestion. A relay forwards the track of Example 2 to two subscribers, A and B. The path to B becomes congested, so the relay drops objects with Publisher Priority B+3 first; B receives objects 0 to 3, the 16 most important tokens, and A receives all objects. Because each object carries its own header and positions, B can use the objects it receives without the others, and the relay never reads the payload.

Example 4: an image on a subgroup stream. A device sends an image that needs every token, tokenized into 1024 tokens with an 18-bit codebook, on the track "image", with token-bits=18 agreed out of band together with the codebook. The ADU is 8 + 2304 = 2312 octets, which does not fit in a datagram. Instead of splitting it into several objects, the publisher sends it as one object on a subgroup stream:

Group:           one group for the image
Subgroup stream: Subgroup Header with Publisher Priority B+1
                 (PRI=1) and the END_OF_GROUP flag set
Object 0:        one ADU, S=E=1, T=1, Element Count=1024
End:             the subgroup stream is closed with a FIN

Over datagrams, the same tokens would instead be carried as two objects, each an ADU placed in the group by its Seq Start (Section 7.2).

14. Security Considerations

MOQT runs over QUIC, which provides TLS 1.3 for all session data; this MUST be used where content is sensitive. Discrete tokens and continuous embeddings inherit the sensitivity of the source data (reconstruction from codebook, embedding inversion; see [I-D.discrete-token-transport-mlm] Section 11). Where relays must not see content, application end-to-end encryption of object payloads SHOULD be applied, in which case relays rely solely on MOQT priority; positions, which indicate which image regions were considered important, are then also hidden from relays. Publisher authorization SHOULD be used to counter adversarial injection. Subscribers MUST bound the resources committed per group. Keeping the codebook or model out of band (Section 10) reduces model-fingerprint exposure.

15. IANA Considerations

This document has no IANA actions. The Representation Type and Modality registries shared by the bindings are requested by [I-D.rtp-payload-mlm-tokens].

16. References

16.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/rfc/rfc8174>.
[RFC9000]
Iyengar, J., Ed. and M. Thomson, Ed., "QUIC: A UDP-Based Multiplexed and Secure Transport", RFC 9000, , <https://www.rfc-editor.org/rfc/rfc9000>.
[MOQT]
Nandakumar, S., Vasiliev, V., Swett, I., Ed., and A. Frindell, Ed., "Media over QUIC Transport", Work in Progress, Internet-Draft, draft-ietf-moq-transport-23, , <https://datatracker.ietf.org/doc/html/draft-ietf-moq-transport-23>.
[I-D.rtp-payload-mlm-tokens]
Mekuria, R., "RTP Payload Format for Token Streams of Multimodal AI: Discrete Tokens and Continuous Embeddings", Work in Progress, Internet-Draft, draft-mekuria-avtcore-rtp-payload-mlm-tokens-00, <https://datatracker.ietf.org/doc/html/draft-mekuria-avtcore-rtp-payload-mlm-tokens-00>.

16.2. Informative References

[RFC9221]
Pauly, T., Kinnear, E., and D. Schinazi, "An Unreliable Datagram Extension to QUIC", RFC 9221, , <https://www.rfc-editor.org/rfc/rfc9221>.
[I-D.discrete-token-transport-mlm]
Mekuria, R., "Transport of Tokens for Distributed Multimodal AI: Discrete Tokens and Continuous Embeddings", Work in Progress, Internet-Draft, draft-mekuria-multimodal-ai-token-transport-00, <https://datatracker.ietf.org/doc/html/draft-mekuria-multimodal-ai-token-transport-00>.
[I-D.http-mlm-tokens]
Mekuria, R., "Media Type for Token Streams of Multimodal AI and Its Use with HTTP", Work in Progress, Internet-Draft, draft-mekuria-httpbis-http-mlm-tokens-00, <https://datatracker.ietf.org/doc/html/draft-mekuria-httpbis-http-mlm-tokens-00>.

Appendix A. Requirements Conformance

Mapping to the requirements of [I-D.discrete-token-transport-mlm]:

REQ-1  Low latency     Datagrams for loss-tolerant data; subgroup
                       streams with delivery timeouts
                       (Section 7.2).
REQ-2  Batching/compact One object = one ADU of many elements;
                       compact binary (b-bit indices, quantized
                       embedding formats) (Section 12).
REQ-3  Sequencing      Group ID + Object ID (Section 7.1).
REQ-4  Timestamping    Not provided: group/object order only;
                       media clock for further study
                       (Section 7.3).
REQ-5  Metadata        Track name, header fields, defaults, and
                       the model configuration (Section 10).
REQ-6  Priority        Per-ADU PRI -> MOQT Publisher Priority (+
                       optional Group Identifier) (Section 8).
REQ-7  Partial reliab. Self-describing objects of whole elements
                       (except element fragments);
                       concealment (tokens) or use of received
                       elements (embeddings); PRI-based dropping;
                       groups/I=1 as resync (Section 8).
REQ-8  Multiplexing    Several tracks per namespace (Section 6).
REQ-9  Security        QUIC TLS 1.3; optional end-to-end
                       encryption (Section 14).
REQ-10 Codebook agree. Opaque, implicit by default (Section 10).
REQ-11 Rep-type signal RType field + track name (Sections 6, 12).
REQ-12 Positions       Per-object Position List (P flag)
                       (Section 8).
REQ-13 Adaptation      End of group via MOQT End of Group or T
                       flag; rate adaptation for further study
                       (Section 9).

Author's Address

Rufael Mekuria (editor)
Huawei Technologies Co., Ltd.