Docsity

Multimedia Streaming Using Multiple TCP Connections - Study Guide | ECE 599, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Multimedia Streaming Using Multiple TCP Connections - Study Guide | ECE 599 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Multimedia Streaming

Multimedia Streaming

using

using

Multiple TCP Connections

Multiple TCP Connections

INTRODUCTION • In recent years, there have been an explosive growth

of multimedia applications over the Internet

  • Several companies offer video on demand to

broadband subscribers

  • Quality of videos being streamed are often of low

quality (Due to insufficient bandwidth, packet loss,and delay)

  • To view a DVD quality video
    • download either the entire video• a large portion of the video before playback time(To avoid pauses caused by insufficientbandwidth during a streaming session)

TCP

TCP

Single TCP connection is not suitable for multimedia Single TCP connection is not suitable for multimedia

transmission because of its congestion control transmission because of its congestion control

UDP

UDP

Ability to control the sending rate is essential to Ability to control the sending rate is essential to

interactive and live streaming applications interactive and live streaming applications

So majority of multimedia streaming systems use UDP So majority of multimedia streaming systems use UDP

Not congestion aware protocol Not congestion aware protocol

Lack reliable transmission Lack reliable transmission

MULTI TCP • A receiver-driven, TCP-based system• Provides resilience against short-term insufficient

bandwidth by using multiple TCP connections

  • Enables the application to achieve and control the

sending rate during congested period

  • Implemented at the application layer• No kernel modification to TCP is necessary

SINGLE TCP

SINGLE TCP

Controls the sending rate based on a window Controls the sending rate based on a window

based based

congestion control congestion control

Window Window

based Congestion Control based Congestion Control

Sender keeps track of a window of maximum Sender keeps track of a window of maximum

number of unacknowledged packets number of unacknowledged packets

Sender increases the window size W by 1/W upon Sender increases the window size W by 1/W upon

successfully receiving an acknowledged packet successfully receiving an acknowledged packet

Upon encountering a loss, the window size is Upon encountering a loss, the window size is

reduced by half reduced by half

The throughput reduction of TCP is attributed to the The throughput reduction of TCP is attributed to the

combination of combination of

Reduction of the sending rate by half upon detection Reduction of the sending rate by half upon detection

of a loss event of a loss event

The slow increase of sending rate afterward The slow increase of sending rate afterward

Single TCP with single loss: Single TCP with single loss:

Area of the inverted triangular region in Area of the inverted triangular region in

fig(a fig(a

) indicates the ) indicates the

amount of data that would have been transmitted if there amount of data that would have been transmitted if there

was no loss event. Thus, the amount of data reduction D was no loss event. Thus, the amount of data reduction D

equals to equals to

D = (1/2)(W

D = (1/2)(W

maxmax

MTURTT/2)(W

MTURTT/2)(W

max max

/2RTT)/2RTT)

=W

=W

22

max max

MTU/

MTU/

One TCP connection with single loss

(a)

Two TCP connections with single loss

(b)

Two TCP connections with double losses

(c)

Even when there are simultaneously losses on both Even when there are simultaneously losses on both

connections as indicated in connections as indicated in

fig(c fig(c

), the throughput ), the throughput

reduction is half of that of the single TCP reduction is half of that of the single TCP

In general, the amount of throughput reduction In general, the amount of throughput reduction

equals to equals to

D

D

N N

= nW = nW

22

max max

MTU/N

MTU/N

22

N denote the number of TCP connectionsN denote the number of TCP connections

n denote the number of TCP connections that suffer n denote the number of TCP connections that suffer simultaneous losses during short congestion period simultaneous losses during short congestion period

Control Streaming Rate in a Congested Network

Control Streaming Rate in a Congested Network

In a lightly loaded network condition, one can set the In a lightly loaded network condition, one can set the

desired throughput T desired throughput T

d d

by simply setting the receiver by simply setting the receiver

window window

W

W

maxmax

= T

= T

d d

RTT/MTU

RTT/MTU

In a moderately or heavily congested network, the In a moderately or heavily congested network, the

throughput of a TCP does not depend on throughput of a TCP does not depend on

W

W

maxmax

It is determined by the degree of congestion It is determined by the degree of congestion

For achieving a higher throughput than the available For achieving a higher throughput than the available

TCP throughput multiple TCP connections can be used TCP throughput multiple TCP connections can be used

The algorithm used maintains a relatively stable The algorithm used maintains a relatively stable

number of TCP connections while varies the size of the number of TCP connections while varies the size of the

receiver windows to achieve the desired throughput receiver windows to achieve the desired throughput

Suppose there are 5 connections Suppose there are 5 connections

denoted by TCP1 to TCP denoted by TCP1 to TCP

If none of TCP connections is blocked If none of TCP connections is blocked

Packet1 would be sent by TCP Packet1 would be sent by TCP

Packet 2 by TCP2, and so on Packet 2 by TCP2, and so on

If TCP1 is blocked If TCP1 is blocked

TCP2 would send packet TCP2 would send packet

TCP3 would send packet 2 and so on TCP3 would send packet 2 and so on

When it is TCP1’s turn again and if TCP1 is not blocked, it When it is TCP1’s turn again and if TCP1 is not blocked, it

would send packet 5 would send packet 5