Professional Documents
Culture Documents
Flow in Packet Networks: Professor Joseph Hui
Flow in Packet Networks: Professor Joseph Hui
Bellmans Equation
Dn = min j Dj + dnj
40
40 C D
63
Notation
xl: Flow on link l (Packets/second) Delay on link l (second/packet) 10X+10 Delay linear in flow (D(x)=10x+10 on red links) (D(x)=x+60 on green links)
10X+10
C
D
D(xl):
E.g.
X+60 A
Problem:
How do we route traffic flows?
X+60
10X+10 C
x1
D
x2
X+60
B
X+60=63
x1
D
10X+10 =40
x2
X+60=63
So Path 2 is now shorter and flow shifts from to path 2! (Solution is a stable equilibrium!)
Dp Dp
if xp = 0, xp > 0
Zero flow paths have equal or larger delay than non-zero flow path for similar reason
X+60
10X+10 C
x1
D
Objective: Minimize total delay: 10X+10 min x1x2 D(x1,x2)=x1D1 +x2D2 subject to x 1 + x 2 = 6 ; x1 , x 2 0
x2
X+60
Optimization Problem Minimize total delay: min x1x2 D(x1,x2)= x1D1 +x2D2 subject to x 1 + x 2 = 6 ; x1 , x 2 0 Socially Optimal Solution: Symmetry again!
x1 = x 2 = 3 Solution is stable also!
Zero flow paths have equal or larger differential delay than non-zero flow path for similar reason
Is Social Optimality
always the same as Individual Optimality?
Objective: Route x1 + x2 + x3 = 6 from A to B through paths: ACB with flow x1 ADB with flow x2 10X+10 ACDB with flow x3
10X+10 C
x1 X+1 0 x2
x3
D
X+60
D1 = D2= D3 if x1 , x2 , x3 > 0
Lets make a guess! x1 = x2 = x 3 = 2 Path delays for ACB: D1=50+62=112 10X+10 ADB: D2=62+50=112 ACDB: D3=50+12+50=112
X+60
10X+10 C
x1 X+1 0 x2
x3
D
X+60
Socially optimal solution: x1 = x2 = 3; x3 = 0 Why? Check conditions: x1 = x2 > 0 and x3 = 0 implies D/x1 = D/x2
Socialist Solution
B
X+60
10X+10 C
x1 X+1 0 x2
x3
D
D/x3 D/x1
10X+10
X+60
B
X+60=63
x1
D
10X+10 =40
10X+10=40
x2
X+60=63
Selfish Solution is stable and bad! Though delay = 113, no incentive B to shift from x1 = x 2 = x 3 = 2 X+60 But Socialism is good but not stable! Socially optimal solution: 10X+10 x1 = x2 = 3; x3 = 0 C x1 x3 Consider the delays for: D X+1 0 x2 ACB: D1 = 103 10X+10 ADB: D2 = 103 ACDB D3 = 90<103! X+60 If packets (or men) are free, A those on ACB or ADB would flee to route ACDB!
The invisible hand of God may not work! Freedom to choose gives us tragedy of the commons!
Maximizing total or social welfare is not fair! Some animals are more equal than other animals!
Government can be solution to the problem! Tax individuals for the congestion they cause!