OmniSwitch OS6860/OS6900/OS10K Troubleshooting Guide Part No.032996-00 Rev.A
AOS Release 7.X and 8.X January 2015
Alcatel-Lucent Page 74 of 148
Configuration
policy condition c1 source tcp 1-10
policy action a1 disposition accept
policy rule r1 condition c1 action a1
qos apply
Will consume 5 TCAM rules on the NI
Explanation
In order to understand this example, you have to convert each TCP port decimal value to its binary value, see
bellow:
1 (decimal) -> (binary) 0000 0001 <- Rule 1
2 (decimal) -> (binary) 0000 0010 <- Rule 2
3 (decimal) -> (binary) 0000 0011
4 (decimal) -> (binary) 0000 0100 <- Rule 3
5 (decimal) -> (binary) 0000 0101
6 (decimal) -> (binary) 0000 0110
7 (decimal) -> (binary) 0000 0111
8 (decimal) -> (binary) 0000 1000 <- Rule 4
9 (decimal) -> (binary) 0000 1001
10 (decimal) -> (binary) 0000 1010 <- Rule 5</pre>
-> show qos slice
Slot/ Ranges Rules Counters Meters
Unit Type Total/Free CAM Total/Free Total/Free Total/Free
1/(0) IFP 32/32 0 128/128 128/128 128/128
1 128/127 128/127 128/128
2 128/125 128/125 128/128
3 128/127 128/127 128/128
4 256/256 256/256 256/256
5 256/256 256/256 256/256
6 256/256 256/256 256/256
7 256/251 256/251 256/256
8 256/255 256/254 256/254
9 256/255 256/256 256/256
1/(0) EFP 0/0 0 256/256 256/256 256/256
1 256/256 256/256 256/256
2 256/256 256/256 256/256
3 256/256 256/256 256/256
Example 4: Hardware TCP/UDP port range is used if more than 6 TCAM are supposed to be consumed by
the port range
Configuration
policy condition c1 source tcp 1-32
policy action a1 disposition accept
policy rule r1 condition c1 action a1
qos apply
TCAM Utilization
This rule would consume 6 TCAM rules, so the system automatically uses 1 TCP/UDP Hardware Range and 1
TCAM rule on the NI.
Explanation
When the policy rule is consuming more than 5 regular TCAM rules the system automatically allocates a dedicate
hardware TCP/UDP range for this policy so that it only consumes 1 TCAM rule, this allows the system to save
TCAM rules for other rules.
-> show qos slice