The invention provides a TSN redundant message
elimination method and device, and the method comprises the steps: constructing an HASH +
CAM flow table structure which takes a triple
HASH table as a main part and a
CAM table as an auxiliary part, and pre-storing a Key value of a TSN
message flow and a corresponding flow ID number in the HASH +
CAM flow table structure; obtaining a TSN message to be judged, extracting key information of the TSN message, and generating a Key type and a Key value based on the key information; querying in the triple
HASH table according to the Key type and the Key value, and outputting a
stream ID number corresponding to the Key value when the Key type and the Key value are hit; if the query of the triple
HASH table is not hit, performing query in the CAM table according to the Key value, and outputting a
stream ID number corresponding to the Key value when the query is hit; and confirming whether the TSN message is a redundant message or not according to the
stream ID number, and discarding the redundant message after confirmation. Through efficient HASH table and CAM table design and optimized table item storage and access strategies, redundancy
elimination of large-flow TSN messages under low
clock frequency is realized.