Hey again,
Hmm, I'm having some weird behaviour on my end with the program.
It's behaving odd right after boot up. It configures itself to the lowest limits set in the config and then takes a while to start actual shaping.
As in, 3 minutes after boot up, the speeds go to where they should be. Otherwise they sit near the bottom and it occurs at random, sometimes I've seen it on the outbound interfaces, and sometimes on the inbound.
My topology is such that I have a 4G antenna - LAN - internal firewall.
The 4G antenna is a router, the internal firewall is a checkpoint device, SMB 1590.
The network between them contains an openwrt machine on x86, running a i7-3770k.
It has 2 interfaces configured in bridge mode.
2 separate cake instances on either interface.
Any idea what could be causing a problem with the delay post-boot?
Restarting the service exhibits a similar situation.
I'm using 3.1.1 with the following conf:
root@qos-gw1:~/cake-autorate# cat config.primary.sh
#!/bin/bash
# *** STANDARD CONFIGURATION OPTIONS ***
### For multihomed setups, it is the responsibility of the user to ensure that the probes
### sent by this instance of cake-autorate actually travel through these interfaces.
### See ping_extra_args and ping_prefix_string
dl_if=eth0 # download interface
ul_if=eth1 # upload interface
# Set either of the below to 0 to adjust one direction only
# or alternatively set both to 0 to simply use cake-autorate to monitor a connection
adjust_dl_shaper_rate=1 # enable (1) or disable (0) actually changing the dl shaper rate
adjust_ul_shaper_rate=1 # enable (1) or disable (0) actually changing the ul shaper rate
min_dl_shaper_rate_kbps=7000 # minimum bandwidth for download (Kbit/s)
base_dl_shaper_rate_kbps=40000 # steady state bandwidth for download (Kbit/s)
max_dl_shaper_rate_kbps=200000 # maximum bandwidth for download (Kbit/s)
min_ul_shaper_rate_kbps=5000 # minimum bandwidth for upload (Kbit/s)
base_ul_shaper_rate_kbps=10000 # steady state bandwidth for upload (KBit/s)
max_ul_shaper_rate_kbps=50000 # maximum bandwidth for upload (Kbit/s)
# *** OVERRIDES ***
### See defaults.sh for additional configuration options
### that can be set in this configuration file to override the defaults.
### Place any such overrides below this line.
no_pingers=2
reflectors=("9.9.9.9" "9.9.9.10")
pinger_binary=tsping
The tc statistics:
root@qos-gw1:~/cake-autorate# 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 8001: dev eth0 root refcnt 2 bandwidth 40Mbit besteffort triple-isolate nonat nowash ingress no-ack-filter split-gso rtt 100ms raw overhead 0
Sent 229955299 bytes 220164 pkt (dropped 448, overlimits 480421 requeues 0)
backlog 0b 0p requeues 0
memory used: 544000b of 4Mb
capacity estimate: 40Mbit
min/max network layer size: 42 / 1514
min/max overhead-adjusted size: 42 / 1514
average network hdr offset: 14
Tin 0
thresh 40Mbit
target 5ms
interval 100ms
pk_delay 6.94ms
av_delay 2.69ms
sp_delay 3us
backlog 0b
pkts 220612
bytes 230546169
way_inds 16712
way_miss 32416
way_cols 50
drops 448
marks 1
ack_drop 0
sp_flows 2
bk_flows 1
un_flows 0
max_len 3028
quantum 1220
qdisc cake 8002: dev eth1 root refcnt 2 bandwidth 5Mbit besteffort triple-isolate nonat nowash ack-filter split-gso rtt 100ms raw overhead 0
Sent 14816266 bytes 86383 pkt (dropped 477, overlimits 70932 requeues 0)
backlog 0b 0p requeues 0
memory used: 87808b of 4Mb
capacity estimate: 10Mbit
min/max network layer size: 42 / 1454
min/max overhead-adjusted size: 42 / 1454
average network hdr offset: 14
Tin 0
thresh 5Mbit
target 5ms
interval 100ms
pk_delay 1.15ms
av_delay 192us
sp_delay 1us
backlog 0b
pkts 86860
bytes 14883345
way_inds 7873
way_miss 32624
way_cols 74
drops 35
marks 2
ack_drop 442
sp_flows 30
bk_flows 1
un_flows 0
max_len 1454
quantum 300
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
40mb is my normal, but the 5 on upload is not.
This is a 100/25 from the ISP, it shapes pretty well, but yeah...
root@qos-gw1:~/cake-autorate# uptime
20:48:12 up 9 min, load average: 0.02, 0.02, 0.00