Dammed !
I thing my egress prioritizing are totally wrong.
I believe the docu is from 2006.
In the past was all better !
But many thangs @moeller for your help
I would believe in my exgress priority for all eternity.
A second problem are i can not really test my config upload.
What is the keyword for looking for, if i want to have a very simple prioprity of my VoIP exgress ?
(like fifo_fast)
So I would really recommend you try to install sqmscripts/luci-app-sqm and try the layer_cake.qos (which will give you diffserv3 out of the box, with a bit of editing in /usr/lib/sqm/layer_cake.qos you can hard switch this to diffserv4) that should hoist your AQM/QoS set-up into the present decade
But short of that, if the kaernel is built with pfifo_fast buil-in or as module the following should switch an interfaces qdisc to pfifo_fast, example for interface eth1.2:
tc qdisc replace dev eth1.2 root cake:
full example with output:
root@router:~# tc qdisc delete dev eth1.2 root cake ; tc -d qdisc show dev eth1.2
RTNETLINK answers: Invalid argument
qdisc noqueue 0: root refcnt 2
root@ router:~# tc qdisc replace dev eth1.2 root cake ; tc -d qdisc show dev eth1.2
qdisc cake 8012: root refcnt 2 unlimited diffserv3 triple-isolate rtt 100.0ms raw total_overhead 18 hard_header_len 18
root@ router:~#
Note I believe that current LEDE builds do not actually deliver pfifo_fast anymore...
The most documentation on the Internet pointed to pfifo_fast.
Have i right understand it is the default in Linux but not in LEDE because bufferbload (security risc ?) ?
I have do it a year before. It brings me a new logical device Nr 13 and cost much recources and slow down my device.
(my device is generall too low for my 100Mbit/s connection, but for using this wonderfull device i will accept 50Mbit/s loss but not more)
I need a slim configuration.
But cake looks like working:
opkg update ; opkg install kmod-sched-cake # installing the required packages first
EXTDEV=pppoe-wan_dsl # my DSL connection
# here i create a new Chain "custom_qos" on OUTPUT where i setting DSCP flags
iptables -t mangle -N custom_qos
iptables -t mangle -A OUTPUT -o ${EXTDEV} -j custom_qos
iptables -t mangle -A custom_qos -p udp --sport 12300 --dport 12300 -j DSCP --set-dscp 44 # setting my fastd VPN to Voice-Admit (AV)
tc qdisc del dev ${EXTDEV} root # delete all old qdisc on that device
tc qdisc add dev ${EXTDEV} root cake help # shows what is possible
tc qdisc add dev ${EXTDEV} root cake bandwidth 20mbit internet diffserv4 # install diffserv4
tc -s qdisc show dev ${EXTDEV}
then i Ping a litlebit the other router and the result are:
Hmm, so sqm-scripts really has no discernible run time cost, it really is just a framework to configure and call the ip and tc binaries, combined with some glue that allows easier integration into lede/openwrt including a hotplug script that makes sure that your configuration survives an ifdown/ifup cycle. And if you have the GUI installed then lici-app-sqm also offers a reasonably easy access to the configuration. The nice thing about sqm-scripts that it is quite easy to use it to operate your own or changed versions of the supplied scripts to get your own customizations woking with the luci gui and hotplug and and and. Neither the sqm-scripts nor the luc-app-sqm scripts packages are really that large, the biggest cost probably are the modules it drags in, both size wise and from the run time cost. So maybe it is time to try that again?
Video really is just a name, any packet with one of the following DSCPs (AF4x, AF3x, CS3, AF2x, TOS4, CS2, TOS1) will be reported in the in the "Video tin".
Autorate ingress only makes sense if you have a variable rate ingress link, vdsl should be fixed bandwidth, especially if you shape down to 20Mbps from a true VVDSL100 link...
But you would configure your expected bandwidth as "bandwidth NNN" followed by the autorate-ingress keyword to tell cake to automatically reduce the bandwidth if latency/drop probability increases too much IIRC.
Yes i have done:
(i have test multiple times and use the middle value)
starting circumstances (all values in Mbit/s if no other units given):
Laptop with 100Mbit Ethernet connector (for this reason only 90-95 is maximum)
VDSL2 with Up/Down 20/100 alway reached the maximum Download (90-95) with the provider Fritzbox 7360v1
Download a 1GB testfile from my Provider: 5.1MB/s[/code]
Result: both QoS unsatisfactory
I need an other QoS solution or better VoIP and SMP support together on this router.
The Problem: The existing rate must always be cut right ?
On high rate VDSL2 connections the ingress rate depend of the load by the device itself.
On low rate ADSL connections each bit/s are precious.
Okay, this is a sub-optimal configuration, you should use layer_cake.qos instead, simple.qos/cake is possible for reference testing, but does not make much sense in production, as you will run both cake and HTB... https://lede-project.org/docs/user-guide/sqm has a bit more detail on sqm-scripts configuration
And finally run dslreports speedtest while concurrently log into your router and run "top -d 1" and look at the idle and sirq values; if idle is always 0 or close to 0, your router simply runs out of CPU cycles (traffic shaping is unfortunately a bit expensive).
Yes, for ingress shaping a bit of bandwidth sacrifice is necessary, but most users are happy with something in the range of 85-95% of the gross download bandwidth.
without any QoS you only get
(8.281000^2)/(10001000) = 65.6 Mbps (which matches the speedtest.net number of 65 quite well).
if we try to calculate the respective gross rate (brutto-bandbreite) we get:
(8.281000^2) * ((1500+26)/(1500-8-20-20)) / (10001000) = 68.94 Mbps
So, I guess the 6431 is a lot less capable than the FB 7360v1...
I ran into a similar issue with a BT hoe hub 5a, that box was not powerful enough (under lede at least) to do VDSL2, PPPoE, NAT, firewalling and wifi even at a 50/10 VDLS2 link. So I turned that box into a dedicated bridged modem, and have an old wndr3700v2 do PPPoE, NAT, firewalling and wifi, which for whatever reason has no issues doing all of that. And I also would really like to reduce my router park a bit...
Best Regards
True, this is why sqm-scripts defaults to ECN on the downstream, so that packets do not need to be dropped 9assuming both endpoints negotiated ECN).
Mem: 42796K used, 14812K free, 1152K shrd, 3080K buff, 12132K cached
CPU: 0% usr 3% sys 0% nic 96% idle 0% io 0% irq 0% sirq
Load average: 1.33 0.97 0.50 1/102 6731
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
6731 6709 root R 1184 2% 3% top -d 1
5167 1 asterisk S 28304 49% 1% /usr/sbin/asterisk
1664 1 nobody S 3380 6% 0% /usr/sbin/openvpn --syslog openvpn(ov
1495 1 root S 2136 4% 0% /usr/sbin/uhttpd -f -h /www -r LEDE -
1167 1 root S 1740 3% 0% /sbin/netifd
2003 1 root S 1684 3% 0% /usr/sbin/hostapd -s -P /var/run/wifi
1 0 root S 1528 3% 0% /sbin/procd
1025 1 root S 1440 2% 0% /sbin/rpcd
1213 1 root S 1424 2% 0% /usr/sbin/odhcpd
5225 1 root S 1360 2% 0% {dynamic_dns_upd} /bin/sh /usr/lib/dd
5226 1 root S 1360 2% 0% {dynamic_dns_upd} /bin/sh /usr/lib/dd
4525 1 root S 1360 2% 0% {dynamic_dns_upd} /bin/sh /usr/lib/dd
1234 1 root S 1252 2% 0% /sbin/vdsl_cpe_control -i10_00_10_00_
1016 1 root S 1224 2% 0% /sbin/logd -S 64
2453 1167 root S 1204 2% 0% /usr/sbin/pppd nodetach ipparam wan_d
1911 1 fastd S 1192 2% 0% /usr/bin/fastd --config - --daemon --
500 1 root S 1192 2% 0% /sbin/ubusd
6709 6708 root S 1188 2% 0% -ash
1285 1 root S 1188 2% 0% /usr/sbin/crond -f -c /etc/crontabs -
From the main hardware part: the FB have 128MB RAM instead 64MB, chipset+modem are the same.
From the software part: The Fritz!OS Linux uses both "cores" presumably (the FB 7490 do it)
It has no tapi.ko and no vmmc.ko but it has an 1,1 MByte isdn_fbox_fon5.ko on the soucecode is inside the /GPL/GPL-release_kernel/linux-3.10/drivers/isdn/isdn_fon5
some init files and emty makefiles but no C-source.
The FB 7490 have some other strange huge kernelmods:
In the past i have an modem and a sepparate Telefon connection and everthing was fine, i enabled the modem and router only if i need the network.
But with VoIP it must be always enable.
I want an analogphone and i want LEDE, for this reason, if want to separate my network i choice:
1x O2-Box 6431 (or other Lantiq VRX200 device) for VDSL Modem
1x the other nice Lantiq VRX200 device: Easybox 904xDSL as mainrouter
1x O2-Box 6431 as ATA
I thing you can understand me that i want to do it with one device.
Ah, you need to select layer_cake.qos which defaults to 3 traffic classes; to get four you should edit /usrlib/sqm/defaults.sh:
from:
[ -z "$INGRESS_CAKE_OPTS" ] && INGRESS_CAKE_OPTS="diffserv3"
[ -z "$EGRESS_CAKE_OPTS" ] && EGRESS_CAKE_OPTS="diffserv3"
That will get you to the 4 traffic classes but you also need to add the following to /etc/config/sqm to make ingress also honor the DSCPs
option qdisc_advanced '1'
option qdisc_really_really_advanced '1'
option squash_dscp '0'
option squash_ingress '0'
Okay, the 0% idle and the 94% sirq is a clear indicator that your router does not have a powerful enough CPU
to do all the stuff you want it to do. Especially since at rest you see basically the inverse: 96% idle and 0% sirq.
So at least with the lede standard kernel this box does not seem capable enough for a 100/20 link like yours, which is a bit sad. Now, traffic shaping carries a huge cost, so maybe things look better without an active shaper? How do idle and sirq look for a speedtest without sqm? It is suffiecient to disable the sqm instance, either via the GUI or via the CLI ("/etc/init.d/sqm stop")?
Please note that sqm-scripts from June on will not require to specify the mpu explicitly in the [i|e]qdisc_opts, but should take the tcMPU value instead.
It should be possible (untested) to reduce it to two devices, namely by letting one o2 box 6431 act as both modem and SIP ATA with a clever vlan configuration (e.g. dsl0.7 bridged with LAN1, asterisk and the management interface only available only on LAN2-4) - combined with a dedicated router, handling PPPoE, NAT and WLAN (WAN to LAN1 of the o2 6431, one of the LAN ports connected to one of LAN2-LAN4 of the o2 box 6431, to provide it with internet access for asterisk). Neither of those tasks (pure modem in bridge mode) or the SIP pbx should be too difficult for the VRX288 to handle, probably at close to 100 MBit/s.
For the dedicated router (especially if you want to do traffic shaping), lantiq is a bit too weak - and that's also a problem with your chosen solution (Easybox 904xDSL), which is more fancy than the o2 box 6431, but (SOC and I/O wise) not any faster than the o2 box 6431. A mt7621 (cheapest option, Xiaomi Mi 3g), ipq4018/ipq4019 (cheapest/ only option, AVM Fritz!Box 4040), ipq806x (Netgear r7800 or ZyXEL NBG6817) or mvebu (Linksys WRT1200AC or Linksys WRT3200ACM) device would be considerably more powerful for routing and traffic shaping tasks; top end ar71xx (e.g. TP-Link Archer C7v2 might also come close, but would be too expensive compared to the faster mt7621/ ipq40xx options available today).
I already had that idea.
I rejected it.
Because it never reach the 100MBit/s and fear it will not reach the 95MBit/s because missed SMP support.
The second fear is that the switch a leak. (the try was for a long time and i can not exact say what i have do), And the switches of my Provider leak too.
Leak = i mean very few Packets go to somewhere.
When i do it my idea was to have an perfect Network like: DSL-Modem (VR9 with GBit-support) <-> Router (no idea which Model) <-> VoIP O2-Box or Easybox
Then there are the 2 RPis one for alarm system and one for somethings.
But for me the O2-Box is enought for me.
It is more because: i want a solution for 50MBit/s in general.
Only with LEDE not on OEM-Linuxes for example Speedport W921v, TP-Link etc.
Is there support for PPE (Protokoll Processor Engine) inside LEDE ? see this thread
For the normal WLAN Router
Which SOC can you recommend ?
ipq401x/ ipq8065, mvebu or mt7621 should all be able to cope easily with ~100 MBit/s, plus quite some margin on top.
ipq4019: AVM Fritz!Box 4040 (the only device using this SOC fully supported by LEDE so far)
ipq8065: e.g. Netgear r7800 or ZyXEL NBG6817 (both should be supported equally well under LEDE)
mvebu: e.g Linksys WRT1200AC or Linksys WRT3200ACM (the current hardware revision of the WRT3200ACM doesn't seem to be supported right now, but that should be solvable)
mt7621: e.g. Xiaomi Mi 3g, D-Link DIR-860L rev. B1 (not A1), AFoundry EW1200.
Either of these should deal with 100 MBit/s easily, including SQM. In terms of raw CPU performance, ipq8065 and mvebu should be the fastest - when it comes to routing performance, mt7621 and mvebu should be a bit faster; for SQM you need a mixture of both (but the 'faster routing performance' only matters for throughputs significantly above 300 MBit/s).
The cheapest options would be ipq401x or mt7621, the high(er) end ones ipq8065 or mvebu.
If you'd already own a top end ar71xx device (TP-Link Archer C7 rev2 (the newer revisions are also supported, but slower) or at least TP-Link TL-WDR3600, Netgear WNDR3800, etc.), you might be able to get them work sufficiently (but with only little safety margin). Buying those new today wouldn't make sense though, too expensive for what they can offer performance wise (barely able to cope with your requirements).
Personally I'm pretty happy with the ZyXEL NBG6817 as router on a 100/40 VDSL2/ vectoring connection (it's significantly faster than it would strictly need to be), with a lantiq device acting as pure modem and another lantiq device as VoIP pbx exclusively.
What is the meaning of Bufferbload ?
When i right understand was the reason for removing fifo_fast Bufferbload. Right ?
But what is it ?
For the moment to resolv the Problem i will try to use the 34Kc Arch instead of 24Kc it is minimal faster.
Or i try that SQM will only enable when a call comes in via Asterisk AGI script but this is complex.
Well, bufferbloat is a name for the phenomenon that over-sized and under-managed buffers will introduce large and unwanted latency under load increases when a link is under load. Since latency/RTT determines how "snappy"/responsive a link behaves this added delay is quite bad for all interactive kind of uses, like gaming, VoIP, or even web browsing. Hos slreports exactly deines their bufferbloat rating I do not know, but they do offer all the raw data points so you can make your own assessment. A typical assessment is that for a provider supplied router on a 50/10 link you might see latency under load increase from around 50 to 300 ms (or even worse some users see multiple seconds worth of added delay); with proper bufferbloat mitigation (e.q.: sqm-scricpts simple.qos/fq_codel or piece_of_cake.qos/cake you might see more like 70 to 100ms worst case). Hope that helps.
I would guess that this, while in principle the right thing to do, will only gain you very little.
Not sure this is going to fly, as any use that saturates your link will cause latency under load sky-rocket and at least I want my router's to deal with those unexpected traffic patterns as well.
Personally, I accepted defeat and dedicated the bt homehub5a to be a bridged modem (with a great interface ) and do all of the router stuff (including pppoe and nat) on a secondary device; as that lantiq could not handle the load of everything I want to run concurrently. NOw more power to you if you get your box tp do all of the duties, and please post the steps you took so others (read me ) have a chance to try as well