摘要 |
Provided are a flow table matching method and device, and a switch. The method comprises: separately storing exact matching table items and wild matching table items of each flow table item, storing the exact matching table items in a memory, storing the wild matching table items in a TCAM, using an index value (index) to represent the exact matching table items, so as to reduce TCAM resources used by the exact matching table items, and improve the utilization rate of the TCAM; and using an appropriate search algorithm to respectively match the exact matching table items with the wild matching table items, thereby improving the search speed. |