0% found this document useful (0 votes)
38 views

15 - HC110110015 Basic Knowledge of IP Routing

Uploaded by

ONGOLO NDINGA
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

15 - HC110110015 Basic Knowledge of IP Routing

Uploaded by

ONGOLO NDINGA
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Basic Knowledge of IP Routing

Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.


Foreword
 The forwarding of frames and switching has introduced the data link layer
operations, and in particular the role of IEEE 802 based standards as the su
pporting underlying communication mechanism, over which upper layer pr
otocol suites generally operate. With the introduction of routing, the physic
s that define upper layer protocols and internetwork communication are es
tablished. An enterprise network domain generally consists of multiple net
works for which routing decisions are needed to ensure optimal routes are
used, in order to forward IP packets (or datagrams) to intended network de
stinations. This section introduces the foundations on which such IP routin
g is based.

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

 An IP network, or networks, controlled by one or more operators with a cle


ar policy that governs how routing decisions are made.

age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Local Area Network and Broadcast Domains

LAN 3

LAN 1 LAN 2

Broadcast Domain Broadcast Domain

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
……

Route Direct OSPF Static RIP


Preference 0 10 60 100

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

路由来源 目标网络 出接口


Direct 10.1.1.0 G0/0/1

Static 192.168.1.0 G0/0/0

OSPF 192.168.2.0 G0/0/0

age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Routing Decisions – Longest Match

RTA RTB RTC

.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

Interface Next Hop Destination

RTA RTB RTC

20.1.1.1/30 20.1.1.2/30
10.1.1.0/30
E0/0/0 E0/0/0

IP
Packet

 The forwarding of packets requires that the destination be known as well a


s the forwarding interface and next-hop.

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

You might also like