lab course routerlab
play

Lab Course RouterLab OSPF - Open Shortest Path First (RFC 2328) - PowerPoint PPT Presentation

Lab Course RouterLab OSPF - Open Shortest Path First (RFC 2328) Some of the slides come from: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf 1 Miscellaneous Anything that needs discussion? OSPF 2 Internet Routing


  1. Lab Course “RouterLab” OSPF - Open Shortest Path First (RFC 2328) Some of the slides come from: http://www.ietf.org/proceedings/07dec/slides/IDRTut-0.pdf 1

  2. Miscellaneous • Anything that needs discussion? OSPF 2

  3. 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. everyone ʼ s announcement. - Build simplified - Build full topology topology from local perspective - E.g. OSPF - E.g. RIP OSPF 3

  4. 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 else ʼ s 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

  5. OSPF (Link State) • Is an instantiation of the Dijkstra Algorithm 1. Set: and for L ( v ) = ∞ , v � = u 0 i = 0 , S 0 = { u 0 = s } , L ( u 0 ) = 0 , 2. Compute: ∀ v ∈ ( V \ S i ) L ( v ) = min { L ( v ) , L ( u i ) + d u i v } u i +1 = v ′ : L ( v ′ ) = min ∀ v ∈ ( V \ S i ) { L ( v ) } 3. Select: Wait for an announce 4. Update: S i +1 = S i ∪ u i +1 , i = i + 1 5. If stop, otherwise go to 2 i = | V | − 1 Recompute Map Recompute shortest-paths tree Issue periodic announcement OSPF 5

  6. OSPF • Is more complex - (RFC 2328 is 244 pages, RIP is 39!) • Converges extremely quickly • Should be loop-free at all times • Does not guarantee consistency of outcomes • Relies on a “full disclosure” model across the whole domain • Can be organized in several “areas” • Still can ʼ t scale OSPF 6

  7. OSPF Components • Hello Protocol: - Builds and maintains adjacencies • Link State Announcements • Database Synchronization: - Ensure consistency of the Database among neighbors - Reliable Flooding • Shortest-Path Tree Computation - Based on the Routing Database OSPF 7

  8. 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

  9. 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

  10. LSA - LS Announcements Router-LSA Router -LSA R1 • Router-LSA From To Cost N1 1 - Flooded R2 R2 3 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 Netw Network-LSA ork-LSA - Describes all routers attached to it From To Cost 9 R1 3 • The set of LSA form the N1 N1 R2 7 Database R4 R3 1 OSPF 10

  11. 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 R3 N1 • Types of Sync: 7 1 - Initial Sync ‣ when establishing adjacencies R2 - Continuous Sync 9 ‣ when adjacencies are already established R4 OSPF 11

  12. Initial Database Sync • Routers perform “Database Exchange Process” - State Machine • Database Description Packets - Contains summaries of LS data • DD are explicitly acknowledged • More recent LS Data can be explicitly requested (Link State Request) • Process ends with adjacency establishment OSPF 12

  13. Sync Example RT1 RT2 Down Down Hello Init Hello ExStart DD ExStart DD Exchange DD Exchange DD Loading DD Full LS-Request LS-Update LS-Request LS-Update Full OSPF 13

  14. 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 • If a newer LSA is received by a router it is put in the database and a route computation is triggered • The LSA is sent to all adjacencies which have to explicitly acknowledge it OSPF 14

  15. Shortest-Path Tree 5 R2 R4 Destination Cost Next-Hop 2 1 R1 0 * 4 R1 3 R6 R2 1 link R3 2 link 2 2 3 R5 4 R3 R5 R3 R4 6 R2 R6 7 R3 1. Added Destination = <R1,0>; Candidate Destination List = <R2,1> <R3,2> 2. Added Destination = <R2,1>; Candidate Destination List = <R3,2> <R5,5> <R4,6> 3. Added Destination = <R3,2>; Candidate Destination List = <R5,4> <R4,6> 4. Added Destination = <R5,4>; Candidate Destination List = <R4,6> <R6,7> 5. Added Destination = <R4,6>; Candidate Destination List = <R6,7> 6. Added Destination = <R6,7>; Candidate Destination List = 7. Done! OSPF 15

  16. Hierarchical OSPF • Why? - Reduce routing overhead - Increase scalability - Speed up convergence - Confine routing instabilities in contained areas OSPF 16

  17. 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 - Area Border Routers 10.1.128.0/24 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

  18. 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

  19. 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

  20. Any other Question? OSPF 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend