47
Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

  • View
    212

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Router Level Flow Control in Data Networks

Stephan Bohacek

University of Southern California

Page 2: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

• introduction• 1-hop controllers

– system description

– stability

– blocking

• 2-hop controllers– system description

– classical design methods (intuition)• hop over

• back pressure

• forward pressure

• time constant

– modern design methods• LQ

• L1

• distributed parameter

– stability• future work and conclusions

Outline

Page 3: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Objective: To avoid transmission of packets that will be dropped (best to drop packets at the entry point of the network).

For very high speed networks it might be better to use hop-by-hop flow control instead of end-to-end flow control.

Method: Control the router sending rates to ease and regulate network congestion.

Problem: Sending a packet that will be dropped is inefficient.

Page 4: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

jijiji

ik

ikikj

jijii

qFqFrr

urrq

21,,

,,,,

otherwise

router to connects router if

0

1,

jiji

Queue dynamics

Link rate dynamics

one hop controller

pressure back applies

queue empties Parameters Control

2

1

F

F

Output - Inputiu

ijji ,, Let iqi router in size queue -

jir ji to router from rate ontransmissi - ,

Page 5: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

CAACAC

BAABAB

AACABCABAA

qFqFrr

qFqFrr

urrrrq

21

21

Router B

one hop controller

CAr

ACr

ABr

Cq

Aq

BqAq

Au

BAr

Router C

Router A

Page 6: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

sqFsqFs

sr

susrsrsq

jiji

kikik

jjijii

21,

,,,,

1

susqNFFs

ssq

12

1

ji

jiN

kki

ji

ji for

for

,

,

,

zero to sum columnsand rows

stable is from Mapping yu

stability of one hop controller

Page 7: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Blocking

Slow linkCongested router

A

B

C

D

E

• The data leaving A is destined for C.• The data leaving B is destined for D.• Link E-D is slow, so the queue in E fills.• Back pressure slows down both links A-E and B-E.• However, the link from E-C is high speed, hence the link A-E is slowed needlessly.

Page 8: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

j. to travels then that i to h router from

travels that data the of part the is jih ,,

1,, j

jih Hence

two hop controller

BA

C

D

BAr ,

BACBA r ,,,

BADBA r ,,,

(queues in B are empty)

Page 9: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

hihihjih

kkjkjkji

jijiji

hihjihjiji

tqFtqFt

tqFtqFt

tqFtqFtr

trttrtq

,6,5,,

,4,3,,

,2,1,

,,,,,

Queue Dynamics

Rate Controller

parameters Control - 654321 ,,,,, FFFFFF

two hop controller

How to set control parameters?

intuition vs. optimizationclassical vs. modern

Page 10: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

CongestedRouter

Forward Pressure

Data

Control

Back Pressure 43 ,FF 65 ,FF

Page 11: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

large - 1F As queue fills, out going data rates rapidly increase

small - 1F As queue fills, out going datarates slowly increase

jiji qr F ,1,

h

ihjihjiji rrq ,,,,,

1F of effect The

.1 F routers typical In

That is, the router sends data at the maximum rate whenever the queue is not empty.

Page 12: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 200 400 600 800 1000 12000

0.1

0.2

queu

e si

ze

0 200 400 600 800 1000 12000

1

2

3

rate

s

time

A B C

Small 1F

Page 13: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 200 400 600 800 1000 12000

0.05

0.1

queu

e si

ze

0 200 400 600 800 1000 12000

2

4

rate

s

time

A B C

Large 1F

Page 14: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

k

kjkjkjiji tqFtqFttr ,4,3,,,

Back Pressure

A B C D

large 43 ,FF

• If queue C-D fills• Rate B-C slows• Queue B-C fills• Rate A-C slows• Queue A-C fills

Page 15: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

constant input

Back Pressure

Page 16: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

constant input

input

input

Back Pressure

Page 17: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 1000 2000 3000 4000 5000 60000

0.2

0.4

queu

e si

ze

0 1000 2000 3000 4000 5000 60000

1

2

rate

s

time

Without Back Pressure

Page 18: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 1000 2000 3000 4000 5000 60000

0.2

0.4

queu

e si

ze

0 1000 2000 3000 4000 5000 60000

1

2

rate

s

time

With Back Pressure

Page 19: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

hihihjih

kkjkjkji

jijiji

qFqF

qFqF

qFqFr

,6,5,,

,4,3,,

,2,1,

Forward Pressure

Forward Pressure

Page 20: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

1. inputdata

2. queuefills

3. dataflows

4. queuefills

5. data flows rapidly- queue B-C is filling- queue A-C is filling

A B C

Forward Pressure

h

ihihjihji qFqFr ,6,5,,,

Page 21: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 200 400 600 8000

0.05

0.1

0.15

0.2

queu

e si

ze

0 200 400 600 8000

1

2

3

rate

s

time

Without forward pressure

Page 22: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 200 400 600 8000

0.05

0.1

0.15

0.2

queu

e si

ze

0 200 400 600 8000

1

2

3

rate

s

time

With forward pressure

Page 23: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

00

Input

Input

Input

Input

Input

Output

Output

Output

Output

Output

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

21 22 23 24 25

Blocking

Page 24: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0

0

Input

Input

Input

Input

Input

Output

Output

Output

Output

Output

1 2 3 4 5

6 7 8 9 10

11 12 13 14 15

16 17 18 19 20

2122 23 24 25

Blocking

Page 25: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0

0

Input

Input

Input

Input

Input

Output

Output

Output

Output

Output

1 2 3 4 5

6 7 8 9 10

11 12 1314 15

1617

18 19 20

2122 23 24 25

Blocking

Page 26: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0

0

Input

Input

Input

Input

Input

Output

Output

Output

Output

Output

1 2 3 4 5

6 7 8 9 10

11 12 1314 15

1617

18 19 20

2122 23 24 25

Blocking

Page 27: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

modern control methods(with truncation)

• optimal control with quadratic cost

• minimize peak queue/rate size

• distributed parameter

Page 28: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

linear quadratic

0

22min tutqu

Quadratic Cost

uIr

qA

r

q

0

01 IXXBBXAXA TT

Let

022 XRX NLNL , with

control minimizing

r

qXItu 0

1

NLNLRA 22

sizes queue of vector - NLRq

rates data of vector - NLRr

input control - NLRu

Page 29: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Show plot of gains

Note: gains decay, hence truncationLQ doesn’t make much use of back pressurelack of back pressure can be seen by the smallgains from 26-27, 26-19 and 26-33

Page 30: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0 1 2 3 4 5 6 7 80

1

2

3

4

5

6

7

8 gains for hop 25 to 26

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31 32 33 34 35

36 37 38 39 40 41 42

43 44 45 46 47 48 49

queu

e ga

ins

0 1 2 3 4 5 6 7 80

1

2

3

4

5

6

7

8

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31 32 33 34 35

36 37 38 39 40 41 42

43 44 45 46 47 48 49

rate

gai

ns 25,2425,2426,2526,2525,2425,2426,2526,2526,25 rrqqr

Page 31: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

L1 Control methods

tv

tq

t

t

u max

maxmin

BvuIr

qA

r

q

0

data entering v

Objective: Minimize peakqueue size

Page 32: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0

00

IB

BZIVZAVI

AZ

T

TT

0

ZVZ

V

ZI

T

VZ ,

min

subject to

L1 Control methods

Page 33: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

00

gains for hop 2 to 5

1 2 3

4 5 6

7 8 9

queu

e ga

ins

00

1 2 3

4 5 6

7 8 9

rate

gai

ns 3,23,22,12,13,23,22,12,15,2 rrqqr

Page 34: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

00

gains for hop 5 to 2

1 2 3

4 5 6

7 8 9

queu

e ga

ins

00

1 2 3

4 5 6

7 8 9

rate

gai

ns

3,23,22,12,13,23,22,12,12,5 rrqqr

Page 35: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Note on previous slide, good back pressure, some forwardpressure. But no back pressure from 8-5. Why? These optimization procedures don’t always give intuitive answers.Is it that the optimization procedure is better, or doing somethingstupid.

Page 36: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Distributed Parameter Methods

1,1,

1,1,

,,,

,1,,,

65

43

21

itqKitqK

itqKitqK

itqKitqKitr

ituitritritq

Simple 1-D spatially invariant system

1,

1,

itr

itq itr

itq

,

, 1,

1,

itr

itq

I/OData Flow

ControlInformation

1, itv 1, itv

Page 37: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

ituitritritq oo ,,,,

itqKitqK

itqKitqK

itqKitqKitr ooo

,,

,,

,,,

65

43

21

itritr

itqitq

o

o

,1,

,1,

itritr

itqitq

o

o

,1,

,1,

Temporal Dynamics

(only depends on local variables)

Spatial dynamics

Distributed Parameter Methods

Page 38: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

0

0

0

0

,

,

0

0

0

0

,

,

,

,

,

,

,

,

,

,

,

,

,

,

22

1

itvK

itv

ituK

itu

itr

itq

itr

itq

itr

itq

itr

itq

itr

itq

itr

itq

Iz

zI

sIo

o

o

o

A

shift spatialbackward -

shift spatialforward -

derivative time -

1z

z

s

Distributed Parameter Methods

Page 39: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

- Compact description of large system- Controllers will depend on local variables only

Requires systems be homogeneous. Extending it to nonhomogeneous systems may lead to computational difficulties.

advantages

disadvantages -

Distributed Parameter Methods

Page 40: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

kji ,, varying of face the in Stability

r

qA

r

q

0Re Aseigenvalue

stability

kji

kji

totravled also will which to router

fromtravled that data of portion the is ,,

1,, k

kji k, some to goes eventually

j to i from travels that data all Since

Page 41: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

kji ,, varying of face the in Stability

Page 42: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Note that there still are some slow eigenvalues.These are from alphas that result in data taking along time to get out of the network. That is, nonsensical alphas. It seems that making reasonable alphas is difficult

The previous network is 3 x 3, with K4 and K6 = 0

Page 43: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

1

2 3

4

1,1,1 1,4,24,2,12,1,1 in

Has a pole at zero, integrator

sense. make not do Some P

1in

2in

4in

3in

kji ,, varying of face the in Stability

Page 44: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

1

2 3

4

1

2 3

4

kjia ,,

Take the “sum” of possible input-output pairs.

These sums lead to sensible kjia ,,

Page 45: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

kji ,, sensible for sEigenvalue

Page 46: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

r

qA

r

q

kji ,, varying of face the in Stability

IXAXA T

NLNLRX 22 0X

?

stability

Page 47: Router Level Flow Control in Data Networks Stephan Bohacek University of Southern California

Future Directions

• characterization of alphas• simulation with TCP and CBR data• rigorous controller synthesis • rigorous stability and performance analysis

• investigation of differences between TCP and CBR traffic in such a network