Internal Gateway protocol RIP Route selection algorithm (distance vector)

Source: Internet
Author: User

RIP is a route selection protocol based on distance vectors

RIP distance refers to the number of hops, not a route, is a hop, RIP allows a hop path up to 15 routers, so 16 is equivalent to not be able to reach the

Features of RIP protocol:

1: Exchange information only with neighboring routes,

2: Exchange of information is only the information you know all

3: Update every 30s

The RIP protocol mainly uses the distance vector algorithm

Receive a RIP message for the neighboring router (whose address is X):

(1) Modify all items in this RIP message first: Change the address in the "Next Hop" field to X and add 1 to the value of all the "distance" fields.

(2) Repeat the following steps for each item in the modified RIP message:

If the destination network in the project is not in the routing table, add the item to the routing table.

Otherwise, if the router address given in the next hop field is the same, the received item is replaced with the item in the original routing table.

Otherwise, if the distance in the received project is less than the distance in the routing table, the update is

Otherwise, do nothing.

(3) If 3 minutes have not received an updated routing table for neighboring routers, then this neighbor router is credited as unreachable router, the distance is set to 16 (distance of 16 means unreachable).

(4) return.

Internal Gateway protocol RIP Route selection algorithm (distance vector)

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.