Is it common to experience a drop in wired connection speed when you turn on QoS? Without QoS, I can get about 800 Mbps download but with QoS turned on, I get about 500+ Mbps.
Since this is a frequently discussed topic, I thought I'd put what I know about this in a new thread.
CTF is Broadcom's closed-source, proprietary "secret sauce" that allows routers based on their hardware to achieve near gigabit performance. It does so through various methods which are not publicly known (even manufacturers don't get access to the ctf.ko source code AFAIK). One of it involves bypassing parts of Linux's Netfilter (the FORWARD chain is the most known one).
So as you can already see, "hardware acceleration" isn't an entirely accurate name. At least one portion of that acceleration is really a software trick (bypassing part of Linux's stack).
Due to these bypass, it prevents various firmware-level features from working. Anything that relies on the FORWARD chain for instance. The solution used by router manufacturers usually work on two different levels:
1) Some manufacturers like Asus and Netgear (if I remember correctly) will allow port-forwarding to work by modifying the Linux kernel so that any packet that gets marked will be flagged to bypass the CTF code. At the iptables level, any port-forwarded packet gets marked with a value. This way, you can have HW acceleration enabled and still use port forwards. The obvious consequence of this is that any traffic going through a port forward will not be "hardware-accelerated". So if you were to push a lot of traffic over a forwarded port, that traffic would probably not be able to reach near gigabit performance.
(caveat: I never actually tested this. I assume that CTF bypass is applied to every single packets that gets marked, not just on part of it)
2) When certain incompatible features are enabled, then the router is rebooted with CTF disabled. In this mode, the processing is then entirely done by Linux. It allows you to do anything you'd want (as a firmware developer), but performance is seriously impacted. A typical 600 MHz MIPS device (such as the RT-N66U) will reach a WAN to LAN limit of around 150-200 Mbps (less if you start heavily processing traffic through QoS, parental control, custom firewall rules, etc...). Unfortunately, it's not always clear to the end user when HW acceleration is automatically disabled by such a thing. If your router has telnet access, you could see if the ctf.ko kernel module is loaded or not, using the "lsmod" command.
CTF is what explains why most third party firmwares (such as DD-WRT) tend to have lower throughput than manufacturer stock firmwares. For people with average (North American levels there) WAN rates of 10-100 Mbps, this is not an issue. Any additional feature will come at no real cost on maximum throughput. But for our more fortunate oversea friends who get 100-1000 Mbits link speeds, CTF is virtually essential.
Due to the nature of its closed-sourceness, and also the fact that many advanced features do not work with CTF enabled, this is why most third party firmwares such as DD-WRT or OpenWRT don't support CTF.
Now, another recent topic: the different levels of hardware acceleration. Recent Broadcom chips support a new technology they call "Flow Acceleration", or "FA" for short. Broadcom's demonstration can be seen in this video:
https://www.youtube.com/watch?v=vwRmQkkZ71E
In home routers that have hardware supporting this, it gets handled by the same ctf.ko module, in addition to support being implemented at the Ethernet driver level. Unfortunately I don't know which specific Broadcom chips support this, or which specific routers support it. I know that neither the RT-AC56U or RT-AC68U (as of this date) support this at the hardware level. No idea about Netgear or Linksys's recent products.
In Asus's particular case (since it's the one I'm most familiar with - someone else could fill us up on the other manufacturers), they are handling this as a "Hardware acceleration level". Level 1 is just traditional CTF. Level 2 is traditional CTF + FA. One coming product that does support both levels will have to downgrade from Level 2 to Level 1 when one of the new features they are adding will be enabled.
One thing I do not know however is what kind of performance impact FA has on a router. Traditional CTF was already able to push things fairly close to gigabit speed with a minimal CPU impact.
(disclaimer: most of this is based on my own experience over the years. Due to the blackbox nature of CTF, I might not be 100% correct on all of this, so if anyone has any additional detail or corrections, feel free to share)
I notice that many times after an update of firmware the router will dc every few minutes. Checking logs it states failure to get dhcp....
I have to reboot the opennet fiber box to resolve it. Any idea why this is happening ?
update: I'm also getting these errors.. Dual WAN has been disabled.
May 15 17:53:17 miniupnpd[853]: Failed to get IP for interface vlan2
May 15 17:53:17 miniupnpd[853]: SendNATPMPPublicAddressChangeNotification: cannot get public IP address, stopping
Sent from Samsung SM-G935F using GAGT
Yes, it's a known fact.
Enabling QoS will disabled CTF (Cut Through Forwarding) aka NAT acceleration.
Our local SG 500Mbps/1Gbps Fiber environment doesn't need to utilise QoS.
Hi Guys,
Two days ago i purchased RT-AC87U router and RP-AC68U (repeater with 5 gigabit ports) but having some weird performance issue.
Currently having Singtel Unlimited 1GB Fiber plan, wired speedtest performance of 750+Mbps DL, 800+Mbps UL.
I wanted to connect afew non AC devices (ie desktop and NAS) via the RP-AC68U repeater and replace my old router with RT-AC87U.
When i do a internet speed test, im having "low" (not what to expect actually) or half the speed compared to upload speed.
Test using:
i. Using Singtel speedtest [speedtest.singnet.com.sg]
ii. Transfer 1GB of file Comp A (cable wired to RT-AC87U router) to Comp B (cable wired to RP-AC68U) using wireless 5Ghz. All cables are CAT 5e and above.
Here is the result i got:
Scenario 1: Placing Router and Repeater at distance of 15 meters apart.
i. Download speed 180~220Mbps, Upload speed 380~440Mbps.
ii. Down speed up to 35Mbytes/s , Up speed 55MBytes/s
(Note: Link rate as show in RP-AC68U for 5Ghz is 872~1053Mbps)
Scenario 2: Placing Router and Repeater next to each another.
i. Download speed 220~240Mbps, Upload speed 483~540Mbps.
ii. Down speed up to 60Mbytes/s, Up speed 65Mbytes/s
(Note: Link rate as show in RP-AC68U for 5Ghz is 1037~1103Mbps)
The result in scenario 2 is weird cause at side by side, the download speed is still at half of upload.
Where else the file transfer seems to be doing fine and consistance.
Tried using latest Merlin and Asus firmware with similar results. Qos is disabled.
I'm more focused on the 5Ghz transfer speed as im using "Express Way 5Ghz" setup in RP-AC68U repeater.
5Ghz settings in RT-AC87U router as follows:
Wireless Mode: Auto
Channel bandwidth: 80Mhz
Control Channel: 157
Extension Channel: Auto
Protected Management Frames: Disabled
Roaming Assistant: Disabled
Enable IGMP snooping: Disabled
DTIM Interval: 3
Beacon Interval: 100
820.11ac beamforming: Enabled
Universal Beamforming: Enabled
Tx power adjustment: Performance
I've tried using inSSIDer to see if there is other 5Ghz interfering with my signal but seems like im the one
device around.
I'm not sure if this kind of performance we are suppose to get from an AC device but it does look depressing.
Anyone with the similar situation before can help?
Thanks![]()
ISP to Router = DL/UL ?
Tested this at my office:
Repeater mode,
88U 5ghz connect to RP-AC68
RP-AC68 connected to laptop gigabit port
From my room with RP-AC68U to the router at the living room. Less than 15 meters away.
212.69Mbps down, 489.77Mpbs up.
(cant post pictures yet, here is the link to the image)
speedtest.net/result/5337313411.png
AdaptiveQOS not disable CTF
ISP to Router = DL/UL ?
Router to other 5ghz device = DL/UL ?
I made a video to show weak performance
link: youtu.be/wd8rqI-l1lw
I have the exact same problem with my 68U now. I'm on VQ.
- turn off qos (impt)
- turn off spanning tree protocol under switch control. This is needed to achieve the next point
- enable CTF and FA under switch control (impt)
- do you need to run the Rp-ac68u in repeater mode ? If you don't need to don't.
- connect the rp-ac68u to ac87u as media bridge. Do this using the 5ghz band
- Make sure you are using cat5e or higher utp cables.
Qos prevents FA/ctf nat acceleration and the RP if set to repeater mode cuts bandwidth of what you have on the same ssid / band into half. If you don't need a roaming ssid no need repeater mode. Use bridge mode cause achieve the same thing, using the full bandwidth of the 5ghz bridge channel but at the lost of wireless roaming on the bridge. Your devices just connect them to the 2.4ghz band on ac87u.
I'm on starhub and can hit 850/850 on devices connected to my wireless bridge. All running cat6