Packet sending method and device
AssigneeHuawei Technologies Co., Ltd.
InventorsYongkang Zhang, Xia Chen
Life of this patent
Estimating the term…
Abstract
A packet sending method includes obtaining, by a client device, an Internet Protocol (IP) anycast address of the anycast server cluster and an IP unicast address of the target server, generating, by the client device, an IP detection packet, where the IP detection packet is used to detect whether the target server is reachable based on the IP anycast address, and the IP detection packet includes the IP anycast address and the IP unicast address of the target server, and instructs the target server to replace the IP unicast address of the target server with the IP anycast address, and sending, by the client device, the IP detection packet to the target server.
Claims20
A packet sending method applied to an anycast service-based network wherein the packet sending method is implemented by a client device and comprises:
- obtaining an Internet Protocol (IP) anycast address and a first IP unicast address of a target server in at least two servers, wherein the anycast service-based network comprises the client device and an anycast server cluster, wherein the anycast server cluster comprises the at least two servers, and wherein the at least two servers have a same IP anycast address;
- generating an IP detection packet to detect whether the target server is reachable based on the IP anycast address, wherein the IP detection packet comprises the IP anycast address and the first IP unicast address, and wherein the IP detection packet instructs the target server to replace the first IP unicast address with the IP anycast address;
- and
- sending the IP detection packet to the target server.
A client device applied to an anycast service-based network, wherein the client device comprises:
- a transceiver;
- a processor coupled to the transceiver;
- and
- a memory coupled to the processor and storing instructions that, when executed by the processor, cause the client device to be configured to:
- obtain an Internet Protocol (IP) anycast address of an anycast server cluster and a first IP unicast address of a target server in at least two servers, wherein the anycast service-based network comprises the client device and the anycast server cluster, wherein the anycast server cluster comprises the at least two servers, and wherein the at least two servers have a same IP anycast address;
- generate an IP detection packet to detect whether the target server is reachable based on the IP anycast address, wherein the IP detection packet comprises the IP anycast address and the first IP unicast address, and wherein the IP detection packet instructs the target server to replace the first IP unicast address with the IP anycast address;
- and
- send, via the transceiver, the IP detection packet to the target server.
A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause a client device to:
- obtain an Internet Protocol (IP) anycast address of an anycast server cluster and a first IP unicast address of a target server in at least two servers, wherein the anycast server cluster comprises the at least two servers, and wherein the at least two servers have a same IP anycast address;
- generate an IP detection packet to detect whether the target server is reachable based on the IP anycast address, wherein the IP detection packet comprises the IP anycast address and the first IP unicast address, and wherein the IP detection packet instructs the target server to replace the first IP unicast address with the IP anycast address;
- and
- send the IP detection packet to the target server.
Dependencies are inferred from the claim text.