SlideShare a Scribd company logo
1 of 18
Peer-to-Peer Streaming Based on Network
Coding Decreases Packet Jitter
Riccardo Bernardini, Roberto Cesco Fabbro, Roberto Rinaldo
DIEGM – University of Udine
October 27, 2010
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Overview
• Introduction
– Streaming over P2P networks
– P2P with network coding
• The model
• Analytical results
• Experimental results
• Conclusions
1
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Streaming over P2P
Why?
• Streaming good quality content to many users in multi-unicast
requires a lot of resources
Required = Content bandwidth × # of users
• Multicast is not always a feasible solution (cross AS)
• In a Peer-to-Peer structure each node brings its own resources
⇓
SCALABLE
2
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Streaming over P2P
The drawbacks
A user is not a server
Insufficient upload bandwidth
Can leave at anytime (even suddenly)
Cannot be trusted (poisoning)
3
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Streaming over P2P
Chunk-based
• Chunk-based approach
– Inspired to file-sharing P2P systems
– The stream is split in chunks
– Each peer advertises which chunks has (buffer maps)
– Each node asks to other peers the required chunks
– A node sends as many chunks as its bandwidth allows
– For live streaming
∗ Too old chunks useless
∗ Future chunks do not exist
⇒ Some buffering necessary
– More interesting for VOD
4
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Streaming over P2P
Stream-based
• Stream-based approach
– As soon as the node receives a packet
∗ Takes linear combinations of the content of the packet (network coding)
∗ Transmits the result (reduced packet)
– The transmitted packets are smaller ⇒ smaller required bandwidth
– A node recovers the content packet by combining the output of different
peers
– The node transmits as soon as it receives a new packet
∗ More stream-oriented
⇒ No buffering necessary
5
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Our setup
• We will consider a stream-based approach
• We do not fix a specific network coding, but we suppose that
– The bandwidth of the reduced stream is 1/R of the bandwidth of the
content stream.
– The content packet can be recovered as soon as at R packets are received
– Each peer receives data from N > R peers
• Chunkless approaches that satisfy these requirements exist
– PPETP (http://corallo.sourceforge.org)
– Octoshape
6
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Network Coding & Jitter
• The idea
– If N peers send me data. . .
– . . . and I need only the R < N “fastest” packets . . .
– . . . could this have some benefical effect on jitter?
7
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Our model
Client
U1
U2
U3
U4
Upper
peers
Streaming
Server
P2P
Newtork
00000
00000
0000000000
00000
00000
00000
11111
11111
1111111111
11111
11111
11111
00000
00000
00000
11111
11111
11111
0000
0000
0000
1111
1111
1111
0000
00
0000
1111
11
1111
0
0
00
0
0
0
00
0
0
0
00
0
00
0
0
11
1
1
1
11
1
1
1
11
1
11
1
1
1
1
0
0
00
0
0
0
00
0
0
0
00
0
00
0
0
11
1
1
1
11
1
1
1
11
1
11
1
1
1
1
0000000000000000000000000011111111111111111111111111
000000
000000
111111
111111
• A packet leaves the server at t = 0
• The n-th upper peer recovers the
packet at t = An
• The reduced version of the n-th up-
per peer needs t = Bn to reach the
node
• The node receives the data from the
n-th upper peer at time Xn = An +Bn
8
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Our model
Equivalent
Client
SPLIT
JOIN
Streaming
Server
:
:
Content
packets
Reduced
packets
To the application
(e.g., decoder)
Delay XN
Delay D=OK(X1, ..., XN)
• As soon as a packet is created
it is split in N reduced packets
that leave the server t = 0
• The n-th packet arrives at t = Xn
• The packet is recovered at time
D = OR(X1, . . . , XN)
where OR returns the R-th (in
increasing order) of its argu-
ments.
• σD = jitter “seen” by the node
9
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Problem statement
• Hypothesis
– Xn are iid random variables with
∗ Distribution FX
∗ Average mX (expected delay)
∗ Standard deviation σX (basic jitter)
– D = OR(X1, . . . , XN)
• Problem: find mD and σ2
D as function of mX, σ2
X, R and N
Note: The results can be extended to the case where Xn has parametrized
distribution G(x; θn), where θn is a r.v.
10
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Analytical results
Reduction to m = 0 and σ2 = 1
• Define
Yn =
Xn − a
b
; C = OR(Y1, . . . , YN)
• The following (almost obvious) equalities hold
mC =
mD − a
b
; σC = σD/b
• Note: The ratio σD/σX (a measure of jitter reduction) depends
only on N, R and the type of Xn (Gaussian, uniform, . . . )
11
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Analytical results
Asymptotical results
• D = OR(X1, . . . , XN) is the R-th order statistic of X1, . . . , XN
• Let ρ = N/R be a measure of the “redundancy”
• Keeping ρ constant while letting N → ∞ (under mild hypothesis)
– mD → F−1
X (1/ρ) The delay depends only on ρ
– σD/σX ∼ 1/
√
N The jitter decays as 1/
√
N
12
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Simulation results
Simulation results with Xn ∼ N(0, 1)
10
0
10
1
10
2
10
−0.9
10
−0.7
10
−0.5
10
−0.3
10
−0.1
Jitter vs. N in log−log scale
N
Jitter
R=1/5
R=1/4
R=1/2
R=7/10
R=3/4
0 20 40 60 80 100
−1.5
−1
−0.5
0
0.5
1
NMean
R=N/5
R=N/4
R=N/2
R=(7/10) N
R=(3/4) N
13
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Experimental results
Setup
−0.05 0 0.05 0.1 0.15
0
5
10
15
20
25
Histogram of peers delay
Delay [s]
Numberofpeers
• PlanetLab network with 101 nodes
• Nodes synchronized with NTP. Error
< 10 ms (interrupt frequency in Linux
kernel)
• Each node sent 1000 packets, 2
packets per second
• Two groups of nodes
– With very small delay (≈ 0.04 s),
comparable with NTP synchro-
nization error. Discarded.
– With delay ≈ 0.1 s.
14
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Experimental results
Results
Comparison with theoretical results (N = 100)
0 10 20 30 40 50
0
0.2
0.4
0.6
0.8
1
R
Jitter[s]
Planetlab
Theoric
0 10 20 30 40 50
0.7
0.8
0.9
1
1.1
1.2
1.3
1.4
RMean[s]
Planetlab
Theoric
15
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Conclusions
• We analyzed the behaviour of the jitter when a P2P structure
based on network coding is employed
• The jitter is actually reduced
• The σD/σX decays as 1/
√
N, that is, it depends (approximately)
only on the number of peers and not on the redundancy.
16
Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter
Acknowledgments
This work and the development of PPETP are partially supported by
PRIN Arachne (2008C59JNA), granted by Ministero per l’Universit`a
e la Ricerca Scientifica e
Tecnologica.
17

More Related Content

What's hot

Congestion control avoidance
Congestion control avoidanceCongestion control avoidance
Congestion control avoidance
Anthony-Claret Onwutalobi
 
Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34
Shaikhul Islam Chowdhury
 

What's hot (19)

Chap4 slides
Chap4 slidesChap4 slides
Chap4 slides
 
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
Deep Learning for Computer Vision: Recurrent Neural Networks (UPC 2016)
 
Lstm
LstmLstm
Lstm
 
Congestion control avoidance
Congestion control avoidanceCongestion control avoidance
Congestion control avoidance
 
Rnn & Lstm
Rnn & LstmRnn & Lstm
Rnn & Lstm
 
Long Short Term Memory
Long Short Term MemoryLong Short Term Memory
Long Short Term Memory
 
TCP Congestion Control
TCP Congestion ControlTCP Congestion Control
TCP Congestion Control
 
Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34Simulation and Performance Analysis of AODV using NS-2.34
Simulation and Performance Analysis of AODV using NS-2.34
 
Modern Cryptography
Modern CryptographyModern Cryptography
Modern Cryptography
 
Network simulator 2
Network simulator 2Network simulator 2
Network simulator 2
 
LSTM
LSTMLSTM
LSTM
 
TCP congestion control
TCP congestion controlTCP congestion control
TCP congestion control
 
3.4 density and grid methods
3.4 density and grid methods3.4 density and grid methods
3.4 density and grid methods
 
RNN & LSTM: Neural Network for Sequential Data
RNN & LSTM: Neural Network for Sequential DataRNN & LSTM: Neural Network for Sequential Data
RNN & LSTM: Neural Network for Sequential Data
 
Tcp congestion avoidance
Tcp congestion avoidanceTcp congestion avoidance
Tcp congestion avoidance
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT Delay optimal broadcast for multihop...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT Delay optimal broadcast for multihop...DOTNET 2013 IEEE MOBILECOMPUTING PROJECT Delay optimal broadcast for multihop...
DOTNET 2013 IEEE MOBILECOMPUTING PROJECT Delay optimal broadcast for multihop...
 
TCP Congestion Control By Owais Jara
TCP Congestion Control By Owais JaraTCP Congestion Control By Owais Jara
TCP Congestion Control By Owais Jara
 
Congestion control in tcp
Congestion control in tcpCongestion control in tcp
Congestion control in tcp
 

Similar to Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter

xDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
xDDR-MobiMedia2015-Syed Rehan Afzal - TU EindhovenxDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
xDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
rehanshehzi
 
05 ergeg mmergm maergergcongergeestion.ppt
05 ergeg mmergm maergergcongergeestion.ppt05 ergeg mmergm maergergcongergeestion.ppt
05 ergeg mmergm maergergcongergeestion.ppt
TLRTHR
 
05compuernetworkscongestioncontrolalgo.ppt
05compuernetworkscongestioncontrolalgo.ppt05compuernetworkscongestioncontrolalgo.ppt
05compuernetworkscongestioncontrolalgo.ppt
TLRTHR
 
Efficient Topology Discovery in Software Defined Networks
Efficient Topology Discovery in Software Defined NetworksEfficient Topology Discovery in Software Defined Networks
Efficient Topology Discovery in Software Defined Networks
Farzaneh Pakzad
 

Similar to Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter (20)

Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
 
xDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
xDDR-MobiMedia2015-Syed Rehan Afzal - TU EindhovenxDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
xDDR-MobiMedia2015-Syed Rehan Afzal - TU Eindhoven
 
datalink.ppt
datalink.pptdatalink.ppt
datalink.ppt
 
DDS over Low Bandwidth Data Links - Connext Conf London October 2014
DDS over Low Bandwidth Data Links - Connext Conf London October 2014DDS over Low Bandwidth Data Links - Connext Conf London October 2014
DDS over Low Bandwidth Data Links - Connext Conf London October 2014
 
Adaptive opportunistic routing for wireless ad hoc networks
Adaptive opportunistic routing for wireless ad hoc networksAdaptive opportunistic routing for wireless ad hoc networks
Adaptive opportunistic routing for wireless ad hoc networks
 
Routing Presentation
Routing PresentationRouting Presentation
Routing Presentation
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Dc ch11 : routing in switched networks
Dc ch11 : routing in switched networksDc ch11 : routing in switched networks
Dc ch11 : routing in switched networks
 
Lecture set 5
Lecture set 5Lecture set 5
Lecture set 5
 
FEC & File Multicast
FEC & File MulticastFEC & File Multicast
FEC & File Multicast
 
An overview of Peer-to-Peer technology new
An overview of Peer-to-Peer technology newAn overview of Peer-to-Peer technology new
An overview of Peer-to-Peer technology new
 
05 ergeg mmergm maergergcongergeestion.ppt
05 ergeg mmergm maergergcongergeestion.ppt05 ergeg mmergm maergergcongergeestion.ppt
05 ergeg mmergm maergergcongergeestion.ppt
 
05compuernetworkscongestioncontrolalgo.ppt
05compuernetworkscongestioncontrolalgo.ppt05compuernetworkscongestioncontrolalgo.ppt
05compuernetworkscongestioncontrolalgo.ppt
 
Naist2015 dec ver1
Naist2015 dec ver1Naist2015 dec ver1
Naist2015 dec ver1
 
[Slides]L2.pptx
[Slides]L2.pptx[Slides]L2.pptx
[Slides]L2.pptx
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
 
12 routing
12 routing12 routing
12 routing
 
Efficient Topology Discovery in Software Defined Networks
Efficient Topology Discovery in Software Defined NetworksEfficient Topology Discovery in Software Defined Networks
Efficient Topology Discovery in Software Defined Networks
 
SDPROBER: A SOFTWARE DEFINED PROBER FOR SDN
SDPROBER: A SOFTWARE DEFINED PROBER FOR SDNSDPROBER: A SOFTWARE DEFINED PROBER FOR SDN
SDPROBER: A SOFTWARE DEFINED PROBER FOR SDN
 
Software defined network
Software defined networkSoftware defined network
Software defined network
 

More from Alpen-Adria-Universität

Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
Alpen-Adria-Universität
 
Content-adaptive Video Coding for HTTP Adaptive Streaming
Content-adaptive Video Coding for HTTP Adaptive StreamingContent-adaptive Video Coding for HTTP Adaptive Streaming
Content-adaptive Video Coding for HTTP Adaptive Streaming
Alpen-Adria-Universität
 
Evaluation of Quality of Experience of ABR Schemes in Gaming Stream
Evaluation of Quality of Experience of ABR Schemes in Gaming StreamEvaluation of Quality of Experience of ABR Schemes in Gaming Stream
Evaluation of Quality of Experience of ABR Schemes in Gaming Stream
Alpen-Adria-Universität
 
Policy-Driven Dynamic HTTP Adaptive Streaming Player Environment
Policy-Driven Dynamic HTTP Adaptive Streaming Player EnvironmentPolicy-Driven Dynamic HTTP Adaptive Streaming Player Environment
Policy-Driven Dynamic HTTP Adaptive Streaming Player Environment
Alpen-Adria-Universität
 
Energy Consumption in Video Streaming: Components, Measurements, and Strategies
Energy Consumption in Video Streaming: Components, Measurements, and StrategiesEnergy Consumption in Video Streaming: Components, Measurements, and Strategies
Energy Consumption in Video Streaming: Components, Measurements, and Strategies
Alpen-Adria-Universität
 
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
Alpen-Adria-Universität
 
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming ApplicationsSARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
Alpen-Adria-Universität
 

More from Alpen-Adria-Universität (20)

VEED: Video Encoding Energy and CO2 Emissions Dataset for AWS EC2 instances
VEED: Video Encoding Energy and CO2 Emissions Dataset for AWS EC2 instancesVEED: Video Encoding Energy and CO2 Emissions Dataset for AWS EC2 instances
VEED: Video Encoding Energy and CO2 Emissions Dataset for AWS EC2 instances
 
GREEM: An Open-Source Energy Measurement Tool for Video Processing
GREEM: An Open-Source Energy Measurement Tool for Video ProcessingGREEM: An Open-Source Energy Measurement Tool for Video Processing
GREEM: An Open-Source Energy Measurement Tool for Video Processing
 
Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
Optimal Quality and Efficiency in Adaptive Live Streaming with JND-Aware Low ...
 
VEEP: Video Encoding Energy and CO₂ Emission Prediction
VEEP: Video Encoding Energy and CO₂ Emission PredictionVEEP: Video Encoding Energy and CO₂ Emission Prediction
VEEP: Video Encoding Energy and CO₂ Emission Prediction
 
Content-adaptive Video Coding for HTTP Adaptive Streaming
Content-adaptive Video Coding for HTTP Adaptive StreamingContent-adaptive Video Coding for HTTP Adaptive Streaming
Content-adaptive Video Coding for HTTP Adaptive Streaming
 
Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Video...
Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Video...Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Video...
Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Video...
 
Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Vid...
Empowerment of Atypical Viewers  via Low-Effort Personalized Modeling  of Vid...Empowerment of Atypical Viewers  via Low-Effort Personalized Modeling  of Vid...
Empowerment of Atypical Viewers via Low-Effort Personalized Modeling of Vid...
 
Optimizing Video Streaming for Sustainability and Quality: The Role of Prese...
Optimizing Video Streaming  for Sustainability and Quality: The Role of Prese...Optimizing Video Streaming  for Sustainability and Quality: The Role of Prese...
Optimizing Video Streaming for Sustainability and Quality: The Role of Prese...
 
Energy-Efficient Multi-Codec Bitrate-Ladder Estimation for Adaptive Video Str...
Energy-Efficient Multi-Codec Bitrate-Ladder Estimation for Adaptive Video Str...Energy-Efficient Multi-Codec Bitrate-Ladder Estimation for Adaptive Video Str...
Energy-Efficient Multi-Codec Bitrate-Ladder Estimation for Adaptive Video Str...
 
Machine Learning Based Resource Utilization Prediction in the Computing Conti...
Machine Learning Based Resource Utilization Prediction in the Computing Conti...Machine Learning Based Resource Utilization Prediction in the Computing Conti...
Machine Learning Based Resource Utilization Prediction in the Computing Conti...
 
Evaluation of Quality of Experience of ABR Schemes in Gaming Stream
Evaluation of Quality of Experience of ABR Schemes in Gaming StreamEvaluation of Quality of Experience of ABR Schemes in Gaming Stream
Evaluation of Quality of Experience of ABR Schemes in Gaming Stream
 
Network-Assisted Delivery of Adaptive Video Streaming Services through CDN, S...
Network-Assisted Delivery of Adaptive Video Streaming Services through CDN, S...Network-Assisted Delivery of Adaptive Video Streaming Services through CDN, S...
Network-Assisted Delivery of Adaptive Video Streaming Services through CDN, S...
 
Multi-access Edge Computing for Adaptive Video Streaming
Multi-access Edge Computing for Adaptive Video StreamingMulti-access Edge Computing for Adaptive Video Streaming
Multi-access Edge Computing for Adaptive Video Streaming
 
Policy-Driven Dynamic HTTP Adaptive Streaming Player Environment
Policy-Driven Dynamic HTTP Adaptive Streaming Player EnvironmentPolicy-Driven Dynamic HTTP Adaptive Streaming Player Environment
Policy-Driven Dynamic HTTP Adaptive Streaming Player Environment
 
VE-Match: Video Encoding Matching-based Model for Cloud and Edge Computing In...
VE-Match: Video Encoding Matching-based Model for Cloud and Edge Computing In...VE-Match: Video Encoding Matching-based Model for Cloud and Edge Computing In...
VE-Match: Video Encoding Matching-based Model for Cloud and Edge Computing In...
 
Energy Consumption in Video Streaming: Components, Measurements, and Strategies
Energy Consumption in Video Streaming: Components, Measurements, and StrategiesEnergy Consumption in Video Streaming: Components, Measurements, and Strategies
Energy Consumption in Video Streaming: Components, Measurements, and Strategies
 
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
Exploring the Energy Consumption of Video Streaming: Components, Challenges, ...
 
Video Coding Enhancements for HTTP Adaptive Streaming Using Machine Learning
Video Coding Enhancements for HTTP Adaptive Streaming Using Machine LearningVideo Coding Enhancements for HTTP Adaptive Streaming Using Machine Learning
Video Coding Enhancements for HTTP Adaptive Streaming Using Machine Learning
 
Optimizing QoE and Latency of Live Video Streaming Using Edge Computing a...
Optimizing  QoE and Latency of  Live Video Streaming Using  Edge Computing  a...Optimizing  QoE and Latency of  Live Video Streaming Using  Edge Computing  a...
Optimizing QoE and Latency of Live Video Streaming Using Edge Computing a...
 
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming ApplicationsSARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
SARENA: SFC-Enabled Architecture for Adaptive Video Streaming Applications
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 

Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter

  • 1. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Riccardo Bernardini, Roberto Cesco Fabbro, Roberto Rinaldo DIEGM – University of Udine October 27, 2010
  • 2. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Overview • Introduction – Streaming over P2P networks – P2P with network coding • The model • Analytical results • Experimental results • Conclusions 1
  • 3. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Streaming over P2P Why? • Streaming good quality content to many users in multi-unicast requires a lot of resources Required = Content bandwidth × # of users • Multicast is not always a feasible solution (cross AS) • In a Peer-to-Peer structure each node brings its own resources ⇓ SCALABLE 2
  • 4. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Streaming over P2P The drawbacks A user is not a server Insufficient upload bandwidth Can leave at anytime (even suddenly) Cannot be trusted (poisoning) 3
  • 5. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Streaming over P2P Chunk-based • Chunk-based approach – Inspired to file-sharing P2P systems – The stream is split in chunks – Each peer advertises which chunks has (buffer maps) – Each node asks to other peers the required chunks – A node sends as many chunks as its bandwidth allows – For live streaming ∗ Too old chunks useless ∗ Future chunks do not exist ⇒ Some buffering necessary – More interesting for VOD 4
  • 6. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Streaming over P2P Stream-based • Stream-based approach – As soon as the node receives a packet ∗ Takes linear combinations of the content of the packet (network coding) ∗ Transmits the result (reduced packet) – The transmitted packets are smaller ⇒ smaller required bandwidth – A node recovers the content packet by combining the output of different peers – The node transmits as soon as it receives a new packet ∗ More stream-oriented ⇒ No buffering necessary 5
  • 7. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Our setup • We will consider a stream-based approach • We do not fix a specific network coding, but we suppose that – The bandwidth of the reduced stream is 1/R of the bandwidth of the content stream. – The content packet can be recovered as soon as at R packets are received – Each peer receives data from N > R peers • Chunkless approaches that satisfy these requirements exist – PPETP (http://corallo.sourceforge.org) – Octoshape 6
  • 8. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Network Coding & Jitter • The idea – If N peers send me data. . . – . . . and I need only the R < N “fastest” packets . . . – . . . could this have some benefical effect on jitter? 7
  • 9. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Our model Client U1 U2 U3 U4 Upper peers Streaming Server P2P Newtork 00000 00000 0000000000 00000 00000 00000 11111 11111 1111111111 11111 11111 11111 00000 00000 00000 11111 11111 11111 0000 0000 0000 1111 1111 1111 0000 00 0000 1111 11 1111 0 0 00 0 0 0 00 0 0 0 00 0 00 0 0 11 1 1 1 11 1 1 1 11 1 11 1 1 1 1 0 0 00 0 0 0 00 0 0 0 00 0 00 0 0 11 1 1 1 11 1 1 1 11 1 11 1 1 1 1 0000000000000000000000000011111111111111111111111111 000000 000000 111111 111111 • A packet leaves the server at t = 0 • The n-th upper peer recovers the packet at t = An • The reduced version of the n-th up- per peer needs t = Bn to reach the node • The node receives the data from the n-th upper peer at time Xn = An +Bn 8
  • 10. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Our model Equivalent Client SPLIT JOIN Streaming Server : : Content packets Reduced packets To the application (e.g., decoder) Delay XN Delay D=OK(X1, ..., XN) • As soon as a packet is created it is split in N reduced packets that leave the server t = 0 • The n-th packet arrives at t = Xn • The packet is recovered at time D = OR(X1, . . . , XN) where OR returns the R-th (in increasing order) of its argu- ments. • σD = jitter “seen” by the node 9
  • 11. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Problem statement • Hypothesis – Xn are iid random variables with ∗ Distribution FX ∗ Average mX (expected delay) ∗ Standard deviation σX (basic jitter) – D = OR(X1, . . . , XN) • Problem: find mD and σ2 D as function of mX, σ2 X, R and N Note: The results can be extended to the case where Xn has parametrized distribution G(x; θn), where θn is a r.v. 10
  • 12. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Analytical results Reduction to m = 0 and σ2 = 1 • Define Yn = Xn − a b ; C = OR(Y1, . . . , YN) • The following (almost obvious) equalities hold mC = mD − a b ; σC = σD/b • Note: The ratio σD/σX (a measure of jitter reduction) depends only on N, R and the type of Xn (Gaussian, uniform, . . . ) 11
  • 13. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Analytical results Asymptotical results • D = OR(X1, . . . , XN) is the R-th order statistic of X1, . . . , XN • Let ρ = N/R be a measure of the “redundancy” • Keeping ρ constant while letting N → ∞ (under mild hypothesis) – mD → F−1 X (1/ρ) The delay depends only on ρ – σD/σX ∼ 1/ √ N The jitter decays as 1/ √ N 12
  • 14. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Simulation results Simulation results with Xn ∼ N(0, 1) 10 0 10 1 10 2 10 −0.9 10 −0.7 10 −0.5 10 −0.3 10 −0.1 Jitter vs. N in log−log scale N Jitter R=1/5 R=1/4 R=1/2 R=7/10 R=3/4 0 20 40 60 80 100 −1.5 −1 −0.5 0 0.5 1 NMean R=N/5 R=N/4 R=N/2 R=(7/10) N R=(3/4) N 13
  • 15. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Experimental results Setup −0.05 0 0.05 0.1 0.15 0 5 10 15 20 25 Histogram of peers delay Delay [s] Numberofpeers • PlanetLab network with 101 nodes • Nodes synchronized with NTP. Error < 10 ms (interrupt frequency in Linux kernel) • Each node sent 1000 packets, 2 packets per second • Two groups of nodes – With very small delay (≈ 0.04 s), comparable with NTP synchro- nization error. Discarded. – With delay ≈ 0.1 s. 14
  • 16. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Experimental results Results Comparison with theoretical results (N = 100) 0 10 20 30 40 50 0 0.2 0.4 0.6 0.8 1 R Jitter[s] Planetlab Theoric 0 10 20 30 40 50 0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 RMean[s] Planetlab Theoric 15
  • 17. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Conclusions • We analyzed the behaviour of the jitter when a P2P structure based on network coding is employed • The jitter is actually reduced • The σD/σX decays as 1/ √ N, that is, it depends (approximately) only on the number of peers and not on the redundancy. 16
  • 18. Peer-to-Peer Streaming Based on Network Coding Decreases Packet Jitter Acknowledgments This work and the development of PPETP are partially supported by PRIN Arachne (2008C59JNA), granted by Ministero per l’Universit`a e la Ricerca Scientifica e Tecnologica. 17