摘要 |
In the field of network communications, an 802.1Q in 802.1Q (QinQ) packet processing method and a QinQ packet processing device are provided. The processing method includes: generating a keyword according to at least a virtual local area network (VLAN) identification (VLAN ID) of a QinQ packet; matching the keyword with prefix-mask in a QinQ access table to obtain a matching entry in the QinQ access table; and processing the QinQ packet according to control information of the matching entry. Through the QinQ packet processing method and device, VLAN ID ranges requiring to occupy multiple QinQ access table entries in the prior art are aggregated into one QinQ access table entry through aggregation, so as to expand the number of VLAN ID users actually supported by a QinQ access table and save valuable entry resources of the QinQ access table.
|