Professional Documents
Culture Documents
Advanced Routing
Feature
www.huawei.com
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page2
Objectives
Upon completion of this course, you will be able to:
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page3
Contents
1. OSPF Reliability
2. OSPF LSDB
3. OSPF VPN
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page4
Contents
1. OSPF Reliability
2. OSPF LSDB
3. OSPF VPN
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page5
Contents
1. OSPF Reliability
1.1 OSPF Fast Convergence
1.2 OSPF GR
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page6
Factors Affecting OSPF Convergence Speed
Detection Originate Flooding
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page7
Shortening OSPF Convergence Time
Detection Originate
Flooding SPT
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page8
Reducing the Fault Detection Time
! !
Common fault detection mechanisms are described as follows:
Hardware detection: For example, the SDH alarm function can be used to detect link
faults.
Hello mechanism: It usually refers to the Hello mechanism of routing protocols. The
Hello mechanism can detect a fault in seconds.
Other fault detection mechanisms: Protocols and vendors may provide dedicated fault
detection mechanisms, such as bidirectional forwarding detection (BFD).
Common fault detection methods used in NE series routers are as follows:
Adjust the value on the Hello timer: Set the interval for sending Hello packets to a smaller
value.
Configure BFD for OSPF: Associate BFD with OSPF.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page9
Reducing the Fault Detection Time—
Configuration Examples
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page10
Intelligent Timer
The OSPF intelligent timer controls route calculation, LSA generation,
and LSA receiving to speed up network convergence. The OSPF
intelligent timer speeds up network convergence in two ways:
In a network where routes are repeatedly calculated, the OSPF intelligent
timer dynamically adjusts the interval for calculating routes through the
user configuration and the exponential damping technology. In this
manner, the route calculation and the CPU resource consumption are
decreased. Routes are calculated after the network topology becomes
stable.
In an unstable network, if a router generates or receives LSAs due to
frequent topology changes, the OSPF intelligent timer can dynamically
adjust the interval for calculating routes. No LSA is generated or handled
within an interval, which prevents invalid LSAs from being generated and
advertised in the entire network.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page11
Setting the LSA Updating and Receiving
Intervals
In a stable network that has high requirements for the route
convergence time, the updating and receiving of LSAs can be
expedited in two ways:
Set the interval for updating LSAs to 0 to disable LSA updating. In this
way, any changes on the network topology or routes can be
immediately advertised in the network through LSAs.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page12
Setting the LSA Updating and Receiving
Intervals——Configuration Examples
Set the interval for updating LSAs:
[HUAWEI-ospf-1]lsa-originate-interval 0
//Set the interval for updating LSAs to 0s. When there is any
change in the network, LSAs are generated and advertised
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page13
Setting the SPF Calculation Interval
LSAs have been Sorry, It's not time for
flooded! Calculate calculation, I have to
right now! wait!
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page14
Applying the OSPF Fast Convergence
Feature-Networking Application
B-A-AR-NE80E-1 B-A-AR-NE80E-2
190.1.1.1/32 190.1.1.2/32
190.1.1.8/30
B-A-FW-1 B-A-FW-2
190.1.1.3/32 190.1.1.4/32
190.1.1.40/29
VRRP
OSPF
Area 0
190.1.1.28/30 190.1.1.32/30
190.1.1.36/30
VRRP VIP B-A-CE-4
B-A-CE-3 190.1.1.134/27 190.1.1.8/32
190.1.1.7/32
190.1.1.130/27 190.1.1.131/27
B-A-MSS-1
190.1.1.129/27
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page15
Applying the OSPF Fast Convergence
Feature- Configuration Examples
B-A-AR-NE80E-1 B-A-AR-NE80E-2
190.1.1.1/32 190.1.1.2/32 To implement service isolation,
Eth4/0/0.30
Eth4/0/0.30 that is, the isolation of signaling
Eth4/0/6.30 Eth4/0/6.30
traffic from network management
traffic, sub-interfaces are used to
190.1.1.40/29
connect signaling on the AR and
B-A-FW-2
B-A-FW-1
190.1.1.3/32
190.1.1.4/32 CE.
Eth4/0/6.30 Eth4/0/6.30
Eth4/0/0.30
Eth4/0/0.30 B-A-CE-4
B-A-CE-3 190.1.1.8/32
190.1.1.7/32
190.1.1.130/27 190.1.1.131/27
B-A-MSS-1
190.1.1.129/27
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page16
Applying the OSPF Fast Convergence
Feature- Configuration(1/2)
[B-A-AR-NE80E-1]ospf 10 router-id 190.1.1.1 vpn-instance signal
[B-A-AR-NE80E-1-ospf-10]spf-schedule-interval millisecond 100
//Run the following command to set the SPF calculation interval to 100 ms:
[B-A-AR-NE80E-1-ospf-10]lsa-originate-interval 0
//Set the interval for updating LSAs to 0 ms to disable LSA updating. In this
way, any changes on the network topology or routes can be immediately
advertised in the network through LSAs, speeding up route convergence in the
network.
[B-A-AR-NE80E-1-ospf-10]lsa-arrival-interval 0
//Set the interval for receiving LSAs to 0 ms so that changes on the network
topology or routes can be sensed immediately.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page17
Applying the OSPF Fast Convergence
Feature- Configuration(2/2)
[B-A-AR-NE80E-1-Ethernet4/0/0.30]ospf bfd enable
//Enable BFD for interfaces and establish a BFD session.
[B-A-AR-NE80E-1-Ethernet4/0/0.30]ospf bfd min-rx-interval 10
min-tx-interval 10 detect-multiplier 5
//Set parameters for the BFD session.
[B-A-AR-NE80E-1]interface Ethernet 4/0/6.30
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ip binding vpn-instance
signal
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ip address 190.1.1.29
255.255.255.252
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ospf network-type p2p
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ospf timer hello 1
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ospf bfd enable
[B-A-AR-NE80E-1-Ethernet4/0/6.30]ospf bfd min-rx-interval 10
min-tx-interval 10 detect-multiplier 5
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page18
Contents
1. OSPF Reliability
1.1 OSPF Fast Convergence
1.2 OSPF GR
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page19
OSPF GR
Route withdraw
leading to global
flapping
M S
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page20
Basic Concepts of GR
The concepts involved in the GR are described as
follows:
GR Restarter, GR Helper
GR Session, GR Time
GR Time GR Time
GR Session GR Session
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page21
OSPF GR Process
RouterA RouterB
Restarter Helper
Grace-LSA
Before the active/standby switchover
Enter Helper
Perform switchover
LS Ack
Finish switchover Return LSAck packet for the received L
Grace-LSA
Enter GR
Update the GR period for the
Grace-LSAs received Grace-LSAs
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page22
OSPF GR-Configuration Task
.1 10.1.2.0/24 .2
RTA RTB
Area0
.2 .2
10.1.1.0/24
10.1.3.0/24
Area1 Area2
.1 .1
RTD RTC
Each of Router A, Router B, and Router D uses two MPUs in master/slave mode.
Routers interconnect with each other using OSPF and provide the GR mechanism
It is required that traffic forwarding is not interrupted when Router A restarts the
OSPF process in GR mode or performs a master/slave MPU switchover.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page23
OSPF GR Configuration-Example(1/4)
1. Configure IP addresses of interfaces. (Omit)
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page24
OSPF GR Configuration-Example(2/4)
4. Enable the OSPF GR function on Router A, Router B,
and Router D.
[RouterA] ospf 1
[RouterA-ospf-1] graceful-restart
[RouterB] ospf 1
[RouterB-ospf-1] graceful-restart
[RouterD] ospf 1
[RouterC-ospf-1] graceful-restart
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page25
OSPF GR Configuration-Example(3/4)
5. Verify the configuration
<RouterA> display ospf 1 graceful-restart
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page26
OSPF GR Configuration-Example(4/4)
Run the reset ospf process graceful-restart command in the user view
on Router A to restart OSPF process: run the display ospf peer
command on Router D to view the OSPF adjacency relationship with
: ospf 1 process graceful-restart
Router Areset
<RouterA>
<RouterD> display ospf 1 peer
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page27
Contents
1. OSPF Reliability
2. OSPF LSDB
3. OSPF VPN
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page28
Contents
2. OSPF LSDB
2.1 Networking and Service Description
2.2 LSDB
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page29
OSPF Configuration in the MAN
Area 0
Backbone
BR-2
BR-1
MAN
OSPF domain
Area 10 Area 20
NSSA
AR-1 AR-2
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page30
OSPF Configuration in the MAN-Network
Topology
BR-1
Area 10 Area 20
NSSA
AR-1 AR-2
Area 0
Backbone
Area 10 Area 20
NSSA
MAN
OSPF Routing
BR-2 Domain
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page31
OSPF Configuration in the MAN-Interface
and IP Address
BR-1 L0: 3.3.3.3/32
200.1.1.0/30
AR-1 AR-2
E1/0/1
MAN
BR-2
L0: 4.4.4.4/32 OSPF
Routing
Domain
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page32
OSPF Configuration in the MAN-
AR Configuration
[AR-1]display current-configuration configuration ospf
#
ospf 1 router-id 1.1.1.1
import-route direct route-policy loopback1
area 0.0.0.10
network 200.1.4.0 0.0.0.3
network 200.1.5.0 0.0.0.3
#
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page33
OSPF Configuration in the MAN-
BR Configuration
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page34
Contents
2. OSPF LSDB
2.1 Networking and Service Description
2.2 LSDB
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page35
LSA Header Structure
16 24 32Bits
Link State ID
Advertising Router
LS sequence number
LS checksum Length
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page36
Introduction to LSA
TYPE Name Description
1 Router-LSA Describes the link status and link cost of a router. It is generated by
every router and advertised in the area to which the router belongs.
3 Network- Describes the routes from a network segment to an area in the AS. It
Summary-LSA is generated by the ABR and advertised in the area where the LSA is
generated.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page37
Type1 LSA
[AR-1]display ospf lsdb router self-originate
Type : Router
Ls id : 1.1.1.1
Adv rtr : 1.1.1.1
Ls age : 1487
Len : 48
Options : ASBR
seq# : 80000011
chksum : 0xeefc
Link count: 2
Link ID: 200.1.4.2
Data : 200.1.4.1
Link Type: TransNet
Metric : 1
Link ID: 200.1.5.2
Data : 200.1.5.1
Link Type: TransNet
Metric : 1
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page38
Type2 LSA
[BR-1]display ospf lsdb network self-originate
Area: 0.0.0.10
Link State Database
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page39
Type3 LSA
[AR-1]display ospf lsdb summary originate-router 3.3.3.3
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page40
Type4 LSA
[BR-1]display ospf lsdb asbr
OSPF Process 1 with Router ID 3.3.3.3
Link State Database
Area: 0.0.0.0
Type : SumASB LSA Type
Ls id : 1.1.1.1
Adv rtr : 3.3.3.3 ID of advertise router
Ls age : 566
Len : 28
Seq# : 80000007
Chksum : 0xf032
Options : (DC) Cost to the
Tos 0 metric: 1 destination
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page41
Type5 LSA
[BR-1]display ospf lsdb ase
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page42
Type7 LSA(1/2)
[AR-2]display ospf lsdb nssa
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page43
Type7 LSA(2/2)
... ...
Type : NSSA
Ls id : 0.0.0.0
Adv rtr : 4.4.4.4
Ls age : 59
Len : 36
Options : None
seq# : 80000001
chksum : 0x8838
Net mask : 0.0.0.0 The default route
TOS 0 Metric: 1 advertised by BR-2
E type : 2
Forwarding Address : 0.0.0.0
Tag : 1
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page44
Contents
1. OSPF Reliability
2. OSPF LSDB
3. OSPF VPN
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page45
Contents
3. OSPF VPN
3.1 Multi-VPN-instance CE
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page46
Multi-VPN-instance CE
AR AR
The MCE extends the Multi-VPN-instance
function to CEs. Therefore, like a PE, the MCE
can maintain multiple independent VPN routing
tables
bind OSPF1 with Signal
IP forwarding between the MCE and PE is
MCE
bind OSPF2 with Media maintained .Therefore,LDP need not run on the
CE CE MCE.
MCE
the VPN-instances on the PEs correspond to
these VPN-instances.
OSPF processes are bound with VPN-
Instances to form OSPF Multi-instances. Thus,
signaling and media traffic are separated.
OSPF VPN-instances use independent VPN
routing tables. Routing information is isolated
between OSPF VPN-instances.
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page47
MCE Applications –Network Topology
B-A-AR-NE80E-1 B-A-AR-NE80E-2
Description
172.16.8.65 172.16.8.66
S:E4/0/7.10 indicates that signaling
S:E4/0/0.30 packets are transmitted over the sub-
interface Ethernet 4/0/7.10.
OSPF
S:E4/0/7.10 S:E4/0/7.10 Area 0 M:E4/0/7.20 indicates that media
M:E4/0/7.20 M:E4/0/7.20 traffic is transmitted over the sub-
B-A-CE-1 B-A-CE-2
172.16.8.75 172.16.8.76 interface Ethernet 4/0/7.20.
S:E4/0/6.10
M:E4/0/6.20 BFD:G2/0/0 indicates that BFD
session packets are transmitted over
the main interface Gigabit Ethernet
S:G2/0/0.10 S:G2/0/0.10
M:G2/0/0.20 M:G2/0/0.20 2/0/0.
BFD:G2/0/0 BFD:G2/0/0
B-A-MGW-1
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page48
MCE Configuration Examples –IP
Address Design
B-A-AR-NE80E-1 B-A-AR-NE80E-2
S:190.1.1.1 S:190.1.1.2
M:190.1.2.1 M:190.1.2.2
S:190.1.1.8/30
OSPF
S:190.1.1.12/30 S:190.1.1.16/30 Area 0
M:190.1.2.12/30 M:190.1.2.16/30
S:190.1.1.24/30 B-A-CE-2
B-A-CE-1 M:190.1.2.24/30
S:190.1.1.5 S:190.1.1.6
M:190.1.2.5 M:190.1.2.6
S:190.1.1.192/30 S:190.1.1.224/30
M:190.1.2.192/30 M:190.1.2.224/30
BFD:190.1.3.0/30 BFD:190.1.3.128/3
0
B-A-MGW-1
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page49
MCE Configuration Examples
[B-A-CE-1]interface Ethernet 4/0/7.10
[B-A-CE-1-Ethernet4/0/7.10]ip binding vpn-instance signal
[B-A-CE-1-Ethernet4/0/7.10]ip address 190.1.1.14 255.255.255.252
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page50
Contents
3. OSPF VPN
3.1 Multi-VPN-instance CE
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page51
Network-summary-LSA Loop
CE 10.1.1.1/32
OSPF Area0 2
Type3 LSA Site 2
① AS65420
MP-IBGP
MP-IBGP ②
② PE MP-IBGP
3 ④
PE PE
1 Type3 LSA 2
OSPF Area0 ③
④
Type3 LSA ③ Type3 LSA
OSPF Area0
CE select
1 Site 1
AS65410 discard
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page52
Cancel the Loop Check for the MCE
B-A-AR-NE80E-1 B-A-AR-NE80E-2
172.16.8.65 172.16.8.66
To avoid the loop, The SPF
calculation on CE ignores the
LSAs from AR with the DN bits as
1
The loop detection can be
LSA be received
disabled by a command, so that B-A-CE-1 which DN=1 do not B-A-CE-2
172.16.8.75 172.16.8.76
the LSAs with the DN bits as 1 take into
are used for SPF calculation calculation
E4/0/6 E4/0/6
G2/0/0 G2/0/0
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page53
AS-external-LSA/NSSA-external-LSA
Loop
CE 10.1.1.1/32
2
Site 2
EBGP
AS65420
①
MP-IBGP
②
MP-IBGP PE
⑥
3
MP-IBGP MP-IBGP ④
PE ③ PE
1 2
⑥MP- ⑤MP-
IBGP IBGP
④
Type5 LSA ③ Type5 LSA
CE select
1 Site 1
AS65410 discard
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page54
Cancel the Loop Check of Type5 LSA(1/2)
[B-A-AR-NE80E-1]ospf 10 router-id
B-A-AR-NE80E-1 B-A-AR-NE80E-2
190.1.1.1 vpn-instance signal
172.16.8.65 172.16.8.66
[B-A-AR-NE80E-1-ospf-10]default-
route-advertise always type 2
CE receives type 5 LSA
generated by default route from Ignores the LSAS
B-A-CE-1 from AR with the B-A-CE-2
AR and check the route-tag 172.16.8.75 172.16.8.76
DN bits as 1
field,find out that its own tag(by
default is 0)is the same with tag
E4/0/6 E4/0/6
of received LSA.Then CE ignores
the LSA instead of generation G2/0/0 G2/0/0
default route.
Route-tag value can be
modified by the command so
B-A-MGW-1
that loop detection is
disabled
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page55
Cancel the Loop Check of Type5 LSA(2/2)
B-A-AR-NE80E-1 B-A-AR-NE80E-2
172.16.8.65 172.16.8.66
[B-A-AR-NE80E-1- [B-A-AR-NE80E-2-
ospf10]route-tag 100 ospf10]route-tag 200
Type5 LSA be
received which
route-tag not equal
B-A-CE-1 to 0 be taken into B-A-CE-2
172.16.8.75 calculation 172.16.8.76
E4/0/6 E4/0/6
G2/0/0 G2/0/0
B-A-MGW-1
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page56
Summary
OSPF Fast Convergence
OSPF GR
OSPF LSDB
OSPF VPN
Copyright © 2011 Huawei Technologies Co., Ltd. All rights reserved. Page57
Thank you
www.huawei.com