IP Addressing
IP Addressing
10.0.0.4
10.0.0.2
138.76.29.7
10.0.0.3
E = set of links (edges) ={ (u,v), (u,x), (u,w), (v,x), (v,w), (x,w), (x,y), (w,y), (w,z),
(y,z) }
Notation:algorithm
Dijkstra’s
•• net topology,
c(x,y): link from
link cost costsnode
known toy;all=nodes
x to ∞ if not direct neighbors
– accomplished via “link state broadcast”
• D(v): current value of cost of path from source to dest. v
– all nodes have same info
• p(v): predecessor node along path from source to v
• computes least cost paths from one node (‘source”) to all other nodes
• N': set offorwarding
– gives nodes whose least
table forcost
thatpath
nodedefinitively known
• iterative: after k iterations, know least cost path to k dest.’s
5
3
v w 5
2
u 2 1 z
3
1 2
x 1
y
v w
u z
x y
• call setup, teardown for each call before data can flow
• each packet carries VC identifier (not destination host address)
• every router on source-dest path maintains “state” for each passing
connection
• link, router resources (bandwidth, buffers) may be allocated to VC
12 22 32
1 3
2
1 12 3 22
2 63 1 18
3 7 2 17
1 97 3 87
… … … …
application
5. Data flow begins 6. Receive data application
transport
transport
network 4. Call connected 3. Accept call
1. Initiate call 2. incoming call network
data link
data link
physical
physical
application
application
transport
transport
network
1. Send data 2. Receive data network
data link
data link
physical
physical
– Routing algorithms
Then
Distributed:
• each node notifies neighbors recompute estimates
only when its DV changes
– neighbors then notify their
neighbors if necessary if DV to any dest has
changed, notify neighbors
from
from
y ∞∞ ∞ y 2 0 1 y 2 0 1
z ∞∞ ∞ z 7 1 0 z 3 1 0
node y table
cost to cost to cost to
x y z x y z x y z y
2 1
x ∞∞ ∞ x 0 2 7 x 0 2 3 x z
from
from
from
y 2 0 1 y 2 0 1 y 7
2 0 1
z ∞∞ ∞ z 7 1 0 z 3 1 0
node z table
cost to cost to cost to
x y z x y z x y z
x ∞∞ ∞ x 0 2 7 x 0 2 3
from
from
from
y ∞∞ ∞ y 2 0 1 y 2 0 1
z 7 1 0 z 3 1 0 z 3 1 0
time
Network Layer 4-28