Beruflich Dokumente
Kultur Dokumente
RouterLab
OSPF - Open Shortest Path First
(RFC 2328)
OSPF 2
Internet Routing
Distance Vector Link State
- I tell you all my best - I announce to everyone
routes for all about my links and the
destinations that I addresses I originate on
know and you tell me each link and listen to
yours. everyones
announcement.
- Build simplified
topology from local - Build full topology
perspective
- E.g. OSPF
- E.g. RIP
OSPF 3
OSPF (Link State)
I tell everyone about all my connections(links), with link
up/down announcements
I tell everyone about the addresses I originate on each
link
I listen to everyone elses link announcements
I build a topology of every link (map)
Then I compute the shortest path to every address
I assume (trust) that everyone else has assembled the
same map and performed the same path selection
OSPF 4
OSPF (Link State)
Is an instantiation of the Dijkstra Algorithm
1. Set: i = 0, S0 = {u0 = s}, L (u0 ) = 0, and L (v) = , for v != u0
2. Compute: v (V \ Si ) L (v) = min{L (v) , L (ui ) + duv i }
3. Select: ui+1 = v! : L (v! ) = minv(V \S ) {L (v)}
i
Wait for an announce
4. Update: Si+1 = Si ui+1 , i = i + 1
5. If i =| V | 1 stop, otherwise go to 2 Recompute Map
Recompute
shortest-paths tree
Issue periodic
announcement
OSPF 5
OSPF
Is more complex
- (RFC 2328 is 244 pages, RIP is 39!)
OSPF 7
OSPF Packets
OSPF runs directly over IP
- Protocol Number: 89
Packets Type
1. Hello - Discover/Maintain neighbors
2. Database Description - Summarize database contents
3. Link State Request - Database download
4. Link State Update - Database update
5. Link State Ack - Flooding Acknowledgement
OSPF 8
Hello Protocol
Task:
- Discover/Maintain neighbor relationship
- Discover bi-directionality
- Negotiate capabilities (HelloInterval, Netmask, RouterDeadInterval)
Method:
- Periodical multicasting of Hello Packets containing:
List of routers whose Hello Packets have been seen recently
Target:
- Establish Adjacencies
- Adjacent routers sync the link-state database
OSPF 9
LSA - LS Announcements
Router-LSA
R1
Router-LSA From To Cost
N1 1
- Flooded
3
R2
R3 9
- States of the links
N1 R3
Network-LSA 7
- Flooded by Designated Router 1
Routers use an ID (usually an IP
address on the loopback) R2 Network-LSA
- Describes all routers attached to it From To Cost
9 R1 3
The set of LSA form the N1 R2 7
Database R4 R3 1
OSPF 10
Database Sync
3
7
Ideally all routers have to sync their 1
9
Database R1
Database
In practice in OSPF only adjacent 3
routers Sync their Database
N1 R3
Types of Sync:
1
7
- Initial Sync
when establishing adjacencies R2
- Continuous Sync
9
when adjacencies are already established
R4
OSPF 11
Initial Database Sync
Routers perform Database Exchange Process
- State Machine
DD
Loading DD
LS-Request Full
LS-Update
LS-Request
LS-Update
Full
OSPF 13
Continuous Database Sync
Reliable Flooding
LSA are generated
periodically if nothing changes (30 minutes)
upon specific events if they change the content of the LSA
OSPF 14
Shortest-Path Tree
5
Destination Cost Next-Hop R2 R4 2
1
R1 0 *
4
R2 1 link R1 3 R6
R3 2 link
R5 4 R3 2 2 3
R3 R5
R4 6 R2
R6 7 R3
OSPF 15
Hierarchical OSPF
Why?
- Reduce routing overhead
- Increase scalability
- Speed up convergence
- Confine routing instabilities in contained areas
OSPF 16
Hierarchical OSPF
10.1.2.0/24
How
- Inside Areas full OSPF 10.1.3.0/24
LSA-summary
- Flooding is limited to Areas 10.3.0.0/16
summarize information
LSA-Summary
- Area 0 (backbone mandatory)
- Inter-area communication only
through Area 0
- No loops allowed among areas
- Only 2 levels hierarchy allowed
OSPF 17
Worksheet 4
Use same VLANs topology like in Question 1
Work Sheet 2
Target: logical networks communicate using
OSPF
Readings:
Cisco RIP
Juniper RIP
RFC 2328
OSPF 18
New Schedule!
Deadline Worksheet 4: 29th May 2009
No debriefings/Tutorials in the week from 19th to
22nd May
Debriefing Worksheet 3 (RIP) will be held on
27th May
Tutorial on BGP will be held on Thursday 28th
May
OSPF 19
Any other Question?
OSPF 20