Methods and apparatus for compression in packet classification
First Claim
Patent Images
1. A method, comprising:
- receiving a policy vector associated with a switch fabric and represented by a bit sequence, the policy vector including a plurality of sectors and having a plurality of policy bit values, a policy bit value from the plurality of policy bit values configured to trigger an action associated with a data packet by the switch fabric;
producing a compressed vector for each sector in a subset of sectors from the plurality of sectors using a compression scheme that is based on a number of repeated policy bit values from the plurality of policy bit values in the policy vector;
matching the compressed vector for the each sector in the subset of sectors from the plurality of sectors to a portion of a data packet; and
forwarding at least the portion of a data packet, in addition to the compressed vector, to a decompression module.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment, a method includes receiving a policy vectors associated with a switch fabric, determining a compression scheme, and producing a compressed vector based on the policy vector and the compression scheme. The policy vector is represented by a bit sequence and has a plurality of policy bit values. A policy bit value from the plurality of policy bit vales is configured to trigger an action associated with a data packet in the switch fabric. The compression scheme is determined based on a portion of the policy vector.
146 Citations
15 Claims
-
1. A method, comprising:
-
receiving a policy vector associated with a switch fabric and represented by a bit sequence, the policy vector including a plurality of sectors and having a plurality of policy bit values, a policy bit value from the plurality of policy bit values configured to trigger an action associated with a data packet by the switch fabric; producing a compressed vector for each sector in a subset of sectors from the plurality of sectors using a compression scheme that is based on a number of repeated policy bit values from the plurality of policy bit values in the policy vector; matching the compressed vector for the each sector in the subset of sectors from the plurality of sectors to a portion of a data packet; and forwarding at least the portion of a data packet, in addition to the compressed vector, to a decompression module. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method, comprising:
-
receiving at least a portion of a data packet, in addition to a compressed vector representing a sector from a plurality of sectors of a policy vector associated with a switch fabric, the compressed vector having been matched to the portion of the data packet, the policy vector having a plurality of policy bit values, a policy bit value from the plurality of policy bit values configured to trigger an action associated with a data packet by the switch fabric; determining a compression scheme for the sector based on a compression scheme identifier associated with the compressed vector, the compression scheme based on an address value of a pattern of policy bit values in the policy vector, the pattern stored in a memory at a location represented by the address value; and decompressing the sector based on the compressed vector and the compression scheme. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An apparatus, comprising:
-
a first decompression logic configured to apply a first compression scheme to decompress a first compressed vector received in addition to a data packet, the first compressed vector having been matched to a first portion of the data packet, the first compressed vector uniquely associated with a first subset of sectors of a policy vector at a first time, the policy vector being associated with a switch fabric, the policy vector being represented by a bit sequence, the first decompression logic configured to determine a placement of a repeated bit value in the bit sequence within the policy vector; a first memory block operatively coupled to the first decompression logic, the first memory block being configured to store a bit sequence from the first subset of sectors of the policy vector; a second decompression logic configured to apply a second compression scheme, different from the first compression scheme, to decompress a second compressed vector received with the data packet, the second compressed vector having been matched to a second portion of the data packet, the second compressed vector uniquely associated with a second subset of sectors of the policy vector at a second time, the second decompression logic configured to determine an address value of the bit sequence in the first memory block, the address value storing a pattern of policy bit values within the policy vector; and a second memory block being operatively coupled to the second decompression logic, the second memory block being configured to store a bit sequence from the second subset of sectors of the policy vector. - View Dependent Claims (12, 13, 14, 15)
-
Specification