A Short Course on Network Calculus

Slides:



Advertisements
Similar presentations
Min-Plus Linear Systems Theory and Bandwidth Estimation Min-Plus Linear Systems Theory and Bandwidth Estimation TexPoint fonts used in EMF. Read the TexPoint.
Advertisements

CS640: Introduction to Computer Networks Aditya Akella Lecture 20 – QoS.
Resource Allocation: Deterministic Analysis. Traffic Model Stochastic Different sample paths with different properties Expected case analysis Deterministic.
Berlin Network Calculus & Related Models with Applications by George I. Stassinopoulos Prof. NTUA
THE SYSTEM THEORY OF NETWORK CALCULUS J.-Y. Le Boudec EPFL WoNeCa, 2012 Mars 21 1.
Communication Networks Network Calculus: Deterministic Traffic Analysis Last updated: Thursday, May 07, 2015 Prof. Amir Herzberg Dept of Computer.
Analytical Modeling and Evaluation of On- Chip Interconnects Using Network Calculus M. BAkhouya, S. Suboh, J. Gaber, T. El-Ghazawi NOCS 2009, May 10-13,
0 A Short Course on Network Calculus CH-1015 Ecublens Jean-Yves Le Boudec Patrick Thiran ICA, EPFL.
Recent Progress on a Statistical Network Calculus Jorg Liebeherr Department of Computer Science University of Virginia.
Network Calculus: Reference Material: J.-Y. LeBoudec and Patrick Thiran: “Network Calculus: A Theory of Deterministic Queuing Systems for the Internet”,
Supporting Stored Video: Reducing Rate Variability and End-toEnd Resource Requirements through Optimal Smoothing By James D. salehi, Zhi-Li Zhang, James.
CS 268: Lecture 15/16 (Packet Scheduling) Ion Stoica April 8/10, 2002.
Network Calculus: Reference Material: J.-Y. LeBoudec and Patrick Thiran: “Network Calculus: A Theory of Deterministic Queuing Systems for the Internet”,
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley Asynchronous Distributed Algorithm Proof.
Deterministic Network Calculus p.2. DNC arrival results Accumulated arrival functions R(t): traffic recieved in [0,t] Arrival function may be constrained:
CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8.
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case Abhay K. Parekh, Member, IEEE, and Robert.
1 Network Calculus Jean-Yves Le Boudec, lecturer Patrick Thiran Pisa 2003.
Bandwidth Estimation TexPoint fonts used in EMF.
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley.
1 © Jean-Yves Le Boudec and Patrick Thiran Network calculus : CH-1015 Lausanne Jean-Yves.Leboudec Jean-Yves.
Loss-Bounded Analysis for Differentiated Services. By Alexander Kesselman and Yishay Mansour Presented By Sharon Lubasz
Deterministic Network Calculus. DNC history Queueing Theory, Agner Krarup Erlang, 1909 Queueing Networks, James R. Jackson, 1957 Scheduling Theory, Liu.
Managing VBR Videos. The VBR Problem Constant quality Burstiness over multiple time scales Difference within and between scenes Frame structure of encoding.
04/02/08 1 Packet Scheduling IT610 Prof. A. Sahoo KReSIT.
APPLICATIONS OF DIFFERENTIATION Antiderivatives In this section, we will learn about: Antiderivatives and how they are useful in solving certain.
Congestion Control in Data Networks and Internets
ECE 720T5 Fall 2012 Cyber-Physical Systems
Topics discussed in this section:
Intro to Deterministic Analysis
Intro to Deterministic Analysis
Advanced Engineering Mathematics 6th Edition, Concise Edition
Measuring Service in Multi-Class Networks
CprE 458/558: Real-Time Systems
Autonomous Cyber-Physical Systems: Dynamical Systems
COMP/ELEC 429/556 Introduction to Computer Networks
The Curve Merger (Dvir & Widgerson, 2008)
Signal and Systems Chapter 2: LTI Systems
Intro to Deterministic Analysis
Congestion Control in Data Networks and Internets
EE 122: Quality of Service and Resource Allocation
Congestion Control (from Chapter 05)
On-time Network On-chip
Computer Science Division
Congestion Control (from Chapter 05)
Scheduling Algorithms to Minimize Session Delays
Network calculus ( system theory )
Congestion Control (from Chapter 05)
Flow Feasibility Problems
Lightweight but Powerful QoS Solution for Embedded Systems
Queuing Networks Mean Value Analysis
Schedulability Conditions for Scheduling Algorithms
Congestion Control (from Chapter 05)
CSE 550 Computer Network Design
Congestion Control (from Chapter 05)
ECE 1545 Service Curve Earliest Deadline Due (SCED) or How to construct a scheduler from a service curve.
Congestion Control (from Chapter 05)
Congestion Control (from Chapter 05)
Guaranteeing Message Latencies on Controller Area Network (CAN)
Congestion Control (from Chapter 05)
EECS 122: Introduction to Computer Networks Packet Scheduling and QoS
DetNet Bounded Latency-02
Introduction to Traffic Shaping
DetNet Bounded Latency-04
Fair Queueing.
DetNet Bounded Latency-01
کنترل جریان امیدرضا معروضی.
Presentation transcript:

A Short Course on Network Calculus Jean-Yves Le Boudec Patrick Thiran ICA, EPFL CH-1015 Ecublens leboudec@epfl.ch http://icawww.epfl.ch

The Network Calculus Book available on-line (free download) from Le Boudec’s or Thiran’s home page or ica1www.epfl.ch/PS_files/NetCal.htm this presentation : based on chapters 1, 5 and 6 of the online version

Contents 1. What is “Network Calculus” ? 2. Preliminary Concepts Sections 1.2, 1.3, 1.4.1 3. Another linear system theory: Min-Plus Section 3.1 4. The composition theorem Section 1.4.2 5. Optimal Shaping Section 1.5 6. Optimal Smoothing Reference [54] Le Boudec Verscheure 2000 http://lcawww.epfl.ch/Publications/LeBoudec/LeBoudecV00.pdf 7. Diff-Serv Bounds Section 2.4.2

1. What is Network Calculus ? Deterministic analysis of queuing / flow systems arising in communication networks Abstraction of schedulers uses min, max as binary operators and integrals (min-plus. max-plus algebra)

A simple example X R(t) CBR trunk bit rate c assume R(t) = sum of arrived traffic in [0, t] is known required buffer for a bit rate c is sup s  t {R(t) - R(s) - c (t-s)}

2. Preliminary Concepts Arrival and Service Curves Internet integrated services use the concepts of arrival curve and service curves

Arrival Curves Arrival curve  R(t) -R(s)  (t-s) Examples: leaky bucket (u) = ru+b standard arrival curve in the Internet (u) = min (pu+M, ru+b) bits slope r b slope m M time

Arrival Curves can be assumed sub-additive Theorem: can be replaced by a sub-additive function sub-additive: (s+t)  (s) + (t) concave => subadditive

Service Curve System S offers a service curve  to a flow iff for all t there exists some s such that R R*(t) R(s) R* s t

The constant rate server has service curve b(t)=ct buffer s t Proof: take s = beginning of busy period: R*(t) – R*(s) = c (t-s) R*(t) – R(s) = c (t-s)

The guaranteed-delay node has service curve dT seconds  T R R* 0 T T (t) Function T t

The standard model for an Internet router rate-latency service curve bits R T seconds

Tight Bounds on delay and backlog If flow has arrival curve  and node offers service curve  then backlog  sup ((s) -(s)) delay  h(, )  h(, ) backlog 

Example T h(, ) x b r R delay bound: b/R + T backlog bound: b + rT

3. Another linear system theory: Min-Plus Standard algebra: R, +,  a (b + c) =  (a  b) + (a  c) Min-Plus algebra: R, min, + a (b  c) =  (a b) (a + c)

Min-plus convolution Standard convolution: Min-plus convolution f  g (t) = infu { f(t-u) + g(u) } t f(t) g(t) (f  g)(t)

Examples of Min-Plus convolution f  T (t) = f (t-T) convex piecewise linear curves, put segments end to end with increasing slope r1 r2 s1 s2 u1  = t1 r2 r1 u1 + t1 s1 u1

4. We can express arrival and service curves with min-plus Arrival Curve property means R  R  Service Curve guarantee means R*  R 

The composition theorem Theorem: the concatenation of two network elements each offering service curve i offers the service curve 1  2   

Example tandem of routers R1 R2 T2  = T1 R1 T2 T1+T2

Pay Bursts Only Once D1 +D2  (2b + RT1)/ R + T1 + T2  D1 D2   D1 +D2  (2b + RT1)/ R + T1 + T2 D   D  b /R + T1 + T2 end to end delay bound is less

5. Linear Characterization of Shapers fresh traffic shaper    R R* Definition: shaper forces output to be constrained by  storesdata in a buffer if needed Theorem Output of shaper is R* = R 

Proof of Shaper Theorem is a typical Min-Plus result R*() is the maximum function x() such that (1) x  x  (2) x  R Solution: x0 = R xi = xi-1  R* is given by R* = inf {x0, x1, ..., xi, ...} Here:   =  xi = R  for all i  1 R* = R 

Application: Re-shaping does not increase worst-case delay shaper   fresh traffic constrained by    Re-shaping is for free: Proof : h(, 1 2 ) = h( 12 )= h(12 )

Shaper Keeps Arrival Constraints input traffic constrained by  R R* The output of the shaper is still constrained by  Proof R* = R  (R R R* 

6. Optimal Smoothing with pre-fecthing Video server Video display Network Smoother R(t) R’(t)  R*(t) R(t-D) ß(t) s smoother is a scheduler which produces a s-smooth output may look-ahead Q: given signal R(t), s and b what is the minimum playback delay D ?

System Equations (1) R’ is s-smooth (2) (R’(t)  R(t-D) Network Smoother ß(t) s Video display server R(t) (1) R’ is s-smooth (2) (R’(t)  R(t-D) R’(t) = 0 for t  0 Define min-plus deconvolution (a Ø b)(t) = sups 0 [a(s+t)-b(s)] x  y   <-> x Ø   y

A max-plus model (1) R’  R’ Ø s (2) R’  (R Ø  )(t-D) Network Smoother ß(t) s Video display server R(t) (1) R’  R’ Ø s (2) R’  (R Ø  )(t-D) this is a max-plus problem, with minimum solution x* = inf {x0, x1, ..., xi, ...} x0 (t) = (R Ø  )(t-D) xi = xi-1 Ø s thus R’ = (R Ø  ) Ø s (t-D) = R Ø (  s) (t-D)

Example s  b(t) R  (s  b) R(t) minimum value of D 5 * 106 4 3 2 1 -50 0 50 100 150 200 250 300 350 400 450 Frame # 5 4 3 2 1 * 106 R  (s  b) R(t) minimum value of D

Minimum Playback Delay D must satisfy : R Ø (  s) (-D)  0 this is equivalent to D  h(R,   s)

Back to our example D=h(R,s  b) s  b(t) R(t) 5 * 106 4 3 2 1 -50 0 50 100 150 200 250 300 350 400 450 Frame # 5 4 3 2 1 * 106 s  b(t) D=h(R,s  b)

R(t) D = 435 ms (s  b)(t) D = 102 ms (s  b)(t) 100 200 300 400 2000 4000 6000 8000 10000 R(t) 10 20 30 40 50 60 70 (s  b)(t) D = 435 ms 100 200 300 400 2000 4000 6000 8000 10000 10 20 30 40 50 60 70 (s  b)(t) D = 102 ms Ce théorème est le pendant du théorème de capacité

Other examples Bounds for Diff-serv (chapter 2) Packet Scale Rate Guarantee (chapter 7) used in the definition of EF (infocom 2001)

7. Diff-Serv Bounds Problem Definition Consider a network implementing aggregate scheduling For example: Expedited Forwarding (EF) Problem: find a bound for the end-to-end delay variation that is valid for any network topology has closed form does not require per flow information

We assume aggregate scheduling and leaky bucket constraint microflows r5, s5 r4, s4 r6, s6 r1, s1 r1, e1 r2, e2 r2, s2 r3, s3 r3, e3 r4, e4 microflows constrained by leaky buckets (ri, si) the aggregate receives a guaranteed service, with service curve

State of the art Utilization factor n = maxl (S f rf / rl) Even if network is subcritical (n <1), we don’t know: good bounds for a general topology if network is stable M. Andrews presents an example of a network which is unstable for n = 1 and claims it is also true for some n < 1

Our main result is a delay bound valid for small utilization factors A better bound exists when peak rates Cm are known

Examples (h=10 hops) D Cm not known Cm = 2 r 100 ms 0 ms a 0.111 0.200 Cm not known ncri= 1 / (h-1) Cm = 2C ncri= 2 / h

Derivation of the bound Assume nodes are GR (orFIFO-per aggregate rate latency service curve elements) 1) Assume delay bound hD on low delay traffic (EF) exists, where h = max number of hops, D = max delay bound per node 2) An arrival curve of aggregate traffic at node i i(t) = m  i (rmt + (h-1)rmD + sm) = iRit + (h-1) iRiD + iRi ti where i = (m  i rm )/Ri and ti = (m  i sm )/ (m  i rm ) 3) Compute horizontal distance between i(t) and bi(t): Di= ei + (h-1) iD + iti 4) Deduce D <= (e + t)/(1 – (h-1)) where e = maxi ei ,  = maxi i and t = maxi ti 5) Show that finite bound exists at any time t, and let t ->  iRi Di (h-1) iRiD + iRi ti Ri Ti

Is the bound tight ? No Consider only ncri Example: Unidirectional ring with n nodes n flows, each of them going through n hops ncri = 1 [Tassiulas96]

Is the bound tight ? 1. No 2. Yes However, the explosion may always occur at the point predicted by the bound More precisely, if n > 1 /(h-1), we can always construct a network where the worst case delay can be arbitrarily large

The elements in our toy network internal node one internal source many transit sources h -1 internal nodes (h -1) kh inputs 1 data source 1 output data sinks building block If transit sources are able to send b packets back to back, then we can arrange the internal source to output a burst of b+1 packets

The output of level J-1 building blocks is a transit source for level J building blocks b packets back to back b+1 packets back to back

A network where a > acri with arbitrarily large delay level J - 2 level J-1 level J The worst-case delay at level J is at least Jt, with t depending only on a and h

Conclusion Network Calculus is a set of tools and theories for the deterministic analysis of communication networks Application of min-plus algebra Explains and proves delay and backlog properties in networks Book and slides available online at Le Boudec’s or Thiran’s home page