Internet-Draft moq-timestamp August 2026
Curley Expires 4 February 2027 [Page]
Workgroup:
moq
Internet-Draft:
draft-lcurley-moq-timestamp-01
Published:
Intended Status:
Informational
Expires:
Author:
L. Curley

MoQ Object Timestamp Extension

Abstract

This document specifies the transport-level use of the TIMESTAMP and TIMESCALE properties registered by [loc], independent of the LOC container itself. A track-level Timescale property establishes the units, and an object-level Timestamp property carries the presentation time of each object. Exposing media time to the transport lets relays make consistent age-based decisions (e.g. dropping stale objects) without parsing the media container, and it remains consistent across hops regardless of buffering or jitter. No new code points are requested: an endpoint implementing this document is on the wire indistinguishable from a LOC endpoint that carries only these two properties.

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 February 2027.

Table of Contents

1. Conventions and Definitions

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.

2. Introduction

[moqt] treats object payloads as opaque, leaving timing to the application's container format. This works for endpoints that parse the media, but not for relays. A relay frequently needs a notion of when an object is meant to be presented:

This extension exposes media time to the transport with two Key-Value-Pairs ([moqt] Section 2.5): a track-level Timescale and an object-level Timestamp. The transport does not interpret the meaning of the timeline; it only uses the timestamp for relative age comparisons.

Both properties are already registered by [loc], which defines them for use inside the LOC container. This document reuses those registrations verbatim and specifies what a transport does with them: a timestamp is only useful to a relay if every publisher writes it the same way, so a second set of code points for the same concept would defeat the purpose. An endpoint that implements both this document and LOC writes one copy of each property, not two.

The properties are self-describing and require no SETUP negotiation: a receiver that understands them uses them directly, and one that does not ignores them per [moqt]. TIMESCALE is what opts a track in: a track that carries it has media times in the stated units, and a track without it has no timeline at all. There is deliberately no default timescale; a wrong guess is off by a factor of 1000 rather than detectably broken, and making presence the signal avoids contradicting [loc], which reads a bare Timestamp as microseconds.

3. TIMESCALE Track Property

The TIMESCALE property opts a track into timestamps and establishes the units for every Timestamp on it. It is a track-level Key-Value-Pair, carried with the track's properties (see [moqt] Section 2.5 and Section 12). Because the value is a single integer, TIMESCALE uses an even Type so the value is a bare varint with no length prefix:

TIMESCALE Track Property {
  Type (vi64) = 0x08
  Value (vi64)  ; units per second
}

Value: The number of timestamp units per second. Common values include 1000 (milliseconds), 1000000 (microseconds), 48000 (a typical audio sample rate), and 90000 (the RTP video clock). A value of 0 is invalid; a receiver MUST treat a track that declares it as carrying no timeline.

Absence is meaningful and is not an error. A track with no TIMESCALE has no media timeline: a receiver MUST NOT infer units for it, and MUST use wall-clock arrival time for age-based decisions on that track. A publisher that emits Timestamps MUST send TIMESCALE, even for units a receiver might otherwise assume. [loc] permits a bare Timestamp and reads it as microseconds; a receiver that also implements LOC MAY apply that interpretation to a track that omits TIMESCALE, and MUST NOT apply any other.

The Timescale is fixed for the lifetime of the track and MUST NOT change. [loc] also registers TIMESCALE with Object scope; a receiver that implements both applies such an override to that object alone, and a publisher following this document SHOULD NOT send one.

The track's properties are delivered in SUBSCRIBE_OK or TRACK_STATUS ([moqt] Section 12). Until they arrive, a receiver MUST fall back to wall-clock arrival time for any age-based decision.

4. TIMESTAMP Object Property

The TIMESTAMP property carries the presentation time of an object, in the track's Timescale. It is an object-level Key-Value-Pair carried in the object's properties ([moqt] Section 2.5, 11.2.1.2). It uses an even Type so the value is a bare varint:

TIMESTAMP Object Property {
  Type (vi64) = 0x10
  Value (vi64)  ; absolute presentation time, in Timescale units
}

Value: The absolute presentation timestamp of the object, expressed in the track's Timescale. Any value (including 0) is valid.

Each Timestamp is absolute, not delta-encoded against a previous object: [moqt] does not guarantee delivery of every object, and a delta would be corrupted by any missing predecessor.

On a track that declares a TIMESCALE, a publisher SHOULD attach TIMESTAMP to every object that has a media time. For an object with no TIMESTAMP, a receiver MUST treat its effective time as the wall-clock arrival time, which avoids stalling expiration on objects that intentionally carry no timestamp (e.g. keep-alives or gap markers). The same fallback covers every object on a track that declares no TIMESCALE, so a receiver needs one rule, not two.

4.1. Age-Based Dropping

Given two objects on the same track, both with TIMESTAMP, a relay computes their relative age as the difference of their timestamps divided by the Timescale. A relay serving a live subscription MAY drop an object whose age relative to the most recent object on the track exceeds a locally configured or application-supplied threshold, resetting the corresponding stream per [moqt]. This decision is identical at every hop because it depends only on values embedded in the objects, not on arrival time.

A relay MUST NOT use timestamps to reorder delivery beyond what [moqt] already permits; this property informs dropping, not transmission order.

5. Security Considerations

Timestamps expose the media timeline to relays, which is the point of the extension, but a relay still treats payloads as opaque and gains no access to media content.

A malicious publisher could supply misleading timestamps (e.g. always claiming an object is fresh) to defeat age-based dropping, or wildly out-of-range timestamps to cause a receiver to mis-estimate age. A receiver SHOULD bound the age it computes and SHOULD NOT make security decisions based on timestamps. Because age-based dropping only affects which objects a live subscription receives, the worst case is degraded delivery for that subscription, not a cross-subscription effect.

6. IANA Considerations

This document requests no registrations.

Both properties it uses are already registered by [loc] in the "MOQ Properties" registry ([moqt] Section 15.8), and this document changes neither their code points nor their value encodings:

Table 1
Value Name Scope Reference
0x08 TIMESCALE Track, Object [loc]
0x10 TIMESTAMP Object [loc]

Both Types are even, so each value is a bare varint with no length prefix (see [moqt] Section 2.5).

An earlier version of this document requested its own code points (0x915C0 and 0x915C2); they are abandoned in favor of the [loc] registrations.

7. Normative References

[loc]
Zanaty, M., Nandakumar, S., and P. Thatcher, "Low Overhead Media Container", Work in Progress, Internet-Draft, draft-ietf-moq-loc-04, , <https://datatracker.ietf.org/doc/html/draft-ietf-moq-loc-04>.
[moqt]
Nandakumar, S., Vasiliev, V., Swett, I., and A. Frindell, "Media over QUIC Transport", Work in Progress, Internet-Draft, draft-ietf-moq-transport-19, , <https://datatracker.ietf.org/doc/html/draft-ietf-moq-transport-19>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/rfc/rfc8174>.

Acknowledgments

This document was drafted with the assistance of Claude, an AI assistant by Anthropic.

Author's Address

Luke Curley