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

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!

8 comments:

bu said...

Thanks dude. I'll try it.

Sven Neuhaus said...

Wow, this is incredible! I'll try it on my Archer C7.

Too bad I already sold my TP-Link WR1043ND to go beyond 200MBit/s.

Admin said...

Please recheck your Downloads from LEDE forums I learned that I missed out the Ath10K 5GHZ drivers for Archer C7 v2

tm said...

Hello, thanks for the firmware, I noticed the performance boost when streaming from my NAS.

HL Tay said...

Hello,

I am using 1043nd v1.
The router is setup as relayd.
There is only 1 wireless radio which act as a client.
SQM is applied to the WLAN0.

On the latest official Lede stable release, my SQM works fine.

However, on your July mini build, the SQM does not work.
The router does not honor the ingress and egress limit that I have set.
When I run beta.speedtest.net, the download and upload speed went over the limit.

Can you please advise?

Admin said...

Can you check /etc/sysctl.conf?
The following is set
net.ipv4.tcp_fastopen=3
net.ipv4.tcp_slow_start_after_idle=0
Fast path tend to accelerate packets faster than SQM can process.
On my tests even on eth0.2 the speed is a hump initial fast then slowed down by fast path.

yellow sapphire said...

Nice post, click the links to see the free horoscope website,
Marriage Horoscope by Date of Birth
Marriage Astrology Based on Date of Birth
Marriage Prediction by Date of Birth Free
Free Marriage Prediction by Date of Birth
Marriage Astrology by Date of Birth
Astrology by Date of Birth for Marriage

Tiago Ramalho said...

Hi Admin, thx for your work, my question is, can i upgrade from an old barrier breaker release of yours on the 1043nd V1 or do i need to go back to stock and then flash?

best regards.