sfx2000
Part of the Furniture
The HW crypto in my new toy..
Nice for L2TP/IPSec - not so good for OpenVPN, as OpenVPN is userland still, and the SDK doesn't expose the capability there
But that's an OpenVPN problem, not an EdgeRouter problem...
The HW crypto in my new toy..
If you don't want to exit config mode, you can type 'up' to go out one node, or 'top' to go all the way out to the root
Nice for L2TP/IPSec - not so good for OpenVPN, as OpenVPN is userland still, and the SDK doesn't expose the capability there
But that's an OpenVPN problem, not an EdgeRouter problem...
I've been trying to look for some evidence that MediaTek's SDK does not include support for HW crypto in OpenSSL.
theoratically cut through forwarding (which is CTF) is supposed to reduce latency since packets are forwarded by their headers rather than entire packet. Just like the difference between store-and-forward switch to CTF switch.
The reduction in jitters perhaps partly contributed by CTF off and mainly other tunings. I probably won't be able to reconcile exactly what are those as tunings on fq_codel & tcp/ip stack are done over several days & nights.
traffic-control {
smart-queue smart-qos {
upload {
ecn enable
flows 1024
fq-quantum 1514
htb-quantum 20000
limit 1514
rate 100mbit
}
download {
ecn enable
flows 1024
fq-quantum 1514
htb-quantum 20000
limit 1514
rate 100mbit
}
wan-interface eth0
}
}
echo 2 > /proc/sys/net/ipv4/tcp_ecn
echo -gro 2 > /proc/net/vlan/vlan1
echo 50000 > /proc/sys/net/ipv4/tcp_max_tw_buckets
echo 1048576 > /proc/sys/net/core/wmem_max
echo 1048576 > /proc/sys/net/core/rmem_max
echo 1000 > /proc/sys/net/core/netdev_max_backlog
echo 4096 87380 2038400 > /proc/sys/net/ipv4/tcp_rmem
echo 4096 87380 2038400 > /proc/sys/net/ipv4/tcp_wmem
echo 1024 > /proc/sys/net/ipv4/tcp_max_syn_backlog
The problem with mediatek and other chinese companies is the documentation. They produce chips that are alright but the documentation tends to be where the issue is. For example the raspberry pi compatibles tend to have problems with documentations, licenses, support.
The fun thing to know would be how the chips compare (power use idle vs load, voltages, clocks like how people compare chips for overclocking with x86).
Keep in mind that Mediatek bought Ralink - so the docs for low level stuff might be there when searching around - also keep in mind that CTF as a concept is very broad...
CTF is an interesting from a traffic as opposed to Store and Forward with regards to routing - CTF is a "short cut", e.g. it makes some assumptions mathematically compared to Store/Forward (which is pretty much absolute)
CTF - it can be a good thing, but it does depend on the system engineering on the back end - and various vendors do their thing, and many times this ends up being "secret sauce", to whit the closed source ctf.ko that we see with Broadcom.
I do not like that at all...I keep the rates at 100 'cos EdgeOS internally reduces to 95%.
Any thoughts on fq_codel quantum and limit as well as HTB quantum?
The consensus recommendation for HTB quantum seems to be 8000 or greater for a WAN > 100 Mbit/s. No more precise than that. EdgeOS default 200,000 is outrageously high and I think that's a bug. I reduce it to 20,000.
On fq_codel quantum, 1000 for >100 Mbit/s WAN. Limit keeps to be same as quantum. That's only recommendation I came across. EdgeOS defaults quantum to 1514 and limit to 10240 (x10 Flows). Not quite sure the reasoning..
What you said most likely not true. And that's also most likely not what's happening at various vendors. CTF is in Broadcom's full control, and is provided through its SDK as a binary kernel module. I don't see how vendors could enhance in anyway or break it in stupid ways. Like ASUS, for example, their engineers do not dare to simply remove a debug line from the kernel. I would assert CTF and kernel are used as-is by most if not all vendors as a whole from Broadcom's SDK.
CTF works sometimes as Broadcom advertised. On other occasions it brings lots of compatibility, stability and performance issues. Broadcom is the sole one to blame. Personally I think marketing CTF as hardware NAT is a misrepresentation (CTF does not intend to speed up only NAT'ed traffic) and a scam on consumers (CTF is not performed by dedicated & special purpose HW).
Maybe true 10 or 15 years ago. Quite a different story on today's tier one companies. There was a wake up call for myself a few years ago..
On the SoC, believe it or not, I have the impression MT7621AT is more advanced than BCM4709. Not HW crypto which BCM is lacking. Not HW QoS which BCM also lacks. Not HW NAT which BCM again lacks (it has so called CTF which is a software patch). But the design of the "switch" block. It's actually better not called a switch. But I don't have a better name for it or the paradigm of such a "switch" design.

Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!