From d7c128684d8e030e678bab8277653bb6e2c2e908 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 9 Mar 2025 20:12:37 +0100 Subject: [PATCH] Use CUBIC as TCP congestion controller Support for TCP congestion control has been introduced in smoltcp 0.12. Smoltcp supports Reno and CUBIC. Of the two CUBIC has higher throughput. Enabling the socket-tcp-cubic feature is enough to default to CUBIC. With this change pkg install libgcc is about 35% faster than previously without congestion control. (5.5MiB/s vs 4MiB/s previously) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 24da1df44b..a1efb585eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ features = [ "std", "medium-ethernet", "medium-ip", "proto-ipv4", - "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", + "socket-raw", "socket-icmp", "socket-udp", "socket-tcp", "socket-tcp-cubic", "iface-max-addr-count-8", "log" ]