49
Delving into Internet Streaming Media Delivery: Written by: Lei Guo, Enhua Tan, Songqing Chen, Zhen Xiao, Oliver Spatscheck, Xiaodong Zhang Presented by: Harris C.C. Sun Dicky Kwok A quality and Resource Utilization Perspective

Delving into Internet Streaming Media Delivery:

  • Upload
    zelia

  • View
    33

  • Download
    1

Embed Size (px)

DESCRIPTION

Delving into Internet Streaming Media Delivery:. A quality and Resource Utilization Perspective. Written by: Lei Guo, Enhua Tan, Songqing Chen, Zhen Xiao, Oliver Spatscheck, Xiaodong Zhang Presented by: Harris C.C. Sun Dicky Kwok. HTTP. Multimedia: Downloading. Web browser. Web Server. - PowerPoint PPT Presentation

Citation preview

Page 1: Delving into  Internet Streaming Media Delivery:

Delving into Internet Streaming Media Delivery:

Written by: Lei Guo, Enhua Tan, Songqing Chen,

Zhen Xiao, Oliver Spatscheck, Xiaodong Zhang

Presented by: Harris C.C. Sun

Dicky Kwok

A quality and Resource Utilization Perspective

Page 2: Delving into  Internet Streaming Media Delivery:

Multimedia: Downloading

Web Server

HTTP

Long start-up latencyPotential waste of traffic

Web browser

Media player

Page 3: Delving into  Internet Streaming Media Delivery:

Multimedia: Pseudo Streaming

Web Server

Web browser

Media player

Page 4: Delving into  Internet Streaming Media Delivery:

Multimedia: Streaming

Web Server

HTTP

Streaming Server

RTSP/MMS/HTTP

RTP/RTCP

Web browser

Media player

Page 5: Delving into  Internet Streaming Media Delivery:

Streaming Media

• Merits– Thousands of concurrent streams – Flexible response to network congestion– Efficient bandwidth utilization– High quality to end users

• Challenges– Lack of QoS on the Internet– Diverse network connection of users– Prolonged startup latency

• Research and techniques– Effective utilization of server and Internet resources– Mechanism of streaming media delivery

• Protocol rollover, • Fast Streaming, • MBR and • rate adaptation

Page 6: Delving into  Internet Streaming Media Delivery:

Motivation

• Modern streaming techniques concentrated on the techniques of – media access pattern and – user behaviors to improve streaming performance.

• Few focused on – the improvement of techniques for quality

streaming delivery and – the effective utilization of media resource.

Page 7: Delving into  Internet Streaming Media Delivery:

Objective and approach

• Understand modern streaming techniques– The delivery quality and resource utilization

• Collect a large streaming media workload – From thousands of home users and business users

Hosted by a large ISP (Gigascope)– RTSP, RTP/RTCP, MMS, RDT packet headers instead of server

logs• Analyze commonly used streaming techniques

– Fast Streaming– Protocol rollover– MBR encoding and rate adaptation

• Propose a coordinated streaming mechanism– Effectively coordinate the merits from caching and rate adaptatio

n

Page 8: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 9: Delving into  Internet Streaming Media Delivery:

Trace Collection and processing methodology

• Collect streaming packet• Capture all TCP packet within ports 554-555,

7070-7071 9070 and 1755• Keywords matching to collect RTSP and MMS

packet• Group TCP packet by IP addresses, port, TCP

SYN/FIN/RST flag• Extract streaming command from each request• Identify media data and control packet

Page 10: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 11: Delving into  Internet Streaming Media Delivery:

Traffic Overview

• User communities– Home users in a cable network– Business users hosted by a big ISP– Have different access patterns

• Media hosting services– Self-hosting– Third-party hosting

Page 12: Delving into  Internet Streaming Media Delivery:

Traffic Overview

• Access Pattern– Business users access more audio than home users– Business users tend to access longer audio/video

files– Business users tend to play audio/video longer– Business users tend to access live audio/video longer

• Media Hosting Service – Self-hosting: yahoo.com, aol.com, wbr.com – Third-party hosting: akamai.com. LimeLight Networks,

fplive.net

Page 13: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 14: Delving into  Internet Streaming Media Delivery:

Fast streaming

• A combination of techniques– Fast start

– Fast cache

– Fast recovery– Fast reconnect

Rare in workload traffic, not include them in study

Transmits data as fast as possible until the play-out buffer is filled.

Streams media data up to 5 times the encoding rate

Page 15: Delving into  Internet Streaming Media Delivery:

Fast streaming

• A combination of techniques– Fast start

– Fast cache

– Fast recovery– Fast reconnect 40%

60%

Page 16: Delving into  Internet Streaming Media Delivery:

Smooth bandwidth flucation

• Rebuffering ratio

• Less rebuffering ratio then normal TCP streaming

Rebuffer ratio = rebuffer time / play time

Page 17: Delving into  Internet Streaming Media Delivery:

Production of extra traffic

• Oversupplies media to the client when client early terminate the media service

• Over-supplies about 54.8% of media data on average, while TCP streaming over-supplies about 4.8% data only.

Fast Cache: > 55% oversupplied

Normal TCP: < 5% oversupplied

Page 18: Delving into  Internet Streaming Media Delivery:

Server Response time

• Longer time to be served • 43% of request longer than 0.1 s running on Fast Cache

while only 9% of request longer than 0.1 s in TCP streaming

• Fast cache is statistically longer than that on servers not running Fast Cache

Third party media service

20 ms

> 40%

Self-hosting media service

Page 19: Delving into  Internet Streaming Media Delivery:

Server load

• 3.6 times higher server load than normal TCP streaming

Server log

1 X 4 X

CPU

1 X 4 X

Page 20: Delving into  Internet Streaming Media Delivery:

Effectiveness ?

• Throughput (rebuffer ratio) of Fast Streaming similar to that of TCP streaming– Only feasible when bandwidth is large enough– Less possibility of congestion in this case

Encoding rate: 200 – 320 K bpsBandwidth: > 500 Kbps

Fast Cache: not resource-efficient

Page 21: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 22: Delving into  Internet Streaming Media Delivery:

Challenges of Streaming

• Bandwidth fluctuation– Quality of media streaming may significantly

degrade

• Connection of speed varies– From dial-up to cable

• Prolonged startup latency

Page 23: Delving into  Internet Streaming Media Delivery:

Challenges of Streaming

• Under the situation of bandwidth fluctuation, a technique of Rate Adaptation is widely used by media players

• The basic concept is simple.– modify the stream bit rate to adapt the various

bandwidth– Resume when bandwidth recovers– Never higher than original bit rate

Page 24: Delving into  Internet Streaming Media Delivery:

Rate Adaptation

• In order to adapt to bandwidth fluctuation, major media services support three kinds of techniques for rate adaptation.– Stream switch (also known as Intelligent Str

eaming in WM and SureStream in RealNetwork)

– Stream thinning– Video Cancellation

Page 25: Delving into  Internet Streaming Media Delivery:

Rate Adaptation

• Stream Switch– Multiple bit rates (MBR) must be used– According to the statistic of the paper, MBR

encoding technique is widely used in media authoring

Page 26: Delving into  Internet Streaming Media Delivery:

MBR Encodingon-demand audio

live audio

audio stream in video objects

video stream in video objects

42% on-demand video are MBR encoded with at least two video streamThe maximum numbers of streaming is 20

Page 27: Delving into  Internet Streaming Media Delivery:

How it works

DESCRIBE

description

Setup

PLAY

Streaming content

Page 28: Delving into  Internet Streaming Media Delivery:

How it works

• When bandwidth drops

• WM sends command with a body specifying current stream and new stream

• REAL sends UNSUBSCRIBE to cancel the current stream, and SUBSCRIBE to switch to new stream

Request to switch to lower rate stream

Page 29: Delving into  Internet Streaming Media Delivery:

How it works

• During transmission, if the bandwidth decreases, the server automatically detects the change and switches to a stream with a lower bit rate. If bandwidth improves, the server switches to a  stream with a higher bit rate, but never higher than the original bit rate. (from Microsoft page)

Page 30: Delving into  Internet Streaming Media Delivery:

Problem Occurs

• After extracting and analyzing information from RTSP/MMS commands, switch latency occurs

• Switch latency occurs as the freezing duration between old stream and new stream

• User has to wait for re-buffering

• Low quality duration appears

Page 31: Delving into  Internet Streaming Media Delivery:

Problem Occurs

• 30%~40% of stream switches have latency greater than 3 seconds

• 10%~20% of stream switches have latency greater than 5 seconds

• 60% of sessions have low quality duration less than 30 seconds

• 85% are shorter than 40 seconds

• Non-trivial for end users

Page 32: Delving into  Internet Streaming Media Delivery:

Stream Thinning

• Similar to stream switch

• If the bandwidth can no longer support the streaming video, the image quality will be degraded in order to avoid buffering

• Thinning interval is defined as the interval between two consecutive stream thinning events

Page 33: Delving into  Internet Streaming Media Delivery:

Stream Thinning

• 70% of the thinning duration are shorter than 30 seconds

• 70% in the home users and 82% in the business users, the thinning intervals are longer than 30 seconds

Page 34: Delving into  Internet Streaming Media Delivery:

Video Cancellation

• When the bandwidth is too low to transmit the key frame of video stream, the client may send a TEARDOWN command to cancel the video streaming

• After that, the server maintains the continuous audio steam only

• If the bandwidth increases, the client may set up and request the video streaming again

Page 35: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 36: Delving into  Internet Streaming Media Delivery:

Protocol Rollover

• Streaming protocol: UDP, TCP, HTTP

• Due the wide deployment of NAT routers/firewalls in both home and business users, protocol rollover results in great affect of startup latency

Delivery over TCPDelivery over UDP HTTPX X

Page 37: Delving into  Internet Streaming Media Delivery:

Protocol Rollover

SETUP (UDP)CASE 1:

Return UDP

SETUP (UDP)CASE 2:

Return TCP

SETUP (UDP)CASE 3:

Return UDP

Page 38: Delving into  Internet Streaming Media Delivery:

Protocol Rollover

• In the collected data, if protocol rollover occurs, it tried to establish UDP from 1 to 3 times before switching to TCP

• Protocol rollover takes non-trivial time, increase the startup latency

• The default protocol in client is usually UDP

• However, some interesting results are revealed by the data.

Page 39: Delving into  Internet Streaming Media Delivery:

Protocol Rollover

• In home user workload, only 7.37% of streaming session trying UDP first then switching to TCP.

• In business user workload, only 7.95% in the streaming session.

• These imply that TCP is directly used without protocol rollover in most streaming.

• What happened?

Page 40: Delving into  Internet Streaming Media Delivery:

Protocol Selection & Rollover Avoidance

• The phenomenon can be explained as following:• Windows streaming service allows the specificati

on of protocol in URL modifier at client side or server side– Content provider: use URL modifier to specify

protocol in the meta file– rtspt://xxx.xxx.com:/xxx.wmv (TCP) >70%– rtspu://xxx.xxx.com:/xxx.wmv (UDP) rarely

• After extracting URL modifier, 70% of streaming session is specified as TCP

Page 41: Delving into  Internet Streaming Media Delivery:

Protocol Selection & Rollover Avoidance

• The conjecture is:– Content providers are aware of NAT/firewalls– Understand UDP is mostly shielded by clients– They actively use TCP to avoid shielding or

protocol rollover– Even if UDP is supported, the streaming is

delivered over TCP directly

Page 42: Delving into  Internet Streaming Media Delivery:

Proof

• Further investigate the NAT usage with MMS

• Different from RTSP, clients report local IP address to server

• Most users report private IPs

• Indicate that clients access internet through NAT

Page 43: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 44: Delving into  Internet Streaming Media Delivery:

Coordinating caching and rate adaptation

• Fast Cache: aggressively buffer data in advance– Over-utilize CPU and bandwidth resources– Neither performance effective nor cost-efficient

• Rate adaptation: conservatively switch to lower bit rate stream– Switch handoff latency

• Coordinated Streaming

Upper boundPrevent aggressive buffering

Lower boundPrevent switch latency

high rate stream

low rate stream

Page 45: Delving into  Internet Streaming Media Delivery:

Results

• Rebuffering ratio is close to zero

• Reduces 77% over-supplied traffic produced by Fast Cache, though still not as good as TCP streaming

• Switch handoff latency is nearly zero

Page 46: Delving into  Internet Streaming Media Delivery:

• Trace Collection and processing Methodology

• Traffic Overview

• Fast Streaming

• Rate Adaptation

• Protocol Rollover

• Coordinated Streaming

• Summary

Page 47: Delving into  Internet Streaming Media Delivery:

What We Learn and What We Think

• This paper mainly aim at investigating the current streaming technique used by media players

• Most people enjoy video streaming but seldom know the theory behind

• Modern streaming services over-utilize CPU and bandwidth resource

• Coordinated Streaming is suggested• Ideal theory but not sure if it works in reality.

Page 48: Delving into  Internet Streaming Media Delivery:

What We Learn and What We Think

• More research papers are written by same group of people

• More study are needed

Page 49: Delving into  Internet Streaming Media Delivery:

Thank You!