From 700a4fddd3b554cc1071608cf8d945400ae35c9e Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 23 Jun 2023 10:36:48 +0800 Subject: [PATCH] Babel: allow choosing link quality estimation algorithm ETX link quality estimation algorithm is useful for link types other than wireless, especially when using babel with tunnels where packet losses do occur. --- doc/bird.sgml | 10 ++++++++++ proto/babel/babel.c | 8 +++----- proto/babel/babel.h | 8 ++++++++ proto/babel/config.Y | 8 +++++++- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 7abb8348c..fb00b9fca 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2320,6 +2320,7 @@ protocol babel [] { rx buffer ; tx length ; check link ; + link quality ; next hop ipv4
; next hop ipv6
; extended next hop ; @@ -2423,6 +2424,15 @@ protocol babel [] { hardware drivers or platforms do not implement this feature. Default: yes. + + This option specifies the link quality estimation algorithm for computing + costs based on Hello history: none or etx. The none (k-out-of-j) algorithm + is suitable for wired links that are either up, in which case they only + occasionally drop a packet, or down, in which case they drop all packets. + The Expected Transmission Cost algorithm, or etx, is suitable for wireless + links that exhibit continuous variation of the link quality. Default: etx for + wireless interfaces, none otherwise. +