Top Banner
Wednesday, April 20, 2011
52

P2P Internet Video Broadcast

Apr 06, 2018

Download

Documents

akhalife
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 1/52

Wednesday, April 20, 2011

Page 2: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 2/52

Wednesday, April 20, 2011

Page 3: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 3/52

Unicast

Wednesday, April 20, 2011

Page 4: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 4/52

Unicast

Wednesday, April 20, 2011

Page 5: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 5/52

Multicast

Wednesday, April 20, 2011

Page 6: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 6/52

Broadcast

Wednesday, April 20, 2011

Page 7: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 7/52

“Video Broadcast is a simultaneous videodelivery to a large number of receivers”

Wednesday, April 20, 2011

Page 8: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 8/52

“The AOL broadcast of Live 8 concert in July 2005, which at the peak has 175,000 simultaneous viewers,and the CBS broadcast of the NCAA tournament inMarch 2006, which at the peak has 268,000

simultaneous viewers. Even with today’s low bandwidthInternet video of 400 Kbps, the CBS/NCAA broadcastneeded more than 100Gbps server and networkbandwidth. As a comparison, Akamai, the largest

commercial CDN service provider, reports a peakaggregate capacity of 200Gbps with its tens of  thousands of servers.”

Wednesday, April 20, 2011

Page 9: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 9/52Wednesday, April 20, 2011

Page 10: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 10/52

File Download

• Real time performance

• Bandwidth/latency

• Segment order• Degradation of quality

 Audio/Video Conferencing

• Latency

• Multi point

• Small Scale

On demand Streaming

•  Asynchronous users

Wednesday, April 20, 2011

Page 11: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 11/52

Category Bandwidth-Sensitive Delay-Sensitive Scale

File Download ✘ ✘ Large

On-DemandStreaming

✔ ✔ Large

 Audio/VideoConferencing ✘ ✔ Small

 VideoBroadcast

✔ ✔ Large

Wednesday, April 20, 2011

Page 12: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 12/52Wednesday, April 20, 2011

Page 13: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 13/52

Router based architecture: IP Multicast

Non-Router based architectures

•Peer-to-Peer Architecture

Wednesday, April 20, 2011

Page 14: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 14/52

Problems:

• Exhibits performance - complexity tradeoff 

•Maintains per-group state

• High level features are more difficult toimplement

High cost of bandwidth required for serverbased solutions or CDNs

• Calls for changes at the infrastructure leveland installing multicast capable routers

Wednesday, April 20, 2011

Page 15: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 15/52

 Advantages:

• Moving the functionality to end systems

• All packets are sent as unicast

• Maintains the “stateless” nature of the

network

• High level features can be significantlysimplified

Wednesday, April 20, 2011

Page 16: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 16/52

Disadvantages:

• Redundant traffic

•Increasing latency

Wednesday, April 20, 2011

Page 17: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 17/52

Infrastructure Centric Architecture(Content DeliveryNetworks CDNs)

•  An organization deploys proxies at strategic locations on

 the Internet.

• End systems attach themselves to nearby proxies, andreceive data using plain unicast.

 Application end point architecture (P2P broadcast)

•  Administration, maintenance, responsibility for theoperation of such a peer-to-peer system are distributedamong the users, instead of being handled by a singleentity.

Wednesday, April 20, 2011

Page 18: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 18/52

Infrastructure centric:

• Smaller number of groups, support to tens of thousandsof high bandwidth applications is unclear.

• Potentially more robust data delivery through dedicated,more reliable proxies.

 Application end point:

• Instantaneous deployment, minimal setup overhead andcost.

• Potentially enable ubiquitous deployment. However,autonomous users may fail or leave at will.

Wednesday, April 20, 2011

Page 19: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 19/52Wednesday, April 20, 2011

Page 20: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 20/52

Characteristics:

• Large scale

• Performance demanding

•Real time constraints

• Degradable quality

Wednesday, April 20, 2011

Page 21: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 21/52

Issues that must be addressed:

• Overlay efficiency

• Scalability and load balancing

• Self organizing

• Honor per-node bandwidth constraints

• System Considerations

Wednesday, April 20, 2011

Page 22: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 22/52

Tree-based Approach

Data driven Approach

Wednesday, April 20, 2011

Page 23: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 23/52

Characteristics:

• Nodes make a tree-like structure rooted at the video source.

• Each node receives video data from its parent and sends

 them to its children.

• This approach is push-based.

• Does not require sophisticated video coding algorithms.

Problems

• Poor performance due to failure of nodes.

• Leaves’ out-going bandwidth is not being utilized.

Wednesday, April 20, 2011

Page 24: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 24/52

Characteristics:

• Does not construct and maintain an explicit structure for delivering data.

• Uses gossip algorithms

 Advantages:

• Resilience to random failures

• The potential bandwidth can be fully utilized.

• The overlay is robust to failures

Problems:

• Redundancy with the high-bandwidth video.

• High startup and transmission delay.

Wednesday, April 20, 2011

Page 25: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 25/52

Group Management:

• ESM node maintains information about a small random subset of members, as well as information about the path from the source to itself.

•  A new node joins the broadcast by contacting the source and retrieving arandom list of members and then selects one of these members as its parent using the parent selection algorithm.

• To learn about members, a gossip-like protocol is used. Each node A periodically picks one member (say B) at random, and sends B a subsetof group members that A knows, along with the last timestamp it has

heard for each member.

•  When B receives a membership message, it updates its list of knownmembers.

• Finally, a member is deleted if its state has not been refreshed in a period.

Wednesday, April 20, 2011

Page 26: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 26/52

Membership Dynamics:

•In case a member leaves, members continueforwarding data for a short period, while itschildren look for new parents using the parent selection method.

• Members also send periodic control packets to their children to indicate live-ness.

Wednesday, April 20, 2011

Page 27: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 27/52

Performance Aware Adaptation:

• If the node’s performance is significantly below thesource rate, then it selects a new parent.

• The detection time indicates how long a node must stay with a poor performing parent before it switches toanother parent.(for ESM default = 5 sec)

• Switching to a new parent requires going through a slow-

start phase, which may take 1 - 2 seconds to get the fullsource rate.

• The protocol may need to adaptively tune the detection time .

Wednesday, April 20, 2011

Page 28: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 28/52

Parent Selection:

•  When a node A joins the broadcast, or needs to make a parent change, it probes a random subset of nodes it knows.

• Each node B that responds provides information about:

(i) Performance it is currently receiving, and delay from the source;

(ii)Whether it is degree-saturated or not

(iii)Whether it is a descendant of A. The probe also enables A to determine the round-trip time to B.

•  A waits for responses for a timeout period of 1 second.

• From the responses A receives, it eliminates its descendants and members that are saturated.

• For each node B that has not been eliminated, A evaluates the performance it expects to receive if B were chosen as a parent.

• History of past performance is maintained so if A has previously chosen B as parent, then it has anestimate of the bandwidth of the path between B and A.

• If the bandwidth to nodes is not known, then A picks a parent based on delay.

Wednesday, April 20, 2011

Page 29: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 29/52

Characteristics:

• The source encodes the stream into sub-streams anddistributes each sub-stream along a particular

overlay tree.

• The quality experienced by a receiver depends on the number of sub-streams that it receives.

 Advantages:

• The overall resiliency of the system is improved

• The potential bandwidth of all nodes can be utilized

Wednesday, April 20, 2011

Page 30: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 30/52

Wednesday, April 20, 2011

Page 31: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 31/52

 A CoolStreaming node consists of three keymodules:

(1)Membership manager

(2)Partnership manager

(3)Scheduler

Wednesday, April 20, 2011

Page 32: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 32/52

Group and Partner Management:

• Like ESM, CoolStreaming requires newly joining nodes tocontact the origin server to obtain an initial set of partnercandidates.

• CoolStreaming employs an existing Scalable GossipMembership protocol, to distribute membership messages.

•  A video stream is divided into segments of a uniform length,and the availability of the active segments in the buffer of a

node is represented by a Buffer Map (BM).

• Each node continuously exchange its BM with its partners,and then determines which segment is to be fetched from which partner accordingly.

Wednesday, April 20, 2011

Page 33: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 33/52

Scheduling Algorithm:

• Timely and continuous segment delivery is crucial to video broadcast, but not to file download.

• In CoolStreaming, the playback progresses of the peers are semi-synchronized,and any segment downloaded after its playback time will be useless.

• CoolStreaming adopts a sliding window of 120 segments, each of 1-second video. A BM thus consists of a bitstring of 120 bits, each indicating theavailability of the corresponding segment.

• The sequence number of the first segment in the sliding window is recorded byanother two bytes, which can be rolled back for extra long video programs.

(a)buffer of BitTorrent(b)CoolStreaming

Wednesday, April 20, 2011

Page 34: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 34/52

Scheduling Algorithm:

• Given the BMs of a node and its partners, a schedule is then generatedfor fetching the expected segments from the partners.

• For a homogeneous and static network, a simple round-robinscheduler may work well, but for a dynamic and heterogeneousnetwork, a more intelligent scheduler is necessary.

• The scheduling algorithm strikes to meet two constraints:

1. The playback deadline for each segment.

2. The heterogeneous streaming bandwidth from the partners.

(a)buffer of BitTorrent(b)CoolStreaming

Wednesday, April 20, 2011

Page 35: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 35/52

Failure Recovery and Partnership refinement:

• The departure of a node can be easily detected after anidle time and an affected node can quickly react throughre-scheduling using the BM information of the remaining partners.

• CoolStreaming also let each node periodically establishnew partnerships with nodes randomly selected from itslocal membership list. This operation serves two purposes:

1. It helps each node maintain a stable number of  partners in the presence of node departures.

2. It helps each node explore partners of better quality

Wednesday, April 20, 2011

Page 36: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 36/52

Wednesday, April 20, 2011

Page 37: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 37/52

Hybrid Approach

Incentives and Fairness

 Access Bandwidth Scarce Regimes

Extreme Peer Dynamics and Flash Crowd

Support for Heterogeneous Receivers

Network Coding

Implementation Issues

Wednesday, April 20, 2011

Page 38: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 38/52

Chunckyspread hybrid Approach

• Splits a stream into distinct slices and transmitsover separate but not necessarily disjoint trees.

• The participating nodes also form aneighboring graph, and the degree in the graphis proportional to its desired transmission load.

• This hybrid design greatly simplifies the treeconstruction, and largely retains its efficiencyand achieves fine-grained control overload.

Wednesday, April 20, 2011

Page 39: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 39/52

In some peer-to-peer broadcast systems, a small set of nodes are requested to contribute 10 to 35 times moreuploading bandwidth than downloading bandwidth.

Designing incentive mechanisms for video broadcastapplications is more challenging than traditional filedownload applications, due to the real-time requirements.

 A micro-payment mechanism may be a good solution that

enables video broadcast users to cooperate.

The design of a scalable, light-weight incentivemechanism which can be incorporated into videobroadcast application remains an open problem.

Wednesday, April 20, 2011

Page 40: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 40/52

The contribution or upload bandwidth from nodes must exceed the bandwidth that nodes can receive.

The Resource Index (RI) is the ratio of the number of receivers that themembers in the group could potentially sustain to the number of receivers in thegroup for a particular source rate.

•  An RI < 1: not all participating nodes can receive the full source rate

•  An RI = 1: the system is saturated

•  As the RI gets higher, the environment becomes less constrained and itbecomes more feasible to construct a good overlay tree.

frameworks for application-level adaptation:

• Multi-tree framework, where not all nodes receive the full bandwidth.

• The amount of bandwidth a receiver is actually entailed to depends on the total contribution that it makes.

Wednesday, April 20, 2011

Page 41: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 41/52

Flash crowd

• There is a large increase in the number of users joining the broadcast in a short periodof time.

High churn

• Users arrive and depart at a very high rate, in which case the peer-to-peer broadcast systemhas to continue to adapt with the peerdynamics.

Wednesday, April 20, 2011

Page 42: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 42/52

Layered Video:

• Generates a stream consisting of multiple layers.

•  A receiver, depending on its capability, can subscribe to the base layer only with the basic playbackquality, or subscribe to additional layers that progressively refine the reconstruction quality.

MDC (Multiple Descriptive coding):

• Generates multiple streams (descriptions) for the source video.

•  Any subset of the descriptions, can be used to reconstruct the video.

•  A simple implementation of MD coding can be achieved by splitting even and odd numberedframes.

• The descriptions are then distributed over multiple paths, preferably disjoint, to enhance robustnessand to accommodate user heterogeneity.

Problems:

• Low efficiency because of the iterative motion estimation and transform for all the layers.

• Bandwidth penalty due to transporting the layers.

• Reduce the compression efficiency.

• High computation power to assemble and decode multiple layers.

Wednesday, April 20, 2011

Page 43: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 43/52

The fundamental insight in network coding is that if data can be encoded in intermediate

nodes then the optimal throughput can beachieved.

Network coding enhances the robustness,

adaptability, and data availability of a peer-to- peer overlay, because the information isevenly spread in the coded data blocks.

Wednesday, April 20, 2011

Page 44: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 44/52

NATs and firewalls

Transport Protocol

Startup delay and Buffer interaction:

Wednesday, April 20, 2011

Page 45: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 45/52

NATs and firewalls impose restrictions onconnectivity of nodes on an overlay, and may

 prohibit direct communication with one another.

 Whether communication is possible between twonodes depends on several factors

• The transport protocol (UDP or TCP)

• The particular kind of NAT/firewall

•  Whether the nodes are located behind the same private network.

Wednesday, April 20, 2011

Page 46: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 46/52

?= for certain kinds of NATs/firewalls

* = in the same private network

Wednesday, April 20, 2011

Page 47: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 47/52

Real implementations have employed TCP as the transport protocol being readily available, widely tested, and may often be engineered to

 work well.

The complicating factor in the choice of the transport protocol is they may have different

levels of penetration of NATs and firewalls,and may be treated differently by variousenterprise policies.

Wednesday, April 20, 2011

Page 48: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 48/52

 A new peer may spend 10 to 15 seconds to join a peer-to-peer overlay, and take another 10 to 15seconds to launch the media player and buffercertain data.

The delay can be significantly longer for someunpopular channels, and will be further prolonged if using TCP and network coding.

The existing peer-to-peer broadcast systemsgenerally separates the streaming engine and the playback engine. An efficient use of this 2-stagebuffer might deliver better performance.

Wednesday, April 20, 2011

Page 49: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 49/52

Wednesday, April 20, 2011

Page 50: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 50/52

 Video broadcast

Difference between video broadcast and other p2p applications

 Architectural choices of internet broadcast

• Router based vs. Non Router based

• P2P Architecture

• Infrastructure Centric vs. End point

P2P video broadcast

• Tree-based Approach (ESM, Multi-Tree)

• Data driven Approach (CoolStreaming)

Technical challenges and open issues

Wednesday, April 20, 2011

Page 51: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 51/52

“Challenges and Solutions in Peer-to-peer

Live Video Streaming” Masoud Moshref,Hamid R. Rabiee, and Saeed Nari

“Opportunities and Challenges of Peer-to-

 peer Internet Video Broadcast”JiangchuanLiu, Sanjay G. Rao, Bo Li, and Hui Zhang

Wednesday, April 20, 2011

Page 52: P2P Internet Video Broadcast

8/3/2019 P2P Internet Video Broadcast

http://slidepdf.com/reader/full/p2p-internet-video-broadcast 52/52

Thank you.Questions?