2) Routing Protocol Basis
2) Routing Protocol Basis
www.huawei.com
Destination
network N
E0/1
S0/0 RTC
E0/0
RTB
RTA
Other networks
10.1.1.0
E0/0 192.168.2.0
E1/0
[RTB]display ip routing-table
Routing Tables: Public
Destinations : 8 Routes : 8
.2
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/30 Direct 0 0 10.1.1.1 Serial0/0/0
RTC 10.1.1.1/32 Direct 0 0 127.0.0.1 InLoopBack0
……
10.1.2.1/32 Direct 0 0 127.0.0.1 InLoopBack0
10.1.2.2/32 Direct 0 0 10.1.2.2 Serial0/0/1
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0
RTC
10.1.2.0/24
.2
OSPF
[RTB]display ip routing-table
RTA RIP .1
Routing Tables: Public
10.1.1.0/8
Destinations : 10 Routes : 10
.2 .1
192.168.2.1/24 RTB Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/30 Direct 0 0 10.1.1.2 Serial0/0/0
10.1.1.1/32 Direct 0 0 10.1.1.1 Serial0/0/0
……
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoopBack0
172.16.1.1/32 OSPF 10 1563 10.1.2.2 Serial0/0/1
192.168.1.0/24 RIP 100 1 10.1.1.1 Serial0/0/0
routers, routers shares network status and network reachable information via
routing protocol.
The communication peers must run same protocols that used to exchange
routing information.
Routing protocol define a set of rules about communication between the routers
Routing protocol maintains routing table and provide the best forwarding path.
AS100 AS200
IS and so on.
DM and so on.
RIP OSPF
10.0.0.0 R0 10.0.0.0 R1
10.0.0.0 R1
Routing table
The router first selects the smaller metric route, and take it into the
routing table.
B C D
5 2
A 2
1
6
F
3
E
5 5
A C D
8
10
Destination makes
logical AND operation
with mask