The invention provides a TCAM-based message header
data processing method and related equipment, and the method comprises the steps: caching and inputting message header data through an
FIFO queue, and scheduling the message header data to a message header
processing assembly line composed of a TCAM memory, an RAM memory and a parallel processor through an
arbiter; a round
processing mechanism is combined and adopted, a lookup key value of the current round is matched with an index value in a TCAM in each round of
processing, an action table in an RAM is read according to the index value, and a message header analysis instruction of the current round, a
group key instruction of the next round and a jump state value of the next round are obtained; executing the instruction through the parallel processor to obtain and update message
metadata; when each round is finished, whether the round is finished or not is judged based on the jump state value of the next round; and after the round is finished, outputting the obtained final message
metadata by the order-preserving cache
queue. According to the invention, the message header data is analyzed by using the TCAM-based
data processing technology, so that the flexibility of message header analysis is improved.