Abstract:
The method for generating hash keys comprises cascading an input data set with a prefix data set, rotating the input data set with an offset data set and performs at least one XOR operation to generate a temporary key. Subsequently, the temporary key is cascaded with a supplementary data set to generate a hash key. In addition, by appropriately adjusting the length of the offset data set, the probability of collision of hash keys can be reduced.
Abstract:
A packet header preloading apparatus comprises at least a packet detector, at least a packet header buffer and at least a data dispatcher. The at least a packet detector is configured to detect an operation of a packet direct memory access controller storing at least a packet into a main memory. The at least a data dispatcher is configured to read a header of the at least a packet from the main memory and to temporarily store the header in the at least a packet header buffer.
Abstract:
An apparatus processes a packet and classifies the packet as a processed fast path packet or a slow path packet, wherein the processed fast path packet is forwarded to a fast path forwarding queue directly or is forwarded to a fast path output queue through a packet direct memory access controller. The apparatus not only improves the packet processing performance but also guarantees the quality of service.