Method and apparatus for packet matching, network device, and medium
AssigneeNew H3C Technologies Co., Ltd.
InventorYang WANG
Life of this patent
Estimating the term…
Loading patent…
AssigneeNew H3C Technologies Co., Ltd.
InventorYang WANG
Estimating the term…
Examples of the present disclosure provide a method and apparatus for packet matching, a network device, and a medium, which are related to the communication field, comprising: adding N first data packets into N pipelines and configuring a stage for each pipeline as a root node of a decision tree; calculating a first hash value for a first pipeline in the N pipelines, and asynchronously prefetching a first output interface data corresponding to the first hash value from a memory, calculating a second hash value for a second pipeline in the N pipelines while prefetching the first output interface data from the memory, obtaining the first output interface data from the cache when calculation of the hash value for each pipeline in the N pipelines is finished, deleting the first data packet in the first pipeline from the first pipeline when the first output interface data is characterized as being used to forward the first data packet in the first pipeline and adding a second data packet into the first pipeline when receiving the second data packet, which can accelerate the packet matching speed.
A method for packet matching, which comprises:
An apparatus for packet matching, which comprises:
Dependencies are inferred from the claim text.