38
Master Thesis Presentation Waqas Daar ([email protected] ) School of Information and Communication Technology Royal Institute of Technology (KTH) Stockholm, Sweden Examiner : Markus Haidel Supervisor: Renato Lo Cigno University of Trento, Italy Opponent : Waqas Warraich Date: May 17, 2010

Distribution Agnostic Video Server

Embed Size (px)

DESCRIPTION

Video streaming, video server, live streaming, video on demand

Citation preview

Page 1: Distribution Agnostic Video Server

Master Thesis Presentation

Waqas Daar ([email protected])

School of Information and Communication TechnologyRoyal Institute of Technology (KTH)

Stockholm, Sweden

Examiner : Markus HaidelSupervisor: Renato Lo Cigno

University of Trento, Italy

Opponent : Waqas WarraichDate: May 17, 2010

Page 2: Distribution Agnostic Video Server

Outline Motivation

Background Video streaming

Challenges for streaming

Streaming protocols

Study of video server architecture

Distribution Agnostic Video Server (DAVS) design

Testing of DAVS

Conclusion and future work

2

Page 3: Distribution Agnostic Video Server
Page 4: Distribution Agnostic Video Server

Motivation

New multimedia streaming applications are not immune to interaction with the current Internet and client server model.

To compare distinct streaming technologies.

4

Page 5: Distribution Agnostic Video Server

Problem statement A video server which can be dynamically coupled to

different streaming and distribution techniques, making the service independent, or agnostic, to the streaming technique chosen by the client.

Page 6: Distribution Agnostic Video Server

Video Streaming The term streaming is associated to digital media (such as

an audio / video stream) to reveal the act of dismissing the media stream from a server to a client.

Diverse multimedia streaming services like YouTube, Hulu, Veoh etc.

Challenges for Video Streaming Bandwidth

Delay

Loss Forward Error Control (FEC)

Retransmission

Error Concealment

6

Page 7: Distribution Agnostic Video Server

Streaming Protocols Real Time Streaming Protocol (RTSP)

RFC 2326

VCR like functionality

Session Description Protocol (SDP)

RFC 2327

Defines procedure for describing session parameters.

Real Time Protocol (RTP)

Real Time Control Protocol (RTCP)

7

Page 8: Distribution Agnostic Video Server

8

Scalable video server architecture

Figure 3.1: A Scalable Video Server Architecture [57]

Page 9: Distribution Agnostic Video Server

9

Yima system architecture

Figure 3.2: Yima system architecture [58]

Page 10: Distribution Agnostic Video Server

10

Elvira video server architecture

Figure 3.3: Elvira video server architecture [59]

Page 11: Distribution Agnostic Video Server

11

Flash Media Server

Figure 3.5: Adobe streaming server architecture [46]

Page 12: Distribution Agnostic Video Server
Page 13: Distribution Agnostic Video Server

Design of Distribution Agnostic Video Server (DAVS) Video server is based on a modular design, and is

composed by a set of components

13

Page 14: Distribution Agnostic Video Server

Design of Distribution Agnostic Video Server (DAVS) contd.

14

Page 15: Distribution Agnostic Video Server
Page 16: Distribution Agnostic Video Server

DAVS API

DAVS API is implemented by the streaming engine through a set of 5 scripts

Validate

Import

Start

Stop

Deport

16

Page 17: Distribution Agnostic Video Server

17

Validate

Page 18: Distribution Agnostic Video Server

Import

18

Page 19: Distribution Agnostic Video Server

Start

19

Page 20: Distribution Agnostic Video Server

Deport

20

Page 21: Distribution Agnostic Video Server
Page 22: Distribution Agnostic Video Server

DAVS Database

22

Used MYSQL

Provides variety of connectors to interact with the MYSQL data base

Page 23: Distribution Agnostic Video Server
Page 24: Distribution Agnostic Video Server

Video server interface

24

Video server interface is the focal entry point into a system.

Dual Responsibilities

Invoke DAVS API

Communicate with the DAVS client

RPC mechanism is used between DAVS client and video server interface.

Page 25: Distribution Agnostic Video Server
Page 26: Distribution Agnostic Video Server

DAVS Client Pure Java base application

DAVS client has two profile

User profile

Admin profile

Fetch all available streams from the DAVS

Interact with DAVS through RPC mechanism.

26

Page 27: Distribution Agnostic Video Server

DAVS Client contd.

27

Page 28: Distribution Agnostic Video Server
Page 29: Distribution Agnostic Video Server

DAVS Architecture

29

Page 30: Distribution Agnostic Video Server
Page 31: Distribution Agnostic Video Server

Testing Objective Test the engine agnostic functionality of the video

server

Measure the utilization of hardware resources of the DAVS.

31

Page 32: Distribution Agnostic Video Server

DAVS Testing

32

Tested with two streaming engines

Tools used in the experiments for system monitoring

sar

ifstat

dstat

Page 33: Distribution Agnostic Video Server

Performance metrics

33

Page 34: Distribution Agnostic Video Server

Performance metrics (contd.)

Page 35: Distribution Agnostic Video Server

Advantages of DAVS Advantages

Single video server that can plug in different streaming engines.

Minimize the cost of video servers.

Low maintenance and management cost.

Disadvantages

Single point of failure

Current implementation of DAVS API only supports Linux and Unix platforms.

35

Page 36: Distribution Agnostic Video Server

Conclusion Design a video server that can plug in different

streaming engines.

Tested the engine agnostic functionality in a live test bed.

Source code is available on git under GPL license version 2.

36

Page 37: Distribution Agnostic Video Server

Future work

Plug in for P2P streaming

Scalability issues

Should be tested with more streaming engines.

HTTP interface for DAVS

37

Page 38: Distribution Agnostic Video Server

Thanks.