Professional Documents
Culture Documents
ZTE University
10.120.2.0 172.16.2.0
E0
S0
Routed protocol: IP
Routing protocol: RIP, OSPF
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Route table
Example
Dest Mask Gw Interface Owner pri metric
172.16.0.1/24
A 192.168.0.2/30
B
IPv4 Routing Table:
Dest Mask Gw Interface Owner pri metric
Stub Network
172.16.1.0
SO
10.0.0.0
B A
B
Network 172.16.2.2 172.16.2.1
172.16.1.0
SO
Network A B
B
172.16.2.2 172.16.2.1
Select the route that has the highest priority to the route
table
RIP OSPF
10.0.0.0/16 fei_1/3
Notice the comparison of Route table
route priority must be between
identical routes.
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Default route priority
Route
Route Source
Source Default
Default priority
priority
Connected interface 0
Static route 1
External BGP 20
OSPF 110
IS-IS 115
RIP v1, v2 120
Internal BGP 200
Special (For inner process) 255
fei_1/1 e1_2/1.1
DDN
Network
serial_3/1
PSTN
fei_1/1 e1_2/1.1
DDN
Network
serial_3/1
PSTN
10.1.1.1?
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Objectives
Routing function
Study and maintain the network topology,produce and maintain ro
ute table
Forwarding function
Data transferring and processing procedure(Receiving data on one
interface,then choose an appropriate interface to send it out, includin
g the work of frame encapsulation and decapsulation)
To router1
Network
Hub/switch
A
Communication
requirement
No need to consider
higher layer protocols
Encapsulate IP decapsulate
address in IP packet
Protocol IP layer packet and send Receiving I IP layer
layer to 192.168.1.2 P packet
ARP
Router Router
DDN
PPP
Network A Network B
Ethernet Ethernet
Communication
requirements
IP IP IP IP IP IP
IP layer IP layer IP layer IP layer
packet packet packet packet packet packet
NO NO
YES
Is gateway YES Is the gateway MAC Data link layer
configured address in ARP? encapsulation
NO NO
End
Get gateway MAC
Send error message
address by ARP
X
C Y
A
B
X Y
Application Application
Presentation Presentation
Session A B C Session
Transport Transport
Network Network Network Network Network
Data Link Data Link Data Link Data Link Data Link
Physical Physical Physical Physical Physical
e1_1/1.1
e1_1/1.1
R3
R1
fei_1/1
fei_1/1 Destination address:
192.168.3.3 192.168.3.0 /24
192.168.2.0 /24
192.168.2.3 A B
192.168.3.3
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Routing process example
R2 route table
192.168.4.0 255.255.255.0 192.168.4.2 e1_1/1.1 direct
0 0
192.168.6.0 255.255.255.0 192.168.6.1 e1_2/1.1 direct
0 0
192.168.1.0 /24 192.168.1.0 255.255.255.0 192.168.1.1 fei_1/1 direct 0
fei_1/1 0
R2
192.168.2.0 255.255.255.0 192.168.4.1 e1_1/1.1 rip
120 1
e1_1/1.1 e1_2/1.1
192.168.3.0 255.255.255.0 192.168.6.2 e1_1/1.1 rip
192.168.4.0 /24 120 1 192.168.6.0 /24
192.168.3.3
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Routing process example
R3 route table
192.168.3.0 255.255.255.0 192.168.3.1 fei_1/1 direct
0 0
192.168.6.0 255.255.255.0 192.168.6.2 e1_1/1.1 direct
192.168.1.0 /24 0 0
fei_1/1 192.168.1.0 255.255.255.0 192.168.6.1 e1_1/1.1 rip
R2 120 1
192.168.4.0 255.255.255.0 192.168.6.1 e1_1/1.1 rip
e1_1/1.1 e1_2/1.1
120 1
192.168.4.0 /24 192.168.6.0
192.168.2.0 /24
255.255.255.0 192.168.6.1 e1_1/1.1 rip
120 2
192.168.2.3 192.168.3.3
ZTE University univ.zte.com.cn
TheinformationcontainedinthefileissolelypropertyofZTEcorporation.Anykindofdisclosingwithoutpermissionisprohibited.
Review
Definition of router
Router functions
Basic conceptions in routing
IP routing process within the same subnet
IP routing process between different subnet