OSPF Protocol principle 1. ospf (Open Shortest Path First) is an Internal Gateway Protocol (IGP) used for decision-making routing in a single autonomous system (. Ospf runs directly on the IP protocol and uses protocol number 89. ospf is a link-State routing protocol, which is generally used in the same routing domain. A routing domain is an autonomous system. It refers to a group of networks that exchange route information through a unified routing policy or routing protocol. In this AS, all ospf routers maintain a database that describes the AS structure and stores the status information of the corresponding link in the routing domain, the ospf router uses this database to calculate its ospf route table. RIP is a distance vector routing protocol. The Protocol Management Distance for ospf is 110. As a routing protocol for Link status, OSPF transmits the Link status broadcast data LSA (Link State Advertisement) to all routers in a region, this is different from the distance vector routing protocol. A router running the distance vector routing protocol Transmits some or all route tables to its adjacent routers.
2. comparison of OSPF and rip features D-V L-S (OSPF) 1. update triggered by update Cycle Update (30 minutes) 2. the route is basically the status of all route links. 3. update message broadcast form multicast Form 4. metric rip hop count igrp bandwidth and latency cost (bandwidth) 5. rip 16 igrp 100-255 no scale limit (1000) 6. server Load balancer rip wait price igrp wait price non wait price 7. slow convergence speed 8. routing loops form a route for a non-ring Route 9. three Tables 1: Neighbor table hello 2: link status database LSDB 3: SPF-route table www.2cto.com 10. 11. The VLSM subnet is not consecutive. systematic routing (partition) 2: Case 1 ). case requirements 1. the three ospf regions are 0, 1, and 2. in a rip network, the rip network is published to ospf, and ospf is published to rip as the default route. 3. set the detail area and complete detail area in ospf2 To view the route information. 2). Topology 3). Detailed configuration steps:
R2 Configuration
R3 Configuration
R4 Configuration
R5 configuration: Configure rip network www.2cto.com in R6 R7
R7 configuration omitted 4). Test the route information learned by R1 to publish the rip network to ospf:
Similarly, R2 R4 R5 can also learn the rip network routing. In the ospf area, the default route is published to the rip area. The route information learned by R6 is shown as follows in the remote area of ospf2 settings:
In R5, only the domain and default route table are displayed.
Author: Niu Xiaolin