Re: How to enable tcp bbr in FreeBSD???

From: Johan Hendriks <joh.hendriks_at_gmail.com>
Date: Fri, 24 Apr 2020 16:08:32 +0200
Op 24-04-2020 om 15:51 schreef ykla:
> WITH_EXTRA_TCP_STACKS=1  in make.conf  ? And why not make it in kernel 
> default?
>
> 在 2020年4月24日星期五,Johan Hendriks <joh.hendriks_at_gmail.com 
> <mailto:joh.hendriks_at_gmail.com>> 写道:
>
>
>     Op 24-04-2020 om 15:37 schreef Kurt Jaeger:
>
>         Hi!
>
>             You can enable the stack globally on new connections without
>             restarting the box or daemons by running these commands:
>
>             kldload tcp_bbr
>
>             sysctl net.inet.tcp.functions_inherit_listen_socket_stack=0
>             sysctl net.inet.tcp.functions_default=bbr
>
>         This fails on the box running 13.0:
>
>         # kldload tcp_bbr
>         kldload: can't load tcp_bbr: No such file or directory
>
>         So it looks it has to be hooked to the build somehow ?
>
>         And: man -k bbr has no results as well...
>
>     The commit message says the following:
>
>
>     This commit adds BBR (Bottleneck Bandwidth and RTT) congestion
>     control. This
>     is a completely separate TCP stack (tcp_bbr.ko) that will be built
>     only if
>     you add the make options WITH_EXTRA_TCP_STACKS=1 and also include
>     the option
>     TCPHPTS. You can also include the RATELIMIT option if you have a
>     NIC interface that
>     supports hardware pacing, BBR understands how to use such a feature.
>
>
>     So i think you need te rebuild with the following option set
>     WITH_EXTRA_TCP_STACKS=1
>
>     regards
>     Johan Hendriks
>
>     _______________________________________________
>     freebsd-current_at_freebsd.org <mailto:freebsd-current_at_freebsd.org>
>     mailing list
>     https://lists.freebsd.org/mailman/listinfo/freebsd-current
>     <https://lists.freebsd.org/mailman/listinfo/freebsd-current>
>     To unsubscribe, send any mail to
>     "freebsd-current-unsubscribe_at_freebsd.org
>     <mailto:freebsd-current-unsubscribe_at_freebsd.org>"
>

It looks like you need to add the following to the kernel as well.

option     TCPHPTS

Maybe it is not ready for prime time, i do not know why it is not in the 
default build.
Maybe ask the committer.

regards,
Johan
Received on Fri Apr 24 2020 - 12:08:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC