> For the complete documentation index, see [llms.txt](https://adavyshin.gitbook.io/networks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adavyshin.gitbook.io/networks/docs/bidirectional-forwarding-detection.md).

# Bidirectional Forwarding Detection

## Теоретическая часть

⚠️ <kbd>BFD</kbd> (Bidirectional Forwarding Detection) - протокол, предназначенный для детектирования связности между двумя сетевыми устройствами. Используется для ускорения времени реакции при разрыве соединений и потери связности.

Чем плохи <kbd>hello-сообщения</kbd> OSPF для определения, что два сетевых устройства потеряли связность и не остановиться на них? Всё кроется в деталях работы протокола BFD. Его принципиальное  отличие от других протоколов сигнализации в том, что BFD работает не на Control Plane уровне, а на уровне Data Plane. Тем самым у него появляется абстракция от CPU, он не грузит процессор и высокая нагрузка самого процессора не влияет на обработку BFD-сообщений.

Основные параметры:

* <kbd>**Tx Interval**</kbd>**&#x20;-** частота отправки пакетов (например, 50 мс).
* <kbd>**Rx Interval**</kbd> - ожидаемая частота получения пакетов.
* <kbd>**Detection Multiplier**</kbd>**&#x20;-** сколько интервалов ожидать до объявления линка "мертвым".

## Практическое применение

BFD включается на интерфейсах в двух форматах:

* точечной конфигурацией параметров на интерфейсе
* с помощью заготовок (`template`)&#x20;

Для первого варианта с явным указанием тайсмеров на инетфейсе следующая кофнигурация:

```
interface GigabitEthernet0/0
 bfd interval 50 min_rx 50 multiplier 3
```

### Включение BFD


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://adavyshin.gitbook.io/networks/docs/bidirectional-forwarding-detection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
