Multicast WIFI frame detection mechanism capable of monitoring and responding as required
Technical Field
The invention relates to a wireless network technology, in particular to a multicast WIFI frame detection mechanism for monitoring and responding according to needs.
Background
The common encryption-free connection method comprises the following steps: 1. the AP sends a Beacon broadcast management frame; 2.a client sends a Probe Request frame to an AP carrying a specified SSID; 3. the AP access point responds to the SSID connection request of the client; 4. the client performs identity Authentication (Authentication) on the target AP request; 5. the AP responds to the client's Authentication request; 6. the client sends a connection (Association) request to the AP; 7. the AP responds to the connection (Association) request; 8. the client requests disconnection (disconnection) from the AP.
The WIFI connection is a standard procedure, and most APs and terminals follow the standard, but in practical applications, two serious problems occur:
1. the frame detection message of the WIFI terminal has a timing sending mechanism, and unless the WIFI of the mobile phone is turned off, even if the mobile phone enters a power-saving or standby mode, the WIFI terminal can regularly send a detection frame to search peripheral wireless Access Points (APs), so that the WIFI terminal gives equipment opportunities for intentionally collecting user position information and MAC addresses to find and collect data of a user mobile terminal;
2. when the mobile terminal enters a power saving or standby mode, it cannot respond to some specific instant applications.
Disclosure of Invention
Aiming at the two problems, the invention provides a method for multicasting WIFI (wireless fidelity) frame detection by monitoring and responding as required, which improves the existing 802 and 11 wireless mechanisms to realize a real-time and on-demand response safe wireless frame detection mechanism.
Firstly, the method comprises the following steps: a silent monitoring mode is added on the mobile terminal;
II, secondly: adding a control message Multicast message and two management frames 1101 and 1110 in a WIFI probe frame, wherein 1101 is a Multicast WIFI message Multicast Request, and 1110 is a Multicast WIFI response MulticastResponse;
thirdly, the method comprises the following steps: setting whether a Multicast WIFI message Multicast Request sent by a wireless access point AP is interested on a mobile terminal, recording a Multicast MAC address of the interested Multicast WIFI message Multicast Request, and storing the Multicast WIFI message Multicast Request in a monitoring blacklist.
In one step, the silent monitoring mode is started in two modes of power saving and standby of the mobile terminal.
And in the second step, a management frame of a Terminal Control bit Terminal Control is added in the WIFI detection frame. The Terminal Control bit Terminal Control field is 8 bits, wherein, the 1 st bit: 1 represents that the remote awakening is requested to the mobile terminal, and 0 represents that the remote awakening is not supported; the 2 nd bit: 1 represents that authentication is needed, and 0 represents that authentication is not needed; the 3 rd bit: 1 represents that the normal wireless Probe frame is sent immediately, and 0 represents that the Probe frame does not need to be responded immediately; bits 4-8 are reserved bits.
In the third step, the authentication setting carries out key agreement in a clear text or encryption mode in the Multicast WIFI message Multicast Request and the Multicast WIFI Response Multicast Response.
The invention has the following beneficial effects: the invention realizes the low-level wireless detection and response mechanism of the mobile terminal according to the service requirements in a certain specific scene, and simultaneously keeps low power consumption in the silent monitoring mode of the invention, prevents the low-level wireless detection of other people and monitors the interested services, thus being an improved, safe, efficient and practical new wireless low-level protocol.
Detailed Description
The multicast WIFI frame probing mechanism for on-demand listening and responding provided by this embodiment includes the following steps:
firstly, the method comprises the following steps: a silent monitoring mode is added on the mobile terminal;
II, secondly: adding a control message Multicast message and two management frames 1101 and 1110 in a WIFI probe frame, wherein 1101 is a Multicast WIFI message Multicast Request, and 1110 is a Multicast WIFI response MulticastResponse;
thirdly, the method comprises the following steps: setting whether a Multicast WIFI message Multicast Request sent by a wireless access point AP is interested on a mobile terminal, recording a Multicast MAC address of the interested Multicast WIFI message Multicast Request, and storing the Multicast WIFI message Multicast Request in a monitoring blacklist.
The mobile terminal only responds to the wireless access point AP which is interested by the mobile terminal, and filters other wireless access points AP which is not interested so as to prevent information collection and message interference of other wireless access points AP.
The control message Multicast message is used for a response behavior agreement between the mobile terminal and the wireless access point AP aiming at the Multicast wireless frame, and the management frame is used for a WIFI protocol interaction process of the WIFI low-level agreement on the Multicast address.
The silent monitoring mode is that the mobile terminal does not send any form of WIFI detection frame to the outside, ignores the wireless message with the broadcast MAC address as the target address, and monitors only the wireless message with the multicast MAC address as the target address.
The silent monitoring mode is started under two modes of power saving and standby of the mobile terminal, and the invention does not put multicast wireless message data into an upper layer application for processing except the message needing authentication for the consideration of the power saving mode or the standby mode.
Adding a specific field in a Multicast message to agree a response of a terminal to a wireless Access Point (AP), wherein a WIFI frame structure is shown in a table 1:
TABLE 1
In order to Control the basic wireless message only in two-layer interaction, a Terminal Control bit Terminal Control is added to the management frame to realize the Control of the multicast wireless frame on the Terminal in a physical layer and a data link layer.
The Terminal Control bit Terminal Control field is 8 bits, and the convention of the Terminal Control field is as shown in table 2:
TABLE 2
The authentication setting is that the secret key agreement is carried out in a clear text or encryption mode in the Multicast WIFI message Multicast Request and the Multicast WIFI Response, the agreement needs to be realized by upper layer software, the authentication for the remote terminal or the wireless access point AP is set in the control message, and the authentication process needs to be realized by the upper layer.
The wireless access point AP in which the mobile terminal is interested can perform response processing on the terminal in the listening mode at a low layer by setting the terminal control field, for example, enabling the mobile terminal in the standby mode to immediately respond to the setting when listening to the request of the specific wireless access point AP: and requesting the mobile terminal in a remote awakening processing power-saving mode or standby mode, and immediately requesting the mobile terminal to feed back the wireless sounding frame, thereby realizing a specific task in a specific scene.
The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any modification and replacement based on the technical solution and inventive concept provided by the present invention should be covered within the scope of the present invention.