Disclaimer

I am not responsible if your devices send you back in time, explodes, implodes, bricks or flies into space from the use of any software I put up.

Search

Monday, August 7, 2017

LEDE Fast Path SQM

Qualcomm Fast Path does not work on ingress on a eth0.2 interface however there is a workaround to control SQM Bandwidth

Basically set it like this

Basically do it at different interfaces I have tested this on jperf and it does not affect LAN Speeds
You should get the following results notice the rate at the download phase grows to the limit instead of a spike.



Monday, July 31, 2017

LEDE Fast Path August Builds

LEDE Fast Path August Builds are out
https://github.com/gwlim/Fast-Path-LEDE-OpenWRT/tree/master/Fast-Path/Aug-2017

Changelogs are as follow:

1) memset, memcpy patches are ported from uclibc-ng over to musl.

Basically a lot of wifi and fast-path operations involves memset and memcpy and unlike ARM and x86 there are no assembler optimization for MIPS and PowerPC musl so this will improve performance

2)SPE is enabled in MPC Linux Kernel since it is library independent, SHA and AES SPE is enabled

3)Backported the latest ath10k firmware from Trunk since it is supposed to be higher performance and stable, but for this I have no way to test and know because I do not have any ath10k router hardware so it will be great to have some user to feedback

4)MSS is enabled by default as the performance difference is negated by Fast Path

5)I stripped down the kernel to remove a lot of unused functions and drivers, for example all your Router device will never have and never will have mavell switches but it is included anyway by default on LEDE because some weird old platform boards contain them. But it makes no sense to most ar71xx mips74k and mip24k which do not contain such hardware so I stripped them out in Kernel Config making a smaller kernel

6)Also I try to include only Kernel Modules to reduce firmware size and reduce dependencies since these are installable from LEDE






Sunday, June 25, 2017

Fast Path For LEDE (Accelerated Network Address Translation)

It has been a long while since my last post, I am please to announce that I have successfully ported Fast Path over to LEDE.

Fast Path


Fast Path is the optimization of the Linux Routing Network Stack
-It is hardware independent so usable on any LEDE supported devices
-Does not require any special switch configuration

Downloads are available here

https://github.com/gwlim/Fast-Path-LEDE-OpenWRT

Sources are available on my github as well.

You can see if Fast Path is loaded on the firmware successfully



Performance

Fast Path improvement in performance can be evidently seen in our old WR1043ND Router

On WR1043ND Wired Fast Path NAT performance is boosted to
Client connecting to 10.1.1.2, TCP port 5001
TCP window size: 0.22 MByte (default)

[ 5] local 192.168.1.103 port 49910 connected with 10.1.1.2 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0- 1.0 sec 81.5 MBytes 684 Mbits/sec
[ 5] 1.0- 2.0 sec 78.4 MBytes 657 Mbits/sec
[ 5] 2.0- 3.0 sec 74.5 MBytes 625 Mbits/sec
[ 5] 3.0- 4.0 sec 78.1 MBytes 655 Mbits/sec
[ 5] 4.0- 5.0 sec 71.9 MBytes 603 Mbits/sec
[ 5] 5.0- 6.0 sec 77.4 MBytes 649 Mbits/sec
[ 5] 6.0- 7.0 sec 74.4 MBytes 624 Mbits/sec
[ 5] 7.0- 8.0 sec 76.8 MBytes 644 Mbits/sec
[ 5] 8.0- 9.0 sec 72.6 MBytes 609 Mbits/sec
[ 5] 9.0-10.0 sec 78.6 MBytes 660 Mbits/sec
[ 5] 0.0-10.0 sec 764 MBytes 640 Mbits/sec
[ 5] MSS size 1448 bytes (MTU 1500 bytes, ethernet)

Wireless Performance also improve due to lower cpu utilization thanks to Fast Path

Client connecting to 10.1.1.2, TCP port 5001
TCP window size: 0.08 MByte (default)

[ 3] local 192.168.1.130 port 55582 connected with 10.1.1.2 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 13.6 MBytes 114 Mbits/sec
[ 3] 1.0- 2.0 sec 16.9 MBytes 142 Mbits/sec
[ 3] 2.0- 3.0 sec 18.0 MBytes 151 Mbits/sec
[ 3] 3.0- 4.0 sec 18.9 MBytes 158 Mbits/sec
[ 3] 4.0- 5.0 sec 17.4 MBytes 146 Mbits/sec
[ 3] 5.0- 6.0 sec 19.2 MBytes 161 Mbits/sec
[ 3] 6.0- 7.0 sec 19.1 MBytes 160 Mbits/sec
[ 3] 7.0- 8.0 sec 19.0 MBytes 159 Mbits/sec
[ 3] 8.0- 9.0 sec 19.2 MBytes 161 Mbits/sec
[ 3] 9.0-10.0 sec 13.9 MBytes 116 Mbits/sec
[ 3] 0.0-10.0 sec 175 MBytes 147 Mbits/sec
Done.

So now with Fast Path all your old Routers can be enhanced in performance without buying a new one!