<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat" -->

---
title: Use BGP Timers and BFD to Speed Up BGP Convergence « BGP...
description: Out-of-the-box EBGP can take up to three minutes to detect a failed neighbor. This hands-on lab walks through two techniques to dramatically reduce that...
canonical: https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Use BGP Timers and BFD to Speed Up BGP Convergence « BGP Labs | daily.dev
og:description: Out-of-the-box EBGP can take up to three minutes to detect a failed neighbor. This hands-on lab walks through two techniques to dramatically reduce that...
og:url: https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat
og:image: https://api.daily.dev/og/posts/p5sF4JRAT.png
og:image:alt: Use BGP Timers and BFD to Speed Up BGP Convergence « BGP Labs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Use BGP Timers and BFD to Speed Up BGP Convergence « BGP Labs

**[ipSpace.net Blog](https://daily.dev/sources/ipspace)** · 5 min read · 0 upvotes · 0 comments

## Summary

Out-of-the-box EBGP can take up to three minutes to detect a failed neighbor. This hands-on lab walks through two techniques to dramatically reduce that convergence time: first, tuning BGP keepalive and hold timers (3s/9s) to detect failures within ~9 seconds, and second, enabling Bidirectional Forwarding Detection (BFD) on the EBGP session to bring detection time down to approximately one second. The lab uses netlab with FRRouting on a three-router topology and includes automated validation steps.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.ipspace.net/2023/09/bgp-labs-bfd>

## Questions this post answers

### How long does it take for EBGP to detect a failed neighbor by default?

By default, EBGP can take up to three minutes to detect a failed neighbor. This is because the default BGP keepalive timer is 60 seconds and the hold timer is 180 seconds. A real measurement showed BGP taking almost exactly three minutes (from 16:02:25 to 16:05:27) to remove a prefix after the EBGP session failed.

_Engineers tuning BGP for faster failover track protocol behavior like this on daily.dev._

### What BGP timer values should I set to detect EBGP failures within 10 seconds?

Set the keepalive timer to 3 seconds and the hold timer to 9 seconds on the EBGP session. BGP timers are negotiated during session establishment, so you may need to clear the session after changing them. Some implementations automatically tear down the session when timers are changed.

_Networking engineers optimizing BGP convergence for production environments find relevant techniques on daily.dev._

### How much faster does BFD detect EBGP link failures compared to tuned BGP timers?

BFD reduces EBGP failure detection to approximately one second, compared to ~9 seconds with tuned BGP timers (3s keepalive / 9s hold). BFD is a lightweight protocol that detects link or node failures in milliseconds, making it significantly more responsive than relying on BGP keepalive timeouts alone.

_Developers and network engineers choosing between BFD and timer tuning for BGP reliability find comparisons like this on daily.dev._

## Similar posts on daily.dev

- [BGP zombies and excessive path hunting](https://daily.dev/posts/bgp-zombies-and-excessive-path-hunting-avroyozsw) · Cloudflare · 0 upvotes · 0 comments
- [Faster than Dijkstra?](https://daily.dev/posts/faster-than-dijkstra--luk6oiopf) · Hacker News · 3 upvotes · 0 comments
- [Boosting speed: Use eBPF and netstacklat to troubleshoot latency](https://daily.dev/posts/boosting-speed-use-ebpf-and-netstacklat-to-troubleshoot-latency-idzq9oxsb) · Red Hat Developer · 0 upvotes · 0 comments
- [Exploring the BGP Neighbor CONNECT State « ipSpace.net blog](https://daily.dev/posts/exploring-the-bgp-neighbor-connect-state-ipspace-net-blog-q28k0i62x) · ipSpace.net Blog · 0 upvotes · 0 comments

---

Tags: [#bgp](https://daily.dev/tags/bgp)

[View this post on daily.dev](https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Use BGP Timers and BFD to Speed Up BGP Convergence « BGP Labs","url":"https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat"},"datePublished":"2026-08-11T08:52:54.045Z","dateModified":"2026-08-11T09:04:21.455Z","description":"Out-of-the-box EBGP can take up to three minutes to detect a failed neighbor. This hands-on lab walks through two techniques to dramatically reduce that...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"ipSpace.net Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ipSpace.net Blog","logo":"https://media.daily.dev/image/upload/s--xS7E82MT--/f_auto,q_auto/v1786438303/logos/ipspace?_a=BAMAMicg0","url":"https://daily.dev/sources/ipspace"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"bgp","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ipSpace.net Blog","item":"https://daily.dev/sources/ipspace"},{"@type":"ListItem","position":3,"name":"Use BGP Timers and BFD to Speed Up BGP Convergence « BGP Labs"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/use-bgp-timers-and-bfd-to-speed-up-bgp-convergence-bgp-labs-p5sf4jrat#faq","mainEntity":[{"@type":"Question","name":"How long does it take for EBGP to detect a failed neighbor by default?","acceptedAnswer":{"@type":"Answer","text":"By default, EBGP can take up to three minutes to detect a failed neighbor. This is because the default BGP keepalive timer is 60 seconds and the hold timer is 180 seconds. A real measurement showed BGP taking almost exactly three minutes (from 16:02:25 to 16:05:27) to remove a prefix after the EBGP session failed. Engineers tuning BGP for faster failover track protocol behavior like this on daily.dev."}},{"@type":"Question","name":"What BGP timer values should I set to detect EBGP failures within 10 seconds?","acceptedAnswer":{"@type":"Answer","text":"Set the keepalive timer to 3 seconds and the hold timer to 9 seconds on the EBGP session. BGP timers are negotiated during session establishment, so you may need to clear the session after changing them. Some implementations automatically tear down the session when timers are changed. Networking engineers optimizing BGP convergence for production environments find relevant techniques on daily.dev."}},{"@type":"Question","name":"How much faster does BFD detect EBGP link failures compared to tuned BGP timers?","acceptedAnswer":{"@type":"Answer","text":"BFD reduces EBGP failure detection to approximately one second, compared to ~9 seconds with tuned BGP timers (3s keepalive / 9s hold). BFD is a lightweight protocol that detects link or node failures in milliseconds, making it significantly more responsive than relying on BGP keepalive timeouts alone. Developers and network engineers choosing between BFD and timer tuning for BGP reliability find comparisons like this on daily.dev."}}]}
```

