IP Library › Granted Patent US 11,277,391
Granted Patent B2
US 11,277,391 · App. 16/710,993 · Granted Mar 15, 2022

Packet sending method and apparatus

Inventors: Lihua Mao (Nanjing, CN); Bizhen Liu (Nanjing, CN); Xueming Mei (Nanjing, CN); Yulei Zhang (Nanjing, CN); Bing Ni (Nanjing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04L63/061H04L45/74H04L61/2503H04L63/0272H04L63/0428H04L63/20
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,277,391
App. No.
16/710,993
Granted
Mar 15, 2022
Kind
B2
Abstract

A method includes obtaining, by a first network device comprising a processor, characteristic information from an encrypted packet received from a second network device based on a determination that the first network device cannot decrypt the encrypted packet. The first network device is free from having an internet protocol security (IPsec) security association (SA), and the second network device has the IPsec SA. The method also includes generating, by the first network device, generating an informational exchange packet when the first network device obtains, based on the characteristic information, an internet key exchange (IKE) SA corresponding to the characteristic information. The informational exchange packet instructs the second network device to delete the IPsec SA on the second network device. The method further includes sending, by the first network device, the informational exchange packet to the second network device.

Claims (54)

1. A method, comprising: obtaining, by a first network device comprising a processor, characteristic information from an encrypted packet received from a second network device based on a determination that the first network device cannot decrypt the encrypted packet, wherein the first network device is free from having an internet protocol security (IPsec) security association (SA), and the second network device has the IPsec SA;

generating, by the first network device, an informational exchange packet when the first network device obtains, based on the characteristic information, an internet key exchange (IKE) SA corresponding to the characteristic information, wherein the informational exchange packet instructs the second network device to delete the IPsec SA on the second network device; and

sending, by the first network device, the informational exchange packet to the second network device.

2. The method according to claim 1 , further comprising:

receiving, by the first network device, a negotiation packet sent by the second network device after the second network device deletes the IPsec SA; and

generating a new IPsec SA based on the negotiation packet, to decrypt a subsequently received encrypted packet.

3. The method according to claim 1 , further comprising:

discarding the encrypted packet based on a determination that the first network device cannot obtain, based on the characteristic information, the IKE SA corresponding to the characteristic information.

4. The method according to claim 1 , wherein the characteristic information comprises an IPsec security parameter index (SPI), and the method further comprises:

obtaining, by the first network device, the IKE SA based on a mapping relationship between the IPsec SPI and the IKE SA.

5. The method according to claim 1 , wherein the characteristic information comprises a source IP address and a destination IP address, and the method further comprises:

obtaining, by the first network device, the IKE SA based on a mapping relationship between the IKE SA and the source IP address and the destination IP address.

6. The method according to claim 1 , wherein the characteristic information comprises a source IP address, a destination IP address and an IKE identifier, and the method further comprises:

obtaining, by the first network device, the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, and the IKE identifier.

7. The method according to claim 1 , wherein the characteristic information comprises a source IP address, a destination IP address and a protocol number, and the method further comprises:

obtaining, by the first network device, the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, and the protocol number.

8. The method according to claim 1 , wherein the characteristic information comprises a source IP address, a destination IP address and an IKE identifier and a protocol number, and the method further comprises:

obtaining, by the first network device, the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, the IKE identifier, and the protocol number.

9. The method according to claim 1 , wherein the determination that the first network device cannot decrypt the encrypted is based on one or more of:

an IPsec security parameter index SPI in the encrypted packet;

a source IP address and a destination IP address in the encrypted packet; or

the source IP address, the destination IP address, and a protocol number that are in the encrypted packet.

10. An apparatus, comprising:

a processor; and

a memory having computer-readable instructions stored thereon that, when executed by the processor, cause the apparatus to:

obtain characteristic information from an encrypted packet received from a network device based on a determination that the apparatus cannot decrypt the encrypted packet, wherein the apparatus is free from having an internet protocol security (IPsec) security association (SA), and the network device has the IPsec SA;

generate an informational exchange packet when the apparatus obtains, based on the characteristic information, an internet key exchange (IKE) SA corresponding to the characteristic information, wherein the informational exchange packet instructs the network device to delete the IPsec SA on the network device; and

send the informational exchange packet to the network device.

11. The apparatus according to claim 10 , wherein the apparatus is further caused to:

receive a negotiation packet sent by the network device after the network device deletes the IPsec SA; and

generate a new IPsec SA based on the negotiation packet, to decrypt a subsequently received encrypted packet.

12. The apparatus according to claim 10 , wherein the apparatus is further caused to:

discard the encrypted packet based on a determination that the apparatus cannot obtain, based on the characteristic information, the IKE SA corresponding to the characteristic information.

13. The apparatus according to claim 10 , wherein the characteristic information comprises an IPsec security parameter index (SPI), and the apparatus is further caused to:

obtain the IKE SA based on a mapping relationship between the IPsec SPI and the IKE SA.

14. The apparatus according to claim 10 , wherein the characteristic information comprises a source IP address and a destination IP address, and the apparatus is further caused to:

obtain the IKE SA based on a mapping relationship between the IKE SA and the source IP address and the destination IP address.

15. The apparatus according to claim 10 , wherein the characteristic information comprises a source IP address, a destination IP address and an IKE identifier, and the apparatus is further caused to:

obtain the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, and the IKE identifier.

16. The apparatus according to claim 10 , wherein the characteristic information comprises a source IP address, a destination IP address and a protocol number, and the apparatus is further caused to:

obtain the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, and the protocol number.

17. The apparatus according to claim 10 , wherein the characteristic information comprises a source IP address, a destination IP address and an IKE identifier and a protocol number, and the apparatus is further caused to:

obtain the IKE SA based on a mapping relationship between the IKE SA and the source IP address, the destination IP address, the IKE identifier, and the protocol number.

18. The apparatus according to claim 10 , wherein the determination that the apparatus cannot decrypt the encrypted is based on one or more of:

an IPsec security parameter index SPI in the encrypted packet;

a source IP address and a destination IP address in the encrypted packet; or

the source IP address, the destination IP address, and a protocol number that are in the encrypted packet.

19. A non-transitory computer-readable medium having instructions stored thereon that, when executed by a processor, cause an apparatus to:

obtain characteristic information from an encrypted packet received from a network device based on a determination that the apparatus cannot decrypt the encrypted packet, wherein the apparatus is free from having an internet protocol security (IPsec) security association (SA), and the network device has the IPsec SA;

generate an informational exchange packet when the apparatus obtains, based on the characteristic information, an internet key exchange (IKE) SA corresponding to the characteristic information, wherein the informational exchange packet instructs the network device to delete the IPsec SA on the network device; and

send the informational exchange packet to the network device.

20. The non-transitory computer-readable medium according to claim 19 , wherein the apparatus is further caused to:

receive a negotiation packet sent by the network device after the network device deletes the IPsec SA; and

generate a new IPsec SA based on the negotiation packet, to decrypt a subsequently received encrypted packet.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 19, 2020
From: MAO, LIHUA; LIU, BIZHEN; MEI, XUEMING; ZHANG, YULEI; NI, BING
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 052170/0657 →
Priority Claims (1)
CN 201710653308.X · Aug 2, 2017 · national
Continuity (2)
Continuation PCTCN2018098212 · Aug 2, 2018
Related Publication 20200120078A1 · Apr 16, 2020