Access device for analysis of physical links and method thereof
A method for analyzing and revealing physical links in a mixed wireless and wired network applied in an access device causes the access device to generate an address resolution protocol (ARP) request packet in which a unique identifier in a target hardware address field is inserted. The ARP request packet is broadcast. The access device further receives and determines ARP reply packet transmitted by the one or more client devices. For ARP reply packets which are received from client devices, the access device generates a list of client devices which are linked with the access device.
1. An access device, comprising:
a processing unit; and
a storage unit for storing at least one computer program, wherein the computer program comprises instructions which are executed by the processing unit, and performs the following steps:
generating a first address resolution protocol (ARP) request packet;
inserting a unique identifier in a target hardware address field of the first ARP request packet;
transmitting the first ARP request packet;
determining whether an ARP reply packet is received in a predetermined time period; and
recording a device that transmits the ARP reply packet as a client device that is physically linked to the access device in a list of client devices when an ARP reply is received in a predetermined time period;
receiving a second ARP request packet;
determining whether the second ARP request packet carries the unique identifier; and
discarding the second ARP request packet when the second ARP request packet carries the unique identifier.
2. The access device of claim 1 , wherein the access device comprises a router, an access point, and an extender for a network in a mesh arrangement.
3. The access device of claim 1 , wherein the unique identifier comprises an organizationally unique identifier (OUID).
4. A method for analysis of physical links is applied in an access device, the method comprising:
generating a first address resolution protocol (ARP) request packet;
inserting a unique identifier in a target hardware address field of the first ARP request packet;
transmitting the first ARP request packet;
determining whether an ARP reply packet is received in a predetermined time period; and
recording a device that transmits the ARP reply packet as a client device that is physically linked to the access device in a list of client devices when an ARP reply is received in a predetermined time period;
receiving a second ARP request packet;
determining whether the second ARP request packet carries the unique identifier; and
discarding the second ARP request packet when the second ARP request packet carries the unique identifier.
5. The method of claim 4 , wherein the access device comprises a router, an access point, and an extender for a network in a mesh arrangement.
6. The method of claim 4 , wherein the unique identifier comprises an organizationally unique identifier (OUID).