摘要 |
Embodiments of the present invention provide a packet processing method, device and system. The method includes: receiving, by a switching device, a packet, where there is a correspondence in the switching device between a prefix and a generic flow entry, where the correspondence is created by using the prefix as an index, and a match field of the generic flow entry corresponding to the prefix includes the prefix; acquiring, by the switching device according to the prefix, a bit field that is in the packet and that is used for matching; and performing matching, by the switching device, between a value of the bit field and a data parameter of the match field of the generic flow entry corresponding to the prefix. The embodiments of the present invention can reduce a quantity of times of generic field extraction from a packet and improve processing efficiency. |