Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary requests to the time sync server #3521

Closed
dsilhavy opened this issue Jan 18, 2021 · 3 comments
Closed

Avoid unnecessary requests to the time sync server #3521

dsilhavy opened this issue Jan 18, 2021 · 3 comments
Assignees
Labels
Milestone

Comments

@dsilhavy
Copy link
Collaborator

Environment
Observed behavior

Play the stream and wait for MPD udaptes. After each MPD update a request to the UTC sync server is done: https://time.akamai.com/?iso&ms . Expect for the first request, the response is ignored.

Expected behavior

We should avoid unnecessary requests. DASH-IF 4.3 states:
4.7.3: "Clients should not access the UTCTiming server more frequently than necessary".

Suggestion: Only do a single sync at startup. Behavior would be similar to now since we ignore the response anyways. Clarify with @haudiobe what the best behavior is.

@dsilhavy dsilhavy added the Bug label Jan 18, 2021
@dsilhavy dsilhavy added this to the 3.2.1 milestone Jan 18, 2021
@dsilhavy dsilhavy self-assigned this Jan 18, 2021
@dsilhavy
Copy link
Collaborator Author

Based on discussion with DASH-IF

  1. Make a configurable amount of requests at start of playback (e.g 3 requests)
  2. Repeat that request at a manifest load if time since last sync > T minutes. This value can default to 1 and be settable via an API.
  3. Remember the delta between system time and reference time. If it drifts more then 20%, then halve T. If it is less than 20%, then double T. T can never be less than segment duration.
  4. Force a time sync if there is a 404 or any unexpected playback problems are encountered.

@haudiobe
Copy link

DASH-IF call:

  • do an initial request once and start
  • verify this initial time with 1 or 2 additional ones in the background.
  • set the default to T=5
    Should go to IOP guidelines.

@dsilhavy
Copy link
Collaborator Author

Akamai timing source with RTT attribute: http://time.akamai.com/?xml&ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants