Routing protocol is divided into static routing protocol and dynamic routing protocol. There are many kinds of dynamic routing protocols, such as RIP, OSPF, EIGRP, and so on.
1. RIP (Routing Information Protocol) is the first open standard used between router manufacturers. RIP has two versions: RIPv1 and RIPV2, which are based on the classic distance vector routing algorithm with a maximum hop count of 15 hops. The mask information is not included on the RIPV1 route, so all devices on the network must use the same subnet mask, and the VLSM (variable eldest subnet mask) is not supported. RIPv2 can send subnet mask information and support VLSM. RIP algorithm is simple, but in the path of convergence slow, broadcast routing information Occupy more bandwidth resources, it is suitable for the network topology is relatively simple and the data link failure rate is very low small network, in large and medium enterprise networks, generally do not use RIP.
2, OSPF (Open Shortest Path First protocol) is an internal gateway routing protocol developed for IP network, using the shortest Path algorithm (SPF) proposed by Dijkstra, which is to send information to all routers in this autonomous system, the method used here is Fan Hong method. The information sent is the link state of many routers adjacent to this router, but this is only part of the information that the router knows. The router uses Van HONGFA to send this message to all routers only when the link state changes. OSPF does not generate routing loops, is not limited by the way, can be used in large scale networks, convergence speed, support large heterogeneous network interconnection, and not prone to error routing information, support multipath, support routing verification, improve network security, support load balancing, support VLSM.
Same point:
1, are dynamic routing protocol.
2, are the internal routing protocol.
3, if RIP is version 2 (RIPV2), then OSPF support side of the eldest son netmask, support VLSM.
Different points:
1, RIP is the number of hops to calculate the route, OSPF is the state routing protocol.
2, RIP algorithm is simple, but in the path convergence slow, broadcast routing information Occupy more bandwidth resources, it is suitable for the network topology is relatively simple and the data link failure rate is very low small network, in large and medium enterprise network, generally do not use RIP.
OSPF does not generate routing loops, is not limited by the way, can be used in large scale networks, convergence speed, support large heterogeneous network interconnection, and not prone to error routing information, support multipath, support routing verification, improve network security, support load balancing, support VLSM.
The similarities and differences between RIP routing protocol and OSPF routing protocol are briefly described.