Proprietary and Confidential to PMC-Sierra, Inc and for its Customers
’
Internal Use
Document ID: PMC-2010146, Issue 4
138
PM2329 ClassiPI Network Classification Processor Datasheet
5.1.1 Rule Operations
The PM2329 supports different operations that can be performed on the rule data fields. The six rule data
fields can be controlled separately to perform different operations on each of these fields. Operations
supported by the PM2329 are as follows:
Equal To (with or without masks)
Greater Than or Equal To (with or without masks)
Less Than or Equal To (with or without masks)
Match
Equal To, Greater Than or Equal, and Less Than or Equal operations compare the corresponding packet
and rule data fields for the specified condition using unsigned integer arithmetic. The Match operation is
used to force a TRUE result regardless of the input operands.
Each of the six rule data sub-fields supports operations as shown in the table below.
Using the above operations, it is possible for the PM2329 to perform the following operations:
Binary range compares
Non-Binary range compares
Longest prefix (LP) matches
Pattern or String Searches
5.1.2 Masking
Comparison operations between rule and packet data fields can be qualified by bit mask fields. Using bit
masks, it is possible to store a "don
’
t care" (as opposed to a
’
1
’
or a
’
0
’
) in the PM2329 rule data bits, for
comparison against packet data bits.
Both the rule data sub-fields and their associated mask bits are stored in the same PM2329 rule where
some of the rule data sub-fields are used as the mask fields for the non-mask rule data sub-fields. This sub-
field correspondence (data vs. mask) is fixed, as shown in Table 30 below. This imposes some restrictions
on the number of mask fields, but improves the memory efficiency of the PM2329 policy rule set.
Table 29
Operations Supported for Rule Data Sub-fields
Operation
Match (00 or 0)
EQ (01 or 1)
GE (10)
LE (11)
RD0
Yes
Yes
Yes
Yes
RD1
Yes
Yes
Yes
Yes
RD2
Yes
Yes
Yes
Yes
RD3
Yes
Yes
Yes
Yes
RD4
Yes
Yes
-
-
RD5
Yes
Yes
-
-