Wireless network access method, related devices, and wireless network
By using authority and request indication frames to determine the AP with the best signal strength during the wireless link establishment process, the problem of insufficient signal strength of terminal equipment in a multi-AP cascade network is solved, communication quality is improved, and network security is enhanced.
Patent Information
- Application Number
- PCT/CN2023/121982
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2023-09-27
- Publication Date
- 2024-09-06
AI Technical Summary
In a multi-AP cascading wireless network, the signal strength between the terminal device and the access AP is insufficient, resulting in poor communication quality, and may cause the terminal device to mistakenly access an AP with too low signal strength, affecting network security.
During the wireless link establishment process, the terminal device sends permission indication frames and request indication frames to determine that the AP with the best signal strength has access permission, and preferentially selects the AP with the highest signal strength during the detection, authentication, and association processes.
Ensure that the signal strength between the terminal device and the accessed AP is strong, improve communication quality, avoid accessing APs with insufficient signal strength, and enhance network security.
Smart Images

Figure CN2023121982_06092024_PF_FP
Abstract
Description
A wireless network access method, related equipment and wireless network
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 28, 2023, with application number CN202310234411.6 and invention name “A method for wireless network access, related equipment and wireless network”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communications, and in particular to a method for accessing a wireless network, related equipment, and a wireless network. Background Art
[0003] In existing wireless fidelity (WiFi) networks, multiple access points (APs) are cascaded to improve signal coverage. These networking methods are categorized into two types: networking with the same basic service set identifier (BSSID) and networking with different BSSIDs. Networking with the same BSSID means that all APs in the same network have the same BSSID. Networking with different BSSIDs means that different APs in the same network have different BSSIDs.
[0004] After a terminal device (STA) and an AP establish a wireless link, the STA can communicate with the AP. The wireless link establishment process includes detection, authentication, association, and key exchange.
[0005] However, in a multi-AP cascade network, multiple APs may communicate with STAs during wireless link establishment. If a STA accesses an AP that is far away, the signal strength of the wireless link between the STA and the AP will be weak, resulting in poor communication quality between the STA and the AP.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method for wireless network access, related equipment, and a wireless network, which can ensure that the signal strength of the wireless link between the terminal device and the access device to which it is connected is strong during the wireless link establishment process, thereby ensuring the communication quality between the terminal device and the access device to which it is connected.
[0008] A first aspect of the present application provides a method for wireless network access, the method comprising: a first communication device receiving a permission indication frame from a second communication device, the permission indication frame being used to indicate that the first communication device has permission to send an access message to a terminal device, the access message being used for the terminal device to access the first communication device; and the first communication device sending the access message to the terminal device based on the permission indication frame.
[0009] As shown in this aspect, only the first communication device with a stronger signal strength with the terminal device has the authority to send an access message to the terminal device, thereby effectively ensuring the signal strength between the terminal device and the first communication device to which it is connected, and avoiding the terminal device accessing a communication device with a weak signal strength.
[0010] Based on the first aspect, in an optional implementation, before the first communication device receives the permission indication frame from the second communication device, the method also includes: the first communication device sends a request indication frame to the second communication device, and the request indication frame carries a first strength indication message, an identifier of the first communication device, and an address of the terminal device, the first strength indication message is used to indicate the signal strength between the first communication device and the terminal device, and the first strength indication message is used by the second communication device to determine whether the first communication device has the permission to send the access message to the terminal device.
[0011] Using this implementation method, in order to request the permission to send an access message to the terminal device, the first communication device sends a permission indication frame to the second communication device to request the second communication device to determine whether the first communication device has the permission to send a request message to the terminal device, so as to ensure the signal strength between the terminal device and the accessed communication device.
[0012] Based on the first aspect, in an optional implementation, the access message includes a probe response frame, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: the first communication device sends the probe response frame to the terminal device according to the permission indication frame, the probe response frame carries the basic service set identifier BSSID of the first communication device, and the probe response frame is used for the terminal device to successfully detect the first communication device.
[0013] This implementation method ensures the communication quality between the terminal device and the detected first communication device, avoids the disadvantage of the terminal device accessing another unknown wireless network due to the signal strength detected by the terminal device being too low, and improves network security.
[0014] Based on the first aspect, in an optional implementation, before the first communication device sends a request indication frame to the second communication device, the method also includes: the first communication device receives a detection request frame from the terminal device, and the detection request frame is used by the terminal device to request detection of the first communication device; the first communication device obtains the request indication frame based on the detection request frame.
[0015] With this implementation, upon obtaining a detection request frame, the first communication device sends a request indication frame to the second communication device to ensure the communication quality between the terminal device and the detected first communication device.
[0016] Based on the first aspect, in an optional implementation, the access message includes an authentication response frame, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: the first communication device sends the authentication response frame to the terminal device according to the permission indication frame, the authentication response frame carries the BSSID of the first communication device, and the authentication response frame is used to indicate that the terminal device has passed the link authentication.
[0017] With this implementation, link authentication succeeds only between the first communication device and the terminal device in the wireless network. Furthermore, the first communication device is the communication device with the highest signal strength between it and the terminal device in the wireless network, ensuring that the terminal device can successfully authenticate to the first communication device with the best communication quality. This avoids the disadvantage of link authentication failing for the terminal device due to link authentication with a communication device with too low signal strength.
[0018] Based on the first aspect, in an optional implementation, before the first communication device sends a request indication frame to the second communication device, the method also includes: the first communication device receives an authentication request frame from the terminal device, and the authentication request frame is used to request link authentication for the terminal device; the first communication device obtains the request indication frame based on the authentication request frame.
[0019] With this implementation, the first communication device requests the second communication device for permission to send an authentication response frame based on the authentication request frame from the terminal device, ensuring that the terminal device can successfully perform link authentication to the first communication device with the best communication quality.
[0020] Based on the first aspect, in an optional implementation, the access message includes an association response frame, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: the first communication device sends the association response frame to the terminal device according to the permission indication frame, the association response frame carries the BSSID of the first communication device, and the association response frame is used to indicate that the terminal device has successfully associated with the first communication device.
[0021] With this implementation, only the first communication device successfully associates with the terminal device in the wireless network. Furthermore, the first communication device is the communication device with the highest signal strength with the terminal device in the wireless network, ensuring that the terminal device successfully associates with the first communication device with the best communication quality. This avoids the disadvantage of the terminal device failing to associate with a communication device with too low a signal strength.
[0022] Based on the first aspect, in an optional implementation, before the first communication device sends a request indication frame to the second communication device, the method also includes: the first communication device receives an association request frame from the terminal device, and the association request frame is used by the terminal device to request association to the first communication device; the first communication device obtains the request indication frame based on the association request frame.
[0023] With this implementation, the first communication device requests the second communication device for permission to send an association response frame based on the association request frame from the terminal device, thereby ensuring that the terminal device can successfully associate with the first communication device with the best communication quality.
[0024] Based on the first aspect, in an optional implementation, the permission indication frame includes the correspondence between the address of the terminal device and the target BSSID, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: if the first communication device determines that the BSSID of the first communication device is the same as the target BSSID, then the first communication device sends the access message to the terminal device according to the address of the terminal device.
[0025] With this implementation, the first communication device sends an access message to the terminal device only when it determines that its BSSID is the same as the target BSSID, to ensure that the terminal device accesses the first communication device with a strong signal strength.
[0026] A second aspect of the present application provides a method for wireless network access, the method comprising: a second communication device obtains a first strength indication message, the first strength indication message being used to indicate the signal strength between the first communication device and a terminal device; the second communication device sends a permission indication frame to the first communication device based on the first strength indication message, the permission indication frame being used to indicate that the first communication device has permission to send an access message to the terminal device, the access message being used for the terminal device to access the first communication device.
[0027] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0028] Based on the second aspect, in an optional implementation method, the second communication device sends a permission indication frame to the first communication device based on the first strength indication message, including: the second communication device obtains a third strength indication message, and the third strength indication message is used to indicate the signal strength between the third communication device and the terminal device; the second communication device determines that the signal strength indicated by the first strength indication message is greater than the signal strength indicated by the third strength indication message.
[0029] Based on the second aspect, in an optional implementation method, the second communication device obtains the first strength indication message, including: the second communication device receives a request indication frame from the first communication device, and the request indication frame carries the first strength indication message, the identifier of the first communication device, and the address of the terminal device.
[0030] Based on the second aspect, in an optional implementation manner, the second communication device obtains the first strength indication message including: the second communication device receives a measurement response frame from the terminal device, the measurement response frame being used to obtain the first strength indication message.
[0031] Based on the second aspect, in an optional implementation, the permission indication frame includes the correspondence between the address of the terminal device and the target basic service set identifier BSSID, and the target BSSID is used to indicate that the first communication device with the target BSSID has the permission to send the access message to the terminal device.
[0032] A third aspect of the present application provides a method for wireless network access, the method comprising: a second communication device obtains a first strength indication message and a second strength indication message, the first strength indication message being used to indicate the signal strength between the first communication device and a terminal device, and the second strength indication message being used to indicate the signal strength between the second communication device and the terminal device; the second communication device determines that the signal strength indicated by the second strength indication message is greater than the signal strength indicated by the first strength indication message, and sends an access message to the terminal device, the access message being used by the terminal device to access the second communication device.
[0033] As shown in this aspect, only the second communication device with a stronger signal strength between it and the terminal device has the authority to send an access message to the terminal device, thereby effectively ensuring the signal strength between the terminal device and the second communication device to which it is connected, and avoiding the terminal device accessing a communication device with a weak signal strength.
[0034] Based on the third aspect, in an optional implementation method, the second communication device obtains the first strength indication message, including: the second communication device receives a request indication frame from the first communication device, and the request indication frame carries the first strength indication message, the identifier of the first communication device, and the address of the terminal device.
[0035] Based on the third aspect, in an optional implementation method, the second communication device obtains the first strength indication message and the second strength indication message, including: the second communication device receives a measurement response frame from the terminal device, and the measurement response frame is used to obtain the first strength indication message and the second strength indication message.
[0036] A fourth aspect of the present application provides a method for wireless network access, the method comprising: a second communication device obtains a first strength indication message, the first strength indication message being used to indicate the signal strength between the first communication device and a terminal device; the second communication device sends a permission indication frame to the first communication device based on the first strength indication message, the permission indication frame being used to indicate that the first communication device has permission to send an access message to the terminal device, the access message being used for the terminal device to access the first communication device; and the first communication device sends the access message to the terminal device.
[0037] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0038] In a fifth aspect, the present application provides a communication device, comprising a processor and a transceiver connected to the processor; the transceiver is used to receive a permission indication frame from another communication device; the processor is used to determine, based on the permission indication frame, that the communication device has permission to send an access message to a terminal device, and the access message is used for the terminal device to access the communication device; the transceiver is also used to send the access message to the terminal device.
[0039] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0040] In a sixth aspect of the present application, a communication device is provided, comprising a processor and a transceiver connected to the processor; the processor is used to obtain a first strength indication message, wherein the first strength indication message is used to indicate the signal strength between another communication device and a terminal device; the transceiver is used to send a permission indication frame to the other communication device based on the first strength indication message, wherein the permission indication frame is used to indicate that the other communication device has permission to send an access message to the terminal device, and the access message is used for the terminal device to access the other communication device.
[0041] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0042] In a seventh aspect, the present application provides a communication device, comprising a processor and a transceiver connected to the processor; the processor is used to: obtain a first strength indication message and a second strength indication message, the first strength indication message being used to indicate the signal strength between another communication device and a terminal device, and the second strength indication message being used to indicate the signal strength between the communication device and the terminal device; determine that the signal strength indicated by the second strength indication message is greater than the signal strength indicated by the first strength indication message; the transceiver is used to send an access message to the terminal device, the access message being used for the terminal device to access the communication device.
[0043] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0044] In an eighth aspect of the present application, a wireless network is provided, comprising a first communication device, a second communication device and a terminal device; the second communication device is used to obtain a first strength indication message, the first strength indication message being used to indicate the signal strength between the first communication device and the terminal device; the second communication device is used to send a permission indication frame to the first communication device based on the first strength indication message, the permission indication frame being used to indicate that the first communication device has permission to send an access message to the terminal device, the access message being used for the terminal device to access the first communication device; the first communication device is used to send the access message to the terminal device.
[0045] For the description of the beneficial effects of this aspect, please refer to the first aspect and the details will not be repeated here.
[0046] In a ninth aspect, the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, which, when executed by a processor, enable the processor to execute the method described in any one of the first to fourth aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] FIG1 is a diagram showing an example structure of a wireless network;
[0048] FIG2 is an example diagram of a wireless network detection process provided by an existing solution;
[0049] FIG3 is a flowchart of the steps of a first embodiment of a method for wireless network access provided by the present application;
[0050] FIG4 is a diagram illustrating a first frame structure example of a request indication frame provided in this application;
[0051] FIG5 is a diagram illustrating an example of a frame structure of a permission indication frame provided in this application;
[0052] FIG6 is a diagram illustrating an example of a frame structure of an OMCI frame provided in the present application;
[0053] FIG7 is a flowchart of a second embodiment of a method for wireless network access provided by the present application;
[0054] FIG8 is a flowchart of a third embodiment of a method for wireless network access provided by the present application;
[0055] FIG9 is a diagram illustrating a second frame structure example of a request indication frame provided in this application;
[0056] FIG10 is a flow chart of an access method provided by an existing solution;
[0057] FIG11 is a flowchart of a fourth embodiment of a method for wireless network access provided by the present application;
[0058] FIG12 is another example diagram of a frame structure of a permission indication frame provided by the present application;
[0059] FIG13 is a diagram illustrating a first embodiment of a communication device provided by the present application;
[0060] FIG14 is a diagram showing an example structure of a second embodiment of a communication device provided in this application. DETAILED DESCRIPTION
[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0062] To better understand the wireless network access method provided in the present application, the structure of the wireless network 100 provided in the present application is first described with reference to FIG1 , where FIG1 is an example diagram of a wireless network structure.
[0063] The wireless network 100 shown in Figure 1 includes multiple access devices, for example, the first access device 101, the second access device 102 and the third access device 103 shown in Figure 1. Figure 1 shows an example of a wireless network 100 including three access devices. In other examples, the wireless network may include any number of access devices. Taking the first access device 101 as an example, the first access device 101 may be an AP in a wireless local area network (WLAN), or a network device in a fifth generation mobile communication technology (5G) network. For example, the network device may be a transmission reception point (TRP), a base station, a small base station device, etc., which is not limited in this application.
[0064] The wireless network 100 may also include at least one terminal device, for example, the terminal device 111 and the terminal device 112 connected to the first access device 101 shown in Figure 1. The description of the number of terminal devices connected to each access device in this example is an optional example and is not limited. Taking the terminal device 111 as an example, the first access device 101 communicates with the terminal device 111 via a wireless air interface. The terminal device 111 can be called an STA, an access terminal, a user device, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device, etc., and is not specifically limited in this application. The device type of the terminal device 111 can be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, and a user device in a 5G network, etc.
[0065] For example, if the wireless network 100 shown in this example is applied to fiber to the room (FTTR), then the multiple access devices included in the wireless network 100 are deployed in each room so that the wireless signal covers every room in the home scene.
[0066] The wireless network 100 shown in this example also includes an access controller (AC) 120. The primary function of the access controller 120 is to manage and control connected access devices. As shown in Figure 1, the access controller 120 is connected to a first access device 101, a second access device 102, and a third access device 103, respectively. The access controller 120 is configured to manage and control the first access device 101, the second access device 102, and the third access device 103.
[0067] In the example shown in Figure 1, the wireless network is a same-BSSID network. Therefore, the BSSIDs of first access device 101, second access device 102, and third access device 103 are the same and are all target BSSIDs. The technical limitations of existing solutions for implementing terminal device detection of access devices based on same-BSSID networking are explained in conjunction with Figure 2, which illustrates an example of the wireless network detection process provided by existing solutions.
[0068] The detection process during wireless link establishment, also known as the scanning process, involves a terminal device discovering and detecting the signal strength of surrounding access devices in a wireless network. Based on the signal strength of each access device, the terminal device selects an access device to initiate the access process. For example, terminal device 113 shown in Figure 1 selects an access device from among first access device 101, second access device 102, and third access device 103 to initiate the access process, ensuring that terminal device 113 can communicate with the access device.
[0069] Step 201: The terminal device sends a probe request frame.
[0070] In order to detect each access device in the wireless network, the terminal device broadcasts a probe request frame (Probe Request Frame) to each access device around it. The frame header of the probe request frame broadcast by the terminal device carries the destination address (DA), source address (SA) and target BSSID. Among them, SA is the media access control address (MAC) of the terminal device. In the case of networking with the same BSSID, the DA and BSSID of each access device are the same. For example, in the example shown in Figure 1, the first access device 101, the second access device 102 and the third access device 103 can all receive the probe request frame from the terminal device.
[0071] Step 202: The first access device sends a first probe response frame to the terminal device.
[0072] Step 203: The second access device sends a second probe response frame to the terminal device.
[0073] Step 204: The third access device sends a third probe response frame to the terminal device.
[0074] In a wireless network, each access device that successfully receives a probe request frame from a terminal device can send a probe response frame (Probe Response Frame) to the terminal device. For example, in the example shown in Figure 1, when the first access device 101 successfully receives the probe request frame, it sends a first probe response frame to the terminal device 113. Similarly, when the second access device 102 successfully receives the second probe request frame, it sends a second probe response frame to the terminal device 113. When the third access device 103 successfully receives the third probe request frame, it sends a third probe response frame to the terminal device 113. Because the wireless network shown in this example is a same-BSSID network, the DA, SA and target BSSID of the frame headers of the first probe response frame, the second probe response frame and the third probe response frame are all the same.
[0075] Moreover, after the first access device receives the probe request frame, the first access device measures the first received signal strength indication (RSSI) between the first access device and the terminal device based on the probe request frame. The first RSSI reflects the quality of the signal between the first access device and the terminal device, and the larger the value of the first RSSI, the better the signal quality between the first access device and the terminal device. The first probe response frame sent by the first access device to the terminal device carries the first RSSI. Similarly, after the second access device receives the probe request frame, the second access device measures the second RSSI between the second access device and the terminal device based on the probe request frame, and the second probe response frame sent by the second access device to the terminal device carries the second RSSI. After the third access device receives the probe request frame, the third access device measures the third RSSI between the third access device and the terminal device based on the probe request frame, and the third probe response frame sent by the third access device to the terminal device carries the third RSSI.
[0076] Step 205: The terminal device accesses the second access device.
[0077] This example takes the wireless network 100 as an example of a network with the same BSSID. Then, the BSSID of each access device in the wireless network 100 is the same. After the terminal device sends a probe request frame to each access device, each access device in the wireless network 100 will reply with a probe response frame to the terminal device (i.e., the first probe response frame, the second probe response frame, and the third probe response frame shown above). When the terminal device receives the first probe response frame, the terminal device will maintain a first corresponding relationship based on the first probe response frame. The content of the first corresponding relationship is: [BSSID of the first access device, first RSSI]. This example does not limit the description of the content of the first corresponding relationship. Similarly, the terminal device will maintain a second corresponding relationship based on the second probe response frame. The content of the second corresponding relationship is: [BSSID of the second access device, second RSSI]. The terminal device will maintain a third corresponding relationship based on the third probe response frame. The content of the third corresponding relationship is: [BSSID of the third access device, third RSSI]. The corresponding relationships can be found in Table 1:
[0078] Table 1
[0079] In this example, wireless network 100 is a single-BSSID network. Therefore, the BSSIDs of the first access device, the second access device, and the third access device are identical and are all target BSSIDs. Table 1 shows the correspondence between the target BSSID and the first, second, and third RSSIs, respectively.
[0080] The terminal device initiates an access procedure with the access device that sent the last probe response frame. For example, if the terminal device receives multiple probe response frames with the same BSSID, the terminal device initiates an access procedure with the target access device, where the target access device is the access device that sent the target probe response frame to the terminal device, and the target probe response frame is the last probe response frame received within the duration of a timer preset by the terminal device. For example, within the duration of the timer, the terminal device sequentially receives the first probe response frame, the third probe response frame, and the second probe response frame. Therefore, the last target probe response frame received by the terminal device within the duration of the timer is the second probe response frame, and the target access device is the second access device. However, because the terminal device receives the second probe response frame later than the third probe response frame, it can be seen that the physical distance between the second access device and the terminal device is greater than the distance between the third access device and the terminal device. Similarly, because the terminal device receives the third probe response frame later than the first probe response frame, the physical distance between the third access device and the terminal device is greater than the distance between the first access device and the terminal device.
[0081] Moreover, in this example, the first RSSI is the maximum value among the multiple RSSIs included in the list shown in Table 1, and the second RSSI is the minimum value among the multiple RSSIs included in the list described in Table 1. Therefore, if the terminal device accesses the first access device, the communication between the terminal device and the first access device can obtain the best communication quality. If the terminal device accesses the second access device, the communication between the terminal device and the second access device can obtain the worst communication quality. However, because the terminal device uses the last received second probe response frame as the basis, the terminal device instead accesses the second access device with the smallest RSSI, so that the access device accessed by the terminal device is not the access device with the best signal strength in the wireless network, and the communication quality of the terminal device cannot be guaranteed. Moreover, if the second RSSI is very small, then not only will it affect the communication quality of the terminal device, it may even cause the terminal device to believe that the signal strength of the current wireless network 100 is very poor, and thus attempt to access another unknown wireless network, resulting in network security risks.
[0082] The wireless network access method provided by the present application, as shown in Figure 3, can ensure the signal strength of the access device to which the terminal device is connected when the same BSSID is networked, thereby ensuring the communication quality of the terminal device and effectively preventing the terminal device from accessing an access device with weak signal strength. Figure 3 is a flowchart of the steps of the first embodiment of the wireless network access method provided by the present application. For an explanation of the wireless network to which the method shown in this embodiment is applied, please refer to Figure 1, and the details will not be repeated here. In this embodiment, the wireless network is networked with the same BSSID as an example, that is, the BSSIDs of the communication devices included in the wireless network shown in this embodiment are the same and are all target BSSIDs.
[0083] Step 301: The terminal device sends a probe request frame.
[0084] For the description of the execution process of step 301 shown in this embodiment, please refer to the corresponding step 201 in Figure 2, and the details are not repeated here.
[0085] Step 302: The first communication device sends a first request indication frame to the second communication device.
[0086] Step 303: The third communication device sends a second request indication frame to the second communication device.
[0087] This embodiment uses the first communication device, the second communication device, and the third communication device as three different access devices in a wireless network as an example, and the first communication device and the third communication device are both slave access devices, which are controlled by the second communication device as the master access device. This embodiment does not limit the number of slave access devices. It can be understood that because the method shown in this embodiment is applied to the same BSSID network, the BSSID of the first communication device, the BSSID of the second communication device, and the BSSID of the third communication device are the same and are all target BSSIDs.
[0088] The first communication device shown in this embodiment can obtain a first RSSI based on a probe request frame from a terminal device, the second communication device can obtain a second RSSI based on a probe request frame from a terminal device, and the third communication device can obtain a third RSSI based on a probe request frame from a terminal device. For an explanation of how each communication device obtains RSSI based on a probe request frame, please refer to the corresponding description in FIG2 , and detailed description is omitted here.
[0089] In this embodiment, when the first, second, and third communications devices each successfully receive a probe request frame from a terminal device, none of the first, second, and third communications devices will first return a probe response frame to the terminal device. Instead, the first communications device, acting as a slave access device, sends a first request indication frame to the second communications device, acting as a master access device. The third communications device, acting as a slave access device, sends a second request indication frame to the second communications device, acting as a master access device. The first request indication frame is used to request the second communications device to indicate whether the first communications device has permission to send an access message to the terminal device. Similarly, the second request indication frame is used to request the second communications device to indicate whether the third communications device has permission to send an access message to the terminal device. Taking the first communications device as an example, the terminal device sends a probe request frame to request an access message from the access device, and the access message includes a probe response frame. It will be understood that in this embodiment, when a slave access device receives a probe request frame from a terminal device, it does not send a probe response frame to the terminal device, but instead sends a request indication frame to the master access device.
[0090] The frame structure of the first request indication frame is shown in Figure 4, wherein Figure 4 is an example diagram of the first frame structure of the request indication frame provided in this application. The first request indication frame 400 includes a first message type field, an identifier of the first communication device, a first strength indication message, and an address of the terminal device.
[0091] Among them, the first message type field is used to indicate to the second communication device that the first request indication frame 400 is used to request the second communication device to obtain permission to send a probe response frame to the terminal device. The identifier of the first communication device is unique in the wireless network. For example, if the first communication device is an optical network unit, then the identifier of the first communication device may be an optical network unit identifier (ONU ID). For example, the identifier of the first communication device may also be a private negotiation identifier, which is not limited in this embodiment. The first strength indication message is used to indicate the signal strength between the first communication device and the terminal device. For example, the first strength indication message may be a first RSSI. This embodiment does not limit the first strength indication message. For example, the first strength indication message may also be a received channel power indicator (RCPI), channel quality, transmission rate, reference signal receiving power (RSRP), reference signal receiving quality (RSRQ) or signal to interference plus noise ratio (SINR), etc. The probe request frame received by the first communication device from the terminal device already carries the address of the terminal device, and the first communication device sets the address of the terminal device in the first request indication frame 400. This embodiment takes the example of the first communication device obtaining the address of the terminal device through the probe request frame. In other examples, the terminal device may also send the address of the terminal device to each access device by broadcasting. The first request indication frame 400 shown in this embodiment may also carry a length indication message for indicating the length of the first request indication frame 400, etc., which is not specifically limited. For the description of the frame structure of the second request indication frame, please refer to the description of the frame structure of the first request indication frame, and the details will not be repeated.
[0092] For example, the probe request frame may carry a target BSSID to indicate that the terminal device hopes to access the communication device with the BSSID of the target BSSID. Then, the first communication device will send a first request indication frame to the second communication device only when it determines that the BSSID carried by the probe request frame is the same as the BSSID of the first communication device itself and both are target BSSIDs. If the probe request frame does not carry a BSSID to indicate that the terminal device requests to obtain the BSSIDs of all surrounding communication devices, then the first communication device directly sends the first request indication frame to the second communication device. For the description of the third communication device sending the second request indication frame to the second communication device shown in this embodiment, please refer to the description of the first communication device sending the first request indication frame to the second communication device, and no further details will be given.
[0093] Step 304: The second communication device sends a first permission indication frame to the first communication device.
[0094] In this embodiment, after the second communication device serving as the main access device receives the first request indication frame from the first communication device and the second request indication frame from the third communication device, it determines which communication device among the first communication device, the second communication device and the third communication device has the authority to send a probe response frame to the terminal device.
[0095] Specifically, the second communication device maintains the permission list shown in Table 2 according to the first request indication frame and the second request indication frame:
[0096] Table 2
[0097] The second communication device can create a correspondence between the address of the terminal device (STA-A1), the identifier of the first communication device (ID1) and the first strength indication message (first RSSI) as shown in Table 2 based on the address of the terminal device carried by the first request indication frame (such as STA-A1), the identifier of the first communication device (such as ID1) and the first strength indication message (first RSSI). Similarly, the second communication device can create a correspondence between the address of the terminal device (STA-A1), the identifier of the third communication device (ID3) and the third strength indication message (third RSSI) based on the second request indication frame. The third RSSI is the RSSI between the third communication device and the terminal device. For details, please refer to the description of the first RSSI between the first communication device and the terminal device, and no further details are given.
[0098] Optionally, the terminal device shown in this embodiment can also access a second communication device as a main access device. Then, the second communication device can receive a detection request frame from the terminal device, and create a correspondence between the address of the terminal device (STA1-A1), the identifier of the second communication device (ID2), and the second RSSI as shown in Table 2 based on the detection request frame. The second RSSI is the RSSI between the second communication device and the terminal device. For specific instructions, please refer to the description of the first RSSI between the first communication device and the terminal device. The details will not be repeated here.
[0099] Based on the permission list shown in Table 2, it can be seen that in the wireless network, the terminal device with address STA-A1 can access the identification of each communication device (i.e., ID1, ID2 and ID3), as well as the RSSI between the terminal device and each accessible communication device (i.e., the first RSSI, the second RSSI and the third RSSI).
[0100] The second communication device obtains the maximum value of the RSSI in the permission list. For example, if the second communication device determines that the first RSSI is greater than the second RSSI, and the first RSSI is greater than the third RSSI, then it means that the signal strength between the terminal device and the first communication device is greater than the signal strength between the terminal device and the second communication device, and the signal strength between the terminal device and the first communication device is greater than the signal strength between the terminal device and the third communication device. In order to achieve the purpose of the terminal device accessing the first communication device, the second communication device sends a first permission indication frame to the first communication device, and the first permission indication frame is used to indicate that the first communication device has the permission to send a probe response frame to the terminal device.
[0101] Because the third communication device does not receive the permission indication frame from the second communication device, the third communication device will not send a probe response frame to the terminal device. Similarly, if the second communication device determines that the second RSSI is not the maximum value among the multiple RSSIs included in the permission list, the second communication device will not send a probe response frame to the terminal device.
[0102] This embodiment takes the example of a terminal device accessing a first communication device. In other examples, the terminal device may also access a second communication device. For example, the second communication device determines that the second RSSI is the maximum value in the permission list, and the second communication device determines that the second communication device has the permission to send a probe response frame to the terminal device. Then, the second communication device will not send a permission indication frame to the first communication device and the third communication device, but will send a probe response frame to the terminal device. Similarly, the terminal device may also access a third communication device. For example, the second communication device determines that the third RSSI is the maximum value in the permission list, and the second communication device sends a permission indication frame to the third communication device to indicate that a probe response frame should be sent to the terminal device.
[0103] The frame structure of the first permission indication frame shown in this embodiment is shown in FIG5 , where FIG5 is an example diagram of a frame structure of a permission indication frame provided in this application. The first permission indication frame 500 includes a second message type field and a terminal device identifier. The second message type field is used to indicate to the first communications device that the first communications device has permission to send a probe response frame to the terminal device. For example, the first communications device parses the first permission indication frame 500 according to the second message type field carried by the first permission indication frame 500 to obtain the terminal device identifier. The first communications device obtains the terminal device address as STA-A1 based on the terminal device identifier. Then, the second communications device sends a probe response frame to the terminal device with the address STA-A1, enabling the terminal device to detect the first communications device based on the probe response frame. The first communications device shown in this embodiment pre-establishes a correspondence between the terminal device identifier and the terminal device address. Therefore, when the first communications device receives the terminal device identifier via the first permission indication frame 500, the first communications device can obtain the terminal device address corresponding to the terminal device identifier. Optionally, the first permission indication frame 500 may also directly carry the terminal device address. The first permission indication frame 500 shown in this embodiment may also carry a frame length indication message for indicating the length of the first permission indication frame 500, a response frame content field for carrying any message, etc., which is not specifically limited.
[0104] The first request indication frame 400 and the first permission indication frame 500 shown in the present embodiment can be carried by a physical layer operation, maintenance and management (PLOAM) frame in a passive optical network (PON) protocol, or can be carried by an optical network unit management and control interface (OMCI) frame. Referring to Figure 6, taking the first request indication frame 400 and the first permission indication frame 500 carried by an OMCI frame as an example. Figure 6 is an example of a frame structure of an OMCI frame provided by the present application.
[0105] The OMCI frame 600 shown in this example includes a Gigabit Passive Optical Network encapsulation mode (G-PON encapsulation mode, GEM) frame header (Header), a transaction correlation identifier (Transaction Correlation Identifier) field for indicating the priority of the OMCI frame 600, a message type (Message Type) field, a device identifier (Device Identifier) field, a message content (Message Contents) field, and an OMCI trailer field. In the present embodiment, if the OMCI frame 600 is used as the first request indication frame 400, then the value of the Message Type field of the OMCI frame 600 is the first preset value as the first message type field, and the Message Contents field is used to carry the identifier of the first communication device of the first request indication frame 400, the first strength indication message, and the address of the terminal device. If the OMCI frame 600 is used as the first authority indication frame 500, then the value of the Message Type field of the OMCI frame 600 is the second preset value as the second message type field, and the Message Contents field is used to carry the identifier (STA ID) of the terminal device.
[0106] Step 305: The first communication device sends a probe response frame to the terminal device.
[0107] In this embodiment, when a first communication device receives a first permission indication frame from a second communication device, the first communication device determines, based on the first permission indication frame, that it has permission to send a probe response frame to the terminal device. To this end, the first communication device sends a probe response frame to the terminal device based on the first permission indication frame. The probe response frame shown in this embodiment carries the target BSSID, so that the terminal device determines to access the access device with the target BSSID. In this embodiment, because the third communication device does not receive the permission indication frame from the second communication device, even if the third communication device receives a probe request frame from the terminal device, the third communication device will not send a probe response frame to the terminal device, thereby preventing the terminal device from accessing the third communication device. Similarly, because the second communication device, as the primary access device, determines that the second RSSI is not the maximum RSSI between each communication device and the terminal device in the wireless network, even if the second communication device receives a probe request frame from the terminal device, the second communication device will not send a probe response frame to the terminal device, thereby preventing the terminal device from accessing the second communication device.
[0108] It can be understood that the terminal device detects the first communication device based on the detection response frame. Specifically, in the wireless network, only the first communication device has the authority to send the detection response frame to the terminal device. Then, the terminal device can achieve the purpose of detecting the first communication device based on the detection response frame received from the first communication device. Taking the wireless network as an example of the same BSSID networking, then, among the multiple communication devices included in the wireless network, only a specific communication device sends a detection response frame to the terminal device (such as the first communication device shown above). Because in the wireless network, only the first communication device has the authority to send the detection response frame to the terminal device, the first communication device detected by the terminal device based on the detection response frame is the communication device with the largest RSSI between the terminal device and the terminal device in the wireless network, which ensures the communication quality between the terminal device and the detected first communication device, avoids the disadvantage that the terminal device accesses another unknown wireless network due to the RSSI detected by the terminal device being too low, and improves network security.
[0109] Step 306: The terminal device sends an authentication request frame.
[0110] After a terminal device initiates a probe by sending a probe request frame, it enters the link authentication process. This process verifies the legitimacy of the terminal device and prevents illegal or malicious terminal devices from accessing the communication equipment and threatening network security.
[0111] During the link authentication process, there are two ways for the communication device to verify whether the terminal device is a legitimate device, one is open system authentication (Open System Authentication) and shared key authentication (Shared). Among them, open system authentication is an authentication method that does not authenticate the identity of the terminal device. In principle, the terminal device sends an authentication request frame to the communication device. The authentication request frame is just a request and does not contain information such as user name and password. It can obtain an authentication response frame from the communication device to obtain authentication. Shared key authentication refers to determining whether the other party's identity is legitimate by judging whether the other party has the same key. The key is shared by all communication devices and terminal devices in the wireless network, so it is called a "shared" key. The encryption method corresponding to the key is wired equivalent privacy (WEP), which is used to prevent illegal terminal devices from eavesdropping or intruding into the wireless network. This embodiment takes the link authentication process through open system authentication as an example, and is not limited to the specific details.
[0112] The authentication request frame broadcast by the terminal device carries the DA, SA, and target BSSID in its header. When networking with the same BSSID, each communication device can receive the authentication request frame from the terminal device. For details on how each communication device receives the authentication request frame from the terminal device, refer to the description of how each communication device receives the probe request frame from the terminal device in step 301. Details are omitted here.
[0113] Step 307: The first communication device sends a third request indication frame to the second communication device.
[0114] Step 308: The third communication device sends a fourth request indication frame to the second communication device.
[0115] In this embodiment, the first communication device can obtain a first RSSI based on the authentication request frame from the terminal device, the second communication device can obtain a second RSSI based on the authentication request frame from the terminal device, and the third communication device can obtain a third RSSI based on the authentication request frame from the terminal device. For instructions on how each communication device obtains the RSSI based on the authentication request frame, please refer to steps 302 and 303, and the details are not repeated here.
[0116] In this embodiment, when the first, second, and third communications devices each successfully receive an authentication request frame from a terminal device, none of the first, second, and third communications devices will first return an authentication response frame to the terminal device. Instead, the first communications device, acting as a slave access device, sends a third request indication frame to the second communications device, acting as a master access device. The third communications device, acting as a slave access device, sends a fourth request indication frame to the second communications device, acting as a master access device. The third request indication frame is used to request the second communications device to indicate whether the first communications device has permission to send an access message to the terminal device. Similarly, the fourth request indication frame is used to request the second communications device to indicate whether the third communications device has permission to send an access message to the terminal device. If the terminal device has already sent an authentication request frame, the access message includes an authentication response frame. It will be understood that, in this embodiment, when a slave access device receives an authentication request frame from a terminal device, it does not send an authentication response frame to the terminal device, but instead sends a request indication frame to the master access device. For a description of the frame structures of the third and fourth request indication frames, please refer to FIG. 4 ; detailed description is omitted here.
[0117] Step 309: The second communication device sends a second permission indication frame to the first communication device.
[0118] In this embodiment, after the second communication device, serving as the primary access device, receives the third request indication frame from the first communication device and the fourth request indication frame from the third communication device, it determines which of the first communication device, the second communication device, and the third communication device has permission to send an authentication response frame to the terminal device. In this embodiment, the second communication device determines that the first communication device has permission to send an authentication response frame to the terminal device as an example. For the determination process, please refer to the process in which the second communication device determines that the first communication device has permission to send a probe response frame to the terminal device, as shown in step 304. Detailed description is omitted.
[0119] Step 310: The first communication device sends an authentication response frame to the terminal device.
[0120] In this embodiment, when a first communication device receives a second permission indication frame from a second communication device, the first communication device determines, based on the authentication request frame, that it has permission to send an authentication response frame to the terminal device. To this end, the first communication device sends an authentication response frame to the terminal device based on the second permission indication frame. The authentication response frame shown in this embodiment carries the target BSSID, enabling the terminal device to determine that link authentication with the first communication device is successful. In this embodiment, because the third communication device did not receive the permission indication frame from the second communication device, even if the third communication device receives an authentication request frame from the terminal device, it will not send an authentication response frame to the terminal device, thereby preventing the terminal device from performing link authentication with the third communication device. Similarly, because the second communication device, acting as the primary access device, determines that the second RSSI is not the maximum RSSI between each communication device and the terminal device in the wireless network, even if the second communication device receives an authentication request frame from the terminal device, it will not send an authentication response frame to the terminal device, thereby preventing the terminal device from performing link authentication with the second communication device.
[0121] In existing solutions, when networking with the same BSSID, a terminal device sends an authentication request frame to multiple access devices with the same BSSID. Then, multiple access devices will all send authentication response frames to the terminal device. Then, the terminal device will receive an authentication response frame with a weak RSSI from an access device that is relatively far away, thereby triggering abnormal behavior of the terminal device. For example, if the RSSI carried by the authentication response frame received by the terminal device is weak, the terminal device will believe that the currently detected network signal strength is poor. Then, the terminal device will send a deauthentication frame to trigger the deauthentication between the terminal device and the access device, causing the terminal device to fail to perform link authentication, resulting in the terminal device being unable to successfully access the access device.
[0122] In this embodiment, in the wireless network, only the first communication device has permission to send an authentication response frame to the terminal device. Therefore, among multiple communication devices with the same BSSID in the wireless network, only the first communication device and the terminal device successfully authenticate the link. Furthermore, the first communication device is the communication device with the highest RSSI in the wireless network, ensuring that the terminal device can successfully authenticate the link to the communication device with the best communication quality. This avoids the disadvantage of the terminal device failing to authenticate the link to a communication device with an RSSI that is too low.
[0123] It should be clarified that when a communication device acting as a slave access device receives an authentication request frame from a terminal device, it will send a permission indication frame to the communication device acting as the master access device, requesting the master access device to determine whether the communication device has permission to send an authentication response frame to the terminal device. In other examples, when a communication device acting as a slave access device receives an authentication request frame from a terminal device, it may determine whether it has received the first permission indication frame from the master access device. If so, the communication device has permission to send an authentication response frame to the terminal device.
[0124] Optionally, the first communication device may pre-set a timer, the starting point of which is the moment when the first permission indication frame is received from the second communication device. If the first communication device receives an authentication request frame from the terminal device within the timing duration of the timer, the first communication device sends an authentication response frame to the terminal device to successfully authenticate the link between the terminal device and the first communication device. If an authentication request frame is received from the terminal device after the timing duration of the timer of the first communication device has expired, the first communication device sends a third request indication frame to the second communication device to request the second communication device to determine whether the first communication device has the permission to send an authentication response frame to the terminal device.
[0125] Step 311: The terminal device sends an association request frame.
[0126] After the terminal device initiates the authentication process by sending an authentication request frame, it enters the association process. The association process allows the terminal device to successfully connect to the communication device for data exchange.
[0127] The header of the association request frame broadcast by the terminal device carries the DA, SA, and target BSSID. When networking with the same BSSID, each communication device can receive the association request frame from the terminal device. For instructions on how each communication device receives the association request frame from the terminal device, refer to the instructions for how each communication device receives the probe request frame from the terminal device in step 301, and the details are not repeated here.
[0128] Step 312: The first communication device sends a fifth request indication frame to the second communication device.
[0129] Step 313: The third communication device sends a sixth request indication frame to the second communication device.
[0130] In this embodiment, the first communication device can obtain a first RSSI based on the association request frame from the terminal device, the second communication device can obtain a second RSSI based on the association request frame from the terminal device, and the third communication device can obtain a third RSSI based on the association request frame from the terminal device. For instructions on how each communication device obtains the RSSI based on the association request frame, please refer to steps 302 and 303, and the details are not repeated here.
[0131] In this embodiment, when the first, second, and third communications devices each successfully receive an association request frame from a terminal device, none of the first, second, and third communications devices will first return an association response frame to the terminal device. Instead, the first communications device, acting as a slave access device, sends a fifth request indication frame to the second communications device, acting as a master access device. The third communications device, acting as a slave access device, sends a sixth request indication frame to the second communications device, acting as a master access device. The fifth request indication frame requests the second communications device to indicate whether the first communications device has permission to send an access message to the terminal device. Similarly, the sixth request indication frame requests the second communications device to indicate whether the third communications device has permission to send an access message to the terminal device. If the terminal device has already sent an association request frame, the access message includes an association response frame. It will be understood that, in this embodiment, when a slave access device receives an association request frame from a terminal device, it does not send an association response frame to the terminal device, but instead sends a request indication frame to the master access device. For a description of the frame structures of the fifth and sixth request indication frames, please refer to FIG. 4 ; detailed description is omitted here.
[0132] Step 314: The second communication device sends a third permission indication frame to the first communication device.
[0133] In this embodiment, after the second communication device, serving as the primary access device, receives the fifth request indication frame from the first communication device and the sixth request indication frame from the third communication device, it determines which of the first communication device, the second communication device, and the third communication device has permission to send an association response frame to the terminal device. In this embodiment, the second communication device determines that the first communication device has permission to send an association response frame to the terminal device as an example. For the determination process, please refer to the process in which the second communication device determines that the first communication device has permission to send a probe response frame to the terminal device, as shown in step 304. Detailed description is omitted.
[0134] Step 315: The first communication device sends an association response frame to the terminal device.
[0135] In this embodiment, when the first communication device receives a third permission indication frame from the second communication device, the first communication device determines, based on the association request frame, that it has permission to send an association response frame to the terminal device. To this end, the first communication device sends an association response frame to the terminal device based on the third permission indication frame. The association response frame shown in this embodiment carries the target BSSID, enabling the terminal device to access the first communication device and exchange data with the first communication device. In this embodiment, because the third communication device does not receive the permission indication frame from the second communication device, even if the third communication device receives an association request frame from the terminal device, it will not send an association response frame to the terminal device, thereby preventing the terminal device from accessing the third communication device. Similarly, because the second communication device, as the primary access device, determines that the second RSSI is not the maximum RSSI between each communication device and the terminal device in the wireless network, even if the second communication device receives an association request frame from the terminal device, it will not send an association response frame to the terminal device, thereby preventing the terminal device from accessing the second communication device.
[0136] In existing solutions, when networking with the same BSSID, a terminal device sends an association request frame to multiple access devices with the same BSSID. Then, multiple access devices will all send association response frames to the terminal device. Then, the terminal device will receive an association response frame with a weak RSSI from an access device that is relatively far away, thereby triggering abnormal behavior of the terminal device. For example, if the RSSI carried by the association response frame received by the terminal device is weak, the terminal device will believe that the signal strength of the network that has currently passed link authentication is poor. Then, the terminal device will send a disassociation frame to trigger the disassociation between the terminal device and the access device, causing the terminal device to fail to execute the association, resulting in the terminal device being unable to successfully access the access device.
[0137] In this embodiment, only the first communication device in the wireless network has permission to send an association response frame to the terminal device. Therefore, among multiple communication devices with the same BSSID in the wireless network, the terminal device associates only with the first communication device. Furthermore, the first communication device is the communication device with the highest RSSI relative to the terminal device in the wireless network, ensuring that the terminal device can successfully access the communication device with the best communication quality. This avoids the disadvantage of the terminal device failing to associate with a communication device with an RSSI that is too low.
[0138] It should be clarified that when a communication device acting as a slave access device receives an association request frame from a terminal device, it will send a permission indication frame to the communication device acting as the master access device, requesting the master access device to determine whether the communication device has permission to send an association response frame to the terminal device. In other examples, when a communication device acting as a slave access device receives an authentication request frame from a terminal device, it may determine whether it has received at least one of the first permission indication frame or the second permission indication frame from the master access device. If so, the communication device has permission to send an association response frame to the terminal device.
[0139] Optionally, the first communication device may pre-set a timer, the starting point of which is the moment when the second permission indication frame is received from the second communication device. If the first communication device receives an association request frame from the terminal device within the timing duration of the timer, the first communication device sends an association response frame to the terminal device to enable the terminal device to successfully access the first communication device. If an association request frame is received from the terminal device after the timing duration of the timer of the first communication device has expired, the first communication device sends a fifth request indication frame to the second communication device to request the second communication device to determine whether the first communication device has the permission to send an association response frame to the terminal device.
[0140] This embodiment takes the example that the communication device having the authority to send a probe response frame to the terminal device, the communication device having the authority to send an authentication response frame to the terminal device, and the communication device having the authority to send an association response frame to the terminal device are all the first communication device. In other examples, at least two different communication devices may respectively have the above three authorities, without specific limitation.
[0141] In the case of networking with the same BSSID, only one communication device in the wireless network has the authority to communicate with the terminal device in the detection process, link authentication process and association process respectively. As a result, the terminal device will only detect one communication device in the wireless network, will only successfully link authenticate to one communication device, and will only successfully associate to one communication device, thereby enabling the terminal device to successfully access one communication device. Moreover, the communication device accessed by the terminal device has the strongest signal strength with the terminal device in the wireless network, thereby ensuring the communication quality between the terminal device and the communication device it accesses, and effectively avoiding the terminal device accessing a communication device with weak signal strength.
[0142] The detection process in the wireless network access method shown in Figure 3 is active detection, that is, the terminal device actively sends a detection request frame to each communication device to implement detection. In the embodiment shown in Figure 7, the detection process is passive detection. Figure 7 is a flow chart of the steps of the second embodiment of the wireless network access method provided by this application. For the description of the wireless network applied by the method shown in this embodiment, please refer to Figure 1, and the details will not be repeated. In this embodiment, the wireless network is networked with the same BSSID as an example, that is, the BSSIDs of the communication devices included in the wireless network shown in this embodiment are the same and are all target BSSIDs.
[0143] Step 701: A first communication device sends a first beacon frame to a terminal device.
[0144] Step 702: The second communication device sends a second beacon frame to the terminal device.
[0145] Step 703: The third communication device sends a third beacon frame to the terminal device.
[0146] For the description of the first communication device, the second communication device, and the third communication device in the wireless network, please refer to the corresponding description of Figure 3, and the details are not repeated here. To implement passive scanning, the terminal device listens for beacon frames sent by each communication device in the wireless network. Each communication device providing wireless network services periodically sends beacon frames to the terminal device to enable the terminal device to access the wireless network through passive scanning.
[0147] Taking the first communication device as an example, the first communication device periodically sends a first beacon frame to the terminal device, and the first beacon frame carries the target BSSID of the first communication device. Specifically, the first communication device broadcasts a first beacon frame every 100 milliseconds (ms). The terminal device receives the first beacon frame by listening on each channel supported by the terminal device. The first beacon frame shown in this embodiment is used to instruct the terminal device to detect the first communication device. For the description of the terminal device receiving the second beacon frame and the third beacon frame, please refer to the description of the terminal device receiving the first beacon frame, and the details are not repeated here.
[0148] The frame header of the beacon frame shown in this embodiment carries the target BSSID. It can be understood that in the case of the same BSSID networking, the BSSID of each beacon frame is the same and is the target BSSID.
[0149] Step 704: The terminal device sends an authentication request frame.
[0150] In this embodiment, when the terminal device receives the first beacon frame, the second beacon frame, and the third beacon frame, the terminal device sends an authentication request frame to enter the link authentication process. For example, the first communication device sends the first beacon frame to the terminal device, and the terminal device obtains a first RSSI based on the received first beacon frame and sends the first RSSI to the first communication device via an authentication request frame. For the process of the terminal device sending the second RSSI and the third RSSI, please refer to the process of the terminal device sending the first RSSI. For a description of the first RSSI, the second RSSI, and the third RSSI, please refer to step 304 corresponding to Figure 3, and the details are not repeated here.
[0151] The authentication request frame carries the target BSSID. Since the wireless network shown in this embodiment is a network with the same BSSID, the first communication device, the second communication device, and the third communication device can all receive the authentication request frame from the terminal device. For a detailed description of the process, please refer to step 306 corresponding to Figure 3, and the details are not repeated here.
[0152] Step 705: The first communication device sends a third request indication frame to the second communication device.
[0153] Step 706: The third communication device sends a fourth request indication frame to the second communication device.
[0154] Step 707: The second communication device sends a second permission indication frame to the first communication device.
[0155] Step 708: The first communication device sends an authentication response frame to the terminal device.
[0156] Step 709: The terminal device sends an association request frame.
[0157] Step 710: The first communication device sends a fifth request indication frame to the second communication device.
[0158] Step 711: The third communication device sends a sixth request indication frame to the second communication device.
[0159] Step 712: The second communication device sends a third permission indication frame to the first communication device.
[0160] Step 713: The first communication device sends an authentication response frame to the terminal device.
[0161] For the description of the execution process of steps 705 to 713 shown in this embodiment, please refer to the description of the execution process of steps 307 to 315 corresponding to FIG. 3 , and detailed description is omitted.
[0162] In the case of networking with the same BSSID, in the link authentication process and the association process respectively, only one communication device in the wireless network has the authority to communicate with the terminal device, so that the terminal device will only successfully link authenticate to one communication device in the wireless network, and will only successfully associate to one communication device, thereby enabling the terminal device to successfully access one communication device, and the communication device accessed by the terminal device has the strongest signal strength with the terminal device in the wireless network, ensuring the communication quality between the terminal device and the communication device it accesses, and effectively avoiding the terminal device accessing a communication device with weak signal strength.
[0163] In the embodiments shown in Figures 3 and 7 , the first and third communication devices are slave access devices, respectively, and the second communication device is a master access device. In the embodiment shown in Figure 8 , the first and third communication devices may be the first and third access devices shown in Figure 1 , respectively, and the second communication device may be the AC shown in Figure 1 . Figure 8 is a flowchart of the steps of a third embodiment of the wireless network access method provided in this application.
[0164] Step 801: The terminal device sends a probe request frame.
[0165] To detect each access device in the wireless network, the terminal device broadcasts a probe request frame to each surrounding access device. In the case of a same-BSSID network, the BSSID of each access device is the same. For example, in the example shown in Figure 1, both the first access device 101 and the third access device 103 can receive the probe request frame from the terminal device. For a detailed description of the probe request frame, please refer to step 301 in Figure 3, and the details are not repeated here.
[0166] Step 802: The first access device sends a first request indication frame to the AC.
[0167] Step 803: The third access device sends a second request indication frame to the AC.
[0168] Because the method shown in this embodiment is applied to a same-BSSID network, the BSSID of the first access device and the BSSID of the third access device are the same and are both target BSSIDs. The first access device can obtain a first RSSI based on a probe request frame from the terminal device, and the third access device can obtain a third RSSI based on a probe request frame from the terminal device. For specific processes, please refer to the description of step 302 corresponding to FIG. 3 , and detailed description is omitted here.
[0169] In this embodiment, when the first access device and the third access device successfully receive the probe request frame from the terminal device, the first access device and the third access device will not return the probe response frame to the terminal device first, but will first send a first request indication frame and a second request indication frame to the AC respectively. The first request indication frame is used to request the AC to indicate whether the first access device has the authority to send a probe response frame to the terminal device. Similarly, the second request indication frame is used to request the AC to indicate whether the third access device has the authority to send a probe response frame to the terminal device. It can be understood that when each access device shown in this embodiment receives a probe request frame from a terminal device, it does not send a probe response frame to the terminal device, but sends a request indication frame to the AC.
[0170] The frame structure of the first request indication frame is shown in FIG9 , wherein FIG9 is an example diagram of the second frame structure of the request indication frame provided in the present application. The first request indication frame 900 is an Ethernet frame. The first request indication frame 900 includes a first message type field, an identifier of the first access device, a first strength indication message, and an identifier of the terminal device. Specifically, the first request indication frame 900 includes a destination address (Destination Address), a source address (Source Address), a type (Type), a message identifier (Message ID), an ONU identifier (ONU ID), and a STA ID. The Type field is a first message type field, the ONU ID field is used to carry the identifier of the first access device, the STA ID field is used to carry the address of the terminal device, and any field of the first request frame 900 can also be used to carry the first strength indication message. For the description of the first message type field, the identifier of the first access device, the address of the terminal device, and the first strength indication message, please refer to the corresponding description of FIG4 , and no further details will be given.
[0171] In this embodiment, the AC and the first access device can be connected via a Category 5 or Category 6 cable, enabling the first access device to successfully transmit the first request indication frame to the AC. The Category 5 or Category 6 cable serves as the cable between the AC and the first access device and complies with the 802.3 Ethernet protocol. For details on the structure of the second request indication frame and how the third access device transmits the second request indication frame to the AC, refer to the description of the first request indication frame; details are omitted here.
[0172] Step 804: The AC sends a first permission indication frame to the first access device.
[0173] The first permission indication frame shown in this embodiment is an Ethernet frame. The frame structure of the Ethernet frame is described in FIG9 . The AC obtains the first permission indication frame in step 304 of FIG3 . The AC obtains the first permission indication frame in step 304 of FIG3 .
[0174] Step 805: The first access device sends a probe response frame to the terminal device.
[0175] Step 806: The terminal device sends an authentication request frame.
[0176] For the description of the execution process of step 805 to step 806 shown in this embodiment, please refer to the corresponding steps 305 to step 306 in Figure 3, and the details are not repeated here.
[0177] Step 807: The first access device sends a third request indication frame to the AC.
[0178] Step 808: The third access device sends a fourth request indication frame to the AC.
[0179] The third request indication frame and the fourth request indication frame shown in this embodiment are both Ethernet frames. For a description of the specific frame structure, please refer to FIG9 , which will not be described in detail here. For a description of the first access device sending the third request indication frame to the AC and the third access device sending the fourth request indication frame to the AC shown in this embodiment, please refer to steps 807 to 808 corresponding to FIG3 , and the specific execution process will not be described here in detail here.
[0180] Step 809: The AC sends a second permission indication frame to the first access device.
[0181] Step 810: The first access device sends an authentication response frame to the terminal device.
[0182] Step 811: The terminal device sends an association request frame.
[0183] Step 812: The first access device sends a fifth request indication frame to the AC.
[0184] Step 813: The third access device sends a sixth request indication frame to the AC.
[0185] The fifth request indication frame and the sixth request indication frame shown in this embodiment are both Ethernet frames. For a description of the specific frame structure, please refer to FIG9 , which will not be described in detail. For a description of the first access device sending the fifth request indication frame to the AC and the third access device sending the sixth request indication frame to the AC shown in this embodiment, please refer to steps 812 to 813 corresponding to FIG3 , and the specific execution process will not be described in detail.
[0186] Step 814: The AC sends a third permission indication frame to the first access device.
[0187] Step 815: The first access device sends an association response frame to the terminal device.
[0188] For the description of the specific execution process of steps 814 to 815 shown in this embodiment, please refer to the corresponding steps 314 to 315 in Figure 3, and the details are not repeated here.
[0189] In the case of networking with the same BSSID, in the detection process, link authentication process and association process respectively, only one access device in the wireless network has the authority to communicate with the terminal device, so that the terminal device will only detect one access device in the wireless network, will only successfully link authenticate to one access device, and will only successfully associate to one access device, thereby enabling the terminal device to successfully access one access device, and the access device to which the terminal device accesses has the strongest signal strength with the terminal device in the wireless network, ensuring the communication quality between the terminal device and the access device to which it accesses, and effectively avoiding the terminal device accessing an access device with weak signal strength.
[0190] The embodiment shown in FIG8 may also be a passive detection in the detection process. The specific process of the passive detection is shown in FIG7 and will not be described in detail.
[0191] In the case of a wireless network including multiple access devices, an existing solution provides a method for a terminal device to switch access from a source access device to a target access device. For example, in the example shown in FIG1 , the source access device to which terminal device 112 has accessed is second access device 103, and the target access device to which terminal device 112 switches access due to roaming is first access device 101. The execution process of the existing solution is shown in FIG10 , which is a flowchart of the access method provided by the existing solution.
[0192] Step 1001: The source access device sends a wireless measurement request frame to the terminal device.
[0193] The wireless network shown in this example includes multiple access devices, and the wireless network can be networked with the same BSSID or with different BSSIDs. It is understood that the wireless network shown in this example can support one or more Basic Service Sets (BSSs), each of which includes one or more access devices, and different BSSs have different BSSIDs. When a terminal device moves in an environment, roaming switching behavior occurs, and it is desired to switch from a source access device with low signal strength to an access device with high signal strength. After the source access device receives a data frame from the terminal device, the source access device can obtain the RSSI between the source access device and the terminal device based on the data frame. When the source access device determines that the RSSI is not greater than the roaming threshold, it indicates that the terminal device has moved to a location relatively far away from the source access device. To ensure the communication quality of the terminal device, the terminal device needs to perform a roaming switching process. To this end, the source access device sends a Radio Measurement Request frame to the terminal device. The Radio Measurement Request frame is used to request the terminal device to measure the received channel power indicator (RCPI) of each channel it supports.
[0194] Step 1002: The terminal device sends a measurement response frame to the source access device.
[0195] The terminal device measures the RCPI of each BSS by broadcasting or unicasting a request frame and fills the RCPI into a measurement response frame (Radio Measurement Response Frame). Specifically, the measurement response frame includes the BSSID of each access device included in the wireless network and the RCPI corresponding to each BSSID.
[0196] Step 1003: The source access device sends a basic service set switching request frame to the terminal device.
[0197] After the source access device receives the measurement response frame from the terminal device, the source access device converts each RCPI in the measurement response frame into a corresponding RSSI. It can be understood that the source access device can obtain the RSSI corresponding to the BSSID of each access device in the wireless network. The source access device selects the target access device based on the RSSI. For example, the wireless network includes a first BSS and a second BSS, the first BSS has a first BSSID, and the second BSS has a second BSSID. The source access device obtains the first RSSI corresponding to the first BSS based on the measurement response frame, and obtains the second RSSI corresponding to the second BSS. When the source access device determines that the second RSSI is greater than the first RSSI, the source access device determines that the terminal device needs to access the second BSS in order to ensure the communication quality of the BSS to which the terminal device is connected. To this end, the source access device determines the second BSSID as the target BSSID, fills the target BSSID into the basic service set switching request frame (BSS Transition Request Frame), and sends the basic service set switching request frame to the terminal device.
[0198] This embodiment does not limit the number of different BSSs included in the wireless network. If the wireless network includes two or more BSSs with different BSSIDs, the source access device can preset a switching threshold. If the source access device determines that the RSSI corresponding to the BSS is greater than the switching threshold, the BSSID of the BSS is determined as the target BSSID.
[0199] Step 1004: The terminal device sends a basic service set switching response frame to the source access device.
[0200] The terminal device obtains the target access device according to the basic service set switching request frame. Specifically, the target access device is the access device in the second BSS. When the terminal device successfully obtains the target access device, the terminal device sends a basic service set switching response frame (BSS Transition Response Frame) to the source access device, and the status code (Status Code) carried by the basic service set switching response frame is 0, so as to indicate to the source access device that the terminal device will initiate a re-association process to the target access device, so that the terminal device can access the target access device based on the re-association process.
[0201] Step 1005: The terminal device sends a reassociation request frame to the target access device.
[0202] In order to access the target access device, the terminal device sends a reassociation request frame (Reassociation Request Frame) to the target access device to request access to the target access device.
[0203] However, the technical defect of the existing method shown in Figure 10 is that when the position of the terminal device moves, so that the terminal device in the wireless network switches from the source access device to the target access device, the terminal device receives a basic service set switching request frame from the source access device, and the basic service set switching request frame can trigger the terminal device to make an autonomous decision on the target access device. Specifically, the terminal device detects the surrounding access devices based on the basic service set switching request frame, and the terminal device makes an autonomous decision and selects the target access device to access based on the detection response frame returned by the surrounding access devices. However, the target access device selected by the source access device for the terminal device is often inconsistent with the target access device selected by the terminal device through autonomous decision-making, resulting in the terminal device ultimately accessing a target access device that is not the access device with the strongest signal quality. When the terminal device accesses the target access device that it has autonomously decided, the communication quality of the terminal device will be reduced.
[0204] The wireless network access method provided in the present application can ensure the signal quality of the target access device to which the roaming terminal device is connected, and avoid the situation where the signal quality of the target access device to which the terminal device is connected is weak, thereby causing the communication quality of the terminal device to deteriorate after roaming switching. For the specific execution process, please refer to Figure 11, wherein Figure 11 is a flowchart of the steps of the fourth embodiment of the wireless network access method provided in the present application. The method shown in this embodiment can enable the terminal device to switch access from the source access device to the target access device, and the source access device to which the terminal device has been connected is the second communication device, and the target access device to which the terminal device switches access due to the roaming switching behavior is the first communication device for example.
[0205] Step 1101: The second communication device sends a wireless measurement request frame to the terminal device.
[0206] Step 1102: The terminal device sends a measurement response frame to the second communication device.
[0207] Step 1103: The second communication device sends a basic service set switching request frame to the terminal device.
[0208] For the description of the execution process of steps 1101 to 1103 shown in this embodiment, please refer to steps 1001 to 1003 corresponding to Figure 10, and the specific execution process is not repeated here.
[0209] Step 1104: The second communication device sends a fourth authority indication frame to the first communication device.
[0210] Step 1105: The second communication device sends a fourth authority indication frame to the third communication device.
[0211] In this embodiment, the second communication device sends a fourth permission indication frame to any communication device other than the second communication device (such as the first communication device and the third communication device) in the wireless network. The frame structure of the fourth permission indication frame is shown in Figure 12, wherein Figure 12 is another frame structure example diagram of the permission indication frame provided by this application. The fourth permission indication frame 1200 includes a third message type field, the address of the terminal device, and a list of candidate access devices. Among them, the third message type field is used to indicate that the fourth permission indication frame is used to indicate that if a probe request frame sent by a terminal device in an autonomous decision-making process is received, a probe response frame will not be sent to the terminal device according to the probe request frame, but rather it is determined based on the fourth permission indication frame 1200 whether it is the target access device selected by the second communication device. For example, when the first communication device receives the fourth permission indication frame, the first communication device determines, based on the indication of the third message type field, that it will not send a probe response frame to the terminal device according to the probe request frame from the terminal device, but instead determines whether to send a probe response frame to the terminal device based on the list of candidate access devices carried by the fourth permission indication frame 1200. That is, the first communications device determines, based on the candidate access device list, whether the first communications device is the target access device selected by the second communications device. The fourth permission indication frame 1200 shown in this embodiment may further include a frame type indication field for indicating the frame type, a frame length indication field for indicating the frame length, etc., without specific limitation.
[0212] Specifically, the candidate access device list includes one or more target BSSIDs selected by the second communication device. For instructions on the selection of one or more target BSSIDs by the second communication device, please refer to the corresponding instructions in Figure 10, and the details will not be repeated here. Continuing with the first communication device as an example, the first communication device determines whether the BSSID of the first communication device is the same as the target BSSID included in the candidate access device list of the fourth authority indication frame. If so, the first communication device determines that it is the target access device selected by the second communication device. This embodiment takes the example where the BSSID of the first communication device is the same as the target BSSID included in the candidate access device list.
[0213] This embodiment takes the example of the second communication device sending the fourth permission indication frame to the first communication device and the third communication device. In other examples, the second communication device may also send the RSSI corresponding to each BSS to the AC, and the AC obtains the fourth permission indication frame based on the RSSI, and sends the fourth permission indication frame to the first communication device and the third communication device.
[0214] Step 1106: The first communication device sends a probe response frame to the terminal device.
[0215] In this embodiment, if the first communication device determines that it is the target access device selected by the second communication device, the first communication device has permission to send an access message to the terminal device. The access message includes a probe response frame. In this embodiment, if the third communication device determines that its BSSID is different from the target BSSID included in the candidate access device list of the fourth permission indication frame, the third communication device determines that it does not have permission to send a probe response frame to the terminal device. It is understood that even if the terminal device selects the third communication device based on an autonomous decision, because the third communication device is not the target access device selected by the second communication device, the third communication device will not send a probe response frame to the terminal device, thereby preventing the terminal device from detecting the third communication device based on the autonomous decision and, consequently, preventing the terminal device from accessing the third communication device. However, if the first communication device is the target access device selected by the second communication device, the first communication device can send a probe response frame to the terminal device, allowing the terminal device to access only the target access device selected by the second communication device based on signal strength, thereby ensuring the signal strength of the communication device to which the terminal device is connected and the communication quality between the terminal device and the detected first communication device.
[0216] The probe response frame shown in this embodiment carries the target BSSID, so that the terminal device determines the BSSID of the communication device to be accessed as the target BSSID.
[0217] Step 1107: The terminal device sends an authentication request frame to the first communication device.
[0218] Since the probe response frame received by the terminal device carries the target BSSID, the terminal device sends an authentication request frame to the first communication device according to the target BSSID.
[0219] Step 1108: The first communication device sends an authentication response frame to the terminal device.
[0220] Step 1109: The terminal device sends an association request frame to the first communication device.
[0221] Step 1110: The first communication device sends an association request frame to the terminal device.
[0222] For the description of the process of the terminal device accessing the first communication device shown in steps 1107 to 1110 in this embodiment, please refer to the corresponding description in Figure 3, and the details are not repeated here.
[0223] Step 1111: The terminal device sends a switching response association frame to the second communication device.
[0224] In this embodiment, when the terminal device has successfully accessed the first communication device, the terminal device sends the handover response association frame to the second communication device, where the handover response association frame is used to indicate that the terminal device has successfully accessed the first communication device. The handover response association frame shown in this embodiment includes a fourth message type field, an address of the terminal device, and a target BSSID, where the fourth message type field is used to indicate that the terminal device has successfully accessed the first communication device having the target BSSID.
[0225] Step 1112: The second communication device sends a release indication frame to the third communication device.
[0226] The release indication frame shown in this embodiment includes a fifth message type field and the terminal device's address. The fifth message type field indicates that the terminal device has successfully connected and that the third communications device has ended its non-response status. It will be appreciated that this release indication frame ensures subsequent normal communication between the third communications device and the terminal device.
[0227] By adopting the method shown in this embodiment, when the wireless network includes multiple BSSs, each access device determines whether it has the authority to send an access message to the terminal device based on the candidate device list, so that the access device will not send an access message to the terminal device due to the terminal device's autonomous decision. In the case of multiple BSSs, the signal quality of the target access device accessed by the roaming terminal device can be guaranteed, and weak signal quality of the target access device accessed by the terminal device can be avoided, which may cause the communication quality of the terminal device after roaming to decrease.
[0228] The embodiment of the present application provides a communication device. The structure of the communication device can be seen in FIG13 , which is a diagram illustrating a first embodiment of the communication device provided by the present application.
[0229] The communication device 1300 shown in this embodiment includes a processor 1301, a memory 1302 and a transceiver 1303. The processor 1301 is connected to the memory 1302 and the transceiver 1303 respectively. The processor 1301 may include at least one of an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor or a neural-network processing unit (NPU). The transceiver 1303 receives electromagnetic waves, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 1301. The transceiver 1303 can also receive signals to be transmitted from the processor 1301, frequency modulate them, amplify them, and convert them into electromagnetic waves for radiation. The memory 1302 stores program instructions.
[0230] If the communication device 1300 shown in this embodiment is a first communication device serving as a slave access device, the transceiver 1303 is configured to execute the steps related to transmission and reception performed by the first communication device in any of the embodiments shown in Figures 3, 7, 8, and 11. When the program instructions stored in the memory 1302 are executed by the processor 1301, the processor 1301 executes the steps related to processing performed by the first communication device in any of the embodiments shown in Figures 3, 7, 8, and 11.
[0231] If the communication device 1300 shown in this embodiment is a third communication device serving as a slave access device, the transceiver 1303 is configured to execute the steps related to transmission and reception performed by the third communication device in any of the embodiments shown in Figures 3, 7, 8, and 11. When the program instructions stored in the memory 1302 are executed by the processor 1301, the processor 1301 executes the steps related to processing performed by the third communication device in any of the embodiments shown in Figures 3, 7, 8, and 11.
[0232] If the communication device 1300 shown in this embodiment is a second communication device serving as a primary access device, the transceiver 1303 is configured to execute the steps related to transmission and reception performed by the second communication device in any of the embodiments shown in Figures 3, 7, 8, and 11. When the program instructions stored in the memory 1302 are executed by the processor 1301, the processor 1301 executes the steps related to processing performed by the second communication device in any of the embodiments shown in Figures 3, 7, 8, and 11.
[0233] This embodiment further provides a communication device as shown in Figure 14, which illustrates the structure of the communication device from the perspective of functional modules. Figure 14 is an example diagram of the structure of the second embodiment of the communication device provided by this application.
[0234] The communication device 1400 shown in this embodiment includes a transceiver module 1401 and a processing module 1402 connected to the transceiver module 1401. If the communication device 1400 shown in this embodiment serves as a first communication device of a slave access device, the transceiver module 1401 is configured to execute the steps related to transceiver performance by the first communication device in any of the embodiments shown in Figures 3, 7, 8, and 11. The processing module 1402 is configured to execute the steps related to processing performed by the first communication device in any of the embodiments shown in Figures 3, 7, 8, and 11.
[0235] If the communication device 1400 shown in this embodiment is a third communication device that is a slave access device, the transceiver module 1401 is configured to execute the steps related to transceiver execution by the third communication device in any of the embodiments shown in Figures 3, 7, 8, and 11. The processing module 1402 is configured to execute the steps related to processing executed by the third communication device in any of the embodiments shown in Figures 3, 7, 8, and 11.
[0236] If the communication device 1400 shown in this embodiment is a second communication device serving as a primary access device, the transceiver module 1401 is configured to execute the steps related to transceiver performance by the second communication device in any of the embodiments shown in FIG3 , FIG7 , FIG8 , and FIG11 . The processing module 1402 is configured to execute the steps related to processing performance by the second communication device in any of the embodiments shown in FIG3 , FIG7 , FIG8 , and FIG11 .
[0237] An embodiment of the present application also provides a wireless network. The description of the wireless network structure is shown in Figure 1. The process of the wireless network access method executed by the wireless network is shown in any of the embodiments in Figures 3, 7, 8 and 11 above.
[0238] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the method shown in any one of the method embodiments in Figures 3, 7, 8 and 11.
[0239] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for accessing a wireless network, characterized in that: The method comprises: The first communication device receives a permission indication frame from the second communication device, where the permission indication frame is used to indicate that the first communication device has permission to send an access message to a terminal device, where the access message is used for the terminal device to access the first communication device; The first communication device sends the access message to the terminal device according to the permission indication frame.
2. The method according to claim 1, characterized in that: Before the first communication device receives the permission indication frame from the second communication device, the method further includes: The first communication device sends a request indication frame to the second communication device, and the request indication frame carries a first strength indication message, an identifier of the first communication device, and an address of the terminal device. The first strength indication message is used to indicate the signal strength between the first communication device and the terminal device. The first strength indication message is used by the second communication device to determine whether the first communication device has the authority to send the access message to the terminal device.
3. The method according to claim 2, characterized in that The access message includes a probe response frame, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: The first communication device sends the probe response frame to the terminal device according to the permission indication frame, the probe response frame carries the basic service set identifier BSSID of the first communication device, and the probe response frame is used for the terminal device to successfully detect the first communication device.
4. The method according to claim 2 or 3, characterized in that: Before the first communication device sends a request indication frame to the second communication device, the method further includes: The first communication device receives a detection request frame from the terminal device, where the detection request frame is used by the terminal device to request detection of the first communication device; The first communication device obtains the request indication frame according to the probe request frame.
5. The method according to any one of claims 2 to 4, characterized in that: The access message includes an authentication response frame, and the first communication device sends the access message to the terminal device according to the authority indication frame, including: The first communication device sends the authentication response frame to the terminal device according to the authority indication frame, the authentication response frame carries the BSSID of the first communication device, and the authentication response frame is used to indicate that the terminal device has passed the link authentication.
6. The method according to claim 2 or 5, characterized in that: Before the first communication device sends a request indication frame to the second communication device, the method further includes: The first communication device receives an authentication request frame from the terminal device, where the authentication request frame is used to request link authentication for the terminal device; The first communication device obtains the request indication frame according to the authentication request frame.
7. The method according to any one of claims 2 to 6, characterized in that: The access message includes an association response frame, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: The first communication device sends the association response frame to the terminal device according to the permission indication frame, the association response frame carries the BSSID of the first communication device, and the association response frame is used to indicate that the terminal device has successfully associated with the first communication device.
8. The method according to claim 2 or 7, characterized in that: Before the first communication device sends a request indication frame to the second communication device, the method further includes: The first communication device receives an association request frame from the terminal device, where the association request frame is used by the terminal device to request association with the first communication device; The first communication device obtains the request indication frame according to the association request frame.
9. The method according to any one of claims 1 to 8, characterized in that: The permission indication frame includes a correspondence between the address of the terminal device and the target BSSID, and the first communication device sends the access message to the terminal device according to the permission indication frame, including: If the first communication device determines that the BSSID of the first communication device is the same as the target BSSID, the first communication device sends the access message to the terminal device according to the address of the terminal device.
10. A method for accessing a wireless network, characterized in that: The method comprises: The second communication device obtains a first strength indication message, where the first strength indication message is used to indicate the signal strength between the first communication device and the terminal device; The second communication device sends a permission indication frame to the first communication device based on the first strength indication message, wherein the permission indication frame is used to indicate that the first communication device has the permission to send an access message to the terminal device, and the access message is used for the terminal device to access the first communication device.
11. The method according to claim 10, characterized in that The second communication device sending a permission indication frame to the first communication device according to the first strength indication message includes: The second communication device obtains a third strength indication message, where the third strength indication message is used to indicate the signal strength between the third communication device and the terminal device; The second communications device determines that the signal strength indicated by the first strength indication message is greater than the signal strength indicated by the third strength indication message.
12. The method according to claim 10 or 11, characterized in that: The second communication device obtaining the first strength indication message includes: The second communication device receives a request indication frame from the first communication device, where the request indication frame carries the first strength indication message, an identifier of the first communication device, and an address of the terminal device.
13. The method according to claim 10 or 11, characterized in that: The second communication device obtaining the first strength indication message includes: The second communication device receives a measurement response frame from the terminal device, where the measurement response frame is used to obtain the first strength indication message.
14. The method according to claim 13, characterized in that The authority indication frame includes the correspondence between the address of the terminal device and the target basic service set identifier BSSID, and the target BSSID is used to indicate that the first communication device having the target BSSID has the authority to send the access message to the terminal device.
15. A method for accessing a wireless network, characterized in that: The method comprises: The second communication device obtains a first strength indication message and a second strength indication message, wherein the first strength indication message is used to indicate the signal strength between the first communication device and the terminal device, and the second strength indication message is used to indicate the signal strength between the second communication device and the terminal device; The second communication device determines that the signal strength indicated by the second strength indication message is greater than the signal strength indicated by the first strength indication message, and sends an access message to the terminal device, where the access message is used for the terminal device to access the second communication device.
16. The method according to claim 15, characterized in that The second communication device obtaining the first strength indication message includes: The second communication device receives a request indication frame from the first communication device, where the request indication frame carries the first strength indication message, an identifier of the first communication device, and an address of the terminal device.
17. The method according to claim 15, characterized in that The second communication device obtaining the first strength indication message and the second strength indication message includes: The second communication device receives a measurement response frame from the terminal device, where the measurement response frame is used to obtain the first strength indication message and the second strength indication message.
18. A method for accessing a wireless network, characterized in that: The method comprises: The second communication device obtains a first strength indication message, where the first strength indication message is used to indicate the signal strength between the first communication device and the terminal device; The second communication device sends a permission indication frame to the first communication device according to the first strength indication message, wherein the permission indication frame is used to indicate that the first communication device has permission to send an access message to the terminal device, and the access message is used for the terminal device to access the first communication device; The first communication device sends the access message to the terminal device.
19. A communication device, characterized in that: The communication device includes a processor and a transceiver connected to the processor; The transceiver is used to receive a permission indication frame from another communication device; The processor is used to determine, according to the permission indication frame, that the communication device has the permission to send an access message to the terminal device, where the access message is used for the terminal device to access the communication device; The transceiver is further configured to send the access message to the terminal device.
20. A communication device, characterized in that: The communication device includes a processor and a transceiver connected to the processor; The processor is used to obtain a first strength indication message, where the first strength indication message is used to indicate the signal strength between another communication device and the terminal device; The transceiver is used to send a permission indication frame to the other communication device according to the first strength indication message, wherein the permission indication frame is used to indicate that the other communication device has the permission to send an access message to the terminal device, and the access message is used for the terminal device to access the other communication device.
21. A communication device, characterized in that: The communication device includes a processor and a transceiver connected to the processor; The processor is used to: Obtaining a first strength indication message and a second strength indication message, wherein the first strength indication message is used to indicate the signal strength between another communication device and a terminal device, and the second strength indication message is used to indicate the signal strength between the communication device and the terminal device; determining that the signal strength indicated by the second strength indication message is greater than the signal strength indicated by the first strength indication message; The transceiver is used to send an access message to the terminal device, where the access message is used for the terminal device to access the communication device.
22. A wireless network, characterized in that: The wireless network includes a first communication device, a second communication device and a terminal device; The second communication device is used to obtain a first strength indication message, where the first strength indication message is used to indicate the signal strength between the first communication device and the terminal device; The second communication device is used to send a permission indication frame to the first communication device according to the first strength indication message, wherein the permission indication frame is used to indicate that the first communication device has the permission to send an access message to the terminal device, and the access message is used for the terminal device to access the first communication device; The first communication device is used to send the access message to the terminal device.
23. A computer-readable storage medium, characterized in that: The computer storage medium stores a computer program, which includes program instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Wireless local area network access point matching method, central control device and access point
CN106304279A
Wireless network access method and communication system
CN114698057A
Method for searching access point managing linkage in wireless LAN system
KR1020150056990A
Access point selection method and device
WO2014194492A1
