def setup_bbr(): # load tcp_bbr kernel module (only available since Linux Kernel 4.9) kernel_ctl.load_kernel_module('tcp_bbr') # add bbr to kernel-allowed congestion control list kernel_ctl.enable_congestion_control('bbr') # check if qdisc is fq kernel_ctl.check_qdisc('fq')
def setup_vegas(): # load tcp_vegas kernel module kernel_ctl.load_kernel_module('tcp_vegas') # add vegas to kernel-allowed congestion control list kernel_ctl.enable_congestion_control('vegas')