CS 414 - Spring 2009 CS 414 – Multimedia Systems Design Lecture 34 – Synchronization (Part 2) Klara Nahrstedt Spring 2009.

Slides:



Advertisements
Similar presentations
Streaming Video over the Internet
Advertisements

Time in Distributed Systems
Spring 2000CS 4611 Introduction Outline Statistical Multiplexing Inter-Process Communication Network Architecture Performance Metrics.
Packet Based Multimedia Communication Systems H.323 & Voice Over IP Outline 1. H.323 Components 2. H.323 Zone 3. Protocols specified by H Terminal.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 3) Klara Nahrstedt Spring 2009.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 14 – Introduction to Multimedia Resource Management Klara Nahrstedt Spring 2012.
T.Sharon-A.Frank 1 Multimedia Quality of Service (QoS)
Multimedia Systems As Presented by: Craig Tomastik.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 20: Multimedia Systems.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 15 –QoS Admission, QoS Negotiation, and Establishment of AV Connections Klara Nahrstedt.
1 Synchronization TTM4142, 2007 Harald Øverby/Leif Arne Rønningen.
Page 15/20/2015 CSE 40373/60373: Multimedia Systems Notion of Synchronization  Sync in correspondence to  Content relation  Spatial relation  Temporal.
Streaming Video over the Internet: Approaches and Directions Dapeng Wu, Yiwei Thomas Hou et al. Presented by: Abhishek Gupta
Network Time Protocol - NTP Speaker: Cheng-lin Tsai.
CS 582 / CMPE 481 Distributed Systems Communications (cont.)
Internetworking Fundamentals (Lecture #2) Andres Rengifo Copyright 2008.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 34 – Media Server (Part 3) Klara Nahrstedt Spring 2012.
Gursharan Singh Tatla Transport Layer 16-May
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 32 – Media Server (Part 2) Klara Nahrstedt Spring 2012.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 28 – Media Server (Part 4) Klara Nahrstedt Spring 2011.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 34 – Synchronization (Part 2) Klara Nahrstedt Spring 2011.
Page 19/21/2015 CSE 40373/60373: Multimedia Systems Reference Models  We need reference models to  Understand various requirements for multimedia sync.
XE33OSA Chapter 20: Multimedia Systems. 20.2XE33OSA Silberschatz, Galvin and Gagne ©2005 Chapter 20: Multimedia Systems What is Multimedia Compression.
Distributed Multimedia Systems David Immordino. Introduction 4 A multimedia application is a real-time system responsible for the delivering and receiving.
Support for continuous media Streams in distributed systems Stream management Stream-Oriented Communication 02 – 36 Communication/2.5 Stream-Oriented Communication.
QoS Support in High-Speed, Wormhole Routing Networks Mario Gerla, B. Kannan, Bruce Kwan, Prasasth Palanti,Simon Walton.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 29 – Buffer Management (Part 2) Klara Nahrstedt Spring 2012.
Chapter 5: Summary r principles behind data link layer services: m error detection, correction m multiple access protocols m link layer addressing, ARP.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
1 Introduction to Multimedia Networking. 2 What is Multimedia ?  Information Perception from External World  Scene: 60%  Sound: 20%  Touch(feel):
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 26 – Synchronization Issues Klara Nahrstedt Spring 2012.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Multimedia Systems.
MP 2: Audio/ Video Streaming
E0262 MIS - Multimedia Playback Systems Prof Pallapa Venkataram, Electrical Communication Engineering, Indian Institute of Science, Bangalore – ,
03/11/2015 Michael Chai; Behrouz Forouzan Staffordshire University School of Computing Streaming 1.
Chapter 28. Network Management Chapter 29. Multimedia
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 25 – Synchronization Issues Klara Nahrstedt Spring 2012.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 40 – Final Exam Review Session Klara Nahrstedt Spring 2010.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 33 – Synchronization (Part 1) Klara Nahrstedt Spring 2011.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 18 – Multimedia Transport (Part 1) Klara Nahrstedt Spring 2014.
Multimedia and Networks. Protocols (rules) Rules governing the exchange of data over networks Conceptually organized into stacked layers – Application-oriented.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 20 – Multimedia Session Protocols Klara Nahrstedt Spring 2012.
Temporal relationships.. What is meant by temporal relationship ? Temporal (timing) relationships are important in a multimedia presentation. Ex: A speaker’s.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 17 This presentation © 2004, MacAvon Media Productions Multimedia and Networks.
MP 2: Audio/ Video Streaming CS414: Multimedia System Instructor: Klara Nahrstedt March 16, 2012.
E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India.
1 Protocol Layering Myungchul Kim Tel:
TCP/IP Protocol Suite 1 Chapter 25 Upon completion you will be able to: Multimedia Know the characteristics of the 3 types of services Understand the methods.
Multimedia Synchronization I. Fatimah Alzahrani. Definitions Multimedia System : A system or application that supports the integrated processing of several.
E0262 MIS - Multimedia Playback Systems Anandi Giridharan Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India.
Multimedia Retrieval Architecture Electrical Communication Engineering, Indian Institute of Science, Bangalore – , India Multimedia Retrieval Architecture.
Introduction to Quality of Service Klara Nahrstedt CS 538.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 24 – Client-Server Buffer Management Klara Nahrstedt Spring 2011.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 27 – Media Server (Part 2) Klara Nahrstedt Spring 2009.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 17 – QoS Classes and Setup Operations Klara Nahrstedt Spring 2014.
CS Spring 2010 CS 414 – Multimedia Systems Design Lecture 35 – Synchronization (Part 3) Klara Nahrstedt Spring 2010.
E0262 MIS - Multimedia Playback Systems Prof Pallapa Venkataram, Electrical Communication Engineering, Indian Institute of Science, Bangalore – ,
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 13 – Quality of Service Concepts(Part 2) Klara Nahrstedt Spring 2009.
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2009
Klara Nahrstedt Spring 2012
Klara Nahrstedt Spring 2010
Klara Nahrstedt Spring 2014
CS 598kn – Multimedia Systems Design Synchronization Issues
Performance Evaluation of Computer Networks
Performance Evaluation of Computer Networks
Presentation transcript:

CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 34 – Synchronization (Part 2) Klara Nahrstedt Spring 2009

Administrative MP4 posted  April 30 (preview for finalists) 5-7pm  May 1 grading for non-finalists 3:30-5pm and competition for finalists 5-7pm CS Spring 2009

Outline Synchronization Reference Models Synchronization in Distributed Environments Location of Synchronization Clock Synchronization CS Spring 2009

Reference Models We need reference models to  Understand various requirements for multimedia sync  Identify and structure run-time mechanisms to support execution of sync  Identify interface between run-time mechanisms  Compare system solutions for multimedia sync CS Spring 2009

Existing Models Little and Ghafoor  Sync multimedia objects are classified according to inter- media and intra-media sync, live and synthetic sync at levels: (a) Human level; (b) System level; (c ) Physical level Ehley, Furth, Ilyas  Sync multimedia objects are classified according to control jitter between media streams and with respect to distributed sync control: (a) using protocols, (b) using servers, (c ) using nodes without server structure CS Spring 2009

Synchronization Reference Model Sync model we will be evaluating in detail is according to Meyer, Effelsberg, Steinmetz:  Sync multimedia objects are classified according to Media level Stream level Object level Specification level CS Spring 2009

Media Level (1) Each application operates single continuous media streams composed of sequence of LDUs Assumption at this level: device independence Supported operations at this level:  read(devicehandle, LDU)  write(devicehandle, LDU) CS Spring 2009

Media Level (2) - Example window = open(“videodevice”); movie = open(“file”); while (not EOF (movie) ) { read(movie, &LDU); if (LDU.time == 20) printf(“Subtitle 1”); else if (LDU.time == 26) printf(“Subtitle2”); write(window, LDU); } close(window); close(movie); CS Spring 2009

Stream Level (1) Operates on continuous media streams and groups of streams Models inter-stream synchronization for need of parallel presentation Offers abstractions:  notion of streams,  timing parameters concerning QoS for intra-stream and inter-stream synchronization CS Spring 2009

Stream Level (2) Supports operations:  Start(stream), stop(stream), create-group(list-of- streams);  Start(group), stop(group);  Setcuepoint(stream/group, at, event); Classifies implementation according to  Support for distribution (end-to-end, local)  Support of type of guarantees (best effort, deterministic)  Support of types of supported streams (analog, digital) CS Spring 2009

Object Level (1) Operates on all types of media and hides differences between discrete and continuous media Offers abstractions:  Complete sync presentation Computes and executes complete presentation schedules that include presentation of non- continuous media objects and calls to stream level Does not handle intra-stream and inter-stream synchronization  (relies on media and stream levels) CS Spring 2009

Object Level (2) - Example MHEG – Multimedia Hypermedia Experts Group of ISO  Defines representation and encoding of multimedia and hypermedia objects (object-based declarative programming language)  Provides abstractions suited to real-time presentations implemented via multimedia synchronization functionalities  Provides abstracts for real-time exchange implemented with minimal buffering  Evaluates status of objects and performs actions (e.g., prepare, run, stop, destroy) For time-dependent streams – access to stream level For time-independent streams – direct access the object to present it Classification of this level according to (a) distribution capabilities, (b) type of presentation schedule, (c) schedule calculation CS Spring 2009

MHEG Example (specified in SGML) CS Spring 2009

Specification Level Open layer included in tools which allow to create sync specifications Examples:  Synchronization editors, document editors, authoring systems, conversion tools  Examples of such tools: multimedia document formatter that produces MHEG specifications Classification:  Interval-based spec  Time-axes based spec  Control flow-based spec  Event-based spec CS Spring 2009

Synchronization in Distributed Environments Information of synchronization must be transmitted with audio and video streams, so that receiver(s) can synchronize streams Sync information can be delivered before start of presentation (used by synthetic synchronization)  Advantage: simple implementation  Disadvantage: presentation delay Sync information can be delivered using separate sync channel - out-band (used by live synchronization)  Advantage: no additional presentation delay  Disadvantage: additional channel needed CS Spring 2009

Sync in Distributed Environments Sync information can be delivered using multiplexed data streams - in-band sync  Advantage: related sync information is delivered together with media units  Disadvantage: difficult to use for multiple sources CS Spring 2009

Location of Sync Operation Sync media objects by combining objects into new media object Sync operation placed at sink  Demand on bandwidth is larger because additional sync operations must be transported Sync operation placed at source  Demand on bandwidth smaller because streams are multiplexed according to sync requirements CS Spring 2009

Clock Synchronization Sync accuracy depends on clocks at source and sink nodes  T a = T av – Nl a – O a  T v = T av – Nl v – O v End-to-end delay  Nl a = EED a = T av -T a -O a  Nl v =EED v = T av -T v -O v  EED a = (T a1 -T a2 )/2 NTP (Network Time Protocol ) CS Spring 2009

Network Time Protocol Protocol to sync clocks of computer systems over packet-switched, variable – latency data networks  Uses UDP port 123  Designed to resist effects of variable latency (jitter buffer)  Designed in 1985 by Dave Mills at U. Delaware  Can achieve accuracy of 200 µsec  Based on Marzullo Algorithm CS Spring 2009

Marzullo’s algorithm (1984) (intersection algorithm) Agreement protocol for estimating accurate time from a number of noisy time sources If we have estimates 10 2, 12 1, 11 1, then interval intersection is If some intervals don’t intersect, consider intersection of majority of intervals CS Spring 2009 Source: wikipedia

Clock strata NTP uses hierarchical system of “clock strata” Stratum levels define distance from reference clock and exist to prevent cycles in hierarchy  Stratum 0 devices are atomic clocks, GPS clocks, radio clocks  Stratum1 computers attached to stratum0 devices Act as servers for timing requests from Stratum 2 servers via NTP  Stratum2 (similar to Stratum1. but they also have peering relation to other stratum2 servers CS Spring 2009

Other Sync Issues Sync must be considered during object acquisition Sync must be considered during retrieval  Sync access to frames of stored video Sync must be considered during transport  If possible use isochronous protocols Sync must be considered at sink  Sync delivery to output devices Sync must consider support of functions such as pause, forward, rewind with different speeds, direct access, stop or repeat CS Spring 2009

Conclusion CS Spring 2009