Method and device for distributing identification
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for allocating identifiers.
Background
According to the IEEE 802.11 standard, when a Wi-Fi application terminal, hereinafter referred to as STA (station, herein, specifically referred to as a user equipment, etc.) establishes a connection with an AP (access point), the AP allocates an association identifier AID to the STA. The AP periodically transmits a beacon frame, and the AP indicates, in the beacon frame, whether the STA associated with the AP has downlink data, that is, whether data to be transmitted to the STA is buffered on the AP, by using a TIM (transmission indication map) mechanism. If there is downlink data, the STA may ask for downlink data from the AP, so that the STA may sleep to save power during a period when there is no data transmission before the AP beacon frame. Since an information element is defined in the TIM mechanism, the maximum length of the "local valid bit table" in the information element is 251 bytes, where each bit represents an STA, and the position of the bit is the AID of the STA, and when the bit value is 1, it indicates that there is downlink data, and when the bit value is 0, it indicates that there is no downlink data. In addition, AID is not used, so that 251 bytes can support an STA of 251 × 8-1 — 2007, that is, one AP can only support 2007 STAs at most.
In addition, according to a multiple BSSID (Basic Service set identifier) mechanism proposed in the IEEE 802.11 standard, channel resources of one AP may be allocated to different types of users. The BSSID, i.e., the MAC address of the AP, may also be referred to as an access point identification. The AP supporting multiple BSSIDs sends the beacon frame by taking different BSSIDs as primary BSSIDs in turn, wherein the primary BSSID is the BSSID which appears in the address field of the head of the beacon frame, and the BSSIDs except the primary BSSID in the multiple BSSIDs supported by the AP are taken as secondary BSSIDs, and the secondary BSSIDs and related information are packaged in secondary BSSID information elements and appear in the payload part of the beacon frame. The primary BSSID is also referred to as transmitted BSSID (transmittedbssssid) in the standard, and the secondary BSSID is also referred to as non-transmitted BSSID (non-transmitted BSSID) in the standard. In order to support broadcast data transmission indication of each BSSID, a plurality of bits in a local valid bit table in a TIM element are used for indicating whether each BSSID has broadcast data, so that an AP can support less than 2007 STAs.
In summary, an AP can only allocate 2007 STAs at most based on the TIM mechanism in the prior art.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for allocating an identifier, which may allocate more than 2007 STAs on the basis of compatibility with a TIM mechanism in an existing standard.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
a method of assigning identities, the access point having a plurality of access point identities, each of the access point identities having an independent associated identity space, comprising:
broadcasting a beacon frame by taking each access point identifier in the plurality of access point identifiers as a main access point identifier in sequence, wherein the beacon frame comprises indication information of data to be transmitted of the main access point identifier and information of an auxiliary access point identifier, and the auxiliary access point identifier is an access point identifier except the main access point identifier in the plurality of access point identifiers;
receiving an association request message sent by a terminal, wherein a target access point identifier contained in the association request message is one of the plurality of access point identifiers;
and distributing one associated identifier in an independent associated identifier space of the target access point identifier for the terminal according to the target access point identifier, and sending an associated response message to the terminal, wherein the associated response message comprises the target access point identifier and the associated identifier.
A method of assigning identities, comprising:
analyzing a received beacon frame sent by the access point to select a target access point identifier, wherein the access point is provided with a plurality of access point identifiers, and each access point identifier is provided with an independent associated identifier space;
sending an association request message to the access point, wherein the association request message contains the target access point identifier;
and receiving an association response message sent by the access point, wherein the association response message comprises the target access point identifier and an association identifier, and the association identifier is one identifier in an independent association identifier space of the target access point identifier allocated to the terminal by the access point.
An access point having a plurality of access point identities, each of the access point identities having an independent association identity space, the access point comprising:
a broadcasting unit, configured to broadcast a beacon frame with each of the multiple access point identifiers as a primary access point identifier in sequence, where the beacon frame includes information indicating data to be transmitted of the primary access point identifier and information indicating a secondary access point identifier, and the secondary access point identifier is an access point identifier of the multiple access point identifiers except for the primary access point identifier;
a receiving unit, configured to receive an association request message sent by a terminal, where a target access point identifier included in the association request message is one of the multiple access point identifiers;
and the allocation sending unit is used for allocating an association identifier in an independent association identifier space of the target access point identifier for the terminal according to the target access point identifier and sending an association response message to the terminal, wherein the association response message comprises the target access point identifier and the association identifier.
A terminal, comprising:
the access point comprises a plurality of access point identifiers, and each access point identifier has an independent associated identifier space;
a sending unit, configured to send an association request message to the access point, where the association request message includes the target access point identifier;
a receiving unit, configured to receive an association response message sent by the access point, where the association response message includes the target access point identifier and an association identifier, and the association identifier is an identifier in an independent association identifier space of the target access point identifier allocated by the access point to a terminal.
The embodiment of the invention provides a method and a device for distributing identification, wherein a beacon frame is broadcast by taking each access point identification in a plurality of access point identifications as a main access point identification in sequence, after an access point receives an association request message sent by a terminal, one association identification in an independent association identification space of the target access point identification is distributed for the terminal according to the target access point identification in the association request message, and an association response message is sent to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for allocating identifiers according to embodiment 1 of the present invention;
fig. 2 is a flowchart of another method for allocating identifiers according to embodiment 1 of the present invention;
fig. 3 is a block diagram of an access point according to embodiment 1 of the present invention;
fig. 4 is a block diagram of another terminal provided in embodiment 1 of the present invention;
fig. 5 is a flowchart of a method for allocating identifiers according to embodiment 2 of the present invention;
fig. 6 is a block diagram of an access point according to embodiment 2 of the present invention;
fig. 7 is a block diagram of another terminal provided in embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
An embodiment of the present invention provides a method for allocating identifiers, where an access point has multiple access point identifiers, and each access point identifier has an independent associated identifier space, as shown in fig. 1, the method includes:
step 101, broadcasting a beacon frame by taking each access point identifier in the plurality of access point identifiers as a main access point identifier, wherein the beacon frame comprises indication information of data to be transmitted of the main access point identifier and information of an auxiliary access point identifier, and the auxiliary access point identifier is an access point identifier in the plurality of access point identifiers except for the main access point identifier;
the Access point identifier is a Media Access Control (MAC) address of the Access point, and the MAC address is used as an identifier of a wireless fidelity (WiFi) network, where multiple Access point identifiers means that one Access point has multiple MAC addresses. And the access point broadcasts the beacon frame by taking each access point identifier in the plurality of access point identifiers as a main access point identifier in sequence according to the size sequence of the MAC address, and the operation is repeated and circulated.
It should be noted that the beacon frame is actively transmitted by the access point to the surrounding terminals, where the access point may be an AP, the terminal may be an STA, and the AP may also transmit a probe response frame to the STA after receiving the probe request frame of the STA. If the STA sends the probe request frame by using the broadcasted BSSID, namely the probe request frame is a broadcast frame, the AP sends the probe response frame to the STA by using the current primary BSSID, namely the BSSID filled in the frame header of the probe response frame is the current primary BSSID. If a STA sends a probe request frame to the AP with a certain BSSID that the AP has, i.e., the probe request frame is unicast, the AP also uses the BSSID specified by the STA in the header of the probe response frame instead of the current primary BSSID of the AP.
In addition, the information of the secondary access point identifier comprises load information of the secondary access point identifier and/or indication information of data to be transmitted of the secondary access point identifier; the information of the secondary access point identifier is described in a load part of a beacon frame by a secondary access point identifier information element G-BSSID (Grouped basic service set), specifically, BSSID is filled in a BSSID field of a MAC header in the beacon frame or a probe response frame, and such BSSID is referred to as primary BSSID of the frame; BSSID other than the primary BSSID is secondary BSSID, information describing the secondary BSSID using a G-BSSID element in a payload part in the beacon frame or the probe response frame includes capability information of the secondary BSSID, SSID (Service Set Identifier) to which the secondary BSSID belongs, and the like, and data indication information to be transmitted of the secondary access point Identifier may be encapsulated in the G-BSSID information element.
For the AP, beacon frames are sent by taking the BSSIDs supported by the AP as primary BSSIDs in turn, so that the primary BSSID in the beacon frame is the primary BSSID of the beacon period from the beacon frame to the next beacon frame, and the other BSSIDs in the beacon period are the secondary BSSIDs of the beacon period.
102, receiving an association request message sent by a terminal, where a target access point identifier included in the association request message is one of the multiple access point identifiers;
it should be noted that, after the terminal scans the access point, it parses the received beacon frame sent by the access point and selects a target access point identifier, and then sends the target access point identifier carried in the association request message to the access point to establish an association relationship.
103, distributing an association identifier in an independent association identifier space of the target access point identifier to the terminal according to the target access point identifier, and sending an association response message to the terminal, where the association response message includes the target access point identifier and the association identifier.
Each BSSID has its own independent AID space, that is, the AID spaces of the BSSIDs are not shared, so that on the basis of the TIM mechanism, there may be 2007 AIDs for one BSSID at most, and after applying the multiple BSSID mechanism, more than 2007 STAs may be supported. However, in the range governed by the AP, identifying an associated STA requires using both BSSID and AID, and using AID alone cannot uniquely identify an STA. In this way, the data indication information to be transmitted under each BSSID supported by the AP uses a TIM element, which is an information element directly in the beacon frame for the primary BSSID of the beacon frame, and the TIM element under the secondary BSSID may be included as a sub-information element in the G-BSSID information element in the beacon frame. If the beacon frame only contains a TIM element under the primary BSSID, namely the TIM element associated to the data indication information to be transmitted of each terminal of the primary BSSID and does not contain the TIM element of the auxiliary BSSID in the G-BSSID element, the method is equivalent to that the access point broadcasts the data indication information to be transmitted (namely TIM) under each BSSID in turn; if the beacon frame includes the TIM element of the primary BSSID and the G-BSSID includes the TIM element of the secondary BSSID, it means that the access point carries indication information (distributed in multiple TIM elements) of data to be transmitted of all terminals associated with the access point in the beacon frame.
It should be noted that the access point communicates with the AP at any time using a channel, that is, sends a downlink message and/or receives an uplink message; or the access point uses a channel to send downlink messages and/or receive uplink messages in a beacon period with the target access point identification as the main access point identification.
In the method for allocating an identifier provided in the embodiment of the present invention, a beacon frame is broadcast by sequentially using each of the multiple access point identifiers as a main access point identifier, and after an access point receives an association request message sent by a terminal, an association identifier in an independent association identifier space of the target access point identifier is allocated to the terminal according to the target access point identifier in the association request message, and an association response message is sent to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID has its own independent AID space, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
An embodiment of the present invention provides another method for allocating an identifier, as shown in fig. 2, where the method includes:
step 201, analyzing the received beacon frame sent by the access point to select a target access point identifier, where the access point has multiple access point identifiers, and each access point identifier has an independent association identifier space;
the method comprises the steps that a terminal scans randomly, when an access point is found through scanning, the received main access point identification related information and auxiliary access point identification related information in a beacon frame sent by the access point are analyzed, one access point identification is selected as a target access point identification, and the related information comprises capability information and/or load information;
or selecting the main access point identification as a target access point identification;
or selecting the target access point identification according to the indication carried in the beacon frame sent by the access point.
Step 202, sending an association request message to the access point, where the association request message includes the target access point identifier;
step 203, receiving an association response message sent by the access point, where the association response message includes the target access point identifier and an association identifier, and the association identifier is an identifier in an independent association identifier space of the target access point identifier allocated by the access point for the terminal.
After receiving an association identifier in an independent association identifier space of the target access point identifier allocated to the terminal, according to the selected target access point, the terminal periodically listens to a beacon frame of the target access point identifier and analyzes a TIM element in the beacon frame so as to acquire downlink data, wherein the beacon frame comprises indication information of data to be transmitted of the main access point identifier and indication information of data to be transmitted of a secondary access point identifier, and the secondary access point identifier is an access point identifier except the main access point identifier in the plurality of access point identifiers.
The maximum length of the "local valid bit table" of the TIM element is 251 bytes, where each bit represents an STA, the position of the bit is the AID of the STA, and when the bit value is 1, it indicates that there is downlink data, and when the bit value is 0, it indicates that there is no downlink data.
It should be noted that, the terminal receives the downlink message or sends the uplink message at any time by using the channel; and the terminal receives downlink messages or transmits uplink messages by using a channel in a beacon period with the target access point identification as the main access point identification.
The method for allocating the identifier provided by the embodiment of the invention transmits an association request message to the access point by analyzing a beacon frame transmitted by the access point and selecting a target access point identifier, wherein the association request message comprises the target access point identifier, receives an association response message transmitted by the access point, and the association response message comprises the target access point identifier and the association identifier allocated to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
An embodiment of the present invention provides an access point, where the access point has a plurality of access point identifiers, and each of the access point identifiers has an independent associated identifier space, as shown in fig. 3, and the access point includes: broadcast section 301, reception section 302, and distribution transmission section 303.
A broadcasting unit 301, configured to broadcast a beacon frame with each of the multiple access point identifiers as a primary access point identifier in sequence, where the beacon frame includes information indicating data to be transmitted of the primary access point identifier and information indicating a secondary access point identifier, and the secondary access point identifier is an access point identifier of the multiple access point identifiers except for the primary access point identifier;
after the terminal randomly scans and discovers the AP, the receiving unit 302 is configured to receive an association request message sent by the terminal, where a target access point identifier included in the association request message is one of the multiple access point identifiers;
according to the target access point identifier, an allocation sending unit 303 allocates an association identifier in an independent association identifier space of the target access point identifier to the terminal, and sends an association response message to the terminal, where the association response message includes the target access point identifier and the association identifier.
It should be noted that: the access point in the embodiment of the invention is a device which is composed of a series of hardware and necessary software. Including but not limited to at least one processor, memory, radio frequency transceiver, input/output devices, buffers, etc., coupled to each other via a bus.
In the access point provided by the embodiment of the present invention, a beacon frame is broadcast by a broadcast unit sequentially using each of the multiple access point identifiers as a main access point identifier, a receiving unit receives an association request message sent by a terminal, and according to the target access point identifier, a distribution sending unit distributes an association identifier in an independent association identifier space of the target access point identifier for the terminal, and sends an association response message to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
An embodiment of the present invention provides a terminal, which may specifically be an STA, and as shown in fig. 4, the terminal includes: analysis section 401, transmission section 402, and reception section 403.
An analyzing unit 401, configured to analyze a received beacon frame sent by the access point to select a target access point identifier, where the access point has multiple access point identifiers, and each access point identifier has an independent associated identifier space;
according to the selected target access point identifier, a sending unit 402, configured to send an association request message to the access point, where the association request message includes the target access point identifier;
after the access point allocates an association identifier to the terminal, the receiving unit 403 is configured to receive an association response message sent by the access point, where the association response message includes the target access point identifier and the association identifier, and the association identifier is an identifier in an independent association identifier space of the target access point identifier allocated to the terminal by the access point.
It should be noted that: the terminal in the embodiment of the invention is composed of a series of hardware and necessary software. Including but not limited to at least one processor, memory, radio frequency transceiver, input/output devices, buffers, etc., coupled to each other via a bus.
In the terminal provided in the embodiment of the present invention, the parsing unit parses the received beacon frame sent by the access point and selects a target access point identifier, the sending unit sends an association request message to the access point, the association request message includes the target access point identifier, the receiving unit receives an association response message sent by the access point, the association response message includes the target access point identifier and an association identifier, and the association identifier is an identifier in an independent association identifier space of the target access point identifier allocated to the terminal by the access point. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
Example 2
An embodiment of the present invention provides a method for allocating identifiers, where an access point has multiple access point identifiers, and each access point identifier has an independent associated identifier space, as shown in fig. 5, the method includes:
step 501, the AP broadcasts a beacon frame with each of the multiple AP identifiers as a primary AP identifier in sequence, where the beacon frame includes indication information of data to be transmitted of the primary AP identifier and information of a secondary AP identifier, and the secondary AP identifier is an AP identifier in the multiple AP identifiers except for the primary AP identifier;
the Access point identifier is a Media Access Control (MAC) address of the Access point, and the MAC address is used as an identifier of a wireless fidelity (WiFi) network, where multiple Access point identifiers means that one Access point has multiple MAC addresses. And the access point broadcasts the beacon frame by taking each access point identifier in the plurality of access point identifiers as a main access point identifier in sequence according to the size sequence of the MAC address, and the operation is repeated and circulated.
It should be noted that the beacon frame is actively transmitted by the AP to surrounding STAs, and the AP may also transmit a probe response frame to the STA after receiving the probe request frame from the STA. If the STA sends the probe request frame by using the broadcasted access point identification BSSID, namely the probe request frame is a broadcast frame, the AP sends a probe response frame to the STA by using the current primary BSSID, namely the BSSID filled in the frame header of the probe response frame is the current primary BSSID. If a STA sends a probe request frame to the AP with a certain BSSID that the AP has, i.e., the probe request frame is unicast, the AP also uses the BSSID specified by the STA in the header of the probe response frame instead of the current primary BSSID of the AP.
In addition, the information of the secondary access point identifier comprises load information of the secondary access point identifier and/or indication information of data to be transmitted of the secondary access point identifier; the information of the secondary access point identifier is described in a payload part of the beacon frame by a secondary access point identifier information element G-BSSID (Grouped basic service set identifier element), specifically, BSSID is filled in a BSSID field of a MAC header in the beacon frame or the probe response frame, and such BSSID is referred to as primary BSSID of the frame; BSSID other than the primary BSSID is secondary BSSID, information describing the secondary BSSID using a G-BSSID element in a payload part in the beacon frame or the probe response frame includes load information of the secondary BSSID, SSID (Service Set Identifier) to which the secondary BSSID belongs, and the like, and data indication information to be transmitted of the secondary access point Identifier may be encapsulated in the G-BSSID information element in a sub information element.
Whether the beacon frame carries TIM information under the secondary BSSID is optional, where the TIM information is to-be-transmitted data indication information. When the beacon frame carries the TIM information under the secondary BSSID, it indicates that the beacon frame carries downlink to-be-transmitted data indication information of all STAs under the AP every time, and when the beacon frame does not carry the TIM information under the secondary BSSID, the AP sends the TIM information of each BSSID in turn.
For the AP, Beacon frames are sent by taking the supported BSSIDs as primary BSSIDs in turn, then the primary BSSID in the Beacon frame is the primary BSSID of the Beacon period from the Beacon frame to the next Beacon frame, the other BSSID in the Beacon period is the secondary BSSID of the Beacon period, and the Interval between two adjacent Beacon frames is called BI (Beacon Interval).
Step 502, after scanning the access point, the STA analyzes the received beacon frame sent by the access point and selects a target access point identifier;
firstly, the STA randomly scans, and after scanning and finding the AP, parses information related to a primary BSSID in a beacon frame or a probe response frame, and parses information related to a secondary BSSID in a G-BSSID element encapsulated in the beacon frame or the probe response frame, thereby obtaining capability information of each BSSID, where the capability information includes the number of terminals that can be loaded by the BSSID, and the related information includes capability information and/or load information.
Then, a target BSSID is selected, where there are three ways in which the target BSSID may be selected:
the first method is as follows: analyzing the received main access point identification related information and auxiliary access point identification related information in the beacon frame sent by the access point, and selecting one access point identification as a target access point identification, wherein the related information comprises capability information and/or load information; specifically, BSSIDs with a large number of loadable terminals may be selected to facilitate management of the AP;
the second method comprises the following steps: selecting the primary BSSID as a target BSSID; it should be noted that, only information of one primary BSSID is carried in one beacon frame or probe response frame, and information of multiple secondary BSSIDs can be carried;
the third method comprises the following steps: and selecting a target BSSID according to the indication carried in the beacon frame sent by the AP.
It should be noted that after the STA selects the target BSSID, it may be specified that each BSSID shares BI, and then the SAT may use the channel at any time; it may be also specified that each BSSID does not share BI, and the STA uses a channel in a beacon period to which the target BSSID belongs according to the selected BSSID.
Step 503, the STA sends an association request message to the AP, where the association request message includes the target access point identifier;
and after selecting the target BSSID, the STA carries the target BSSID in an association request message and sends the association request message to the AP. When each BSSID shares BI, the terminal sends uplink messages by using a channel at any time; and when each BSSID does not share BI, the terminal uses a channel to send uplink messages in a beacon period with the target access point identification as the main access point identification.
Step 504, the AP receives an association request message sent by the STA, where a target access point identifier included in the association request message is one of the multiple access point identifiers;
when each BSSID shares BI, the access point sends downlink information to the terminal by using a channel at any time; and when each BSSID does not share BI, the access point uses a channel to send downlink messages to the terminal in a beacon period with the target access point identification as the main access point identification.
Step 505, according to the target access point identifier, allocating an association identifier in an independent association identifier space of the target access point identifier to the terminal, and sending an association response message to the terminal, where the association response message includes the target access point identifier and the association identifier;
after the STA selects the BSSID, the STA establishes association with the AP.
AID (association ID) ranges from 1 to 2007.
In the scheme provided by the embodiment of the invention, a multiple BSSID mechanism is adopted, wherein BSSID plays a role of group number, TIM mechanism and AID assignment under one BSSID are the same as those in the prior art, and different from the prior art, each BSSID has an independent AID space, so that one AP can support up to 6021 STAs by using three BSSIDs, and more STAs can be supported by using more BSSIDs.
Step 506, the STA receives an association response message sent by the access point, where the association response message includes the target access point identifier and an association identifier, and the association identifier is one identifier in an independent association identifier space of the target access point identifier allocated by the access point to the terminal;
step 507, the STA periodically listens to a beacon frame of the target access point identifier, and analyzes data indication information to be transmitted in the beacon frame to obtain the data indication information to be transmitted of the terminal, where the beacon frame includes the data indication information to be transmitted of the main access point identifier and the data indication information to be transmitted of the secondary access point identifier, and the secondary access point identifier is an access point identifier of the plurality of access point identifiers except for the main access point identifier.
The maximum length of the "local valid bit table" of the TIM element is 251 bytes, where each bit represents an STA, the position of the bit is the AID of the STA, and when the bit value is 1, it indicates that there is downlink data, and when the bit value is 0, it indicates that there is no downlink data. That is, the data indication information to be transmitted in the beacon frame is indicated in bit positions in the TIM element.
When downlink data is prompted in the TIM element, in a scenario where each BSSID shares a BI, the terminal may communicate with the AP using a channel at any time, and specifically, the terminal may ask for downlink data from the AP using the channel at any time; or, in a scenario that BSSIDs do not share a BI, the terminal communicates with the access point using a channel in a beacon period in which the target access point identifier is a main access point identifier, and specifically, the terminal requests downlink data using the channel in the beacon period in which the target access point identifier is the main access point identifier.
Similarly, in a scenario where each BSSID shares a BI, the AP communicates with the terminal using a channel at any time, and specifically, the AP transmits downlink data to the associated STA using the channel at any time; or, in a scenario that BSSIDs do not share a BI, the AP communicates with the terminal using a channel in a beacon period in which the target access point identifier is a primary access point identifier, and specifically, the AP transmits downlink data using the channel in the beacon period in which the target access point identifier is the primary access point identifier.
It should be noted that there are two cases for the STA to listen to the TIM information, if the beacon frame only carries the TIM information of the primary BSSID, the STA only needs to listen to the beacon frame when the target BSSID associated with the STA is the primary BSSID; otherwise, the STA may listen to only the beacon frame when the target BSSID associated with the STA is the primary BSSID, or may listen to all beacon frames.
In addition, in a scenario where the BSSIDs share the BI, the TIM of the secondary BSSID may be added to the G-BSSID element, so that the STA can know whether there is downlink data when it listens to any beacon frame.
The embodiment of the invention provides a method for distributing identification, which broadcasts a beacon frame by taking each access point identification in a plurality of access point identifications as a main access point identification in sequence, and after an access point receives an association request message sent by a terminal, distributes an association identification in an independent association identification space of the target access point identification for the terminal according to the target access point identification in the association request message, and sends an association response message to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
An embodiment of the present invention provides an access point, where the access point has multiple access point identifiers, and each of the access point identifiers has an independent associated identifier space, and the apparatus may be an AP, as shown in fig. 6, where the access point includes: broadcasting section 601, receiving section 602, distribution transmitting section 603, first executing section 604, and second executing section 605.
A broadcasting unit 601, configured to broadcast a beacon frame with each of the multiple access point identifiers as a primary access point identifier in sequence, where the beacon frame includes information indicating data to be transmitted of the primary access point identifier and information indicating a secondary access point identifier, and the secondary access point identifier is an access point identifier of the multiple access point identifiers except for the primary access point identifier;
the information of the secondary access point identifier comprises load information of the secondary access point identifier and/or indication information of data to be transmitted of the secondary access point identifier;
and the indication information of the data to be transmitted of the secondary access point identification is described by a secondary access point identification information element in the load part of the beacon frame.
After the STA scans and discovers the AP, the STA parses the beacon frame and selects a target BSSID, and at this time, the receiving unit 602 is configured to receive an association request message sent by the terminal, where a target access point identifier included in the association request message is one of the multiple access point identifiers;
according to the target access point identifier, an allocation sending unit 603 allocates an association identifier in an independent association identifier space of the target access point identifier to the terminal, and sends an association response message to the terminal, where the association response message includes the target access point identifier and the association identifier.
After the association relationship between the STA and the AP is established, in the case that each BSSID shares a BI, a first performing unit 604, configured to communicate with the terminal using a channel at any time;
or, in the case that the respective BSSIDs do not share the BI, the second performing unit 605 is configured to communicate with the terminal using a channel in a beacon period in which the target access point identifier is a primary access point identifier.
In the access point provided by the embodiment of the present invention, a beacon frame is broadcast by a broadcast unit sequentially using each of the multiple access point identifiers as a main access point identifier, a receiving unit receives an association request message sent by a terminal, and according to the target access point identifier, a distribution sending unit distributes an association identifier in an independent association identifier space of the target access point identifier for the terminal, and sends an association response message to the terminal. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
An embodiment of the present invention provides a terminal, where the apparatus may be an STA, and as shown in fig. 7, the terminal includes: analysis section 701, analysis selection module 7011, first selection module 7012, second selection module 7013, transmission section 702, reception section 703, listening section 704, first execution section 705, and second execution section 706.
An analyzing unit 701, configured to analyze a received beacon frame sent by the access point to select a target access point identifier, where the access point has multiple access point identifiers, and each access point identifier has an independent association identifier space;
specifically, the parsing selecting module 7011 in the parsing unit 701 is configured to parse received primary access point identifier related information and secondary access point identifier related information in a beacon frame sent by the access point, and select an access point identifier as a target access point identifier, where the related information includes capability information and/or load information;
and/or, a first selecting module 7012 in the parsing unit 701 is configured to select the primary access point identifier as a target access point identifier;
and/or, a second selecting module 7013 in the parsing unit 701 is configured to select a target access point identifier according to an indication carried in a beacon frame sent by the access point.
After selecting the target access point identifier, a sending unit 702 is configured to send an association request message to the access point, where the association request message includes the target access point identifier;
after receiving an association request message sent by a terminal, an access point allocates an association identifier to the terminal according to a target access point identifier, and sends the association identifier to the terminal, at this time, a receiving unit 703 is configured to receive an association response message sent by the access point, where the association response message includes the target access point identifier and the association identifier allocated to the terminal.
The intercepting unit 704 is configured to periodically intercept a beacon frame of the target access point identifier, and analyze data indication information to be transmitted in the beacon frame to obtain the data indication information to be transmitted of the terminal, where the beacon frame includes the data indication information to be transmitted of the main access point identifier and the data indication information to be transmitted of an auxiliary access point identifier, and the auxiliary access point identifier is an access point identifier in the plurality of access point identifiers except for the main access point identifier.
The information of the secondary access point identifier comprises indication information of data to be transmitted of the secondary access point identifier; and the indication information of the data to be transmitted of the secondary access point identification is described by a secondary access point identification information element in the load part of the beacon frame.
After the STA associates with the AP, in a scenario where each BSSID shares a BI, the first performing unit 705 communicates with the access point using a channel at any time; or,
in a scenario that BSSIDs do not share a BI, the second performing unit 706 communicates with the access point using a channel in a beacon period in which the target access point identifier is a primary access point identifier.
In the terminal provided in the embodiment of the present invention, after scanning an access point through an analysis unit, the analysis unit analyzes a received beacon frame sent by the access point and selects a target access point identifier, the sending unit sends an association request message to the access point, where the association request message includes the target access point identifier, and the receiving unit receives an association response message sent by the access point, where the association response message includes the target access point identifier and the association identifier. Compared with the prior art that one AP can only allocate 2007 STAs at most on the basis of compatibility with the TIM mechanism in the existing standard, according to the scheme provided by the embodiment of the present invention, each BSSID is an AID space independent of its own, so that more than 2007 STAs can be allocated on the basis of compatibility with the TIM mechanism in the existing standard.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.