Comparison between ospf and rip

Source: Internet
Author: User


Comparison of ospf, Ospf, and rip: Comparison of ospf and rip: Limitations of RIP arising from the use of large networks: 15 hop restrictions of RIP, A route with more than 15 hops is considered inaccessible to RIP and cannot support a variable long Subnet Mask (VLSM), resulting in inefficient IP Address Allocation and periodic broadcast of the entire route table, applications on low-speed links and wide area networks will cause major problems. The convergence speed is slower than OSPF. In large networks, the convergence time may take several minutes for www.2cto.com RIP. There is no concept of network latency and link overhead, route selection is based on the number of hops. A route with a small number of hops is always selected as the best route. Even if a long route has a low latency and overhead, RIP has no region, route aggregation cannot be performed on any bit. Some enhanced functions are introduced into the new version r12002 of RIP. r00002 supports VLSM, authentication, and multicast update. However, the limit on the number of hops and slow convergence of r12002 make it not suitable for large networks. Compared with RIP, OSPF is more suitable for large networks: no limit on the number of hops supports variable-length Subnet Mask (VLSM) send link status updates using multicast and trigger updates when link status changes. This improves bandwidth utilization and accelerates convergence. With the authentication function, OSPF and VPN are now evolving rapidly over the Internet, TCP/IP has become the mainstream protocol for data network interconnection. Vrouters running on various networks are responsible for controlling traffic that may be the most important information of this century. The collaboration between hundreds of vrouters is inseparable from the routing protocol. OSPF and OSPF are both good dynamic routing protocols in recent years. OSPF has been widely used in many manufacturers with high protocol standardization. However, the OSPF protocol was invented by Cisco, a leading provider in the network industry, it is also widely recognized by users based on its influence in the industry and its absolute market share. However, which of the two Protocols is better? Who is more suitable for the future development of the network? This article analyzes the advantages and disadvantages of these two protocols from a technical perspective on users' concerns, so that network integrators and enterprise users can serve as a reference in network design and planning. Www.2cto.com 1. OSPF protocol (1). OSPF is the abbreviation of Open Shortest Path First ("Open Shortest routing Priority Protocol. It is a link-based autonomous system internal routing protocol developed by IETF. On an IP network, it dynamically discovers and transmits routes by collecting and passing the link status of the autonomous system. Each router running the OSPF protocol always describes the connection status of the local network (such as available interface information and accessible neighbor information) in LSA (broadcast link status, and broadcast it to the entire autonomous system. In this way, each router receives the LSA generated by all the routers in the autonomous system. These LSA sets constitute the LSDB (link status database ). Since each LSA describes the network topology around a vro, the entire LSDB is a true reflection of the network topology of the autonomous system. Based on LSDB, Each router runs the SPF (Shortest Path First) algorithm. Build a self-rooted Shortest Path Tree that provides routes to nodes in the autonomous system. In graph theory, "Tree" is a non-loop join graph. Therefore, the routes calculated by OSPF are also non-loop routes. To reduce the overhead of OSPF, the following concepts are proposed: (1 ). DR: if there are two or more vrouters in various networks that can be accessed by multiple access, a "designated vro" (DR) should be selected on the network ). The "specified vro" synchronizes the LSDB with all vrouters in this segment. In this way, no LSDB synchronization is performed between two non-DR routers. This greatly saves the bandwidth overhead within the same network segment. (2 ). AREA: OSPF can be divided into different regions according to the topology of the autonomous system. In this way, when the Regional Border Router (ABR) sends route information to other regions, the Digest LSA is generated in units of network segments. This can reduce the number of LSA in the Autonomous System and the complexity of route computing. OSPF uses four different types of routes, which are in priority order: routes in the same region are the first type of external routes. The second type of routes in the same region and between regions describe the internal network structure of the autonomous system, external routes describe how to select a route to a destination other than the autonomous system. Generally, the first type of external routes correspond to the information introduced by OSPF from other internal routing protocols. The cost of these routes is comparable to that of OSPF routes; the second type of external routes correspond to the information introduced by OSPF from the external routing protocol. Their cost is much higher than the OSPF route cost. Therefore, only the external cost is considered during computing. Main advantages of www.2cto.com (II) and OSPF Protocol: 1. OSPF is a real LOOP-FREE (no routing self-LOOP) routing protocol. Derived from the advantages of the algorithm itself. (Link status and Shortest Path Tree Algorithm) 2. Fast OSPF convergence speed: route changes can be transmitted to the entire Autonomous System in the shortest time. 3. The concept of area Division is proposed. After the autonomous system is divided into different regions, the route information digest between regions greatly reduces the number of route information to be transmitted. In addition, the routing information does not expand rapidly as the network size expands. 4. Minimize the Protocol overhead. See: 1) The hello messages without routing information are sent regularly to discover and maintain the neighbor relationship, which is very short. The update mechanism is triggered when packets containing route information are sent. (Sent only when there is a route change ). However, to enhance the robustness of the Protocol, all requests are resold once every 1800 seconds. 2) In broadcast networks, multicast addresses (rather than broadcasts) are used to send packets, reducing interference with other network devices that do not run ospf. 3) in various networks (broadcast, NBMA) that can be accessed by multiple access, the number of Route switching (synchronization) times between routers in the same network segment is changed from O (N * N) the number of times is reduced to O (N. 4) propose the STUB region concept so that the introduced ASE route will not be transmitted in the STUB region. 5) supports route aggregation on the ABR (Regional Border Router) to further reduce route information transmission between regions. 6) in the point-to-point interface type, OSPF over On Demand Circuits is configured so that ospf no longer regularly sends hello packets and regularly updates route information. Update information is sent only when the network topology changes. 5. Provide more trusted routing choices by strictly dividing the route levels (four levels. 6. Good security. ospf supports interface-based plaintext and md5 verification. 7. OSPF can adapt to a variety of networks, with a maximum of thousands. Www.2cto.com 2. The earlier IGRP protocols used in VPN protocol and network protocol are both invented by Cisco and are dynamic routing protocols based on distance vector algorithms. The Enhanced Interior Gateway Routing Protocol is an Enhanced version of the IGRP Protocol. It belongs to the dynamic Internal Gateway Routing Protocol and still uses the vector-distance algorithm. However, its implementation has been greatly improved compared with IGRP, and its convergence characteristics and * work efficiency have been significantly improved compared with IGRP. The Convergence feature of network replication is based on the DUAL (Distributed Update Algorithm) Algorithm. The DUAL algorithm makes it impossible to form a loop in route computing. Its convergence time can rival any other existing routing protocols. The IPSec protocol has the following features: 1. Precise route computing and multi-route support for the IPSec protocol inherit the biggest advantage of the IGRP Protocol: vector routing. In route computing, the network bandwidth, network latency, channel usage, channel reliability, and other factors need to be comprehensively considered by the Protocol. Therefore, the route calculation of the Protocol is more accurate, better reflect the actual situation of the network. At the same time, the OSPF protocol supports multiple routes so that the routers can share the load according to different routes. 2. A small amount of bandwidth is used to periodically send a small hello packet between the peer vrouters using the OSPF protocol to ensure the validity of the previously sent packets. Route sending uses the incremental sending method, that is, only the changed route is sent each time. The route update messages sent are reliably transmitted. If no confirmation message is received, the messages are resent until they are confirmed. It can also control the sent VPN packets to reduce the bandwidth usage of the network interface. This avoids the impact of a large number of consecutive Route packets on normal data services. Www.2cto.com 3. classless routing and fast convergence speed the convergence speed of route computing's classless and route is an important indicator of route computing. Because the DUAL algorithm is used in the Protocol, it is impossible for the Protocol to generate loop routes in route computing. At the same time, the convergence time of route computing is well guaranteed. Because the DUAL algorithm makes it only re-calculate the changed route during route computing. For a route, only the routers affected by this route will be involved in re-calculation of the route. 4. MD5 authentication to ensure the correctness of the route, MD5 authentication can be configured between Routers running the OSPF Protocol process, and the packets that do not conform to the authentication can be discarded to ensure the security of the route. 5. routes with any netmask length can be aggregated using any netmask length routing through configuration, thus reducing route information transmission and saving bandwidth. 6. A route entry with the same purpose but with the same priority can be shared by the load to the route table for the same purpose. The route priority can be automatically generated based on the speed, connection quality, reliability, and other attributes of the interface, when a packet is sent, the interface traffic can be automatically matched based on the information to achieve load balancing of Several Interfaces. 7. The Protocol configuration is simple to build a network using the VPN protocol. The router configuration is very simple. It does not have complicated region settings, and you do not need to implement different configuration methods for different network interface types. To use the network protocol, you only need to use the router VPN command to start the OSPF routing process on the router, and then use the network command to enable interfaces within the network range. Www.2cto.com 3. Comparison of OSPF and VPN, OSPF and VPN are algorithms that converge quickly and do not form loops. The network bandwidth usage is small, and the routing protocol is flexible and secure. However, from the above analysis, we can see that each has its own advantages and disadvantages. (1) Disadvantages of OSPF 1. complicated configuration. Due to the complexity of network area division and network attributes, the network analyst must have a high level of network knowledge to configure and manage the OSPF network. 2. Weak routing load balancing capabilities. Although OSPF can automatically generate the interface routing priority based on the Interface speed and connection reliability, OSPF only selects the forwarding with a higher priority for routes with different priorities for the same purpose, routes with different priorities cannot be used for load balancing. Only those with the same priority can achieve the purpose of Server Load balancer. Unlike in the case of VPN, traffic can be automatically matched based on different priorities. (2) Disadvantages of the network. 1. The concept of AREA does not exist in the network. However, in the case of a large-scale network, OSPF can plan and limit the network size by dividing areas. Therefore, it is suitable for networks with relatively small network sizes. This is also the limitation of the vector-distance routing algorithm (the RIP Protocol uses this algorithm. 2. the routers running the network must send the HELLO message regularly to maintain the relationship between the neighbors. This relationship also needs to send the HELLO Message periodically even on the dial-up network, in this way, on the on-demand dial-up network, it is impossible to locate whether this is a useful service message or a scheduled inquiry message sent by the kernel, which may trigger a connection on the On-Demand dial-up network by mistake, especially on the backup network, causing unnecessary troubles. Therefore, generally, the vroeigrp that runs the OSPF Protocol needs to configure Dialer list and Dialer group on the dial-up backup port to filter unnecessary packets or run the TRIP protocol. This increases the overhead of the vro operation. OSPF supports on-demand dial-up on the dial-up network. Only one routing protocol can meet the needs of various leased lines or dial-up network applications. 3. the loop-free computing and convergence speed of the network are based on the distributed DUAL algorithm, which actually spreads uncertain routing information (active route) (send query Packets to neighbors ), the process of re-convergence after the confirmation of all neighbors is obtained. When the neighbors are not sure about the reliability of the route information, the spread will be repeated, therefore, in some cases, the route information may remain active (this route is called stuck in active route, when the next (successor) metric of the route changes, it enters multiple computations, which will affect the DUAL algorithm's convergence speed. The OSPF algorithm does not have this problem, so from the perspective of convergence speed, although the whole is similar, but in some special circumstances, there is still an unsatisfactory situation in the OSPF algorithm. Www.2cto.com 4. VPN is a private protocol of Cisco. Cisco is the inventor of the agreement and the only vendor with the right to interpret and modify the agreement. If you want to support the Protocol, You need to purchase the relevant copyright from Cisco, and Cisco has no obligation to notify any other manufacturer or users using the Protocol to modify the Protocol. OSPF is an open protocol and a standard published by the IETF. All major network equipment vendors in the world support this Protocol. Therefore, the interoperability and reliability of this Protocol are guaranteed by the openness of public networks. With the support of many vendors, the Protocol will also be improved.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.