Babel in Bird 1.6.0

Ondrej Zajicek santiago at crfreenet.org
Sun May 1 00:42:16 CEST 2016


On Sat, Apr 30, 2016 at 03:15:52PM +0200, Toke Høiland-Jørgensen wrote:
> > === Hello interval range checking ===
> >
> > The hello interval cannot be set below 1 second: the parser seems to
> > expect an integer.  The packet format encodes intervals in centiseconds,
> > so it would make sense to allow any fractional Hello interval down to 0.01
> > seconds.
> >
> > I just checked, babeld's parser allows to go as low as 0.001s (which is a
> > bit scary in itself, since it generates about 1 kpps / 1.5 Mbps of control
> > traffic).
> 
> Hmm, yes. However, since the internal Bird timers run at a granularity
> of seconds only there's not much point in having the ability to
> configure smaller values.
> 
> > On a related note, there is no overflow check on the hello interval.  For
> > instance, setting the hello interval to 800 seconds produces this in
> > tcpdump:
> >
> >     Hello seqno 1 interval 144.64s
> 
> Right, yeah, the overflow check is done on the specified values not
> their centisecond equivalents. Oops.

IMHO the reasonable way would be to keep such values (intervals) internally
in Babel native time units (centiseconds) and only convert to BIRD units when
appropriate (when mixed with bird_clock_t values).

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20160501/c9e68ff8/attachment.asc>


More information about the Bird-users mailing list