TCP/IP 详解 卷1 ch10 Dynamic Routing Protocols

来源:互联网 发布:武汉淘宝商学院怎么样 编辑:程序博客网 时间:2024/05/24 22:42

1. RIP (Routing Information Protocol) - a distance-vector protocol

use UDP, port is 520, the metric is hop counts (The hop count for all directly connected interfaces is 1, max value is 15).

 

2. problems

1) RIP has no knowledge of subnet addressing

2) RIP takes a long time to stabilize after the failure of a router or a link

3) dest ip is 255.255.255.255, 全网广播

 

3. RIP-2 supports multicasting in addition to broadcasting

 

4. OSPF (Open Shortest Path First) - a link-state protocol

OSPF uses IP directly, it does not use UDP or TCP. OSPF has its own value for the protocol field in the IP header.

 

5. advantage of OSPF

1) OSPF can calculate a separate set of routes for each IP type-of-service

2) Each interface is assigned a dimensionless cost.

3) When several equal-cost routes to a destination exist, OSPF distributes traffic equally among the routes. This is called load balancing.

4) OSPF supports subnets: a subnet mask is associated with each advertised route.

5) Point-to-point links between routers do not need an IP address at each end.

6) A simple authentication scheme can be used.

7) OSPF uses multicasting, instead of broadcasting.

 

6. BGP (Border Gateway Protocol)

BGP uses TCP as its transport protocol

 

7. CIDR (Classless Interdomain Routing)

Although the allocation of these class C addresses solves one problem (running out of class B addresses) it introduces another problem: every class C network requires a routing table entry. Classless Interdomain Routing (CIDR) is a way to prevent this explosion in the size of the Internet routing tables.