DD-WRT router that can keep up with gigabit WAN

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Fri Jul 22, 2022 21:42    Post subject: Reply with quote
In response to the discussion regarding alternative devices, it's not difficult to procure pieces
and parts and create a purpose-built appliance for this. I did it for a dual-credit AP computer
science class in high school my sophomore year (2019-2020), but I didn't use DD-WRT, Open
WRT, pfSense, or OPNSense. SFF motherboard with onboard NIC and half-height PCI-e NIC.
Custom Linux distribution built by me. $150-200 or so all told (I'd have to pull out the folder
with all the notes and deets
). Helps to have points of contact at the electronics recycling cen-
ters and other points of procurement that don't cost you a lot of money.

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Jul 23, 2022 7:16    Post subject: Reply with quote
eibgrad wrote:
kernel-panic69 wrote:
The problem with CTF/FA/SFE and port forwarding is NAT loopback. Looks like @egc figured it out, he's a pretty smart guy Wink : https://svn.dd-wrt.com/ticket/7472


Just curious. Are such fixes making known problems compatible w/ CTF, or are they simply bypassing CTF?

In the former, the performance benefits would presumably be preserved, while in the latter, it would NOT.

If it's the latter, then while I appreciate the fix (at least things work again), fact is, your performance is being crippled during those specific operations (e.g., port forwarding), correct?

BTW, I noticed FT (FreshTomato) is marking packets in the mangle table that are specifically known to be incompatible w/ CTF, such as NAT loopback. I find this interesting because it suggests anyone who runs into another unexpected problem could presumably do the same, rather than relying on a developer fix.

Code:
root@lab-tomato2:/tmp/home/root# iptables -t mangle -vnL FORWARD
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 TCPMSS     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp flags:0x06/0x02 TCPMSS clamp to PMTU
    0     0 MARK       all  --  *      br0     192.168.2.0/24       192.168.2.0/24       MARK xset 0x1/0x7


Just wondering if dd-wrt should/could do the same.

FWIW, FT does NOT enable CTF by default, which seems appropriate. It specifically warns that turning it ON will disable the QoS and bandwidth limiting features.

AFAICT (and I could be wrong), dd-wrt leaves CTF on by default, providers no warnings, and does NOT disable it should you enable QoS or other things known to be incompatible (at least I did see CTF disabled on the Setup page when I subsequently enabled QoS).


I think SFE is default and not CTF, but either can cause problems. So it is debatable if it should be on by default

SFE will switch to off if a VAP is used I never checked whether it also switches off when using QoS and if CTF is also switched off.

CTF is a kernel module which is a blackbox so we do not know how it decides which traffic to "accelerate"
DDWRT seems to have no problems using VPN/WireGuard or Port Forwarding (although there are reports from users claiming to have problems) with CTF +FA on.

I know that the CTF implementation of Tomato is reported to leave marked packets alone, that trick does not appear to work in DDWRT at least not in my hands

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Jul 23, 2022 10:32    Post subject: Reply with quote
We know that when CTF is enabled, the bridged interfaces lumped with the WAN port their performance is increased as a side effect. Given CTF/CTF&FA is only WAN/LAN by design.

By default in DD-WRT br0 bridges the wifi interfaces and the switch and obviously the wan port.

IDK whats the best way to get port forwarding working, if your workaround does or doesnt, I hope it does, I dont need PF and dont have a gigabit WAN to enable CTF&FA and try to figure it out, so no interest equals no solution, just meaningless noise. Wink

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sat Jul 23, 2022 10:41    Post subject: Reply with quote
When I did some throughput testing it even seems to increase wireless throughput.

Not sure if this is a direct effect or that it frees up the cpu.

Lots we do not know and probably will never know

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Jul 23, 2022 12:01    Post subject: Reply with quote
egc wrote:
When I did some throughput testing it even seems to increase wireless throughput.

Not sure if this is a direct effect or that it frees up the cpu.

Lots we do not know and probably will never know

Like I said, its a side effect it has on the bridged interfaces, CPU is not a factor, because CTF is software acceleration so it uses CPU, and CTF & FA is both CPU and HW chip, because CTF is still a software acceleration, we know -- we know this. Wink

If you unbridge the wireless interfaces, or create a separate bridge for them, we know that side effect will disapear and thus prove the the theory and then its not a theory anymore its a fact. And its a fact. Don't take my word for it, cause the scientific method is available to you, like someone once said, trust but verify.

However... we know that CTF / CTF & FA bypass all sorts of things that maybe useful WiFi side, some filtering or whatever will likely be lost (this I know I dont know because no tests but its a semi educated guess) so after such determination is made the weighing of the pros and cons must naturally occur., and then decide if the gains are worth the losses. I know I dont know that.

There is much more we know we dont know and also we dont know what is yet unknown, so we know even that.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12877
Location: Netherlands

PostPosted: Sun Jul 24, 2022 8:41    Post subject: Reply with quote
I made some inquiries and now know a little bit more.

We have an upgraded CTF version (a HND version) so different from the older one used in Tomato.

We do not have the ability to mark packets (yet) but it is possible to retrofit this however it might break the automatic handling.

A lot of things our now automatically handled so we do not need the marking

To be continued Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1927

PostPosted: Sun Jul 24, 2022 12:12    Post subject: Reply with quote
Broadcom HND drivers and binary blobs correlate to their corresponding SDKs. HND = home networking division. DHD = defer host disconnect. DD-WRT is using SDK7 on Northstar.

EDIT: Nobody picked up on my blatant goof here. DHD = dongle host driver <lol>

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14207
Location: Texas, USA

PostPosted: Thu Jul 28, 2022 4:45    Post subject: Reply with quote
the-joker wrote:
Understand DD-WRT is GPLv2

There are bits and pieces that are licensed under ecOS / RedHat (redboot), which, dependent on version timestamps of code may fall under one of two licenses, the latter being a modified version of GPLv2.

https://ecos.sourceware.org/license-overview.html

I won't get into the bits and pieces that originated from Linksys' GPL original tarball release(s) a la Broadcom proprietary files. Some of which were originally noted to not be for public release. I don't remember 100% if that was ever reconciled with Broadcom by Linksys or not (nor do I really care at the moment). Anyhow, sharing knowledge helps everyone. Sharing is caring!

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum