bidirectional forwarding detection (bfd) introduction, update and … · 2017-02-06 ·...

16
Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 1 Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon [email protected] APRICOT 2005 - Kyoto

Upload: others

Post on 11-Jul-2020

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 1

Bidirectional Forwarding Detection (BFD)

Introduction, Update and Applications

Matt [email protected] 2005 - Kyoto

Page 2: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

2Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

Overview

! Goals! Protocol Overview! Applications! Adoption Status! Conclusion

Page 3: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

3Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

Detecting Forwarding Failures! In IP, historically a function of the routing protocol

• Because formerly, routing = forwarding

• Fault resolution in perhaps tens of seconds

• This is too slow for anything but best-effort IP

• Sometimes there is no routing protocol!

SoftwareRouter

SoftwareRouter

Routing ProtocolRouting Protocol

Page 4: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

4Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

Goals of BFD! Faster convergence of routing protocols, particularly on

shared media (Ethernet)

! Semantic separation of forwarding plane connectivityand control plane connectivity

! Detection of forwarding plane-to-forwarding plane connectivity (including links, interfaces, tunnels etc.)

! A single mechanism that is independent of media, routing protocol, and data protocol

! Requiring no changes to existing protocols

Page 5: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

5Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD Protocol Overview! At its heart, Yet Another Hello Protocol! Packets sent at intervals; neighbor failure

detected when packets stop arriving! Intended to be implemented in the forwarding

plane where possible! Context defined by encapsulating protocol! Always unicast, even on shared media

Page 6: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

6Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD Operation0 1 2 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| Version |H| Diagnostic | Detect Mult | Length |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| My Discr |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| Your Discr |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| Desired Min TX Interval |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| Required Min RX Interval |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

| Required Min Echo RX Interval |

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Page 7: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

7Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

Two BFD Modes! Asynchronous Mode

• Control packets flowin each direction

! Echo Mode• Slower control packets,

echo packets loopthrough remote system

Page 8: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

8Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD Applications! IGP liveliness detection! Tunnel liveliness detection

• MPLS LSPs

• IP-in-IP/GRE tunnels! Edge network availability

! Liveness of static routes

! Host reachability (e.g media gateways)! Switched Ethernet integrity

Page 9: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

9Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD for IGP Liveliness Detection! One of the first motivations for BFD! Faster convergence particularly on shared media

• Sub-second IGP adjacency failure detection

! IGP hellos can be set to higher intervals• Can improve IGP adjacency scaling

Ethernet Network

IGP Adjacency

BFD

BFD

Page 10: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

10Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

MPLS Core

ATM/FRAccess

ATM/FRAccess

Tunnel LSPTunnel LSP

MPLS PWMPLS PW

Segment ATM OAMSegment ATM OAMSegment ATM OAMSegment ATM OAM

Periodic BFD Fault Detection on Tunnel LSP and/or MPLS PWPeriodic BFD Fault Detection on Tunnel LSP and/or MPLS PWPeriodic BFD Fault Detection on Tunnel LSP and/or MPLS PWPeriodic BFD Fault Detection on Tunnel LSP and/or MPLS PW

BFD for MPLS LSPsLayer 2 Transport over MPLS

Page 11: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

11Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

MG to Router Connection with BFD

! VoIP Line Card Failure

• Connectivity of A1 protected by B1 (vice-versa)

• Call preserved only under specific MG application control

! Router PIC Failure

• Connectivity of A1 and B1 protected by A2 and B2 respectively (vice-versa)

• Call preserved with packet-loss period (dependant on detection and re-route times)

! Router System Failure

• Connectivity of A and B protected by Abu and Bbu respectively (vice-versa)

MG

VoIPLine C

ards

E/M/TSeries

PIC

SBFD-A1

BFD-B1 BFD-B2

BFD-A2

E/M/TSeries

PIC

S

BFD-A1bu

BFD-B1bu BFD-B2bu

BFD-A2bu

Page 12: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

12Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD for Edge AvailabilityVoice over IP

MGW1

MGW2

PE1 PE3

PE4PE2

! MGW Media Gateway

! BFD between MGW and PEs

! Enables fast detection/failover

Static/EBGP + BFD IBGP route to MGW1

MPLS LSP + Fast Reroute

Ethernet infrastructure

Page 13: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

13Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD for Edge AvailabilityVoice over IP

MGW1 MGW2PE1 PE3

PE4PE2

Static/EBGP + BFD IBGP route to MGW1

MPLS LSP + Fast Reroute

Link/switch failure

Backup path takes over

BFD session failure

Primary path

PE1 switches to a backup route through PE2 to reach MGW1

Page 14: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

14Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

BFD IETF Status! Protocol jointly developed by Juniper and Cisco! Base spec: draft-katz-ward-bfd-03.txt! Over IP: draft-katz-ipv4-ipv6-01.txt! Over MPLS: draft-raggarwa-mpls-bfd-00.txt! Much enthusiasm and citation in other drafts! A BFD WG has been formed

Page 15: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

15Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net

Conclusion! BFD solves some problems that IP networks

need to move beyond best-effort! It’s simple and lightweight! Increasing interest in the service provider and

development communities! Shipping in router code for over a year! Many vendors committed to support

Page 16: Bidirectional Forwarding Detection (BFD) Introduction, Update and … · 2017-02-06 · Bidirectional Forwarding Detection (BFD) Introduction, Update and Applications Matt Kolon matt@juniper.net

Copyright © 2003 Juniper Networks, Inc. Proprietary and Confidential www.juniper.net 16

Thank You

Matt [email protected]