In the design of the switch, the search algorithm is one of the most critical core modules. There are many traditional table entry search methods, mainly: linear search method, binary tree search method, hash table search, etc. These search methods are software search methods based on SRAM, and the common feature is slow search speed. The linear lookup table method needs to traverse all entries in the table; the binary tree search method needs to traverse most nodes in the tree, and the search speed is greatly affected by the depth of the tree; the hash table search method is relatively fast, but with the network speed requirement As it gets higher and higher, hash search still cannot meet the demand for extremely fast search. This text designs and realizes a kind of hardware search algorithm, utilizes the characteristic of FPGA to process the data in parallel, speed up the data search ability greatly, further shorten the switch forwarding delay.