everything works well, the latency remains low, but it is a rare thing when I play (Cod), the latency is variable when I enter to play the Battle royale mode of Cod (WZ), but when I play in the multiplayer mode of MW, the latency is good, it does not go up or down, so what is the problem ?
I've noticed that when someone downloads a game or a file no more than 100 mb, the latency increases, so I thought using diffserv4 can help with that, but does it really ?
here my settings:
root@OpenWrt:~# cat /etc/config/sqm
config queue 'eth1'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option interface 'eth0'
option debug_logging '0'
option verbosity '5'
option linklayer 'ethernet'
option qdisc_advanced '1'
option squash_dscp '1'
option squash_ingress '1'
option egress_ecn 'NOECN'
option ingress_ecn 'ECN'
option qdisc_really_really_advanced '1'
option enabled '1'
option linklayer_advanced '1'
option tcMTU '2047'
option tcTSIZE '128'
option tcMPU '64'
option linklayer_adaptation_mechanism 'default'
option overhead '18'
option download '99000'
option upload '23000'
option iqdisc_opts 'diffserv4 nat dual-dsthost'
option eqdisc_opts 'diffserv4 nat dual-srchost'
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 cake 80b6: dev eth0 root refcnt 6 bandwidth 23Mbit diffserv4 dual-srchost nat nowash no-ack-filter split-gso rtt 100ms noatm overhead 18 mpu 64
Sent 1692935523 bytes 4347438 pkt (dropped 466284, overlimits 4479963 requeues 4754)
backlog 0b 0p requeues 4754
memory used: 1041984b of 4Mb
capacity estimate: 23Mbit
min/max network layer size: 28 / 1500
min/max overhead-adjusted size: 64 / 1518
average network hdr offset: 14
Bulk Best Effort Video Voice
thresh 1437Kbit 23Mbit 11500Kbit 5750Kbit
target 12.6ms 5ms 5ms 5ms
interval 108ms 100ms 100ms 100ms
pk_delay 0us 188us 4us 315us
av_delay 0us 20us 0us 36us
sp_delay 0us 2us 0us 2us
backlog 0b 0b 0b 0b
pkts 0 4812111 15 1596
bytes 0 2290647994 1350 326176
way_inds 0 169266 0 0
way_miss 0 61779 15 53
way_cols 0 0 0 0
drops 0 466284 0 0
marks 0 0 0 0
ack_drop 0 0 0 0
sp_flows 0 1 1 1
bk_flows 0 1 0 0
un_flows 0 0 0 0
max_len 0 18168 90 590
quantum 300 701 350 300
qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
Sent 11255046091 bytes 10272424 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth1 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 41413380230 bytes 35536997 pkt (dropped 0, overlimits 0 requeues 8)
backlog 0b 0p requeues 8
maxpacket 1514 drop_overlimit 0 new_flow_count 60 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
Sent 6947644013 bytes 6078144 pkt (dropped 0, overlimits 0 requeues 23)
backlog 0b 0p requeues 23
maxpacket 1514 drop_overlimit 0 new_flow_count 73 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 cake 80b7: dev ifb4eth0 root refcnt 2 bandwidth 99Mbit diffserv4 dual-dsthost nat wash no-ack-filter split-gso rtt 100ms noatm overhead 18 mpu 64
Sent 11426415178 bytes 10269507 pkt (dropped 2917, overlimits 12607489 requeues 0)
backlog 0b 0p requeues 0
memory used: 3344682b of 4950000b
capacity estimate: 99Mbit
min/max network layer size: 46 / 1500
min/max overhead-adjusted size: 64 / 1518
average network hdr offset: 14
Bulk Best Effort Video Voice
thresh 6187Kbit 99Mbit 49500Kbit 24750Kbit
target 5ms 5ms 5ms 5ms
interval 100ms 100ms 100ms 100ms
pk_delay 1.28ms 441us 22us 48us
av_delay 259us 123us 0us 7us
sp_delay 4us 4us 0us 2us
backlog 0b 0b 0b 0b
pkts 3794147 6459734 26 18517
bytes 3133723561 8295731094 2112 1112744
way_inds 168912 502787 0 0
way_miss 15013 45241 6 4
way_cols 0 0 0 0
drops 1347 1570 0 0
marks 0 0 0 0
ack_drop 0 0 0 0
sp_flows 0 0 1 1
bk_flows 1 0 0 0
un_flows 0 0 0 0
max_len 45420 33308 143 590
quantum 300 1514 1510 755