Packet diversion method and deep packet inspection device
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
A packet diversion method and a DPI device are disclosed in the present invention. The method includes: receiving a packet, where 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; and diverting the packet to a corresponding slave device according to the diversion identifier in the diversion identifier field. The inner Vlan header carrying the diversion identifier field is added to the packet, to indicate diversion of the packet in a same cluster.
4 Citations
10 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A deep packet inspection device comprising:
-
a receiving unit, configured to receive a packet, wherein the packet contains a user identifier; a searching unit, configured to search, according to the user identifier and preset first correspondence between the user identifier and a service type, for the service type corresponding to the user identifier in the packet; a processing unit, configured to add 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 a diverting unit, configured to divert 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. - View Dependent Claims (8, 9, 10)
-
Specification