Page 12 | AlliedWare™ OS How To Note: Hardware Filters
How many filters can you create?
How to see the current filter resource usage on the switch
The
show switch
command outputs a number of counters that display the current usage of
filtering resources. A typical output from this command, and a discussion of each of the
values it outputs, is shown below:
Command output
Description
Traffic Control Unit,hardware
resource usage:
Total system rule space ... 2048
Total number of classifiers/filter rules available in the system.
This is the sum of the rules available on the base system and
the rules available on the IPv6 accelerator.
Total number of rules used .... 8
Number of classifiers currently being used
Total rule space usage ........ 24
Number of rules reserved, accounting for block size of 8.
Even though there are only 8 rules in use, there have actually
been 3 blocks of 8 rules allocated from the rule table, as the
rules in the rule table must be allocated in blocks of 8. The
blocks are:
z
one block on the base system for packets arriving into the
switch via port
1
(which has had a QoS policy applied to it)
z
one block on the base system for packets arriving in via
any other port
z
one block allocated on the IPv6 accelerator.
Number of rules per application:
MLD Snooping ................ 4
Accel. Card(IPv6) ........... 1
Switch HwFilter ............. 2
QOS ......................... 1
Splitting the rule allocation out on a per-application basis:
z
2 rules on port
1
for MLD, 2 for MLD on all the other
ports
z
1
default rule in the IPv6 card
z
1
hardware filter rule for port
1
, and one for all the other
ports
z
1
QoS rule for port
1
Total number of actions ... 1024
Total number of actions available for hardware filters or QoS
Number of actions used ........ 10
8 actions in use by the 8 rules, and 2 default actions (for
packets that match no rules)
Device Resource, device #0:
Number of rules used ........ 7
Rule space usage ............ 16
Resource being used by the first device, which is the base
board
z
Same as the 8 above, except for the one that is on the IPv6
card
z
Two 8-rule blocks have been allocated on the base system
Number of rules per application:
MLD Snooping .............. 4
Switch HwFilter ........... 2
QOS ....................... 1
Device rule space limit .. 1024
Splitting the rule allocation out on a per-application basis
z
2 rules on port
1
for MLD and 2 for MLD on all the other
ports
z
1
hardware filter rule for port
1
, and one for all the other
ports
z
1
QoS rule for port
1
z
Total number of rules in the rule table on the base system