The primary chapter of the RIP protocol

Source: Internet
Author: User

I. Basic overview

RIP (Routing information Protocol, routing Information Protocol) is the first generation of dynamic routing protocol, belonging to the distance vector protocol, based on the hop number to make the path selection (maximum support 16 hops). RIP currently has: IPV4-based version Ripv1,ripv2 and RIPng version based on IPV6

Two. Features

1.OSI hierarchy: Application-layer protocol, UDP-based port 520

2. Algorithm features: Distance vector protocol

3. There are classes and no classes: RIPV1 is a class, RIPv2 is no class

4. Operating range: IGP (internal Gateway Protocol)

5. Best path: Manage distance 120, measure----hop count

Three. RIP routing groupings

1.Request Pack

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/C5/wKiom1W9vszhYrn_AAFC9YTtKv8070.jpg "title=" Image.png "alt=" Wkiom1w9vszhyrn_aafc9yttkv8070.jpg "/>

Role: Request grouping, which points to the router Neighbor request routing entry when initializing

2.Response Pack

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/C5/wKiom1W9vvWDQuqSAAFjtWA6T7Q652.jpg "title=" Image.png "alt=" Wkiom1w9vvwdquqsaafjtwa6t7q652.jpg "/>

Role: RIP reply grouping for updating/sending local routing information

Four. RIP timer

1. Update Timer---30s

Update timer, for RIP protocol cycle outbound broadcast routing

2. Failure timer----180s

Invaild timer, when RIP routing (update) exceeds 180s, this route is declared invalid (possible down)

3. Suppression Timer----180s

Hold-down timers for anti-ring, indicating that no other route is received within this time range

4. Refresh Timer----240s

Flushed timers, when RIP routing (update) exceeds 240s, this route entry is removed from the local routing table

Five. RIP Routing algorithm introduction

RIP routing algorithm is the Bellman algorithm (Behrman algorithm).

Bellman algorithm:

① if a neighbor-given route is received, it is received if there is no local.

② If you receive a neighbor-given route, if there is a local, according to the measure of comparison, merit, the inferior is discarded.

③ if received the neighbor to the route, if inferior, but from the original neighbor learned, also input.

For ③: If the R1---->R2 has two paths ① and ②, before the failure, R2 route table is the shortest path ①, when the path ①down, R1 will choose the path ② send packets to R2, so R2 received R1 packets only after not the optimal path ② packets, At this point, because there is no comparison of measures, it can only be received, update the routing table, remove the original routing table.

Six. RIP routing anti-Ring

1. Routing Anti-Ring overview

Because the RIP routing protocol has the feature of "bad Message Propagation slow" (RIP update cycle 30s, failure time 180s), each router cannot simultaneously or nearly simultaneously complete the routing table update, so it is possible to generate a "routing loop"

2.RIP---5 kinds of anti-ring mechanism

① Horizontal Split

Definition: A route entry received from this interface can no longer be sent from this interface. (You can't give him the same gift when someone gives you a gift.)

② Max 16 Jump

Definition: If the route entry hop count of Rip reaches 16 hops, then this route fails and is discarded

③ Route Poisoning

Definition: If a RIP routing entry fails, the route is marked as 16 hops and sent to the neighbor informing the neighbor that there is a problem with the route and deleting the route entry as soon as possible.

④ toxicity Reversal

Definition: If a RIP routing entry fails, the route is marked as 16 hops and sent to the neighbor, informing the neighbor that there is a problem with the route, deleting the route entry as soon as possible, and the neighbor returning a 16-hop route poisoning to achieve confirmation.

⑤ Suppression Timer

Definition: When a failed route is received, the default is to delete the fault route, and if you receive this route from afar, it is possible to create a loop again; To solve this problem, set the suppression timer, and after you receive the failed route, keep 180s before you delete the route entry.





This article is from the "9305074" blog, please be sure to keep this source http://9315074.blog.51cto.com/9305074/1680974

The primary chapter of the RIP 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.