BFD Principles and Configurations
BFD Principles and Configurations
BFD Principles and Configurations
may affect services and lead to major losses. To minimize the impact of
Objectives Contents
Upon completion of this section, you will be able to: 1. BFD Principles
Understand BFD Principles 2. BFD Application Scenarios
Master BFD configurations in common application scenarios
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 2 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 3
1
Fault in Application Scenario 1 Fault in Application Scenario 2
RTC
A hardware or link fault occurs
Why the
neighbor does between RTB and RTC. How is
not connect to RTB
me? RTA Primary egress
user traffic transmitted?
OSPF neighbor
SWB
VRRP master
SWA
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 4 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 5
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 6 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 7
2
BFD Session Establishment Mode and
BFD Session Establishment
Detection Mechanism
RTA RTB
Periodical sending
BFD control packet (A-B)
DOWN DOWN
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 8 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 9
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 10 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 11
3
Configuration Requirements of BFD for
Contents
OSPF
1. BFD Principles OSPF neighbor
A company uses two Layer 2 switches to connect two departments that are far from
each other. RTA and RTD are enabled with OSPF and establish an OSPF neighbor
relationship to ensure that they are reachable at the network layer.
RTA and RTD support BFD. BFD for OSPF needs to be used. When a fault occurs on the
link between RTA/RTD and a Layer 2 switch or between switches, for example, the link
is Down, BFD can quickly detect the fault and notify OSPF.
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 12 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 13
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 14 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 15
4
Configuration Requirements of BFD for
Configuration Procedure of BFD for VRRP
Static Routes
#
RTC bfd
# ISP1
RTB
bfd 1 bind peer-ip 10.0.24.2 source-ip
10.0.45.5 auto G0/0/1
commit
Primary RTA RTB
RTA G0/0/1
egress #
bfd
#
Campus
SWB
bfd 1 bind peer-ip 10.0.45.5 source-ip network
VRRP 10.0.24.2 auto
G0/0/2
master commit
SWA #
interface Vlanif100
ip address 10.0.12.2 255.255.255.0 G0/0/1 ISP2
VRRP vrrp vrid 1 virtual-ip 10.0.12.254 RTC
vrrp vrid 1 priority 200
vrrp vrid 1 track bfd-session
Requirements
session-name 1 reduced 100
SWC RTA is the campus network's egress that is connected to ISP1 and ISP2. Normally,
#
interface Vlanif100 by default route points to ISP1 and the route to ISP2 is the backup. When the
ip address 10.0.12.1 255.255.255.0
vrrp vrid 1 virtual-ip 10.0.12.254 default route to ISP1 is unreachable, traffic can be quickly switched to the route to
PC-A PC-B PC-C
ISP2.
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 16 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 17
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 18 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 19
5
Configuration Procedure of BFD for BGP BFD Echo Function
BGP neighbor BFD Echo function
Loopback0:1.1.1.1 Loopback0:2.2.2.2
Network
RTA RTB BFD BFD not
<RTA>display bfd session all
supported supported
---------------------------------------------------
Local Remote PeerIpAddr State Type InterfaceName Link neighbor
------------------------------------------------------
8192 8192 2.2.2.2 Up D_IP_PEER -
------------------------------------------------------
Total UP/DOWN Session Number : 1/0
RTA RTB
# #
bfd bfd
# #
bgp 65500 bgp 65500
peer 2.2.2.2 as-number 65500 peer 1.1.1.1 as-number 65500
peer 2.2.2.2 connect-interface LoopBack0 peer 1.1.1.1 connect-interface LoopBack0
peer 2.2.2.2 bfd enable peer 1.1.1.1 bfd enable
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 20 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 21
Priority of BFD packets 7 (highest) You are advised to retain the value.
Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 22 Copyright © 2017 Huawei Technologies Co., Ltd. All rights reserved. Page 23
6
Thank You
www.huawei.com