Storing, searching method and apparatus for data packet
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING ZHIGU TECH SERVICE
- Publication Date
- 2009-07-15
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to switching technology, in particular to a method and device for storing and searching data messages. Background technique
[0002] Usually, when the switch processes data packets, it needs to send a part of data packets that are more complicated to be processed to the CPU for corresponding processing. Before sending the data packets to the CPU, these Data messages are stored by category. When sending a message to the CPU later, it needs to be searched in the HASH list to determine whether the message has been stored. The essence of the HASH search algorithm is to use the HASH function to calculate the corresponding output value through the input data message, thus improving the search efficiency of message data. However, due to the existence of HASH conflict chains, it is necessary to perform a linear search in the conflict chain. The linear search reduces the overall efficiency of the HASH algorithm, which in turn affects the ...