From f08abcb8dda6ff488fa1b52314a67d97aee059d7 Mon Sep 17 00:00:00 2001 From: Toke Høiland-Jørgensen Date: Fri, 2 Jun 2023 00:31:53 +0200 Subject: Babel: Add support for the RTT extension This adds support to the Babel protocol for the RTT extension specified in draft-ietf-babel-rtt-extension. While this extension is not yet at the RFC stage, it is one of the more useful extensions to Babel[0], so it seems worth having in Bird as well. The extension adds timestamps to Hello and IHU TLVs and uses these to compute an RTT to each neighbour. An extra per-neighbour cost is then computed from the RTT based on a minimum and maximum interval and cost value specified in the configuration. The primary use case for this is improving routing in a geographically distributed tunnel-based overlay network. The implementation follows the babeld implementation when picking constants and default configuration values. It also uses the same RTT smoothing algorithm as babeld, and follows it in adding a new 'tunnel' interface type which enables RTT by default. [0] https://alioth-lists.debian.net/pipermail/babel-users/2022-April/003932.html --- doc/bird.sgml | 51 +++++++++++++++++--- proto/babel/babel.c | 84 +++++++++++++++++++++++++++++++-- proto/babel/babel.h | 24 ++++++++++ proto/babel/config.Y | 20 +++++++- proto/babel/packets.c | 126 ++++++++++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 288 insertions(+), 17 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 39eae4cd..8041faa9 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1918,7 +1918,7 @@ protocol babel [] { ipv6 [sadr] { }; randomize router id ; interface { - type ; + type ; rxcost ; limit ; hello interval