Traffic Shaper (HTB) Burst

Quick question. Not sure if it is really an issue or matters but thought I would bring it up. Since VyOS traffic shaper is based on tc and htb, I was wondering if traffic shaper shouldn’t be setting the parent class burst equal to at least the highest burst of its children (default 15k)? It looks like it is left at default 1598b. According to HTB docs this could cause unexpected behavior? It is possible I may not be understanding what I’m reading too :grinning:

http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#burst
https://man7.org/linux/man-pages/man8/tc-htb.8.html

E.g. HTB Classes after setting up traffic shaper showing parent class 1:1 burst 1598b but all its children 15kb

$ sudo tc class show dev eth0
class htb 1:1 root rate 5700Kbit ceil 5700Kbit burst 1598b cburst 1598b
class htb 1:a parent 1:1 leaf 8006: prio 1 rate 570Kbit ceil 5700Kbit burst 15Kb cburst 1598b
class htb 1:14 parent 1:1 leaf 8007: prio 2 rate 570Kbit ceil 5700Kbit burst 15Kb cburst 1598b
class htb 1:1f parent 1:1 leaf 8005: prio 3 rate 3990Kbit ceil 5700Kbit burst 15Kb cburst 1598b
class htb 1:1e parent 1:1 leaf 8008: prio 3 rate 570Kbit ceil 5700Kbit burst 15Kb cburst 1598b

Just as an FYI I was referring to the part in the user guide link that says:

“When you set burst for parent class smaller than for some child then you should expect the parent class to get stuck sometimes (because child will drain more than parent can handle). HTB will remember these negative bursts up to 1 minute.”

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.