Merge "add congestion control test to CTS"

This commit is contained in:
Maciej Żenczykowski 2023-05-09 18:17:12 +00:00 • committed by Gerrit Code Review
commit be66108f84

View file

@ -166,4 +166,15 @@ public class ProcNetTest extends DeviceTestCase implements IBuildReceiver, IDevi
assertTrue(interval <= upperBoundSec); assertTrue(interval <= upperBoundSec);
} }
} }
/**
* Verify that cubic is used as the congestion control algorithm.
* (This repeats the VTS test, and is here for good performance of the internet as a whole.)
* TODO: revisit this once a better CC algorithm like BBR2 is available.
*/
public void testCongestionControl() throws Exception {
String path = "/proc/sys/net/ipv4/tcp_congestion_control";
String value = mDevice.executeAdbCommand("shell", "cat", path).trim();
assertEquals(value, "cubic");
}
} }