You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Add Webui to manage the module.
2. Add Set initcwnd & initrwnd value to max feature.
3. Fix old config not saved during update bug.
4. Fix minor bugs in script.
5. Refactor shell scripts.
6. Update Readme to provide more Information.
7. Fix versioning issue in build.yml.
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,30 @@ A Magisk/KernelSU module to change tcp congestion algorithm based on current act
4
4
# Why?
5
5
In certain kernel, TCP Congestion Algorithm BBR might be enabled. Or you want to enable certain algorithm or settings based on what interface you are using. I observed that in my kernel, when i use BBR with WiFi I get 50-60 Mbps more upload speed compared to cubic, but BBR gives bad upload speed in cellular. So I designed this module to switch based on active internet facing interface.
6
6
7
+
# Features
8
+
1. Set TCP Congestion Algorithm based on interface(Wi-Fi/Cellular).
9
+
2. Auto Change TCP Congestion Algorithm on interface change.
10
+
3. Set initcwnd and initrwnd value to max.
11
+
7
12
# How to use
8
13
1. Install the module.
9
14
2. It creates 2 files `wlan_{algo}` and `rmnet_data_{algo}` in module folder.
10
15
3. Reboot device.
16
+
4. Basic Functionality of module must run normally on boot.
17
+
18
+
# Tuning Module by files [/data/adb/modules/tcp_optimiser]
19
+
1. TCP Congestion Algorithm can be changed for given interface by editing `{algo}` part of file name. `wlan_{algo}` for Wi-Fi and `rmnet_data_{algo}` for Cellular.
20
+
2. Create an empty file named `initcwnd_initrwnd` to set initcwnd and initrwnd value to max values.
21
+
3. Create an empty file named `kill_connections` to kill all connections during switch. [Be carefull!]
22
+
4. Create an empty file named `force_apply` to apply changes immediately.
23
+
24
+
# Tuning Module by WebUI
25
+
All the module settings can be controlled using Module WebUI in KSU and APatch or KsuWebUIStandalone app for Magisk.
11
26
12
27
## Note:
13
28
1.`{algo}` in filename can be any TCP congestion algorithm (cubic, bbr, reno etc..).
14
29
2. Default algorithm is **cubic** for **cellular**.
15
30
3. Default algorithm is **bbr** if exists for **WiFi**. Else **cubic**.
16
-
4. You can change algorithm by just renaming the file in same format. Eg: If you want to change WiFi TCP congestion algorithm to **reno**, rename `wlan_{algo}` file to `wlan_reno`.
17
-
5. There is an option to kill current tcp connections during algorithm change. This might stop downloads, uploads or other ongoing connections. So apps affected might need to be restarted. To enable create a file named `kill_connections` in module folder. This is disabled by default.
18
-
6. Algorithm is applied only if present in kernel.
19
-
7. Module logs are present in `/data/adb/modules/tcp_optimiser/service.log`.
31
+
4. There is an option to kill current tcp connections during algorithm change. This will stop downloads, uploads or other ongoing connections. So apps affected might need to be restarted. This is disabled by default.
32
+
5. Algorithm is applied only if present in kernel.
33
+
6. Module logs are present in `/data/adb/modules/tcp_optimiser/service.log`.
0 commit comments