A Mathematical Model of the Skype VoIP Congestion Control Algorithm

Similar documents
Min Congestion Control for High- Speed Heterogeneous Networks. JetMax: Scalable Max-Min

cs/ee/ids 143 Communication Networks

Analysis of Scalable TCP in the presence of Markovian Losses

Modeling and Stability of PERT

Reliable Data Transport: Sliding Windows

PIQI-RCP: Design and Analysis of Rate-Based Explicit Congestion Control

Controlo Switched Systems: Mixing Logic with Differential Equations. João P. Hespanha. University of California at Santa Barbara.

TCP over Cognitive Radio Channels

Characterizing Adaptive Video Streaming Control Systems

384Y Project June 5, Stability of Congestion Control Algorithms Using Control Theory with an application to XCP

Switched Systems: Mixing Logic with Differential Equations

Wireless Internet Exercises

IN THIS PAPER, we describe a design oriented modelling

communication networks

Modelling an Isolated Compound TCP Connection

Fairness comparison of FAST TCP and TCP Vegas

Markovian Model of Internetworking Flow Control

Robust Stability Analysis of a class of Smith Predictor-based Congestion Control algorithms for Computer Networks

Internet Congestion Control: Equilibrium and Dynamics

Congestion Control. Topics

Impact of Cross Traffic Burstiness on the Packet-scale Paradigm An Extended Analysis

E8 TCP. Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione

Singular perturbation analysis of an additive increase multiplicative decrease control algorithm under time-varying buffering delays.

Window Size. Window Size. Window Size. Time. Time. Time

Performance Analysis of Priority Queueing Schemes in Internet Routers

A positive systems model of TCP-like congestion control: Asymptotic results

Capturing Network Traffic Dynamics Small Scales. Rolf Riedi

Congestion Control. Phenomenon: when too much traffic enters into system, performance degrades excessive traffic can cause congestion

Enhance & Explore: an Adaptive Algorithm to Maximize the Utility of Wireless Networks

CS276 Homework 1: ns-2

Stochastic Hybrid Systems: Applications to Communication Networks

Hybrid FEC/ARQ Performance and Audio. Quality over Wireless Links

AN increasing number of multimedia applications require. Streaming Codes with Partial Recovery over Channels with Burst and Isolated Erasures

Congestion Control. Need to understand: What is congestion? How do we prevent or manage it?

A Quantitative View: Delay, Throughput, Loss

Rate adaptation, Congestion Control and Fairness: A Tutorial. JEAN-YVES LE BOUDEC Ecole Polytechnique Fédérale de Lausanne (EPFL)

Measurements made for web data, media (IP Radio and TV, BBC Iplayer: Port 80 TCP) and VoIP (Skype: Port UDP) traffic.

Modeling Impact of Delay Spikes on TCP Performance on a Low Bandwidth Link

Internet Traffic Modeling and Its Implications to Network Performance and Control

A Globally Stable Adaptive Congestion Control Scheme for Internet-Style Networks with Delay 1

OSCILLATION AND PERIOD DOUBLING IN TCP/RED SYSTEM: ANALYSIS AND VERIFICATION

Worst-case delay control in multigroup overlay networks. Tu, Wanqing; Sreenan, Cormac J.; Jia, Weijia. Article (peer-reviewed)

STOCHASTIC EQUILIBRIA OF AIMD COMMUNICATION NETWORKS

Processor Sharing Flows in the Internet

Dynamic resource sharing

Analysis of Rate-distortion Functions and Congestion Control in Scalable Internet Video Streaming

Complete Stability Region Characterization for PI-AQM

Integrity-Oriented Content Transmission in Highway Vehicular Ad Hoc Networks

CSE 123: Computer Networks

TWO PROBLEMS IN NETWORK PROBING

A Stochastic Model for TCP with Stationary Random Losses

The Analysis of Microburst (Burstiness) on Virtual Switch

Design of IP networks with Quality of Service

Boundedness of AIMD/RED System with Time Delays

WiFi MAC Models David Malone

A positive systems model of TCP-like congestion control: Asymptotic results

NICTA Short Course. Network Analysis. Vijay Sivaraman. Day 1 Queueing Systems and Markov Chains. Network Analysis, 2008s2 1-1

A New TCP/AQM System Analysis

Delayed Stability and Performance of Distributed Congestion Control

Stochastic Hybrid Systems: Applications to Communication Networks

TCP-friendly SIMD Congestion Control and Its Convergence Behavior

A New Technique for Link Utilization Estimation

Chapter 2: A Fluid Model Analysis of Streaming Media in the Presence of Time- Varying Bandwidth

These are special traffic patterns that create more stress on a switch

Computer Networks ( Classroom Practice Booklet Solutions)

Multimedia Communication Services Traffic Modeling and Streaming

Utility Analysis of Simple FEC Schemes for VoIP

Understanding TCP Vegas: A Duality Model

Some Background Information on Long-Range Dependence and Self-Similarity On the Variability of Internet Traffic Outline Introduction and Motivation Ch

Analysis and Design of Controllers for AQM Routers Supporting TCP Flows

End-to-end Estimation of the Available Bandwidth Variation Range

Effect of the Traffic Bursts in the Network Queue

Methodology for Computer Science Research Lecture 4: Mathematical Modeling

Local and Global Stability of Symmetric Heterogeneously-Delayed Control Systems

Queue Dynamics with Window Flow Control

Concise Paper: Deconstructing MPTCP Performance

Continuous-time hidden Markov models for network performance evaluation

Microeconomic Algorithms for Flow Control in Virtual Circuit Networks (Subset in Infocom 1989)

Transient Behaviors of TCP-friendly Congestion Control Protocols

Mellin Transforms for TCP Throughput with Applications to Cross Layer Optimization

An Optimal Index Policy for the Multi-Armed Bandit Problem with Re-Initializing Bandits

MPTCP is not Pareto-Optimal: Performance Issues and a Possible Solution

cs/ee/ids 143 Communication Networks

Service differentiation without prioritization in IEEE WLANs

Utility Maximization in Peer-to-Peer Systems

A Generalized FAST TCP Scheme

A positive systems model of TCP-like congestion control: Asymptotic results

Stochastic Hybrid Systems: Modeling, analysis, and applications to networks and biology

Efficiency and Braess Paradox under Pricing

Distributed Systems Fundamentals

A Signal Processing Approach to the Analysis of Chemical Networking Protocols

Fuzzy Logic Based Robust Control of Queue Management and Optimal Treatment of Traffic over TCP/IP Networks

Fair Scheduling in Input-Queued Switches under Inadmissible Traffic

Congestion Equilibrium for Differentiated Service Classes Richard T. B. Ma

Analysis of TCP Westwood+ in high speed networks

DIMENSIONING BANDWIDTH FOR ELASTIC TRAFFIC IN HIGH-SPEED DATA NETWORKS

Approximate Fairness with Quantized Congestion Notification for Multi-tenanted Data Centers

QUANTIZED SYSTEMS AND CONTROL. Daniel Liberzon. DISC HS, June Dept. of Electrical & Computer Eng., Univ. of Illinois at Urbana-Champaign

Models and Techniques for Network Tomography

Comparison of TCP Reno and TCP Vegas via Fluid Approximation

Transcription:

A Mathematical Model of the Skype VoIP Congestion Control Algorithm Luca De Cicco, S. Mascolo, V. Palmisano Dipartimento di Elettrotecnica ed Elettronica, Politecnico di Bari 47th IEEE Conference on Decision and Control Cancun, Mexico December 9th 28 1 / 21

Outline 1 Introduction Motivations State of the art 2 Experimental investigation Testbed Experiments to investigate Skype VoIP cc 3 Skype VoIP Model The proposed model One Skype flow accessing a single bottleneck drop-tail queue 4 Conclusions 2 / 21

Introduction The Internet was designed for bulk data transfer, not for delivery of multimedia contents that are packet loss tolerant, but delay-sensitive Even though several multimedia CC transport protocols have been proposed (TFRC, DCCP, ARC, RAP), commercial applications use proprietary congestion control algorithms (if any) over UDP Skype is the leading Voice over IP application, generating an enormous amount of UDP flows transported in the Internet It is important to address the issues and the properties of the traffic generated by Skype VoIP application Mathematical models play a major role in understanding the fundamental properties, such as the stability of large scale and complex communication systems 3 / 21

State of the art VoIP traffic is generally considered as CBR, which is not the case of Skype Skype Audio/Video flows employ some sort of congestion control algorithm [WWIC7, NOSSDAV8] The Skype VoIP CC exhibits remarkable unfairness wrt TCP concurrent flows and a very slow reaction to sudden bandwidth variations (transient lasts 4 s) Aim of the work: proposing and verifying a mathematical model that is able to explain the observed behaviour of Skype VoIP generated sending rate Modeling is complicated by the following factors: Skype is a closed source application (source code is not available for inspection) Skype uses AES encryption algorithm to crypt packets It is reasonable to assume that the controller implements switching dynamics due to if-then-else statements 4 / 21

Schematic of the considered system End-to-end congestion control algorithms typically react to congestion when: packet losses occur (loss based congestion control) the latency of the connection grows (delay based congestion control) Schematic of the system Therefore we consider loss ratio ˆl(t) and round trip time RTT ˆ (t), as candidate inputs of the controller Audio Input ENCODER + CONTROLLER r s (t) ˆ RTT (t) ˆl(t) Network r r (t) DECODER Received Audio Sender Receiver 5 / 21

Experiments to Investigate the Skype Congestion Control

The Skype Measurement Lab Testbed We employ a network emulator to vary: link packet loss ratio (PLR) l(t) link capacity c(t) link Round Trip Time RTT (t) The emulator allows to log throughput, loss rate, and packet size produced by each flow We are also able to log information (RTT, PLR, jitter) provided by Skype Experiments to investigate Skype VoIP cc Skype over a variable loss ratio link Skype over a variable RTT link Skype over a variable available bandwidth link 7 / 21

Skype Audio over a variable loss rate link Loss ratio: square wave, period 2 s, max value.4, min value Throughput (kb/s) Loss ratio Packet rate (pkts/s) Packet size (bytes) 1 5 5 1 15 2 25 3 35 4 45 5 time (s).4.2 5 1 15 2 25 3 35 4 45 5 15 1 5 5 1 15 2 25 3 35 4 45 5 time (s) 4 2 l(t) ˆl(t) FEC is active 5 1 15 2 25 3 35 4 45 5 time (s) 1 When the imposed l(t) increases, the sending rate increases, indicating that the congestion control algorithm is not loss based 2 The loss ratio ˆl(t) as measured by Skype (in red) is a low pass filtered version of the signal l(t) (blue) 3 The packet sizes evolution increases when l(t) increases, indicating that Skype employs a Forward Error Correction (FEC) technique to counteract persistent packet losses 8 / 21

Skype Audio over a variable RTT link Variable RTT: variations happen each 1 s in the range [2, 3]ms RTT (ms) Throughput (kb/s) Packet rate (pkts/s) Packet size (bytes) 5 3 2 1 15 1 5 2 1 1 2 3 4 5 6 7 8 time (s) 1 2 3 4 5 6 7 8 time (s) 1 2 3 4 5 6 7 8 time (s) 1 2 3 4 5 6 7 8 time (s) The generated sending rate does not vary significantly when RTT varies, so that we can conclude that the CC algorithm is not delay based The packet size evolution indicates the FEC action is not activated 9 / 21

The Skype VoIP Congestion Control Model

Proposed Model We make the hypothesis that the encoder employed by Skype is multi-rate so that it can choose among N levels of encoding L = {L 1, L 2,..., L N } Proposed model r s (t) = (1 ˆl(t)) (1 + f (t))l i(t) (1) ˆl(t) is the loss ratio as measured by Skype f (t) FEC action, f (t) [, 1] (f (t) = when FEC is off, f (t) = 1 when the FEC action is at maximum) L i(t) is the encoding level selected at time t 11 / 21

Validation of the proposed model kb/s Loss ratio f(t) Packet size (bytes) 15 1 5 Actual thr. Predicted thr. Av. Bandwidth 2 4 6 8 1 12 14 1.5 1.5 l(t) ˆl(t) 2 4 6 8 1 12 14 1.5 2 4 6 8 1 12 14 5 2 4 6 8 1 12 14 The sending rate predicted by eq. (1) follows the rate produced by Skype FEC is not active during congestion (after a bandwidth drop occurs) FEC is activated after the available bandwidth increases to its maximum value (packet size doubles) to counteract packet losses in the probing phase The long transient time exhibited by the CC algorithm is due to the filtering of the loss ratio 12 / 21

A Skype flow accessing a bottleneck Setting: available bandwidth b(t), drop-tail queue length q M, fw path delay T 1, bw path delay T 2 Queue length model q(t) { q =, r b or q = qm, r b q = (2) r b otherwise where r is the queue input rate. The overflow rate is given by: { r b q = qm, r > b o = otherwise Measured loss ratio ˆl(t) model Recalling that l = o/r and employing a first order filter with time constant τ (τ = 11 s) we have ˆl = τˆl 1 + 1 o T2 τ r T2. Considering (1) and (3) we obtain: { f1 = ˆl 1 τ = ˆl τ b T2 q = q τ(1 ˆl T2 )(1+f T2 )L M, r > b T2 (4) f 2 = τˆl 1 otherwise (3) 13 / 21

Skype accessing a bottleneck: hybrid model It is simple to show that the following hybrid automaton models the considered system (equations (2) and (4)): Hybrid Automaton H r b Σ 1 q, q q M r > b Σ 2 q = q M r b Σ 3 ˆl = f 2 ˆl = f 2 ˆl = f 1 q = o = q = r b o = q = o = r b q = r < b Empty queue Full queue Characterizing the equilibria of H Characterization of the equilibrium states of H Steady state characterization of a Skype Audio flow accessing a bottleneck with capacity b The time delay is neglected since τ RTT 14 / 21

Characterization of the steady state Proposition 1: Let us consider the equilibrium inputs b, L and f the automaton H is characterized by the following equilibria that are asymptotically stable: ˆl b = 1 L (1 + f ) ; q = q M iff b < (1 + f )L (5) ˆl = ; q = iff b (1 + f )L (6) Proposition 2: The controller employed by Skype is not able to avoid congestion unless b > L (1 + f ). Dim. We are under the hypothesis of Prop 1 (5) is asymptotically stable. At steady state it results o = (1 ˆl )L (1 + f ) b, thus substituting (5) in the equation just written we have: o = p b L (1 + f ) b > 15 / 21

Verification of the proposition b = 3 kb/s ; L = 56 kb/s Queue size (bytes) Throughput (kb/s) Loss rate (kb/s) 8 6 4 4 2 1 2 r = 41kb/s 5 1 15 2 25 3 35 4 5 qm 5 1 15 5 o = 11kb/s 1 15 2 time (s) b(t) 2 25 3 35 4 25 Actual rate 3 35 4 Available bandwidth drop at t = 5, b = 3 kb/s The experiment shows that the steady state values for r(t) and o(t) recover the ones predicted by the model 16 / 21

Conclusions We have proposed a mathematical model of the Skype closed loop congestion control Main contributions are: Characterization of the equilibrium states of the system Skype is not able to cope with congestion efficiently (a finite error is present and the queue is full) The model has been validated using both network experiments and NS-2 simulations 17 / 21

Thank you for the attention Sunset in Cancun, Dec 28

Backup slides

The Skype Hybrid Automaton L i() = L init ˆl() = S 1 Normal g 12 g 21 g 31 g 23 S 3 Losses S 2 Congestion g 13 g 32 Three different dynamics depending on the state. The guard conditions g ij are still not identified S 1 - Normal: no congestion occurs, no persistent loss due to link are present, rate is constant S 2 - Congestion: the link is congested, r s (t) varies according eq (1) S 3 - Losses: no congestion occurs, losses due to the link are present (FEC action is activated in this state) 2 / 21

Equilibrium of H Lemma 1: The system Σ 3 (full queue) has a unique asymptotically stable equilibrium: ˆl b = 1 L (1 + f ) ; q = q M (7) when b < (1 + f )L. Lemma 2: The system Σ 1 (empty queue) has a unique asymptotically stable equilibrium : ˆl = ; q = (8) when b > (1 + f )L Lemma 3: The hybrid automaton H has a sink state Σ 3 if b < (1 + f )L and a sink state Σ 1 if b > (1 + f )L 21 / 21