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
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
Route table
Example
Dest Mask Gw Interface Owner pri metric
Directly
Default route
connected route
A 192.168.0.2/30 172.16.0.1/24
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 BB
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 Route table
priority must be between identical
routes.
ZTE University univ.zte.com.cn
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
Default route priority
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
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
Objectives
Routing function
Study and maintain the network topology,produce and maintain
route table
Forwarding function
Data transferring and processing procedure(Receiving data on one
interface,then choose an appropriate interface to send it out,
including 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 IP layer
layer to 192.168.1.2 IP 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
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
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 255.255.255.0 192.168.1.1 fei_1/1 direct 0 0
192.168.2.0 255.255.255.0 192.168.4.1 e1_1/1.1 rip 120 1
192.168.1.0 /24 192.168.3.0 255.255.255.0 192.168.6.2 e1_1/1.1 rip 120 1
fei_1/1
R2
e1_1/1.1 e1_2/1.1
192.168.3.3
ZTE University univ.zte.com.cn
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
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 0 0
192.168.1.0 255.255.255.0 192.168.6.1 e1_1/1.1 rip 120 1
192.168.1.0 /24 192.168.4.0 255.255.255.0 192.168.6.1 e1_1/1.1 rip 120 1
fei_1/1 192.168.2.0 255.255.255.0 192.168.6.1 e1_1/1.1 rip 120 2
R2
e1_1/1.1 e1_2/1.1
192.168.2.3 192.168.3.3
ZTE University univ.zte.com.cn
The information contained in the file is solely property of ZTE corporation. Any kind of disclosing without permission is prohibited.
Review
Definition of router
Router functions
Basic conceptions in routing
IP routing process within the same subnet
IP routing process between different subnet