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

Claim 0:
1. A network device, connected to a dynamic host configuration protocol (DHCP) service device, wherein the network device comprises:
at least one processor;
one or more memories coupled to the at least one processor and storing program instructions, which, when executed by the at least one processor, cause the network device to:
receive a reply packet sent by the DHCP service device, wherein a destination address of the reply packet is a first internet protocol (IP) address of a first relay device in a target anycast group, and wherein a client applies to the DHCP service device for an IP address;
determine a plurality of next-hop addresses, wherein each one of the plurality of next-hop addresses is an IP address and corresponds to a destination IP address of the reply packet based on the destination IP address of the reply packet;
receive a first route advertisement message through a first tunnel to which a first tunnel endpoint IP address of the first relay device belongs, wherein the first route advertisement message comprises a first IP address, the first tunnel endpoint IP address, and a straight-through mark corresponding to the first tunnel endpoint IP address, and wherein tunnel endpoints of the first tunnel are the first relay device and the network device;
determine a first next-hop address from the plurality of next-hop addresses as the first tunnel endpoint IP address of the first relay device, wherein the first tunnel endpoint IP address of the first relay device is different from a tunnel endpoint IP address of another relay device in the target anycast group, and wherein a communication connection is established between each relay device in the target anycast group and the client; and
forward the reply packet to the first relay device based on the first next-hop address.