01 Advanced IGP Features
01 Advanced IGP Features
Page 1 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Foreword
⚫ Both Open Shortest Path First (OSPF) and Intermediate System to Intermediate System (IS-
IS) are link-state Interior Gateway Protocols (IGPs). Routers that run them synchronize link
state databases (LSDBs) and use the shortest path first (SPF) algorithm to calculate optimal
routes.
⚫ In response to network topology changes, OSPF and IS-IS support multiple fast convergence
and protection mechanisms, which minimize traffic loss caused by network faults.
⚫ To control the size of a routing table, OSPF and IS-IS support route selection and routing
information control.
⚫ This course describes the advanced features of OSPF and IS-IS, including fast convergence
and route control.
Page 2 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Objectives
⚫ On completion of this course, you will be able to:
Describe various fast convergence techniques of OSPF and IS-IS.
Configure OSPF and IS-IS equal-cost routes.
Configure OSPF and IS-IS to advertise default routes.
Describe the application scenarios of OSPF and IS-IS multi-process.
Describe the application scenarios of OSPF forwarding address (FA).
Describe the implementation of IS-IS LSP fragment extension.
Page 3 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. OSPF Fast Convergence
Page 4 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
Page 5 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
PRC
⚫ PRC only calculates routes that have been changed on a network.
⚫ PRC does not calculate nodes. Instead, it updates routes based on the shortest path tree (SPT)
calculated using the SPF algorithm.
R1 (root) • Scenario description:
▫ OSPF runs on a network. The figure shows the SPT with R1 as the root after network
convergence. When R1 accesses R5, traffic is sent to the destination based on [outbound
interface of R1's downlink, IP address of R3's uplink interface].
R2 R3
▫ OSPF is enabled on Loopback0 of R5. This means that a new network segment is added to
the OSPF network.
• PRC:
R4 R5 ▫ R5 floods a new LSA on the entire network.
▫ After receiving the LSA, R1 creates a new route that inherits the original path and next
hop used when R1 accesses R5. In this case, the SPT remains unchanged, and only a leaf is
added to R5.
Loopback0: A directly connected ▫ Therefore, when R1 accesses Loopback0 of R5, traffic is sent to the destination based on
network segment is added. [outbound interface of R1's downlink, IP address of R3's uplink interface].
In route calculation, a node represents a • Benefits:
router, and a leaf represents a route. PRC
processes only the changed leaf information. ▫ PRC focuses only on routes that are changed due to the addition of network segments to
an OSPF network, thereby speeding up route calculation.
Page 6 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent Timer
⚫ The intelligent timer is used for SPF calculation and LSA generation.
⚫ It can quickly respond to a small number of external incidents and prevent excessive CPU
consumption.
▫ The interval for receiving LSAs is 1s. • You can configure the intelligent timer to set a proper
interval for SPF calculation in order to prevent excessive
• On a stable network where routes need to be fast consumption of a router's memory and bandwidth
converged, the intelligent timer can be used to set the resources.
interval for updating LSAs to 0s in order to cancel this
interval. In this manner, topology or route changes can be
immediately advertised to the network through LSAs or be
immediately detected, thereby speeding up route
convergence on the network.
Page 7 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• If the interval for triggering route calculation is long, the network convergence speed is
affected.
• The first timeout period of the intelligent timer is fixed. Before the intelligent timer
expires, if an event that triggers the timer occurs, the next timeout period of the
intelligent timer becomes longer.
Intelligent BFD
Overview PRC FRR
Timer Association
By default, the intelligent timer is enabled; the maximum interval, initial interval, and hold interval at which
LSAs are updated are 5000 ms, 500 ms, and 1000 ms, respectively.
2. The interval at which LSAs are updated for the nth (n ≥ 2) time equals hold-interval x 2(n – 2).
3. When the interval specified by hold-interval x 2(n – 2) reaches the maximum interval specified by max-interval, OSPF
updates LSAs at the maximum interval for three consecutive times. Then, OSPF returns to the first step and updates
LSAs at the initial interval specified by start-interval.
Page 8 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ intelligent-timer: uses the intelligent timer to set the update interval for router-
LSAs and network-LSAs.
▫ max-interval: specifies the maximum interval for updating OSPF LSAs. The value
is an integer ranging from 1 to 120000, in milliseconds. The default value is 5000.
▫ start-interval: specifies the initial interval for updating OSPF LSAs. The value is an
integer ranging from 0 to 60000, in milliseconds. The default value is 500.
▫ hold-interval: specifies the hold interval for updating OSPF LSAs. The value is an
integer ranging from 1 to 60000, in milliseconds. The default value is 1000.
▫ other-type: sets an update interval for OSPF LSAs except router-LSAs and
network-LSAs.
▫ interval: specifies the interval for updating LSAs. The value is an integer ranging
from 0 to 10, in seconds. The default value is 5.
Intelligent BFD
Overview PRC FRR
Timer Association
By default, the intelligent timer is enabled; the maximum interval, initial interval, and hold interval at which
LSAs are received are 1000 ms, 500 ms, and 500 ms, respectively.
2. The interval at which LSAs are received for the nth (n ≥ 2) time equals hold-interval x 2(n – 2).
3. When the interval specified by hold-interval x 2(n – 2) reaches the maximum interval specified by max-interval, OSPF
receives LSAs at the maximum interval for three consecutive times. Then, OSPF returns to the first step and receives
LSAs at the initial interval specified by start-interval.
Page 9 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ intelligent-timer: uses the intelligent timer to set the receive interval for LSAs.
▫ max-interval: specifies the maximum interval for receiving OSPF LSAs. The value
is an integer ranging from 1 to 120000, in milliseconds. The default value is 1000.
▫ start-interval: specifies the initial interval for receiving OSPF LSAs. The value is an
integer ranging from 0 to 60000, in milliseconds. The default value is 500.
▫ hold-interval: specifies the hold interval for receiving OSPF LSAs. The value is an
integer ranging from 1 to 60000, in milliseconds. The default value is 500.
Intelligent BFD
Overview PRC FRR
Timer Association
After the intelligent timer is used, the interval for SPF calculation is as follows:
1. The initial interval for SPF calculation is specified by start-interval.
2. The interval for SPF calculation for the nth (n ≥ 2) time equals hold-interval x 2(n – 2).
Page 10 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ intelligent-timer: uses the intelligent timer to set the interval for OSPF SPF
calculation.
▫ max-interval: specifies the maximum interval for OSPF SPF calculation. The value
is an integer ranging from 1 to 120000, in milliseconds. The default value is
10000.
▫ start-interval: specifies the initial interval for OSPF SPF calculation. The value is
an integer ranging from 1 to 60000, in milliseconds. The default value is 500.
▫ hold-interval: specifies the hold interval for OSPF SPF calculation. The value is an
integer ranging from 1 to 60000, in milliseconds. The default value is 1000.
▫ millisecond interval2: specifies an interval for OSPF SPF calculation. The value is
an integer ranging from 1 to 10000, in milliseconds.
Intelligent BFD
Overview PRC FRR
Timer Association
OSPF IP FRR
⚫ OSPF IP fast reroute (FRR) is a dynamic IP FRR technology that uses the loop-free alternate (LFA)
algorithm to pre-calculate a backup path and saves it in the forwarding table. If the primary link fails,
traffic is rapidly switched to the backup link, ensuring traffic continuity and achieving traffic protection.
OSPF IP FRR can reduce the fault recovery time to less than 50 ms.
⚫ The LFA algorithm calculates a backup link based on the following principles:
A device uses the SPF algorithm to calculate shortest paths to the destination, with each neighbor that provides
a backup link as a root node. The device then uses the inequality to calculate a loop-free backup link with the
minimum cost.
Page 11 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
S E D
Cost = 10 Cost = 5
S: source node
D: destination node
N: node along the
backup link
N S: source node
D: destination node
Traffic flows from node S to node D. The link cost satisfies the link N: node along the
protection inequality. If the primary link fails, node S switches the traffic backup link
N E: faulty node
to the backup link. This ensures that the traffic interruption time is less
than 50 ms. Node-and-link protection must meet the preceding two inequalities.
Page 12 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Node-and-link protection:
▫ As shown in the right figure, traffic flows from node S to node D. The link cost
satisfies the node-and-link protection inequality. If the primary link fails, node S
switches the traffic to the backup link. This ensures that the traffic interruption
time is less than 50 ms.
• OSPF IP FRR protects traffic against either a link failure or a node-and-link failure.
▫ Link protection takes effect when the traffic to be protected flows along a
specified link.
[Huawei-ospf-1] frr
[Huawei-ospf-1-frr]
[Huawei-ospf-1-frr] loop-free-alternate
After OSPF IP FRR is enabled, the device uses the LFA algorithm to calculate the next hop and outbound
interface for a backup link.
OSPF IP FRR can be disabled on an interface of a specific device that is running important services and resides
on an FRR backup link. This setting prevents the device connected to this interface from being a part of a
backup link and being burdened after FRR switches traffic to the backup link.
Page 13 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
Page 14 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
Page 15 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Intelligent BFD
Overview PRC FRR
Timer Association
▫ If a fault occurs on the link between R1 and R2, BFD detects the
fault and notifies R1. R1 processes the BFD session down event and
R3 recalculates the route. The new path is R1-R3-R2.
OSPF
Page 16 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• OSPF periodically sends Hello packets to neighbors to detect faults. It takes more than
1s to detect a fault. By default, when the OSPF Dead timer expires, the neighbor is
considered invalid. The default value of the OSPF Dead timer is 40s. With the
development of technologies, voice, video, and video on demand (VOD) services are
widely used. These services are sensitive to the packet loss rate and delay. When the
traffic rate reaches gigabit per second (Gbit/s), long-time fault detection causes a large
number of packets to be lost. This cannot meet high reliability requirements of the
carrier-class network.
• BFD for OSPF is introduced to resolve this problem. After BFD for OSPF is configured in
a specified process or on a specified interface, the link status can be rapidly detected
and fault detection can be completed in milliseconds. This speeds up OSPF convergence
when the link status changes.
Intelligent BFD
Overview PRC FRR
Timer Association
Page 17 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Prerequisites:
▫ Before using BFD to quickly detect link faults, run the bfd command in the
system view to enable BFD globally.
• The BFD configuration on an interface takes precedence over that in a process. If BFD
is enabled on an interface, the BFD parameters on the interface are used to establish
BFD sessions.
• OSPF IP FRR can be associated with BFD.
▫ During the OSPF IP FRR configuration, the underlying layer needs to fast respond
to a link status change so that traffic can be switched to the backup link
immediately.
▫ OSPF IP FRR and BFD can be bound to rapidly detect link faults. This ensures that
traffic is rapidly switched to the backup link in the case of link failures.
• Command: [Huawei-ospf-1] bfd all-interfaces { min-rx-interval receive-
interval | min-tx-interval transmit-interval | detect-multiplier multiplier-value | frr-
binding }
▫ min-rx-interval receive-interval: specifies an expected minimum interval for
receiving BFD packets from the peer. The value is an integer ranging from 10 to
2000, in milliseconds. The default value is 1000.
▫ min-tx-interval transmit-interval: specifies a minimum interval for sending BFD
packets to the peer. The value is an integer ranging from 10 to 2000, in
milliseconds. The default value is 1000.
▫ detect-multiplier multiplier-value: specifies a local detection multiplier. The
value is an integer ranging from 3 to 50. The default value is 3.
▫ frr-binding: binds the BFD session status to the link status of an interface. If a
BFD session goes down, the physical link of the bound interface also goes down,
triggering traffic to be switched to the backup link.
Contents
1. OSPF fast convergence
Page 18 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Page 19 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• This course describes only equal-cost routes, default routes, and LSA filtering. For other
information, see HCIP-Datacom-Core Technology.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Equal-Cost Route
⚫ If the destinations and costs of the multiple routes discovered by one routing protocol are
the same, these routes are equal-cost routes and can participate in load balancing.
⚫ The device sends packets to the same destination address through multiple equal-cost routes
in load balancing mode.
Page 20 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ number: specifies the maximum number of equal-cost routes for load balancing.
The value range varies according to the device model. For details, see the product
documentation of the corresponding device.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Page 21 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Default Route
⚫ On the area border and AS border of an OSPF network generally reside multiple routers for egress backup or traffic load balancing.
In this case, a default route can be configured to reduce the number of routing entries in the routing table and ensure high
availability of the network.
Advertis Flooding
Area Type Trigger Condition LSA Type
ed by Scope
The default-route-advertise Common
Common area ASBR Type 5 LSA
command is run. area
Stub area and
totally stubby Automatically generated ABR Type 3 LSA Stub area
area
The nssa [ default-route-advertise ]
NSSA ASBR Type 7 LSA NSSA
command is run.
Totally NSSA Automatically generated ABR Type 3 LSA NSSA
Page 22 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Default routes have all 0s as the destination address and mask. A device uses a default
route to forward packets when no matching route is available. Hierarchical
management of OSPF routes prioritizes the default route carried in Type 3 LSAs over
the default route carried in Type 5 or Type 7 LSAs.
• Common area:
▫ By default, routers in a common OSPF area do not generate default routes. To
enable a router in a common OSPF area to advertise a default route to OSPF, run
the default-route-advertise command on the router. After the command is run,
the router generates a default ASE LSA (Type 5 LSA) and advertises it to the
entire OSPF AS.
• Stub area:
▫ Type 5 LSAs cannot be advertised within a stub area. All routers within a stub
area can learn AS external routes only through an ABR.
▫ The ABR in a stub area automatically generates a default Type 3 LSA and
advertises it to the entire stub area. The ABR uses the default route to divert
traffic destined for a destination outside the AS to itself and then forwards the
traffic.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
2. Configure default route advertisement through a Type 3 summary LSA and set a cost for the route.
Page 24 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
The command configuration does not take effect for the LSAs that have been sent out before the command is
run. The aging time of such an LSA is still 3600 seconds.
Page 26 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ acl acl-number: specifies the number of a basic ACL. The value is an integer
ranging from 2000 to 2999.
▫ acl acl-name: specifies the name of an ACL. The value is a string of 1 to 32 case-
sensitive characters. It cannot contain spaces and must start with a letter (a to z
or A to Z).
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
To filter outgoing Type3 LSAs in an OSPF area, run the following command:
To filter incoming Type3 LSAs in an OSPF area, run the following command:
Page 27 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ acl-number: specifies the number of a basic ACL. The value is an integer ranging
from 2000 to 2999.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Set the maximum number of non-default external LSAs allowed in the LSDB.
[Huawei-ospf-1] lsdb-overflow-limit number
Page 28 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• When the number of external LSAs (Type 5 and Type 7) imported by OSPF exceeds the
maximum number supported, excessive external LSAs cannot be processed properly
and are discarded. To address this issue, you can set a proper upper limit for the
number of non-default external LSAs in the LSDB, so as to adjust and optimize the
OSPF network.
Page 29 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
To reduce the number of LSAs on R3 and ensure that 3. Configure R2 to advertise default routes.
R3 can properly communicate with routers in other
[R2] ospf
areas, check that the following requirements are met: [R2-ospf-1] default-route-advertise always
R2 does not inject Type 3 LSAs into Area 1.
R2 advertises default routes.
Page 30 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
AS External Database
Type LinkState ID AdvRouter Age Len Sequence Metric
External 0.0.0.0 10.1.12.2 406 36 80000001 1
• The LSDB of R3 in Area1 does not contain
Type 3 LSAs but contains a default Type 5 LSA. 2. Check the routing table of R3.
• R3 can access devices in other areas through [R3]dis ip routing-table
the default route. Route Flags: R - relay, D - download to fib
-----------------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 O_ASE 150 1 D 10.1.23.2 GigabitEthernet0/0/1
…
Page 31 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Finance Marketing
For details about the data forwarding requirements of the
department client department client Data flow of the marketing department, see the comment of this slide.
finance department
Page 32 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ As long as the border-2 router and its uplink work properly, the data flows of the
marketing department are forwarded only through the border-2 router.
▫ As long as the core-2 router and its uplink work properly, the data flows of the
marketing department are forwarded only through the core-2 router.
• This case uses the data forwarding path of the finance department as an example. The
data forwarding path of the marketing department is not described here.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Requirement Analysis
1. Controlling the network egress for data forwarding:
Finance Marketing
Data of the finance department is always forwarded
department server department server through border-1.
Data of the marketing department is always forwarded
through border-2.
Border-1 Border-2
Finance Marketing
department client department client Data flow of the
finance department
Page 33 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ Because a Type 2 external route offers low reliability, its cost is considered to be
much greater than the cost of any internal route to an ASBR.
▫ Cost of a Type 2 external route = Cost of the route from an ASBR to the
destination
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Core-1 Core-2
On R1, set the cost of the external route to 100; on R2, set
the cost of the external route to 200.
⚫ Configuration result:
AGG-1 AGG-2 When there are two Type 2 external routes with different
costs on the same network segment, the network device
prefers the route with a smaller cost. In this case, each
network device preferentially selects R1 as the egress.
Finance Marketing
department client department client
Page 34 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The internal path cost to each ASBR is not considered during traffic egress control.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Finance Marketing
department client department client Data flow of the
finance department
Page 35 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
AGG-1 AGG-2
S3 Cost=50 S4
Finance Marketing
department client department client Data flow of the
finance department
Page 36 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Cost=10
AGG-1 AGG-2
S3 Cost=50 S4
Finance Marketing
department client department client Data flow of the
finance department
Page 37 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Finance Marketing
department client department client
Page 38 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Finance Marketing
department client department client
Page 39 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Equal-Cost Default LSA Configuration
Overview
Route Route Filtering Case
Cost=10
OSPF
Area 0
Core-1 Core-2
S1 Cost=10 S2
Cost=10
AGG-1 AGG-2
S3 Cost=50 S4
OSPF OSPF
Area 1 Area 2
Finance Marketing
department client department client
Page 40 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. OSPF fast convergence
Page 41 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Multi- Association Forwarding
Process with BGP Address
OSPF Multi-Process
⚫ OSPF supports multiple processes that can separately run on the same device and do not affect each other. Route
exchange between different OSPF processes is similar to route exchange between different routing protocols.
⚫ An interface on a router can belong to only one OSPF process.
Page 42 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• If a VPN instance is specified for an OSPF process that is to be created, the OSPF
process belongs to this instance. Otherwise, the OSPF process belongs to the global
instance.
Multi- Association Forwarding
Process with BGP Address
When the network is stable, the traffic from R1 to 10.1.5.5/32 traffic. As a result, traffic is lost.
Page 43 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Multi- Association Forwarding
Process with BGP Address
Page 44 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▪ If on-startup is not configured, the device is always a stub router. That is,
the cost of all routes sent by this device is 65535.
Page 45 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Multi- Association Forwarding
Process with BGP Address
10.1.123.2 10.1.123.3 2. R2 imports the static route to OSPF and generates a Type 5
GE0/0/1 GE0/0/1 LSA to be flooded in the area.
R2 R3
2 Imports Type 5 LSA 3. After R3 receives the Type 5 LSA from R2, it calculates an
the route 10.1.1.1/32 3 external route to 10.1.1.1/32 and sets the next-hop address
to OSPF.
of the route to R2 (10.1.123.2).
⚫ The path from a router (for example, R4) in the OSPF domain to
OSPF R4 10.1.1.1/32 is R4 -> R3 -> R2 -> R1, which is the sub-optimal path.
Page 46 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Multi- Association Forwarding
Process with BGP Address
10.1.123.2 10.1.123.3
⚫ When R3 receives the LSA, it calculates the route to
GE0/0/1 GE0/0/1 10.1.1.1/32 and finds that the FA is not 0.
R2 R3
2 Imports Type 5 LSA Therefore, R3 considers that the next hop to
the route 10.1.1.1/32 3
to OSPF. FA=10.1.123.1 10.1.1.1/32 is the address specified by the FA, that
is, 10.1.123.1.
OSPF R4
Page 47 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Multi- Association Forwarding
Process with BGP Address
FA Values
⚫ When an ASBR imports external routes, if the FA field in the Type 5 LSA is 0, the router considers that the data
packets destined for the destination network segment should be sent to the ASBR. If the FA field in a Type 5 LSA is
not 0, the router considers that the data packet destined for the destination network segment should be sent to the
device identified by the FA.
⚫ The FA field can be set to a non-zero value only when all the following conditions are met:
The ASBR activates OSPF on the interface (outbound interface of the external route) connected to the external network.
The preceding interface is not configured as a silent interface.
The OSPF network type of such an interface is broadcast or NBMA.
The IP address of the interface is within the network segment specified by the network command in the OSPF configuration.
• The route to the FA must be an OSPF intra-area route or an inter-area route. In this manner, the router that
receives the external LSA can add the LSA into the routing table. The next hop of the route generated using the
loaded external LSA is the same as the next hop to the FA.
Page 48 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ The propagate bit (P-bit) in the Options field of an LSA header is used to notify a
translator whether the Type 7 LSA needs to be translated into a Type 5 LSA. A
Type 7 LSA can be translated into a Type 5 LSA only when the P-bit is set to 1
and the FA is not 0.
• Note: All OSPF LSAs have the same LSA header, and the P-bit is in the Options field of
the LSA header.
Multi- Association Forwarding
Process with BGP Address
⚫ As shown in the figure, if the FA is not considered, R1 considers that the packet must pass through the ABR (R3) to reach the
destination because the router ID of R3 is greater than that of R2. In this way, traffic is diverted to the low-bandwidth link R1 -> R3 -
> R4 -> R5.
Router ID 10.1.3.3
R3
▫ Configure R5 to import direct external routes and set the IP address of the FA to
10.1.45.5, which is used by R5 to access the destination network segment
10.1.5.0/24.
▫ R3 translates Type 7 LSAs into Type 5 LSAs and the LSAs continue to carry the FA
10.1.45.5.
▫ Upon receipt, R1 searches its OSPF routing table for a route to the FA and uses
the next hop address of the route as the next hop address of the external route.
Page 50 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
Page 51 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The functions, including PRC, intelligent timer, and FRR, of IS-IS are similar to those of
OSPF and therefore not detailed here.
Fast Route Other
Convergence Control Features
I-SPF
I-SPF implementation: When the network topology changes, I-SPF recalculates routes only for
affected nodes instead of all nodes, speeding up route calculation.
R1 (root) • Scenario description:
▫ On an IS-IS network, an SPT with R1 as the root is calculated after route
convergence, as shown in the left figure. When R1 accesses R5, the traffic of
R1 is forwarded to R5 based on [the outbound interface of R1's downlink and
R2 R3
the IP address of the inbound interface of R3's uplink].
▫ R6 is added as a downstream device of R5. IS-IS is enabled on R6, meaning
that there is a new network node on the IS-IS network.
R4 R5
• I-SPF calculation:
▫ R5 and R6 both flood LSPs carrying information about their neighbor
R6 (new) relationship on the entire network.
▫ After receiving such an LSP, R1 performs I-SPF calculation only for R5 and R6
to generate a new SPT.
▫ Therefore, when R1 accesses R5 and R6, the traffic of R1 is forwarded to R5
In route calculation, a node represents a router,
and R6 based on [the outbound interface of R1's downlink and the IP address
and a leaf represents a route. I-SPF processes
of the inbound interface of R3's uplink].
the information of only changed nodes.
Page 52 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• SPF for route calculation: If a node on a network changes, SPF recalculates routes for
all the nodes on the network, which takes a long time, consumes a large number of
CPU resources, and consequently reduces the network-wide convergence speed.
• I-SPF is an improvement of SPF. Unlike SPF that calculates all nodes, I-SPF calculates
only affected nodes. The SPT generated using I-SPF is the same as that generated
using SPF. This significantly decreases CPU usage and speeds up network convergence.
▫ If the SPT calculated by I-SPF changes, PRC processes all the leaves (routes) of
only the changed node.
▫ If the SPT calculated by I-SPF does not change, PRC processes only the changed
leaves (routes). For example, if IS-IS is newly enabled on an interface of a node,
the SPT on the network remains unchanged. In this case, PRC updates only the
routes of this interface, which consumes less CPU resources.
Fast Route Other
Convergence Control Features
Page 53 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ lsp-count: specifies the maximum number of LSPs that can be flooded on each
interface at a time. The value is an integer ranging from 1 to 15. The default
value is 5.
▫ level-1: enables the LSP flash-flood function in the Level-1 area. If no level is
specified in the command, this function is enabled in both Level-1 and Level-2
areas.
▫ level-2: enables the LSP flash-flood function in the Level-2 area. If no level is
specified in the command, this function is enabled in both Level-1 and Level-2
areas.
Fast Route Other
Convergence Control Features
Page 54 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• This course involves only equal-cost and default routes. For details about other control
methods, see HCIP-Datacom-Core Technology.
Fast Route Other
Convergence Control Features
Equal-Cost Route
If there are multiple redundant links on an IS-IS network, multiple equal-cost routes to the
same destination may exist. In this case, you can use either of the following methods to
configure equal-cost routes:
Configure load balancing so that traffic is evenly distributed to relevant links.
◼ This method improves link utilization and reduces the possibility of congestion caused by overloaded links.
However, because traffic will be randomly forwarded, this method may make traffic management difficult.
Configure a preference for each equal-cost route so that the route with the highest preference is
preferentially selected and the others function as backups.
◼ This method is used to specify the preferred route among multiple equal-cost routes, without the need to
modify original configurations. It facilitates traffic management and improves network reliability.
◼ Note: After preferences are configured for equal-cost routes, IS-IS devices forward traffic to the next hop
with the highest preference, instead of forwarding traffic in load balancing mode.
Page 55 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
Configure the maximum number of equal-cost routes that participate in load balancing.
2. Configure preferences for equal-cost IS-IS routes.
By default, no preferences are configured for equal-cost IS-IS routes. A smaller value indicates a higher
preference.
If the number of equal-cost routes is greater than the number specified using the maximum load-balancing
command, routes are selected for load balancing according to the following rules in sequence:
1. Route preference: Routes with smaller preference values (higher preferences) are selected for load balancing.
2. Next-hop system ID: If all equal-cost routes have the same preference, routes with smaller next-hop system IDs are selected for
load balancing.
3. Local outbound interface index: If all equal-cost routes have the same preference and next-hop system ID, routes with smaller
local outbound interface indexes are selected for load balancing.
Page 56 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ ip-address: specifies the IP address of the next hop. The value is in dotted decimal
notation.
▫ weight value: specifies the weight of the next hop. A smaller value indicates a
higher preference. The value is an integer ranging from 1 to 254.
Fast Route Other
Convergence Control Features
GE0/0/0 10.1.13.1/24
R1 3. Verify the configuration.
GE0/0/1 10.1.12.1/24
[R1]display ip routing-table
GE0/0/1 10.1.12.2/24 Route Flags: R - relay, D - download to fib
R2
GE0/0/2 10.1.23.2/24 -------------------------------------------------------------------------------------------
Loopback0 10.1.3.3/32
Destination/Mask Proto Pre Cost Flags NextHop Interface
R3 GE0/0/0 10.1.13.3/24 10.1.3.3/32 ISIS-L2 15 10 D 10.1.13.3 GigabitEthernet0/0/0
GE0/0/2 10.1.23.3/24 ISIS-L2 15 10 D 10.1.12.2 GigabitEthernet0/0/1
Page 57 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
[R1] isis
Device Interface IP Address [R1-isis-1] nexthop 10.1.13.3 weight 1
[R1-isis-1] nexthop 10.1.12.2 weight 2
GE0/0/0 10.1.13.1/24
R1
GE0/0/1 10.1.12.1/24 3. Verify the configuration.
Page 58 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
Default Route
⚫ IS-IS allows you to control the generation and advertisement of default routes using the following
methods:
On Level-1-2 devices, configure a rule for setting the attached (ATT) bit in Level-1 LSPs.
Configure Level-1 devices not to automatically generate default routes even if they receive Level-1 LSPs with the
ATT bit set to 1.
Configure devices to advertise default routes to the IS-IS routing domain.
⚫ LSP packet format:
The ATT bit is generated by a Level-1-2 router to identify whether the originating router connects to other
areas. Note that the ATT field has four bits, and Huawei datacom products use only one of the four bits.
Page 59 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
By default, the Level-1-2 device sets the ATT bit in LSPs following the default rules.
2. (Level-1 device) Configure the device not to generate a default route after it receives LSPs carrying ATT bit 1.
By default, a Level-1 device generates a default route after it receives LSPs carrying ATT bit 1.
Page 60 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ always: indicates that the ATT bit is set to 1. After receiving an LSP with ATT bit
1, a Level-1 device generates a default route.
▫ never: indicates that the ATT bit is set to 0. This prevents the Level-1 device from
generating default routes and reduces the size of the routing table.
• Although the ATT bit is defined in both Level-1 and Level-2 LSPs, it is set to 1 only in
Level-1 LSPs advertised by Level-1-2 devices. Therefore, this command takes effect only
on Level-1-2 devices.
• To prevent Level-1 devices from advertising default routes to their routing tables,
perform either of the following operations:
• The difference between the preceding commands lies in that the attached-bit avoid-
learning command applies to specified Level-1 devices.
Fast Route Other
Convergence Control Features
Page 61 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Page 63 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
Page 64 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
▫ In IS-IS multi-process, processes share the same global routing table. IS-IS multi-
instance, however, uses the routing tables of VPNs, with each VPN having a
separate routing table.
▫ When creating an IS-IS process, you can bind it to a VPN instance. The IS-IS
process then accepts and processes only the events related to the VPN instance.
When the bound VPN instance is deleted, the IS-IS process is also deleted.
LSP Fragment
⚫ When a PDU to be advertised by IS-IS contains too much information, an IS-IS router generates LSP
fragments to carry the information.
⚫ LSP packet format
⚫ An IS-IS LSP fragment is identified by the 1-byte LSP Number field in LSP ID. So, an IS-IS process can
generate a maximum of 256 LSP fragments, which means only limited information can be carried.
Page 65 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Fast Route Other
Convergence Control Features
⚫ After LSP fragment extension is configured, the system prompts you to restart the IS-IS process if information is lost because LSPs
overflow. After the IS-IS process is restarted, the originating system loads as much routing information as possible to its LSPs. The
information that cannot be loaded is placed in the LSPs of virtual systems for transmission. The originating system then notifies
other routers of its relationship with the virtual systems through TLV 24.
Page 66 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• The additional and normal system IDs must be unique throughout a routing domain.
Fast Route Other
Convergence Control Features
Mode-1 Mode-2
• Used when some routers on the network do not support LSP • Used when all the routers on the network support LSP fragment
fragment extension. extension.
Calculates routes R1-1 Considers received LSP-1 R1-1
separately for the received LSP R1 virtual and LSP-2 both the routing LSP R1 virtual
LSP-1 and LSP-2. system information of R1 and system
calculates routes uniformly.
R2 R1 R1-2 R2 R1 R1-2
Does not support LSP R1 virtual R1 virtual
fragment extension. system system
• As the figure shown, R1 loads some routing information to the LSPs • As the figure shown, R1 loads some routing information to the LSPs
of R1-1 and R1-2 for transmission. When R2 receives the LSPs from of R1-1 and R1-2 for transmission. When R2 receives LSPs from R1-1
R1, R1-1, and R1-2, it considers that there are three independent and R1-2, it knows that their originating system is R1 based on TLV
routers at the peer end and calculates routes as normal. The costs of 24. R2 then considers information advertised by R1-1 and R1-2 as
the routes from R1 to R1-1 and from R1 to R1-2 are both 0, meaning information of R1.
that the routes from R2 to R1 and from R2 to R1-1/R1-2 share the
same cost.
Page 67 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
• Mode-1 implementation:
▫ Virtual systems participate in SPF calculation. The LSPs advertised by the
originating system contain information about links to each virtual system.
Similarly, the LSPs advertised by each virtual system contain information about
links to the originating system. In this way, virtual systems function like physical
routers that connect to the originating system.
▫ Mode-1 is a transitional mode used to support earlier versions that are incapable
of LSP fragment extension. In these earlier versions, IS-IS cannot identify TLV 24.
As a result, the LSPs sent by a virtual system must look like LSPs sent by an
originating system.
▫ Precautions:
▪ The LSPs sent by a virtual system must contain the same area address and
overload bit as those in LSPs sent by an originating system. Other TLVs
must also be the same.
▪ The neighbor of a virtual system must point to an originating system, and
the metric is the maximum value minus 1. The neighbor of the originating
system must point to the virtual system, and the metric must be 0. This
ensures that the virtual system is the downstream node of the originating
system when other routers calculate routes.
Fast Route Other
Convergence Control Features
Note: The preceding two commands must be used together. The configured virtual system ID takes effect only after
LSP fragment extension is enabled and the IS-IS process is restarted using the reset isis all command.
Page 69 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
C. Intelligent timer
D. OSPF IP FRR
B. False
3. (TorF) On an IS-IS network, if a device runs mode-2 LSP fragment extension, virtual systems do not participate in
SPF calculation. All routers on the network know that the LSPs generated by the virtual systems actually belong to
the originating system. ( )
A. True
B. False
Page 70 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
1. CD
2. B
3. A
Summary
⚫ To better adapt to network topology changes, OSPF and IS-IS support multiple fast convergence
modes. I-SPF and PRC algorithm speed up route calculation; FRR enables fast traffic switching to the
backup link; and intelligent timers allow you to control the speeds at which link state information is
generated and routes are calculated.
⚫ To control the size of routing tables and improve network performance, OSPF and IS-IS support route
filtering, equal-cost routes, and default routes.
⚫ To isolate protocol routing tables, OSPF and IS-IS support multi-process deployment on the same
device. Protocol routing tables of different processes do not affect each other.
⚫ To prevent a sub-optimal route from being selected when external routes are imported, OSPF uses the
FA in Type 5 or Type 7 LSAs to guide data packet forwarding.
⚫ Thanks to the preceding features, OSPF and IS-IS are widely and flexibly used on live networks.
Page 71 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com
Page 72 Copyright © 2020 Huawei Technologies Co., Ltd. All rights reserved.