15 - HC110110015 Basic Knowledge of IP Routing
15 - HC110110015 Basic Knowledge of IP Routing
age 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this section, you will be able to:
Explain the principles that govern IP routing decisions.
Explain the basic requirements for packet forwarding.
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Autonomous Systems
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Local Area Network and Broadcast Domains
LAN 3
LAN 1 LAN 2
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Decisions
? Destination
Routers are responsible for the decision making process that determines th
e path via which packets are forwarded.
age 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
IP Routing Table
[Huawei]display ip routing-table
Route Flags: R - relay, D - download to fib
-------------------------------------------------------------
Routing Tables: Public
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
The IP routing table lists the networks that are reachable via the router. Pac
kets that have no route are subsequently discarded.
age 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Decisions – Preference
OSPF OSPF
RTA 20.1.1.0/30 OSPF RTB
10.1.1.0/30
RIP RIP
30.1.1.0/30
[RTA]display ip routing-table
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/30 OSPF 10 60 RD 20.1.1.2 Ethernet0/0/0
……
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Decisions – Metric
Metric = 100
20.1.1.0/30
RTA OSPF OSPF RTB
10.1.1.0/30
Ethernet0/0/1
OSPF OSPF
30.1.1.0/30
Metric = 50
[RTA]display ip routing-table
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/30 OSPF 10 50 RD 30.1.1.2 Ethernet0/0/1
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Establish IP Routing-table
10.1.1.0
RTA
G0/0/0
192.168.2.0
G0/0/1
192.168.1.0
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Decisions – Longest Match
.1 20.1.1.0/30 .2 .2 10.1.1.0/30 .1
Ethernet0/0/0
[RTA]display ip routing-table
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Static 60 0 RD 20.1.1.2 Ethernet0/0/0
10.1.1.0/30 Static 60 0 RD 20.1.1.2 Ethernet0/0/0
Routes to the same network destination will be initially compared and chos
en based on a longest match.
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Table Forwarding Requirements
20.1.1.1/30 20.1.1.2/30
10.1.1.0/30
E0/0/0 E0/0/0
IP
Packet
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Summary
What is the order in which routing decisions are made?
What does the preference represent?
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com