




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































8 th^ edition Jim Kurose, Keith Ross Pearson, 2020
Network layer control plane: our goals ▪understand principles behind network control plane:
▪ instantiation, implementation in the Internet:
Two approaches to structuring network control plane:
Network-layer functions Network Layer: 5- 4
data plane control plane
Per-router control plane Individual routing algorithm components in each and every router interact in the control plane Routing Algorithm data plane control plane 1 2 0111 values in arriving packet header 3 Network Layer: 5- 5
Per-router control plane SDN control plane
Network layer: “control plane” roadmap ▪ network management, configuration
Graph abstraction: link costs Network Layer: 5- 10 u x y v w z 2 2 1 3 1 1 2 5 3 5
ca,b: cost of direct link connecting a and b e.g., c w,z = 5, c u,z
cost defined by network operator: could always be 1, or inversely related to bandwidth, or inversely related to congestion
E: set of links ={ ( u,v), (u,x), (v,x), (v,w), (x,w), (x,y), (w,y), (w,z), (y,z ) }
Routing algorithm classification Network Layer: 5- 11 global or decentralized information?
topology, link cost info
computation, exchange of info with neighbors
more quickly
slowly over time
Dijkstra’s link-state routing algorithm Network Layer: 5- 13
x,y
node x to y ; = ∞ if not direct neighbors
of least-cost-path from source to destination v
path from source to v
cost-path definitively known notation
Dijkstra’s link-state routing algorithm Network Layer: 5- 14 1 Initialization: 2 N' = { u } /* compute least cost path from u to all other nodes / 3 for all nodes v 4 if v adjacent to u / u initially knows direct-path-cost only to direct neighbors / 5 then D(v) = c u,v / but may not be minimum cost! */ 6 else D(v) = ∞ 7 8 Loop 9 10 11 12 13 14 15 until all nodes in N' find w not in N' such that D(w) is a minimum add w to N' update D(v) for all v adjacent to w and not in N' : D(v) = min ( D(v), D(w) + c w,v
/* new least-path-cost to v is either old least-cost-path to v or known least-cost-path to w plus direct-cost from w to v */
Dijkstra’s algorithm: an example Step 0 1 2 3 4 5 N' D(v),p(v)^ D(w),p(w) D(x),p(x)^ D(y),p(y)^ D(z),p(z) u 2,u 5,u 1,u ∞ ∞ 8 Loop 9 10 find a not in N' such that D(a) is a minimum add a to N' ux
u x y v w z 2 2 1 3 1 1 2 5 3 5
Dijkstra’s algorithm: an example Step 0 1 2 3 4 5 N' D(v),p(v)^ D(w),p(w) D(x),p(x)^ D(y),p(y)^ D(z),p(z) u 2,u 5,u 1,u ∞ ∞ 8 Loop 9 10 11 find a not in N' such that D(a) is a minimum add a to N' ux
u x y v w z 2 2 1 3 1 1 2 5 3 5 update D(b) for all b adjacent to a and not in N' : D(b) = min ( D(b), D(a) + ca,b ) 2,u 4,x 2,x ∞ D(v) = min ( D(v), D(x) + cx,v ) = min(2, 1+2) = 2 D(w) = min ( D(w), D(x) + cx,w ) = min (5, 1+3) = 4 D(y) = min ( D(y), D(x) + cx,y ) = min(inf,1+1) = 2
Dijkstra’s algorithm: an example Step 0 1 2 3 4 5 N' D(v),p(v)^ D(w),p(w) D(x),p(x)^ D(y),p(y)^ D(z),p(z) u 2,u 5,u 1,u ∞ ∞ 8 Loop 9 10 11 find a not in N' such that D(a) is a minimum add a to N' ux
u x y v w z 2 2 1 3 1 1 2 5 3 5 2,u 4,x 2,x ∞ uxy update D(b) for all b adjacent to a and not in N' : D(b) = min ( D(b), D(a) + ca,b ) 2,u 3,y^ 4,y D(w) = min ( D(w), D(y) + cy,w ) = min (4, 2+1) = 3 D(z) = min ( D(z), D(y) + cy,z ) = min(inf,2+2) = 4
Dijkstra’s algorithm: an example Step 0 1 2 3 4 5 N' D(v),p(v)^ D(w),p(w) D(x),p(x)^ D(y),p(y)^ D(z),p(z) u 2,u 5,u 1,u ∞ ∞ 8 Loop 9 10 find a not in N' such that D(a) is a minimum add a to N' ux
u x y v w z 2 2 1 3 1 1 2 5 3 5 2,u 4,x 2,x ∞ uxy (^) 2,u 3,y 4,y uxyv