Packet loss and Latency R7800

Got it! Thank you!

Question for everyone. I can upgrade that line to 55 down and 5 up. What do you think? Cost is less than 10 dollars a month.

I'm going to wait before I do anything to see if we can figure things out.

Definitely do this, since you have a dedicated connection just for the game machines, this will likely be all you need

root@OpenWrt:~# tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc htb 1: dev eth0 root refcnt 9 r2q 10 default 18 direct_packets_stat 0 direct_qlen 1000
 Sent 614687593 bytes 5919669 pkt (dropped 1265, overlimits 198142 requeues 50557)
 backlog 0b 0p requeues 50557
qdisc fq_codel 120: dev eth0 parent 1:12 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
 Sent 614687077 bytes 5919667 pkt (dropped 1265, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 1506 drop_overlimit 0 new_flow_count 1800006 ecn_mark 0
  new_flows_len 1 old_flows_len 11
qdisc fq_codel 130: dev eth0 parent 1:13 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 110: dev eth0 parent 1:11 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
 Sent 14238810168 bytes 10097629 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc mq 0: dev eth1 root
 Sent 213413304 bytes 306472 pkt (dropped 0, overlimits 0 requeues 839)
 backlog 0b 0p requeues 839
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
 Sent 213413304 bytes 306472 pkt (dropped 0, overlimits 0 requeues 839)
 backlog 0b 0p requeues 839
  maxpacket 1514 drop_overlimit 0 new_flow_count 250 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev eth1.1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc htb 1: dev ifb4eth0 root refcnt 2 r2q 10 default 16 direct_packets_stat 0 direct_qlen 32
 Sent 14409442707 bytes 10054517 pkt (dropped 29290, overlimits 8119477 requeues 0)
 backlog 0b 0p requeues 0
qdisc fq_codel 110: dev ifb4eth0 parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
 Sent 14409442707 bytes 10054517 pkt (dropped 29290, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 11756 drop_overlimit 0 new_flow_count 907099 ecn_mark 0
  new_flows_len 1 old_flows_len 2
qdisc noqueue 0: dev eth0.2 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
root@OpenWrt:~# root@OpenWrt:~# tc -s qdisc
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# qdisc noqueue 0: dev lo root refcnt 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc htb 1: dev eth0 root refcnt 9 r2q 10 default 18 direct_packets_stat 0 direct_qlen 1000
  new_flows_len 1 old_flows_len 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 614687593 bytes 5919669 pkt (dropped 1265, overlimits 198142 requeues 50557)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 50557
-ash: backlog: not found
root@OpenWrt:~# qdisc fq_codel 120: dev eth0 parent 1:12 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb
ecn
-ash: qdisc: not found
root@OpenWrt:~#  Sent 614687077 bytes 5919667 pkt (dropped 1265, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~#   maxpacket 1506 drop_overlimit 0 new_flow_count 1800006 ecn_mark 0
-ash: maxpacket: not found
root@OpenWrt:~#   new_flows_len 1 old_flows_len 11
-ash: new_flows_len: not found
root@OpenWrt:~# qdisc fq_codel 130: dev eth0 parent 1:13 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb
ecn
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~#   maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
-ash: maxpacket: not found
root@OpenWrt:~#   new_flows_len 0 old_flows_len 0
-ash: new_flows_len: not found
root@OpenWrt:~# qdisc fq_codel 110: dev eth0 parent 1:11 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb
ecn
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~#   maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
-ash: maxpacket: not found
root@OpenWrt:~#   new_flows_len 0 old_flows_len 0
-ash: new_flows_len: not found
root@OpenWrt:~# qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
-ash: qdisc: not found
root@OpenWrt:~#  Sent 14238810168 bytes 10097629 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc mq 0: dev eth1 root
-ash: qdisc: not found
root@OpenWrt:~#  Sent 213413304 bytes 306472 pkt (dropped 0, overlimits 0 requeues 839)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 839
-ash: backlog: not found
root@OpenWrt:~# qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ec
n
-ash: qdisc: not found
root@OpenWrt:~#  Sent 213413304 bytes 306472 pkt (dropped 0, overlimits 0 requeues 839)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 839
-ash: backlog: not found
root@OpenWrt:~#   maxpacket 1514 drop_overlimit 0 new_flow_count 250 ecn_mark 0
-ash: maxpacket: not found
root@OpenWrt:~#   new_flows_len 0 old_flows_len 0
-ash: new_flows_len: not found
root@OpenWrt:~# qdisc noqueue 0: dev br-lan root refcnt 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc noqueue 0: dev eth1.1 root refcnt 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc htb 1: dev ifb4eth0 root refcnt 2 r2q 10 default 16 direct_packets_stat 0 direct_qlen 32
-ash: qdisc: not found
root@OpenWrt:~#  Sent 14409442707 bytes 10054517 pkt (dropped 29290, overlimits 8119477 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc fq_codel 110: dev ifb4eth0 parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit
 4Mb ecn
-ash: qdisc: not found
root@OpenWrt:~#  Sent 14409442707 bytes 10054517 pkt (dropped 29290, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~#   maxpacket 11756 drop_overlimit 0 new_flow_count 907099 ecn_mark 0
-ash: maxpacket: not found
root@OpenWrt:~#   new_flows_len 1 old_flows_len 2
-ash: new_flows_len: not found
root@OpenWrt:~# qdisc noqueue 0: dev eth0.2 root refcnt 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# qdisc noqueue 0: dev wlan0 root refcnt 2
-ash: qdisc: not found
root@OpenWrt:~#  Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
-ash: syntax error: unexpected "("
root@OpenWrt:~#  backlog 0b 0p requeues 0
-ash: backlog: not found
root@OpenWrt:~# tc -d qdisc
qdisc noqueue 0: dev lo root refcnt 2
qdisc htb 1: dev eth0 root refcnt 9 r2q 10 default 18 direct_packets_stat 0 ver 3.17 direct_qlen 1000
 linklayer ethernet overhead 22
qdisc fq_codel 120: dev eth0 parent 1:12 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
qdisc fq_codel 130: dev eth0 parent 1:13 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
qdisc fq_codel 110: dev eth0 parent 1:11 limit 1001p flows 1024 quantum 300 target 7.0ms interval 102.0ms memory_limit 4Mb ecn
qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
qdisc mq 0: dev eth1 root
qdisc fq_codel 0: dev eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc noqueue 0: dev br-lan root refcnt 2
qdisc noqueue 0: dev eth1.1 root refcnt 2
qdisc htb 1: dev ifb4eth0 root refcnt 2 r2q 10 default 16 direct_packets_stat 0 ver 3.17 direct_qlen 32
 linklayer ethernet overhead 22
qdisc fq_codel 110: dev ifb4eth0 parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
qdisc noqueue 0: dev eth0.2 root refcnt 2
qdisc noqueue 0: dev wlan0 root refcnt 2
root@OpenWrt:~# cat /etc/config/sqm

config queue 'eth1'
        option qdisc_advanced '0'
        option debug_logging '0'
        option verbosity '5'
        option linklayer 'ethernet'
        option overhead '22'
        option enabled '1'
        option interface 'eth0'
        option download '24991'
        option upload '1992'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '0'
        option linklayer_adaptation_mechanism 'default'
        option qdisc 'fq_codel'
        option script 'simple.qos'

I hope I did it right...

2 Likes

If you enjoy a lot of gaming it makes sense, as the stats suggest you are near capacity download

1 Like

These seem a tad high, could you post the result of a dslreports speedtest (see https://forum.openwrt.org/t/sqm-qos-recommended-settings-for-the-dslreports-speedtest-bufferbloat-testing/2803 for how to best do this for the forum) so we can get an estimate of reasonable shaper bandwidth settings, please?

I believe that on a DOCSIS network this needs to be 64 and not zero.

I would probably recommend cake and layer-cake.qos here as that will allow to configure per-internal-IP-fairness, so no single XBox should be able to spoil the fun for everybody else... But first the speedtests, please :wink:

Here's the link

I haven't changed any settings yet

Did this test on PC wired

I can't believe that xbox's would pull that much. Amazing! I can't even imagine having 4 on at one time or will I be screwed.

Run that speed test a few times a day for a few days....

Jot down the time and result......

Seems like potential congestion issues on the upstream....

aka... docsis bus network ( your neighbours )

Off subject what's the best browser to use for this forum to be able to send me a notification ringtone or something letting me know that I have a response here?

Go it!

Where do you see that just curious? Someone is getting a flat tire. LOL

Question, did you disable SQM for this speedtest? If not please repeat with SQM disabled, as we want an estimate of the maximally achievable goodput to make an educated guess how to set the shaper limits.

nope... I'll do it now.

Sorry, I should have mentioned that, but the speedtest looks nice bufferbloat-wise :wink:
Also really close to the theoretical limit:
Measured:
24.02/1.91
theoretical limits:
24991 * (1500-20-20) / 1522 = 23972.96 Kbps
1992 * (1500-20-20) / 1522 = 1910 Kbps

(I just realized you account for 22 bytes of overhead not 18, so I corrected the values)

No worries... almost done. Damm I can't spell or my fingers are just moving to fast

Survey says!!

1 Like

What time is it where you are at?

2:31pm est. USA

So from this measurment it seems the ISP docsis shaper is set to around:
26 * 1518 / (1500-20-20) = 27.03 Mbps
1.9 * 1518 / (1500-20-20) = 1.98 Mbps
Sounds believable for the downstream, as docsis ISPs tend to over-provision, but on the uplink I am not 100% sure whether that is the shaper of too much traffic from your neighbors :wink:

Anyway, based on these I would set the shapers to:
downlink 27 * 0.9 = 24300
uplink 1.9 * 0.99 = 1881

But those are close enough to the settings you used before so this will not change much

OK... Funny? Can it possibly be me considering that the cable guys came here and just put a splitter on one cable line to hook up the new xbox modem. So two modems one line.