Patent ID: 11929851
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC H

Claim 0:
1. A gateway device selection method, comprising:
receiving, by a terminal device, a message from a gateway device, wherein the message comprises identification information of the gateway device, and the identification information of the gateway device indicates information about the gateway device, and the message is a router advertisement (RA) message;
determining, by the terminal device, whether the identification information of the gateway device is consistent with identification information of a gateway device that is preset on the terminal device or is inconsistent with the identification information of the gateway device that is preset on the terminal device, and determining whether to discard a data packet intended to be sent to the gateway device based on whether the identification information is consistent or inconsistent;
determining that the identification information of the gateway device is consistent with identification information of a gateway device that is preset on the terminal device, and determining not to discard the data packet based on determination of the identification information as consistent; and
upon determination not to discard the data packet, sending, by the terminal device, the data packet to the gateway device.