04 OSPF Route Calculation
04 OSPF Route Calculation
Page 1 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Foreword
• Open Shortest Path First (OSPF) routers in the same area have the same link state database
(LSDB). In an area, OSPF uses the shortest path first (SPF) algorithm to calculate routes.
• As the network scale expands, routers consume more memory and CPU resources to calculate
routes. Area partitioning can relieve the pressure on routers to some extent.
• On a large-scale network, there may be other routing protocols besides OSPF. OSPF can import
external routes so that OSPF routers can know the routes to other areas.
• This course describes the principles of OSPF route calculation, including the calculation of
intra-area routes, inter-area routes, and external routes.
Page 2 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
• Upon completion of this course, you will be able to:
▫ Explain functions of key fields in link-state advertisements (LSAs).
▫ Describe the principles for calculating intra-area and inter-area OSPF routes.
Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
▪ Introduction to LSAs
▫ Router-LSA
▫ Network-LSA
Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
OSPF Review
All routers in the same area have the same LSDB. According to the command output of R2, multiple LSAs
exist on the network. <R2>display ospf lsdb
R1 R2
OSPF Process 1 with Router ID 10.0.2.2
Link State Database
Area: 0.0.0.0
R3 R5
What information does each LSA contain? Based on the preceding
Ethernet link Serial link information, how does a router calculate routes?
Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic Concepts of LSAs
Key Fields
• LSAs are the basis for OSPF to calculate routes.
• LS Age: indicates the lifetime of an LSA, in seconds.
• An OSPF Link State Update (LSU) packet can carry
• Options: Each bit corresponds to a feature supported by OSPF.
multiple types of LSAs.
• LS Type: indicates the type of the local LSA.
• LSAs of different types have the same packet header. • Link State ID: indicates the link state ID in the LSA header. This field varies with LSAs.
• Advertising Router: indicates the router ID of the device that generates the LSA.
IP Header OSPF Header LSU Payload
• LS Sequence Number: indicates the sequence number in the LSA header. The value
Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Common LSA Types
Every router on an OSPF network generates Router-LSAs. A Router-LSA describes a router's link state and cost and can be
1 Router-LSA
flooded only in the area to which the interface belongs.
A designated router (DR) generates Network-LSAs. A Network-LSA describes all the routers that establish adjacencies
2 Network-LSA with the DR on the MA network to which the DR is connected and the DR itself. The LSA can be flooded only in the area
to which the interface belongs.
An area border router (ABR) generates Network-summary-LSAs. A Network-summary-LSA describes the route to the
3 Network-summary-LSA
destination network segment of an area. It is used to transmit inter-area routes.
5 AS-external-LSA An ASBR generates AS-external-LSAs. An AS-external-LSA describes routes to destinations outside an AS.
An ASBR generates NSSA LSAs. An NSSA LSA describes routes to destinations outside an AS. NSSA LSAs have similar
7 NSSA LSA functions as AS-external-LSAs, but are flooded in different areas. NSSA LSAs can be flooded only in the NSSA and
cannot enter area 0. The ABR in the NSSA converts Type 7 LSAs into Type 5 LSAs and injects them into area 0.
Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
▫ Introduction to LSAs
▪ Router-LSA
▫ Network-LSA
Page 8 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of a Router-LSA (1)
• Router-LSA (Type 1 LSA): Every router on an OSPF network generates Router-LSAs. A Router-LSA describes a
router's link state and cost.
• Router-LSAs can be flooded only in the area that the interface belongs to.
Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of a Router-LSA (2)
• Router-LSAs use links to carry information about directly connected interfaces on routers.
• Each link contains the link type, link ID, link data, and metric.
Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Router-LSAs: P2P Networks
topology and network segment information. Data : 255.255.255.0 Second link in the
Link Type: StubNet Router-LSA:
Describe the network
Metric : 48 segment information.
Priority : Low
Page 11 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Router-LSAs: TransNet Networks
Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
▫ Introduction to LSAs
▫ Router-LSA
▪ Network-LSA
▫ SPF Calculation Process
Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of a Network-LSA
• Network-LSA (Type 2 LSA): is originated by a DR, describes the link state of the local network segment, and is
advertised in an area to which the DR belongs.
• A Network-LSA records all OSPF routers that have established adjacencies with the DR on the network segment and
carries the network mask of the network segment.
Advertising Router • Network Mask: indicates the subnet mask of the MA network.
LS Sequence Number
• Attached Router: indicates the router ID of the device connected to the
LS Checksum Length
MA network.
Network Mask
Attached Router
...
Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Network-LSAs Describe the MA Network
Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
▫ Introduction to LSAs
▫ Router-LSA
▫ Network-LSA
Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
SPF Algorithm (1)
10.0.3.3 10.0.5.5
Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
SPF Algorithm (2)
Cost 0
10.0.235.0/24
s t0 Co
Co st
0
10.0.4.4 DR
10.0.235.2
Cost
10.145.0/24
48
10.0.3.3 10.0.5.5
Page 18 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
SPF Algorithm Example
R1 R2
SW1
R4
Neighbor to be ignored
R3 R5
Neighbor to be added
Route prefix
Page 19 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 21 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
8. R1 moves the candidate with the lowest total path cost from the candidate list to the Attached Router 10.0.3.3
SPF tree, and deletes the candidate from the candidate list. Attached Router 10.0.5.5
R2
Cost 1 Cost 0 10.0.2.2
R1 DR Cost 1
10.0.1.1 10.0.12.2 Total Candidate
Candidate List Root/Parent Node
Cost
10.0.3.3 48 10.0.1.1
Cost 0 Cost 0
DR 10.0.4.4 1+0+48 10.0.2.2
10.0.235.2
10.0.3.3 1+0+1+0 10.0.235.2
10.0.5.5 1+0+1+0 10.0.235.2
R3 R5
10.0.3.3 10.0.5.5
Page 23 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Cost 1 Cost 0 R2
<R1>display ospf lsdb router 10.0.5.5
10.0.2.2
Cost 1 Type : Router
R1 DR Ls id : 10.0.5.5
10.0.1.1 10.0.12.2 Cost 48
Adv rtr : 10.0.5.5
Page 25 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 26 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Phase 1 Phase 2
Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Verifying the Configuration
Question: Why are not all routes in the OSPF routing table of R1 displayed in the global routing table?
Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. (Multiple) Which of the following link types are included in a Router-LSA?( )
A. P2P
B. TransNet
C. StubNet
D. Vlink
2. (TorF) After the SPF algorithm is used to calculate routes, the OSPF routes that are considered as the
optimal routes are added to the routing table of the router.
Page 29 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Section Summary
• OSPF calculates the routing table based on the LSDB. The LSDB may contain multiple types of
LSAs, and all LSAs have the same packet header format.
• OSPF routers in the same area have the same LSDB. When there is only one area, there are two
types of LSAs in the area: Router-LSA and Network-LSA.
• Each router generates a Router-LSA that describes the information about the directly connected
interface of the router.
• On an MA network, a DR generates a Network-LSA to describe the router IDs (including the
DR itself) of all the routers that access the MA network and the mask of the network.
Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
2. Inter-Area Route Calculation
▪ Inter-Area Route Calculation Process
▫ Inter-Area Routing Loop Prevention Mechanism
Page 31 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Problems in a Single OSPF Area on a Large-Scale
Network
• A network consisting of a series of consecutive OSPF routers is called an
OSPF domain.
• OSPF requires that routers on the network synchronize their LSDBs to keep
consistent network information.
Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Area Partitioning
• Router-LSAs and Network-LSAs are flooded only within an area, so area
Area 0 partitioning reduces the memory and CPU usage of network devices.
R1 Internal router
ABR
R2
… R3
Area 1 R1 Area 2
Area 0
R4
… R5
R4 R2 R3 R5
Area 1 Area N
• After areas are partitioned, routers can be classified into the following types:
▫ Internal router: An internal router has all its interfaces belonging to the same OSPF area, for
example, R1, R4, and R5.
▫ Area border router (ABR): An ABR connects to two or more areas, for example, R2 and R3.
Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Routing Information Transmission
• OSPF inter-area routing information is transmitted through Type 3 Network-Summary-LSAs generated by ABRs.
▫ R3 generates a Network-Summary-LSA and advertises it to area 2. Then, routers in all OSPF areas can learn the route to 192.168.1.0/24.
R1
192.168.1.0/24 192.168.2.0/24
R4 R2 Area 0 R3 R5
Area 1 Area 2
Page 34 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of a Network-Summary-LSA
An ABR generates Network-summary-LSAs (Type 3 LSAs) and advertises them within its area to notify
destination addresses of routes from this area to other areas.
LS Sequence Number ▫ Link State ID: indicates the destination network address of a route.
LS Checksum Length ▫ Advertising Router: indicates the router ID of the device that generates the LSA.
Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example of a Network-Summary-LSA
Network-Summary-LSA
192.168.1.0/24
<R2>display ospf lsdb summary 192.168.1.0
OSPF Process 1 with Router ID 10.0.2.2
Area: 0.0.0.0
192.168.1.0/24 R1 Link State Database
Area 1 Area 2
Area 0 Type : Sum-Net
1
=
R4 R2 R3 R5 Ls id : 192.168.1.0
st
Co
10.0.2.2
Adv rtr : 10.0.2.2
Ls age : 86
Routing
Len : 28
information
Options :E
This LSA is generated by R2 and is used to advertise inter-area 192.168.1.0/24
seq# : 80000001
routes destined for 192.168.1.0/24 to area 0. chksum : 0x7c6d
Net mask : 255.255.255.0
Tos0 metric: 1
Priority : Low
Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Route Calculation on R1 and R3
192.168.1.0/24 192.168.1.0/24 1. Through SPF calculation, the cost of the route from R1 to R2 is
Cost = 1+1 Cost = 1+1+1
1, and that of the route from R3 to R2 is 2.
Cost = 1
2. R1 and R3 calculate routes based on the received Network-
1
R1 Summary-LSAs.
=
st
Area 1 Area 2
Co
Area 0 ▫ R1 adds the cost of the route to R2 and the cost carried in the
1
R4 R2 R3 R5
st
Co
192.168.1.0/24 is 2.
Cost 1
192.168.1.0/24 ▫ R3 adds the cost of the route to R2 and the cost carried in the
Network-summary-LSA. Therefore, the cost of the route from R3 to
192.168.1.0/24 is 3.
The cost of the route from R2 to 192.168.1.0/24 is 1, so the cost of the
route to 192.168.1.0/24 advertised by R2 to area 0 is 1.
Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Route Calculation on R5
192.168.1.0/24
Cost =1+3 1. R3 functions as an ABR. It calculates the route to
192.168.1.0/24 based on the Network-Summary-LSA flooded
in area 0, and reinjects the Network-Summary-LSA to area 2.
R1 Area 2
1
The Network-Summary-LSA contains the cost (value 3) of the
=
st
Co
Area 1
Area 0 route to the network segment.
R4 R2 R3 R5
2. Through SPF calculation, the cost of the route from R5 to R3 is
Network-Summary-LSA
1, so the cost of the route from R5 to 192.168.1.0/24 is 4.
192.168.1.0/24 Cost = 3
Page 38 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Route Calculation Result Verification
<R1>display ip routing-table
Destination/Mask Proto Pre Cost
192.168.1.0/24 OSPF 10 2
R1 <R3>display ip routing-table
Destination/Mask Proto Pre Cost
Area 0 192.168.1.0/24 OSPF 10 3
Area 1 Area 2
R4 R2 R3 R5
<R5>display ip routing-table
Destination/Mask Proto Pre Cost
192.168.1.0/24 OSPF 10 4
Page 39 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
2. Inter-Area Route Calculation
▫ Inter-Area Route Calculation Process
Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Routing Loops
R1
192.168.1.0/24 Area 3
R4 3 R5
R5 advertises the inter-area route to
192.168.1.0/24 to area 3.
Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Routing Loop Prevention Mechanism
(1)
Area 1
Page 42 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Routing Loop Prevention Mechanism
(2)
R1 R2 R3
Area 1 Area 0
Page 43 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Inter-Area Routing Loop Prevention Mechanism
(3)
Type 3 LSAs received by an ABR from a non-backbone area cannot be used to calculate inter-area routes.
The link between R1 and R2 and the link between R3 and R4 are
R1 R2 disconnected, forming the non-contiguous backbone area.
Loopback 0
• R4 advertises the route to 10.0.2.2/32 to area 1 in the form of Type
Area 0 10.0.2.2/32
3 LSA.
Page 44 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
2. Inter-Area Route Calculation
▫ Intra-Area Route Calculation Process
Page 45 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Functions and Configurations of Virtual Links
• OSPF requires that the backbone area should be contiguous physically or logically using virtual links.
• A virtual link can be established between any two ABRs, but the two ABRs must have interfaces connected to the
same non-backbone area.
R1
R4 R2 Area 1 R3 R5
Area 0 Area 2
[R2-ospf-1]ospf 1 [R3-ospf-1]ospf 1
[R2-ospf-1]area 1 [R3-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]vlink-peer 10.0.3.3 [R3-ospf-1-area-0.0.0.1]vlink-peer 10.0.2.2
Page 46 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. (TorF) A Network-summary-LSA can describe only one route.
2. (Essay) How does OSPF prevent inter-area routing loops?
Page 47 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Section Summary
• OSPF introduces the concept of multi-area to support larger-scale networking.
• An OSPF virtual link is a virtual and logical link deployed between two OSPF routers. It
traverses a non-backbone area to connect another non-backbone area to the backbone area (area
0). The virtual link is only used in the scenario where a non-backbone area is not directly
connected to area 0.
Page 48 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. Intra-Area Route Calculation
2. Inter-Area Route Calculation
3. External Route Calculation
Page 49 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Importing External Routes
Common server
Page 50 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Basic Concepts for External Route Import
[R1]ospf 1
[R1-ospf-1]import-route …
External route • Autonomous system boundary router (ASBR): An
192.168.1.0/24
ASBR OSPF device that imports external routes will
become an ASBR, for example, R1 in the figure.
Type 5 LSA
Page 51 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of AS-external LSAs
AS-external-LSA (Type 5 LSA): Originated by an ASBR, an AS-External-LSA describes routes to
destinations outside an AS, and is flooded to all areas except stub areas and NSSAs.
LS Age Options LS Type Main fields
▫ LS Type: The value 5 indicates an AS-external-LSA.
Link State ID
▫ Link State ID: indicates the destination network address of an external route.
Advertising Router ▫ Advertising Router: indicates the router ID of the device that originates the LSA.
LS Sequence Number ▫ Network Mask: indicates the network mask of a route.
LS Checksum length ▫ E: indicates the metric type used by the external route.
▪ 0: The metric type is Metric-Type-1.
Network Mask
▪ 1: The metric type is Metric-Type-2.
E 0 Metric ▫ Metric: indicates the cost of the route to the destination network.
Forwarding Address ▫ Forwarding Address (FA): Packets destined for the advertised destination address
are forwarded to the address specified by this field.
External Route Tag
...
Page 52 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example of an AS-external-LSA
192.168.1.0/24. After the direct route is imported to OSPF on R1, R1 Net mask : 255.255.255.0
TOS 0 Metric: 1
injects an AS-external-LSA that describes the route to 192.168.1.0/24
E type :2
to OSPF. The AS-external-LSA is flooded in the entire OSPF area. Forwarding Address : 0.0.0.0
Tag :1
Priority : Low
Page 53 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Route Calculation on R3
1. External routes are attached to R1.
192.168.1.0/24
2. According to the Advertising Router field in the Type 5 LSA,
Cost 1
R3 determines that the packet needs to pass through R1 before
reaching the external network.
• R3 and R1 (ASBR) are in the same area, so R3 can calculate the route
[R3]display ospf routing to the ASBR based on the flooded Router-LSAs and Network-LSAs.
Destination Cost Type NextHop AdvRouter
• If R5 and R1 are not in the same area, how does R5 calculate external
192.168.1.0/24 1 Type2 10.0.12.1 10.0.1.1
routes?
Page 54 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Description of an ASBR-Summary-LSA
ASBR-Summary-LSA (Type 4 LSA): Originated by an ABR, an ASBR-summary-LSA describes the routes to an ASBR,
and is flooded to related areas. LS Age Options LS Type
Type 4 LSA ▫ Metric: indicates the cost of the route to the destination address.
Page 55 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Example of an ASBR-Summary LSA
Page 56 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Route Calculation on R5
Page 57 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Distinguishing Two Types of OSPF External
Routes (1)
• Metric-Type-1
▫ When the cost of an external route equals that of an AS internal route and can be compared with the cost of an OSPF route, the external route has
high reliability and can be configured as a Metric-Type-1 external route.
▫ The cost of a Metric-Type-1 external route equals that of a link between a router and its ASBR plus the cost of the link between the ASBR and the
destination.
• Metric-Type-2
▫ When the cost of the route from an ASBR to the destination outside an AS is much greater than the cost of the internal route to the ASBR, the
external route has low reliability and can be configured as a Metric-Type-2 external route.
▫ Metric-Type-2 external routes have the same cost as AS external routes. Type 5 LSA
Route to 192.168.1.0/24
Cost of the link between the ASBR
and the destination
Cost of a link
between a router and
192.168.1.0/24 its ASBR
Page 58 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Distinguishing Two Types of OSPF External
Routes (2)
Type Description Cost
Cost of the AS internal route
Metric-Type-1 High reliability.
+ Cost of the AS external route
Low reliability. The cost of the AS external route is much
Metric-Type-2 (default) Cost of the AS external route
greater than the cost of the AS internal route.
The external route type is Metric-Type-1. In the routing table of R3, the cost of
Imported Metric-Type-1 the route to 192.168.1.0/24 is the cost of the external route plus the cost of the
external route internal route from R3 to R1 (ASBR).
Server
192.168.1.0/24
[R5]display ospf routing
Destination Cost Type Tag NextHop AdvRouter
R1 =1
Area 1 st Area 2 192.168.1.0/24 3 Type1 1 10.0.34.3 10.0.1.1
Co
Area 0 The cost of the route to 192.168.1.0/24 in the routing table of R5 is equal to the
cost of the external route plus the cost of the internal route from R5 to R1
R4 R2 R3 =1 R5
st (ASBR).
Co
Page 59 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Quiz
1. (Multiple) Which of the following types of LSAs may be originated by an ABR?( )
A. ASBR-summary-LSA
B. AS-external-LSA
C. Router-LSA
D. Network-summary-LSA
2. (Single) Which of the following routes has the highest priority for the same route prefix?( )
A. Intra-area route
B. Inter-area route
Page 60 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Section Summary
• On a large-scale network, there may be multiple routing protocols. OSPF can import AS external routes to
the local AS so that routers in the AS can learn the routes to other ASs.
• After an ASBR imports external routes into OSPF, the ASBR uses Type 5 LSAs to describe these routes.
Routers in the same area as the ASBR can calculate external routes based on Type 5 LSAs as well as Type
1 and Type 2 LSAs in the area. Routers that are not in the same area as the ASBR need to use Type 4
LSAs to calculate external routes.
• After OSPF imports external routes, you can set the metric type of the routes to Metric-Type-1 or Metric-
Type-2. The cost calculation methods and priorities of external routes with different metric types are
different, Metric-Type-1 routes have a higher priority than Metric-Type-2 routes.
Page 61 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Summary
• This course describes calculation of OSPF intra-area routes, inter-area routes, and external routes.
• Intra-area routes, inter-area routes, Metric-Type-1 external routes, and Metric-Type-2 external routes are
in descending order of priority.
• LSAs carry OSPF link state information. As the network scale expands, network services become
complex. As OSPF areas are partitioned and a large number of external routes are imported, the LSDB of
a router may contain a large number of Type 1, Type 2, Type 3, Type 4, and Type 5 LSAs, which may
cause the device performance to deteriorate.
• What technical means does OSPF use to prevent the device performance from deteriorating while
ensuring network reachability?
Page 62 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
谢谢
Thank You
www.huawei.com
Page 63 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.