CPC H04L 63/0435 (2013.01) [H04L 63/0485 (2013.01); H04L 63/20 (2013.01); H04L 69/22 (2013.01)] | 20 Claims |
1. A packet transmission method applied to a communications network, wherein the communications network comprises a first device and a second device, a target security association is established between the first device and the second device, the first device is an initiator of the target security association, and the second device is a destination of the target security association, the packet transmission method comprising:
obtaining, by the first device, service type information of an original packet, wherein the service type information comprises precedence of the original packet;
generating, by the first device, an encapsulating security payload (ESP) packet of the original packet based on the target security association, wherein the ESP packet comprises a packet header, an ESP header, a service type field, a first encrypted part, and an ESP authentication data field, the service type field comprises the service type information, the first encrypted part comprises a data part of the original packet, and the service type field is used to enable the second device to determine, based on the service type information, processing of the ESP packet; and
sending, by the first device, the ESP packet to the second device.
|