Tutorials OpenWrt Network Tweaking by adding Hybla Max Congestion controller and tweakings

Marks-Man

Administrator

OPENWRT​

Download OPENWRT SDK according to your router architecture

cd sdk
Click to expand...
Upload "hybla_max" folder to package folder

make menuconfig
Click to expand...
Select Kernel modules --> Network Support ---> kmod-hybla_max

make package/hybla_max/compile V=99
Click to expand...
Navigate to bin directory, find and install kmod-hybla_max.ipk

insmod tcp_hybla_max.ko
echo "tcp_hybla_max" > /etc/modules.d/hybla_max
sysctl -w net.ipv4.tcp_congestion_control=hybla_max
Click to expand...

Linux​

Download "tcp_hybla_max/module" folder

cd tcp_hybla_max/module/
make
insmod tcp_hybla_max.ko
sysctl -w net.ipv4.tcp_congestion_control=hybla_max
Click to expand...
You can load module on startup in rc.local file

Route Tweaking with ip route​

Tweak your lan network and at first check your network routes because it differs from network to network. ex: 192.168.1.0/24

ip route
Click to expand...
[[email protected]_OpenWrT:/root]#ip route
default via 172.23.0.250 dev eth0.2 proto static src 172.23.0.249
172.23.0.0/16 dev eth0.2 proto kernel scope link src 172.23.0.249
172.23.0.250 dev eth0.2 proto static scope link src 172.23.0.249
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
[[email protected]_OpenWrT:/root]#
Click to expand...

Create .sh script in order not to get disconnect because we need to delete route and re-add a new one

vi run.sh
Click to expand...
add the following :

ip route del 192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
ip route add 192.168.1.0/24 dev br-lan ttl-propagate enabled proto dhcp scope global window 999999999 rtt 4000000000ms rttvar 0ms cwnd 1 initcwnd 1000 nexthop dev br-lan weight 1 realm 2
Click to expand...
sh run.sh
Click to expand...
Note: ttl-propagate option is not available on old iproute, please make sure you are running on latest kernel

Sysctl.conf Tweaks​

...
Click to expand...

Read more

Continue reading...
 
Top