I’m tagging BGP/OSPF traffic in the firewall with mangle rules. I show the counters increasing on the mangle rules showing the traffic is tagged. However, in queue tree, I’m looking for the tagged packets, but getting nothing.
Which counters in the queue tree? Does all_out show any packets matched? Showing us the results of
/queue tree print packets
may help us understand what you mean exactly.
Do you see connections in /ip firewall connections with the bgp_conn connection mark?
Are there other mangle rules or queue tree entries which you didn’t show to simplify the question? If so, they could be causing issues.
Shouldn’t you also have a queue tree entry for packet-mark=!bgp so that you can limit non-bgp traffic at 24M thereby reserving enough room for your BGP packets to get through without too much latency? It will also tell you if you have packets being matched which do not have the bgp packet-mark because there should be counters incrementing on that one.
For priorities to work, I think they have to be at the same branch level of the tree. Without more entries under all_out, there is nothing to prioritize/de-prioritize vs anything else.
In my case it was just bad configuration on my part. Queuing for BGP/BFD works perfectly fine.
Also those packets are generated with DSCP(TOS) 48 by defalult, so they are easily mark-able