What's new

Down to the QoS part....

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

SomeWhereOverTheRainBow

Part of the Furniture
So I have built 2 new Openwrt Routers x86/64. I am down to selecting the proper QoS script. While I understand what "type" of QoS I want, I lack understanding on one concept - What is the difference between
simplest.qos:
Simplest possible configuration: HTB rate limiter with your qdisc attached.

and,

simplest_tbf.qos:
Simplest possible configuration (TBF): TBF rate limiter with your qdisc attached. TBF may give better performance than HTB on some architectures.

What I mean is, what architectures are they talking about when they say some are better with TBF and others are better with HTB?
 
Architectures as in hardware family / chipset / target.

I use qosify to get CAKE with eBPF (kernel level) marking of DSCP for diffserv4.
 
Architectures as in hardware family / chipset / target.

I use qosify to get CAKE with eBPF (kernel level) marking of DSCP for diffserv4.
here is the arch details.

1657324524882.png


Maybe if you feel like sharing some of your configuration details I would like to test them. I am using currently TBF testing it out. I only have experience with HTB.

Here is maybe a better image

1657324667101.png
 
Code:
root@router:~# ubus call system board
{
        "kernel": "5.10.127",
        "hostname": "router",
        "system": "ARMv8 Processor rev 3",
        "model": "Raspberry Pi 4 Model B Rev 1.2",
        "board_name": "raspberrypi,4-model-b",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "22.03.0-rc5",
                "revision": "r19523-bfd070e7fa",
                "target": "bcm27xx/bcm2711",
                "description": "OpenWrt 22.03.0-rc5 r19523-bfd070e7fa"
        }
}
root@router:~# cat /etc/config/qosify

config defaults
        list defaults '/etc/qosify/*.conf'
        option dscp_prio 'video'
        option dscp_icmp '+besteffort'
        option dscp_default_udp 'besteffort'
        option prio_max_avg_pkt_len '500'
        option dscp_default_tcp 'besteffort'

config class 'besteffort'
        option ingress 'CS0'

config class 'bulk'
        option ingress 'LE'
        option egress 'LE'

config class 'video'
        option ingress 'AF41'
        option egress 'AF41'

config class 'voice'
        option ingress 'CS6'
        option egress 'CS6'
        option bulk_trigger_pps '100'
        option bulk_trigger_timeout '5'
        option dscp_bulk 'AF41'

config interface 'wan'
        option name 'wan'
        option ingress '1'
        option egress '1'
        option mode 'diffserv4'
        option nat '1'
        option host_isolate '1'
        option autorate_ingress '0'
        option disabled '0'
        option bandwidth_up '23mbit'
        option bandwidth_down '500mbit'
        option overhead_type 'docsis'

root@router:~# cat /etc/qosify/*.conf
# Facetime
udp:3478-3497 +video
udp:16384-16387 +video
udp:16393-16402 +video

# Zoom
udp:8801-8810 +video
# Bulk
dns:*.backblaze.com bulk
dns:*.backblazeb2.com bulk
dns:*.ms-acdc.office.com bulk
dns:*.windowsupdate.com bulk
dns:*.update.microsoft.com bulk
dns:*.onedrive.com bulk
dns:*.1drv.ms bulk
dns:*.1drv.com bulk
dns:*.sharepoint.com bulk

# Video
dns:*.googlevideo.com video
dns:*.nflxvideo.net video
dns:*.aiv-cdn.net video
dns:*.r.cloudfront.net video
dns:*.aiv-delivery.net video
dns:*.mediaplatform.com video
dns:*.uplynk.com video
dns:*vod-adaptive.akamaized.net video
dns:*.ds*.akamai.net video

# Voice
dns:*.epc.att-idns.net voice
 
Code:
root@router:~# ubus call system board
{
        "kernel": "5.10.127",
        "hostname": "router",
        "system": "ARMv8 Processor rev 3",
        "model": "Raspberry Pi 4 Model B Rev 1.2",
        "board_name": "raspberrypi,4-model-b",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "22.03.0-rc5",
                "revision": "r19523-bfd070e7fa",
                "target": "bcm27xx/bcm2711",
                "description": "OpenWrt 22.03.0-rc5 r19523-bfd070e7fa"
        }
}
root@router:~# cat /etc/config/qosify

config defaults
        list defaults '/etc/qosify/*.conf'
        option dscp_prio 'video'
        option dscp_icmp '+besteffort'
        option dscp_default_udp 'besteffort'
        option prio_max_avg_pkt_len '500'
        option dscp_default_tcp 'besteffort'

config class 'besteffort'
        option ingress 'CS0'

config class 'bulk'
        option ingress 'LE'
        option egress 'LE'

config class 'video'
        option ingress 'AF41'
        option egress 'AF41'

config class 'voice'
        option ingress 'CS6'
        option egress 'CS6'
        option bulk_trigger_pps '100'
        option bulk_trigger_timeout '5'
        option dscp_bulk 'AF41'

config interface 'wan'
        option name 'wan'
        option ingress '1'
        option egress '1'
        option mode 'diffserv4'
        option nat '1'
        option host_isolate '1'
        option autorate_ingress '0'
        option disabled '0'
        option bandwidth_up '23mbit'
        option bandwidth_down '500mbit'
        option overhead_type 'docsis'

root@router:~# cat /etc/qosify/*.conf
# Facetime
udp:3478-3497 +video
udp:16384-16387 +video
udp:16393-16402 +video

# Zoom
udp:8801-8810 +video
# Bulk
dns:*.backblaze.com bulk
dns:*.backblazeb2.com bulk
dns:*.ms-acdc.office.com bulk
dns:*.windowsupdate.com bulk
dns:*.update.microsoft.com bulk
dns:*.onedrive.com bulk
dns:*.1drv.ms bulk
dns:*.1drv.com bulk
dns:*.sharepoint.com bulk

# Video
dns:*.googlevideo.com video
dns:*.nflxvideo.net video
dns:*.aiv-cdn.net video
dns:*.r.cloudfront.net video
dns:*.aiv-delivery.net video
dns:*.mediaplatform.com video
dns:*.uplynk.com video
dns:*vod-adaptive.akamaized.net video
dns:*.ds*.akamai.net video

# Voice
dns:*.epc.att-idns.net voice
What connection speed are your ups and downs? just asking so I can see how to best adjust those for testing,

nvm I see this part right here

Code:
        option bandwidth_up '23mbit'

        option bandwidth_down '500mbit'
 
Code:
root@router:~# ubus call system board
{
        "kernel": "5.10.127",
        "hostname": "router",
        "system": "ARMv8 Processor rev 3",
        "model": "Raspberry Pi 4 Model B Rev 1.2",
        "board_name": "raspberrypi,4-model-b",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "22.03.0-rc5",
                "revision": "r19523-bfd070e7fa",
                "target": "bcm27xx/bcm2711",
                "description": "OpenWrt 22.03.0-rc5 r19523-bfd070e7fa"
        }
}
root@router:~# cat /etc/config/qosify

config defaults
        list defaults '/etc/qosify/*.conf'
        option dscp_prio 'video'
        option dscp_icmp '+besteffort'
        option dscp_default_udp 'besteffort'
        option prio_max_avg_pkt_len '500'
        option dscp_default_tcp 'besteffort'

config class 'besteffort'
        option ingress 'CS0'

config class 'bulk'
        option ingress 'LE'
        option egress 'LE'

config class 'video'
        option ingress 'AF41'
        option egress 'AF41'

config class 'voice'
        option ingress 'CS6'
        option egress 'CS6'
        option bulk_trigger_pps '100'
        option bulk_trigger_timeout '5'
        option dscp_bulk 'AF41'

config interface 'wan'
        option name 'wan'
        option ingress '1'
        option egress '1'
        option mode 'diffserv4'
        option nat '1'
        option host_isolate '1'
        option autorate_ingress '0'
        option disabled '0'
        option bandwidth_up '23mbit'
        option bandwidth_down '500mbit'
        option overhead_type 'docsis'

root@router:~# cat /etc/qosify/*.conf
# Facetime
udp:3478-3497 +video
udp:16384-16387 +video
udp:16393-16402 +video

# Zoom
udp:8801-8810 +video
# Bulk
dns:*.backblaze.com bulk
dns:*.backblazeb2.com bulk
dns:*.ms-acdc.office.com bulk
dns:*.windowsupdate.com bulk
dns:*.update.microsoft.com bulk
dns:*.onedrive.com bulk
dns:*.1drv.ms bulk
dns:*.1drv.com bulk
dns:*.sharepoint.com bulk

# Video
dns:*.googlevideo.com video
dns:*.nflxvideo.net video
dns:*.aiv-cdn.net video
dns:*.r.cloudfront.net video
dns:*.aiv-delivery.net video
dns:*.mediaplatform.com video
dns:*.uplynk.com video
dns:*vod-adaptive.akamaized.net video
dns:*.ds*.akamai.net video

# Voice
dns:*.epc.att-idns.net voice
here is the ubus call

Code:
 ubus call system board
{
        "kernel": "5.4.188",
        "hostname": "OpenWrt",
        "system": "Intel(R) Pentium(R) CPU J4205 @ 1.50GHz",
        "model": "Default string Default string",
        "board_name": "default-string-default-string",
        "release": {
                "distribution": "OpenWrt",
                "version": "21.02.3",
                "revision": "r16554-1d4dea6d4f",
                "target": "x86/64",
                "description": "OpenWrt 21.02.3 r16554-1d4dea6d4f"
        }
}

I flashed with generic x86/64
 
What connection speed are your ups and downs? just asking so I can see how to best adjust those for testing
here is the ubus call
Internet Plan: Extreme Internet
Download Speed: 600Mbps
Upload Speed: 20Mbps

Since you’re on 21.03, the qosify package isn’t available to you. It comes with 22.03 or snapshots.
for your Q setup script what are you using? Layer_cake or Piece of cake?
Not using sqm-scripts anymore. But when I did, I adapted ctinfo-4layercake.

You have many options on OpenWrt. Better to read a lot over there on their wiki and forum.
 
Internet Plan: Extreme Internet
Download Speed: 600Mbps
Upload Speed: 20Mbps

Since you’re on 21.03, the qosify package isn’t available to you. It comes with 22.03 or snapshots.

Not using sqm-scripts anymore. But when I did, I adapted ctinfo-4layercake.

You have many options on OpenWrt. Better to read a lot over there on their wiki and forum.
That is part of the problem. While the wiki leads to good knowledge, there is always a point where you hit a spot of vagueness, thus leading me to ask what specific Architectures is TBF preferred over HTB? A vague info on the wiki, and I haven't found any documentation on google or chatter in their forum.
 
Probably old, slow MIPS routers from years ago. OpenWrt usually has sane defaults for most features. Try something and if it doesn’t work for you, change to something else.
I tested out the simplest with HTB, pretty cool results. I am currently moving to try out Cake with Piece_of_Cake. For cable service providers, would you bother adjusting the Advanced link layer options for MTU greater than 1500? I was under the impression adjustments here are not necessary with a cable ISP.

1657392387873.png
 
Similar threads
Thread starter Title Forum Replies Date
D File system or OS with self-healing and spin-down DIY 3

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top