cta-wave / common-media-server-data

A repository to collect discussion and feedback on the Common Media Server Data proposal.
21 stars 1 forks source link

Add a key to enable measuring latency upstream of the Origin server. #22

Open roberto-unified opened 1 month ago

roberto-unified commented 1 month ago

We propose the following key-value pair in CMSD-Static to enable the optimization of live streaming workflows.

Example in the form of a response header:

CMSD-Static: at=1717751968585,ept=1717751965440

Advantages of ept in combination with at (Availability time) keys:

wilaw commented 1 month ago

The player already knows the ept associated with a segment because it is the entity decoding the media data and adding to the decode buffer.

Intermediate CDN servers admittedly do not know ept, however what use case does 'ept' provide the CDN server that 'at' does not terms of 'identifying upstream issues'? Is the main benefit that the latency can be calculated at any intermediate node?

roberto-unified commented 3 weeks ago

The player may know the ept; however, not all media players use this value to calculate the upstream latency from the origin server. Most players, such as the dash.js, only present the glass-to-glass latency.

Indeed, intermediate servers can benefit from the latency value upstream of the origin and identify upstream issues. Specifically, in live streaming scenarios where the efficiency of live encoders can be evaluated and optimized based on the ept and at values.