Patent ID: 8594086

Claim:
A packet diversion method, comprising: receiving a packet, wherein the packet contains a user identifier; according to the user identifier and preset first correspondence between the user identifier and a service type, searching for the service type corresponding to the user identifier in the packet; adding an inner virtual local area network (Vlan) header to the packet according to the service type, preset second correspondence between a service type and a slave device identifier, and preset third correspondence between a slave device identifier and each bit in a diversion identifier field, wherein the inner Vlan header comprises a diversion identifier field, and the diversion identifier field contains a diversion identifier; and diverting the packet to a corresponding slave device according to the diversion identifier in the diversion identifier field, wherein the packet carries the inner Vlan header, and at least one such slave device is comprised, the diversion refers to a process that one network device gives a packet to another network device for processing, and the other network device returns the packet after the processing is completed.