Bidirectional Forwarding Detection (BFD) NANOG 39

Similar documents
Operation Manual BFD-GR H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Bidirectional Forwarding Detection

IS-IS Configuration Commands. Generic Commands. shutdown IS-IS XRS Routing Protocols Guide Page 533. Syntax [no] shutdown

Routing Configuration Guide, Cisco IOS XE Everest a (Catalyst 9300 Switches)

Feature History for Implementing Bidirectional Forwarding Detection

IP Routing BFD Configuration Guide, Cisco IOS Release 12.2SX

IP Routing: BFD Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)

Configuring Bidirectional Forwarding Detection on Cisco IOS XR

Command Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

BFD on BDI Interfaces

Reducing Failure Detection Times in IS-IS Networks

6 MPLS Model User Guide

BIG-IP Advanced Routing Bidirectional Forwarding Detection Configuration Guide. Version 7.8.4

IETF RFCs Supported by Cisco NX-OS Unicast Features Release 6.x

Table of Contents Chapter 1 MPLS Basics Configuration

Cisco Exam Deploying Cisco Service Provider Network Routing (SPROUTE) Version: 7.0 [ Total Questions: 130 ]

MPLS LDP Graceful Restart

mpls ldp atm vc-merge through mpls static binding ipv4

OSPF Commands on Cisco IOS XR Software

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

Internet Engineering Task Force (IETF) Request for Comments: ISSN: June 2010

HP 5920 & 5900 Switch Series

Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of opaque LSAs 40 Configuring OSPF to

Configuring LDP with CLI

LARGE SCALE IP ROUTING LECTURE BY SEBASTIAN GRAF

BGP Part-1.

OSPF Commands on Cisco ASR 9000 Series Router

OSPFv3 Address Families

Configuring VRRP. Finding Feature Information. The Virtual Router Redundancy Protocol (VRRP) is an election protocol that dynamically assigns

Emerging MPLS OAM mechanisms

Operation Administration and Maintenance in MPLS based Ethernet Networks

ASM. Engineering Workshops

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Configuring Cisco IOS IP SLA Operations

HP MSR Router Series. MPLS Configuration Guide(V7) Part number: Software version: CMW710-R0106 Document version: 6PW

MPLS Label Distribution Protocol (LDP)

OSPFv3 Address Families

OSPFv3 Address Families

C. The ESP that is installed in the Cisco ASR 1006 Router does not support SSO.

Veryx ATTEST TM. Sample Test Plan. Conformance Test Suite. Bidirectional Forwarding Detection (BFD) Part Number: T / TPS BFD-IPv /1.

Configuring HSRP. Finding Feature Information. Restrictions for HSRP

CONTENTS. Introduction

Configuring BGP community 43 Configuring a BGP route reflector 44 Configuring a BGP confederation 44 Configuring BGP GR 45 Enabling Guard route

IS-IS basic configuration 37 DIS election configuration 41 Configuring IS-IS route redistribution 45 IS-IS GR configuration example 49 IS-IS FRR

Configuring Cisco IOS IP SLAs Operations

Implementing MPLS Label Distribution Protocol

MPLS VPN--Inter-AS Option AB

Exam Questions Demo Cisco. Exam Questions CCIE SP CCIE Service Provider Written Exam

Configuring High Availability

MPLS Point-to-Multipoint Traffic Engineering Support for Static Pseudowires

PracticeTorrent. Latest study torrent with verified answers will facilitate your actual test

HP A5820X & A5800 Switch Series MPLS. Configuration Guide. Abstract

BGP Commands on Cisco ASR 9000 Series Router

Contents. Configuring EVI 1

SYSC 5801 Protection and Restoration

MPLS Traffic Engineering BFD-triggered Fast Reroute

Configuring Virtual Private LAN Service (VPLS) and VPLS BGP-Based Autodiscovery

HPE FlexNetwork 5510 HI Switch Series

IS-IS Commands. distribute-list in (IS-IS), on page 25 fast-reroute per-prefix (IS-IS), on page 29

2D1490 p MPLS, RSVP, etc. Olof Hagsand KTHNOC/NADA

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

GMPLS Configuration Commands. LMP Commands. lmp. gmpls-loopback-address. peer XRS MPLS Guide Page 493 GMPLS. Description

Configuring IP SLAs LSP Health Monitor Operations

Network Configuration Example

COMMAND LINE CHEAT SHEET

Configuring Priority Flow Control

Juniper JN0-647 Exam. Volume: 65 Questions. Question: 1 Which protocol is a multicast routing protocol? A. OSPF B. BGP C. PIM D. IS-IS.

HP 5920 & 5900 Switch Series

Agilent N2X Bidirectional Forwarding Detection (BFD) Protocol Emulation Software

Segment Routing Commands

Routing, Routers, Switching Fabrics

Chapter 21 RIP Configuration Guidelines

Router Lab Reference

Financial Services Design for High Availability

Techniques and Protocols for Improving Network Availability

MPLS VPN Inter-AS Option AB

HIGH AVAILABILITY DESIGN

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

HP A-MSR Router Series MPLS. Configuration Guide. Abstract

Cisco NX-OS Interfaces Commands

HUAWEI NetEngine5000E Core Router V800R002C01. Configuration Guide - Network Reliability. Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

Examination IP routning inom enkla datornät, DD2490 IP routing in simple networks, DD2490 KTH/CSC. Date: 20 May :00 19:00 SOLUTIONS

EIGRP Nonstop Forwarding

Table of Contents. BGP Configuration 1

Multi Topology Routing Truman Boyes

Routing Protocols. Technology Description BGP CHAPTER

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Advanced Troubleshooting. Version: Demo

June Vyatta BFD. Reference Guide. Supporting Brocade Vyatta 5600 vrouter 3.5R3

Configuring Resilient Ethernet Protocol

Advanced Networking: Routing & Switching 2 Chapter 7

Configuration prerequisites 45 Configuring BGP community 45 Configuring a BGP route reflector 46 Configuring a BGP confederation 46 Configuring BGP

HP MSR Router Series. MPLS Configuration Guide(V5) Part number: Software version: CMW520-R2513 Document version: 6PW

Cisco.Actualtests v by.DD.70q

Exam4Tests. Latest exam questions & answers help you to pass IT exam test easily

Cisco Questions $ Answers

IPv6 Switching: Provider Edge Router over MPLS

MPLS Label Distribution Protocol (LDP)

Configuring Transports

Monitoring and Maintaining Multicast HA Operations (NSF/SSO and ISSU)

Configuring VRRP. Finding Feature Information. Contents

Transcription:

An Introduction to Bidirectional Forwarding Detection (BFD) NANOG 39 Aamer Akhter / aa@cisco.com ECMD, cisco Systems 1

Why BFD? Methods needed to quickly determine forwarding failure Not everything is POS/SONET Ethernet needs a solution for failure detection Layer 3 Data Forwarding plane needs a check Checking should not be bound to single hop Fast Hello needed for LDP, OSPF, ISIS, PIM, RSVP, BGP etc to catch same types of issues. BFD is a single Layer 3 protocol for detecting forwarding failures Other protocol timers can now be left at defaults 2

What is BFD? Bi-directional Forwarding Detection: Extremely lightweight hello protocol IPv4, IPv6, MPLS, P2MP 10s of milliseconds (technically, microsecond resolution) forwarding plane failure detection mechanism. Single mechanism, common and standardized Multiple modes: Async (echo/non-echo), Demand Independent of Routing Protocols Levels of security, to match conditions and needs Facilitates close alignment with hardware 3

IETF Status BFD workgroup Base Draft (Ward and Katz) draft-ietf-bfd-base-xx Generic Application of BFD draft-iet-bfd-generic BFD for IPv4 and IPv6 (Single Hop) draft-ietf-bfd-v4v6 BFD for Multihop Paths draft-ietf-bfd-multihop BFD For MPLS LSPs draft-ietf-bfd-mpls BFD MIB draft-ietf-bfd-mib Additonal BFD clients may not require standardization (eg statics client) 4

Basics of BFD Operation Routing Protocol (BFD client) bootstraps BFD to create BFD session to a neighbor, and to receive link status change notification. Receive and Transmit intervals are negotiated and configurable Two systems agree on method to detect failure Via sending packets, watching counters etc In case of failure, BFD notifies BFD client BFD Client independently decides on action (if any) 5

BFD in Pictures (OSPF Example) R1 OSPF Hello s dbexchange / Discovery continue OSPF R2 BFD OSPF bootstraps BFD BFD R1 R2 6

BFD in Pictures (async mode) OSPF Hello s at slow rate BFD Control packets maintain state and test forwarding plane R1 OSPF Hello s continue OSPF R2 BFD Control Packets BFD Negotiation BFD R1 R2 7

BFD in Pictures (async mode) BFD notifies OSPF of failure OSPF declares neighbor dead Other protocols (ISIS, BGP) may take more granular actions R1 OSPF Hello s continue OSPF R2 BFD Control Packets BFD R1 R2 8

BFD: More Details Operating Modes Control & Echo Timers 9

Operating Modes Asynchronous mode Echo Mode Non-Echo Mode Demand Mode Both systems set D bit in control packet Implies that some other method is being used to check forwarding plane Eg, looking at RX/TX counters on interface BFD Polling mechanism will be used to verify liveliness as a secondary measure. 10

Control Packets and Echo Mode If echo function is not negotiated control packets sent at high rate to achieve Detection Time If echo function is negotiated control packets sent at a slow rate (Negotiated Rate) self directed echo packets sent at high rate (Min Echo Rx Interval) Control Packets Echo Packets 11

The BFD Control Packet Control Packets control session state and parameters Unicast Directed to BFD peer (IP address learnt via BFD client) Are consumed by each BFD recipient Single hop: UDP sent to port 3784, source port (49152-65535) 12

Echo Packets Echo Packets Self directed Low overhead check of fwding plane Can be applied Asymmetrically Format and content of packet determined by sender (implementation dependent) Sent to UDP port 3785, for IPv4/v6 single hops 13

Timer negotiation Neighbors continuously negotiate their desired transmit and receive rates in terms of microseconds. The system reporting the slower rate determines the transmission rate. Negotiate rates Required Minimum Receive rate = 50 ms Desired Transmit rate = 100 ms Transmits at 100ms Required Minimum Receive rate = 60 ms Desired Transmit rate = 40 ms Transmits at 50ms 14

Detection Time Time to detect failure Not transmitted on the wire Adaptive Timers Less Restrictive/Tight Time Intervals Asynchronous mode (non-echo) Calculated by (remote Detect Mult) * (TX interval) Detect Mult is how many sequential packets can be missed before declaring down Asynchronous mode (echo) Detection Time Calculated by (local Detect Multiplier) * (local Echo RX interval) Loss of local Detect Multiplier # of sequential packets causes failure 15

Detection Time Demand mode Calculated only during Poll Sequence Calculated by (Detect Multiplier) * (local TX interval) 16

BFD: Implementation Models Centralized Distributed Dedicated Hardware 17

Centralized RP Shared CPU for all control plane (may also be shared for data plane) BGP, OSPF, SNMP, exec Contention for CPU cycles ie: BFD echo generation every 50ms BGP UPDATE processing IGP SPF runs Issue has always existed, but BFD may aggravate due to low timer values SNMP, exec RP CPU Routing protocols BFD Control & Echo packets 18

Distributed CPU BFD session maintenance implemented on distributed CPU (eg on line cards) LC CPUs generally lightly loaded RP can switchover (RP High Availability) w/o affecting BFD SNMP, exec Routing Protocols RP CPU LC CPU LC CPU BFD 19

(Semi) Dedicated Hardware BFD session maintenance implemented on dedicated or semi dedicated hardware (ie not GPU). May still be distributed for additional scalability Provides highest level of performance and timing precision Allows more deterministic BFD performance SNMP, exec Routing Protocols RP CPU BFD LC CPU LC CPU BFD 20 BFD BFD

Control Plane Independent Bit (Graceful Restart handling) BFD can inform peer via ( c ) bit of Control Plane Independence in BFD implementation Makes graceful restart system aware of BFD capability Eg: On distributed system, BFD will not be affected by rebooting control plane (ie grace-full restarts, etc) NSF can be checked by BFD! Eg: In case BFD is hosted by RP and will be affected by GR, (ie C bit clear): BFD can temporarily ignore/disable/dilate timers during GR 21

Queuing (implementation) BFD packets can get stuck behind regular packets Host IP/UDP protocol stack can be bypassed. Requires BFD to have direct access to HW queues (no output features) Might be difficult on distributed architecture where BFD session is on RP & interface on LC BFD Is internal to router and should give priority to BFD 22

BFD: Considerations Queuing Scalability vs. Performance Security 23

Queuing / Latency (not implementation architecture) Be realistic: Don t set detection time to 50ms for transatlantic links! Multi-hop (and echo mode) BFD still requires queue management on transit routers Marked with Precedence 6 Prec 6 may need QoS policy configured on transit routers Depending on link speed, BFD may need to be in LLQ Verify that the correct data path is validated (ie DS-TE, DSCP PBR, MTR can put packets on different paths) 24

Scalability and Low Timer Values Possible to move resources around BFD to LC, dedicated BFD CPU, relaxing timers etc Practical and finite limits on resources Lower BFD timer values and strict detection timing will decrease scalability (# of sessions) for that resource Adaptive timers take care of situations w/o strict detection timing needs Implementation may protect you by disallowing enabling of sessions that can t be maintained. 25

Scalability and Low Timer Values Testing under your real-world conditions is essential Aggregate BFD pps per LC/CPU creates a composite between sessions and timer values Spreading BFD amongst multiple resources (line cards) BFD does not invalidate operator experience with low BGP KA or IGP hello times just changes the game 26

False Positives / Oscillations Use adaptive timers / echo mode / demand mode Why they can happen: Generally, implementation issues Conditions change in network, but nothing really wrong When testing, account for stress conditions, not best conditions BGP updates IGP recalculations SNMP polls Traffic bursts Stress can be transient or related to new services that cross perf. threshold 27

Tuning Timers BFD allows timer renegotiation during session Adaptive Timers (all modes have this) Less restrictive, can automatically adapt for slow local/remote system Puts actual fault detection time into grey area Examples: Control Mode: (slow remote) avg of last few rxvd pkts is used Echo Mode: (slow self) RX Count is done on packets actually transmitted, not what should have been transmitted Detection Time = loosing detect multi # of packets (regardless of when they were sent out) 28

Tuning Timers Need to monitor state of router SNMP traps on consistently slow RX/TX, etc Are BFD packets being sent/rcvd at the configured value? Increase or decrease interval s accordingly (if needed) 29

Security TTL checking single hop 255 on sending, check for 255 on receipt Authentication (more work for router) Multi-hop applicability Key ID s allow for rollover Simple Password MD5 SHA1 Meticulous Keyed 30

BFD Summary Solves a real issue with fast forwarding plane checks Extremely lightweight hello protocol IPv4, IPv6, MPLS, P2MP 10s of milliseconds (technically, microsecond resolution) forwarding plane failure detection mechanism. Single mechanism, common and standardized Multiple modes: Async (echo/non-echo), Demand Independent of Routing Protocols Facilitates close alignment with hardware 31

Q and A 32