How many filters can you create?
Extra rules used when combining QoS and hardware filters
In fact, QoS can cause the limit on the number of hardware filters to be reduced rather more radically than might be initially evident. To see why this is, we have to understand a bit more about how the rule table is used. When a packet is to be compared against rules in the rule table, the comparison does not have to start at the top of the
Therefore, when only hardware filters have been configured on the switch, all rule comparisons start at the first rule in the rule table, irrespective of the packet’s ingress port.
Port | Start |
|
|
1 | 1 |
|
|
2 | 1 |
|
|
3 | 1 |
|
|
4 | 1 |
|
|
5 | 1 |
|
|
... | ... |
|
|
... | ... |
|
|
52 | 1 |
|
|
Table that maps ingress port to the starting point of the rule comparison process
1Rule 1
2Rule 2
3Rule 3
4Rule 4
Empty
Rule table
However, QoS policies are
This means that for the purposes of QoS, the decision that dictates the starting point of the rule comparison process, depending on ingress port, must result in different start values for different ingress ports. But, the problem is that the hardware filtering must use the exact same decision process. So we end up with a conflict of
The solution to this problem is as follows. As soon as a QoS policy is configured, which requires the creation of a set of rules specific just to the ports in that policy, then a full copy of the hardware filter rules is also added to this set of QoS rules. So, for packets entering the switch via one of the ports in the QoS policy, the hardware filter rule lookup process is actually carried out on this new copy of the hardware filter rules.
Page 8 AlliedWare™ OS How To Note: Hardware Filters