I’ve been building queue trees for ages, but I’m second guessing myself on this one, perhaps because it seems too simple to work as expected.
Total bandwidth is 50/10. On the SIP queues, I’m not 100% sure if I need to specify bandwidth at all. I’m thinking that if the sum of the other queues has a limit-at of 36/6, then SIP, at a higher priority will be able to use up to 4Mbit/s at all times.
I’m using round numbers for the sake of readability, they will be changed to match reality once we install this and are able to run some bandwidth tests to find the actual throughput.
/queue tree
add max-limit=50M name="Total Down" parent=global queue=default
add max-limit=10M name="Total Up" parent=global queue=default
add name="SIP Down" packet-mark=SIP_Down parent="Total Down" priority=5 queue=default
add name="SIP Up" packet-mark=SIP_Up parent="Total Up" priority=5 queue=default
add limit-at=10M max-limit=50M name="Data Down" packet-mark=Data_Down parent="Total Down" queue=pcq-download-default
add limit-at=2M max-limit=10M name="Data Up" packet-mark=Data_Up parent="Total Up" queue=pcq-upload-default
add limit-at=36M max-limit=50M name="Guest Down" packet-mark=Guest_Down parent="Total Down" queue=pcq-download-default
add limit-at=4M max-limit=10M name="Guest Up" packet-mark=Guest_Up parent="Total Up" queue=pcq-upload-default

Thanks!