Dummy terminal detection method and system, storage medium and electronic equipment
By enabling the ARP answering function on the wireless access point AP, obtaining the network segment address and assembling the free ARP message to detect the wireless dumb terminal, the problem that dumb terminals in the wireless LAN cannot be discovered is solved, and the dumb terminal and other devices are realized. Normal communication.
Patent Information
- Application Number
- CN202411695405.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-25
AI Technical Summary
In a wireless LAN environment, when the ARP answering function is enabled, the wireless dumb terminal cannot be detected and discovered effectively, resulting in other devices being unable to communicate with it.
Turn on the ARP answering function through the wireless access point AP to obtain the network segment address of the current network. After confirming that there is a dumb terminal access, assemble free ARP messages one by one and send them to the dumb terminal for detection until the dumb terminal responds to the ARP response. message to obtain its IP address.
On the premise of enabling the ARP answering function, it can effectively detect and discover wireless dumb terminals, ensure normal communication with other devices, and improve network information.
Smart Images

Figure CN119521191A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication, and in particular to a dumb terminal detection method, system, storage medium and electronic equipment. Background Art
[0002] In a wireless LAN environment, in order to prevent a large number of ARP (Address Resolution Protocol) broadcast messages from being forwarded to the wireless environment and affecting the air interface environment, the ARP proxy function is used on the AP (Access Point) to intercept a large number of ARP request broadcast messages and reply to ARP response messages on behalf of the wireless terminal. The main function of ARP proxy is to reduce air interface messages and achieve the effect of optimizing the air interface environment. The strategy adopted in the implementation of this function is generally to intercept all ARP broadcast messages that do not request wireless terminal information. This strategy requires the AP to have the corresponding information of the IP addresses and MAC addresses of all associated wireless terminals. If it does not have the corresponding information, it is very likely that other devices will not be able to discover the device through ARP requests.
[0003] Furthermore, since the AP needs the correspondence between the terminal's IP address and MAC address when replying to the ARP response on behalf of the terminal, if there is a wireless dumb terminal in the environment (such as a printer, scanner, projector, etc.), the wireless dumb terminal will no longer send any messages to the outside after self-association, and the AP will not be able to obtain the IP address of the wireless dumb terminal, resulting in the lack of wireless dumb terminal information in the network environment, and then other devices in the environment cannot automatically discover the wireless dumb terminal through ARP requests.
[0004] At present, the common processing method for wireless dumb terminals in wireless LAN is that the AP sends a disassociation frame to let the wireless dumb terminal leave the current network environment. Whether this processing method is effective depends entirely on whether the wireless dumb terminal will perform a different packet sending behavior after re-association than the first association. It is relatively passive and affects the terminal access experience to a certain extent.
[0005] Therefore, the current common way to handle wireless dumb terminals will only cause information loss of some terminals at most when the ARP proxy function is not enabled. However, when the ARP proxy function is enabled, other devices on the same network may not be able to connect to the wireless dumb terminal. How to ensure normal communication between wireless dumb terminals and other devices while enabling the ARP proxy function has become an urgent problem to be solved. Summary of the invention
[0006] The purpose of the present invention is to overcome the problems existing in the prior art and provide a dumb terminal detection method, system, storage medium and electronic device to ensure normal communication between a wireless dumb terminal and other devices under the premise of enabling an ARP proxy answering function.
[0007] The objective of the present invention is achieved through the following technical solutions:
[0008] In a first aspect, a dumb terminal detection method is provided, comprising the following steps:
[0009] S1. The wireless access point AP turns on ARP proxy reply. When a normal terminal is connected, the network segment address of the current network is obtained. After confirming that a dumb terminal is connected to the AP, step S2 is executed.
[0010] S2. The AP uses the IP addresses in the network segment address of the current network and the MAC address of the dumb terminal association frame to assemble a free ARP message, and sends the free ARP message to the dumb terminal for detection;
[0011] S3. When the IP address in the gratuitous ARP message received by the dumb terminal is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message;
[0012] S4. The AP obtains the IP address of the dumb terminal according to the ARP reply message sent by the dumb terminal.
[0013] In a second aspect, a dumb terminal detection method is provided, which is applied to an AP, and includes:
[0014] Enable ARP proxy reply, and when a normal terminal is connected, obtain the network segment address of the current network;
[0015] When a dumb terminal is confirmed to have accessed, a free ARP message is assembled one by one using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame, and the free ARP message is sent to the dumb terminal;
[0016] Obtain the IP address of the dumb terminal based on the ARP reply message sent by the dumb terminal.
[0017] Preferably, obtaining the network segment address of the current network includes:
[0018] The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, it is combined with the common network mask to form the network segment address.
[0019] Preferably, the method for confirming that a dumb terminal has accessed includes:
[0020] Parse the associated frame of the terminal to obtain the MAC address of the terminal;
[0021] If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
[0022] In a third aspect, a dumb terminal detection system is provided, comprising a normal terminal, a dumb terminal and an AP, wherein the AP is wirelessly connected to the normal terminal and the dumb terminal respectively;
[0023] The AP is used to enable ARP proxy reply, and when a normal terminal is connected, obtain the network segment address of the current network; and after confirming that a dumb terminal has been connected, assemble a free ARP message one by one using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame, and send the free ARP message to the dumb terminal for detection; the AP is also used to obtain the IP address of the dumb terminal according to the ARP reply message that the dumb terminal replies to the free ARP message;
[0024] The dumb terminal is used to access the AP and receive the gratuitous ARP message sent by the AP. When the IP address in the gratuitous ARP message is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message.
[0025] In a fourth aspect, an AP is provided, comprising an ARP proxy unit, a network segment address acquisition unit, a dumb terminal confirmation unit, a detection unit, and an address resolution unit;
[0026] The ARP proxy unit is used to enable ARP proxy;
[0027] The network segment address acquisition unit is used to acquire the network segment address of the current network when accessing a normal terminal;
[0028] The dumb terminal confirmation unit is used to confirm whether there is a dumb terminal access;
[0029] The detection unit is used to assemble a free ARP message using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame one by one after confirming that a dumb terminal has accessed, and send the free ARP message to the dumb terminal;
[0030] The address resolution unit is used to resolve the ARP reply message sent by the dumb terminal to the free ARP message, and obtain the IP address of the dumb terminal.
[0031] Preferably, the network segment address acquisition unit acquires the network segment address of the current network, including:
[0032] The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, the network segment address is formed in combination with the common network mask.
[0033] Preferably, the dumb terminal confirmation unit confirms whether there is dumb terminal access, including:
[0034] Parse the associated frame of the terminal to obtain the MAC address of the terminal;
[0035] If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
[0036] According to a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the dumb terminal detection method is implemented.
[0037] In a sixth aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the dumb terminal detection method.
[0038] It should be further explained that the technical features corresponding to the above aspects can be combined or replaced with each other to form a new technical solution without conflict.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] The present invention obtains the network segment address of the current network when a normal wireless terminal accesses, and continuously assembles free ARP messages to probe the IP address of the dumb terminal. When the IP address in the free ARP message is the same as the IP address of the dumb terminal, the dumb terminal replies with an ARP response message to the free ARP message, and the AP can obtain the IP address of the dumb terminal according to the reply of the dumb terminal to the free ARP message. The present invention can solve the defect that the wireless dumb terminal cannot be discovered by other devices in a wireless networking environment using the ARP proxy answering function. At the same time, in a conventional wireless networking environment, information can be collected for the dumb terminal, the information of the current network can be improved, and the normal communication between the wireless dumb terminal and other devices can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 The wireless networking environment shown in the embodiment of the present invention;
[0042] Figure 2 This is an ARP proxy reply scenario shown in an embodiment of the present invention;
[0043] Figure 3 A flowchart of a dumb terminal detection method shown in an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of dumb terminal information acquisition according to an embodiment of the present invention;
[0045] Figure 5 The diagram is a schematic diagram of the AP structure according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various configurations. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0047] It should be noted that the defects existing in the solutions in the above-mentioned prior art are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above-mentioned problems and the solutions proposed in the embodiments of the present application for the above-mentioned problems below should all be the contributions made by the inventor to the present application in the process of invention and creation, and should not be understood as technical contents known to technical personnel in this field.
[0048] Reference Figure 1 The application scenario of the present invention is mainly composed of AP, normal terminal, dumb terminal, uplink device and DHCP server in the uplink environment. Figure 2 As shown, in the current wireless LAN environment, there are two wireless terminals on the AP, and the DHCP server is connected to the uplink device to allocate IP addresses to the connected wireless terminals. After ARP proxy is enabled in the current network, the ARP request sent from the uplink device to the wireless terminal is replied by the AP, and the ARP request is no longer forwarded to the wireless side, which reduces a large number of ARP broadcast messages from the uplink environment and optimizes the air interface environment. The wireless environment of the embodiments of the present invention is all the case where ARP proxy is enabled.
[0049] In view of the technical problems pointed out in the background technology, the embodiments provided by the present invention are as follows:
[0050] Example 1
[0051] Reference Figure 3 In an exemplary embodiment, a dumb terminal detection method is provided, comprising the following steps:
[0052] S1. The AP turns on ARP proxy reply. When a normal terminal is connected, the network segment address of the current network is obtained. After confirming that a dumb terminal is connected to the AP, step S2 is executed.
[0053] S2. The AP uses the IP addresses in the network segment address of the current network and the MAC address of the dumb terminal association frame to assemble a free ARP message, and sends the free ARP message to the dumb terminal for detection;
[0054] S3. When the IP address in the gratuitous ARP message received by the dumb terminal is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message;
[0055] S4. The AP obtains the IP address of the dumb terminal according to the ARP reply message sent by the dumb terminal.
[0056] Specifically, in step S1, in a wireless networking environment, ARP proxy is enabled. When the AP is normally connected to a normal terminal, the DHCP message of the normal terminal when associated is captured to obtain the network segment address of the current network environment. If the terminal does not obtain the address through the DHCP message, the network segment address is composed according to the IP address of the normal terminal and the common network mask (such as 28, 24, 16, etc.). After the wireless terminal is associated, the AP obtains the MAC address of the wireless terminal through the association frame. If the AP cannot obtain the IP address of the terminal for a long time after obtaining the MAC address, it can be confirmed that the terminal is a dumb terminal.
[0057] In step S2, the IP addresses in the network segment address of the current network that have been acquired by other terminals are excluded, and the IP addresses in the current network are used in combination with the MAC addresses in the associated frames in the set order to assemble a free ARP message, which is sent by the AP to the dumb terminal.
[0058] In step S3, after the dumb terminal receives a free ARP message with the same IP address as itself, it replies through an ARP reply message, and the AP obtains the corresponding relationship between the IP address and the MAC address of the dumb terminal according to the sender ip and sendermac fields of the reply. The present invention can solve the defect that the wireless dumb terminal cannot be discovered by other devices in a wireless networking environment using the ARP proxy answering function, and at the same time, in a conventional wireless networking environment, it can collect information for the dumb terminal and improve the information of the current network.
[0059] Example 2
[0060] Based on the inventive concept of embodiment 1, this embodiment provides specific examples, such as Figure 4 As shown in the figure, when a normal terminal accesses the AP, the network segment address of the current network environment is parsed according to the DHCPACK message sent by the DHCP server to the terminal. The DHCPACK message contains the your ip address field to record the terminal IP address (192.168.1.128), and the option subnetmask field to record the mask (255.255.255.0). The two data are combined to obtain the network segment address of the current network (192.168.1.0 / 24).
[0061] When an AP accesses a dumb terminal (the terminal address is a static address not obtained through the DHCP protocol), the AP first parses the associated frame of the terminal, obtains the terminal's MAC address, and saves it. It is impossible to confirm whether the terminal is a dumb terminal at the first time of terminal access. The AP needs to obtain the terminal's IP address and MAC based on the ARP message entering the wireless interface and the DHCPACK message going out of the wireless interface (the ARP message entering the wireless interface must be sent by the wireless terminal, and the DHCPACK message going out of the wireless interface must be replied to the wireless terminal), and save it in a terminal IP address and MAC address correspondence table. If after a period of time, there is only a MAC address in a table item of the correspondence table, it can be confirmed that the IP address of the terminal corresponding to the MAC address has not been obtained, and the terminal corresponding to the MAC address is a dumb terminal.
[0062] After confirming that the terminal is a dumb terminal, the AP can use the previously calculated network segment address (192.168.1.0 / 24) of the current network one by one in the order from small to large (or from large to small) to combine with the MAC address of the dumb terminal stored on the AP to assemble a free ARP message and send it to the dumb terminal, assembling a free ARP message for each IP address. Specifically, in the current embodiment, you can start trying from 192.168.1.2, and assemble a free ARP message in combination with the dumb terminal MAC address 222.222.222. The destination MAC field of the free ARP message can be directly filled in with the dumb terminal MAC 222.222.222 to avoid broadcasting ARP messages affecting the air interface environment. In the process of assembling and sending ARP messages in sequence using IP addresses from 192.168.1.2 to 192.168.1.254, the AP can skip some addresses according to the recorded current terminal IP. For example, when the IP address of a terminal in the environment is 192.168.1.128, the address can be directly skipped when assembling the free ARP message. It is easy for people in this field to understand that assembling the free ARP message using the IP addresses in the network segment of the current network one by one in the set order does not mean that all IP addresses in the network segment of the current network must be used, because as long as the ARP reply message replied by the dumb terminal is received, the remaining IP addresses do not need to be tried.
[0063] Furthermore, if the normal terminal does not use the DHCP protocol to obtain an address after access, but a statically configured address, then after the AP obtains its IP address through the ARP message of the normal terminal, it can directly use a common network mask (such as 28, 24, 16, etc.) to form a network segment address.
[0064] Furthermore, when the target IP of the free ARP message sent by the AP is consistent with the IP address of the dumb terminal, the dumb terminal will reply to the free ARP message with an ARP reply message according to the ARP protocol. The AP can capture the ARP reply message and parse out the IP address, MAC address and the correspondence between the IP address and MAC address of the dumb terminal.
[0065] Example 3
[0066] Based on the inventive concept of embodiment 1, this embodiment provides a dumb terminal detection method, which is applied to an AP, including:
[0067] Enable ARP proxy reply, and when a normal terminal is connected, obtain the network segment address of the current network;
[0068] When a dumb terminal is confirmed to have accessed, a free ARP message is assembled one by one using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame, and the free ARP message is sent to the dumb terminal;
[0069] Obtain the IP address of the dumb terminal based on the ARP reply message sent by the dumb terminal.
[0070] The obtaining of the network segment address of the current network includes:
[0071] The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, the network segment address is formed in combination with the common network mask.
[0072] The method for confirming that a dumb terminal has accessed includes:
[0073] Parse the associated frame of the terminal to obtain the MAC address of the terminal;
[0074] If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
[0075] Example 4
[0076] Based on the inventive concept of embodiment 1, this embodiment provides a dumb terminal detection system, including a normal terminal, a dumb terminal and an AP, wherein the AP is wirelessly connected to the normal terminal and the dumb terminal respectively;
[0077] The AP is used to enable ARP proxy reply, and when a normal terminal is connected, obtain the network segment address of the current network; and after confirming that a dumb terminal has been connected, assemble a free ARP message one by one using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame, and send the free ARP message to the dumb terminal for detection; the AP is also used to obtain the IP address of the dumb terminal according to the ARP reply message replied by the dumb terminal to the free ARP message;
[0078] The dumb terminal is used to access the AP and receive the gratuitous ARP message sent by the AP. When the IP address in the gratuitous ARP message is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message.
[0079] Example 5
[0080] Based on the inventive concept of embodiment 1, this embodiment provides an AP, such as Figure 5 As shown, it includes an ARP proxy unit, a network segment address acquisition unit, a dumb terminal confirmation unit, a detection unit, and an address resolution unit;
[0081] The ARP proxy unit is used to enable ARP proxy;
[0082] The network segment address acquisition unit is used to acquire the network segment address of the current network when accessing a normal terminal;
[0083] The dumb terminal confirmation unit is used to confirm whether there is a dumb terminal access;
[0084] The detection unit is used to assemble a free ARP message using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame one by one after confirming that a dumb terminal has accessed, and send the free ARP message to the dumb terminal;
[0085] The address resolution unit is used to resolve the ARP reply message sent by the dumb terminal to the free ARP message, and obtain the IP address of the dumb terminal.
[0086] The network segment address acquisition unit acquires the network segment address of the current network, including:
[0087] The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, it is combined with the common network mask to form the network segment address.
[0088] The dumb terminal confirmation unit confirms whether a dumb terminal is accessed, including:
[0089] Parse the associated frame of the terminal to obtain the MAC address of the terminal;
[0090] If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
[0091] Example 6
[0092] Based on the same inventive concept as Example 1, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the dumb terminal detection method provided by the embodiment of the present invention is implemented. Based on such an understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0093] Example 7
[0094] Based on the same inventive concept as that of Example 1, an electronic device is provided, including a memory and a processor, wherein the memory stores computer instructions executable on the processor, and the processor executes the dumb terminal detection method provided in the embodiment of the present invention when executing the computer instructions.
[0095] The processor may be a single-core or multi-core central processing unit or a specific integrated circuit, or one or more integrated circuits configured to implement the present invention.
[0096] Embodiments of the subject matter and functional operations described in this specification may be implemented in: tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or a combination of one or more of them. Embodiments of the subject matter described in this specification may be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a data processing device or to control the operation of the data processing device. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode and transmit information to a suitable receiver device for execution by the data processing device.
[0097] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by special purpose logic circuits, such as FPGAs (field programmable gate arrays) or ASICs (application-specific integrated circuits), and the apparatus can also be implemented as special purpose logic circuits.
[0098] Processors suitable for executing computer programs include, for example, general and / or special microprocessors, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read-only memory and / or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more large-capacity storage devices for storing data, such as magnetic disks, magneto-optical disks, or optical disks, or the computer will be operably coupled to this large-capacity storage device to receive data from it or to transmit data to it, or both. However, the computer does not necessarily have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, just to name a few.
[0099] It should be understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The above specific implementation methods are detailed descriptions of the present invention. It cannot be determined that the specific implementation methods of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions and substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A dumb terminal detection method, characterized in that: The following steps are involved: S1. The wireless access point AP turns on ARP proxy reply. When a normal terminal is connected, the network segment address of the current network is obtained. After confirming that a dumb terminal is connected to the AP, step S2 is executed. S2. The AP uses the IP addresses in the network segment address of the current network and the MAC address of the dumb terminal association frame to assemble a free ARP message, and sends the free ARP message to the dumb terminal for detection; S3. When the IP address in the gratuitous ARP message received by the dumb terminal is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message; S4. The AP obtains the IP address of the dumb terminal according to the ARP reply message sent by the dumb terminal.
2. A dumb terminal detection method, applied to an AP, characterized in that: include: Enable ARP proxy reply, and when a normal terminal is connected, obtain the network segment address of the current network; When a dumb terminal is confirmed to have accessed, a free ARP message is assembled one by one using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame, and the free ARP message is sent to the dumb terminal; Obtain the IP address of the dumb terminal based on the ARP reply message sent by the dumb terminal.
3. The dumb terminal detection method according to claim 2, characterized in that: The obtaining of the network segment address of the current network includes: The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, it is combined with the common network mask to form the network segment address.
4. The dumb terminal detection method according to claim 2, characterized in that: The method for confirming that a dumb terminal has accessed includes: Parse the associated frame of the terminal to obtain the MAC address of the terminal; If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
5. A dumb terminal detection system, characterized in that: It includes a normal terminal, a dumb terminal and an AP, wherein the AP is wirelessly connected to the normal terminal and the dumb terminal respectively; The AP is used to enable ARP proxy and obtain the network segment address of the current network when a normal terminal is connected; After confirming that a dumb terminal has accessed, the AP uses the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal's associated frame to assemble a free ARP message, and sends the free ARP message to the dumb terminal for detection; the AP is also used to obtain the IP address of the dumb terminal according to the ARP reply message replied by the dumb terminal to the free ARP message; The dumb terminal is used to access the AP and receive the gratuitous ARP message sent by the AP. When the IP address in the gratuitous ARP message is the same as its own IP address, the dumb terminal replies with an ARP reply message for the gratuitous ARP message.
6. An AP, characterized in that: It includes ARP proxy unit, network segment address acquisition unit, dumb terminal confirmation unit, detection unit and address resolution unit; The ARP proxy unit is used to enable ARP proxy; The network segment address acquisition unit is used to acquire the network segment address of the current network when accessing a normal terminal; The dumb terminal confirmation unit is used to confirm whether there is a dumb terminal access; The detection unit is used to assemble a free ARP message using the IP addresses in the network segment address of the current network in combination with the MAC address of the dumb terminal associated frame one by one after confirming that a dumb terminal has accessed, and send the free ARP message to the dumb terminal; The address resolution unit is used to resolve the ARP reply message sent by the dumb terminal to the free ARP message, and obtain the IP address of the dumb terminal.
7. The AP according to claim 6, characterized in that: The network segment address acquisition unit acquires the network segment address of the current network, including: The network segment address of the current network is parsed according to the DHCPACK message sent by the DHCP server to the normal terminal; or after obtaining its IP address through the ARP message of the normal terminal, it is combined with the common network mask to form the network segment address.
8. The AP according to claim 6, characterized in that: The dumb terminal confirmation unit confirms whether a dumb terminal is accessed, including: Parse the associated frame of the terminal to obtain the MAC address of the terminal; If the IP address of the terminal is not obtained after a preset time, the terminal is determined to be a dumb terminal.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 or 2 to 4 is implemented.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the processor can execute the computer program to implement the method described in any one of claims 1 or 2-4.
Citation Information
Cited By
Method and device for quickly answering messages on behalf of network switching chip
CN120455407A