Explanation: basics and configurations of the RIP Routing Protocol

Source: Internet
Author: User

The routing function is to assign an IP address to the network. With the development of the network, the routing protocols based on this function are also diverse. At present, the most basic is the RIP routing protocol. So in order to allow everyone to grasp the basis of this part, let's take a closer look.

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 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 routing protocol. What we see is 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. Your RIP network is running in one hundred minutes. it's that simple. Do not believe it. Please proceed.

I. What is the RIP routing protocol?

RIPRouting Information Protocols is the most widely used distance vector protocol, which was developed by Xerox in 1970s. at that time, RIP was part of the XNSXerox Network Service, Xerox Network Service) protocol cluster. the TCP/IP version of RIP is the license version of the 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 is increased 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 RIP 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 seconds, 180 seconds and 240 seconds are all controlled by the Timer, which are the Update Timer), Invalid Timer), and refresh Timer Flush Timer ).

Routing cycle

Distance vector algorithms are prone to route loops. The RIP routing protocol 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 RIP vector algorithm 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. Instead, it broadcasts it out 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. RIP selects 16 as an inaccessible measurement value. 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, RIP cannot rely on the broadcast route table. there are many solutions, the simplest is to specify the neighbor), that is, specify to send the route table to a specific router.

RIP route protocol Defects

Although RIP is easy to use and has been tested for a long time, it also has some important defects, mainly including the following:

It is too simple. The measurement value is calculated based on the number of hops, and the unoptimal route is often obtained;

The measurement value is limited to 16, which is not suitable for large networks;

Poor security. Accept route updates from any device;

Classless IP addresses and VLSMVariable Length Subnet Mask are not supported, and the Subnet Mask is extended );

Slow convergence, often more than 5 minutes;

High bandwidth consumption.

Ii. how to configure a vro

A vro itself is a computer with multiple network interfaces. Like a common computer, it also has components such as a central processor CPU, system primary memory RAM, and read-only memory ROM.

In addition, a very important part is its network Interface). to link different types of networks, there are a wide variety of Router network interfaces, for example, Ethernet, fast Ethernet, and card ring interfaces used in Lan, V.35, RS232, and isdn bri pri interfaces used in Wan, etc.

There are two main types of vro's external memory: NVRAMNon-Volatile RAM, non-Volatile RAM) and Flash). NVRAM stores the configuration file of the vro and Flash stores the Operating System IOSInternet Operating System ).

Configuration Mode of the RIP route protocol

There are two basic configuration modes for a CISCO router: user and privileged. In user mode, only the status of the router can be displayed. In privileged mode, you can also change the configuration of the router.

In privileged mode, you can enter the setup mode, global config mode, and local sub config mode.

The installation mode provides a menu prompt to guide you through the basic configuration of the vro. After the new vro is started for the first time, it automatically enters the installation mode.

In global configuration mode, you can change the global parameters of a vro, such as the host name and password.

Local configuration changes the local parameters of a vro, such as the configuration of a network interface and the configuration of a route protocol.

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.