https://github.com/fatalcoder524/TCP_Optimiser_Module
A Magisk/KernelSU module to change tcp congestion algorithm based on current active internet type and some network enhancements.
https://github.com/fatalcoder524/TCP_Optimiser_Module
Last synced: 4 months ago
JSON representation
A Magisk/KernelSU module to change tcp congestion algorithm based on current active internet type and some network enhancements.
- Host: GitHub
- URL: https://github.com/fatalcoder524/TCP_Optimiser_Module
- Owner: fatalcoder524
- Created: 2025-05-09T17:07:07.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-06-02T09:28:45.000Z (7 months ago)
- Last Synced: 2025-06-02T20:19:55.815Z (7 months ago)
- Language: JavaScript
- Size: 1.1 MB
- Stars: 21
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-android-root - TCP Optimiser Module - Change tcp congestion algorithm based on current active internet type and some network enhancements. `FOSS` `[M]` `[K]` (🌐 Network and Connectivity / Misc Network Tools)
README
# TCP_Optimiser_Module
A Magisk/KernelSU module to change tcp congestion algorithm based on current active internet type and some network enhancements.
# Why?
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.
# Features
1. Set TCP Congestion Algorithm based on interface(Wi-Fi/Cellular).
2. Auto Change TCP Congestion Algorithm on interface change.
3. Set initcwnd and initrwnd value to max.
# How to use
1. Install the module.
2. It creates 2 files `wlan_{algo}` and `rmnet_data_{algo}` in module folder.
3. Reboot device.
4. Basic Functionality of module must run normally on boot.
# Tuning Module by files [/data/adb/modules/tcp_optimiser]
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.
2. Create an empty file named `initcwnd_initrwnd` to set initcwnd and initrwnd value to max values.
3. Create an empty file named `kill_connections` to kill all connections during switch. [Be carefull!]
4. Create an empty file named `force_apply` to apply changes immediately.
# Tuning Module by WebUI
All the module settings can be controlled using Module WebUI in KSU and APatch or KsuWebUIStandalone app for Magisk.
## Note:
1. `{algo}` in filename can be any TCP congestion algorithm (cubic, bbr, reno etc..).
2. Default algorithm is **cubic** for **cellular**.
3. Default algorithm is **bbr** if exists for **WiFi**. Else **cubic**.
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.
5. Algorithm is applied only if present in kernel.
6. Module logs are present in `/data/adb/modules/tcp_optimiser/service.log`.