HC120115001 OSPF Intra-Area Routing
HC120115001 OSPF Intra-Area Routing
HC120115001 OSPF Intra-Area Routing
age 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
Upon completion of this section, you will be able to:
Be familiar with the Router-LSA contents and functions
Be familiar with the Network-LSA contents and functions
Understand the shortest path first (SPF) algorithm
age 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Router-LSA
2. Network-LSA
3. SPF Calculation
age 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
A Router-LSA Describing a Point-to-Point Interface
10.1.13.0/24
RTA RTC
age 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
A Router-LSA Describing a Broadcast or an NBMA
Interface
RID 2.2.2.2
RTB
DR
10.1.235.0/24
RID 3.3.3.3 RID 4.4.4.4
RTC RTE
age 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
A Network-LSA Describing a Broadcast or
an NBMA Network
age 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
LSDB in an OSPF Area
RTA RTB
10.1.12.0/24
10.1.24.0/24
10.1.13.0/24
10.1.235.0/24 RTD
10.1.45.0/24
RTC RTE
<RTA>display ospf lsdb
age 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Router-LSA
2. Network-LSA
3. SPF Calculation
age 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
SPF Algorithm
Phase 1: Create a shortest path tre
e (SPT).
Create an SPT on the basis of topol
ogy information in Router-LSAs an
d Network-LSAs.
Phase 2: Calculate an optimal route
.
Calculate an optimal route on the b
asis of the SPT and the routing info
rmation in Router-LSAs and Networ
k-LSAs.
age 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (1)
<RTA>display ospf lsdb router self-
originate
Total Cost
Parent
Candidate for
Type : Router Node
Candidate
Ls id : 1.1.1.1
Adv rtr : 1.1.1.1 10.1.12.2 1 1.1.1.1
* Link ID: 10.1.12.2 3.3.3.3 48 1.1.1.1
Data : 10.1.12.1
Link Type: TransNet
Metric : 1
* Link ID: 3.3.3.3
Data : 10.1.13.1 1.1.1.1 RTA
Link Type: P-2-P 1
Metric : 48
* Link ID: 10.1.13.0
Data : 255.255.255.0
Link Type: StubNet DR :
Metric : 48 10.1.12.2
Priority : Low
age 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (2)
DR :
10.1.12.2 0
2.2.2.2 RTB
age 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (3)
<RTA>display ospf lsdb router 2.2.2.2
Total Cost
Parent
Candidate for
Type : Router Candidate
Node
Ls id : 2.2.2.2
Adv rtr : 2.2.2.2 3.3.3.3 48 1.1.1.1
* Link ID: 10.1.12.2
10.1.235.2 1+0+1 2.2.2.2
Data : 10.1.12.2
Link Type: TransNet 4.4.4.4 1 + 0 + 48 2.2.2.2
Metric : 1
* Link ID: 10.1.235.2
Data : 10.1.235.2
Link Type: TransNet 1.1.1.1 RTA
Metric : 1 1
* Link ID: 4.4.4.4
Data : 10.1.24.2 DR :
Link Type: P-2-P 10.1.12.2 0
Metric : 48
* Link ID: 10.1.24.0 2.2.2.2 RTB
Data : 255.255.255.0 1
Link Type: StubNet
Metric : 48
DR :
Priority : Low
10.1.235.2
age 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (4)
Total Cost for Parent
Candidate
Candidate Node
3.3.3.3 48 1.1.1.1
DR :
10.1.235.2 0 0
3.3.3.3 5.5.5.5
age 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (5)
age 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating an SPT (6)
age 18 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Optimal Route Calculation
Picks up the routing information from LSAs of all nodes in the SPT.
Starts with the root in the same sequence as they were added to the SPT.
* Link ID: 10.1.13.0
Data : 255.255.255.0
Link Type: StubNet
① Metric : 48
RTA Priority : Low
DR : 4.4.4.4
0 0 * Link ID: 10.1.45.0
10.1.235.2 ⑤ Data : 255.255.255.0
Link Type: StubNet
3.3.3.3 5.5.5.5 Metric : 48
Priority : Low
age 19 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Viewing the OSPF Routing Table
<RTA>display ospf routing
Total Nets: 5
Intra Area: 5 Inter Area: 0 ASE: 0 NSSA: 0
age 20 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Example for Configuring a Single Area OSP
F Network
ospf 1 router-id 1.1.1.1 ospf 1 router-id 2.2.2.2
area 0 area 0
network 10.1.12.0 0.0.0.255 network 10.1.12.0 0.0.0.255
network 10.1.13.0 0.0.0.255 network 10.1.24.0 0.0.0.255
network 10.1.235.0 0.0.0.255
RTA RTB
10.1.12.0/24
10.1.24.0/24
10.1.13.0/24
age 21 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Viewing OSPF Neighbor Status
age 22 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. What types of links can be described by a Router-LSA?
2. Will an OSPF-derived route be certainly installed into a router's routing table?
age 23 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com