Learning Hall: complete solution of RIP Routing Protocol

Source: Internet
Author: User

At present, there are still a lot of applications for the RIP routing protocol. So I have studied the comprehensive introduction and practical application of the RIP routing protocol. I will share it with you here and hope it will be useful to you. There are two vro jobs: Path Selection and data forwarding. It is easier to forward data, but it is difficult to determine the optimal path to the target network. Therefore, path selection is the most important task for routers.

Many RIP routing protocols can be used to select routes, such as RIP, OSPF, IGRP, and OSPF. Among these algorithms, we cannot simply say who is good or who is bad, because the advantages and disadvantages of algorithms must be determined based on the environment in use. For example, the RIP routing protocol sometimes fails to accurately select the optimal path, and the convergence time is somewhat longer. However, for small-scale networks without professional maintenance, it is the preferred RIP routing protocol, and we are looking at its simplicity.

If you have a small network project, let's arrange a plan to read this article within 30 minutes ), in 20 minutes, I will go over the commands and operation method 2 mentioned in this article.) use 30 minutes to configure all the vrouters and small networks on the network. Few vrouters can be configured ), in the last 20 minutes, check whether the network works properly. Okay. In one hundred minutes, your RIP network is running. It's that simple. Do not believe it. Please continue. RIPRouting Information Protocols is the most widely used distance vector protocol, which was developed by Xerox in 1970s. At that time, the RIP routing protocol was part of the XNSXerox Network Service, Xerox Network Service) protocol cluster. The RIP Protocol of TCP/IP is the license version of Xerox protocol. The biggest feature of RIP is that the implementation principle and configuration method are very simple.

Measurement Method

The RIP measurement is based on the hop count hops count). Each time a router passes through, the hop count of the path increases by one. As a result, the larger the number of hops, the longer the path, and the RIP algorithm will first select a path with fewer hops. The maximum number of hops supported by the RIP Protocol is 15, and the number of hops is 16.

Route update

Route updates in RIP are implemented through scheduled broadcast. By default, the router broadcasts its route table to the network connected to it every 30 seconds. The router connected to the broadcast adds the received information to its route table. Every vro is broadcast so that all vrouters on the network will know all route information. Under normal circumstances, the router can receive a route message confirmation every 30 seconds. If the route entry is not confirmed after 180 seconds, that is, six update cycles, the router considers it invalid. If the route entry remains unconfirmed after 240 seconds, that is, eight update cycles, it will be deleted from the routing table. The above 30 s, 180 s, and 240 s are all controlled by the Timer, which are the Update Timer), the Invalid Timer), and the refresh Timer Flush Timer ).

Routing cycle

Distance vector algorithms are prone to route loops. RIP is a distance vector algorithm, so it is no exception. If there is a route loop on the network, information will be transmitted cyclically and never reach the destination. To avoid this problem, the same distance vector algorithm of the RIP routing protocol implements the following four mechanisms.

Horizontal split horizon ). Horizontal segmentation ensures that the router remembers the source of each route information and does not send it again on the port that receives this information. This is the most basic measure to prevent route loops. Toxicity reversal poison reverse ). When a path becomes invalid, the router does not immediately delete it from the routing table, but broadcasts it with a 16, that is, an inaccessible measurement value. In this way, although the route table size is increased, it is very helpful to eliminate the routing cycle. It can immediately clear any loops between neighboring routers.

Trigger update ). When the route table changes, the update packet is immediately broadcast to all adjacent routers, instead of waiting for a 30-second update cycle. Similarly, when a router just starts the RIP routing protocol, it broadcasts request packets. The adjacent router that receives the broadcast immediately responds to an update message, instead of waiting for the next update cycle. In this way, the changes in the network topology will spread on the network as quickly as possible, reducing the possibility of loop routing. Suppress the time holddown timer ). After a route entry is invalid, the route entry is in the suppression State for a period of time, that is, it no longer receives route updates for the same destination address within a certain period of time. If the router learns that a path is invalid from one CIDR block, it immediately learns that the route is valid on the other CIDR block. This effective information is often incorrect. Blocking timing avoids this problem. In addition, when a link starts and stops frequently, blocking timing reduces route fluctuations and increases Network stability.

Even if the above four methods are used, the routing loop problem cannot be completely solved, but the problem is minimized. Once a route loop occurs, the metric value of the route entry is counted to an infinite Count to Infinity. This is because route information is cyclically transmitted. Each time a vro is transmitted, the measurement value is added to 1 and the value is always added to 16, and the path becomes inaccessible. It is clever to select 16 as an inaccessible metric value for the RIP routing protocol. It is large enough to ensure that most networks can run normally and small enough, it takes the shortest time to count to infinity.

Neighbors

Some networks are NBMANon-Broadcast MultiAccess, and non-Broadcast multi-channel access), that is, Broadcast is not allowed to transmit data on the network. For such a network, the RIP Routing Protocol cannot depend on the broadcast route table. There are many solutions, the simplest is to specify the neighbor), that is, to specify to send the route table to a specific router.


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.