摘要 |
A method and device realizing uploading of a protocol packet to a central processing unit (CPU). The method comprises: receiving and parsing a packet, and searching a virtual local area network (VLAN) table according to a VLAN identifier of the packet, the VLAN table comprising an identification indicating whether the VLAN identifier corresponds to a three-layer interface; if, according to the VLAN table, the VLAN identifier is determined to correspond to a three-layer interface, then determining whether to upload the packet to CPU on the basis of the identification indicating that the VLAN identifier corresponds to a three-layer interface and the protocol type of the packet. The device comprises a receiving module and a forwarding module. |