32
Performance Analysis Of Live Video Streaming Using Content Distribution. Presented By Harshad Inarkar Guided by Prof. Purushottam Kulkarni And Prof. Sridhar Iyer

Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

Performance Analysis Of Live Video Streaming Using

Content Distribution. Presented By

Harshad Inarkar

Guided by

Prof. Purushottam Kulkarni

And

Prof. Sridhar Iyer

Page 2: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

2

Outline

Introduction Problem DefinitionApproachesProposed System Architecture IIT Bombay Network ArchitectureExperimental MethodologyPerformance AnalysisConclusionsFuture WorkDemo

Page 3: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

3

Introduction

Growing Use of Live Video Streaming.

Live StreamingApplications

Live concerts

Live lecturesLive Talk VIP and Popular Person

Live sports

Page 4: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

4

CDEEP Webcasting Architecture Distributed

Computing

Transform data into smaller

form

Unicast Streaming

Page 5: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

5

Requirement

User’s Requirementt Better perceived quality of video.

Bitrate, frame rate, resolution.Availability of live streaming.

CDEEP Server Requirement Lower load on Server.Lower load on IIT Bombay network.

Page 6: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

6

Problem Definition

Unicast streaming has scalability issue.t Server overload Packet delay , Video frame skips : video quality degrades

Develop webcasting architecture for CDEEP such that it is more scalable (concurrent users) ensuring lower demand on the server and network also the better perceived quality of video.

Verify the correctness of the solution.

Evaluate the performance of the system.

Integrate it into CDEEP network.

Page 7: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

7

Approaches

Increasing the network capacity.t Expensive: change in infrastructure.

Transcoding and Variable bit-rate streaming.Encoding rate can be downscaled for more scalability.Compromize with video quality.

IP multicastt Packet replication at router level. (e.g DVMRP)Need multicast supporting routers. (stateful routers) load on router.Unwanted traffic.Change in infrastructural level (costly).

Page 8: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

8

Application Level Multicast

Packet replication at end system.e.g. ALMA (tree), NARADA (mesh)

Construct distribution tree containing all the receivers.

Subset of nodes get the live stream directly.Others get the stream from receivers 1 level above them.

Issuest Highly dynamic behaviour

(connection/disconnection) of receivers.

Complex Mesh/Tree maintenance algorithm.

Page 9: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

9

Approach cont..

P2P Streaming.t Split video stream into chunks.Distribute it using bittorrent-like protocol. e.g PPLive, SopCast, GoalBit.

Content Distribution Based.Clients are redirected to best server. Internally use load balance algorithms.

e.g Round Robin, least-connection etc.

Page 10: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

10

Proposed Architecture

Page 11: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

11

Request Redirection module

t Round Robin- Incoming requests redirected round robin fashion.Drawback: - Clients behavior dynamic.

- Server capacities are different.

Subnet Level Based : Static redirection Load may not be balanced among servers.

▫ Instantaneous Number Of Connection : Dynamic RedirectionNo guarantee of redirection to local server

▫ Network utilization of servers balancer: Dynamic redirectionServer use multiple streaming or some other (network) application.

Page 12: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

12

Campus Network Architecture

http://nms.iitb.ac.in

Page 13: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

13

Part of Campus Network

Page 14: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

14

Experiment Testbed

Page 15: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

15

Physical Setup

Page 16: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

16

Experimental Setup

Media Streaming Server: VLC player Media Streaming Client : Mplayer Performance Metrics:

t Server and router side: I/O rate CPU utilization of server

Client Side: Frame Stats (Frame rate,delay,drop) Packet stats (Packet delay,jitter)

Page 17: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

17

Experimental Setup cont..

Streaming videot Length of video clip : 300 sec.

Frame rate : 25 fps.

Video bitrate:1000 Kbps, codec: H.264.

Audio bitrate: 192 Kbps, codec: mpga.

Streaming Protocol: HTTP_streaming.

Equipment used:5 Laptops (2.2 Ghz C2D, 2 GB RAM)

3 Server machines.

3 Routers (cpu machines with multiple NICs).

Client's Request rate= 5 clients per/sec

Page 18: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

18

Prelimenary Experiment

74 % CPU 25 mplayer instances

on a machine

Page 19: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

19

Performance Analysis

0 20 40 60 80 100 120 140

0

5

10

15

20

25

30

Average Frame Rate

UnicastSubnet-basedRound-robinNum-connections

Simultaneous_Clients

Fra

me

rate

(fp

s)

Page 20: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

20

Average Frame drop

0 20 40 60 80 100 120 140

0

2

4

6

8

10

12

14

16

18

20

Average Frame Drop %

UnicastSubnet-basedRound-robinNum-connections

Simultaneous-Clients

Fra

me

dro

p (

%)

Frame drop % increases for

Unicast streaming

Page 21: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

21

H8_Extreme (GW1)

0 20 40 60 80 100 120 140

0

20

40

60

80

100

120

140

Gateway 1 Router I/O rate

UnicastSubnet-basedRound-robinNum-connections

Simultaneous_clients

IO/r

ate

Mb

ps

Most of the clients are

redirected to local server

Page 22: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

22

CC_Extreme (GW2)

0 20 40 60 80 100 120 140

0

20

40

60

80

100

120

140

160

180

200

Gateway 2 Router I/o rate

UnicastSubnet-basedRound-robinNum-connections

Simultaneous_clients

I/O r

ate

(M

bps)

Page 23: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

23

CSE_Extreme (GW3)

0 20 40 60 80 100 120 140

0

20

40

60

80

100

120

140

Gateway 3 Router I/O rate

UnicastSubnet-basedRound-robinNum-connections

Simultaneous_clients

I/O

rat

e M

bps

Page 24: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

24

Main Streaming server

0 20 40 60 80 100 120 140

0

10

20

30

40

50

60

70

80

Main Server I/O rate

UnicastSubnet-basedRound-robinNum-connections

Simultaneous Client

I/O r

ate

Mbp

s

Page 25: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

25

Content Distribution Server 1

0 20 40 60 80 100 120 140

0

10

20

30

40

50

60

Content Distribution Server 1 I/O rate

Subnet-basedRound-robinNum-connections

Simultaneous_Clients

I/O

rat

e M

bp

s

Page 26: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

26

Content Distribution Server 2

0 20 40 60 80 100 120 140

0

10

20

30

40

50

60

Content Distribution Server 2 I/O rate

Subnet-basedRound-robinNum-connections

simultaneous_clients

I/O

ra

te M

bps

Page 27: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

27

Network Utilization balancing ratio

b1,b2,b3 -> network utilizations,total=b1+b2+b3 ,balancing_ratio= Abs(b1/total – 1/3) +Abs(b2/total -1/3) +Abs(b3/total-1/3)

Subnet-based Round-robin Num-connections

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35

network_load balancing ratio

Algorithm name

netw

ork_

load

bal

anci

ng

ratio

Page 28: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

28

Conclusions

Problem in existing unicast streaming.t Not scalable.

We implemented a tool for proposed content distribution architecture with various redirection algorithms.

Evaluated unicast streaming, static as well as dynamic redirection algorithm.

Dynamic redirection works better in terms of load balancing.

Subnet level based : minimize campus network load.

Page 29: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

29

Future Work

In Request Redirection module t CPU load balancer Some hybrid redirection

Create GUI or itegrate code in VLC player.

Integrate into CDEEP.

Page 30: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

30

References

[1] CDEEP Website www.cdeep.iitb.ac.in [2]Akamai Technologies, www.akamai.com [3]VLC Player: www.videolan.org [4]"A Case for End System Multicast" Yang-

hua Chu, Sanjay G. Rao, and Hui Zhang Carnegie Mellon University.

[5] Goalbit - open source p2p live streaming softwares. http://goalbit.sourceforge.net/

[6] IIT Bombay network management service. http://nms.iitb.ac.in,.

Page 31: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

31

DEMO

Page 32: Performance Analysis Of Live Video Streaming Using Content …sri/students/harshad-slides.pdf · Live sports. 4 CDEEP Webcasting Architecture Distributed Computing Transform data

32

Thank You