The network device 80 provided in this embodiment may perform the foregoing authentication methods. Therefore, for technical effects that can be obtained by the network device 80, refer to the foregoing method embodiments. Details are not described herein again.
Optionally, an embodiment of this application further provides an apparatus (for example, the apparatus may be a chip system). The apparatus includes a processor configured to support a network device to implement the foregoing authentication methods, for example, verifying validity of an access location of a residential gateway based on first link information and second link information. In a possible design, the apparatus further includes a memory. The memory is configured to store a program instruction and data that are required by the network device. Certainly, the memory may alternatively not be in the apparatus. When the apparatus is a chip system, the apparatus may include a chip, or may include a chip and another discrete device. This is not specifically limited in the embodiment of this application.