问题原文
原帖链接 · pQd · CC BY-SA 3.0
I can type
echo bbr > /proc/sys/net/ipv4/tcp_congestion_control
to change the congestion control algorithm for the TCP connections running over IPv4, but how do I do it for those arriving over IPv6?
Does the above command set it for both?
已采纳解答
原帖链接 · Alexandre Fenyo · CC BY-SA 4.0
Yes, both sysctl (net.ipv4.tcp_allowed_congestion_control and net.ipv4.tcp_available_congestion_control) and /proc entry (/proc/sys/net/ipv4/tcp_congestion_control) apply to every IPv4 and IPv6 TCP connections. The ipv4 part in the sysctl and /proc names does not mean that this is only for TCP over ipv4. This only means that the algorithm is implemented in the linux/net/ipv4 subdirectory of the kernel source tree: in Linux, TCP over IPv6 implements the congestion control by making calls to the implementation for IPv4, since there is no difference between TCP congestion control in TCP over IPv4 and TCP over IPv6.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
