BaltcIT educational seminars

L13. Shortest path routing
D. Moltchanov, TUT, Spring 2014
Outline
Network dimensioning problems
Delay optimization
Shortest-path routing problems
Fair networks
Topological design
Restoration design
NDP: delay optimization
Packet delay on a single link
Example: let
Average packet size: E[ P]  1 Kbyte
Link rate: C  1.54 Mbps
The service rate of a link (how many packets per second)
C
1.54e6


 190 pps
E[ P] 8000
Now consider single node performance
Mean delay in M/M/1 queue as we know is
1
1
D ( ,  ) 

   1 
For arrival rate   100 packets per second (pps) delay is
D(100,190) 
1
100
 11.11ms.,  
 0.555
190  100
190
Packet delay on a single link
Important observations
Delay bound 15ms: utilization should be less than 64%!
Delay is highly non-linear
Utilization determine delay
We may work with just link utilization not delays!
Packet delay on a single link
11 ms is really small! Should we care?
First reason: a lot of hops!
16*11 = 176ms. + propagation delay (D/C) + protocols
Second reason: this is just queuing delay…
Other delay components are unavoidable, e.g. propagation delay
Packet delay on a single link
All these hypotheses
Self-similar traffic
Long-range depends traffic
Non-stationary traffic
Pareto distribution of transfer sizes
Heavy-tailed distributions of transfer sizes
…
Are having one thing in-common: high variability
High variability
Traffic no longer smoothes our like Poisson traffic
Statistical multiplexing gains are not that huge
Poisson is still a good approximation
Packet delay on a single link
The following are really important
M/M/1 is just an approximation
Often M/M/1 is too optimistic (mean=variance for Poisson traffic)
Keep utilization less than 50% (not 64%) to get within 15ms. delay
NDP: delay minimization
Uncapacitated
Pd
x
p 1
E
1
minimize F  
e1 ce  ye
subject to
D
dp
 hd , d  1, 2,
Pd

d 1 p 1
,D
x  ye , e  1, 2,
edp dp
,E
y  0, x  0
Capacitated
Pd
x
dp
E
minimize
1
F 
e1 ce  ye
subject to
d 1
D Pd
 hd , d  1, 2,

d 1 p 1
,D
x  ce , e  1, 2,
edp dp
,E
x0
Solution: convex solvers, e.g. Mathlab, CPLEX, Maple, etc.
NDP: getting rid of convexity
Piecewise linear approximation
f ( z )  f k ( x)  ak z  bk , sk 1  z  sk , k  1,2,
,k
Shortest path routing
SPR: shortest path routing
Shortest path routing (SPR) is what IGP do
Intermediate system to intermediate system (IS-IS)
Open shortest path first (OSPF)
Do not confuse with shortest path first allocation of NDP
Shortest path routing
For each demand d its volume hd is realized over SP
SP is with respect to some link weight system w  ( w1 , w2 ,
Not with respect to the minimum number of hops!
Values wi , i  1, 2, , E are sometimes called “link costs”
, wE )
Why the difference?
Routing cost is not the same as routing over SPs
You’ll see it in what follows
Major one: in SPR rules are enforced by SPR protocols (e.g. OSPF)
SPR: four nodes
Let link weights in our example to be
w  (1,3,1, 2, 4)
then the following path are will be used for entire demands
d  1: P13  (1,3, 4) weight  4 x13  15
d  2 : P21  (1)
weight  1
x21  10
d  3: P32  (3, 4)
weight  3
x32  10
while the rest of xij  0
unique as SPs are unique
happens to be non-bifurcated
This is what OSPF will do!
Solution is denoted as x ( w)
w2=3
w4=2
w1=1
w3=1
To highlight dependence on w
w5=4
SPR: four nodes single path SPR
Are there any problems with solution,
x13  15, x21  10, x32  10
P13  (1,3,4), P21  (1), P32  (3,4)
Recall the link rates we used: c  (5,10,10,5,30)
Link load vector
y ( w)  (25,0,35,35,0)
It does not fit the network at all 
What if you’ll run OSPF?
w2=3
Trivial solution: make
c  y ( w)  (25,0,35,35,0)
not always possible…
This is single path SPR problem
c2=10
w4=2
c4=5
c5=30
w1=1
c1=5
w3=1
c3=10
w5=4
SPR: four nodes single path SPR
Single path SPA allocation problem
Demand constraints:
Pd
x
dp
d 1
D Pd
Capacity constraints:

d 1 p 1
Non-negativity:
 hd , d  1, 2,
,D
x  ce , e  1, 2,
edp dp
,E
x0
Very complex problem
Non-bifurcated single path solution may not exist
Hard to get even when exists
Also: the weight system inducing the solution may not exist!!!
SPR: special problem
Consider the following problem
Demand d = 1 between nodes 1 and 7
Demand d = 2 between nodes 2 and 6
Demands volumes h1  h2  1
Link capacities are all 1, ce  1, e
Analyzing the problem
Two path for each demand
P11  (1,3,5,7), P12  (1,3,4,5,7)
P21  (2,3, 4,5,6), P22  (2,3,5,6)
Solution is evident: allocate
x11  1, x12  0, x21  1, x22  0
Is there a link weight system w inducing it? No!
Not possible for single shortest path!
What is about splitting flows?
SPR: four nodes ECMP rule
Let’s get back to four nodes example
Assume the link weight system is w  (1,1,1,1,1)
Shortest path with respect to the number of hops now!
Very natural for networks
Consider demand d = 1
Two shortest paths!
P11  (2, 4), P12  (1,5)
Which path should OSPF use?
w2=1
ECMP (Equal Cost Multipath Rule)
Split between shortest path
Half to P11  (2, 4)
Half to P12  (1,5)
c2=10
w4=1
c4=5
c5=30
w1=1
c1=5
w3=1
c3=10
w5=1
SPR: ECMP rule
Consider the problem on the right
Demand d = 1 from node 6 to 7, h1  1
Link weight system: we  1, e
Three shortest path from 6 to 7
P11  (6,1,3,7), P12  (6,1, 4,7), P13  (6, 2,5,7)
What is the allocation according to OSPF?
x11  0.25, x12  0.25, x13  0.5
What is about d = 2, from 7 to 6, h2  1 ?
Same three paths
Allocation
1
1
1
x21  , x22  , x23 
3
3
3
Think why they are different…
SPR: special problem
Analyzing the problem
Two path for each demand
P11  (1,3,5,7), P12  (1,3,4,5,7)
P21  (2,3, 4,5,6), P22  (2,3,5,6)
2
Solution is evident: allocate
x11  1, x12  0, x21  1, x22  0
No weight system w inducing single path!
2
2
ECMP rule allocation?
Weight 1 to links 3-4, 4-5
Weight 2 to other links
Costs become 6 for all paths
ECMP of OSPF can be enforced
2
1
1
2
SPR: general problems
Forward problem:
Given a set of link weights
Find the shortest path(s) from one node to another
Classic graph theory problem you already studied
Dijkstra and Bellman-Ford algorithms
Algorithms for all shortest path (for ECMP)
Backward problem
For given link capacities and demand volumes
Find a link weight system
Such that flow allocation is feasible
Setting up link weights
The latter is what we are going to study