Wireless communication method and device
Patent Information
- Application Number
- CN202280094140.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2024-11-08
AI Technical Summary
A device's MAC address is globally unique and unchanging, making it easy for cyber attackers to track users and expose their private information.
STA can proactively update OTA MAC addresses at any time by generating conflicting MAC addresses that are not indicated by AP, identifying and processing them in the list maintained by AP, and combining this with carrying permanent MAC addresses in the frame body to protect privacy.
Effectively protect the privacy of STA's MAC address, ensure efficient and secure identity verification, and prevent permanent MAC addresses from being tracked.
Smart Images

Figure CN118923098A_ABST
Abstract
Description
Wireless communication method and device Technical Field
[0001] The present invention relates to the field of communications, and more specifically, to a method and device for wireless communications. Background Art
[0002] A station (STA) carries its Media Access Control (MAC) address as its identity in the frames it sends to an access point (AP). However, because a device's MAC address is globally unique and permanent, network attackers can easily track users by tracking their STA's MAC address, exposing a large amount of their private information on the network.
[0003] Summary of the Invention
[0004] The embodiments of the present application provide a method and device for wireless communication, whereby a STA can proactively update an OTA MAC address at any time, thereby better protecting the privacy of the STA's MAC address.
[0005] In a first aspect, a wireless communication method is provided, the method comprising:
[0006] The first STA generates a first OTA MAC address based on the first secret value and the current OTA MAC address; wherein the first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP, the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in the OTA MAC address list maintained by the first AP, and the first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0;
[0007] The first STA sends a first frame to the first AP using the first OTA MAC address, where the first frame is a management frame or a control frame, or the first frame is a data frame.
[0008] In a second aspect, a wireless communication method is provided, the method comprising:
[0009] The first AP receives a first frame sent by the first STA using the first OTA MAC address;
[0010] The first AP retrieves the first OTA MAC address from n OTA MAC addresses of the first STA included in an OTA MAC address list maintained by the first AP; wherein the OTA MAC address list includes the OTA MAC address of at least one STA associated with the first AP, the at least one STA including the first STA, and n is a positive integer;
[0011] In a case where the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded.
[0012] According to a third aspect, a wireless communication method is provided, the method comprising:
[0013] The second AP receives the fourth frame sent by the first AP;
[0014] The TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers.
[0015] Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, and m1 is a positive integer.
[0016] In a fourth aspect, a wireless communication method is provided, the method comprising:
[0017] The second AP receives the sixth frame sent by the first AP;
[0018] The TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the sixth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the sixth frame are both random numbers.
[0019] Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
[0020] In a fifth aspect, a STA is provided for executing the method in the first aspect.
[0021] Specifically, the STA includes a functional module for executing the method in the above-mentioned first aspect.
[0022] In a sixth aspect, an AP is provided for executing the method in the second aspect.
[0023] Specifically, the AP includes a functional module for executing the method in the above second aspect.
[0024] In a seventh aspect, an AP is provided for executing the method in the third aspect.
[0025] Specifically, the AP includes a functional module for executing the method in the third aspect above.
[0026] In an eighth aspect, an AP is provided for executing the method in the fourth aspect.
[0027] Specifically, the AP includes a functional module for executing the method in the fourth aspect above.
[0028] In the ninth aspect, a STA is provided, comprising a processor and a memory; the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the STA executes the method in the above-mentioned first aspect.
[0029] In the tenth aspect, an AP is provided, comprising a processor and a memory; the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the AP executes the method in the above-mentioned second aspect.
[0030] In the eleventh aspect, an AP is provided, comprising a processor and a memory; the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the AP executes the method in the above-mentioned third aspect.
[0031] In the twelfth aspect, an AP is provided, comprising a processor and a memory; the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory, so that the AP executes the method in the above-mentioned fourth aspect.
[0032] In the thirteenth aspect, a device is provided for implementing the method in any one of the first to fourth aspects above.
[0033] Specifically, the apparatus includes: a processor, configured to call and run a computer program from a memory, so that a device equipped with the apparatus executes the method in any one of the first to fourth aspects described above.
[0034] In a fourteenth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method in any one of the first to fourth aspects above.
[0035] In a fifteenth aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method in any one of the first to fourth aspects above.
[0036] In the sixteenth aspect, a computer program is provided, which, when executed on a computer, enables the computer to execute the method in any one of the first to fourth aspects above.
[0037] Through the technical solution of the first aspect, a first STA generates a first OTA MAC address based on a first secret value and a current OTA MAC address. The first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP, and the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in an OTA MAC address list maintained by the first AP. The first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0. The first STA uses the first OTA MAC address to send a first frame to the first AP, where the first frame is a management frame or a control frame, or a data frame. In other words, the first STA can proactively update its OTA MAC address at any time, thereby better protecting the privacy of the first STA's MAC address. Furthermore, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses permitted to be used by the first STA currently and in the future. The first AP can then identify the first STA's updated OTA MAC address based on the OTA MAC address list, efficiently completing the identity verification process after the OTA MAC address change.
[0038] Through the technical solution of the second aspect, a first AP receives a first frame sent by a first STA using a first OTA MAC address. The first AP searches for the first STA's n OTA MAC addresses included in an OTA MAC address list maintained by the first AP. The OTA MAC address list includes the OTA MAC addresses of at least one STA associated with the first AP, including the first STA, and n is a positive integer. If the first AP finds the first OTA MAC address in the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded. In other words, the first STA can proactively update its OTA MAC address at any time, thereby better protecting the privacy of the first STA's MAC address. Furthermore, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses permitted to be used by the first STA currently and in the future. Therefore, the first AP can identify the first STA's updated OTA MAC address based on the OTA MAC address list, efficiently completing the identity verification process after the OTA MAC address change.
[0039] Through the technical solution of the third aspect, a second AP receives a fourth frame sent by a first AP; wherein the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers; wherein the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, where m1 is a positive integer. That is, the first AP can protect the privacy of the permanent MAC address by inserting the permanent MAC address of the target STA (the second STA) into the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the frame it sends, and inserting the permanent MAC address of the source STA (the first STA) into the last m1 bytes of the 2m1 bytes starting from the tail of the frame body.
[0040] According to the technical solution of the fourth aspect, a second AP receives a sixth frame sent by a first AP; wherein the TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the sixth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the sixth frame are both random numbers; wherein the header of the frame body of the sixth frame includes an Address Element field, and the control field in the Address Element field includes an SA Present field and a DA Present field, the value of the SA Present field indicates the presence of an SA field in the Address Element field for indicating an SA, and the value of the DA Present field indicates the presence of a DA field in the Address Element field for indicating a DA, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA. That is, the first AP can protect the privacy of the permanent MAC addresses by inserting the permanent MAC addresses of the source STA (the first STA) and the destination STA (the second STA) into the Address Element field included in the header of the frame body of the frame it sends. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] FIG1 is a schematic diagram of a communication system architecture applied in an embodiment of the present application.
[0042] FIG2 is a schematic flowchart of a wireless communication method provided according to an embodiment of the present application.
[0043] FIG3 is a schematic flowchart of generating an OTA MAC address according to an embodiment of the present application.
[0044] FIG4 is a schematic flowchart of updating an OTA MAC address according to an embodiment of the present application.
[0045] FIG5 is a schematic diagram of a first management frame provided according to an embodiment of the present application.
[0046] FIG6 is a schematic flowchart of an access phase of a first STA accessing a first AP according to an embodiment of the present application.
[0047] FIG7 is a schematic flowchart of another access phase of a first STA accessing a first AP provided according to an embodiment of the present application.
[0048] FIG8 is a schematic diagram of a first frame provided according to an embodiment of the present application.
[0049] FIG9 is a schematic diagram of another first frame provided according to an embodiment of the present application.
[0050] FIG10 is a schematic diagram of management frames or control frames exchanged between a first STA and a first AP according to an embodiment of the present application.
[0051] FIG11 is a schematic flowchart of another wireless communication method provided according to an embodiment of the present application.
[0052] 12 to 15 are schematic flow charts of STA1 sending data frames to STA2 according to embodiments of the present application.
[0053] FIG16 is a schematic flowchart of another wireless communication method provided according to an embodiment of the present application.
[0054] FIG17 is a schematic flowchart of another wireless communication method provided according to an embodiment of the present application.
[0055] FIG18 is a schematic block diagram of a STA provided according to an embodiment of the present application.
[0056] FIG19 is a schematic block diagram of an AP provided according to an embodiment of the present application.
[0057] Figure 20 is a schematic block diagram of another AP provided according to an embodiment of the present application.
[0058] Figure 21 is a schematic block diagram of another AP provided according to an embodiment of the present application.
[0059] Figure 22 is a schematic block diagram of a communication device provided according to an embodiment of the present application.
[0060] Figure 23 is a schematic block diagram of a device provided according to an embodiment of the present application.
[0061] Figure 24 is a schematic block diagram of a communication system provided according to an embodiment of the present application.
[0062] Figure 25 is a schematic block diagram of another communication system provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0063] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of the embodiments. With respect to the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0064] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as Wireless Local Area Networks (WLAN), Wireless Fidelity (WiFi), or other communication systems.
[0065] For example, a communication system 100 used in an embodiment of the present application is shown in FIG1 . The communication system 100 may include an access point (AP) 110 and a station (STA) 120 that accesses a network through the AP 110 .
[0066] In some scenarios, an AP can be referred to as an AP STA, meaning that in a sense, an AP is also a type of STA. In some scenarios, a STA can be referred to as a non-AP STA.
[0067] In some embodiments, STAs may include AP STAs and non-AP STAs.
[0068] The communication in the communication system 100 may be communication between an AP and a STA, communication between STAs, or communication between a STA and another (peer STA), where a peer STA may refer to a device that communicates with the STA peer, for example, a peer STA may be an AP or a non-AP STA.
[0069] An AP acts as a bridge between wired and wireless networks. Its primary function is to connect wireless network clients together and then connect the wireless network to the Ethernet. An AP can be a terminal device with a WiFi chip (such as a mobile phone) or a network device (such as a router).
[0070] It should be understood that the role of STA in the communication system is not absolute. For example, in some scenarios, when a mobile phone is connected to a router, the mobile phone is a STA. When the mobile phone serves as a hotspot for other mobile phones, the mobile phone acts as an AP.
[0071] APs and STAs can be devices used in the Internet of Vehicles, IoT nodes and sensors in the Internet of Things (IoT), smart cameras, smart remote controls, smart water and electricity meters in smart homes, and sensors in smart cities.
[0072] In some embodiments, the STA may support the 802.11be standard. The STA may also support various current and future 802.11 family WLAN standards, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a.
[0073] In some embodiments, the AP may be a device supporting the 802.11be standard. The AP may also be a device supporting various current and future 802.11 family WLAN standards, such as 802.11ax, 802.11ac, 802.11n, 802.11g, 802.11b, and 802.11a.
[0074] In some embodiments, AP 110 and / or STA 120 can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; can also be deployed on the water surface (such as a ship); can also be deployed in the air (for example, on an airplane, balloon, and satellite, etc.).
[0075] In the embodiment of the present application, STA 120 may be a mobile phone supporting WLAN / WiFi technology, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a set-top box, a wireless device in self-driving, an in-vehicle communication device, a wireless device in remote medical care, a wireless device in a smart grid, a wireless device in transportation safety, a wireless device in a smart city or a wireless device in a smart home, an in-vehicle communication device, a wireless communication chip / application specific integrated circuit (ASIC) / system on chip (SoC), etc.
[0076] As an example and not a limitation, in the embodiment of the present application, STA 120 may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for everyday wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. In a broad sense, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0077] The frequency bands supported by WLAN technology may include but are not limited to: low frequency bands (2.4 GHz, 5 GHz, 6 GHz) and high frequency bands (60 GHz).
[0078] FIG1 exemplarily shows an AP and two STAs. In some embodiments, the communication system 100 may include multiple APs and other numbers of STAs, which is not limited in the embodiments of the present application.
[0079] It should be understood that in the embodiments of the present application, a device having communication functionality in a network / system may be referred to as a communication device. Taking the communication system 100 shown in FIG1 as an example, the communication device may include an AP 110 and a STA 120 having communication functionality. AP 110 and STA 120 may be the specific devices described above and will not be described in detail here. The communication device may also include other devices in the communication system 100, such as a network controller, a gateway, or other network entities, which is not limited in the embodiments of the present application.
[0080] It should be understood that the terms "system" and "network" are often used interchangeably herein. The term "and / or" is simply a description of an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " generally indicates that the related objects are in an "or" relationship.
[0081] It should be understood that the "indication" mentioned in the embodiments of this application can be a direct indication, an indirect indication, or an indication of an association. For example, "A indicates B" can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B.
[0082] The terms used in the embodiments of this application are intended only to explain the specific embodiments of this application and are not intended to limit this application. The terms "first," "second," "third," and "fourth," etc. in the specification and claims of this application and the accompanying drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having," and any variations thereof, are intended to cover non-exclusive inclusions.
[0083] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between the two, or an association relationship between the two, or a relationship between indication and indication, configuration and configuration, etc.
[0084] In the embodiments of the present application, "pre-defined" or "pre-configured" may be implemented by pre-storing corresponding codes, tables, or other methods that can be used to indicate relevant information in a device (e.g., including STAs and network devices). The present application does not limit the specific implementation method. For example, pre-defined may refer to what is defined in the protocol.
[0085] In the embodiments of the present application, the “protocol” may refer to a standard protocol in the field of communications, for example, it may include a WiFi protocol and related protocols used in future WiFi communication systems, and the present application does not limit this.
[0086] To facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the scope of protection of the embodiments of the present application. The embodiments of the present application include at least part of the following contents.
[0087] Wireless devices support multi-band communications, for example, communicating simultaneously on the 2.4 GHz, 5 GHz, 6 GHz, and 60 GHz bands, or communicating simultaneously on different channels within the same band (or different bands), improving the throughput and / or reliability of communications between devices. Such devices are typically referred to as multi-band devices, or multi-link devices (MLDs), and are sometimes also referred to as multi-link entities or multi-band entities. A multi-link device can be either an access point or a station. If the multi-link device is an access point, it includes one or more APs; if it is a station, it includes one or more non-AP STAs.
[0088] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technical solutions and existing problems of the present application are described below.
[0089] Currently, in wireless local area networks (WLANs), to protect Media Access Control (MAC) address privacy, random MAC addresses are used in data frames exchanged between stations (STAs) and wireless access points (APs) to provide privacy during wireless transmissions. The AP can identify the MAC address used for over-the-air (OTA) transmissions and the permanent MAC address used for back-end communications, and secretly transmit the OTA and permanent MAC addresses to the STA. However, the STA cannot independently change the OTA MAC address, and the fixed nature of the permanent MAC address makes it vulnerable to attackers who can track and associate it with the user.
[0090] Based on the above problems, this application proposes a solution to protect the privacy of MAC addresses. STAs can actively update their OTA MAC addresses at any time, thereby better protecting the privacy of their MAC addresses. Specifically, to address the current shortcomings of MAC address privacy protection technology in WLANs, a two-layer MAC mechanism is introduced: the OTA MAC address (dynamically changing, used for communication as the Transmission Address (TA) / (Receiving Address, RA)) and the permanent MAC address (unchanging, used for authentication and identification as the Source Address (SA) / Destination Address (DA)), and a synchronous random transformation mechanism for MAC addresses is proposed to ensure efficient and secure synchronization. This application aims to ensure MAC address privacy in a WLAN by allowing STAs to autonomously update their OTA MAC addresses. The AP can then automatically identify the STA's updated OTA MAC address and place the STA's permanent MAC address in the frame body (e.g., at the end of the frame body or immediately following the CCMP / GCMP header). This avoids privacy leaks caused by the STA's fixed permanent MAC address. By setting a specific value in a reserved field in the frame header, the AP is instructed to decrypt the true permanent MAC address in the frame body (e.g., by setting the Address3 field in the frame header to all zeros, or by using the first four bits of the fourth byte or any bit in the third byte of the CCMP / GCMP header to indicate that the AP needs to decrypt the true permanent MAC address in the frame body. For example, the fourth bit of the fourth byte of the CCMP / GCMP header can be set to 1 to indicate that the AP needs to decrypt the true permanent MAC address in the frame body). When a STA associates with an AP, the permanent MAC address is used for security association between the STA and the AP. The STA uses the permanent MAC address to calculate keys and cryptographic identifiers during the security association, such as the pairwise transient key (PTK) and pairwise master key identifier (PMKID). There is no connection between the pairwise master key security association (PMKSA) and the STA's OTA MAC. Therefore, a STA can have multiple OTA MAC addresses, enabling the STA's OTA MAC address to be updated autonomously at any time.
[0091] The technical solution of this application is described in detail below through specific embodiments.
[0092] FIG2 is a schematic flowchart of a wireless communication method 200 according to an embodiment of the present application. As shown in FIG2 , the wireless communication method 200 may include at least part of the following contents:
[0093] S210: The first STA generates a first OTA MAC address based on the first secret value and the current OTA MAC address. The first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP, and the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in the OTA MAC address list maintained by the first AP. The first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0.
[0094] S220: The first STA sends a first frame to the first AP using the first OTA MAC address, wherein the first frame is a management frame or a control frame, or the first frame is a data frame.
[0095] In some embodiments, the OTA MAC address list maintained by the first AP includes n OTA MAC addresses of the first STA, where n is a positive integer, and the n OTA MAC addresses are the OTA MAC addresses that the first STA is allowed to use currently and for a period of time in the future, wherein the period of time in the future is agreed upon by the protocol, or the period of time in the future is configured by the first AP. Furthermore, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses of at least one STA associated with the first AP, and the at least one STA includes the first STA. Optionally, the number of OTA MAC addresses included in the OTA MAC address list by different STAs in the at least one STA may be the same or different, and this is not limited in the embodiments of the present application.
[0096] It should be noted that the current OTA MAC address is an OTA MAC address currently allowed to be used by the first STA, and does not belong to the M OTA MAC addresses indicated by the first AP.
[0097] In an embodiment of the present application, the first STA generates a first OTA MAC address based on the first secret value and the current OTA MAC address. That is, the first STA can actively update the OTA MAC address at any time, thereby better protecting the privacy of the MAC address of the first STA. In addition, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses allowed to be used by the first STA currently and in the future. Then, the first AP can identify the updated OTA MAC address of the first STA based on the OTA MAC address list, and can efficiently complete the identity identification process after the OTA MAC address is changed.
[0098] In the embodiment of the present application, a "field" may also be referred to as a "field" or a "subfield".
[0099] In an embodiment of the present application, the M OTA MAC addresses can also be understood as conflicting OTA MAC addresses corresponding to the first STA. For example, the M OTA MAC addresses conflict with the OTA MAC addresses in the OTA MAC address list, or the M OTA MAC addresses conflict with the OTA MAC addresses of other STAs in the OTA MAC address list.
[0100] In some embodiments, the M OTA MAC addresses may be all OTA MAC addresses generated by the first AP in the process of generating the n OTA MAC addresses of the first STA in the OTA MAC address list that conflict with other OTA MAC addresses in the OTA MAC address list (i.e., conflicting OTA MAC addresses or illegal OTA MAC addresses).
[0101] In some embodiments, the secret information shared by the first STA and the first AP includes but is not limited to one of the following:
[0102] PTK, some information about PTK.
[0103] In an embodiment of the present application, when the first STA accesses and authenticates, the first AP and the first STA use the same rules to derive a secret value IV1 (i.e., a first secret value) from shared secret information (e.g., PTK) as an initialization vector. Specifically, the secret information is not limited to the PTK, and other secret information may also be used. The method for deriving the secret value is, for example, to hash the PTK using the standard hash algorithm SHA-256, or to hash the last 128 bits of the PTK using the standard hash algorithm SHA-256. It can be seen that as long as the first AP and the first STA derive the secret information based on the same rules, the derivation method is not limited to the methods listed above. The first AP binds the initialization vector (i.e., secret value IV1) to the identity of the first STA. Optionally, each column of the OTA MAC address list maintained by the first AP (see Table 1 below) is n OTA MAC addresses of a STA. Since it is impossible to determine when the STA updates the OTA MAC address, the OTA MAC address list stores the OTA MAC addresses used by the STA currently and for a period of time in the future, for a total of n OTA MAC addresses. After the first AP generates an OTA MAC address that the first STA may use in the future, it checks the generated OTA MAC address. If it conflicts with other OTA MAC addresses in the OTA MAC address list, it is determined to be a conflicting OTA MAC address. The first AP notifies the first STA of the conflicting OTA MAC address (the number of conflicting OTA MAC addresses can be one or more) by sending a management frame or in the last frame of the four-way handshake. The first AP stores the non-conflicting OTA MAC addresses in the maintained OTA MAC address list. The last OTA MAC address is then used to generate a sufficient number of OTA MAC addresses and continues to check until n non-conflicting OTA MAC addresses are filled.
[0104] Table 1 OTA MAC address list
[0105]
[0106] Specifically, as shown in Table 1, the first OTA MAC address stored in each column of the OTA MAC address list is the OTA MAC address currently used by the STA, that is, STA-ad1. The i+1th OTA MAC address STA-ad i+1 By secret value IV1 and STA-ad i (i.e. IV1+STA-ad i The specific calculation method is: the concatenation of the initial vector IV1 and the i-th address in the OTA MAC address list "IV1+STA-ad i", use any standard hash algorithm H (such as SHA-1, MD5, etc.) to hash the string, use any generator function on the calculation result to obtain 48 bits (bits) as the new OTA MAC address, and check whether the U / L bit of the new OTA MAC address is 1 and whether the I / G bit is 0. If not, change the U / L bit to 1 and the I / G bit to 0 respectively, indicating that the OTA MAC address is a locally managed and unicast address, and use the above final result as the i+1th OTA MAC address STA-ad i+1 , as shown in Figure 3. Since the attacker cannot know the shared secret value IV1 between the first AP and STA, the subsequent OTA MAC address value cannot be calculated.
[0107] In some embodiments, the above S210 may specifically include:
[0108] The first STA generates a new OTA MAC address according to the first secret value and the current OTA MAC address;
[0109] If the new OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the new OTA MAC address as the first OTA MAC address;
[0110] In a case where the new OTA MAC address belongs to the M OTA MAC addresses, the first STA generates a next OTA MAC address based on the new OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
[0111] In some embodiments, after receiving the first frame sent by the first STA using the first OTA MAC address, the first AP searches for the first OTA MAC address from the n OTA MAC addresses of the first STA included in the OTA MAC address list maintained by the first AP. If the first AP finds the first OTA MAC address in the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded. That is, if the first AP finds the first OTA MAC address in the OTA MAC address list, the first OTA MAC address is authenticated successfully, and the first STA is allowed to access the network. In this case, the first AP continues to process the first frame.
[0112] In some embodiments, after the first STA uses the first OTA MAC address (ie, the updated OTA MAC address) for communication, the first AP needs to update n OTA MAC addresses of the first STA included in the OTA MAC address list. Specifically, the first AP deletes the OTA MAC address that is before the first OTA MAC address among the n OTA MAC addresses of the first STA from the OTA MAC address list; the first AP generates an OTA MAC address i based on the OTA MAC address at the end of the first STA in the OTA MAC address list and the first secret value; if the OTA MAC address i does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the OTA MAC address i to the OTA MAC address list; if the OTA MAC address i conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the OTA MAC address i and the first secret value, until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list; the first AP maintains the number of OTA MAC addresses of the first STA in the OTA MAC address list as n.
[0113] In some embodiments, as shown in FIG4 , the first STA may update the OTA MAC address through the following steps S11 to S17 .
[0114] S11: The first STA generates a new OTA MAC address using a hash algorithm based on the first secret value and the current OTA MAC address. Optionally, the first secret value is derived from shared secret information (such as a PTK) by the first STA and the first AP using the same rule, and the first secret value can serve as an initialization vector.
[0115] S12, the first STA determines whether the new OTA MAC address is among the M OTA MAC addresses (i.e., the conflicting OTA MAC address) notified by the first AP; if the new OTA MAC address belongs to the M OTA MAC addresses, the first STA generates the next OTA MAC address based on the new OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address; if the new OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the new OTA MAC address as the first OTA MAC address.
[0116] S13, when the first STA communicates with the first AP, the first OTA MAC address is used; if a destination address (DA) is involved, the permanent MAC address of the target STA is inserted into the header or tail of the frame body for communication.
[0117] S14: The first STA sends a first frame to the first AP using the first OTA MAC address, wherein the first frame is a management frame or a control frame, or the first frame is a data frame. Optionally, if the first frame is a data frame, the first STA inserts the permanent MAC address of the target STA of the first frame into the header or tail of the frame body of the first frame.
[0118] S15, the first AP retrieves the first OTA MAC address from the n OTA MAC addresses of the first STA included in the OTA MAC address list maintained by the first AP. If the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded.
[0119] S16: When the first frame is a data frame, the first AP decrypts the first frame to obtain the real permanent MAC address of the target STA carried in the header or tail of the body of the first frame.
[0120] S17, the first AP deletes the OTA MAC address before the first OTA MAC address of the first STA from the OTA MAC address list, and continues to generate a new non-conflicting OTA MAC address using the OTA MAC address at the end of the first STA in the OTA MAC address list and adds it to the OTA MAC address list, so that the first AP maintains the number of OTA MAC addresses of the first STA in the OTA MAC address list as n.
[0121] In some embodiments, the first STA generates a first OTA MAC address that does not belong to the M OTA MAC addresses according to the first secret value and the permanent MAC address of the first STA.
[0122] Specifically, the first STA generates an initial OTA MAC address based on the first secret value and the permanent MAC address of the first STA; if the initial OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the initial OTA MAC address as the first OTA MAC address; if the initial OTA MAC address belongs to the M OTA MAC addresses, the first STA generates the next OTA MAC address based on the initial OTA MAC address and the first secret value, until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
[0123] In some embodiments, the first STA receives a first management frame or a last frame of a four-way handshake sent by the first AP;
[0124] The first management frame or the last frame of the four-way handshake is used to instruct the first STA to enable the OTA MAC address, or the first management frame or the last frame of the four-way handshake is used to instruct the first STA to switch the OTA MAC address for communication.
[0125] In some embodiments, the first management frame or the last frame of the four-way handshake carries the M OTA MAC addresses indicated by the first AP.
[0126] In some embodiments, the first management frame or the last frame of the four-way handshake includes an OTA MAC Present field, where the OTA MAC Present field is used to indicate whether an OTA MAC address list field exists in the first management frame or the last frame of the four-way handshake, where the OTA MAC address list field is used to indicate the M OTA MAC addresses.
[0127] For example, when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, M≥1; when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake, M=0. For example, the OTA MAC Present field occupies 1 bit, a value of 1 indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, and a value of 0 indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake. For another example, the OTA MAC Present field occupies 1 bit, a value of 0 indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, and a value of 1 indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake. Of course, the OTA MAC Present field may also occupy more bits, and this application is not limited to this.
[0128] In some embodiments, the first STA temporarily uses the permanent MAC address of the first STA for communication before receiving the first management frame or the last frame of the four-way handshake.
[0129] For example, the frame structure of the first management frame may be as shown in FIG5 . Specifically, the first management frame is an Action frame. Since the values "30 to 125" in the Category field of the Action frame are reserved, this embodiment selects any value (e.g., "30") to indicate the first management frame. The control field of the first management frame includes an OTA MAC Present field. The OTA MAC Present field occupies one bit. Setting the OTA MAC Present field to "1" indicates the presence of an OTA MAC Address List field. If the first STA is currently using a permanent MAC for communication, receipt of this frame indicates that after the conflicting OTA MAC address is calculated, the next OTA MAC address is non-conflicting, and the first STA can switch to the non-conflicting OTA MAC for communication. If the first STA is currently using an OTA MAC address for communication, receipt of this frame indicates that the OTA MAC addresses indicated in the OTA MAC Address List field are conflicting and cannot be used for communication. Setting the OTA MAC Present field to "0" indicates that there is no subsequent OTA MAC Address List field, indicating that the initial OTA MAC address is non-conflicting. As shown in Figure 5, the first management frame includes an OTA MAC Address List field (optional). The OTA MAC Address List field may include M OTA MAC fields, each of which is used to indicate the M OTA MAC addresses. Each OTA MAC field occupies 6 bytes.
[0130] In addition, as shown in Figure 5, the MAC header of the frame structure of the first management frame also includes: a frame control field (occupies 2 bytes), a duration field (occupies 2 bytes), a receiving address (RA) field (occupies 6 bytes), a sending address (TA) field (occupies 6 bytes), a basic service set identifier (Basic Service Set Identifier, BSSID) field (occupies 6 bytes), and a sequence control (Seqct1) field (occupies 2 bytes).
[0131] In some embodiments, the OTA MAC presence field may also be referred to as an OTA MAC presence field, which is not limited in this application.
[0132] In some embodiments, the first STA receives a second management frame sent by the first AP;
[0133] The second management frame has the same frame format as the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
[0134] For example, when a first STA first accesses a first AP, it authenticates using its permanent MAC address. The first AP and the first STA then use the same rules to derive a first secret value as an initialization vector from shared secret information (such as a PTK or partial PTK information). Both the first STA and the first AP use the same rules (such as a hash algorithm) to calculate the initial OTA MAC address based on the first secret value and the first STA's permanent MAC address. The first AP then determines whether the generated OTA MAC address conflicts with other OTA MAC addresses in the OTA MAC address list. If so, it continues to use the conflicting OTA MAC address to calculate the next OTA MAC address, and repeats the above determination until a non-conflicting OTA MAC address is generated and added to the OTA MAC address list. At this point, the first AP can use the first management frame shown in Figure 5 to inform the first STA that OTA MAC address authentication is possible. If the first STA needs to communicate before receiving the first management frame, it temporarily uses the permanent MAC address. After receiving the first management frame, the first STA determines whether the OTA MAC bit is "1." If it is "1," it indicates that a conflicting OTA MAC address list field exists. The first STA then determines whether the generated OTA MAC address is in the conflicting OTA MAC address list. If so, it uses the conflicting OTA MAC address to generate the next OTA MAC address and repeats the determination until the generated OTA MAC address is no longer in the conflict list. This OTA MAC address is then considered a non-conflicting OTA MAC address, and communication is switched to the non-conflicting OTA MAC address. Otherwise, it indicates that the OTA MAC address list field does not exist, and the initial OTA MAC address is considered a non-conflicting OTA MAC address. Communication is then switched to the initial OTA MAC address. Since the first AP has already stored the first non-conflicting OTA MAC address for the first STA, the first AP can identify this non-conflicting OTA MAC address and communication is successful. Next, the first AP maintains a list of non-conflicting OTA MAC addresses of accessing users, stores the non-conflicting OTA MAC addresses currently used and in the future by the STA associated with the first AP, and sends the conflicting OTA MAC address to the STA through the first management frame. At the same time, considering compatibility with devices that do not support OTA MAC addresses, the first AP maintains a list to store the MAC address of the first STA that does not support OTA MAC addresses.Optionally, it may be incompatible with devices that do not support OTA MAC addresses, that is, incompatible devices that do not support OTA MAC addresses are not allowed to associate with the first AP. In this case, the first AP does not need to maintain a list to store the MAC address of the first STA that does not support OTA MAC addresses. Accordingly, in the process described in this application (for example, S3-5, S4-7, S5-5, S6-7), the AP does not need to check whether the sending address TA of the received frame belongs to a device that does not support OTA MAC addresses.
[0135] Optionally, the first AP may send the first management frame to the first STA when generating a first non-conflicting OTA MAC address of the first STA (i.e., a first OTA MAC address that does not belong to the M OTA MAC addresses, or a first OTA MAC address that does not conflict with other OTA MAC addresses in the OTA MAC address list). Furthermore, after generating the nth non-conflicting OTA MAC address, i.e., after the first AP completes creation of the OTA MAC address for the first STA, the first AP sends the second management frame to the first STA.
[0136] Optionally, the first AP may also send the first management frame to the first STA when generating the nth non-conflicting OTA MAC address of the first STA (i.e., the nth OTA MAC address that does not belong to the M OTA MAC addresses, or the nth OTA MAC address that does not conflict with other OTA MAC addresses in the OTA MAC address list); wherein, after generating the nth non-conflicting OTA MAC address, the first AP completes the creation of the OTA MAC address of the first STA.
[0137] In some embodiments, as shown in FIG6 , the process of the first STA in the access phase of accessing the first AP may be as follows S1 - 1 to S1 - 12 .
[0138] S1-1, when the first STA accesses the first AP for the first time, it uses the permanent MAC address for access authentication.
[0139] S1-2, the first STA derives a first secret value (IV1) through the shared secret information with the first AP, and the first AP derives a first secret value (IV1) through the shared secret information with the first STA.
[0140] S1-3, the first AP performs identity binding between the first STA and the first secret value (IV1).
[0141] S1-4, the first AP generates an initial OTA MAC address of the first STA using a hash algorithm based on the first secret value (IV1) and the permanent MAC address of the first STA.
[0142] S1-5, the first AP determines whether the newly generated OTA MAC address of the first STA conflicts with the OTA MAC address in the OTA MAC address list; if the newly generated OTA MAC address conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the conflicting OTA MAC address and the first secret value; if the newly generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the newly generated OTA MAC address to the OTA MAC address list; wherein, the newly generated non-conflicting OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0143] For example, if the initial OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the initial OTA MAC address to the OTA MAC address list, and the initial OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list; if the initial OTA MAC address conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list, and the newly generated OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0144] S1-6, the first AP determines whether there are n OTA MAC addresses of the first STA in the OTA MAC address list it maintains; when there are n OTA MAC addresses of the first STA in the OTA MAC address list (that is, the number of OTA MAC addresses of the first STA in the OTA MAC address list is n), the first AP checks the OTA MAC addresses of all accessed STAs in the maintained OTA MAC address list; when there are n OTA MAC addresses of the first STA in the OTA MAC address list (that is, the number of OTA MAC addresses of the first STA in the OTA MAC address list is less than n), the first AP uses a hash algorithm to calculate the next non-conflicting OTA MAC address used by the first STA based on the first secret value and the latest generated non-conflicting OTA MAC address (that is, the latest generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list), and adds it to the OTA MAC address list.
[0145] S1-7, the first AP determines whether the generated n OTA MAC addresses of the first STA conflict with other OTA MAC addresses in the OTA MAC address list; if the n OTA MAC addresses of the first STA conflict with other OTA MAC addresses in the OTA MAC address list, the first AP records the nth OTA MAC address, deletes the conflicting OTA MAC address from the OTA MAC address list, and uses the recorded nth OTA MAC address to continue generating the next OTA MAC address, and returns to continue executing S1-6; if the n OTA MAC addresses of the first STA do not conflict with other OTA MAC addresses in the OTA MAC address list, the first AP completes the creation of the OTA MAC address for the first STA.
[0146] S1-8. The first AP sends a first management frame to the first STA, wherein the first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to indicate that the first STA is allowed to switch the OTA MAC address for communication. Optionally, the first management frame carries the M OTA MAC addresses indicated by the first AP. Optionally, the first STA temporarily uses the permanent MAC address of the first STA for communication before receiving the first management frame.
[0147] S1-9, the first STA generates an initial OTA MAC address of the first STA using a hash algorithm based on the first secret value (IV1) and the permanent MAC address of the first STA.
[0148] S1-10, the first STA determines whether the value of the OTA MAC presence field in the received first management frame indicates that the OTA MAC address list field exists in the first management frame; if the value of the OTA MAC presence field indicates that the OTA MAC address list field exists in the first management frame, the first STA detects the OTA MAC address list field to obtain the M OTA MAC addresses; if the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, the initial OTA MAC address is the first non-conflicting OTA MAC address.
[0149] S1-11, whether the OTA MAC address generated by the first STA belongs to the M OTA MAC addresses (whether it conflicts with other OTA MAC addresses in the OTA MAC address list); if the newly generated OTA MAC address does not belong to the M OTA MAC addresses, the first STA uses the newly generated OTA MAC address (i.e., the conflicting OTA MAC address) to continue generating the next OTA MAC address until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address; if the newly generated OTA MAC address belongs to the M OTA MAC addresses, the newly generated OTA MAC address is the first non-conflicting OTA MAC address.
[0150] S1-12, the first STA switches to a non-conflicting OTA MAC address to communicate with the first AP.
[0151] In some embodiments, as shown in FIG7 , the process of the first STA in the access phase of accessing the first AP may be as follows S2 - 1 to S2 - 13 .
[0152] S2-1, when the first STA accesses the first AP for the first time, it uses the permanent MAC address for access authentication.
[0153] S2-2, the first STA derives a first secret value (IV1) through the shared secret information with the first AP, and the first AP derives a first secret value (IV1) through the shared secret information with the first STA.
[0154] S2-3, the first AP performs identity binding between the first STA and the first secret value (IV1).
[0155] S2-4, the first AP generates an initial OTA MAC address of the first STA using a hash algorithm based on the first secret value (IV1) and the permanent MAC address of the first STA.
[0156] S2-5, the first AP determines whether the newly generated OTA MAC address of the first STA conflicts with the OTA MAC address in the OTA MAC address list; if the newly generated OTA MAC address conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the conflicting OTA MAC address and the first secret value; if the newly generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the newly generated OTA MAC address to the OTA MAC address list; wherein, the newly generated non-conflicting OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0157] For example, if the initial OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the initial OTA MAC address to the OTA MAC address list, and the initial OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list; if the initial OTA MAC address conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list, and the newly generated OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0158] S2-6: The first AP sends a first management frame to the first STA, wherein the first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to indicate that the first STA is allowed to switch the OTA MAC address for communication. Optionally, the first management frame carries the M OTA MAC addresses indicated by the first AP. Optionally, the first STA temporarily uses the first STA's permanent MAC address for communication before receiving the first management frame.
[0159] S2-7, the first STA generates an initial OTA MAC address of the first STA by using a hash algorithm based on the first secret value (IV1) and the permanent MAC address of the first STA.
[0160] S2-8, the first STA determines whether the value of the OTA MAC presence field in the received first management frame indicates that the OTA MAC address list field exists in the first management frame; if the value of the OTA MAC presence field indicates that the OTA MAC address list field exists in the first management frame, the first STA detects the OTA MAC address list field to obtain the M OTA MAC addresses; if the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, the initial OTA MAC address is the first non-conflicting OTA MAC address.
[0161] S2-9, whether the OTA MAC address generated by the first STA belongs to the M OTA MAC addresses (whether it conflicts with other OTA MAC addresses in the OTA MAC address list); if the newly generated OTA MAC address does not belong to the M OTA MAC addresses, the first STA uses the newly generated OTA MAC address (i.e., the conflicting OTA MAC address) to continue generating the next OTA MAC address until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address; if the newly generated OTA MAC address belongs to the M OTA MAC addresses, the newly generated OTA MAC address is the first non-conflicting OTA MAC address.
[0162] S2-10: The first STA switches to a non-conflicting OTA MAC address to communicate with the first AP.
[0163] S2-11, the first AP determines whether there are n OTA MAC addresses of the first STA in the OTA MAC address list it maintains; when there are n OTA MAC addresses of the first STA in the OTA MAC address list (that is, the number of OTA MAC addresses of the first STA in the OTA MAC address list is n), the first AP checks the OTA MAC addresses of all accessed STAs in the maintained OTA MAC address list; when there are n OTA MAC addresses of the first STA in the OTA MAC address list (that is, the number of OTA MAC addresses of the first STA in the OTA MAC address list is less than n), the first AP uses a hash algorithm to calculate the next non-conflicting OTA MAC address used by the first STA based on the first secret value and the latest generated non-conflicting OTA MAC address (that is, the latest generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list), and adds it to the OTA MAC address list.
[0164] S2-12, the first AP determines whether the generated n OTA MAC addresses of the first STA conflict with other OTA MAC addresses in the OTA MAC address list; if the n OTA MAC addresses of the first STA conflict with other OTA MAC addresses in the OTA MAC address list, the first AP records the nth OTA MAC address, deletes the conflicting OTA MAC address from the OTA MAC address list, and uses the recorded nth OTA MAC address to continue generating the next OTA MAC address, and returns to continue executing S2-11; if the n OTA MAC addresses of the first STA do not conflict with other OTA MAC addresses in the OTA MAC address list, the first AP completes the creation of the OTA MAC address for the first STA.
[0165] S2-13, the first AP sends a second management frame to the first STA; wherein, the frame format of the second management frame is the same as that of the first management frame, and the second management frame is used to indicate the update of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
[0166] In some embodiments, when the first frame is a data frame, the receiving address (RA) in the first frame is the MAC address of the first AP, the transmitting address (TA) in the first frame is the first OTA MAC address, the value of the To DS field of the first frame is 1, the value of the From DS field of the first frame is 0, and the value of the Address 3 field of the first frame is all zeros, or the value of the Address 3 field of the first frame is a random number. That is, the Address 3 field in the first frame is an invalid field.
[0167] In some embodiments, when the first frame is a data frame, the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA; wherein the second STA is the target STA of the first frame.
[0168] In some embodiments, if the tail of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer. Accordingly, the first AP extracts the permanent MAC address of the second STA from the m1 bytes starting from the end of the frame body of the first frame; the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address; and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list based on the permanent MAC address of the second STA. Optionally, the first AP further transmits a third frame to the second STA; wherein the transmitting address TA in the third frame is the MAC address of the first AP, the receiving address RA in the third frame is the OTA MAC address currently used by the second STA, the permanent MAC address of the first STA is carried in the m1 bytes starting from the end of the frame body of the third frame, and the value of the Address 3 field of the third frame is all zeros, or the value of the Address 3 field of the third frame is a random number. The third frame is a data frame.
[0169] Optionally, m1 = 6. Specifically, after the first AP receives the first frame, when the first AP receives the packet and parses the frame header, if "To DS" = 1, "From DS" = 0, and the value of the Address3 field is all zeros or a random number, then after integrity verification and decryption of the first frame, the first AP extracts the destination address (DA) from the frame body of the first frame, that is, the first AP extracts 6 bytes forward from the end of the frame body, thereby obtaining the permanent MAC address of the second STA.
[0170] In some embodiments, the permanent MAC address can be placed at the end of the frame body. Specifically, when the AP or STA receives a packet parsing frame header, if "To DS" = 1, "From DS" = 0, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the DA is extracted from the frame body, that is, the AP or STA extracts 6 bytes from the end of the frame body forward; when the AP or STA receives a packet parsing frame header, if "To DS" = 0, "From DS" = 1, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the SA is extracted from the frame body, that is, the AP or STA extracts 6 bytes from the end of the frame body forward; when the AP or STA receives a packet parsing frame header, if "To DS" = 1, "From DS" = 1, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the SA is extracted from the frame body, that is, the AP or STA extracts 12 bytes from the end of the frame body forward, with the first 6 bytes being the DA and the last 6 bytes being the SA.
[0171] For example, the first frame may be as shown in FIG8 , and the tail of the frame body of the first frame includes a MAC field, and the MAC field is used to indicate the permanent MAC address of the second STA.
[0172] In some embodiments, the permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
[0173] In some embodiments, when the header of the frame body of the first frame carries the permanent MAC address of the first STA and / or the permanent MAC address of the second STA, the header of the frame body of the first frame includes an Address Element field, and the control field in the Address Element field includes a Source Address (SA) Present field and a Destination Address (DA) Present field. The value of the SA Present field indicates that the SA field indicating the SA is not present in the Address Element field, and the value of the DA Present field indicates that the DA field indicating the DA is present in the Address Element field, and the DA is the permanent MAC address of the second STA. Accordingly, the first AP obtains the permanent MAC address of the second STA from the DA field in the Address Element field of the first frame; the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address; and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list based on the permanent MAC address of the second STA. Optionally, further, the first AP sends a fifth frame to the second STA; wherein, the TA in the fifth frame is the MAC address of the first AP, the RA in the fifth frame is the OTA MAC address currently used by the second STA, the value of the address 3 field of the fifth frame is all zeros, or the value of the address 3 field of the fifth frame is a random number; wherein, the header of the frame body of the fifth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is no DA field for indicating DA in the address element field, and the SA is the permanent MAC address of the first STA.
[0174] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field of the header of the frame body of the first frame. For example, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0175] It should be noted that the first 4 bits of the 3rd byte and the 4th byte in the CCMP / GCMP header are reserved. Therefore, the value of any bit of the 3rd byte of the CCMP / GCMP header, or any bit of the first 4 bits of the 4th byte of the CCMP / GCMP header (such as the 4th bit in the 4th byte, Ext Header in Figure 9) can be set to 1 to instruct the AP or STA to extract the permanent MAC address (SA / DA) from the information element in the frame body header.
[0176] In some embodiments, the permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
[0177] In some embodiments, the permanent MAC address may be placed in the header of the frame body. Specifically, the third byte and the first four bits of the fourth byte of the CCMP / GCMP header are reserved. Therefore, the value of the fourth bit in the fourth byte of the CCMP / GCMP header may be set to 1 to instruct the AP or STA to extract the permanent MAC address (SA and / or DA) from the information element in the frame body header. When the "Element ID" = 255, the "Extended Element ID Extension" field (94-255 are reserved and unused) exists in the element. Here, "Element ID" = 255 and "Element ID Extension" = 94 may be used to indicate to the AP or STA the type of the information element, i.e., the "Address Element". The AP or STA then checks the first and second bits in the "Control". If "SA Present" = 1 and "DA Present" = 0, it indicates that the AP or STA needs to extract the SA from the "Address Element". If "SA Present" = 0 and "DA Present" = 1, it indicates that the AP or STA needs to extract the SA from the "Address Element". If "SA Present" = 1 and "DA Present" = 1, the AP or STA needs to extract the DA and SA from the "Address Element".
[0178] For example, the first frame may be as shown in FIG9 , where the key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame includes an extension header (Ext Header) field (i.e., the first bit). The Ext Header field occupies 1 bit, and the Ext Header field is 1 or 0, which is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field of the header of the frame body of the first frame. As shown in FIG9 , the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes a source address (SA) presence field and a destination address (DA) presence field.
[0179] Specifically, as shown in FIG9 , the SA presence field occupies 1 bit. A value of 1 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 0 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. Alternatively, a value of 0 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 1 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. For the first frame, the value of the SA presence field indicates that the SA field for indicating SA does not exist in the address element field.
[0180] Specifically, as shown in Figure 9, the DA presence field occupies 1 bit. A value of 1 in the DA presence field indicates that the address element field does not contain a DA field for indicating a DA, and a value of 0 in the DA presence field indicates that the address element field contains a DA field for indicating a DA. Alternatively, a value of 0 in the DA presence field indicates that the address element field does not contain a DA field for indicating a DA, and a value of 1 in the DA presence field indicates that the address element field contains a DA field for indicating a DA. For the first frame, the value of the DA presence field indicates that the address element field contains a DA field for indicating a DA, and the DA is the permanent MAC address of the second STA.
[0181] In some embodiments, the SA existence field may also be referred to as the SA existence field, and the DA existence field may also be referred to as the DA existence field, which is not limited in this application.
[0182] In addition, as shown in Figure 9, the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame also includes the following fields: Packet Number (PN) 0 field, PN1 field, Reserved field, PN2 field, PN3 field, PN4 field and PN5 field. And the key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame also includes: Reserved field, Fine Time Measurement (FTM) field, Extended Initial Vector (Ext IV) field and Key Identification field. And the first frame also includes: Data field, Message Integrity Check (MIC) field and Frame Check field.
[0183] In some embodiments, when the first frame is a management frame or a control frame, the values of the Sent to Distribution System field and the From Distribution System field in the first frame are both 0, the Transmit Address (TA) in the first frame is the first OTA MAC address, and the Receive Address (RA) in the first frame is the MAC address of the first AP. Optionally, further, the first STA receives a second frame sent by the first AP, wherein the TA of the second frame is the MAC address of the first AP and the RA of the second frame is the first OTA MAC address; the first STA obtains the locally stored permanent MAC address of the first STA, replaces the RA of the second frame with the permanent MAC address of the first STA, and submits the second frame after the RA is replaced to the upper layer for processing.
[0184] It should be noted that, when the first frame is a management frame or a control frame, the first frame and the second frame may be frames with no association relationship (i.e., the second frame is not a response to the first frame). Of course, the first frame and the second frame may also be frames with an association relationship (i.e., the second frame is a response to the first frame).
[0185] Specifically, as shown in Figure 10, the first STA obtains the locally stored currently used OTA MAC address, that is, the first OTA MAC address; and the first STA sends a first frame to the first AP, wherein the first frame is a management frame or a control frame, the values of the sent to distribution system field and the from distribution system field in the first frame are both 0, and the sending address (TA) in the first frame is the first OTA MAC address, and the receiving address (RA) in the first frame is the MAC address of the first AP. After receiving the first frame, the first AP checks the maintained OTA MAC address list to determine whether the MAC address of the first AP is recognizable. Specifically, the first AP retrieves the first OTA MAC address from the n OTA MAC addresses of the first STA included in the OTA MAC address list maintained by the first AP. If the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame. If the first AP does not retrieve the first OTA MAC address from the OTA MAC address list, the first AP checks one or more maintained MAC addresses that do not support OTA MAC addresses to determine whether the first OTA MAC address is recognizable. If the first AP retrieves the first OTA MAC address from the one or more OTA MAC addresses, the first AP continues to process the first frame; otherwise, the first frame is discarded. After processing the first frame, the first AP sends a second frame to the first STA, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address; and the first STA obtains the locally stored permanent MAC address of the first STA, and replaces the RA of the second frame with the permanent MAC address of the first STA, and submits the second frame after the RA is replaced to the upper layer for processing.
[0186] Therefore, in an embodiment of the present application, a first STA generates a first OTA MAC address based on a first secret value and a current OTA MAC address; wherein the first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP, the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in an OTA MAC address list maintained by the first AP, and the first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0; and the first STA uses the first OTA MAC address to send a first frame to the first AP, wherein the first frame is a management frame or a control frame, or the first frame is a data frame. That is, the first STA can proactively update its OTA MAC address at any time, thereby better protecting the privacy of the first STA's MAC address. Furthermore, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses permitted to be used by the first STA currently and in the future. Therefore, the first AP can identify the first STA's updated OTA MAC address based on the OTA MAC address list, efficiently completing the identity identification process after the OTA MAC address change.
[0187] The above, in combination with Figures 2 to 10, describes in detail the embodiments of the first STA side of the present application. The following, in combination with Figures 11 to 15, describes in detail the embodiments of the first AP side of the present application. It should be understood that the embodiments of the first AP side correspond to the embodiments of the first STA side, and similar descriptions can refer to the embodiments of the first STA side.
[0188] FIG11 is a schematic flowchart of a wireless communication method 300 according to an embodiment of the present application. As shown in FIG11 , the wireless communication method 300 may include at least part of the following contents:
[0189] S310, a first AP receives a first frame sent by a first STA using a first OTA MAC address;
[0190] S320: The first AP retrieves the first OTA MAC address from n OTA MAC addresses of the first STA included in an OTA MAC address list maintained by the first AP; wherein the OTA MAC address list includes the OTA MAC address of at least one STA associated with the first AP, the at least one STA including the first STA, and n is a positive integer;
[0191] S330 : If the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded.
[0192] In some embodiments, the OTA MAC address list maintained by the first AP includes n OTA MAC addresses of the first STA, where the n OTA MAC addresses are the OTA MAC addresses allowed to be used by the first STA currently and in a future period of time, wherein the future period of time is agreed upon by the protocol, or the future period of time is configured by the first AP.
[0193] Optionally, the number of OTA MAC addresses included in the OTA MAC address list by different STAs in the at least one STA may be the same or different, and this embodiment of the present application is not limited to this.
[0194] In some embodiments, the first OTA MAC address is generated by the first STA based on a first secret value and the current OTA MAC address of the first STA. The first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP. The M OTA MAC addresses are OTA MAC addresses that conflict with the OTA MAC addresses in the OTA MAC address list maintained by the first AP. The first secret value is derived based on secret information shared by the first STA and the first AP.
[0195] For example, the first STA generates a new OTA MAC address based on the first secret value and the current OTA MAC address; if the new OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the new OTA MAC address as the first OTA MAC address; if the new OTA MAC address belongs to the M OTA MAC addresses, the first STA generates the next OTA MAC address based on the new OTA MAC address and the first secret value, until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
[0196] In an embodiment of the present application, the first STA can generate a first OTA MAC address based on the first secret value and the current OTA MAC address, that is, the first STA can actively update the OTA MAC address at any time, thereby better protecting the privacy of the MAC address of the first STA. In addition, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses allowed to be used by the first STA currently and in the future. Then, the first AP can identify the updated OTA MAC address of the first STA based on the OTA MAC address list, and can efficiently complete the identity identification process after the OTA MAC address is changed.
[0197] In the embodiment of the present application, a "field" may also be referred to as a "field" or a "subfield".
[0198] In an embodiment of the present application, the M OTA MAC addresses can also be understood as the conflicting OTA MAC addresses corresponding to the first STA. For example, the M OTA MAC addresses conflict with the OTA MAC addresses in the OTA MAC address list, or the M OTA MAC addresses conflict with the OTA MAC addresses of other STAs in the OTA MAC address list.
[0199] In some embodiments, the M OTA MAC addresses may be all OTA MAC addresses (i.e., conflicting OTA MAC addresses) generated by the first AP in the process of generating n OTA MAC addresses of the first STA in the OTA MAC address list that conflict with other OTA MAC addresses in the OTA MAC address list.
[0200] In some embodiments, the secret information shared by the first STA and the first AP includes but is not limited to one of the following:
[0201] PTK, some information about PTK.
[0202] In an embodiment of the present application, when the first STA accesses and authenticates, the first AP and the first STA use the same rules to derive a secret value IV1 (i.e., a first secret value) from shared secret information (e.g., PTK) as an initialization vector. Specifically, the secret information is not limited to the PTK, and other secret information may also be used. For example, the method for deriving the secret value may be to hash the PTK using the standard hash algorithm SHA-256, or to hash the last 128 bits of the PTK using the standard hash algorithm SHA-256. It can be seen that as long as the first AP and the first STA derive the secret information based on the same rules, the derivation method is not limited to the methods listed above. The first AP binds the initialization vector (i.e., secret value IV1) to the identity of the first STA. Optionally, each column of the OTA MAC address list maintained by the first AP (see Table 1 above) contains n OTA MAC addresses of a STA. Since it is impossible to determine when the STA updates its OTA MAC address, the OTA MAC address list stores the OTA MAC addresses used by the STA currently and for a period of time in the future, for a total of n OTA MAC addresses. After the first AP generates an OTA MAC address that the first STA may use in the future, it checks the generated OTA MAC address. If it conflicts with other OTA MAC addresses in the OTA MAC address list, it is determined to be a conflicting OTA MAC address. The first AP notifies the first STA of the conflicting OTA MAC address (the number of conflicting OTA MAC addresses can be one or more) by sending a management frame or in the last frame of the four-way handshake. The first AP stores the non-conflicting OTA MAC addresses in the maintained OTA MAC address list. The last OTA MAC address is then used to generate a sufficient number of OTA MAC addresses and continues to detect until n non-conflicting OTA MAC addresses are filled.
[0203] Specifically, as shown in Table 1, the first OTA MAC address stored in each column of the OTA MAC address list is the OTA MAC address currently used by the STA, that is, STA-ad1. The i+1th OTA MAC address STA-ad i+1 By secret value IV1 and STA-ad i (i.e. IV1+STA-ad i The specific calculation method is: the concatenation of the initial vector IV1 and the i-th address in the OTA MAC address list "IV1+STA-ad i", use any standard hash algorithm H (such as SHA-1, MD5, etc.) to hash the string, use any generator function on the calculation result to obtain 48 bits (bits) as the new OTA MAC address, and check whether the U / L bit of the new OTA MAC address is 1 and whether the I / G bit is 0. If not, change the U / L bit to 1 and the I / G bit to 0 respectively, indicating that the OTA MAC address is a locally managed and unicast address, and use the above final result as the i+1th OTA MAC address STA-ad i+1 , as shown in Figure 3. Since the attacker cannot know the shared secret value IV1 between the first AP and STA, the subsequent OTA MAC address value cannot be calculated.
[0204] In an embodiment of the present application, when the first AP retrieves the first OTA MAC address in the OTA MAC address list, the first OTA MAC address authentication is successful, and the first SAT is allowed to access the network. In this case, the first AP continues to process the first frame.
[0205] In some embodiments, if the first AP does not retrieve the first OTA MAC address from the OTA MAC address list, the first AP checks one or more maintained MAC addresses that do not support OTA MAC addresses to determine whether the first OTA MAC address is identifiable. If the first AP retrieves the first OTA MAC address from the one or more MAC addresses, the first AP continues to process the first frame; otherwise, the first frame is discarded.
[0206] In some embodiments, the first AP deletes the OTA MAC address that precedes the first OTA MAC address among the n OTA MAC addresses of the first STA from the OTA MAC address list; the first AP generates an OTA MAC address i based on the last OTA MAC address of the first STA in the OTA MAC address list and a first secret value; if the OTA MAC address i does not conflict with any OTA MAC address in the OTA MAC address list, the first AP adds the OTA MAC address i to the OTA MAC address list; if the OTA MAC address i conflicts with any OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the OTA MAC address i and the first secret value until the generated OTA MAC address does not conflict with any OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with any OTA MAC address in the OTA MAC address list to the OTA MAC address list; the first AP maintains the number of OTA MAC addresses of the first STA in the OTA MAC address list as n.
[0207] That is, after the first STA uses the first OTA MAC address (ie, the updated OTA MAC address) to communicate, the first AP needs to update the n OTA MAC addresses of the first STA included in the OTA MAC address list.
[0208] In some embodiments, the first AP generates an initial OTA MAC address based on the first secret value and the permanent MAC address of the first STA; if the initial OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the initial OTA MAC address to the OTA MAC address list, and the initial OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list; if the initial OTA MAC address conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list, and the newly generated OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0209] In some embodiments, the first AP generates an OTA MAC address j based on the first secret value and the first OTA MAC address; if the OTA MAC address j does not conflict with the OTA MAC address in the OTA MAC address list, the first AP adds the OTA MAC address j to the OTA MAC address list; if the OTA MAC address j conflicts with the OTA MAC address in the OTA MAC address list, the first AP generates the next OTA MAC address based on the OTA MAC address j and the first secret value, until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list; if the number of OTA MAC addresses of the first STA in the OTA MAC address list is n, the first AP completes the creation of the OTA MAC address for the first STA.
[0210] In some embodiments, the first AP sends a first management frame or a last frame of a four-way handshake to the first STA;
[0211] The first management frame or the last frame of the four-way handshake is used to instruct the first STA to enable the OTA MAC address, or the first management frame or the last frame of the four-way handshake is used to instruct the first STA to switch the OTA MAC address for communication.
[0212] In some embodiments, the first management frame or the last frame of the four-way handshake carries M OTA MAC addresses indicated by the first AP that conflict with OTA MAC addresses in the OTA MAC address list maintained by the first AP, where M is an integer and M≥0.
[0213] In some embodiments, the first management frame or the last frame of the four-way handshake includes an OTA MAC presence field, which is used to indicate whether an OTA MAC address list field exists in the first management frame or the last frame of the four-way handshake, and the OTA MAC address list field is used to indicate the M OTA MAC addresses.
[0214] For example, when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, M≥1; when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake, M=0. For example, the OTA MAC Present field occupies 1 bit, a value of 1 indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, and a value of 0 indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake. For another example, the OTA MAC Present field occupies 1 bit, a value of 0 indicates that the OTA MAC Address List field is present in the first management frame or the last frame of the four-way handshake, and a value of 1 indicates that the OTA MAC Address List field is not present in the first management frame or the last frame of the four-way handshake. Of course, the OTA MAC Present field may also occupy more bits, and this application is not limited to this.
[0215] In some embodiments, the first STA temporarily uses the permanent MAC address of the first STA for communication before receiving the first management frame or the last frame of the four-way handshake.
[0216] For example, the frame structure of the first management frame may be as shown in FIG5 . Specifically, the first management frame is an Action frame. Since the values "30 to 125" in the Category field of the Action frame are reserved, this embodiment selects any value (e.g., "30") to indicate the first management frame. The control field of the first management frame includes an OTA MAC Present field. The OTA MAC Present field occupies one bit. Setting the OTA MAC Present field to "1" indicates the presence of an OTA MAC Address List field. If the first STA is currently using a permanent MAC for communication, receipt of this frame indicates that after the conflicting OTA MAC address is calculated, the next OTA MAC address is non-conflicting, and the first STA can switch to the non-conflicting OTA MAC for communication. If the first STA is currently using an OTA MAC address for communication, receipt of this frame indicates that the OTA MAC addresses indicated in the OTA MAC Address List field are conflicting and cannot be used for communication. Setting the OTA MAC Present field to "0" indicates that there is no subsequent OTA MAC Address List field, indicating that the initial OTA MAC address is non-conflicting. As shown in Figure 5, the first management frame includes an OTA MAC Address List field (optional). The OTA MAC Address List field may include M OTA MAC fields, each of which is used to indicate the M OTA MAC addresses. Each OTA MAC field occupies 6 bytes (bytes / octets).
[0217] In addition, as shown in Figure 5, the MAC header of the frame structure of the first management frame also includes: a frame control field (occupies 2 bytes), a duration field (occupies 2 bytes), a receiving address (RA) field (occupies 6 bytes), a sending address (TA) field (occupies 6 bytes), a basic service set identifier (BSSID) field (occupies 6 bytes), and a sequence control (Seqct1) field (occupies 2 bytes).
[0218] In some embodiments, the first AP sends a second management frame to the first STA;
[0219] The second management frame has the same frame format as the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
[0220] For example, when a first STA first accesses a first AP, it authenticates using its permanent MAC address. The first AP and the first STA then use the same rules to derive a first secret value as an initialization vector from shared secret information (such as a PTK or partial PTK information). Both the first STA and the first AP use the same rules (such as a hash algorithm) to calculate the initial OTA MAC address based on the first secret value and the first STA's permanent MAC address. The first AP then determines whether the generated OTA MAC address conflicts with other OTA MAC addresses in the OTA MAC address list. If so, it continues to use the conflicting OTA MAC address to calculate the next OTA MAC address, and repeats the above determination until a non-conflicting OTA MAC address is generated and added to the OTA MAC address list. At this point, the first AP can use the first management frame shown in Figure 5 to inform the first STA that OTA MAC address authentication is possible. If the first STA needs to communicate before receiving the first management frame, it temporarily uses the permanent MAC address. After receiving the first management frame, the first STA determines whether the OTA MAC bit is "1." If it is "1," it indicates that a conflicting OTA MAC address list field exists. The first STA then determines whether the generated OTA MAC address is in the conflicting OTA MAC address list. If so, it uses the conflicting OTA MAC address to generate the next OTA MAC address and repeats the determination until the generated OTA MAC address is no longer in the conflict list. This OTA MAC address is considered non-conflicting, and communication is switched to the non-conflicting OTA MAC address. Otherwise, the OTA MAC address list field does not exist, and the initial OTA MAC address is considered non-conflicting, so communication is switched to the initial OTA MAC address. Since the first AP has already saved the first non-conflicting OTA MAC address for the first STA, it can identify this non-conflicting OTA MAC address and successfully communicate. Next, the first AP maintains a list of non-conflicting OTA MAC addresses of accessing users, stores the non-conflicting OTA MAC addresses currently used and in the future by the STA associated with the first AP, and sends the conflicting OTA MAC address to the STA through the first management frame. At the same time, considering compatibility with devices that do not support OTA MAC addresses, the first AP maintains a list to store the MAC address of the first STA that does not support OTA MAC addresses.Optionally, it may be incompatible with devices that do not support OTA MAC addresses, that is, incompatible devices that do not support OTA MAC addresses are not allowed to associate with the first AP. In this case, the first AP does not need to maintain a list to store the MAC address of the first STA that does not support OTA MAC addresses. Accordingly, in the process described in this application (for example, S3-5, S4-7, S5-5, S6-7), the AP does not need to check whether the sending address TA of the received frame belongs to a device that does not support OTA MAC addresses.
[0221] Optionally, the first AP may send the first management frame to the first STA when generating a first non-conflicting OTA MAC address of the first STA (i.e., a first OTA MAC address that does not belong to the M OTA MAC addresses, or a first OTA MAC address that does not conflict with other OTA MAC addresses in the OTA MAC address list). Furthermore, after generating the nth non-conflicting OTA MAC address, i.e., after the first AP completes creation of the OTA MAC address for the first STA, the first AP sends the second management frame to the first STA.
[0222] Optionally, the first AP may also send the first management frame to the first STA when generating the nth non-conflicting OTA MAC address of the first STA (i.e., the nth OTA MAC address that does not belong to the M OTA MAC addresses, or the nth OTA MAC address that does not conflict with other OTA MAC addresses in the OTA MAC address list); wherein, after generating the nth non-conflicting OTA MAC address, the first AP completes the creation of the OTA MAC address of the first STA.
[0223] For example, assuming the first OTA MAC address is STA1-ad2, the first AP checks its maintained OTA MAC address list to determine whether STA1-ad2 is recognizable. The OTA MAC address list maintained by the first AP may be as shown in Table 1 above, with the first STA's OTA MAC address in the first column of Table 1. Since the first AP already stores STA1-ad2 in its maintained OTA MAC address list, the first AP determines that STA1-ad2 is recognizable and continues processing the received first frame. If STA1-ad2 is not in the first AP's maintained OTA MAC address list, the first AP checks one or more maintained MAC addresses that do not support OTA MAC to determine the recognizable sending address (TA). If STA1-ad2 is recognizable, when the first AP receives the first frame sent by the first STA, the values of the "To DS" and "From DS" fields in the "Frame Control" field of the frame header of the first frame can indicate to the first AP the type of frame being sent and the meaning of the address fields in the frame. When "To DS" = 0, "From DS" = 0, it means that the first frame sent by the first STA received by the first AP is a control frame / management frame; when "To DS" = 1, "From DS" = 0, it means that the first frame sent by the first STA received by the first AP is a data frame. The first AP updates the OTA MAC address corresponding to the first STA in the OTA MAC address list, which is composed of "IV1+STA1-ad n Calculate and generate STA1-ad n+1, adding it to the end of the OTA MAC address corresponding to the first STA in the OTA MAC address list, and deleting STA1-ad1. Optionally, the first STA locally sets a timestamp. Before the time indicated by the timestamp, the first STA stores the OTA MAC addresses used in the past period of time. Considering that when STA1-ad2 has not yet arrived at the first AP, the first AP may still have packets with the RA address STA1-ad1 in its internal cache, so the first STA can still receive packets with the RA address STA1-ad1. First, because STA1-ad2 has not yet arrived at the first AP, the OTA MAC address list maintained by the first AP contains STA1-ad1, so the first AP can forward the packet to the first STA. Second, because the first STA stores the OTA MAC addresses used in the past period of time in the timestamp, the first STA can further associate STA1-ad1 with the PTK by associating it with the locally cached permanent MAC address. The first STA can then receive packets with the RA address STA1-ad1 and decrypt them using the PTK.
[0224] In some embodiments, the first frame is a data frame, the receiving address (RA) in the first frame is the MAC address of the first AP, the transmitting address (TA) in the first frame is the first OTA MAC address, and the value of the Address 3 field of the first frame is all zeros, or the value of the Address 3 field of the first frame is a random number. That is, the Address 3 field in the first frame is an invalid field.
[0225] In some embodiments, the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA, wherein the second STA is the target STA of the first frame.
[0226] In some embodiments, when the tail of the frame body of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer.
[0227] Optionally, m1 = 6. Specifically, after the first AP receives the first frame, when the first AP receives the packet and parses the frame header, if "To DS" = 1, "From DS" = 0, and the value of the Address3 field is all zeros or a random number, then after integrity verification and decryption of the first frame, the first AP extracts the destination address (DA) from the frame body of the first frame, that is, the first AP extracts 6 bytes forward from the end of the frame body, thereby obtaining the permanent MAC address of the second STA.
[0228] In some embodiments, the permanent MAC address can be placed at the end of the frame body. Specifically, when the AP or STA receives a packet parsing frame header, if "To DS" = 1, "From DS" = 0, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the DA is extracted from the frame body, that is, the AP or STA extracts 6 bytes from the end of the frame body forward; when the AP or STA receives a packet parsing frame header, if "To DS" = 0, "From DS" = 1, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the SA is extracted from the frame body, that is, the AP or STA extracts 6 bytes from the end of the frame body forward; when the AP or STA receives a packet parsing frame header, if "To DS" = 1, "From DS" = 1, and the value of Address3 is all zeros, then after performing integrity verification and decryption on the frame, the SA is extracted from the frame body, that is, the AP or STA extracts 12 bytes from the end of the frame body forward, with the first 6 bytes being the DA and the last 6 bytes being the SA.
[0229] For example, the first frame may be as shown in FIG8 , and the tail of the frame body of the first frame includes a MAC field, and the MAC field is used to indicate the permanent MAC address of the second STA.
[0230] In some embodiments, the permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
[0231] In some embodiments, the first AP extracts the permanent MAC address of the second STA from m1 bytes starting from the end of the frame body of the first frame; the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address, and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list based on the permanent MAC address of the second STA; the first AP sends a third frame to the second STA; wherein the transmitting address (TA) in the third frame is the MAC address of the first AP, the receiving address (RA) in the third frame is the OTA MAC address currently used by the second STA, the permanent MAC address of the first STA is carried in m1 bytes starting from the end of the frame body of the third frame, and the value of the Address 3 field of the third frame is all zeros, or the value of the Address 3 field of the third frame is a random number. That is, the Address 3 field in the third frame is an invalid field. Accordingly, when the second STA receives the third frame sent by the first AP, it can know the type of frame sent by the first AP and the meaning of the address field in the frame according to the values of "To DS" and "From DS" in the "Frame Control" field of the frame header of the third frame. Specifically, when "To DS" = 0 and "From DS" = 1, it means that the third frame sent by the first AP received by the second STA is a data frame. Furthermore, after applying integrity verification and decryption to the third frame, the second STA extracts SA, that is, the permanent MAC address MAC1 of the first STA, from the frame body of the third frame. And the second STA obtains the locally stored permanent MAC address MAC2 (that is, the permanent MAC address of the second STA is MAC2), and the second STA sets the values of SA and DA in the frame header of the third frame to MAC1 and MAC2 respectively, and submits it to the upper layer for processing.
[0232] In some embodiments, the first AP extracts the permanent MAC address of the second STA from the m1 bytes starting from the end of the frame body of the first frame, and the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address; the first AP sends a fourth frame to the second AP; wherein, the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the fourth frame are both all zeros, or, the values of the address 3 field and the address 4 field of the fourth frame are both random numbers; wherein, the first m1 bytes of the 2m1 bytes starting from the end of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the end of the frame body of the fourth frame carry the permanent MAC address of the first STA. Accordingly, the second AP receives the fourth frame sent by the first AP; the second AP extracts the permanent MAC address of the first STA and the permanent MAC address of the second STA from the 2m1 bytes starting from the end of the frame body of the fourth frame; the second AP obtains the OTA MAC address currently used by the second STA from the over-the-air OTA MAC address list maintained by the second AP based on the permanent MAC address of the second STA; the second AP sends a seventh frame to the second STA; wherein the Transmit Address (TA) in the seventh frame is the MAC address of the second AP, the Receive Address (RA) in the seventh frame is the OTA MAC address currently used by the second STA, the first m1 bytes starting from the end of the frame body of the seventh frame carry the permanent MAC address of the first STA, and the Address 3 field of the seventh frame has a value of all zeros or a random number. Further, after applying integrity verification and decryption to the seventh frame, the second STA extracts the SA, i.e., the permanent MAC address MAC1 of the first STA, from the frame body of the seventh frame. The second STA obtains the locally stored permanent MAC address MAC2 (ie, the permanent MAC address of the second STA is MAC2), and the second STA sets the values of SA and DA in the frame header of the seventh frame to MAC1 and MAC2 respectively, and submits it to the upper layer for processing.
[0233] It should be noted that after the first AP inserts the permanent MAC address of the first STA and the permanent MAC address of the second STA at the end of the frame body of the fourth frame, the first AP encrypts and integrity protects the fourth frame using a secret value shared by all APs in an Extended Service Set (ESS). The second AP decrypts the fourth frame based on the secret value shared by all APs in the ESS.
[0234] In some embodiments, when the header of the frame body of the first frame carries the permanent MAC address of the second STA, the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes an SA existence field and a target address (DA) existence field, wherein the value of the SA existence field is used to indicate that there is no SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, and the DA is the permanent MAC address of the second STA.
[0235] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field of the header of the frame body of the first frame.
[0236] In some embodiments, the permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
[0237] It should be noted that the first 4 bits of the 3rd byte and the 4th byte in the CCMP / GCMP header are reserved. Therefore, the value of any bit of the 3rd byte of the CCMP / GCMP header, or any bit of the first 4 bits of the 4th byte of the CCMP / GCMP header (such as the 4th bit in the 4th byte, Ext Header in Figure 9) can be set to 1 to instruct the AP or STA to extract the permanent MAC address (SA / DA) from the information element in the frame body header.
[0238] In some embodiments, the permanent MAC address may be placed in the header of the frame body. Specifically, the third byte and the first four bits of the fourth byte of the CCMP / GCMP header are reserved. Therefore, the value of the fourth bit in the fourth byte of the CCMP / GCMP header may be set to 1 to instruct the AP or STA to extract the permanent MAC address (SA and / or DA) from the information element in the frame body header. When the "Element ID" = 255, the "Extended Element ID Extension" field (94-255 are reserved and unused) exists in the element. Here, "Element ID" = 255 and "Element ID Extension" = 94 may be used to indicate to the AP or STA the type of the information element, i.e., the "Address Element". The AP or STA then checks the first and second bits in the "Control". If "SA Present" = 1 and "DA Present" = 0, it indicates that the AP or STA needs to extract the SA from the "Address Element". If "SA Present" = 0 and "DA Present" = 1, it indicates that the AP or STA needs to extract the SA from the "Address Element". If "SA Present" = 1 and "DA Present" = 1, the AP or STA needs to extract the DA and SA from the "Address Element".
[0239] For example, the first frame may be as shown in FIG9 , where the key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame includes an Ext Header field (i.e., the first bit). The Ext Header field occupies one bit and is set to 1 or 0, indicating that the first AP extracts the permanent MAC address of the second STA from the Address Element field in the header of the frame body of the first frame. As shown in FIG9 , the header of the frame body of the first frame includes an Address Element field, and the control field in the Address Element field includes a Source Address (SA) presence field and a Destination Address (DA) presence field.
[0240] Specifically, as shown in FIG9 , the SA presence field occupies 1 bit. A value of 1 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 0 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. Alternatively, a value of 0 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 1 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. For the first frame, the value of the SA presence field indicates that the SA field for indicating SA does not exist in the address element field.
[0241] Specifically, as shown in Figure 9, the DA presence field occupies 1 bit. A value of 1 in the DA presence field indicates that the address element field does not contain a DA field for indicating a DA, and a value of 0 in the DA presence field indicates that the address element field contains a DA field for indicating a DA. Alternatively, a value of 0 in the DA presence field indicates that the address element field does not contain a DA field for indicating a DA, and a value of 1 in the DA presence field indicates that the address element field contains a DA field for indicating a DA. For the first frame, the value of the DA presence field indicates that the address element field contains a DA field for indicating a DA, and the DA is the permanent MAC address of the second STA.
[0242] In addition, as shown in Figure 9, the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame also includes the following fields: PN0 field, PN1 field, reserved field, PN2 field, PN3 field, PN4 field, and PN5 field. The key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the first frame also includes: reserved field, FTM field, Ext IV field, and key identification field. The first frame also includes: data field, MIC field, and frame check field.
[0243] In some embodiments, the first AP obtains the permanent MAC address of the second STA from the DA field in the address element field of the first frame; the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address, and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list based on the permanent MAC address of the second STA; the first AP sends a fifth frame to the second STA; wherein the TA in the fifth frame is the MAC address of the first AP, the RA in the fifth frame is the OTA MAC address currently used by the second STA, and the value of the Address 3 field of the fifth frame is all zeros, or the value of the Address 3 field of the fifth frame is a random number; wherein the header of the frame body of the fifth frame includes an Address Element field, and the control field in the Address Element field includes an SA Existence field and a DA Existence field, the value of the SA Existence field is used to indicate that an SA field for indicating an SA is present in the Address Element field, and the value of the DA Existence field is used to indicate that a DA field for indicating a DA is not present in the Address Element field, and the SA is the permanent MAC address of the first STA. Accordingly, when the second STA receives the fifth frame sent by the first AP, it can know the type of frame sent by the first AP and the meaning of the address field in the frame according to the values of "To DS" and "From DS" in the "Frame Control" field of the frame header of the fifth frame. Specifically, when "To DS" = 0 and "From DS" = 1, it means that the fifth frame sent by the first AP received by the second STA is a data frame. Furthermore, after applying integrity verification and decryption to the fifth frame, the second STA extracts SA, that is, the permanent MAC address MAC1 of the first STA, from the frame body of the fifth frame. And the second STA obtains the locally stored permanent MAC address MAC2 (that is, the permanent MAC address of the second STA is MAC2), and the second STA sets the values of SA and DA in the frame header of the third frame to MAC1 and MAC2 respectively, and submits it to the upper layer for processing.
[0244] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the fifth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field in the header of the frame body of the fifth frame.
[0245] In some embodiments, the permanent MAC address of the first STA is the address element field inserted by the first AP into the header of the frame body of the fifth frame before applying encryption and integrity protection.
[0246] In some embodiments, the first AP extracts the permanent MAC address of the second STA from the address element field included in the header of the frame body of the first frame, and the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address; the first AP sends a sixth frame to the second AP; wherein the TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, the values of the address 3 field and the address 4 field of the sixth frame are both all zero, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers; wherein the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that an SA field for indicating SA exists in the address element field, the value of the DA existence field is used to indicate that a DA field for indicating DA exists in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA. Correspondingly, the second AP obtains the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field included in the header of the frame body of the sixth frame; the second AP obtains the OTA MAC address currently used by the second STA from the over-the-air OTA MAC address list maintained by the second AP based on the permanent MAC address of the second STA; the second AP sends an eighth frame to the second STA; wherein the transmitting address (TA) in the eighth frame is the MAC address of the second AP, the receiving address (RA) in the eighth frame is the OTA MAC address currently used by the second STA, and the value of the address 3 field of the eighth frame is all zeros, or the value of the address 3 field of the eighth frame is a random number; wherein the header of the frame body of the eighth frame includes an address element field, and the control field in the address element field includes an SA presence field and a DA presence field, the value of the SA presence field is used to indicate that an SA field for indicating an SA is present in the address element field, and the value of the DA presence field is used to indicate that a DA field for indicating a DA is not present in the address element field, and the SA is the permanent MAC address of the first STA. Furthermore, after applying integrity verification and decryption to the eighth frame, the second STA extracts SA, i.e., the permanent MAC address MAC1 of the first STA, from the frame body of the eighth frame. The second STA obtains the locally stored permanent MAC address MAC2 (i.e., the permanent MAC address of the second STA is MAC2). The second STA sets the values of SA and DA in the frame header of the eighth frame to MAC1 and MAC2, respectively, and submits the frame to the upper layer for processing.
[0247] It should be noted that after the first AP inserts the permanent MAC address of the first STA and the permanent MAC address of the second STA into the address element field included in the header of the frame body of the sixth frame, the first AP encrypts and integrity protects the sixth frame using a secret value shared by all APs in the ESS. The second AP decrypts the sixth frame based on the secret value shared by all APs in the ESS.
[0248] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
[0249] In some embodiments, the permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before applying encryption and integrity protection.
[0250] In some embodiments, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0251] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the eighth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field of the header of the frame body of the eighth frame.
[0252] In some embodiments, the permanent MAC address of the first STA is the address element field inserted by the second AP into the header of the frame body of the eighth frame before applying encryption and integrity protection.
[0253] In some embodiments, the first frame is a management frame or a control frame, the values of the "To Distribution System" field and the "From Distribution System" field in the first frame are both 0, the TA in the first frame is the first OTA MAC address, and the RA in the first frame is the MAC address of the first AP. Optionally, the first AP further transmits a second frame to the first STA, wherein the TA in the second frame is the MAC address of the first AP, and the RA in the second frame is the first OTA MAC address. Accordingly, the first STA obtains the locally stored permanent MAC address of the first STA, replaces the RA in the second frame with the permanent MAC address of the first STA, and submits the second frame after the RA replacement to the upper layer for processing.
[0254] It should be noted that, when the first frame is a management frame or a control frame, the first frame and the second frame may be frames with no association relationship (i.e., the second frame is not a response to the first frame). Of course, the first frame and the second frame may also be frames with an association relationship (i.e., the second frame is a response to the first frame).
[0255] Specifically, as shown in Figure 10, the first STA obtains the locally stored currently used OTA MAC address, that is, the first OTA MAC address; and the first STA sends a first frame to the first AP, wherein the first frame is a management frame or a control frame, the values of the sent to distribution system field and the from distribution system field in the first frame are both 0, and the sending address (TA) in the first frame is the first OTA MAC address, and the receiving address (RA) in the first frame is the MAC address of the first AP. After receiving the first frame, the first AP checks the maintained OTA MAC address list to determine whether the MAC address of the first AP is recognizable. Specifically, the first AP retrieves the first OTA MAC address from the n OTA MAC addresses of the first STA included in the OTA MAC address list maintained by the first AP. If the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame. If the first AP does not retrieve the first OTA MAC address from the OTA MAC address list, the first AP checks one or more maintained OTA MAC addresses that do not support OTA MAC addresses to determine whether the first OTA MAC address is recognizable. If the first AP retrieves the first OTA MAC address from the one or more OTA MAC addresses, the first AP continues to process the first frame; otherwise, the first frame is discarded. After processing the first frame, the first AP sends a second frame to the first STA, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address; and the first STA obtains the locally stored permanent MAC address of the first STA, and replaces the RA of the second frame with the permanent MAC address of the first STA, and submits the second frame after the RA is replaced to the upper layer for processing.
[0256] Therefore, in an embodiment of the present application, a first AP receives a first frame sent by a first STA using a first OTA MAC address; and the first AP searches for the first STA's n OTA MAC addresses included in an OTA MAC address list maintained by the first AP. The OTA MAC address list includes the OTA MAC addresses of at least one STA associated with the first AP, including the first STA, and n is a positive integer. If the first AP finds the first OTA MAC address in the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first AP discards the first frame. In other words, the first STA can proactively update its OTA MAC address at any time, thereby better protecting the privacy of the first STA's MAC address. Furthermore, the OTA MAC address list maintained by the first AP includes the OTA MAC addresses permitted to be used by the first STA currently and in the future. Therefore, the first AP can identify the first STA's updated OTA MAC address based on the OTA MAC address list, efficiently completing the identity verification process after the OTA MAC address change.
[0257] The following describes in detail the solution of the first STA (STA1) using the OTA MAC address to send a data frame to the second STA (STA2) in this application through Examples 1 to 4.
[0258] In Example 1, as shown in FIG12 , the process of STA1 sending a data frame to STA2 through the AP may be as follows S3 - 1 to S3 - 13 .
[0259] S3-1. STA1 obtains the currently used OTA MAC address MAC-OTA1 stored locally;
[0260] S3-2. STA1 sets the value of the Address 3 field in the header of Data Frame 1 to all zeros.
[0261] S3-3 Before applying encryption and integrity protection, STA1 inserts the MAC address MAC2 of the destination address STA2 into the tail of the frame body of the data frame 1 (as shown in Figure 8);
[0262] S3-4. STA1 sends data frame 1 to the AP, where RA = MAC-AP and TA = MAC-OTA1.
[0263] S3-5. The AP checks the OTA MAC address list it maintains to determine whether MAC-OTA1 is recognizable. If MAC-OTA1 is recognizable, the AP checks whether the value of the Address 3 field in the frame header of Data Frame 1 is all zeros. If the value of the Address 3 field in the frame header of Data Frame 1 is all zeros, the AP extracts the DA, i.e., STA2's permanent MAC address MAC2, from the end of the frame body of Data Frame 1 after applying integrity verification and decryption to Data Frame 1. If the value of the Address 3 field in the frame header of Data Frame 1 is not all zeros, the AP does not need to perform additional processing on Data Frame 1. If MAC-OTA1 is not recognizable, the AP checks the MAC address list that does not support OTA MAC to determine whether TA is recognizable. If TA is recognizable, the AP does not need to perform additional processing on Data Frame 1. If TA is not recognizable, the AP discards Data Frame 1.
[0264] S3-6. The AP searches for STA1's permanent MAC address MAC1 through MAC-OTA1.
[0265] S3-7. The AP uses STA2's permanent MAC address MAC2 to find STA2's current OTA MAC address MAC-OTA2.
[0266] S3-8. The AP sets the value of the Address3 field in the header of data frame 2 to all zeros.
[0267] S3-9. The AP inserts MAC1 into the end of the frame body of data frame 2 before applying encryption and integrity protection to data frame 2 (as shown in Figure 8);
[0268] S3-10. The AP sends data frame 2 to STA2, where the address of data frame 2 is TA = MAC-AP and RA = MAC-OTA2.
[0269] S3-11. After applying integrity verification and decryption to data frame 2, STA2 extracts SA, i.e., STA1's permanent MAC address MAC1, from the end of the frame body of data frame 2.
[0270] S3-12. STA2 obtains the locally stored permanent MAC address MAC2;
[0271] S3-13. STA2 sets the SA and DA values in the frame header of data frame 2 to MAC1 and MAC2 respectively, and passes it to the upper layer for processing.
[0272] In Example 2, as shown in FIG13 , the process of STA1 sending a data frame to STA2 through the AP may be as follows S4-1 to S4-17.
[0273] S4-1. STA1 obtains the currently used OTA MAC address MAC-OTA1 stored locally;
[0274] S4-2. STA1 sets the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 1 to 1 (instructing the AP to extract the permanent MAC address from the address element field in the header of the frame body of data frame 1);
[0275] S4-3. SAT1 sets the SA (SA Present) field in the Address Element field of the header of the frame body of data frame 1 to 0 (indicating that the SA field is not present in the Address Element field) and the DA (DA Present) field to 1 (indicating that the DA field is present in the Address Element field).
[0276] S4-4. STA1 sets the value of Address3 in Data Frame 1 to any value (e.g., a random number, all zeros, etc.);
[0277] S4-5. STA1 inserts the MAC address MAC2 of the destination address STA2 into the DA field of the address element field of data frame 1 before applying encryption and integrity protection (as shown in Figure 9);
[0278] S4-6. STA1 sends data frame 1 to the AP, where RA = MAC-AP and TA = MAC-OTA1.
[0279] S4-7. The AP checks the OTA MAC address list it maintains to determine whether MAC-OTA1 is recognizable. If MAC-OTA1 is recognizable, the AP checks whether the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is 1. If the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is 1, the AP applies integrity verification and decryption to data frame 1 and extracts the DA, i.e., the permanent MAC address MAC2 of STA2, from the DA field in the address element field based on the values of the SA presence field and the DA presence field. If the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is not 1, the AP does not need to perform additional processing on data frame 1. If MAC-OTA1 is not recognizable, the AP checks the maintained MAC address list of MAC addresses that do not support OTA MAC to determine whether the TA is recognizable. If the TA is recognizable, the AP does not need to perform additional processing on data frame 1. If the TA is not recognizable, the AP discards data frame 1.
[0280] S4-8. The AP searches for STA1's permanent MAC address MAC1 through MAC-OTA1.
[0281] S4-9. The AP uses STA2's permanent MAC address MAC2 to find STA2's current OTA MAC address MAC-OTA2.
[0282] S4-10. The AP sets the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 2 to 1 (instructing STA2 to extract the permanent MAC address from the address element field in the header of the frame body of data frame 2);
[0283] S4-11. The AP sets the SA (SA Present) field in the Address Element field of the header of the frame body of data frame 2 to 1 (indicating the presence of an SA field in the Address Element field) and the DA (DA Present) field to 0 (indicating the absence of a DA field in the Address Element field).
[0284] S4-12. The AP sets the value of Address3 in data frame 2 to any value (e.g., a random number, all zeros, etc.);
[0285] S4-13. Before applying encryption and integrity protection to data frame 2, the AP inserts STA1's permanent MAC address MAC1 into the SA field in the address element field of data frame 2 (as shown in Figure 9);
[0286] S4-14. AP sends data frame 2 to STA2, where the address of data frame 2 is TA = MAC-AP and RA = MAC-OTA2.
[0287] S4-15. After applying integrity verification and decryption to data frame 2, STA2 extracts SA, i.e., STA1's permanent MAC address MAC1, from the SA field in the address element field based on the values of the SA existence field and the DA existence field.
[0288] S4-16. STA2 obtains the locally stored permanent MAC address MAC2;
[0289] S4-17. STA2 sets the SA and DA values in the frame header of data frame 2 to MAC1 and MAC2 respectively, and passes it to the upper layer for processing.
[0290] In embodiment 3, as shown in FIG14 , the process of STA1 sending a data frame to STA2 through AP1 and AP2 may be as follows S5-1 to S5-17.
[0291] S5-1. STA1 obtains the currently used OTA MAC address MAC-OTA1 stored locally;
[0292] S5-2. STA1 sets the value of the Address 3 field in the header of Data Frame 1 to all zeros.
[0293] S5-3 before applying encryption and integrity protection, STA1 inserts the destination address STA2's MAC address MAC2 into the tail of the frame body of the data frame 1 (as shown in Figure 8);
[0294] S5-4. STA1 sends data frame 1 to AP1, where RA = MAC-AP1 and TA = MAC-OTA1.
[0295] S5-5. AP1 checks the OTA MAC address list it maintains to determine whether MAC-OTA1 is recognizable. If MAC-OTA1 is recognizable, AP1 checks whether the value of the Address 3 field in the frame header of Data Frame 1 is all zeros. If the value of the Address 3 field in the frame header of Data Frame 1 is all zeros, AP1 extracts the DA, i.e., STA2's permanent MAC address MAC2, from the end of the frame body of Data Frame 1 after applying integrity verification and decryption to Data Frame 1. If the value of the Address 3 field in the frame header of Data Frame 1 is not all zeros, AP1 does not need to perform additional processing on Data Frame 1. If MAC-OTA1 is not recognizable, AP1 checks the MAC address list that it maintains that does not support OTA MAC to determine whether TA is recognizable. If TA is recognizable, AP1 does not need to perform additional processing on Data Frame 1. If TA is not recognizable, AP1 discards Data Frame 1.
[0296] S5-6. AP1 searches STA1's permanent MAC address MAC1 through MAC-OTA1.
[0297] S5-7. AP1 sets the values of the Address 3 and Address 4 fields in the header of Data Frame 2 to all zeros.
[0298] S5-8. Before applying encryption and integrity protection to data frame 2, AP1 inserts STA1's permanent MAC address MAC1 and STA2's permanent MAC address MAC2 into the end of the frame body of data frame 2 (as shown in Figure 8). AP1 encrypts data frame 2 using a secret value shared by all APs in the ESS.
[0299] S5-9. AP1 sends data frame 2 to AP2, where the addresses of data frame 2 are TA = MAC-AP1 and RA = MAC-AP 2.
[0300] S5-10. AP2 checks whether the value of the Address 3 field in the header of Data Frame 2 is all zeros. If the value of the Address 3 field in the header of Data Frame 2 is all zeros, AP2 applies integrity verification and decryption to Data Frame 2 and extracts the DA (MAC2) and SA (MAC1) from the end of the body of Data Frame 2. If the value of the Address 3 field in the header of Data Frame 2 is not all zeros, AP2 does not need to perform any additional processing on Data Frame 2.
[0301] S5-11. AP2 uses STA2's permanent MAC address MAC2 to find STA2's current OTA MAC address (MAC-OTA2).
[0302] S5-12. AP2 sets the value of the Address 3 field in the header of Data Frame 3 to all zeros.
[0303] S5-13. AP2 inserts MAC1 into the end of the frame body of data frame 3 before applying encryption and integrity protection to data frame 3;
[0304] S5-14. AP2 sends data frame 3 to STA2, where the addresses of data frame 3 are TA = MAC-AP2 and RA = MAC-OTA2.
[0305] S5-15. After applying integrity verification and decryption to data frame 3, STA2 extracts SA, i.e., STA1's permanent MAC address MAC1, from the end of the frame body of data frame 3.
[0306] S5-16. STA2 obtains the locally stored permanent MAC address MAC2;
[0307] S5-17. STA2 sets the SA and DA values in the frame header of data frame 3 to MAC1 and MAC2 respectively, and passes it to the upper layer for processing.
[0308] In embodiment 4, as shown in FIG15 , the process of STA1 sending a data frame to STA2 through AP1 and AP2 may be as follows S6 - 1 to S6 - 23 .
[0309] S6-1. STA1 obtains the currently used OTA MAC address MAC-OTA1 stored locally;
[0310] S6-2. STA1 sets the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 1 to 1 (instructing AP1 to extract the permanent MAC address from the address element field in the header of the frame body of data frame 1);
[0311] S6-3. SAT1 sets the SA (SA Present) field in the Address Element field of the header of the frame body of data frame 1 to 0 (indicating that the SA field is not present in the Address Element field) and the DA (DA Present) field to 1 (indicating that the DA field is present in the Address Element field).
[0312] S6-4. STA1 sets the value of Address3 in Data Frame 1 to any value (e.g., a random number, all zeros, etc.);
[0313] S6-5. Before applying encryption and integrity protection to data frame 1, STA1 inserts the MAC address MAC2 of the destination address STA2 into the DA field in the address element field of data frame 1 (as shown in Figure 9);
[0314] S6-6. STA1 sends data frame 1 to AP1, where RA = MAC-AP1 and TA = MAC-OTA1.
[0315] S6-7. AP1 checks the OTA MAC address list it maintains to determine whether MAC-OTA1 is recognizable. If MAC-OTA1 is recognizable, AP1 checks whether the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is 1. If the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is 1, AP1 applies integrity verification and decryption to data frame 1 and extracts the DA, i.e., STA2's permanent MAC address MAC2, from the DA field in the address element field based on the values of the SA presence field and the DA presence field. If the value of the 4th bit in the 4th byte of the CCMP / GCMP header of data frame 1 is not 1, AP1 does not need to perform additional processing on data frame 1. If MAC-OTA1 is not recognizable, AP1 checks the maintained MAC address list of MAC addresses that do not support OTA MAC to determine whether TA is recognizable. If TA is recognizable, AP1 does not need to perform additional processing on data frame 1. If TA is not recognizable, AP1 discards data frame 1.
[0316] S6-8. AP1 searches MAC-OTA1 for STA1's permanent MAC address MAC1.
[0317] S6-9. AP1 sets the value of bit 4 of byte 4 of the CCMP / GCMP header of data frame 2 to 1 (instructing AP2 to extract the permanent MAC address from the address element field in the header of the frame body of data frame 2).
[0318] S6-10. AP1 sets the value of the SA Present field in the Address Element field of the header of the frame body of data frame 2 to 1 (indicating that the SA field exists in the Address Element field) and the value of the DA Present field to 1 (indicating that the DA field exists in the Address Element field).
[0319] S6-11. AP1 sets the values of address 3 and address 4 of the frame body of data frame 2 to any value (e.g., a random number, all zeros, etc.);
[0320] S6-12. AP1 inserts MAC1 and MAC2 into the SA field and DA field of the address element field, respectively, before applying encryption and integrity protection to data frame 2. AP1 encrypts data frame 2 using a secret value shared by all APs in the ESS.
[0321] S6-13. AP1 sends data frame 2 to AP2, where TA = MAC-AP1 and RA = MAC-AP2.
[0322] S6-14. AP2 checks whether the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 2 is 1. If the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 2 is 1, AP2 applies integrity verification and decryption to data frame 2 and, based on the values of the SA Present field and the DA Present field, extracts the SA (MAC1, the permanent MAC address of STA1) from the SA field of the Address Element field and the DA (MAC2, the permanent MAC address of STA2) from the DA field. If the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 2 is not 1, AP2 does not need to perform any additional processing on data frame 2.
[0323] S6-15. AP2 uses STA2's permanent MAC address MAC2 to find STA2's current OTA MAC address MAC-OTA2.
[0324] S6-16. AP2 sets the value of bit 4 in the fourth byte of the CCMP / GCMP header of data frame 3 to 1 (instructing STA2 to extract the permanent MAC address from the address element field in the header of the frame body of data frame 3);
[0325] S6-17. AP2 sets the SA (SA Present) field in the Address Element field of the header of the frame body of data frame 3 to 1 (indicating the presence of an SA field in the Address Element field) and the DA (DA Present) field to 0 (indicating the absence of a DA field in the Address Element field).
[0326] S6-18. AP2 sets the value of Address3 in Data Frame 3 to any value (e.g., a random number, all zeros, etc.);
[0327] S6-19. AP2 inserts the permanent MAC address MAC1 of the source address STA1 into the SA field of the address element field of data frame 3 before applying encryption and integrity protection to the data frame 3 (as shown in Figure 9);
[0328] S6-20. AP2 sends data frame 3 to STA2, where the address of data frame 3 is TA = MAC-AP2, and RA = MAC-OTA2.
[0329] S6-21. After applying integrity verification and decryption to data frame 3, STA2 extracts SA, i.e., STA1's permanent MAC address MAC1, from the SA field in the address element field based on the values of the SA existence field and the DA existence field.
[0330] S6-22. STA2 obtains the locally stored permanent MAC address MAC2;
[0331] S6-23. STA2 sets the SA and DA values in the frame header of data frame 3 to MAC1 and MAC2 respectively, and passes it to the upper layer for processing.
[0332] The above, in combination with Figures 11 to 15, describes in detail an embodiment of the first AP side of the present application. The following, in combination with Figure 16, describes in detail an embodiment of the second AP side of the present application. It should be understood that the embodiment of the second AP side corresponds to the embodiment of the first AP side, and similar descriptions can refer to the embodiment of the first AP side.
[0333] FIG16 is a schematic flowchart of a wireless communication method 400 according to an embodiment of the present application. As shown in FIG16 , the wireless communication method 400 may include at least part of the following contents:
[0334] S410, the second AP receives the fourth frame sent by the first AP; wherein, the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are both all zeros, or, the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers; wherein, the first m1 bytes of the 2m1 bytes starting from the end of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the end of the frame body of the fourth frame carry the permanent MAC address of the first STA, and m1 is a positive integer.
[0335] Optionally, m1=6. Specifically, after the second AP receives the fourth frame, when the second AP receives the packet and parses the frame header, if "To DS"=1, "From DS"=1, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zero, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers, then after integrity verification and decryption of the fourth frame, the second AP extracts the source address (SA) and the destination address (DA) from the frame body of the fourth frame. Specifically, the second AP extracts the DA, that is, the permanent MAC address of the second STA, from the first 6 bytes of the 12 bytes starting from the end of the frame body; and the second AP extracts the SA, that is, the permanent MAC address of the first STA, from the last 6 bytes of the 12 bytes starting from the end of the frame body.
[0336] For example, the fourth frame may be as shown in FIG8 , and the tail of the frame body of the fourth frame includes a MAC field, and the MAC field is used to indicate the permanent MAC address of the first STA and the permanent MAC address of the second STA.
[0337] In some embodiments, the second AP extracts the permanent MAC address of the first STA and the permanent MAC address of the second STA from the 2m1 bytes starting from the end of the frame body of the fourth frame; the second AP obtains the OTA MAC address currently used by the second STA from the over-the-air OTA MAC address list maintained by the second AP based on the permanent MAC address of the second STA; the second AP sends a seventh frame to the second STA; wherein the transmitting address TA in the seventh frame is the MAC address of the second AP, the receiving address (RA) in the seventh frame is the OTA MAC address currently used by the second STA, the permanent MAC address of the first STA is carried in the m1 bytes starting from the end of the frame body of the seventh frame, and the value of the Address 3 field of the seventh frame is all zeros, or the value of the Address 3 field of the seventh frame is a random number. Further, after applying integrity verification and decryption to the seventh frame, the second STA extracts SA, i.e., the permanent MAC address MAC1 of the first STA, from the frame body of the seventh frame. The second STA obtains the locally stored permanent MAC address MAC2 (ie, the permanent MAC address of the second STA is MAC2), and the second STA sets the values of SA and DA in the frame header of the seventh frame to MAC1 and MAC2 respectively, and submits it to the upper layer for processing.
[0338] It should be noted that after the first AP inserts the permanent MAC address of the first STA and the permanent MAC address of the second STA at the end of the frame body of the fourth frame, the first AP encrypts and integrity protects the fourth frame using a secret value shared by all APs in the ESS. The second AP decrypts the fourth frame based on the secret value shared by all APs in the ESS.
[0339] It should be noted that the frame structure of the seventh frame may refer to the first frame and the fourth frame shown in FIG8 , and will not be described in detail here.
[0340] Therefore, in an embodiment of the present application, a second AP receives a fourth frame sent by a first AP; wherein the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers; wherein the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, where m1 is a positive integer. That is, the first AP can protect the privacy of the permanent MAC address by inserting the permanent MAC address of the target STA (the second STA) into the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the frame it sends, and inserting the permanent MAC address of the source STA (the first STA) into the last m1 bytes of the 2m1 bytes starting from the tail of the frame body.
[0341] The above, in combination with Figures 11 to 15, describes in detail an embodiment of the first AP side of the present application. The following, in combination with Figure 16, describes in detail an embodiment of the second AP side of the present application. It should be understood that the embodiment of the second AP side corresponds to the embodiment of the first AP side, and similar descriptions can refer to the embodiment of the first AP side.
[0342] FIG17 is a schematic flowchart of a wireless communication method 500 according to an embodiment of the present application. As shown in FIG17 , the wireless communication method 500 may include at least part of the following contents:
[0343] S510, the second AP receives the sixth frame sent by the first AP; wherein the sending address TA in the sixth frame is the MAC address of the first AP, the receiving address RA in the sixth frame is the MAC address of the second AP, the values of the address 3 field and the address 4 field of the sixth frame are both all zero, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers; wherein the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that an SA field for indicating SA exists in the address element field, the value of the DA existence field is used to indicate that a DA field for indicating DA exists in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
[0344] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
[0345] In some embodiments, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0346] It should be noted that the first 4 bits of the 3rd byte and the 4th byte in the CCMP / GCMP header are reserved. Therefore, the value of any bit of the 3rd byte of the CCMP / GCMP header, or any bit of the first 4 bits of the 4th byte of the CCMP / GCMP header (such as the 4th bit in the 4th byte, Ext Header in Figure 9) can be set to 1 to instruct the AP or STA to extract the permanent MAC address (SA / DA) from the information element in the frame body header.
[0347] In some embodiments, the permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before applying encryption and integrity protection.
[0348] Optionally, after the second AP receives the sixth frame, when the second AP receives the packet and parses the frame header, if "To DS" = 1, "From DS" = 1, and the values of the address 3 field and the address 4 field of the sixth frame are both all zero, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers, then after integrity verification and decryption of the sixth frame, the source address (SA) and the destination address (DA) are extracted from the frame body of the sixth frame. Specifically, the second AP extracts SA from the SA field in the address element field included in the header of the frame body, that is, the permanent MAC address MAC1 of the first STA; and the second AP extracts DA from the DA field in the address element field included in the header of the frame body, that is, the permanent MAC address MAC2 of the second STA.
[0349] For example, the sixth frame may be as shown in FIG9 , where the key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the sixth frame includes an Ext Header field (i.e., the first bit). The Ext Header field occupies 1 bit, and the Ext Header field is 1 or 0, which is used to instruct the first AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the Address Element field in the header of the frame body of the sixth frame. As shown in FIG9 , the header of the frame body of the sixth frame includes an Address Element field, and the control field in the Address Element field includes a Source Address (SA) presence field and a Destination Address (DA) presence field.
[0350] Specifically, as shown in Figure 9, the SA presence field occupies 1 bit. A value of 1 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 0 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. Alternatively, a value of 0 in the SA presence field indicates that the SA field for indicating SA does not exist in the address element field, and a value of 1 in the SA presence field indicates that the SA field for indicating SA exists in the address element field. For the sixth frame, the value of the SA presence field indicates that the SA field for indicating SA exists in the address element field, and the SA is the permanent MAC address of the first STA.
[0351] Specifically, as shown in Figure 9, the DA presence field occupies one bit. A value of 1 in the DA presence field indicates that the address element field does not contain a DA field indicating a DA, and a value of 0 in the DA presence field indicates that the address element field contains a DA field indicating a DA. Alternatively, a value of 0 in the DA presence field indicates that the address element field does not contain a DA field indicating a DA, and a value of 1 in the DA presence field indicates that the address element field contains a DA field indicating a DA. For the sixth frame, the value of the DA presence field indicates that the address element field contains a DA field indicating a DA, and the DA is the permanent MAC address of the second STA.
[0352] In addition, as shown in Figure 9, the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the sixth frame also includes the following fields: PN0 field, PN1 field, reserved field, PN2 field, PN3 field, PN4 field, and PN5 field. The key identification field of the CCMP / GCMP header (CCMP Header / GCMP Header) of the frame body of the sixth frame also includes: reserved field, FTM field, Ext IV field, and key identification field. The sixth frame also includes: data field, MIC field, and frame check field.
[0353] In some embodiments, the second AP obtains the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field included in the header of the frame body of the sixth frame; the second AP obtains the OTA MAC address currently used by the second STA from the over-the-air OTA MAC address list maintained by the second AP based on the permanent MAC address of the second STA; the second AP sends an eighth frame to the second STA; wherein the transmitting address TA in the eighth frame is the MAC address of the second AP, the receiving address (RA) in the eighth frame is the OTA MAC address currently used by the second STA, and the value of the address 3 field of the eighth frame is all zeros, or the value of the address 3 field of the eighth frame is a random number; wherein the header of the frame body of the eighth frame includes an address element field, and the control field in the address element field includes an SA presence field and a DA presence field, the value of the SA presence field is used to indicate that an SA field for indicating an SA is present in the address element field, and the value of the DA presence field is used to indicate that a DA field for indicating a DA is not present in the address element field, and the SA is the permanent MAC address of the first STA. Furthermore, after applying integrity verification and decryption to the eighth frame, the second STA extracts SA, i.e., the permanent MAC address MAC1 of the first STA, from the frame body of the eighth frame. The second STA obtains the locally stored permanent MAC address MAC2 (i.e., the permanent MAC address of the second STA is MAC2). The second STA sets the values of SA and DA in the frame header of the eighth frame to MAC1 and MAC2, respectively, and submits the frame to the upper layer for processing.
[0354] It should be noted that after the first AP inserts the permanent MAC address of the first STA and the permanent MAC address of the second STA into the address element field included in the header of the frame body of the sixth frame, the first AP encrypts and integrity protects the sixth frame using a secret value shared by all APs in the ESS. The second AP decrypts the sixth frame based on the secret value shared by all APs in the ESS.
[0355] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the eighth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field of the header of the frame body of the eighth frame.
[0356] In some embodiments, the permanent MAC address of the first STA is the address element field inserted by the second AP into the header of the frame body of the eighth frame before applying encryption and integrity protection.
[0357] It should be noted that the frame structure of the eighth frame may refer to the first frame and the sixth frame shown in FIG. 9 , and will not be described in detail here.
[0358] Therefore, in an embodiment of the present application, a second AP receives a sixth frame sent by a first AP; wherein the TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the sixth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the sixth frame are both random numbers; wherein the header of the frame body of the sixth frame includes an Address Element field, and the control field in the Address Element field includes an SA Present field and a DA Present field, the value of the SA Present field indicates the presence of an SA field in the Address Element field for indicating an SA, and the value of the DA Present field indicates the presence of a DA field in the Address Element field for indicating a DA, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA. That is, the first AP can protect the privacy of the permanent MAC addresses by inserting the permanent MAC addresses of the source STA (the first STA) and the destination STA (the second STA) into the Address Element field included in the header of the frame body of the frame it sends.
[0359] The above text, in combination with Figures 2 to 17, describes in detail the method embodiment of the present application. The following text, in combination with Figures 18 to 21, describes in detail the device embodiment of the present application. It should be understood that the device embodiment and the method embodiment correspond to each other, and similar descriptions can refer to the method embodiment.
[0360] FIG18 shows a schematic block diagram of an STA 600 according to an embodiment of the present application. As shown in FIG18 , the STA 600 includes:
[0361] A processing unit 610 is configured to generate a first OTA MAC address based on the first secret value and the current OTA MAC address; wherein the first OTA MAC address does not belong to the M OTA MAC addresses indicated by the first AP, the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in the OTA MAC address list maintained by the first AP, and the first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0;
[0362] The communication unit 620 is configured to send a first frame to the first AP using the first OTA MAC address, wherein the first frame is a management frame or a control frame, or the first frame is a data frame.
[0363] In some embodiments, the processing unit 610 is specifically configured to:
[0364] Generate a new OTA MAC address based on the first secret value and the current OTA MAC address;
[0365] If the new OTA MAC address does not belong to the M OTA MAC addresses, determine the new OTA MAC address as the first OTA MAC address;
[0366] In a case where the new OTA MAC address belongs to the M OTA MAC addresses, a next OTA MAC address is generated based on the new OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the generated OTA MAC address that does not belong to the M OTA MAC addresses is determined as the first OTA MAC address.
[0367] In some embodiments, the processing unit 610 is further configured to generate an initial OTA MAC address based on the first secret value and the permanent MAC address of the first STA;
[0368] In a case where the initial OTA MAC address does not belong to the M OTA MAC addresses, the processing unit 610 is further configured to determine the initial OTA MAC address as the first OTA MAC address;
[0369] In the case that the initial OTA MAC address belongs to the M OTA MAC addresses, the processing unit 610 is further used to generate a next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the processing unit 610 is further used to determine the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
[0370] In some embodiments, the communication unit 620 is further configured to receive a first management frame sent by the first AP;
[0371] The first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to instruct the first STA to allow switching the OTA MAC address for communication.
[0372] In some embodiments, the first management frame carries the M OTA MAC addresses indicated by the first AP.
[0373] In some embodiments, the first management frame includes an OTA MAC presence field, where the OTA MAC presence field is used to indicate whether an OTA MAC address list field exists in the first management frame, where the OTA MAC address list field is used to indicate the M OTA MAC addresses.
[0374] In some embodiments, when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is present in the first management frame, M≥1;
[0375] When the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, M=0.
[0376] In some embodiments, the communication unit 620 is further configured to temporarily use the permanent MAC address of the first STA for communication before receiving the first management frame.
[0377] In some embodiments, the communication unit 620 is further configured to receive a second management frame sent by the first AP;
[0378] The second management frame has the same frame format as the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
[0379] In some embodiments, when the first frame is a data frame, the receiving address RA in the first frame is the MAC address of the first AP, the sending address TA in the first frame is the first OTA MAC address, and the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA; wherein the second STA is the target STA of the first frame.
[0380] In some embodiments, when the tail of the frame body of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer.
[0381] In some embodiments, the permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
[0382] In some embodiments, when the header of the frame body of the first frame carries the permanent MAC address of the second STA, the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes an SA existence field and a target address existence DA field, wherein the value of the SA existence field is used to indicate that there is no SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, and the DA is the permanent MAC address of the second STA.
[0383] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field of the header of the frame body of the first frame.
[0384] In some embodiments, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0385] In some embodiments, the permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
[0386] In some embodiments, the value of the Send to Distribution System field of the first frame is 1, the value of the From Distribution System field of the first frame is 0, and the value of the Address 3 field of the first frame is all zero, or the value of the Address 3 field of the first frame is a random number.
[0387] In some embodiments, when the first frame is a management frame or a control frame, the values of the send to distribution system field and the from distribution system field in the first frame are both 0, and the sending address TA in the first frame is the first OTA MAC address, and the receiving address RA in the first frame is the MAC address of the first AP.
[0388] In some embodiments, the communication unit 620 is further configured to receive a second frame sent by the first AP, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address;
[0389] The processing unit 610 is further configured to obtain the locally stored permanent MAC address of the first STA, replace the RA of the second frame with the permanent MAC address of the first STA, and submit the second frame after the RA is replaced to an upper layer for processing.
[0390] In some embodiments, the secret information shared by the first STA and the first AP includes one of the following: a pairwise transient key PTK, and partial information of the PTK.
[0391] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0392] It should be understood that the STA 600 according to the embodiment of the present application may correspond to the first STA in the embodiment of the method of the present application, and the above-mentioned and other operations and / or functions of each unit in the STA 600 are respectively for implementing the corresponding process of the first STA in the method 200 shown in Figure 2. For the sake of brevity, they will not be repeated here.
[0393] FIG19 shows a schematic block diagram of an AP 700 according to an embodiment of the present application. The AP 700 is a first AP. As shown in FIG19 , the AP 700 includes:
[0394] The communication unit 710 is configured to receive a first frame sent by a first STA using a first OTA MAC address;
[0395] The processing unit 720 is configured to retrieve the first OTA MAC address from n OTA MAC addresses of the first STA included in an OTA MAC address list maintained by the processing unit 720; wherein the OTA MAC address list includes the OTA MAC address of at least one STA associated with the first AP, the at least one STA including the first STA, and n is a positive integer;
[0396] In a case where the first AP retrieves the first OTA MAC address from the OTA MAC address list, the processing unit 720 is further configured to continue processing the first frame; otherwise, the processing unit 720 is further configured to discard the first frame.
[0397] In some embodiments, the processing unit 720 is further configured to delete, from the OTA MAC address list, an OTA MAC address that is located before the first OTA MAC address among the n OTA MAC addresses of the first STA;
[0398] The processing unit 720 is further configured to generate an OTA MAC address i according to the OTA MAC address of the end of the first STA in the OTA MAC address list and a first secret value;
[0399] If the OTA MAC address i does not conflict with any OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to add the OTA MAC address i to the OTA MAC address list;
[0400] If the OTA MAC address i conflicts with an OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to generate a next OTA MAC address based on the OTA MAC address i and the first secret value until a generated OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, and the processing unit 720 is further configured to add the generated OTA MAC address that does not conflict with an OTA MAC address in the OTA MAC address list to the OTA MAC address list;
[0401] The processing unit 720 is further configured to keep the number of the OTA MAC addresses of the first STA in the OTA MAC address list as n.
[0402] In some embodiments, the processing unit 720 is further configured to generate an initial OTA MAC address based on the first secret value and the permanent MAC address of the first STA;
[0403] If the initial OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to add the initial OTA MAC address to the OTA MAC address list, where the initial OTA MAC address is a first OTA MAC address of the first STA in the OTA MAC address list;
[0404] In the event that the initial OTA MAC address conflicts with an OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to generate a next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the processing unit 720 is further configured to add the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list, and the newly generated OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
[0405] In some embodiments, the processing unit 720 is further configured to generate an OTA MAC address j based on the first secret value and the first OTA MAC address;
[0406] If the OTA MAC address j does not conflict with any OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to add the OTA MAC address j to the OTA MAC address list;
[0407] If the OTA MAC address j conflicts with an OTA MAC address in the OTA MAC address list, the processing unit 720 is further configured to generate a next OTA MAC address based on the OTA MAC address j and the first secret value, until the generated OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, and the processing unit 720 is further configured to add the generated OTA MAC address that does not conflict with an OTA MAC address in the OTA MAC address list to the OTA MAC address list;
[0408] When the number of the OTA MAC addresses of the first STA in the OTA MAC address list is n, the processing unit 720 is further configured to complete creation of the OTA MAC address for the first STA.
[0409] In some embodiments, the communication unit 710 is further configured to send a first management frame to the first STA;
[0410] The first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to instruct the first STA to allow switching the OTA MAC address for communication.
[0411] In some embodiments, the first management frame carries M OTA MAC addresses indicated by the first AP that conflict with OTA MAC addresses in the OTA MAC address list maintained by the first AP, where M is an integer and M≥0.
[0412] In some embodiments, the first management frame includes an OTA MAC presence field, where the OTA MAC presence field is used to indicate whether an OTA MAC address list field exists in the first management frame, where the OTA MAC address list field is used to indicate the M OTA MAC addresses.
[0413] In some embodiments, when the value of the OTA MAC Present field indicates that the OTA MAC Address List field is present in the first management frame, M≥1;
[0414] When the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, M=0.
[0415] In some embodiments, the first STA temporarily uses the permanent MAC address of the first STA for communication before receiving the first management frame.
[0416] In some embodiments, the communication unit 710 is further configured to send a second management frame to the first STA;
[0417] The second management frame has the same frame format as the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
[0418] In some embodiments, the first secret value is derived based on secret information shared by the first STA and the first AP.
[0419] In some embodiments, the secret information shared by the first STA and the first AP includes one of the following: a pairwise transient key PTK, and partial information of the PTK.
[0420] In some embodiments, the first frame is a data frame, the receiving address RA in the first frame is the MAC address of the first AP, the sending address TA in the first frame is the first OTA MAC address, and the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA; wherein the second STA is the target STA of the first frame, the value of the address 3 field of the first frame is all zero, or the value of the address 3 field of the first frame is a random number.
[0421] In some embodiments, when the tail of the frame body of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer.
[0422] In some embodiments, the permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
[0423] In some embodiments, the processing unit 720 is further configured to extract the permanent MAC address of the second STA from m1 bytes forward from the end of the frame body of the first frame;
[0424] The processing unit 720 is further configured to obtain a permanent MAC address of the first STA according to the first OTA MAC address, and the processing unit 720 is further configured to obtain an OTA MAC address currently used by the second STA from the OTA MAC address list according to the permanent MAC address of the second STA;
[0425] The communication unit 710 is also used to send a third frame to the second STA; wherein the sending address TA in the third frame is the MAC address of the first AP, the receiving address RA in the third frame is the OTA MAC address currently used by the second STA, and the m1 bytes from the end of the frame body of the third frame carry the permanent MAC address of the first STA. The value of the address 3 field of the third frame is all zero, or the value of the address 3 field of the third frame is a random number.
[0426] In some embodiments, the processing unit 720 is further configured to extract the permanent MAC address of the second STA from m1 bytes forward from the end of the frame body of the first frame, and the processing unit 720 is further configured to obtain the permanent MAC address of the first STA based on the first OTA MAC address;
[0427] The communication unit 710 is further configured to send a fourth frame to the second AP; wherein the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers;
[0428] Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA.
[0429] In some embodiments, when the header of the frame body of the first frame carries the permanent MAC address of the second STA, the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes an SA existence field and a target address existence DA field, wherein the value of the SA existence field is used to indicate that there is no SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, and the DA is the permanent MAC address of the second STA.
[0430] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field of the header of the frame body of the first frame.
[0431] In some embodiments, the permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
[0432] In some embodiments, the processing unit 720 is further configured to obtain the permanent MAC address of the second STA from the DA field in the address element field of the first frame;
[0433] The processing unit 720 is further configured to obtain a permanent MAC address of the first STA according to the first OTA MAC address, and the processing unit 720 is further configured to obtain an OTA MAC address currently used by the second STA from the OTA MAC address list according to the permanent MAC address of the second STA;
[0434] The communication unit 710 is further configured to send a fifth frame to the second STA, wherein the TA in the fifth frame is the MAC address of the first AP, the RA in the fifth frame is the OTA MAC address currently used by the second STA, and the value of the Address 3 field of the fifth frame is all zeros, or the value of the Address 3 field of the fifth frame is a random number;
[0435] Among them, the header of the frame body of the fifth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is no DA field for indicating DA in the address element field, and the SA is the permanent MAC address of the first STA.
[0436] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the fifth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field in the header of the frame body of the fifth frame.
[0437] In some embodiments, the permanent MAC address of the first STA is the address element field inserted by the first AP into the header of the frame body of the fifth frame before applying encryption and integrity protection.
[0438] In some embodiments, the processing unit 720 is further configured to extract the permanent MAC address of the second STA from the address element field included in the header of the frame body of the first frame, and the processing unit 720 is further configured to obtain the permanent MAC address of the first STA based on the first OTA MAC address;
[0439] The communication unit 710 is further configured to send a sixth frame to the second AP; wherein the TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the sixth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the sixth frame are both random numbers;
[0440] Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
[0441] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
[0442] In some embodiments, the permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before applying encryption and integrity protection.
[0443] In some embodiments, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0444] In some embodiments, the first frame is a management frame or a control frame, the values of the sent to distribution system field and the from distribution system field in the first frame are both 0, the TA in the first frame is the first OTA MAC address, and the RA in the first frame is the MAC address of the first AP.
[0445] In some embodiments, the communication unit 710 is further configured to send a second frame to the first STA, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address.
[0446] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0447] It should be understood that the AP 700 according to the embodiment of the present application may correspond to the first AP in the method embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the AP 700 are respectively for implementing the corresponding process of the first AP in the method 300 shown in Figure 11. For the sake of brevity, they will not be repeated here.
[0448] FIG20 shows a schematic block diagram of an AP 800 according to an embodiment of the present application. The AP 800 is a second AP. As shown in FIG20 , the AP 800 includes:
[0449] The communication unit 810 is configured to receive a fourth frame sent by the first AP;
[0450] The TA in the fourth frame is the media access control MAC address of the first AP, the receiving address RA in the fourth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the fourth frame are all zeros, or the values of the address 3 field and the address 4 field of the fourth frame are both random numbers;
[0451] Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, and m1 is a positive integer.
[0452] In some embodiments, the AP 800 further includes: a processing unit 820;
[0453] The processing unit 820 is configured to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from 2m1 bytes starting from the end of the frame body of the fourth frame;
[0454] The processing unit 820 is configured to obtain, according to the permanent MAC address of the second STA, an OTA MAC address currently used by the second STA from an over-the-air OTA MAC address list maintained by the second AP;
[0455] The communication unit 810 is also used to send a seventh frame to the second STA; wherein the sending address TA in the seventh frame is the MAC address of the second AP, the receiving address RA in the seventh frame is the OTA MAC address currently used by the second STA, and the m1 bytes starting from the tail of the frame body of the seventh frame carry the permanent MAC address of the first STA. The value of the address 3 field of the seventh frame is all zeros, or the value of the address 3 field of the seventh frame is a random number.
[0456] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0457] It should be understood that the AP 800 according to the embodiment of the present application may correspond to the second AP in the embodiment of the method of the present application, and the above-mentioned and other operations and / or functions of each unit in the AP 800 are respectively for implementing the corresponding process of the second AP in the method 400 shown in Figure 16. For the sake of brevity, they will not be repeated here.
[0458] FIG21 shows a schematic block diagram of an AP 900 according to an embodiment of the present application. The AP 900 is a second AP. As shown in FIG21 , the AP 900 includes:
[0459] The communication unit 910 is configured to receive a sixth frame sent by the first AP;
[0460] The transmitting address TA in the sixth frame is the media access control MAC address of the first AP, the receiving address RA in the sixth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the sixth frame are all zeros, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers;
[0461] Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes a source address SA field and a destination address DA field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
[0462] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
[0463] In some embodiments, the permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before applying encryption and integrity protection.
[0464] In some embodiments, the AP 900 further includes: a processing unit 920;
[0465] The processing unit 920 is configured to obtain the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field included in the header of the frame body of the sixth frame;
[0466] The processing unit 920 is further configured to obtain, according to the permanent MAC address of the second STA, an OTA MAC address currently used by the second STA from an over-the-air OTA MAC address list maintained by the second AP;
[0467] The communication unit 910 is further configured to send an eighth frame to the second STA; wherein the transmitting address TA in the eighth frame is the MAC address of the second AP, the receiving address RA in the eighth frame is the OTA MAC address currently used by the second STA, and the value of the Address 3 field of the eighth frame is all zeros, or the value of the Address 3 field of the eighth frame is a random number;
[0468] Among them, the header of the frame body of the eighth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is no DA field for indicating DA in the address element field, and the SA is the permanent MAC address of the first STA.
[0469] In some embodiments, the value of the first bit in the CCMP / GCMP header of the frame body of the eighth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field of the header of the frame body of the eighth frame.
[0470] In some embodiments, the permanent MAC address of the first STA is the address element field inserted by the second AP into the header of the frame body of the eighth frame before applying encryption and integrity protection.
[0471] In some embodiments, the first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
[0472] In some embodiments, the communication unit may be a communication interface or a transceiver, or an input / output interface of a communication chip or a system on chip. The processing unit may be one or more processors.
[0473] It should be understood that the AP 900 according to the embodiment of the present application may correspond to the second AP in the method embodiment of the present application, and the above-mentioned and other operations and / or functions of each unit in the AP 900 are respectively for implementing the corresponding processes of the second AP in the method 500 shown in Figure 17. For the sake of brevity, they will not be repeated here.
[0474] Figure 22 is a schematic structural diagram of a communication device 1000 provided in an embodiment of the present application. The communication device 1000 shown in Figure 22 includes a processor 1010, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0475] In some embodiments, as shown in FIG22 , the communication device 1000 may further include a memory 1020. The processor 1010 may call and execute a computer program from the memory 1020 to implement the method in the embodiment of the present application.
[0476] The memory 1020 may be a separate device independent of the processor 1010 , or may be integrated into the processor 1010 .
[0477] In some embodiments, as shown in FIG. 22 , the communication device 1000 may further include a transceiver 1030 , and the processor 1010 may control the transceiver 1030 to communicate with other devices. Specifically, the transceiver 1030 may send information or data to other devices, or receive information or data sent by other devices.
[0478] The transceiver 1030 may include a transmitter and a receiver. The transceiver 1030 may further include an antenna, and the number of antennas may be one or more.
[0479] In some embodiments, the communication device 1000 may specifically be the first STA of the embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the first STA in the various methods of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0480] In some embodiments, the communication device 1000 may specifically be the first AP of the embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the first AP in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0481] In some embodiments, the communication device 1000 may specifically be the second AP of the embodiment of the present application, and the communication device 1000 may implement the corresponding processes implemented by the second AP in each method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.
[0482] Figure 23 is a schematic structural diagram of an apparatus according to an embodiment of the present application. The apparatus 1100 shown in Figure 23 includes a processor 1110, which can call and execute a computer program from a memory to implement the method according to the embodiment of the present application.
[0483] In some embodiments, as shown in FIG23 , the apparatus 1100 may further include a memory 1120. The processor 1110 may call and execute a computer program from the memory 1120 to implement the method in the embodiment of the present application.
[0484] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .
[0485] In some embodiments, the apparatus 1100 may further include an input interface 1130. The processor 1110 may control the input interface 1130 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0486] In some embodiments, the apparatus 1100 may further include an output interface 1140. The processor 1110 may control the output interface 1140 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0487] In some embodiments, the device can be applied to the first STA in the embodiments of the present application, and the device can implement the corresponding processes implemented by the first STA in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0488] In some embodiments, the device can be applied to the first AP in the embodiments of the present application, and the device can implement the corresponding processes implemented by the first AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0489] In some embodiments, the device can be applied to the second AP in the embodiments of the present application, and the device can implement the corresponding processes implemented by the second AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0490] In some embodiments, the device mentioned in the embodiments of the present application may also be a chip, such as a system-on-chip, a system-on-chip, a chip system, or a system-on-chip chip.
[0491] FIG24 is a schematic block diagram of a communication system 1200 provided in an embodiment of the present application. As shown in FIG24 , the communication system 1200 includes a first STA 1210 , a first AP 1220 , and a second STA 1230 .
[0492] Among them, the first STA 1210 can be used to implement the corresponding functions implemented by the first STA in the above method, the first AP 1220 can be used to implement the corresponding functions implemented by the first AP in the above method, and the second STA 1230 can be used to implement the corresponding functions implemented by the second STA in the above method. For the sake of brevity, they will not be repeated here.
[0493] FIG25 is a schematic block diagram of a communication system 1300 provided in an embodiment of the present application. As shown in FIG25 , the communication system 1300 includes a first STA 1310 , a first AP 1320 , a second AP 1330 , and a second STA 1340 .
[0494] Among them, the first STA 1310 can be used to implement the corresponding functions implemented by the first STA in the above method, the first AP 1320 can be used to implement the corresponding functions implemented by the first AP in the above method, the second AP 1330 can be used to implement the corresponding functions implemented by the second AP in the above method, and the second STA 1340 can be used to implement the corresponding functions implemented by the second STA in the above method. For the sake of brevity, they will not be repeated here.
[0495] It should be understood that the processor in the embodiments of the present application may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.
[0496] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0497] It should be understood that the above-mentioned memories are exemplary but not restrictive. For example, the memories in the embodiments of the present application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM RAM (DR RAM), etc. In other words, the memories in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0498] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0499] In some embodiments, the computer-readable storage medium can be applied to the first STA in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first STA in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0500] In some embodiments, the computer-readable storage medium can be applied to the first AP in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the first AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0501] In some embodiments, the computer-readable storage medium can be applied to the second AP in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the second AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0502] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0503] In some embodiments, the computer program product can be applied to the first STA in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first STA in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0504] In some embodiments, the computer program product can be applied to the first AP in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the first AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0505] In some embodiments, the computer program product can be applied to the second AP in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the second AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0506] The embodiment of the present application also provides a computer program.
[0507] In some embodiments, the computer program can be applied to the first STA in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the first STA in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0508] In some embodiments, the computer program can be applied to the first AP in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the first AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0509] In some embodiments, the computer program can be applied to the second AP in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the second AP in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0510] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0511] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0512] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0513] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0514] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0515] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. In view of this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0516] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A wireless communication method, characterized in that: include: The first station STA generates a first OTA MAC address based on a first secret value and a current over-the-air OTA media access control MAC address; wherein the first OTA MAC address does not belong to M OTA MAC addresses indicated by a first access point AP, and the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in an OTA MAC address list maintained by the first AP; the first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0; The first STA sends a first frame to the first AP using the first OTA MAC address, where the first frame is a management frame or a control frame, or the first frame is a data frame.
2. The method according to claim 1, wherein The first STA generates a first OTA MAC address according to the first secret value and the current OTA MAC address, including: The first STA generates a new OTA MAC address according to the first secret value and the current OTA MAC address; If the new OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the new OTA MAC address as the first OTA MAC address; In a case where the new OTA MAC address belongs to the M OTA MAC addresses, the first STA generates a next OTA MAC address based on the new OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
3. The method according to claim 1 or 2, wherein: The method further comprises: The first STA generates an initial OTA MAC address according to the first secret value and the permanent MAC address of the first STA; If the initial OTA MAC address does not belong to the M OTA MAC addresses, the first STA determines the initial OTA MAC address as a first OTA MAC address; In a case where the initial OTA MAC address belongs to the M OTA MAC addresses, the first STA generates a next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not belong to the M OTA MAC addresses, and the first STA determines the generated OTA MAC address that does not belong to the M OTA MAC addresses as the first OTA MAC address.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Receiving, by the first STA, a first management frame sent by the first AP; The first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to indicate that the first STA is allowed to switch the OTA MAC address for communication.
5. The method according to claim 4, wherein The first management frame carries the M OTA MAC addresses indicated by the first AP.
6. The method according to claim 4 or 5, characterized in that The first management frame includes an OTA MAC presence field, where the OTA MAC presence field is used to indicate whether an OTA MAC address list field exists in the first management frame, where the OTA MAC address list field is used to indicate the M OTA MAC addresses.
7. The method according to claim 5 or 6, wherein: When the value of the OTA MAC presence field indicates that the OTA MAC address list field exists in the first management frame, M≥1; When the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, M=0.
8. The method according to any one of claims 4 to 7, characterized in that The method further comprises: Before receiving the first management frame, the first STA temporarily uses the permanent MAC address of the first STA for communication.
9. The method according to any one of claims 4 to 7, characterized in that The method further comprises: Receiving, by the first STA, a second management frame sent by the first AP; The frame format of the second management frame is the same as that of the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
10. The method according to any one of claims 1 to 9, characterized in that When the first frame is a data frame, the receiving address RA in the first frame is the MAC address of the first AP, the sending address TA in the first frame is the first OTA MAC address, and the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA; wherein the second STA is the target STA of the first frame.
11. The method according to claim 10, wherein In the case where the tail of the frame body of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer.
12. The method according to claim 11, wherein The permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
13. The method according to claim 10, wherein In the case where the header of the frame body of the first frame carries the permanent MAC address of the second STA, the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes a source address SA existence field and a destination address DA existence field, wherein the value of the SA existence field is used to indicate that there is no SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, and the DA is the permanent MAC address of the second STA.
14. The method according to claim 13, wherein The value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field in the header of the frame body of the first frame.
15. The method according to claim 14, wherein The first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any first four bits of the fourth byte of the CCMP / GCMP header.
16. The method according to any one of claims 13 to 15, characterized in that The permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
17. The method according to any one of claims 10 to 16, characterized in that The value of the sent to distribution system field of the first frame is 1, the value of the from distribution system field of the first frame is 0, and the value of the address 3 field of the first frame is all zero, or the value of the address 3 field of the first frame is a random number.
18. The method according to any one of claims 1 to 9, characterized in that In the case where the first frame is a management frame or a control frame, the values of the send to distribution system field and the from distribution system field in the first frame are both 0, and the sending address TA in the first frame is the first OTA MAC address, and the receiving address RA in the first frame is the MAC address of the first AP.
19. The method according to claim 18, wherein The method further comprises: The first STA receives a second frame sent by the first AP, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address; The first STA obtains the locally stored permanent MAC address of the first STA, replaces the RA of the second frame with the permanent MAC address of the first STA, and submits the second frame after the RA is replaced to an upper layer for processing.
20. The method according to any one of claims 1 to 19, characterized in that The secret information shared by the first STA and the first AP includes one of the following: a pairwise transient key PTK, and partial information of the PTK.
21. A wireless communication method, characterized in that: include: The first access point AP receives a first frame sent by the first station STA using the first air OTA media access control MAC address; The first AP retrieves the first OTA MAC address from n OTA MAC addresses of the first STA included in an OTA MAC address list maintained by the first AP; wherein the OTA MAC address list includes the OTA MAC address of at least one STA associated with the first AP, the at least one STA includes the first STA, and n is a positive integer; In a case where the first AP retrieves the first OTA MAC address from the OTA MAC address list, the first AP continues to process the first frame; otherwise, the first frame is discarded.
22. The method according to claim 21, wherein The method further comprises: The first AP deletes, from the OTA MAC address list, an OTA MAC address that is located before the first OTA MAC address among the n OTA MAC addresses of the first STA; The first AP generates an OTA MAC address i according to the OTA MAC address of the end of the first STA in the OTA MAC address list and a first secret value; If the OTA MAC address i does not conflict with any OTA MAC address in the OTA MAC address list, the first AP adds the OTA MAC address i to the OTA MAC address list; If the OTA MAC address i conflicts with an OTA MAC address in the OTA MAC address list, the first AP generates a next OTA MAC address based on the OTA MAC address i and the first secret value until a generated OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with an OTA MAC address in the OTA MAC address list to the OTA MAC address list. The first AP maintains n as the number of OTA MAC addresses of the first STA in the OTA MAC address list.
23. The method according to claim 21 or 22, wherein: The method further comprises: The first AP generates an initial OTA MAC address based on the first secret value and the permanent MAC address of the first STA; If the initial OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, the first AP adds the initial OTA MAC address to the OTA MAC address list, and the initial OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list; In the event that the initial OTA MAC address conflicts with an OTA MAC address in the OTA MAC address list, the first AP generates a next OTA MAC address based on the initial OTA MAC address and the first secret value until the generated OTA MAC address does not conflict with the OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with the OTA MAC address in the OTA MAC address list to the OTA MAC address list, and the newly generated OTA MAC address is the first OTA MAC address of the first STA in the OTA MAC address list.
24. The method according to claim 23, wherein The method further comprises: The first AP generates an OTA MAC address j according to the first secret value and the first OTA MAC address; If the OTA MAC address j does not conflict with any OTA MAC address in the OTA MAC address list, the first AP adds the OTA MAC address j to the OTA MAC address list; If the OTA MAC address j conflicts with an OTA MAC address in the OTA MAC address list, the first AP generates a next OTA MAC address based on the OTA MAC address j and the first secret value until a generated OTA MAC address does not conflict with an OTA MAC address in the OTA MAC address list, and the first AP adds the generated OTA MAC address that does not conflict with an OTA MAC address in the OTA MAC address list to the OTA MAC address list. When the number of the OTA MAC addresses of the first STA in the OTA MAC address list is n, the first AP completes creation of the OTA MAC address for the first STA.
25. The method according to claim 23 or 24, wherein: The method further comprises: The first AP sends a first management frame to the first STA; The first management frame is used to instruct the first STA to enable the OTA MAC address, or the first management frame is used to indicate that the first STA is allowed to switch the OTA MAC address for communication.
26. The method of claim 25, wherein: The first management frame carries M OTA MAC addresses indicated by the first AP that conflict with the OTA MAC addresses in the OTA MAC address list maintained by the first AP, where M is an integer and M≥0.
27. The method according to claim 26, wherein The first management frame includes an OTA MAC presence field, where the OTA MAC presence field is used to indicate whether an OTA MAC address list field exists in the first management frame, where the OTA MAC address list field is used to indicate the M OTA MAC addresses.
28. The method according to claim 26 or 27, wherein When the value of the OTA MAC presence field indicates that the OTA MAC address list field exists in the first management frame, M≥1; When the value of the OTA MAC presence field indicates that the OTA MAC address list field does not exist in the first management frame, M=0.
29. The method according to any one of claims 25 to 28, characterized in that Before receiving the first management frame, the first STA temporarily uses the permanent MAC address of the first STA for communication.
30. The method according to any one of claims 25 to 29, wherein The method further comprises: The first AP sends a second management frame to the first STA; The frame format of the second management frame is the same as that of the first management frame, and the second management frame is used to indicate updating of the OTA MAC address indicated by the first AP that conflicts with the OTA MAC address in the OTA MAC address list maintained by the first AP.
31. The method according to any one of claims 22 to 30, wherein The first secret value is derived based on secret information shared by the first STA and the first AP.
32. The method of claim 31, wherein The secret information shared by the first STA and the first AP includes one of the following: a pairwise transient key PTK, and partial information of the PTK.
33. The method according to any one of claims 21 to 32, characterized in that The first frame is a data frame, the receiving address RA in the first frame is the MAC address of the first AP, the sending address TA in the first frame is the first OTA MAC address, and the header or tail of the frame body of the first frame carries the permanent MAC address of the second STA; wherein, the second STA is the target STA of the first frame, the value of the address 3 field of the first frame is all zeros, or the value of the address 3 field of the first frame is a random number.
34. The method of claim 33, wherein: In the case where the tail of the frame body of the first frame carries the permanent MAC address of the second STA, the permanent MAC address of the second STA occupies m1 bytes starting from the end of the frame body of the first frame, where m1 is a positive integer.
35. The method of claim 34, wherein: The permanent MAC address of the second STA is inserted by the first STA into the end of the frame body of the first frame before encryption and integrity protection are applied.
36. The method according to claim 34 or 35, wherein: The method further comprises: Extracting, by the first AP, the permanent MAC address of the second STA from m1 bytes starting from the end of the frame body of the first frame; The first AP obtains the permanent MAC address of the first STA according to the first OTA MAC address, and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list according to the permanent MAC address of the second STA; The first AP sends a third frame to the second STA; wherein the sending address TA in the third frame is the MAC address of the first AP, the receiving address RA in the third frame is the OTA MAC address currently used by the second STA, the m1 bytes from the tail of the frame body of the third frame carry the permanent MAC address of the first STA, and the value of the address 3 field of the third frame is all zeros, or the value of the address 3 field of the third frame is a random number.
37. The method according to claim 34 or 35, wherein: The method further comprises: The first AP extracts the permanent MAC address of the second STA from m1 bytes forward from the end of the frame body of the first frame, and the first AP obtains the permanent MAC address of the first STA according to the first OTA MAC address; The first AP sends a fourth frame to the second AP; wherein the TA in the fourth frame is the MAC address of the first AP, the RA in the fourth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the fourth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the fourth frame are both random numbers; Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA.
38. The method of claim 33, wherein: In the case where the header of the frame body of the first frame carries the permanent MAC address of the second STA, the header of the frame body of the first frame includes an address element field, and the control field in the address element field includes a source address SA existence field and a destination address DA existence field, wherein the value of the SA existence field is used to indicate that there is no SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, and the DA is the permanent MAC address of the second STA.
39. The method of claim 38, wherein The value of the first bit in the CCMP / GCMP header of the frame body of the first frame is used to instruct the first AP to extract the permanent MAC address of the second STA from the address element field in the header of the frame body of the first frame.
40. The method according to claim 38 or 39, wherein The permanent MAC address of the second STA is the address element field inserted by the first STA into the header of the frame body of the first frame before encryption and integrity protection are applied.
41. The method according to any one of claims 38 to 40, wherein The method further comprises: Acquire, by the first AP, the permanent MAC address of the second STA from the DA field in the address element field of the first frame; The first AP obtains the permanent MAC address of the first STA according to the first OTA MAC address, and the first AP obtains the OTA MAC address currently used by the second STA from the OTA MAC address list according to the permanent MAC address of the second STA; The first AP sends a fifth frame to the second STA; wherein the TA in the fifth frame is the MAC address of the first AP, the RA in the fifth frame is the OTA MAC address currently used by the second STA, and the value of the Address 3 field of the fifth frame is all zeros, or the value of the Address 3 field of the fifth frame is a random number; Among them, the header of the frame body of the fifth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is no DA field for indicating DA in the address element field, and the SA is the permanent MAC address of the first STA.
42. The method of claim 41, wherein The value of the first bit in the CCMP / GCMP header of the frame body of the fifth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field in the header of the frame body of the fifth frame.
43. The method according to claim 41 or 42, wherein The permanent MAC address of the first STA is the address element field inserted by the first AP into the header of the frame body of the fifth frame before encryption and integrity protection are applied.
44. The method according to any one of claims 38 to 40, wherein The method further comprises: The first AP extracts the permanent MAC address of the second STA from the address element field included in the header of the frame body of the first frame, and the first AP obtains the permanent MAC address of the first STA based on the first OTA MAC address; The first AP sends a sixth frame to the second AP; wherein the TA in the sixth frame is the MAC address of the first AP, the RA in the sixth frame is the MAC address of the second AP, and the values of the Address 3 field and the Address 4 field of the sixth frame are all zeros, or the values of the Address 3 field and the Address 4 field of the sixth frame are both random numbers; Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
45. The method of claim 44, wherein: The value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
46. The method according to claim 44 or 45, wherein The permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before encryption and integrity protection are applied.
47. The method of claim 39, 42 or 45, wherein: The first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any first four bits of the fourth byte of the CCMP / GCMP header.
48. The method according to any one of claims 21 to 32, wherein The first frame is a management frame or a control frame, the values of the sent to distribution system field and the from distribution system field in the first frame are both 0, the TA in the first frame is the first OTA MAC address, and the RA in the first frame is the MAC address of the first AP.
49. The method of claim 48, wherein The method further comprises: The first AP sends a second frame to the first STA, wherein the TA of the second frame is the MAC address of the first AP, and the RA of the second frame is the first OTA MAC address.
50. A wireless communication method, characterized in that: include: The second access point AP receives the fourth frame sent by the first AP; The TA in the fourth frame is the media access control MAC address of the first AP, the receiving address RA in the fourth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the fourth frame are all zeros, or the values of the address 3 field and the address 4 field of the fourth frame are both random numbers; Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, and m1 is a positive integer.
51. The method of claim 50, wherein: The method further comprises: Extracting, by the second AP, the permanent MAC address of the first STA and the permanent MAC address of the second STA from 2m1 bytes starting from the end of the frame body of the fourth frame; The second AP obtains, according to the permanent MAC address of the second STA, an OTA MAC address currently used by the second STA from an over-the-air OTA MAC address list maintained by the second AP; The second AP sends a seventh frame to the second STA; wherein the sending address TA in the seventh frame is the MAC address of the second AP, the receiving address RA in the seventh frame is the OTA MAC address currently used by the second STA, the m1 bytes starting from the tail of the frame body of the seventh frame carry the permanent MAC address of the first STA, and the value of the address 3 field of the seventh frame is all zeros, or the value of the address 3 field of the seventh frame is a random number.
52. A wireless communication method, characterized in that: include: The second access point AP receives the sixth frame sent by the first AP; The sending address TA in the sixth frame is the media access control MAC address of the first AP, the receiving address RA in the sixth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the sixth frame are all zeros, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers; Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes a source address SA existence field and a destination address DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
53. The method of claim 52, wherein: The value of the first bit in the CCMP / GCMP header of the frame body of the sixth frame is used to instruct the second AP to extract the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field of the header of the frame body of the sixth frame.
54. The method according to claim 52 or 53, wherein The permanent MAC address of the first STA and the permanent MAC address of the second STA are inserted by the first AP into the address element field of the header of the frame body of the sixth frame before encryption and integrity protection are applied.
55. The method according to any one of claims 52 to 54, wherein The method further comprises: The second AP obtains the permanent MAC address of the first STA and the permanent MAC address of the second STA from the address element field included in the header of the frame body of the sixth frame; The second AP obtains, according to the permanent MAC address of the second STA, an OTA MAC address currently used by the second STA from an over-the-air OTA MAC address list maintained by the second AP; The second AP sends an eighth frame to the second STA; wherein the transmitting address TA in the eighth frame is the MAC address of the second AP, the receiving address RA in the eighth frame is the OTA MAC address currently used by the second STA, and the value of the Address 3 field of the eighth frame is all zeros, or the value of the Address 3 field of the eighth frame is a random number; Among them, the header of the frame body of the eighth frame includes an address element field, the control field in the address element field includes an SA existence field and a DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is no DA field for indicating DA in the address element field, and the SA is the permanent MAC address of the first STA.
56. The method of claim 55, wherein: The value of the first bit in the CCMP / GCMP header of the frame body of the eighth frame is used to instruct the second STA to extract the permanent MAC address of the first STA from the address element field in the header of the frame body of the eighth frame.
57. The method according to claim 55 or 56, wherein The permanent MAC address of the first STA is the address element field inserted by the second AP into the header of the frame body of the eighth frame before encryption and integrity protection are applied.
58. The method according to claim 53 or 56, wherein The first bit occupies any bit of the third byte of the CCMP / GCMP header, or the first bit occupies any bit of the first four bits of the fourth byte of the CCMP / GCMP header.
59. A station STA, characterized in that: The STA is a first STA, and the STA includes: a processing unit, configured to generate a first OTA MAC address based on a first secret value and a current over-the-air OTA media access control MAC address; wherein the first OTA MAC address does not belong to M OTA MAC addresses indicated by a first access point AP, the M OTA MAC addresses are OTA MAC addresses that conflict with OTA MAC addresses in an OTA MAC address list maintained by the first AP, and the first secret value is derived based on secret information shared by the first STA and the first AP, where M is an integer and M ≥ 0; A communication unit is configured to send a first frame to the first AP using the first OTA MAC address, wherein the first frame is a management frame or a control frame, or the first frame is a data frame.
60. An access point AP, characterized in that: The AP is a first AP, and the AP includes: A communication unit, configured to receive a first frame sent by a first station STA using a first over-the-air OTA media access control MAC address; a processing unit, configured to retrieve the first OTA MAC address from n OTA MAC addresses of the first STA included in an OTA MAC address list maintained by the processing unit; wherein the OTA MAC address list includes the OTA MAC address of at least one STA associated with the first AP, the at least one STA including the first STA, and n is a positive integer; In a case where the first AP retrieves the first OTA MAC address from the OTA MAC address list, the processing unit is further configured to continue processing the first frame; otherwise, the processing unit is further configured to discard the first frame.
61. An access point AP, characterized in that: The AP is a second AP, and the AP includes: a communication unit, configured to receive a fourth frame sent by the first AP; The TA in the fourth frame is the media access control MAC address of the first AP, the receiving address RA in the fourth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the fourth frame are all zeros, or the values of the address 3 field and the address 4 field of the fourth frame are both random numbers; Among them, the first m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the second STA, and the last m1 bytes of the 2m1 bytes starting from the tail of the frame body of the fourth frame carry the permanent MAC address of the first STA, and m1 is a positive integer.
62. An access point AP, characterized in that: The AP is a second AP, and the AP includes: a communication unit, configured to receive a sixth frame sent by the first AP; The sending address TA in the sixth frame is the media access control MAC address of the first AP, the receiving address RA in the sixth frame is the MAC address of the second AP, and the values of the address 3 field and the address 4 field of the sixth frame are all zeros, or the values of the address 3 field and the address 4 field of the sixth frame are both random numbers; Among them, the header of the frame body of the sixth frame includes an address element field, the control field in the address element field includes a source address SA existence field and a destination address DA existence field, the value of the SA existence field is used to indicate that there is an SA field for indicating SA in the address element field, and the value of the DA existence field is used to indicate that there is a DA field for indicating DA in the address element field, the SA is the permanent MAC address of the first STA, and the DA is the permanent MAC address of the second STA.
63. A STA, characterized in that include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the STA performs the method according to any one of claims 1 to 20.
64. An AP, characterized in that include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, so that the AP performs the method as described in any one of claims 21 to 49, or the AP performs the method as described in any one of claims 50 to 51, or the AP performs the method as described in any one of claims 52 to 58.
65. A chip, characterized in that include: A processor for calling and running a computer program from a memory so that a device equipped with the chip performs the method according to any one of claims 1 to 20, or the method according to any one of claims 21 to 49, or the method according to any one of claims 50 to 51, or the method according to any one of claims 52 to 58.
66. A computer-readable storage medium, characterized in that Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 20, or the method according to any one of claims 21 to 49, or the method according to any one of claims 50 to 51, or the method according to any one of claims 52 to 58.
67. A computer program product, characterized in that Comprising computer program instructions, which cause a computer to perform the method according to any one of claims 1 to 20, or the method according to any one of claims 21 to 49, or the method according to any one of claims 50 to 51, or the method according to any one of claims 52 to 58.
68. A computer program, characterized in that The computer program causes a computer to execute the method according to any one of claims 1 to 20, or the method according to any one of claims 21 to 49, or the method according to any one of claims 50 to 51, or the method according to any one of claims 52 to 58.
