1 Network Calculus Jean-Yves Le Boudec, lecturer Patrick Thiran Pisa 2003.

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

Shi Bai, Weiyi Zhang, Guoliang Xue, Jian Tang, and Chonggang Wang University of Minnesota, AT&T Lab, Arizona State University, Syracuse University, NEC.
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.
Engineering Internet QoS
Abhay.K.Parekh and Robert G.Gallager Laboratory for Information and Decision Systems Massachusetts Institute of Technology IEEE INFOCOM 1992.
Berlin Network Calculus & Related Models with Applications by George I. Stassinopoulos Prof. NTUA
Queuing Theory For Dummies Jean-Yves Le Boudec 1.
Courtesy: Nick McKeown, Stanford 1 Intro to Quality of Service Tahir Azim.
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.
Priority Scheduling and Buffer Management for ATM Traffic Shaping Authors: Todd Lizambri, Fernando Duran and Shukri Wakid Present: Hongming Wu.
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”,
Queuing Theory For Dummies
Worst-case Fair Weighted Fair Queueing (WF²Q) by Jon C.R. Bennett & Hui Zhang Presented by Vitali Greenberg.
Supporting Stored Video: Reducing Rate Variability and End-toEnd Resource Requirements through Optimal Smoothing By James D. salehi, Zhi-Li Zhang, James.
15-441: Computer Networking Lecture 18: QoS Thanks to David Anderson and Srini Seshan.
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”,
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Packet Scheduling and QoS Computer Science Division Department of Electrical Engineering and.
Smoothing Variable-Bit-Rate Video in an Internetwork Jennifer Rexford, Member, IEEE, and Don Towsley, Fellow, IEEE IEEE/ACM Transactions on Networking,
1 Worst-Case Equilibria Elias Koutsoupias and Christos Papadimitriou Proceedings of the 16th Annual Symposium on Theoretical Aspects of Computer Science.
Deterministic Network Calculus p.2. DNC arrival results Accumulated arrival functions R(t): traffic recieved in [0,t] Arrival function may be constrained:
Internet QoS Syed Faisal Hasan, PhD (Research Scholar Information Trust Institute) Visiting Lecturer ECE CS/ECE 438: Communication Networks.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
CSc 461/561 CSc 461/561 Multimedia Systems Part C: 3. QoS.
CS144, Stanford University Error in Q3-7. CS144, Stanford University Using longest prefix matching, the IP address will match which entry? a /8.
24-1 Chapter 24. Congestion Control and Quality of Service part Quality of Service 23.6 Techniques to Improve QoS 23.7 Integrated Services 23.8.
Informational Network Traffic Model Based On Fractional Calculus and Constructive Analysis Vladimir Zaborovsky, Technical University, Robotics Institute,
Optimal Energy and Delay Tradeoffs for Multi-User Wireless Downlinks Michael J. Neely University of Southern California
Packet Scheduling From Ion Stoica. 2 Packet Scheduling  Decide when and what packet to send on output link -Usually implemented at output interface 1.
The Reality and Mythology of QoS and H.323
A Generalized Processor Sharing Approach to Flow Control in Integrated Services Networks: The Single-Node Case Abhay K. Parekh, Member, IEEE, and Robert.
QoS Guarantees  introduction  call admission  traffic specification  link-level scheduling  call setup protocol  required reading: text, ,
DaVinci: Dynamically Adaptive Virtual Networks for a Customized Internet Jennifer Rexford Princeton University With Jiayue He, Rui Zhang-Shen, Ying Li,
QOS مظفر بگ محمدی دانشگاه ایلام. 2 Why a New Service Model? Best effort clearly insufficient –Some applications need more assurances from the network.
Bandwidth Estimation TexPoint fonts used in EMF.
1. Performance Guarantees Introduction –by asking sources about flow behavior it is possible to construct networks that could guarantee performance for.
TexPoint fonts used in EMF.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 21 – Case Studies for Multimedia Network Support (Layer 3) Klara Nahrstedt Spring 2009.
Competitive Queue Policies for Differentiated Services Seminar in Packet Networks1 Competitive Queue Policies for Differentiated Services William.
© Jörg Liebeherr, Quality-of-Service Architectures for the Internet Integrated Services (IntServ)
Particle A particle is an object having a non zero mass and the shape of a point (zero size and no internal structure). In various situations we approximate.
1 © Jean-Yves Le Boudec and Patrick Thiran Network calculus : CH-1015 Lausanne Jean-Yves.Leboudec Jean-Yves.
EE 122: Lecture 15 (Quality of Service) Ion Stoica October 25, 2001.
Delays in Packet Networks
Stochastic Optimization for Markov Modulated Networks with Application to Delay Constrained Wireless Scheduling Michael J. Neely University of Southern.
Deterministic Network Calculus. DNC history Queueing Theory, Agner Krarup Erlang, 1909 Queueing Networks, James R. Jackson, 1957 Scheduling Theory, Liu.
Chengzhi Li and Edward W. Knightly Schedulability Criterion and Performance Analysis of Coordinated Schedulers.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Scheduling for QoS Management. Engineering Internet QoS2 Outline  What is Queue Management and Scheduling?  Goals of scheduling  Fairness (Conservation.
2003 컴퓨터 통신 1 Foundation # 컴퓨터 통신 2 Outline A Detailed FTP Example Layering Packet Switching and Circuit Switching Some terms –Data rate, “Bandwidth”
Class 3 Linear System Solution Using the Laplace Transform
Intro to Deterministic Analysis
Intro to Deterministic Analysis
Advanced Computer Networks
CprE 458/558: Real-Time Systems
A Short Course on Network Calculus
Network calculus ( system theory )
© J. Liebeherr, All rights reserved, 2018
Lightweight but Powerful QoS Solution for Embedded Systems
Schedulability Conditions for Scheduling Algorithms
CIS679: Two Planes and Int-Serv Model
Quality-of-Service ECE1545.
ECE 1545 Service Curve Earliest Deadline Due (SCED) or How to construct a scheduler from a service curve.
DetNet Bounded Latency-02
کنترل جریان امیدرضا معروضی.
Presentation transcript:

1 Network Calculus Jean-Yves Le Boudec, lecturer Patrick Thiran Pisa 2003

2 Lecture Plan  Introduction Arrival curves, Service curves, Pay Bursts only Once, IntServ and ATM  Shapers, shapers keep arrival constraints  Packetizers. Fixed Point Theorem and Residuation. GR nodes and schedulers.  Aggregate Multiplexing and Instability. Explicit bounds. Diff-Serv  Optimal Smoothing. Video Playback

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

4 What is Network Calculus ?  Deterministic analysis of queuing / flow systems arising in communication networks  Abstraction of schedulers systems that are not a single queue, Reich’s formula does not apply  Uses min, max for binary operators and integrals (min-plus / max-plus algebra)

5 Examples  Pay Bursts only Once  Re-Shaping is For Free  Minimum Playout Buffer  Diff-Serv delay dimensioning

6 Day 1

7 Arrival and Service Curves  Internet integrated services use the concepts of arrival curve and service curves

8

9

10

11

12

13 Min-plus convolution   Definition (f  g) (t) = inf u { f(t-u) + g(u) } t f(t) g(t) (f  g)(t)

14 Convolution Example 1 (f  g) (t) = ? t T f(t) R K s f(s) t g(t) r t g(t-s) (f  g)(t) tT r K

15 Convolution Example 2 (f  f) (t) = ? tT f(t) R K’ s f(s) t f(t-s) (f  f)(t) t 2T R 2K’ (f  f)(t)

16 Star-shaped, concave, convex functions  f is concave   0  u  1, f (ux + (1-u)y)  uf(x) + (1- u)f(y)  f is convex  -f is concave  f is star-shaped  f(t)/t  f(s)/s  s  t  f is concave  f is star-shaped

17 Examples  r,b is concave time bits b slope r  r,b (t) time bits k u T,  (t) 2k 3k 4k is u T,  star-shaped ? concave ? T-  2T-  3T-  4T- 

18 Examples  T is convex time bits delay T  T (t) bits  R,T is convex time bits latency T  R,T (t) Slope (rate) R

19 Examples time bits T  R,T (t)+K’ R K’ time bits T  R,T (t)+K’’ R K’’ is  R,T + K’ star-shaped ? concave ? is  R,T + K’’ star-shaped ? concave ?

20 Some properties of min-plus convolution   is associative   is commutative  K + (f  g) = (K + f)  g when K is a constant  f   T (t) = f (t-T)  T (t) = 0 for t  T and  0 (t) =  for t > T  Star-shaped (concave) functions passing through the origin:f  g = f  g

21 Example 1 (using rules) t T f(t) R K f = K +  R,T = K +  T  R f  g = (K +  T  R )  r = K + ((  T  R )  r ) = K + (  T  ( R  r )) = K + (  T  ( R  r )) = K + (  T  r ) = K +  r,T t g(t) r g = r concave with g(0) = 0 t T (f  g)(t) r K

22 r1 r2 s1 s2 u1  = t1 Min-Plus convolution rule for convex functions  convex piecewise linear wide-sense increasing, passing by origin: put segments end to end with increasing slope s1 u1 r1 u1 + t1 r2

23 Example: rate latency function  T is convex (delay function)  R,T is convex (rate-latency function) latency T  R,T (t) Slope (rate) R  delay T  T (t)  R (t)=Rt Rate R R is convex (delay function)  we could also use: f   T (t) = f (t-T)

24 We can express arrival curves with min-plus convolution  Arrival Curve property means for all 0  s  t, x(t) -x(s)   (t-s) x(t)  x(s) +  (t-s) for all 0  s  t x(t)  inf u { x(u) +  (t-u) } x  x 

25 Sub-additive functions is  r,b sub-additive ? time bits b slope r  r,b (t) time bits k u T,  (t) 2k 3k 4k is u T,  sub-additive ? T-  2T-  3T-  4T- 

26 Sub-additive closures ? time bits T  R,T (t)+K’ R K’ time bits T  R,T (t)+K’’ R K’’  R,T + K’ is star-shaped ? Sub-additive ?  R,T + K’’ is star-shaped ? Sub-additive ?

27 Examples time bits T  R,T (t)+K’ R K’ time bits T  R,T (t)+K’’ R K’’ 2T 2K’  R,T (t)+K’) (2) 2T  R,T (t)+K’’  R,T (t)+K’

28 Minimum Arrival Curves  RR

29 Day 2

30

31

32

33

34

35 Pay Bursts Only Once  D1D1 D2D2   D   D  b /R + T 1 + T 2 end to end delay bound is less D  b /R + T 1 + T 2 end to end delay bound is less D 1 +D 2  (2b + rT 1 )/ R + T 1 + T 2

36 Application: Intserv (RSVP/IP)  Intserv arrival curve  (t) = min (pt+M, rt+b)  Rate-latency service curve  i (t) = max(0,R i (t-T i )) for node i, with T i = C i /R i +D i where C i, D i are router-specific values  End-to-end service curve is thus  (t) = max(0,R(t-T)) with R = min i R i and T =  i T i =  i (C i /R i +D i )  Flow set-up: advertizement with PATH message from source ( TSPEC (p,M,r,b), computes AD-SPEC (  i C i,  i D i ) along the path) (p,M,r,b) ( )( ) (C 1, D 1 ) (C 1 +C 2, D 1 +D 2 )

37 Application: Intserv (RSVP/IP)  End-to-end delay bound is, if R i = R for all i, ((b-M)/R) max(0,(p-R)/(p-r)) + (M +  i C i )/R +  i D i  Flow set-up: reservation with RESV message where R is computed so that end-to-end delay bound <= delay objective. (p,M,r,b) ( )( ) (C 1, D 1 ) (C 1 +C 2, D 1 +D 2 ) R R R

38 IntServ: Re-Shaper Buffer Dimensioning

39

40

41 Day 3

42

43

44

45

46 A max-plus model  x satisfies: (1) x  x Ø  (2) x  (R Ø  )(t-D)  a max-plus system,, with minimum solution x* = inf {x 0, x 1,..., x i,...} x 0 (t) = (R Ø  (t-D) x i = x i-1 Ø   thus x = (R Ø  )  Ø  (t-D) = R Ø (   ) (t-D)

47 Example R(t)    (t) Frame # * 10 6 R    (    ) minimum value of D

48 Back to our example D=h(R,  )    (t) R(t) Frame # * 10 6

49  t  D = 435 ms  t  D = 102 ms

50 Deconvolution is the time inverse of convolution (1) R (t) in real time bits R(t) R(  ) T bits R(t) R(  ) T (2) S(t) in inverted time (3) Shape with    (4) Invert time again bits R(  ) T R(t) bits R(  ) T S(t) S   R  (  )

51 Compute g  f 1. rotate g

52 Compute g  f 2. shape by f

53 Compute g  f 3. rotate again

54 Shaping Versus Smoothing R(t)  (t) Optimal Smoothing D=0 R(t) Optimal Shaping D > 0 x*(t)x(t) R(t-D)

55

56 Day 4

57

58

59 « Instability of FIFO in Session-Oriented Networks » Matthew Andrews Bell Labs SODA 2000

60 GR and Service Curve do not Give Backlog from Delay Bound D max time bits input R(t) minimum outputoutput backlog delay

61 f(n-1)d(n-1)a(n) f(n)d(n) L(n)/r f(n-1)d(n-1)a(n) f(n)d(n) L(n)/r f(n-1)d(n-1)a(n) f(n)d(n) L(n)/r f(n) = max{a(n), min[d(n-1), f(n-1)]}+ L(n)/r

62 f(n) = max{a(n), f(n-1)]}+ L(n)/r f(n-1)d(n-1)a(n) f(n)d(n) L(n)/r f(n) = max{a(n), min[d(n-1), f(n-1)]}+ L(n)/r f(n-1)d(n-1)a(n) f(n)d(n) L(n)/r Guaranteed Rate Packet Scale Rate Guarantee

63 Delay Bounds with PSRG versus with GR node model  delay 1 MB 0.4 MB 0.1 MB h=10 e = 2 MTU/r r=150 Mb/s C=5R

64 Day 5

65 Loss System  node with service curve  (t) and buffer X  when buffer is full incoming data is discarded  modelled by a virtual controller (not buffered)  fluid model or fixed sized packets  Pb: find loss ratio fresh traffic R(t) buffer X Loss L(t)  R’(t) R*(t)

66 Bound on Loss Ratio  Theorem [Chuang and Cheng] : if R is  -smooth, then L(t)/R(t)  1 - r with r = min(1, inf t  0 [  (t) +X] /  (t))  best bound with these assumptions  proof: R’  (X +  (R’))  h R (R’)  0 where  is the transformation R’ -> R, assumed isotone and usc (« physical assumptions ») R’ is the maximum solution define x(t) = r R(t) x satisfies the system equation: x  (X + x  )  h R (x)  (X +  (x))  h R (x) R’ is the maximum solution => x(t)  R’(t) for all t

67 Stochastic Bounds  network calculus gives deterministic bounds on delay and loss  combine with Hoeffding bounds [1963]: Assume X i are independent and 0  X i  1 E(X 1 +…+ X I ) = s is known then for s < x < I

68 Example: Bound on loss probability  I independent, stationary sources with identical constraints  i served in a network element with super-additive service curve  [Chang, Vojnovic and L, Infocom 2002  where 0 = s 0 b else g(u,v) = 0

69  Step 1: reduction to horizon   Step 2:  Step 3 : Hoeffding to each term

70

71

72

73

74

75