












































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of lecture notes from a computer science engineering (cse) 123b course at the university of california, san diego (ucsd), taught by stefan savage during spring 2002. The notes cover lecture 6, which discusses distance vector routing and link state routing. The lecture focuses on the concepts of routing, intra-domain routing protocols (distance vector and link state), reliable flooding, and dijkstra's shortest path tree algorithm.
Typology: Study notes
1 / 52
This page cannot be seen from the preview
Don't miss anything!













































Stefan SavageStefan Savage
Some slides courtesy David Wetherall
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Project #1:^ ◆
Implement simple distance vector routing protocol ◆^
We provide a “framework” called fisnhet for implementing
» Fishead: program that simulates network; maintains topology,
etc. » Libfish.a: library that provides basic functions (sending and
receiving packets, timers and keyboard input) » Fish.h: a head file that defines this API
◆^
You will test your implementation in your own local fishnet ◆^
We will provide a long running fishnet that everyone in theclass can join (one big network)
z^
BUT… still not ready…
Tuesday with complete
documentation. Will be due two weeks from Tuesday.
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Finish Intra-domain routing^ ◆
Link-state protocols
z^
Inter-domain routing^ ◆
BGP ◆^
Policy ◆^
Peering/transit economics
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Same goal as DV, but a different approach z^
Two phases^ ◆
Reliable flooding
» Tell
all
routers what you know about your
local
topology
◆^
Path calculation
(Dijkstra’s algorithm)
» Each router computes best path over
complete
network
z^
Motivation^ ◆
Using DV, routers only have local information, making itdifficult to decide what to do when there are changes ◆^
With LS, faster convergence and better stability (hopefully) ◆^
More complex
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Goal: tell everyone what you know about local topology z^
Periodically send
link state packets
(LSPs) on
all
links
◆^
LSP contains [node, neighbors, costs, sequence number]
z^
If node X receives an LSP from node Y over link Q^ ◆
Save it in local link state database ◆^
Forward LSP on all links
except
Q
z^
Use explicit ACKs and retransmits to make flooding reliable z^
Each LSP will travel at most once over each link
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
LSP generated by X at T= z^
Nodes become orange as they receive it
X
A
C
B
D
X
A
C
B
D
X
A
C
B
D
X
A
C
B
D
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
What happens if the network is partitioned and heals?^ ◆
Different LS databases must be synchronized ◆^
Use version #s on each LSP (incremented for each update) ◆^
Compare version #s when a link comes back up and requestout of date LSPs
A
B
C
D
E
F
G
H
T: 1
T: 2
T: 2
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Graph algorithm for single-source shortest path tree
While Q != {}
u
extract-min(Q)
S plus {u}
for each node v adjacent to u
“relax” the cost of v
u is done
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
OSPF (Open Shortest Path First) and IS-IS^ ◆
Most widely used intra-domain routing protocol ◆^
Run by almost all ISPs and many large organizations
z^
Basic link state algorithm plus many features:^ ◆
Authentication of routing messages ◆^
Extra hierarchy: Partition into
routing areas
◆^
Load balancing: Multiple equal cost routes
April 25, 2002
CSE 123b -- Lecture 6 – Distance Vector Routing
z^
Inter-domain versus intra-domain routing
Backbone service provider
Peeringpoint
Peeringpoint
Large corporation Large corporation
Small corporation
“Consumer ” ISP
“Consumer”ISP
“ Consumer” ISP
You at home
You at work