Using Bittorrent and SVC for Efficient Video Sharing and Streaming - - PowerPoint PPT Presentation

using bittorrent and svc for efficient video sharing and
SMART_READER_LITE
LIVE PREVIEW

Using Bittorrent and SVC for Efficient Video Sharing and Streaming - - PowerPoint PPT Presentation

Using Bittorrent and SVC for Efficient Video Sharing and Streaming Abdelhalim Amer 1 Toufik Ahmed 2 Hidouci Walid-Khaled 3 Satoshi Matsuoka 1 1 Tokyo Institute of Technology 2 CNRS LaBRI Lab. UMR 5800-University of Bordeaux-1, Talence, France 3


slide-1
SLIDE 1

Using Bittorrent and SVC for Efficient Video Sharing and Streaming

Abdelhalim Amer1 Toufik Ahmed2 Hidouci Walid-Khaled3 Satoshi Matsuoka1

1Tokyo Institute of Technology 2CNRS LaBRI Lab. UMR 5800-University of Bordeaux-1, Talence, France 3Ecole nationale Suprieure d’Informatique, Algiers, Algeria

IEEE Symposium on Computers and Communications, Turkey 2012 (ISCC’2012)

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 1 / 1

slide-2
SLIDE 2

Outline

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 2 / 1

slide-3
SLIDE 3

Motivation and Challenges

Internet video

Consumed Internet traffic in 2009 33.2% Predicted ratio for the end of 2010 40% Long term prediction: 2009-2014 7x increase Youtube in 2007 (watched Inter- net videos) 60% Youtube in 2007 (HTTP traffic/ In- ternet traffic) 20% / 10% Internet video statistics [1][2][3] Internet traffic statistics [1]

◮ Internet video (Vod, video-to-TV, etc) dominates the Internet traffic ◮ Significant portion of the Internet traffic = user generated video

content (e.g. Youtube) ⇒Develop efficient means to transport video over the Internet and help users to share them

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 3 / 1

slide-4
SLIDE 4

Motivation and Challenges

Internet video challenges

Internet not suitable to transport video

Video needs sustained network connection and may require large network bandwidth

Solutions

◮ Distributed system: Content Delivery Networks (CDNs), Peer-to-Peer

(P2P), and Cloud based streaming

◮ Adaptable video coding: Scalable Video Coding (SVC), Multiple

Description Coding (MDC), and Network Coding (NC) ⇒ Extend the Bittorrent protocol to support SVC video streaming

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 4 / 1

slide-5
SLIDE 5

Motivation and Challenges

Internet video challenges

Streaming server

Small screen Low CPU power Low network connection Medium screen Medium CPU power Medium network connection Large screen High CPU power High network connection

Variable network conditions Various network accesses Different terminal capabilities Limits of the server

Internet video streaming challenges

Internet not suitable to transport video

Video needs sustained network connection and may require large network bandwidth

Solutions

◮ Distributed system: Content Delivery Networks (CDNs), Peer-to-Peer

(P2P), and Cloud based streaming

◮ Adaptable video coding: Scalable Video Coding (SVC), Multiple

Description Coding (MDC), and Network Coding (NC) ⇒ Extend the Bittorrent protocol to support SVC video streaming

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 4 / 1

slide-6
SLIDE 6

Motivation and Challenges

Internet video challenges

Streaming server

Small screen Low CPU power Low network connection Medium screen Medium CPU power Medium network connection Large screen High CPU power High network connection

Variable network conditions Various network accesses Different terminal capabilities Limits of the server

Internet video streaming challenges

Internet not suitable to transport video

Video needs sustained network connection and may require large network bandwidth

Solutions

◮ Distributed system: Content Delivery Networks (CDNs), Peer-to-Peer

(P2P), and Cloud based streaming

◮ Adaptable video coding: Scalable Video Coding (SVC), Multiple

Description Coding (MDC), and Network Coding (NC) ⇒ Extend the Bittorrent protocol to support SVC video streaming

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 4 / 1

slide-7
SLIDE 7

Motivation and Challenges

Internet video challenges

Streaming server

Small screen Low CPU power Low network connection Medium screen Medium CPU power Medium network connection Large screen High CPU power High network connection

Variable network conditions Various network accesses Different terminal capabilities Limits of the server

Internet video streaming challenges

Internet not suitable to transport video

Video needs sustained network connection and may require large network bandwidth

Solutions

◮ Distributed system: Content Delivery Networks (CDNs), Peer-to-Peer

(P2P), and Cloud based streaming

◮ Adaptable video coding: Scalable Video Coding (SVC), Multiple

Description Coding (MDC), and Network Coding (NC) ⇒ Extend the Bittorrent protocol to support SVC video streaming

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 4 / 1

slide-8
SLIDE 8

Background Scalable Video Coding

Outline

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 5 / 1

slide-9
SLIDE 9

Background Scalable Video Coding

Scalable Video Coding [4]

Definition

Encoding a single video stream that embeds multiple qualities

How?

◮ Single video stream = Multiple layers = Base layer + enhancement layers ◮ Extension of single-layer H.264/AVC standard ⇒ High compression rate

source

Single-layer simulcast

source

Multi-layer multicast

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 6 / 1

slide-10
SLIDE 10

Background Scalable Video Coding

Types of Scalability

◮ Temporal scalability ◮ Spatial scalability ◮ Quality Scalability

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 7 / 1

slide-11
SLIDE 11

Background Scalable Video Coding

SVC structure and streaming buffer

SVC stream structure

◮ {Dmax,Qmax,Tmax} maximum spatial, quality and temporal level resp. ◮ Stream = {AUi,i = 1..FrameMax} is a set of Frames of Access Units

(AUs)

◮ AU = {NALi,i = 1..Dmax ×Qmax} is a set Network Abstraction Layer

(NAL) units

◮ Stream = {Layeri,i = 1..Dmax ×Qmax ×Tmax} is a set of Layers

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 8 / 1

slide-12
SLIDE 12

Background Scalable Video Coding

SVC structure and streaming buffer

SVC stream structure

◮ {Dmax,Qmax,Tmax} maximum spatial, quality and temporal level resp. ◮ Stream = {AUi,i = 1..FrameMax} is a set of Frames of Access Units

(AUs)

◮ AU = {NALi,i = 1..Dmax ×Qmax} is a set Network Abstraction Layer

(NAL) units

◮ Stream = {Layeri,i = 1..Dmax ×Qmax ×Tmax} is a set of Layers

(1,1,1) (1,1,2) (1,0,1) (1,0,2) (0,1,1) (0,1,2) (0,0,0) (0,0,1) (0,0,2) (0,0,0)

Complete frame Sliding Window Current frame to play Incomplete frame D1 D0 Q1 Q0 Q1 Q0 Time

A sliding window’s buffer snapshot: 2 spatial, 2 quality, 3 temporal levels ⇒ 12 layers

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 8 / 1

slide-13
SLIDE 13

Background Bittorrent protocol

Outline

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 9 / 1

slide-14
SLIDE 14

Background Bittorrent protocol

Bittorrent protocol [7]

◮ P2P file-sharing protocol ◮ Entities

◮ Tracker: central unit for peer discovery (random) ◮ Seed: peer possessing the complete file ◮ Leecher: peer downloading the file

◮ Important algorithms:

◮ Piece selection ◮ File cut uniformly into pieces ◮ Request strategies: random, rarest first ◮ Piece download flow:

✭r❡❝✈✱❘❊◗❯❊❙❚✱s❡♥❞✮⇒✭s❡♥❞✱P■❊❈❊✱r❡❝✈✮⇒✭r❡❝✈✱❍❆❱❊✱❆❧❧✮

◮ Peer selection (choking/unchoking) ◮ Tit-for-tat policy ⇒ reciprocation ◮ Based on download and upload rates

◮ Simulation of the protocol: Omnet++ [5], NS-2 [6]

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 10 / 1

slide-15
SLIDE 15

SVC Bittorrent extension Proposed solution

Outline

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 11 / 1

slide-16
SLIDE 16

SVC Bittorrent extension Proposed solution

SVC in Bittorrent

source1 Tracker Overlay network of Quality 1 source2 Overlay network of Quality 2

Single-layer scenario

source1 Tracker Overlay network source2

Multi-layer scenario

Observation In addition to stream adaptation, multi-layer SVC increases the global availability of the content ⇒ Better P2P efficiency

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 12 / 1

slide-17
SLIDE 17

SVC Bittorrent extension Proposed solution

SVC in Bittorrent

source1 Tracker Overlay network of Quality 1 source2 Overlay network of Quality 2

Single-layer scenario

source1 Tracker Overlay network source2

Multi-layer scenario

Observation In addition to stream adaptation, multi-layer SVC increases the global availability of the content ⇒ Better P2P efficiency Proposition: Change Bittorrent’s piece selection algorithm

◮ Follow SVC structure: Basic request piece is a NAL unit (variable size)

◮ Better adaptability of the stream. Can use RTP packetization [8] ◮ Large overhead !! ⇒ Multi-NAL unit requests [9]

◮ Fixed size sliding window [10]

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 12 / 1

slide-18
SLIDE 18

SVC Bittorrent extension Evaluation and Optimization

Outline

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 13 / 1

slide-19
SLIDE 19

SVC Bittorrent extension Evaluation and Optimization

Test environment

General configuration

Simulator NS-2 Network topology Star Access Delay Uniform[1,50] ms Arrival Flash crowd: uniform in choking interval Departure expλ = 1

Video Encoding characteristics

Video sequence Elephant dreams Frame rate 24 frame/s Spatial resolutions QCIF (176x144) and CIF (352x288) SNR Qualities Q0 and Q1

Peers characteristics and their distribution[11]

Total Upload BW (kbit/s) 256 320 384 448 512 640 768 1024 1500 3000 Contribute Up-BW(kbit/s) 150 250 300 350 400 500 600 800 1000 1000 Download BW (kbit/s) 512 640 768 1024 1300 2048 2048 3000 5000 9000 Distribution (%) 10.0 14.3 8.6 12.5 2.2 1.4 6.6 28.1 1.4 14.9

Seed and quality distribution

Down-bandwidth range (Kbps) <= 1024 ] 1024 , 2048 ] ] 2048 , 5000 ] > 4000 Seed up-bandwidth (Kbps) 500 1000 1500 2000 Desired quality QCIFxQ0 QCIFxQ1 CIFxQ0 CIFxQ1

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 14 / 1

slide-20
SLIDE 20

SVC Bittorrent extension Evaluation and Optimization

Initial results: Comparison of SVC and AVC

Distribution of 40 peers according to the amount of non-received data

Observation

Single-layer AVC offers a better QoS because there is a high reciprocation between the peers ⇒ Group the peers with close qualities for high reciprocation and use the other peers to increase the download rate

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 15 / 1

slide-21
SLIDE 21

SVC Bittorrent extension Evaluation and Optimization

Hierarchical overlay network organization

source LayerMax Layer 0 Base layer Layer i Tracker swarm Layer i+1 Layer i-1 Intensive communication

Hierarchical organization of the overlay network

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 16 / 1

slide-22
SLIDE 22

SVC Bittorrent extension Evaluation and Optimization

Hierarchical overlay network organization

source LayerMax Layer 0 Base layer Layer i Tracker swarm Layer i+1 Layer i-1 Intensive communication

Hierarchical organization of the overlay network

How to reorganize the overlay in Bittorrent?

Changing the Bittorrent tracker and peer selection algorithms

◮ Tracker returns a more suitable peer list instead of a random one ◮ The client gives priority to closer quality peers when unchoking

(without losing reciprocation)

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 16 / 1

slide-23
SLIDE 23

SVC Bittorrent extension Evaluation and Optimization

New overlay organization results

Distribution of 40 peers according to the amount of non-received data

Observation

New overlay organization for multi-layer SVC achieved higher quality and outperforms single-layer AVC

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 17 / 1

slide-24
SLIDE 24

SVC Bittorrent extension Evaluation and Optimization

Scalability analysis

Cumulative distribution of non-received NAL units while increasing the number of peers

Observation

Efficiency drops while increasing the number of peers in the system

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 18 / 1

slide-25
SLIDE 25

SVC Bittorrent extension Evaluation and Optimization

What influences scalability?

Detailed results of SVC with 4 qualities and 100 peers scenario

Observations

◮ Quality increases with content availability (P2P property) ◮ Flash crowd scenario ⇒ Quality drops when the ratio seed/total

peers is too small

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 19 / 1

slide-26
SLIDE 26

SVC Bittorrent extension Evaluation and Optimization

Effect of the number of connections per peer

Distribution of 60 peers according to the amount of non-received data

Why this drop in performance?

Mostly due to HAVE messages, sent every received NAL unit to all peers ⇒ creating too much traffic

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 20 / 1

slide-27
SLIDE 27

Conclusion

Conclusion

Summary

◮ We proposed a solution to the problem of video streaming over

Internet.

◮ SVC provides means for stream adaptation and increases the global

utility of the content

◮ Overlay reorganization was necessary to achieve a high Quality of

Service (QoS) for the clients

Future work

◮ Use a more realistic topology (Georgia Tech Internet Topology

Model [12])

◮ Comparison to other distributed and adaptive video streaming

solutions

◮ This work can be extended with Multiple Description Coding or

Network Coding

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 21 / 1

slide-28
SLIDE 28

Conclusion

Q & A ? Thank you for your attention

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 22 / 1

slide-29
SLIDE 29

Appendix For Further Reading

References I

  • N. Leavitt, “Network-usage changes push internet traffic to the

edge,” Computer, vol. 43, pp. 13 –15, oct. 2010. “Ellacoya data shows web traffic overtakes peer-to-peer (p2p) as largest percentage of bandwidth on the network.”

  • P. Gill, M. Arlitt, Z. Li, and A. Mahanti, “Youtube traffic

characterization: a view from the edge,” in Proceedings of the 7th ACM SIGCOMM conference on Internet measurement, IMC ’07,

  • pp. 15–28, ACM, 2007.
  • H. Schwarz, D. Marpe, and T. Wiegand, “Overview of the scalable

video coding extension of the h.264/avc standard,” IEEE Transactions

  • n Circuits and Systems for Video Technology, vol. 17, no. 9,
  • pp. 1103–1120, 2007.
  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 23 / 1

slide-30
SLIDE 30

Appendix For Further Reading

References II

“Omnet++.” “ns-2 network simulator.” “Bittorrent protocol specification.” “Rtp payload format for scalable video coding.”

  • S. Medjiah, T. Ahmed, E. Mykoniati, and D. Griffin, “Scalable video

streaming over p2p networks: A matter of harmony?,” in Computer Aided Modeling and Design of Communication Links and Networks (CAMAD), 2011 IEEE 16th International Workshop on, pp. 127 –132, june 2011.

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 24 / 1

slide-31
SLIDE 31

Appendix For Further Reading

References III

  • C. Stais, G. Xylomenos, and A. Archodovassilis, “A comparison of

streaming extensions to bittorrent,” in Computers and Communications (ISCC), 2011 IEEE Symposium on, pp. 1068 –1073, 28 2011-july 1 2011.

  • M. Dischinger, A. Haeberlen, K. P. Gummadi, and S. Saroiu,

“Characterizing residential broadband networks,” in Proceedings of the 7th ACM SIGCOMM conference on Internet measurement, IMC ’07, (New York, NY, USA), pp. 43–56, ACM, 2007. “Georgia tech internet topology model (gt-itm).”

  • A. Amer (Tokyo Institute of Technology)

Using Bittorrent and SVC for Efficient Video Sharing and Streaming ISCC 2012 25 / 1