1
1
Smith College, CSC 249 March 6, 2018
Overview
q Routing Algorithms
v Link-state – From last week v Distance-vector – TODAY
2
Overview q Routing Algorithms v Link-state From last week v - - PDF document
Smith College, CSC 249 March 6, 2018 1 Overview q Routing Algorithms v Link-state From last week v Distance-vector TODAY 2 1 Overview of Routing so far v Routing algorithms v Find the best path through a network v Create
1
2
3
4
v
6
2 2 1 3 1 1 2 5 3 5
7
v A row for each possible destination v A column for each directly-attached neighbor
Z
8
7 8 1 2 1 2
E cost to destination via d e s t i n a t i
D w
D w
B w
loop! loop!
9
E cost to destination via d e s t i n a t i
Outgoing link to use, cost d e s t i n a t i
10
v An estimate of the cost of the least-cost path from
v è A vector of least costs from itself to all routers
11
1 2 7
D (Y,Z)
X
c(X,Z) + min {D (Y,w)}
w
= = 7+1 = 8
Z
D (Z,Y)
X
c(X,Y) + min {D (Z,w)}
w
= = 2+1 = 3
Y
12
1 2 7
13
14
15
16
17
18
v Assignment of IP addresses v NAT, IPv6 …