WO2013120422A1 - Communication method, station device and access point device - Google Patents

Communication method, station device and access point device Download PDF

Info

Publication number
WO2013120422A1
WO2013120422A1 PCT/CN2013/071364 CN2013071364W WO2013120422A1 WO 2013120422 A1 WO2013120422 A1 WO 2013120422A1 CN 2013071364 W CN2013071364 W CN 2013071364W WO 2013120422 A1 WO2013120422 A1 WO 2013120422A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
short
network
short identifier
sta
Prior art date
Application number
PCT/CN2013/071364
Other languages
French (fr)
Chinese (zh)
Inventor
树贵明
丁志明
关鑫
罗毅
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Publication of WO2013120422A1 publication Critical patent/WO2013120422A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/672Short addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/10Interfaces between hierarchically different network devices between terminal device and access point, i.e. wireless air interface

Definitions

  • the present invention relates to communication technologies, and in particular, to a communication method, a site device, and an access point device.
  • a communication method a site device, and an access point device.
  • IEEE 802.11ah The primary application scenario of the Institute of Electrical and Electronics Engineers (IEEE) 802.11ah is a sensor network.
  • the sensor network mainly includes access point (AP) devices and stations (Station, STA). )device.
  • the communication bandwidth supported by IEEE 802.11 ah is 100Kbps (Kbits per second) ⁇ 20Mbps, so the coverage radius of the AP device is extended from the current 100 meters to 1 kilometer, and the STA device that each AP device can serve in its coverage area More quantity.
  • the STA device transmits the sensing data to the AP device through the data frame.
  • the sensing data is valid data of the data frame. Since the sensing data is usually small, the Media Access Control (MAC) frame header of the data frame occupies most of the space of the data frame, which leads to channel utilization. low.
  • MAC Media Access Control
  • the present invention provides a communication method, a site device, and an access point device for improving channel utilization when transmitting data frames.
  • An aspect of the present invention provides a communication method, including:
  • the short identifier notification message includes a short identifier of the AP device; the length of the short identifier of the AP device is smaller than a length of the medium access control MAC address of the AP device The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
  • An aspect of the present invention provides a site device, including: a notification message receiving module, configured to receive a short identifier notification message sent by the access point AP device, where the short identifier notification message includes a short identifier of the AP device, and the short identifier of the AP device is smaller than the AP device
  • the length of the medium access control MAC address, the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
  • a first generating module configured to generate a communication message, where the receiving address of the communication message is a short identifier of the AP device;
  • the first sending module is configured to send the communication message to the AP device.
  • Another aspect of the present invention provides a communication method, including:
  • the access point AP device sends a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, and the length of the short identifier of the AP device is smaller than the length of the medium access control MAC address of the AP device.
  • the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
  • the AP device determines whether the receiving address in the communication message is the same as the short identifier of the AP device;
  • an access point device including:
  • a notification message sending module configured to send a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, where a length of the short identifier of the AP device is smaller than a length of the medium access control MAC address of the AP device
  • the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
  • a receiving module configured to receive a communication message
  • a determining module configured to determine whether a receiving address in the communication message received by the first receiving module is the same as a short identifier of the AP device
  • a data obtaining module configured to parse and obtain a data part in the communication message when the judgment result of the determining module is the same.
  • the communication method and the STA device of the site device use the short identifier of the AP device as the receiving address of the communication message, and send the communication message to the AP device to implement communication with the AP device.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, compared with the prior art, the space occupied by the MAC frame header in the data frame is reduced in the technical solution of the present invention, and the utilization rate of the communication message is improved. In turn, the channel utilization rate when transmitting communication messages is improved.
  • the AP device receives the communication message, and then compares the short identifier of the AP device with the receiving address in the communication message to determine whether it is the receiver of the communication message, if If yes, the valid data in the communication message is obtained.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, compared with the prior art, the MAC frame header occupied by the data frame in the technical solution of the present invention is occupied. The space is reduced, the utilization of communication messages is improved, and the channel utilization rate when transmitting communication messages is improved.
  • FIG. 1 is a flowchart of a communication method according to an embodiment of the present invention
  • FIG. 2A is a flowchart of a data frame sending method according to an embodiment of the present invention.
  • FIG. 2B is a schematic structural diagram of an uplink data frame according to another embodiment of the present invention
  • FIG. 2C is another schematic structural diagram of an uplink data frame according to another embodiment of the present invention
  • FIG. 4 is a flowchart of a data frame sending method according to another embodiment of the present invention.
  • FIG. 5 is a flowchart of a communication method according to another embodiment of the present invention.
  • FIG. 6 is a flowchart of a data frame receiving method according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a data frame receiving method according to another embodiment of the present invention.
  • FIG. 8 is a flowchart of a data frame receiving method according to another embodiment of the present invention.
  • FIG. 9 is a flowchart of a data frame receiving method according to another embodiment of the present invention.
  • 10A is a schematic structural diagram of a short identifier including a 6-bit network identifier and a 10-bit intra-network identifier according to an embodiment of the present invention
  • FIG. 10B is a schematic diagram of a short identifier structure including only a network identifier according to an embodiment of the present invention
  • FIG. 11 is a flowchart of a data frame sending method according to another embodiment of the present invention.
  • FIG. 12 is a flowchart of a data frame sending method according to another embodiment of the present invention.
  • FIG. 13 is a flowchart of a method for sending a data frame according to another embodiment of the present invention.
  • FIG. 14 is a flowchart of a data frame sending method according to another embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a STA device according to an embodiment of the present disclosure
  • FIG. 16 is a schematic structural diagram of an AP device according to an embodiment of the present disclosure
  • FIG. 17 is a schematic structural diagram of an AP device according to another embodiment of the present invention.
  • the STA device when the STA device communicates with the AP device, at least the 48-bit basic service of the AP device needs to be filled in the Receiver Address (RA) field or the Transmitter Address (TA) field in the MAC frame header.
  • RA Receiver Address
  • TA Transmitter Address
  • a Basic Service Set Identifier (BSSID) to indicate to which AP the data frame is sent or which AP to send.
  • the BSSID in the prior art is the MAC address of the AP device. Therefore, in the embodiments of the present invention, the MAC address of the AP device is taken as an example for description.
  • the MAC frame header in the data frame is long, occupying most of the space of the data frame, thereby causing less data amount to be carried by the data frame, lower utilization rate, and utilization of the channel for transmitting the data frame.
  • the problem of the lower rate is provided by the embodiment of the present invention.
  • the MAC frame header of the data frame in the communication process between the STA device and the AP device is used to identify the AP device.
  • the MAC address of the bit is replaced with the short identifier of the AP device to further reduce the length of the MAC frame header, and the technical solution for improving the utilization of the channel of the transmitted data frame by reducing the length of the MAC frame header.
  • the technical solution of the present invention mainly includes how to communicate through the short identifier of the AP device.
  • FIG. 1 is a flowchart of a communication method according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
  • Step 101 Receive a short identifier notification message sent by the AP device, where the short identifier notification message includes The short identifier of the AP device is shorter than the length of the MAC address of the AP device, and the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
  • the area where the AP device is located mainly refers to a certain range centered on the AP device.
  • the area where each AP device is located can be set when the AP device is deployed. For example, if the coverage of the AP device is half a kilometer, the area where the AP device is located can be set to an area with a radius of 5 kilometers.
  • Step 102 Generate a communication message, where the receiving address of the communication message is a short identifier of the AP device.
  • Step 103 Send a communication message to the AP device.
  • the communication message may be a MAC frame.
  • another device that communicates with the AP device generates a communication message, and uses the short identifier of the AP device as the receiving address of the communication message, and then sends the communication message to the AP device to implement communication with the AP device.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device (ie, the BSSID). Therefore, the MAC frame header of the communication message in this embodiment is smaller than the MAC frame header of the prior art, and the valid data in the communication message is added.
  • the proportion increases the utilization of communication message frames, which in turn increases the utilization of the channel (called the transmission channel) for transmitting communication messages.
  • the other device that communicates with the AP device may be a STA device or another
  • one of the AP devices During the communication between the AP device and the AP device, one of the AP devices generates a communication message frame, and the communication message frame is sent to another AP device.
  • the receiving address of the communication message generated by one of the AP devices is a short identifier of the another AP device, and the sending address is a short identifier of the one of the AP devices.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame header of the data frame in this embodiment is smaller than the MAC frame header of the prior art, and the effective data portion in the communication message is increased, and the communication is improved.
  • the utilization of the message improves the utilization of the channel through which the communication message is transmitted.
  • the STA device During the communication between the STA device and the AP device, the STA device generates a communication message, which is an uplink MAC frame.
  • the receiving address of the uplink MAC frame generated by the STA device is a short identifier of the AP device, and the sending address is an Association Identifier (AID) of the STA.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame header of the uplink MAC frame in this embodiment is smaller than the MAC frame header of the prior art, and the effective data portion in the uplink MAC frame is increased.
  • the utilization of the uplink MAC frame further improves the utilization of the channel for transmitting the uplink MAC frame.
  • the other device communicating with the AP device is the STA device or the AP device has known the short identifier of the AP device before generating the MAC frame.
  • the short identifier of the AP device is automatically generated by the AP device according to the location information of the AP device, so that the generated short identifier uniquely identifies the AP device in the area where the AP device is located. Because the locations of different APs are different, the short identifiers generated based on the location information are unique, so that different APs use the same short identifiers.
  • the short identifier of the AP device is uniformly allocated by the first configuration server according to the type of the AP device to access the network, so that the allocated short identifier uniquely identifies the AP device in the area where the AP device is located.
  • the first configuration server is a regional network management function entity, and is responsible for unified management of AP devices in the entire area.
  • the regional network management function entity pre-stores a defined short identifier.
  • the area network management function entity allocates a short identifier to the AP device according to the type of the AP device accessing the network.
  • the type of the access network includes the identification information of the area where the network is located, the identification information of the network operation organization, and the service type information (such as sensing detection, intelligent measurement, etc.) for the network.
  • the area network management function entity uniformly allocates short identifiers to the AP devices, and also ensures that different APs use different short identifiers, that is, the uniqueness of the short identifiers is ensured.
  • the short identifier of the AP device may include a network identifier and an intra-network identifier.
  • the network identifier The second configuration server is uniformly allocated according to the type of the access device of the AP device, and the identifier of the network is uniformly generated and allocated by the third configuration server or automatically generated by the AP device according to the location information of the AP device, where the second configuration server and the first configuration are configured.
  • the server is also a regional network management function entity. It is responsible for unifying the APs of different networks in the entire area.
  • the network management function entity is mainly to allocate network identifiers for APs of different networks to ensure access to different network types. APs have different network identifiers.
  • the third configuration server may be an AP management function entity in the local area network, and is mainly responsible for uniformly generating and distributing the intranet identifiers for each AP device in a local area network. Since the AP management function entity uniformly generates and allocates the intra-network identifiers for the AP devices, it can be ensured that the intra-network identifiers generated by different AP devices cannot conflict, and new conflicts are required if the conflicts are required. For intra-network identification, the AP device can also automatically generate information based on its own location information. Since the locations of different AP devices are different, the identifiers generated in the network according to the location information are also different. The method ensures that the short identifier of the AP device can uniquely identify the AP device in the area where the AP device is located by using the network identifier and the identifier in the network.
  • the short identifier of the AP device may be 16 bits in length.
  • the short identifier of the AP device may include a 6-bit network identifier and a 10-bit network identifier.
  • the STA device can obtain the short identifier of the AP device in the process of associating with the AP device.
  • the AP device carries its own short identifier in the association response sent to the STA, so that the STA device obtains the short identifier of the AP device from the association response.
  • the STA device may also obtain the short identifier of the AP device in the process of discovering the AP device.
  • the AP device may carry its own short identifier in the broadcast beacon frame, so that the STA device acquires the short identifier of the AP device from the new standard frame.
  • the AP device may carry its own short identifier in the probe response frame sent to the STA device, so that the STA device obtains the short identifier of the AP device from the probe response frame.
  • 2A is a flowchart of a data frame sending method according to an embodiment of the present invention. As shown in FIG. 2A, the method in this embodiment includes:
  • Step 201 The STA device sends an association request to the AP device.
  • the STA device After the STA device discovers the AP device and passes the authentication, it sends an association request to the AP device to request association with the AP device. Correspondingly, the AP device receives the association request sent by the STA device.
  • Step 202 The STA device receives an association response sent by the AP device to associate with the AP device, where the association response includes a short identifier of the AP device.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • the AP device After receiving the association request of the STA device, the AP device identifies that the STA device is to be associated with itself.
  • the AP device allocates an association identifier (AID) for the STA device to identify different STA devices associated with the AP device in the service area.
  • AID association identifier
  • the AP device encapsulates the short identifier of the AP device and the AID assigned to the STA device in the association response, and then sends the association response to the STA device.
  • the STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device and the short identifier of the AP device from the association response.
  • the short identifier notification message is an association response.
  • Step 201 and step 202 can be regarded as a specific implementation manner in which the UE receives the short identifier notification message.
  • the short identifier of the AP device may be automatically generated by the AP device according to the location information of the AP device, or may be uniformly allocated by the first configuration server to the AP device according to the type of the AP device accessing the network.
  • the short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish the network. Identification and intranet identification.
  • the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
  • Step 203 The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is
  • the short identifier of the AP device, and the sending address is the AID of the STA device.
  • the structure of the uplink MAC frame is as shown in FIG. 2B, and mainly includes: a frame control (FC) domain, a duration domain (Distence domain), an address-domain (Addressl), an address two domain (Address2), and an address three domain.
  • FC frame control
  • Address3 Sequence Control Domain
  • Address 4 Address Four Domain
  • QoS Control Domain QoS Control Domain
  • Frame Body Domain Frame Body Domain
  • FCS Frame Check Sequence
  • the STA device uses the short identifier of the AP device and the AID of the STA device as the receiving address and the sending address of the uplink MAC frame, respectively. That is, the address in the address field is filled with the short identifier of the AP device, and the address in the second domain is filled with the AID of the STA device.
  • the structure of the uplink MAC frame after adding the address one domain and the address two domain is as shown in Fig. 2C.
  • the address in the address field is filled with the MAC address of the AP device, and the length of the MAC address of the AP device is 48 bits.
  • the MAC frame header of the uplink MAC frame is reduced, the proportion of the effective data portion in the uplink MAC frame is improved, and the uplink MAC is improved.
  • the utilization of the frame helps to improve the utilization of the transmission channel.
  • the length of the AID of the STA device is 16 bits. Therefore, the STA device uses the AID instead of the 48-bit MAC address of the STA device, which is also beneficial for reducing the MAC frame header of the uplink MAC frame.
  • Step 204 The STA device sends an uplink MAC frame to the AP device.
  • the STA device then transmits the uplink MAC frame to the AP device.
  • the AP device receives the uplink MAC frame sent by the STA device.
  • the received address of the uplink MAC frame is compared with its own short identifier; if the comparison result is the same, indicating that it is the receiver of the uplink MAC frame, the valid data in the uplink MAC frame is parsed and obtained; If the comparison result is different, indicating that it is not the receiver of the uplink MAC frame, the uplink MAC frame is discarded.
  • the STA device obtains the short identifier of the AP device in the process of associating the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
  • FIG. 3 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 3, the method in this embodiment includes:
  • Step 301 The STA device receives a beacon frame broadcast by the AP device, where the beacon frame includes a short identifier of the AP device.
  • the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
  • the AP device carries the BSSID (ie, the MAC address) of the AP device in the beacon frame, so that the STA determines the basic service set (BSS) to be accessed by the STA.
  • the AP device is simultaneously
  • the beacon frame carries the short identifier of the AP device. That is, the beacon frame of the embodiment includes both The BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and obtains the BSSID of the AP device and the short identifier of the AP device at the same time. Correspondence.
  • the length of the short identifier of the AP device is smaller than the length of the BSSID of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • the short identity notification message is a beacon frame.
  • Step 301 can be regarded as a specific implementation manner in which the UE receives the short identification notification message.
  • the short identifier of the AP device may be automatically generated by the AP device according to its own location information, or may be uniformly allocated by the first configuration server according to the type of the AP device accessing the network, so that the generated or allocated short is configured.
  • the identifier can uniquely identify the AP device in the area where the AP device is located.
  • the short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish between the network identifier and the identifier in the network.
  • the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
  • Step 302 The STA device and the AP device perform authentication.
  • the STA device After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
  • Step 303 The STA device sends an association request to the AP device.
  • the STA device After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
  • Step 304 The STA device receives an association response sent by the AP device to associate with the AP device. After receiving the association request of the STA device, the AP device allocates an AID for the STA device, and the AP device identifies the different STA devices associated with the STA device in the service area. The AP device encapsulates the allocated AID in the association response and sends it to the STA device.
  • the STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device.
  • Step 305 The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is
  • the short identifier of the AP device, and the sending address is the AID of the STA device.
  • Step 306 The STA device sends an uplink MAC frame to the AP device.
  • steps 305 and 306 can be referred to the description of step 203 and step 204, and are not described herein again.
  • the STA device obtains the short identifier of the AP device in the process of discovering the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
  • FIG. 4 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 4, the method in this embodiment includes:
  • Step 401 The STA device sends a probe request frame to the AP device.
  • Step 402 The STA device receives a probe response frame sent by the AP device, where the probe response frame includes a short identifier of the AP device.
  • the STA device actively broadcasts the probe request frame to enable the surrounding AP device to respond, thereby discovering the AP device.
  • the probe response is sent to the STA device to respond, so that the STA device associates with the STA device.
  • the AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA.
  • the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the probe response frame sent by the AP device, and obtains the frame from the probe response frame.
  • the BSSID of the AP device and the short identifier of the AP device and the corresponding relationship between the BSSID of the AP device and the short identifier of the AP device.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • the short identifier notification message is a probe response frame.
  • Step 401 and step 402 can be regarded as a specific implementation manner in which the UE receives the short identifier notification message.
  • the short identifier of the AP device may be automatically generated by the AP device, or may be uniformly allocated by the first configuration server according to the type of the AP device accessing the network, so that the short identifier generated or allocated is in the area where the AP device is located.
  • the AP device can be uniquely identified.
  • the short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish between the network identifier and the identifier in the network.
  • the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
  • Step 403 The STA device and the AP device perform authentication.
  • Step 404 The STA device sends an association request to the AP device.
  • Step 405 The STA device receives an association response sent by the AP device to associate with the AP device.
  • Step 406 The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is The short identifier of the AP device, and the sending address is the AID of the STA device.
  • Step 407 The STA device sends an uplink MAC frame to the AP device.
  • step 403 to step 407 can be referred to the description of step 302 to step 306, and details are not described herein.
  • the STA device obtains the short identifier of the AP device in the process of discovering the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
  • the communication message is an uplink MAC frame as an example, but is not limited thereto.
  • FIG. 5 is a flowchart of a communication method according to another embodiment of the present invention. As shown in FIG. 5, the method in this embodiment includes:
  • Step 501 The AP device sends a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, and the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device.
  • the AP device is uniquely identified in the area where the AP device is located.
  • Step 502 The AP device receives the communication message.
  • Step 503 The AP device determines whether the receiving address in the communication message is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the communication message is the same as the short identifier of the AP device, step 504 is performed; If no, go to step 505.
  • Step 504 The AP device parses and obtains valid data in the communication message.
  • Step 505 The AP device discards the communication message.
  • the communication message in this embodiment may be a MAC frame.
  • the AP device receives the communication message sent by the other device, and compares the short identifier of the AP device with the receiving address in the communication message to determine whether it is the receiver of the communication message. If the receiving address is the same as the short identifier of the AP device, and the AP device determines that it is the receiver of the communication message, the communication message is parsed to obtain valid data therein. If the receiving address is different from the short identifier of the AP device, and the AP device determines that it is not the recipient of the communication message, the communication message is discarded.
  • the other device that communicates with the AP device uses the short identifier of the AP device as the receiving address of the communication message.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame of the communication message in this embodiment.
  • the header is smaller than the MAC frame header of the prior art, which increases the proportion of valid data in the communication message, improves the utilization of the communication message, and improves the utilization of the transmission channel.
  • the other device that communicates with the AP device may be an ST A device or another AP device. That is, the communication message received by the AP device may be sent by the STA device, and may be sent by another AP device.
  • FIG. 6 is a flowchart of a data frame receiving method according to an embodiment of the present invention. As shown in FIG. 6, the method of this embodiment includes:
  • Step 601 The AP device receives an uplink MAC frame sent by the STA device.
  • Step 602 The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 603 is performed; If no, go to step 604.
  • the short identifier of the AP device is smaller than the length of the MAC address of the AP device.
  • the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
  • Step 603 The AP device parses and obtains valid data in the uplink MAC frame.
  • Step 604 The AP device discards the uplink MAC frame.
  • another device that communicates with the AP device is a STA device.
  • the STA device uses the short identifier of the AP device as the receiving address of the uplink MAC frame, and sends the uplink MAC frame to the AP device.
  • the AP device receives the uplink MAC frame sent by the STA device, and then compares the received address in the uplink MAC frame with the short identifier of the AP device to determine whether it is the receiver of the MAC frame. If the judgment result is the same, the AP device parses the uplink MAC frame to obtain valid data therein. If the judgment result is different, the AP device discards the uplink MAC frame.
  • the STA device uses the short identifier of the AP device as the receiving address of the uplink MAC frame, the MAC frame header is reduced compared with the prior art, the proportion of the effective data in the uplink MAC frame is increased, and the utilization of the uplink MAC frame is improved. The rate, in turn, improves the utilization of the transmission channel.
  • FIG. 7 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in FIG. 7, the method in this embodiment includes:
  • Step 701 The AP device receives an association request sent by the STA device.
  • the ST A device sends an association request to the AP device to request association with the AP device.
  • the AP device receives the association request sent by the STA device.
  • Step 702 The AP device sends an association response to the STA device to associate the STA device, where the association response includes a short identifier of the AP device.
  • the AP device After receiving the association request sent by the STA device, the AP device allocates a 16-bit AID to the STA device for the AP device to identify different STA devices associated with itself in the service area. Then, the AP device simultaneously sends the assigned AID and the short identifier of the AP device in the association response to the STA device. That is, the association response of this embodiment includes both the AID of the STA and the short identifier of the AP device.
  • the short identifier of the AP device is smaller than the length of the MAC address of the AP device.
  • the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
  • the short identifier notification message is an association response.
  • Step 701 and step 702 can be regarded as a specific implementation manner in which the AP sends a short identifier notification message.
  • the STA device After receiving the association response, the STA device obtains the short identifier of the AID and the AP device that the AP device allocates to itself.
  • the STA device When the data needs to be sent to the AP device, the STA device generates an uplink MAC frame, and uses the short identifier of the AP device as the receiving address in the uplink MAC frame, and uses the AID of the STA device as the sending address in the uplink MAC frame, and then sends the data to the AP. device.
  • the AP device receives the uplink MAC frame sent by the STA device.
  • the short identifier of the AP device is shorter than the BSSID of the AP device, and the length of the STA is shorter than the MAC address of the STA. Therefore, the MAC frame header in the uplink MAC frame in this embodiment is smaller than the prior art. The MAC frame header in .
  • Step 704 The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 705 is performed; If no, go to step 706.
  • Step 705 The AP device parses and obtains valid data in the uplink MAC frame.
  • Step 706 The AP device discards the uplink MAC frame.
  • the AP device After receiving the uplink MAC frame, the AP device compares the received address in the uplink MAC frame with its own short identifier. If the comparison result is the same, indicating that it is the receiver of the uplink MAC frame, the uplink MAC frame is parsed. Get the valid data in it; if the comparison result is different, it means that you are not the receiver of the MAC frame, so the received uplink MAC frame is discarded.
  • the AP device provides its own short identifier to the STA device in the process of being associated with the STA device, and the STA device uses the short identifier of the AP device to communicate with the AP device, and the STA device and the AP device use the AP.
  • the short identifier of the device communicates, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
  • FIG. 8 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in Figure 8, The method of this embodiment includes:
  • Step 801 The AP device broadcasts a beacon frame to the STA device, where the beacon frame includes a short identifier of the AP device.
  • the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
  • the AP device carries the BSSID (ie, MAC address) of the AP device in the beacon frame, so that the STA can determine the BSS to be accessed by the STA.
  • the AP device simultaneously carries the short identifier of the AP device in the beacon frame. That is, the beacon frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and simultaneously acquires the BSSID of the AP device and the short identifier of the AP device. Correspondence relationship.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device.
  • the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
  • the short identity notification message is a beacon frame.
  • Step 801 can be regarded as a specific implementation manner in which the AP sends a short identification notification message.
  • Step 802 The AP device authenticates the STA device.
  • the STA device After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
  • Step 803 The AP device receives an association request sent by the STA device.
  • the STA device After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
  • Step 804 The AP device sends an association response to the STA device to associate the STA device. After receiving the association request of the STA device, the AP device allocates an AID for the STA device, and the AP device identifies the different STA devices associated with the STA device in the service area. The AP device encapsulates the allocated AID in the association response and sends it to the STA device.
  • the STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device.
  • Step 805 The AP device receives an uplink MAC frame sent by the STA device.
  • Step 806 The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 807 is performed; If no, go to step 808.
  • Step 807 The AP device parses and obtains valid data in the uplink MAC frame.
  • Step 808 The AP device discards the uplink MAC frame.
  • step 805 to step 808 can be referred to the description of step 703 to step 706, and details are not described herein again.
  • the AP device provides its own short identifier to the STA device in the process of the STA device discovering the AP device, and lays a foundation for the STA device to communicate with the AP device by using the short identifier of the AP device, and the STA device and the AP device.
  • the short identifier of the AP device is used for communication, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
  • FIG. 9 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in FIG. 9, the method in this embodiment includes:
  • Step 901 The AP device receives the probe request frame sent by the STA device.
  • Step 902 The AP device sends a probe response frame to the STA device, where the probe response frame includes a short identifier of the AP device.
  • the STA device actively broadcasts the probe request frame to enable the surrounding AP device to respond, thereby discovering the AP device.
  • the request frame sends a probe response to the STA device in response to the STA device to associate with it.
  • the AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA.
  • the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the probe response frame sent by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the probe response frame, and simultaneously obtains the BSSID between the AP device and the short identifier of the AP device. Correspondence relationship.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • the short identifier notification message is a probe response frame.
  • Step 901 and step 902 can be regarded as a specific implementation manner in which the AP sends a short identifier notification message.
  • Step 903 The AP device authenticates the STA device.
  • Step 904 The AP device receives an association request sent by the STA device.
  • Step 905 The AP device sends an association response to the STA device to associate the STA device.
  • Step 906 The AP device receives an uplink MAC frame sent by the STA device.
  • Step 907 The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 908 is performed; If the result is no, step 909 is performed.
  • Step 908 The AP device parses the valid data in the uplink MAC frame.
  • Step 909 The AP device discards the uplink MAC frame.
  • steps 903 to 909 refer to the description of steps 802 to 808. Said.
  • the AP device provides its own short identifier to the STA device in the process of the STA device discovering the AP device, and lays a foundation for the STA device to communicate with the AP device by using the short identifier of the AP device, and the STA device and the AP device.
  • the short identifier of the AP device is used for communication, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
  • the communication message is an uplink MAC frame as an example, but is not limited thereto.
  • the short identifier of the AP device may include a network identifier and an intra-network identifier.
  • the short identifier of the AP device may also not distinguish between the network identifier and the intra-network identifier. For example, all the bits may be used as the network identifier.
  • the length of the short identifier of the AP device is preferably 16 bits.
  • FIG. 10A shows a short identification structure including a 6-bit network identifier and a 10-bit intra-network identifier
  • FIG. 10B shows a short-identification structure of a 16-bit network identifier, that is, does not include an intra-network identifier.
  • the AP device may be configured with a short identifier that uniquely identifies the AP device in the area where the AP device is located.
  • the operation of configuring the short identifier is an optional operation.
  • a short identifier can be pre-configured on the AP device.
  • a regional management organization uniformly manages the allocation of short identifiers for all APs in the area.
  • a network operation organization that deploys a network (such as a WiFi network) in an area needs to apply for a short identifier available to the regional management organization according to the type and size of the deployed network (such as how many APs need to be deployed), and is in the deployed network.
  • the AP assigns a short identifier obtained by the application to ensure that the short identifiers of the APs deployed in the same area are not duplicated.
  • the area management organization may deploy a regional network management function entity, for example, the first configuration server is responsible for uniformly allocating the short identifiers to the AP devices in the area, and the AP device sends a short identifier acquisition request to the first configuration server, where the short identifier is configured. Get request including AP The type of device access to the network.
  • the type of the access network includes the identification information of the area where the network is located, the identification information of the network operation organization, and the service type information (such as sensing detection, intelligent measurement, etc.) for the network.
  • the AP device receives the short identifier acquisition response sent by the first configuration server, where the short identifier acquisition response includes the short identifier of the AP device.
  • the short identifier of the AP device is uniformly allocated by the first configuration server from the pre-stored short identifier according to the type of the AP device accessing the network, so that the allocated short identifier is in the area where the AP is located. Uniquely identifies the AP device.
  • the AP device automatically generates its own short identifier according to its own location, so that the generated short identifier uniquely identifies the AP device in the area where the AP is located. Since the location information of different AP devices is different, the short identifier generated based on the location information can ensure the uniqueness of the entire network.
  • configuring the short identifier for the AP device includes configuring the network identifier and the identifier of the network for the AP device.
  • the network identifier can uniquely identify a network in an area, and the area management organization can uniformly manage the allocation of network identifiers of all APs in the area.
  • a method for configuring a network identifier for an AP device may be a regional network management function entity deployed by the area management organization, that is, the second configuration server is uniformly allocated.
  • the AP device sends a network identity acquisition request to the second configuration server, where the network identity acquisition request includes a type of the AP device accessing the network.
  • the AP device receives the network identifier acquisition response sent by the second configuration server, where the network identifier acquisition response includes the network identifier in the short identifier of the AP device.
  • the network identifier in the short identifier of the AP device is uniformly allocated by the second configuration server from the pre-stored network identifier according to the type of the AP device accessing the network, so that the short identifier of the AP device is in the AP device.
  • the AP device can be uniquely identified in the area.
  • the network identifier is stored on the second configuration server.
  • the method for configuring the identifier in the network for the AP device may be uniformly generated and allocated by the third configuration server for the AP device.
  • the third configuration server is an AP tube deployed in each local area network.
  • the method specifically includes: the AP device sends an intra-network identity acquisition request to the third configuration server; the AP receives the intra-network identity acquisition response sent by the third configuration server, where the intra-network identity acquisition response includes the short identifier in the AP device. Intranet identification.
  • the intra-network identifier in the short identifier of the AP device is generated and allocated by the third configuration server according to the intra-network identifier acquisition request, so that the short identifier of the AP device can be uniquely identified in the area where the AP device is located. AP equipment.
  • the third configuration server if the third configuration server conflicts with the other AP devices generated by the AP device in the embodiment, the third configuration server needs to re-generate the intra-network identifier for the AP device in the embodiment, until The AP devices do not conflict.
  • the method for configuring the identifier of the network for the AP device may be automatically generated by the AP device according to the location information of the AP.
  • the method specifically includes: the AP device automatically generates an identifier of the first network according to the location information of the AP, and sends an internal identifier request to other APs in the network where the AP device is located.
  • the internal identification request includes a first intra-network identity.
  • the AP device can broadcast an internal identification request to the network.
  • the AP device uses the identifier of the first network as the identifier of the network in the short identifier of the AP device, so that the short identifier of the AP device is An AP device can be uniquely identified in the area where the AP device is located.
  • the other AP devices in the network compare the first intranet identifier with the own intranet identifier; if the comparison result is different, the response is not performed, and the internal The identification request is discarded; if the comparison result is the same, an internal identification response is sent to the AP device that sends the internal identification request. That is, the internal identity response is sent to the AP device when the other AP device has the same identity in the network as the first network.
  • the other AP device may further include, in the internal identifier response, indication information that the identifier in the first network has been used.
  • the AP device may regenerate a first intra-network identifier, and send another internal identifier request carrying the regenerated first intra-network identifier to other AP devices until it determines that it is The identity of the network is up to now.
  • the foregoing methods for configuring the short identifiers can solve the problem that the two APs in the adjacent area use the same short identifier, and the STA device in the overlapping coverage area of the two AP devices cannot be identified because the associated AP device cannot be identified.
  • the problem of not being able to communicate properly is conducive to ensuring the quality of communication.
  • FIG. 11 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 11, the method in this embodiment includes:
  • Step 1101 The AP device generates a MAC frame, where the sending address of the MAC frame is a short identifier of the AP device, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and the short identifier of the AP device is used in the AP.
  • the AP device is uniquely identified in the area where the device is located.
  • Step 1102 The AP device sends a MAC frame to the receiving device.
  • the AP device uses the short identifier of the AP device as the sending address of the MAC frame, and communicates with another device (ie, the receiving device).
  • the sending address used is the MAC address of the AP device
  • the length of the MAC address of the AP device is 48 bits, so that the MAC frame header is long, which is used in this embodiment.
  • the short identifier of the AP device is smaller than the MAC address of the AP device, which reduces the MAC frame header, increases the proportion of valid data in the MAC frame, improves the utilization of the MAC frame, and improves the utilization of the transmission channel.
  • the receiving device that communicates with the AP device may be a STA device or another AP device.
  • FIG. 12 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 12, the method in this embodiment includes:
  • Step 1201 The AP device receives an association request sent by the STA device.
  • the ST A device sends an association request to the AP device to request association with the AP device.
  • the AP device receives the association request sent by the STA device.
  • Step 1202 The AP device sends an association response to the STA device to associate the STA device, where the association response includes a short identifier of the AP device.
  • the AP device After receiving the association request sent by the STA device, the AP device allocates a 16-bit AID to the STA device for the AP device to identify different STA devices associated with itself in the service area. Then, the AP device simultaneously sends the assigned AID and the short identifier of the AP device in the association response to the STA device. That is, the association response of this embodiment includes both the AID of the STA and the short identifier of the AP device.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • Step 1203 The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
  • the AP device when the AP device needs to send data to the STA device, generate a downlink MAC frame, and use the short identifier of the AP device as the sending address in the downlink MAC frame, and use the AID of the STA device as the sending in the downlink MAC frame. address.
  • the short identifier of the AP device is shorter than the MAC address of the AP device, and the length of the STA is shorter than the MAC address of the STA. Therefore, the MAC frame header in the downlink MAC frame in this embodiment is smaller than the existing one.
  • the MAC frame header in the technology is smaller than the existing one.
  • Step 1204 The AP device sends the downlink MAC frame to the STA device.
  • the AP device sends the downlink MAC frame to the STA device.
  • STA set The standby device receives the downlink MAC frame sent by the AP device. Then, the STA device compares the received address in the downlink MAC frame with its own AID to determine whether it is the receiver of the downlink MAC frame. If the judgment result is yes, the STA device parses the downlink MAC frame to obtain valid data therein; if the judgment result is no, the STA device discards the downlink MAC frame.
  • the STA device may further compare the sending address in the downlink MAC frame with the short identifier of the AP device acquired in the association response, and determine whether the downlink MAC frame is associated with the AP. The device sends to further determine whether it is the receiver of the downlink MAC frame. If the result of the determination is yes, and the AID of the STA is the same as the receiving address in the downlink MAC frame, the STA device parses the downlink MAC frame to obtain valid data therein; if the determination result is no, regardless of the STA's AID and Whether the receiving address in the downlink MAC frame is the same, and the STA device discards the downlink MAC frame.
  • the downlink MAC frame sent by the AP device to the STA replaces the BSSID of the AP device in the prior art by using the short identifier of the AP device, reduces the MAC frame header, and increases the proportion of valid data in the downlink MAC frame.
  • the utilization of the downlink MAC frame is improved, thereby improving the utilization of the transmission channel.
  • FIG. 13 is a flowchart of a method for sending a data frame according to another embodiment of the present invention. As shown in FIG. 13, the method in this embodiment includes:
  • Step 1301 The AP device broadcasts a beacon frame to the STA device, where the beacon frame includes a short identifier of the AP device.
  • the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
  • the AP device carries the BSSID of the AP device in the beacon frame, so that the STA determines the BS to be accessed by the STA.
  • the AP device simultaneously carries the short identifier of the AP device in the beacon frame. That is, the beacon frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and simultaneously acquires the BSSID of the AP device and the short identifier of the AP device. Correspondence relationship.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • Step 1302 The AP device authenticates the STA device.
  • the STA device After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
  • Step 1303 The AP device receives an association request sent by the STA device.
  • the STA device After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
  • Step 1304 The AP device sends an association response to the STA device to associate the STA device.
  • the AP device After receiving the association request of the STA device, the AP device allocates an AID to the STA device, and the AP device identifies the different STA device associated with the STA in the service area. The AP device encapsulates the assigned AID in the association response and sends it to the STA device.
  • the STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device.
  • Step 1305 The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
  • Step 1306 The AP device sends the downlink MAC frame to the ST A device.
  • Step 1305 and step 1306 can be referred to the description of step 1203 and step 1204, and details are not described herein.
  • the downlink MAC frame sent by the AP device to the STA uses the short identifier of the AP device.
  • the MAC frame header is reduced, the proportion of effective data in the downlink MAC frame is increased, the utilization of the downlink MAC frame is improved, and the utilization of the transmission channel is improved.
  • Step 1401 The AP device receives a probe request frame sent by the STA device.
  • Step 1402 The AP device sends a probe response frame to the STA device, where the probe response frame includes a short identifier of the AP device.
  • the STA device actively broadcasts the probe request frame, so that the surrounding AP device responds to discover the AP device.
  • the probe response is sent to the STA device to respond, so that the STA device can be associated with it.
  • the AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA.
  • the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
  • the STA device receives the probe response frame sent by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the probe response frame, and simultaneously obtains the BSSID between the AP device and the short identifier of the AP device. Correspondence relationship.
  • the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
  • Step 1403 The AP device authenticates the STA device.
  • Step 1404 The AP device receives an association request sent by the STA device.
  • Step 1405 The AP device sends an association response to the STA device to associate the STA device.
  • Step 1406 The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
  • Step 1407 The AP device sends the downlink MAC frame to the STA device.
  • steps 1403 to 1407 can be referred to the description of step 1302 to step 1306, and details are not described herein again.
  • the downlink MAC frame sent by the AP device to the STA replaces the BSSID of the AP device in the prior art by using the short identifier of the AP device, reduces the MAC frame header, and increases the proportion of valid data in the downlink MAC frame.
  • the utilization of the downlink MAC frame is improved, thereby improving the utilization of the transmission channel.
  • the short identifier of the AP device may include a network identifier and an intra-network identifier.
  • the short identifier of the AP device may also not distinguish between the network identifier and the identifier of the network. For example, all the bits may be used as the network identifier.
  • the length of the short identifier of the AP device is preferably 16 bits.
  • the AP device may be configured with a short identifier.
  • the operation of configuring the short identifier is an optional operation.
  • a short identifier can be pre-configured on the AP.
  • the embodiment of the present invention completes the AP device by using the short identifier of the BSSID whose length is smaller than the AP, and the short identifier of the AP is used to replace the BSSID of the AP used in the prior art as the sending address or receiving address of the MAC frame.
  • the communication between the STA device or another AP device reduces the MAC frame header, improves the utilization of the MAC frame, and improves the utilization of the transmission channel.
  • FIG. 15 is a schematic structural diagram of a STA device according to an embodiment of the present invention.
  • the STA device in this embodiment includes: a notification message receiving module 150, a first generating module 151, and a first sending The module 152 is sent.
  • the notification message receiving module 150 is configured to receive a short identifier notification message that is sent by the AP device, where the short identifier notification message includes a short identifier of the AP device, and the short identifier of the AP device is smaller than the AP device.
  • the length of the MAC address, the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
  • the first generating module 151 is in communication with the notification message receiving module 150, and is configured to generate a communication message, where the receiving address of the communication message is a short identifier of the AP device.
  • the first sending module 152 is in communication with the first generating module 151, and is configured to send the communication message generated by the first generating module 151 to the AP device.
  • the communication message may be a MAC frame.
  • the function modules of the STA device can be used to execute the flow of the communication method shown in FIG. 1.
  • the specific working principle is not described here. For details, refer to the description of the method embodiments.
  • the STA device in this embodiment uses the short identifier of the AP device as the receiving address of the communication message, and then sends the communication message to the AP device to implement communication with the AP device.
  • the length of the short identifier of the AP device is smaller than the MAC address of the AP device.
  • the length of the address (ie, BSSID) reduces the MAC frame header in the communication message, increases the proportion of valid data in the communication message, improves the utilization of the communication message, and improves the utilization of the transmission channel.
  • the short identifier notification message in this embodiment may be an association response.
  • the notification message receiving module 150 of the embodiment is specifically configured to send an association request to the AP device before the first generation module 151 generates the communication message, and then receive an association response sent by the AP device to associate with the AP device.
  • the short identifier notification message of this embodiment may also be a beacon frame.
  • the notification message receiving module 150 is specifically configured to receive a beacon frame broadcast by the AP device, where the beacon frame includes a short identifier of the AP device.
  • the short identifier notification message of this embodiment may also be a probe response frame. Notification message
  • the receiving module 150 specifically receives the probe response frame sent by the AP device, where the probe response frame includes a short identifier of the AP device.
  • the short identifier of the AP device may be automatically generated by the AP device according to the location information of the AP device, so that the generated short identifier uniquely identifies the AP device in the area where the AP device is located, or may be accessed by the first configuration server according to the AP device.
  • the type is uniformly assigned to the AP device, so that the assigned short identifier uniquely identifies the AP device in the area where the AP device is located.
  • the short identifier of the AP device may include a network identifier and an intra-network identifier.
  • the network identifier may be uniformly allocated by the second configuration server according to the type of the AP device accessing the network, and the identifier of the network may be uniformly generated and allocated by the third configuration server or automatically generated by the AP device according to the location information of the AP device, so that the AP device
  • the short identifier uniquely identifies the AP device in the area where the AP device is located.
  • the short identifier of the AP device has a length of 16 bits.
  • the STA device of the present embodiment obtains the short identifier of the AP device in the process of discovering the AP device or the process of associating the AP device by using various modules, and lays a foundation for communicating with the AP device by using the short identifier of the AP device, because
  • the STA of the embodiment uses the short identifier of the AP device whose length is smaller than the MAC address of the AP device as the receiving address of the communication message, so that the MAC frame header in the communication message is reduced, the proportion of the valid data in the communication message is increased, and the communication is improved.
  • the utilization of the message which in turn increases the utilization of the transmission channel.
  • FIG. 16 is a schematic structural diagram of an AP device according to an embodiment of the present invention. As shown in FIG. 17, the AP device of this embodiment includes: a notification message sending module 170, a receiving module 171, a determining module 172, and a data acquiring module 173.
  • the notification message sending module 170 is configured to send a short identifier notification message, and the short identifier notification
  • the message includes a short identifier of the AP device, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and the short identifier of the AP device is used to uniquely identify the location of the AP device. Said AP device.
  • the receiving module 171 is configured to receive a communication message.
  • the determining module 172 is in communication with the receiving module 171, and is configured to determine whether the receiving address in the communication message received by the receiving module 171 is the same as the short identifier of the AP device.
  • the data obtaining module 173 is in communication with the determining module 172, and is configured to parse and obtain the data portion in the communication message when the determining result of the determining module 172 is the same.
  • the function modules of the AP device can be used to execute the flow of the communication method shown in FIG. 5, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the AP device in this embodiment communicates with other devices by using the short identifier of the AP device whose length is shorter than the MAC address of the AP device (ie, the BSSID), reduces the MAC frame header in the communication message, and improves the utilization of the communication message. , thereby improving the utilization of the transmission channel.
  • the short identifier of the AP device whose length is shorter than the MAC address of the AP device (ie, the BSSID)
  • reduces the MAC frame header in the communication message reduces the MAC frame header in the communication message, and improves the utilization of the communication message. , thereby improving the utilization of the transmission channel.
  • FIG. 17 is a schematic structural diagram of an AP device according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 16.
  • the receiving module 171 of this embodiment may be specifically configured to receive an uplink MAC frame sent by the STA device.
  • the determining module 172 is specifically configured to determine whether the receiving address in the uplink MAC frame received by the MAC frame receiving module 171 is the same as the short identifier of the AP device.
  • the data obtaining module 173 is specifically configured to parse and obtain the data portion in the uplink MAC frame when the judgment result of the determining module 172 is the same.
  • the AP device in this embodiment further includes: a second generation module 174 and a second sending module
  • the second generation module 174 is configured to generate a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device.
  • the second sending module 175 is in communication with the second generating module 174, and configured to send the downlink MAC frame generated by the second generating module 174 to the STA device.
  • the second generation module 174 and the second sending module 175 can be used to execute the flow of the data transmission method shown in FIG. 11.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the short identifier notification message of this embodiment may be an association response.
  • the notification message sending module 170 is specifically configured to: before the receiving module 171 receives the communication message, or before the second generation module 174 generates the downlink MAC frame, receive the association request sent by the STA device, and then send an association response to the STA device to associate the STA.
  • the device; the association response includes a short identifier of the AP device.
  • the short identifier notification message of this embodiment may be a beacon frame.
  • the notification message sending module 170 is specific
  • the beacon frame is broadcasted to the STA device, and the beacon frame includes a short identifier of the AP device.
  • the short identifier notification message of this embodiment may be a probe response frame.
  • the notification message sending module 170 is specific
  • a probe response frame is sent to the STA device, and the probe response frame includes a short identifier of the AP device.
  • the AP device in this embodiment may further include: a configuration module 180.
  • the configuration module 180 is configured to configure, for the AP device, a short identifier that uniquely identifies the AP device in the area where the AP device is located.
  • the configuration module 180 communicates with the determining module 172, the second generating module 17 and the notification message sending module 170, for providing the modules with short identifiers of the AP devices.
  • One configuration of the configuration module 180 includes: an acquisition request transmission sub-module 1801 and an acquisition response reception sub-module 1802.
  • the obtaining request sending sub-module 1801 is configured to send a short identifier obtaining request to the first configuration server, where the short identifier obtaining request includes a type of the AP device accessing the network.
  • the response receiving submodule 1802 is configured to receive the short identifier obtained by the first configuration server.
  • the short identifier acquisition response includes a short identifier of the device, and the short identifier of the UI device is uniformly allocated by the first configuration server from the pre-stored short identifier to the UI device according to the type of the device access network. So that the assigned short identifier uniquely identifies the defective device within the area in which the defect is located.
  • the configuration module 180 may further include: a first configuration sub-module 1803 and a second configuration sub-module 1804.
  • the first configuration submodule 1803 is configured to configure, for the device, the network identifier in the short identifier of the device.
  • the second configuration sub-module 1804 is configured to configure the intra-network identifier of the short identifier of the device for the device.
  • An implementation structure of the first configuration submodule 1803 includes: a first acquisition request sending unit and a first retrieval response receiving unit.
  • the first acquisition request sending unit is configured to send a network identity acquisition request to the second configuration server, where the network identity acquisition request includes a type of the device access network.
  • a first acquisition response receiving unit configured to receive a network identifier acquisition response sent by the second configuration server, where the network identifier acquisition response includes a network identifier in a short identifier of the device, and the network identifier in the short identifier of the device is configured by
  • the second configuration server uniformly allocates the ⁇ device from the pre-stored network identifier according to the type of the ⁇ device access network, so that the short identifier of the ⁇ device uniquely identifies the ⁇ device in the area where the ⁇ device is located.
  • An implementation structure of the second configuration sub-module 1804 includes: a second acquisition request sending unit and a second acquisition response receiving unit.
  • the second obtaining request sending unit is configured to send an in-network identifier obtaining request to the third configuration server.
  • a second acquisition response receiving unit configured to receive an intra-network identifier acquisition response sent by the third configuration server, where the intra-network identifier acquisition response includes an intra-network identifier in the short identifier of the device, and the short identifier in the device.
  • the intra-network identifier is generated and allocated by the third configuration server according to the intra-network identifier acquisition request, so that the short identifier of the device is uniquely identified in the area where the device is located. Ready.
  • Another implementation structure of the second configuration sub-module 1804 includes: an identification generating unit, an identification request sending unit, an identification response receiving unit, and an identification determining unit.
  • the identifier generating unit is configured to generate the first intra-network identifier according to the location information of the AP device.
  • the internal identification request includes a first intra-network identifier.
  • the identifier response receiving unit is configured to receive an internal identifier response returned by the other AP device within a preset time, where the internal identifier response is that the identifier of the other AP device is the same as the identifier of the first network when the identifier of the short identifier of the other AP device is the same Sent to the AP device.
  • the identifier determining unit is configured to: when the identifier response receiving unit does not receive the internal identifier response after the preset time ends, the identifier of the first network is used as the identifier of the network in the short identifier of the AP device, so that the short identifier of the AP device is used.
  • the AP device is uniquely identified in the area where the AP device is located.
  • the AP device of the present embodiment transmits the short identifier of the AP device to the STA device in the process of the STA device being discovered by the STA or the STA device is associated with the AP device, and the STA device uses the short identifier of the AP device to communicate with the STA device.
  • the MAC frame header in the MAC frame in the communication process increases the proportion of the valid data in the MAC frame, improves the utilization of the MAC frame, and further improves the utilization of the transmission channel.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present invention provide a communication method, a station (STA) device and an access point (AP) device. A communication method comprises: receiving a short identifier notification message, the short identifier notification message comprising a short identifier of an AP device, the length of the short identifier of the AP device being smaller than the length of a MAC address of the AP device, and the short identifier of the AP device being used for uniquely identifying the AP device inside a region where the AP device is located; generating a communication message, the receiving address of the communication message being the short identifier of the AP device; and sending the communication message to the AP device. In the technical solutions of the present invention, a short identifier whose length is smaller than that of a BSSID of an AP device is used as a receiving address or a sending address of a MAC frame to communicate with the AP device, so as to reduce the size of the MAC frame header, increase the utilization of the MAC frame, and further increase the utilization of a transmission channel.

Description

通信方法、 站点设备及接入点设备 本申请要求于 2012年 2月 17日提交中国专利局、 申请号为 201210037338.5、 发明名称为"通信方法、 站点设备及接入点设备"的中国专利申请的优先权, 其全 部内容通过引用结合在本申请中。 技术领域 本发明涉及通信技术, 尤其涉及一种通信方法、 站点设备及接入点设备。 背景技术 美国电气和电子工程师十办会 ( Institute of Electrical and Electronics Engineers, IEEE ) 802.11ah 的首要应用场景是传感器网络, 传感器网络主要包括接入点 ( Access Point, AP )设备和站点 ( Station, STA )设备。 IEEE 802.11 ah支持的 通信带宽为 100Kbps ( Kbits per second ) ~20Mbps , 因此 AP设备的覆盖半径由 目前的 100米扩展为 1千米, 每个 AP设备在其覆盖区域内所能服务的 STA设 备的数量更多。  Communication method, site device and access point device The present application claims to be filed on February 17, 2012 by the Chinese Patent Office, the application number is 201210037338.5, and the invention name is "communication method, site equipment and access point device" Priority is hereby incorporated by reference in its entirety. TECHNICAL FIELD The present invention relates to communication technologies, and in particular, to a communication method, a site device, and an access point device. BACKGROUND OF THE INVENTION The primary application scenario of the Institute of Electrical and Electronics Engineers (IEEE) 802.11ah is a sensor network. The sensor network mainly includes access point (AP) devices and stations (Station, STA). )device. The communication bandwidth supported by IEEE 802.11 ah is 100Kbps (Kbits per second) ~20Mbps, so the coverage radius of the AP device is extended from the current 100 meters to 1 kilometer, and the STA device that each AP device can serve in its coverage area More quantity.
STA设备通过数据帧向 AP设备发送传感数据。 其中, 传感数据是数据帧的 有效数据, 由于传感数据通常较小,数据帧的介质访问控制(Media Access Control, MAC ) 帧头占据了数据帧的大部分空间, 这导致信道利用率较低。  The STA device transmits the sensing data to the AP device through the data frame. The sensing data is valid data of the data frame. Since the sensing data is usually small, the Media Access Control (MAC) frame header of the data frame occupies most of the space of the data frame, which leads to channel utilization. low.
发明内容 本发明提供一种通信方法、 站点设备及接入点设备, 用以提高传输数据帧 时信道的利用率。 SUMMARY OF THE INVENTION The present invention provides a communication method, a site device, and an access point device for improving channel utilization when transmitting data frames.
本发明一方面提供一种通信方法, 包括:  An aspect of the present invention provides a communication method, including:
接收接入点 AP设备发送的短标识通知消息, 所述短标识通知消息包括所述 AP设备的短标识; 所述 AP设备的短标识的长度小于所述 AP设备的介质访问 控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区域内 唯一标识所述 AP设备;  Receiving a short identifier notification message sent by the access point AP device, where the short identifier notification message includes a short identifier of the AP device; the length of the short identifier of the AP device is smaller than a length of the medium access control MAC address of the AP device The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
生成通讯消息, 所述通讯消息的接收地址为所述 AP设备的短标识; 向所述 AP设备发送所述通讯消息。  Generating a communication message, where the receiving address of the communication message is a short identifier of the AP device; and sending the communication message to the AP device.
本发明一方面提供一种站点设备, 包括: 通知消息接收模块, 用于接收接入点 AP设备发送的短标识通知消息, 所述 短标识通知消息包括所述 AP设备的短标识; 所述 AP设备的短标识的长度小于 所述 AP设备的介质访问控制 MAC地址的长度, 所述 AP设备的短标识用于在 所述 AP设备所在区域内唯一标识所述 AP设备; An aspect of the present invention provides a site device, including: a notification message receiving module, configured to receive a short identifier notification message sent by the access point AP device, where the short identifier notification message includes a short identifier of the AP device, and the short identifier of the AP device is smaller than the AP device The length of the medium access control MAC address, the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
第一生成模块, 用于生成通讯消息, 所述通讯消息的接收地址为所述 AP设 备的短标识;  a first generating module, configured to generate a communication message, where the receiving address of the communication message is a short identifier of the AP device;
第一发送模块, 用于向所述 AP设备发送所述通讯消息。  The first sending module is configured to send the communication message to the AP device.
本发明另一方面提供一种通信方法, 包括:  Another aspect of the present invention provides a communication method, including:
接入点 AP设备发送短标识通知消息, 所述短标识通知消息包含所述 AP设 备的短标识, 所述 AP设备的短标识的长度小于所述 AP设备的介质访问控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区域内唯一 标识所述 AP设备;  The access point AP device sends a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, and the length of the short identifier of the AP device is smaller than the length of the medium access control MAC address of the AP device. The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
所述 AP设备接收包含所述 AP设备短标识的通讯消息;  Receiving, by the AP device, a communication message that includes the short identifier of the AP device;
所述 AP设备判断所述通讯消息中的接收地址与所述 AP设备的短标识是否 相同;  The AP device determines whether the receiving address in the communication message is the same as the short identifier of the AP device;
如果判断结果为相同, 所述 AP设备解析获得所述通讯消息中的有效数据。 本发明另一方面提供一种接入点设备, 包括:  If the judgment result is the same, the AP device parses the valid data in the communication message. Another aspect of the present invention provides an access point device, including:
通知消息发送模块, 用于发送短标识通知消息, 所述短标识通知消息包含 所述 AP设备的短标识, 所述 AP设备的短标识的长度小于所述 AP设备的介质 访问控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区 域内唯一标识所述 AP设备;  a notification message sending module, configured to send a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, where a length of the short identifier of the AP device is smaller than a length of the medium access control MAC address of the AP device The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
接收模块, 用于接收通讯消息;  a receiving module, configured to receive a communication message;
判断模块, 用于判断所述第一接收模块接收到的所述通讯消息中的接收地 址与所述 AP设备的短标识是否相同;  a determining module, configured to determine whether a receiving address in the communication message received by the first receiving module is the same as a short identifier of the AP device;
数据获取模块, 用于在所述判断模块的判断结果为相同时, 解析获得所述 通讯消息中的数据部分。  And a data obtaining module, configured to parse and obtain a data part in the communication message when the judgment result of the determining module is the same.
本发明一方面提供的通信方法及站点设备 STA设备使用 AP设备的短标识 作为通讯消息的接收地址, 在生成通讯消息后发送给 AP设备, 实现与 AP设备 的通信。 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度 因此, 与现有技术相比, 本发明技术方案中数据帧中 MAC帧头占据的空间减少了, 提 高了通讯消息的利用率, 进而提高了传输通讯消息时信道的利用率。 本发明另一方面提供的通信方法及接入点设备, AP设备接收通讯消息, 然 后使用 AP设备的短标识和通讯消息中的接收地址进行比较, 以判断是否为该通 讯消息的接收者, 如果是, 则获取通讯消息中的有效数据, 由于 AP设备的短标 识的长度小于 AP设备的 MAC地址的长度, 因此, 与现有技术相比, 本发明技 术方案中数据帧中 MAC帧头占据的空间减少了, 提高了通讯消息的利用率, 进 而提高了传输通讯消息时信道的利用率。 The communication method and the STA device of the site device use the short identifier of the AP device as the receiving address of the communication message, and send the communication message to the AP device to implement communication with the AP device. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, compared with the prior art, the space occupied by the MAC frame header in the data frame is reduced in the technical solution of the present invention, and the utilization rate of the communication message is improved. In turn, the channel utilization rate when transmitting communication messages is improved. The communication method and the access point device provided by another aspect of the present invention, the AP device receives the communication message, and then compares the short identifier of the AP device with the receiving address in the communication message to determine whether it is the receiver of the communication message, if If yes, the valid data in the communication message is obtained. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, compared with the prior art, the MAC frame header occupied by the data frame in the technical solution of the present invention is occupied. The space is reduced, the utilization of communication messages is improved, and the channel utilization rate when transmitting communication messages is improved.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作一筒单地介绍, 显而易见地, 下面描 述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE 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 embodiments or the prior art description will be briefly described below, and obviously, the following description will be described below. The drawings in the drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明一实施例提供的通信方法的流程图;  FIG. 1 is a flowchart of a communication method according to an embodiment of the present invention;
图 2A为本发明一实施例提供的数据帧发送方法的流程图;  2A is a flowchart of a data frame sending method according to an embodiment of the present invention;
图 2B为本发明另一实施例提供的上行数据帧的一种结构示意图; 图 2C为本发明另一实施例提供的上行数据帧的另一种结构示意图; 图 3为本发明另一实施例提供的数据帧发送方法的流程图;  2B is a schematic structural diagram of an uplink data frame according to another embodiment of the present invention; FIG. 2C is another schematic structural diagram of an uplink data frame according to another embodiment of the present invention; A flowchart of a method for transmitting a data frame provided;
图 4为本发明又一实施例提供的数据帧发送方法的流程图;  4 is a flowchart of a data frame sending method according to another embodiment of the present invention;
图 5为本发明另一实施例提供的通信方法的流程图;  FIG. 5 is a flowchart of a communication method according to another embodiment of the present invention;
图 6为本发明一实施例提供的数据帧接收方法的流程图;  FIG. 6 is a flowchart of a data frame receiving method according to an embodiment of the present invention;
图 7为本发明另一实施例提供的数据帧接收方法的流程图;  FIG. 7 is a flowchart of a data frame receiving method according to another embodiment of the present invention;
图 8为本发明又一实施例提供的数据帧接收方法的流程图;  FIG. 8 is a flowchart of a data frame receiving method according to another embodiment of the present invention;
图 9为本发明又一实施例提供的数据帧接收方法的流程图;  FIG. 9 is a flowchart of a data frame receiving method according to another embodiment of the present invention;
图 10A为本发明一实施例提供的包括 6比特网络标识和 10比特网内标识的 短标识结构示意图;  10A is a schematic structural diagram of a short identifier including a 6-bit network identifier and a 10-bit intra-network identifier according to an embodiment of the present invention;
图 10B为本发明一实施例提供的仅包括网络标识的短标识结构示意图; 图 11为本发明又一实施例提供的数据帧发送方法的流程图;  FIG. 10B is a schematic diagram of a short identifier structure including only a network identifier according to an embodiment of the present invention; FIG. 11 is a flowchart of a data frame sending method according to another embodiment of the present invention;
图 12为 本发明又一实施例提供的数据帧发送方法的流程图;  FIG. 12 is a flowchart of a data frame sending method according to another embodiment of the present invention;
图 13为本发明又一实施例提供的数据帧发送方法的流程图;  FIG. 13 is a flowchart of a method for sending a data frame according to another embodiment of the present invention;
图 14为本发明又一实施例提供的数据帧发送方法的流程图;  FIG. 14 is a flowchart of a data frame sending method according to another embodiment of the present invention;
图 15为本发明一实施例提供的 STA设备的结构示意图; 图 16为本发明一实施例提供的 AP设备的结构示意图; FIG. 15 is a schematic structural diagram of a STA device according to an embodiment of the present disclosure; FIG. 16 is a schematic structural diagram of an AP device according to an embodiment of the present disclosure;
图 17为本发明另一实施例提供的 AP设备的结构示意图。  FIG. 17 is a schematic structural diagram of an AP device according to another embodiment of the present invention.
具体实施方式 detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中 的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
现有技术中, 当 STA设备与 AP设备进行通信时, 至少需要在 MAC帧头 中的接收地址 ( Receiver Address, RA )域或发送地址 ( Transmitter Address, TA ) 域填写 AP设备的 48位基本服务集标识( Basic Service Set Identifier, BSSID ) , 以指示数据帧是发送到哪个 AP或由哪个 AP发送的。现有技术中的 BSSID即为 AP设备的 MAC地址故在本发明各实施例中均以 AP设备的 MAC地址为例进 行说明。 针对现有技术中数据帧中的 MAC帧头较长, 占据了数据帧的大部分空 间, 由此导致数据帧所能携带的信息量较少, 利用率较低, 传输数据帧的信道 的利用率较低的问题本发明实施例提供一种通过为 AP设备定义短标识( Access Point Identifier, APID ) , 将 STA设备与 AP设备通信过程中数据帧的 MAC帧头 中用于标识 AP设备的 48位的 MAC地址替换为 AP设备的短标识, 以进一步减 小 MAC帧头的长度, 通过减少 MAC帧头的长度来提高传输数据帧的信道的利 用率的技术方案。 本发明技术方案主要包括如何通过 AP设备的短标识进行通 信。  In the prior art, when the STA device communicates with the AP device, at least the 48-bit basic service of the AP device needs to be filled in the Receiver Address (RA) field or the Transmitter Address (TA) field in the MAC frame header. A Basic Service Set Identifier (BSSID) to indicate to which AP the data frame is sent or which AP to send. The BSSID in the prior art is the MAC address of the AP device. Therefore, in the embodiments of the present invention, the MAC address of the AP device is taken as an example for description. In the prior art, the MAC frame header in the data frame is long, occupying most of the space of the data frame, thereby causing less data amount to be carried by the data frame, lower utilization rate, and utilization of the channel for transmitting the data frame. The problem of the lower rate is provided by the embodiment of the present invention. By defining an Access Point Identifier (APID) for the AP device, the MAC frame header of the data frame in the communication process between the STA device and the AP device is used to identify the AP device. The MAC address of the bit is replaced with the short identifier of the AP device to further reduce the length of the MAC frame header, and the technical solution for improving the utilization of the channel of the transmitted data frame by reducing the length of the MAC frame header. The technical solution of the present invention mainly includes how to communicate through the short identifier of the AP device.
图 1为本发明一实施例提供的通信方法的流程图。 如图 1所示, 本实施例 的方法包括:  FIG. 1 is a flowchart of a communication method according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
步骤 101、 接收 AP设备发送的短标识通知消息, 所述短标识通知消息包括 AP设备的短标 所述 AP设备的短标识的长度小于 AP设备的 MAC地址的长 度, 所述 AP设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。 Step 101: Receive a short identifier notification message sent by the AP device, where the short identifier notification message includes The short identifier of the AP device is shorter than the length of the MAC address of the AP device, and the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
其中, AP设备所在区域主要是指以 AP设备为中心的一定范围。 每个 AP 设备所在区域可以在布设 AP设备时设定。 例如, 假设 AP设备的覆盖范围为半 径 1公里, 则 AP设备所在区域可以设置为半径为 5公里的区域。  The area where the AP device is located mainly refers to a certain range centered on the AP device. The area where each AP device is located can be set when the AP device is deployed. For example, if the coverage of the AP device is half a kilometer, the area where the AP device is located can be set to an area with a radius of 5 kilometers.
步骤 102、 生成通讯消息, 所述通讯消息的接收地址为 AP设备的短标识。 步骤 103、 向 AP设备发送通讯消息。  Step 102: Generate a communication message, where the receiving address of the communication message is a short identifier of the AP device. Step 103: Send a communication message to the AP device.
在本实施例中, 所述通讯消息可以是 MAC帧。  In this embodiment, the communication message may be a MAC frame.
在本实施例中, 与 AP设备进行通信的另一设备生成通讯消息, 并将 AP设 备的短标识作为通讯消息的接收地址, 然后将该通讯消息发送给 AP设备, 实现 与 AP设备的通信。 由于 AP设备的短标识的长度小于 AP设备的 MAC地址(即 BSSID ) 的长度, 故本实施例中通讯消息的 MAC帧头小于现有技术的 MAC帧 头, 增加了通讯消息中的有效数据的比重, 提高了通讯消息帧的利用率, 进而 提高了传输通讯消息的信道(筒称为传输信道) 的利用率。  In this embodiment, another device that communicates with the AP device generates a communication message, and uses the short identifier of the AP device as the receiving address of the communication message, and then sends the communication message to the AP device to implement communication with the AP device. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device (ie, the BSSID). Therefore, the MAC frame header of the communication message in this embodiment is smaller than the MAC frame header of the prior art, and the valid data in the communication message is added. The proportion increases the utilization of communication message frames, which in turn increases the utilization of the channel (called the transmission channel) for transmitting communication messages.
其中, 与 AP设备进行通信的另一设备可以是 STA设备, 也可以是另一个 The other device that communicates with the AP device may be a STA device or another
AP设备。 本实施例对此不作限定。 AP equipment. This embodiment does not limit this.
在 AP设备与 AP设备的通信过程中, 其中一个 AP设备生成通讯消息帧, 该通讯消息帧被发送给另一个 AP设备。 所述其中一个 AP设备生成的通讯消息 的接收地址为所述另一个 AP设备的短标识, 发送地址为所述其中一个 AP设备 的短标识。 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 因 此, 本实施例数据帧的 MAC帧头小于现有技术的 MAC帧头, 增加了通讯消息 中的有效数据部分, 提高了通讯消息的利用率, 进而提高了传输通讯消息的信 道的利用率。 在 STA设备与 AP设备的通信过程中, STA设备生成通讯消息, 该通讯消 息是上行 MAC帧。 STA设备所生成的上行 MAC帧的接收地址为 AP设备的短 标识, 发送地址为 STA的关联标识(Association Identifier, AID )。 由于 AP设 备的短标识的长度小于 AP设备的 MAC地址的长度, 因此, 本实施例上行 MAC 帧的 MAC帧头小于现有技术的 MAC帧头, 增加了上行 MAC帧中的有效数据 部分, 提高了上行 MAC帧的利用率, 进而提高了传输上行 MAC帧的信道的利 用率。 During the communication between the AP device and the AP device, one of the AP devices generates a communication message frame, and the communication message frame is sent to another AP device. The receiving address of the communication message generated by one of the AP devices is a short identifier of the another AP device, and the sending address is a short identifier of the one of the AP devices. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame header of the data frame in this embodiment is smaller than the MAC frame header of the prior art, and the effective data portion in the communication message is increased, and the communication is improved. The utilization of the message, in turn, improves the utilization of the channel through which the communication message is transmitted. During the communication between the STA device and the AP device, the STA device generates a communication message, which is an uplink MAC frame. The receiving address of the uplink MAC frame generated by the STA device is a short identifier of the AP device, and the sending address is an Association Identifier (AID) of the STA. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame header of the uplink MAC frame in this embodiment is smaller than the MAC frame header of the prior art, and the effective data portion in the uplink MAC frame is increased. The utilization of the uplink MAC frame further improves the utilization of the channel for transmitting the uplink MAC frame.
无论与 AP设备进行通信的另一设备是 STA设备还是 AP设备在生成 MAC 帧之前, 已经获知了 AP设备的短标识。  Whether the other device communicating with the AP device is the STA device or the AP device has known the short identifier of the AP device before generating the MAC frame.
可选的, AP设备的短标识由 AP设备根据 AP设备的位置信息自动生成, 以使所生成的短标识在 AP设备所在区域内唯一标识该 AP设备。 由于不同 AP 设备的位置是不同的, 故根据位置信息生成的短标识具有唯一性, 从而避免发 生不同 AP设备使用相同短标识的情况。  Optionally, the short identifier of the AP device is automatically generated by the AP device according to the location information of the AP device, so that the generated short identifier uniquely identifies the AP device in the area where the AP device is located. Because the locations of different APs are different, the short identifiers generated based on the location information are unique, so that different APs use the same short identifiers.
可选的, AP设备的短标识由第一配置服务器根据 AP设备接入网络的类型 为 AP设备统一分配, 以使所分配的短标识在 AP设备所在区域内唯一标识该 AP设备。 其中, 第一配置服务器是区域网络管理功能实体, 负责对整个区域内 AP设备进行统一管理。 该区域网络管理功能实体预先存储有定义的短标识。 该 区域网络管理功能实体根据 AP设备接入网络的类型为 AP设备分配短标识。 其 中, 接入网络的类型包括网络所在的区域的标识信息、 网络运营组织的标识信 息、 网络针对的业务类型信息 (如传感检测、 智能测量等)等。 由区域网络管 理功能实体统一为 AP设备分配短标识, 也可以保证不同 AP使用不同短标识, 即保证短标识的唯一性。  Optionally, the short identifier of the AP device is uniformly allocated by the first configuration server according to the type of the AP device to access the network, so that the allocated short identifier uniquely identifies the AP device in the area where the AP device is located. The first configuration server is a regional network management function entity, and is responsible for unified management of AP devices in the entire area. The regional network management function entity pre-stores a defined short identifier. The area network management function entity allocates a short identifier to the AP device according to the type of the AP device accessing the network. The type of the access network includes the identification information of the area where the network is located, the identification information of the network operation organization, and the service type information (such as sensing detection, intelligent measurement, etc.) for the network. The area network management function entity uniformly allocates short identifiers to the AP devices, and also ensures that different APs use different short identifiers, that is, the uniqueness of the short identifiers is ensured.
可选的, AP设备的短标识可以包括网络标识和网内标识。 其中, 网络标识 由第二配置服务器根据 AP设备接入网络的类型统一分配, 网内标识由第三配置 服务器统一生成并分配或者由 AP设备根据 AP设备的位置信息自动生成其中, 第二配置服务器与第一配置服务器相类似, 也是一区域网络管理功能实体, 负 责对整个区域内不同网络的 AP进行统一管 该区域网络管理功能实体主要是 为不同网络的 AP统一分配网络标识, 以保证接入不同网络类型的 AP具有不同 的网络标识。 第三配置服务器可以是一局域网内 AP管理功能实体, 主要负责为 一个局域网络各 AP设备统一生成并分配网内标识。 由于由 AP管理功能实体统 一为各 AP设备生成并分配网内标识, 故可以保证为不同 AP设备生成的网内标 识不能冲突, 如果冲突需就要新生成。 对于网内标识来说, AP设备还可以根据 自己的位置信息自动生成。 由于不同 AP设备的位置不同, 故根据位置信息生成 的网内标识也不同。该方法通过网络标识和网内标识共同保证 AP设备的短标识 在 AP设备所在区域内能够唯一标识该 AP设备。 Optionally, the short identifier of the AP device may include a network identifier and an intra-network identifier. Among them, the network identifier The second configuration server is uniformly allocated according to the type of the access device of the AP device, and the identifier of the network is uniformly generated and allocated by the third configuration server or automatically generated by the AP device according to the location information of the AP device, where the second configuration server and the first configuration are configured. Similar to the server, the server is also a regional network management function entity. It is responsible for unifying the APs of different networks in the entire area. The network management function entity is mainly to allocate network identifiers for APs of different networks to ensure access to different network types. APs have different network identifiers. The third configuration server may be an AP management function entity in the local area network, and is mainly responsible for uniformly generating and distributing the intranet identifiers for each AP device in a local area network. Since the AP management function entity uniformly generates and allocates the intra-network identifiers for the AP devices, it can be ensured that the intra-network identifiers generated by different AP devices cannot conflict, and new conflicts are required if the conflicts are required. For intra-network identification, the AP device can also automatically generate information based on its own location information. Since the locations of different AP devices are different, the identifiers generated in the network according to the location information are also different. The method ensures that the short identifier of the AP device can uniquely identify the AP device in the area where the AP device is located by using the network identifier and the identifier in the network.
优选的, AP设备的短标识的长度可以是 16比特。  Preferably, the short identifier of the AP device may be 16 bits in length.
进一步, 优选的, AP设备的短标识可以包括 6比特的网络标识和 10比特 的网内标只。  Further, preferably, the short identifier of the AP device may include a 6-bit network identifier and a 10-bit network identifier.
可选的, STA设备可以在与 AP设备进行关联的过程中获取 AP设备的短标 识。 例如, AP设备在下发给 STA的关联响应中携带自己的短标识, 以使 STA 设备从关联响应中获取 AP设备的短标识。  Optionally, the STA device can obtain the short identifier of the AP device in the process of associating with the AP device. For example, the AP device carries its own short identifier in the association response sent to the STA, so that the STA device obtains the short identifier of the AP device from the association response.
可选的, STA设备还可以在发现 AP设备的过程中获取 AP设备的短标识。 例如, AP设备可以在广播的信标帧中携带自己的短标识, 以使 STA设备从新标 帧中获取 AP设备的短标识。 又例如, AP设备可以在下发给 STA设备的探测响 应帧中携带自己的短标识, 以使 STA设备从探测响应帧中获取 AP设备的短标 识。 图 2A为本发明一实施例提供的数据帧发送方法的流程图。 如图 2A所示, 本实施例的方法包括: Optionally, the STA device may also obtain the short identifier of the AP device in the process of discovering the AP device. For example, the AP device may carry its own short identifier in the broadcast beacon frame, so that the STA device acquires the short identifier of the AP device from the new standard frame. For another example, the AP device may carry its own short identifier in the probe response frame sent to the STA device, so that the STA device obtains the short identifier of the AP device from the probe response frame. 2A is a flowchart of a data frame sending method according to an embodiment of the present invention. As shown in FIG. 2A, the method in this embodiment includes:
步骤 201、 STA设备向 AP设备发送关联请求。  Step 201: The STA device sends an association request to the AP device.
在本实施例中, STA设备发现 AP设备并通过认证后, 向 AP设备发送关联 请求, 以请求与该 AP设备进行关联。 相应的, AP设备接收 STA设备发送的关 联请求。  In this embodiment, after the STA device discovers the AP device and passes the authentication, it sends an association request to the AP device to request association with the AP device. Correspondingly, the AP device receives the association request sent by the STA device.
步骤 202 STA设备接收 AP设备发送的关联响应, 以与 AP设备进行关联, 所述关联响应包括 AP设备的短标识。  Step 202: The STA device receives an association response sent by the AP device to associate with the AP device, where the association response includes a short identifier of the AP device.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
AP设备接收到 STA设备的关联请求后,识别出该 STA设备要与自己关联。 AP设备为 STA设备分配一个关联标识(Association Identifier, AID ) , 用于 AP 设备在服务区域内识别与自己关联的不同 STA设备。 在本实施例中, AP设备同 时将 AP设备的短标识和分配给 STA设备的 AID封装在关联响应中, 然后将关 联响应发送给 STA设备。  After receiving the association request of the STA device, the AP device identifies that the STA device is to be associated with itself. The AP device allocates an association identifier (AID) for the STA device to identify different STA devices associated with the AP device in the service area. In this embodiment, the AP device encapsulates the short identifier of the AP device and the AID assigned to the STA device in the association response, and then sends the association response to the STA device.
STA设备接收 AP设备发送的关联响应, 从关联响应中获取 AP设备分配的 AID和 AP设备的短标识。  The STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device and the short identifier of the AP device from the association response.
在本实施例中, 短标识通知消息为关联响应。 步骤 201和步骤 202可以看 做 UE接收短标识通知消息的一种具体实施方式。  In this embodiment, the short identifier notification message is an association response. Step 201 and step 202 can be regarded as a specific implementation manner in which the UE receives the short identifier notification message.
其中, AP设备的短标识可以是由 AP设备根据自己的位置信息自动生成的, 也可以是由第一配置服务器根据 AP设备接入网络的类型为 AP设备统一分配 的。  The short identifier of the AP device may be automatically generated by the AP device according to the location information of the AP device, or may be uniformly allocated by the first configuration server to the AP device according to the type of the AP device accessing the network.
其中, AP设备的短标识可以包括网络标识和网内标识, 也可以不区分网络 标识和网内标识。 The short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish the network. Identification and intranet identification.
优选的, AP设备的短标识的长度可以是 16比特。 进一步, 如果 AP设备的 短标识包括网络标识和网内标识, 则网络标识可以占用 6比特, 而网内标识占 用 10比特。  Preferably, the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
步骤 203、 STA设备生成上行 MAC帧, 所述上行 MAC帧的接收地址为 Step 203: The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is
AP设备的短标识, 发送地址为 STA设备的 AID。 The short identifier of the AP device, and the sending address is the AID of the STA device.
STA设备与 AP设备关联之后,在需要向 AP设备发送上行 MAC帧时, STA 设备生成上行 MAC帧。 其中, 上行 MAC帧的结构如图 2B所示, 主要包括: 帧控制( Frame Control, FC )域、 时长域( Duration域)、 地址一域( Addressl )、 地址二域 ( Address2 ) 、 地址三域 ( Address3 ) 、 序列控制域 ( Sequence Control 域) 、 地址四域(Address4 ) 、 服务质量控制域( QoS Control域) 、 帧主体域 ( Frame Body域)和帧校验序列 ( Frame Check Sequence, FCS )域。 其中, 地 址一域用于填充接收地址, 地址二域用于填充发送地址。 关于地址三域和地址 四域可参见现有技术, 本发明实施例对此不做说明。  After the STA device is associated with the AP device, the STA device generates an uplink MAC frame when it needs to send an uplink MAC frame to the AP device. The structure of the uplink MAC frame is as shown in FIG. 2B, and mainly includes: a frame control (FC) domain, a duration domain (Distence domain), an address-domain (Addressl), an address two domain (Address2), and an address three domain. ( Address3 ) , Sequence Control Domain ( Sequence Control Domain ) , Address Four Domain ( Address 4 ) , Quality of Service Control Domain ( QoS Control Domain ) , Frame Body Domain ( Frame Body Domain ) and Frame Check Sequence ( FCS ) area. The address one field is used to fill the receiving address, and the address two field is used to fill the sending address. For the three fields of the address and the address, the four domains can be referred to the prior art, which is not described in the embodiment of the present invention.
在本实施例中, STA设备使用 AP设备的短标识和 STA设备的 AID分别作 为上行 MAC帧的接收地址和发送地址。 即地址一域中填充 AP设备的短标识, 地址二域中填充 STA设备的 AID。 添加地址一域和地址二域后的上行 MAC帧 结构如图 2C所示。  In this embodiment, the STA device uses the short identifier of the AP device and the AID of the STA device as the receiving address and the sending address of the uplink MAC frame, respectively. That is, the address in the address field is filled with the short identifier of the AP device, and the address in the second domain is filled with the AID of the STA device. The structure of the uplink MAC frame after adding the address one domain and the address two domain is as shown in Fig. 2C.
现有技术中, STA设备发送给 AP设备的上行 MAC帧的 MAC帧头中, 地 址一域中填充的是 AP设备的 MAC地址, AP设备的 MAC地址的长度为 48比 特。  In the prior art, in the MAC frame header of the uplink MAC frame sent by the STA device to the AP device, the address in the address field is filled with the MAC address of the AP device, and the length of the MAC address of the AP device is 48 bits.
由此可见, 本实施例的通过使用 AP设备的短标识, 减小了上行 MAC帧的 MAC帧头, 提高了有效数据部分在上行 MAC帧中的比例, 提高了上行 MAC 帧的利用率, 进而有利于提高传输信道的利用率。 It can be seen that, by using the short identifier of the AP device in this embodiment, the MAC frame header of the uplink MAC frame is reduced, the proportion of the effective data portion in the uplink MAC frame is improved, and the uplink MAC is improved. The utilization of the frame, in turn, helps to improve the utilization of the transmission channel.
其中, STA设备的 AID的长度为 16比特, 故 STA设备使用 AID替代 STA 设备的 48比特的 MAC地址, 也有利于减小上行 MAC帧的 MAC帧头。  The length of the AID of the STA device is 16 bits. Therefore, the STA device uses the AID instead of the 48-bit MAC address of the STA device, which is also beneficial for reducing the MAC frame header of the uplink MAC frame.
步骤 204、 STA设备向 AP设备发送上行 MAC帧。  Step 204: The STA device sends an uplink MAC frame to the AP device.
然后, STA设备将上行 MAC帧发送给 AP设备。相应的, AP设备接收 STA 设备发送的上行 MAC帧。 对于 AP设备来说, 会将上行 MAC帧的接收地址和 自己的短标识进行比较; 如果比较结果为相同, 说明自己是该上行 MAC帧的接 收者, 则解析获取上行 MAC帧中的有效数据; 如果比较结果为不相同, 说明自 己不是该上行 MAC帧的接收者, 则丟弃该上行 MAC帧。  The STA device then transmits the uplink MAC frame to the AP device. Correspondingly, the AP device receives the uplink MAC frame sent by the STA device. For the AP device, the received address of the uplink MAC frame is compared with its own short identifier; if the comparison result is the same, indicating that it is the receiver of the uplink MAC frame, the valid data in the uplink MAC frame is parsed and obtained; If the comparison result is different, indicating that it is not the receiver of the uplink MAC frame, the uplink MAC frame is discarded.
在本实施例中, STA设备在关联 AP设备的过程中获取 AP设备的短标识, 并使用获取的 AP设备的短标识替代 AP设备的 MAC地址作为上行 MAC帧的 接收地址与 AP设备进行通信, 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 故减小了上行 MAC帧中的 MAC帧头, 提高了上行 MAC帧 的利用率, 进而提高了传输信道的利用率。  In this embodiment, the STA device obtains the short identifier of the AP device in the process of associating the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
图 3为本发明另一实施例提供的数据帧发送方法的流程图。 如图 3所示, 本实施例的方法包括:  FIG. 3 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 3, the method in this embodiment includes:
步骤 301、 STA设备接收 AP设备广播的信标帧, 所述信标帧中包括 AP设 备的短标识。  Step 301: The STA device receives a beacon frame broadcast by the AP device, where the beacon frame includes a short identifier of the AP device.
在本实施例中, AP设备通过周期性的广播信标帧, 以便于 STA设备能够发 现该 AP设备并与该 AP设备进行关联。  In this embodiment, the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
其中, AP设备会在信标帧中携带 AP设备的 BSSID (即 MAC地址 ) , 以 便于 STA确定自己要接入的基本服务集 (Basic Service Set, BSS)在本实施例中, AP设备同时在信标帧中携带 AP设备的短标识。 即本实施例的信标帧同时包括 AP设备的 BSSID和 AP设备的短标识。 The AP device carries the BSSID (ie, the MAC address) of the AP device in the beacon frame, so that the STA determines the basic service set (BSS) to be accessed by the STA. In this embodiment, the AP device is simultaneously The beacon frame carries the short identifier of the AP device. That is, the beacon frame of the embodiment includes both The BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备广播发送的信标帧, 并从信标帧中获取 AP 设备的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP 设备的短标识之间的对应关系。  Correspondingly, the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and obtains the BSSID of the AP device and the short identifier of the AP device at the same time. Correspondence.
在本实施例中, AP设备的短标识的长度小于 AP设备的 BSSID的长度, 用 于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the BSSID of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
在本实施例中, 短标识通知消息为信标帧。 步骤 301可以看做 UE接收短标 识通知消息的一种具体实施方式。  In this embodiment, the short identity notification message is a beacon frame. Step 301 can be regarded as a specific implementation manner in which the UE receives the short identification notification message.
其中, AP设备的短标识可以由 AP设备根据自己的位置信息自动生成, 也 可以由第一配置服务器根据 AP设备接入网络的类型为 AP设备统一分配, 以使 所生成或所分配的的短标识在 AP设备所在区域内能够唯一标识 AP设备。  The short identifier of the AP device may be automatically generated by the AP device according to its own location information, or may be uniformly allocated by the first configuration server according to the type of the AP device accessing the network, so that the generated or allocated short is configured. The identifier can uniquely identify the AP device in the area where the AP device is located.
其中, AP设备的短标识可以包括网络标识和网内标识, 也可以不区分网络 标识和网内标识。  The short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish between the network identifier and the identifier in the network.
优选的, AP设备的短标识的长度可以是 16比特。 进一步, 如果 AP设备的 短标识包括网络标识和网内标识, 则网络标识可以占用 6比特, 而网内标识占 用 10比特。  Preferably, the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
步骤 302、 STA设备与 AP设备进行认证。  Step 302: The STA device and the AP device perform authentication.
STA设备发现 AP设备后, 与该 AP设备进行认证。 该认证过程属于现有技 术, 在此不做详述。  After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
步骤 303、 STA设备向 AP设备发送关联请求。  Step 303: The STA device sends an association request to the AP device.
当 STA设备通过认证后, STA设备向 AP设备发送关联请求, 以与 AP设 备进行关联。 相应的, AP设备接收 STA设备的关联请求。  After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
步骤 304 STA设备接收 AP设备发送的关联响应, 以与 AP设备进行关联。 AP设备接收到 STA设备的关联请求后, 为该 STA设备分配 AID, 用于 AP 设备在服务区域内识别与自己关联的不同 STA设备。 AP设备将分配的 AID封 装在关联响应中发送给 STA设备。 Step 304: The STA device receives an association response sent by the AP device to associate with the AP device. After receiving the association request of the STA device, the AP device allocates an AID for the STA device, and the AP device identifies the different STA devices associated with the STA device in the service area. The AP device encapsulates the allocated AID in the association response and sends it to the STA device.
STA设备接收 AP设备发送的关联响应, 并从中获取 AP设备分配的 AID。 步骤 305、 STA设备生成上行 MAC帧, 所述上行 MAC帧的接收地址为 The STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device. Step 305: The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is
AP设备的短标识, 发送地址为 STA设备的 AID。 The short identifier of the AP device, and the sending address is the AID of the STA device.
步骤 306、 STA设备向 AP设备发送上行 MAC帧。  Step 306: The STA device sends an uplink MAC frame to the AP device.
上述步骤 305和步骤 306可参见步骤 203和步骤 204的描述, 在此不再赘 述。  The foregoing steps 305 and 306 can be referred to the description of step 203 and step 204, and are not described herein again.
在本实施例中, STA设备在发现 AP设备的过程中获取 AP设备的短标识, 并使用获取的 AP设备的短标识替代 AP设备的 MAC地址作为上行 MAC帧的 接收地址与 AP设备进行通信, 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 故减小了上行 MAC帧中的 MAC帧头, 提高了上行 MAC帧 的利用率, 进而提高了传输信道的利用率。  In this embodiment, the STA device obtains the short identifier of the AP device in the process of discovering the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
图 4为本发明又一实施例提供的数据帧发送方法的流程图。 如图 4所示, 本实施例的方法包括:  FIG. 4 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 4, the method in this embodiment includes:
步骤 401、 STA设备向 AP设备发送探测请求帧。  Step 401: The STA device sends a probe request frame to the AP device.
步骤 402、 STA设备接收 AP设备发送的探测响应帧, 所述探测响应帧包括 AP设备的短标识。  Step 402: The STA device receives a probe response frame sent by the AP device, where the probe response frame includes a short identifier of the AP device.
在本实施例中, STA设备主动广播探测请求帧, 以使周围的 AP设备进行响 应, 从而发现 AP设备。 对于 AP设备来说, 如果接收到 STA设备发送的探测 请求帧, 就会向 STA设备发送探测响应进行响应, 以便于 STA设备与其进行关 联。 其中, AP设备会在探测响应帧中携带 AP设备的 BSSID (即 MAC地址 ) , 以便于 STA确定自己要接入的 BSS。 在本实施例中, AP设备同时在探测响应 帧中携带 AP设备的短标识。 即本实施例的探测响应帧同时包括 AP设备的 BSSID和 AP设备的短标识。 In this embodiment, the STA device actively broadcasts the probe request frame to enable the surrounding AP device to respond, thereby discovering the AP device. For the AP device, if the probe request frame sent by the STA device is received, the probe response is sent to the STA device to respond, so that the STA device associates with the STA device. The AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA. In this embodiment, the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备发送的探测响应帧, 并从探测响应帧中获取 Correspondingly, the STA device receives the probe response frame sent by the AP device, and obtains the frame from the probe response frame.
AP设备的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP设备的短标识之间的对应关系。 The BSSID of the AP device and the short identifier of the AP device, and the corresponding relationship between the BSSID of the AP device and the short identifier of the AP device.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
在本实施例中, 短标识通知消息为探测响应帧。 步骤 401和步骤 402可以 看做 UE接收短标识通知消息的一种具体实施方式。  In this embodiment, the short identifier notification message is a probe response frame. Step 401 and step 402 can be regarded as a specific implementation manner in which the UE receives the short identifier notification message.
其中, AP设备的短标识可以由 AP设备自动生成, 也可以由第一配置服务 器根据 AP设备接入网络的类型为 AP设备统一分配, 以使所生成或所分配的短 标识在 AP设备所在区域内能够唯一标识 AP设备。  The short identifier of the AP device may be automatically generated by the AP device, or may be uniformly allocated by the first configuration server according to the type of the AP device accessing the network, so that the short identifier generated or allocated is in the area where the AP device is located. The AP device can be uniquely identified.
其中, AP设备的短标识可以包括网络标识和网内标识, 也可以不区分网络 标识和网内标识。  The short identifier of the AP device may include the network identifier and the identifier in the network, or may not distinguish between the network identifier and the identifier in the network.
优选的, AP设备的短标识的长度可以是 16比特。 进一步, 如果 AP设备的 短标识包括网络标识和网内标识, 则网络标识可以占用 6比特, 而网内标识占 用 10比特。  Preferably, the short identifier of the AP device may be 16 bits in length. Further, if the short identifier of the AP device includes the network identifier and the intra-network identifier, the network identifier can occupy 6 bits, and the intra-network identifier occupies 10 bits.
步骤 403、 STA设备与 AP设备进行认证。  Step 403: The STA device and the AP device perform authentication.
步骤 404、 STA设备向 AP设备发送关联请求。  Step 404: The STA device sends an association request to the AP device.
步骤 405 STA设备接收 AP设备发送的关联响应, 以与 AP设备进行关联。 步骤 406、 STA设备生成上行 MAC帧, 所述上行 MAC帧的接收地址为 AP设备的短标识, 发送地址为 STA设备的 AID。 Step 405: The STA device receives an association response sent by the AP device to associate with the AP device. Step 406: The STA device generates an uplink MAC frame, where the receiving address of the uplink MAC frame is The short identifier of the AP device, and the sending address is the AID of the STA device.
步骤 407、 STA设备向 AP设备发送上行 MAC帧。  Step 407: The STA device sends an uplink MAC frame to the AP device.
上述步骤 403至步骤 407可参见步骤 302至步骤 306的描述, 在此不再赘 述。  The foregoing step 403 to step 407 can be referred to the description of step 302 to step 306, and details are not described herein.
在本实施例中, STA设备在发现 AP设备的过程中获取 AP设备的短标识, 并使用获取的 AP设备的短标识替代 AP设备的 MAC地址作为上行 MAC帧的 接收地址与 AP设备进行通信, 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 故减小了上行 MAC帧中的 MAC帧头, 提高了上行 MAC帧 的利用率, 进而提高了传输信道的利用率。  In this embodiment, the STA device obtains the short identifier of the AP device in the process of discovering the AP device, and uses the obtained short identifier of the AP device to replace the MAC address of the AP device as the receiving address of the uplink MAC frame to communicate with the AP device. Since the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, the MAC frame header in the uplink MAC frame is reduced, the utilization of the uplink MAC frame is improved, and the utilization of the transport channel is improved.
在此说明, 在图 2A-图 4所示实施例中, 以通讯消息为上行 MAC帧为例进 行说明, 但不限于此。  In the embodiment shown in FIG. 2A to FIG. 4, the communication message is an uplink MAC frame as an example, but is not limited thereto.
图 5为本发明另一实施例提供的通信方法的流程图。 如图 5所示, 本实施 例的方法包括:  FIG. 5 is a flowchart of a communication method according to another embodiment of the present invention. As shown in FIG. 5, the method in this embodiment includes:
步骤 501、 AP设备发送短标识通知消息, 所述短标识通知消息包括 AP设 备的短标识, AP设备的短标识的长度小于 AP设备的 MAC地址的长度; 所述 AP设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。  Step 501: The AP device sends a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, and the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. The AP device is uniquely identified in the area where the AP device is located.
步骤 502、 AP设备接收通讯消息。  Step 502: The AP device receives the communication message.
步骤 503、 AP设备判断通讯消息中的接收地址与 AP设备的短标识是否相 同; 如果判断结果为是, 即通讯消息中的接收地址与 AP设备的短标识相同, 执 行步骤 504; 如果判断结果为否, 执行步骤 505。  Step 503: The AP device determines whether the receiving address in the communication message is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the communication message is the same as the short identifier of the AP device, step 504 is performed; If no, go to step 505.
步骤 504、 AP设备解析获得通讯消息中的有效数据。  Step 504: The AP device parses and obtains valid data in the communication message.
步骤 505、 AP设备丟弃通讯消息。  Step 505: The AP device discards the communication message.
其中, 本实施例的通讯消息可以是 MAC帧。 在本实施例中, AP设备接收另一设备发送的通讯消息, 并将 AP设备的短 标识与通讯消息中的接收地址进行比较, 确定是否为该通讯消息的接收者。 如 果接收地址与 AP设备的短标识相同, AP设备确定自己是该通讯消息的接收者, 则对该通讯消息进行解析获得其中的有效数据。如果接收地址与 AP设备的短标 识不相同, AP设备确定自己不是该通讯消息的接收者, 则丟弃该通讯消息。 The communication message in this embodiment may be a MAC frame. In this embodiment, the AP device receives the communication message sent by the other device, and compares the short identifier of the AP device with the receiving address in the communication message to determine whether it is the receiver of the communication message. If the receiving address is the same as the short identifier of the AP device, and the AP device determines that it is the receiver of the communication message, the communication message is parsed to obtain valid data therein. If the receiving address is different from the short identifier of the AP device, and the AP device determines that it is not the recipient of the communication message, the communication message is discarded.
其中, 与 AP设备通信的另一设备使用 AP设备的短标识作为通讯消息的接 收地址, 由于 AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 故本 实施例中通讯消息的 MAC帧头小于现有技术的 MAC帧头, 增加了通讯消息中 的有效数据的比重, 提高了通讯消息的利用率, 进而提高了传输信道的利用率。  The other device that communicates with the AP device uses the short identifier of the AP device as the receiving address of the communication message. The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. Therefore, the MAC frame of the communication message in this embodiment. The header is smaller than the MAC frame header of the prior art, which increases the proportion of valid data in the communication message, improves the utilization of the communication message, and improves the utilization of the transmission channel.
其中, 与 AP设备通信的另一设备可以是 ST A设备, 也可以是另一 AP设 备。 即 AP设备接收到的通讯消息可能是 STA设备发送的, 有可能是另一 AP 设备发送的。  The other device that communicates with the AP device may be an ST A device or another AP device. That is, the communication message received by the AP device may be sent by the STA device, and may be sent by another AP device.
图 6为本发明一实施例提供的数据帧接收方法的流程图。 如图 6所示, 本 实施例的方法包括:  FIG. 6 is a flowchart of a data frame receiving method according to an embodiment of the present invention. As shown in FIG. 6, the method of this embodiment includes:
步骤 601、 AP设备接收 STA设备发送的上行 MAC帧。  Step 601: The AP device receives an uplink MAC frame sent by the STA device.
步骤 602 AP设备判断上行 MAC帧中的接收地址与 AP设备的短标识是否 相同; 如果判断结果为是, 即上行 MAC帧中的接收地址与 AP设备的短标识相 同, 执行步骤 603; 如果判断结果为否, 执行步骤 604。  Step 602: The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 603 is performed; If no, go to step 604.
其中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度; 所述 AP 设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。  The short identifier of the AP device is smaller than the length of the MAC address of the AP device. The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
步骤 603、 AP设备解析获得上行 MAC帧中的有效数据。  Step 603: The AP device parses and obtains valid data in the uplink MAC frame.
步骤 604、 AP设备丟弃上行 MAC帧。  Step 604: The AP device discards the uplink MAC frame.
在本实施例中, 与 AP设备通信的另一设备为 STA设备。 STA设备使用 AP设备的短标识作为上行 MAC帧的接收地址, 在生成上行 MAC帧后发送给 AP设备。 AP设备接收 STA设备发送的上行 MAC帧, 然后 将上行 MAC帧中的接收地址与 AP设备的短标识进行比较, 以判断自己是否该 MAC帧的接收者。 如果判断结果为相同, AP设备对该上行 MAC帧进行解析, 获取其中的有效数据。 如果判断结果为不相同, AP设备丟弃该上行 MAC帧。 In this embodiment, another device that communicates with the AP device is a STA device. The STA device uses the short identifier of the AP device as the receiving address of the uplink MAC frame, and sends the uplink MAC frame to the AP device. The AP device receives the uplink MAC frame sent by the STA device, and then compares the received address in the uplink MAC frame with the short identifier of the AP device to determine whether it is the receiver of the MAC frame. If the judgment result is the same, the AP device parses the uplink MAC frame to obtain valid data therein. If the judgment result is different, the AP device discards the uplink MAC frame.
由于 STA设备使用 AP设备的短标识作为上行 MAC帧的接收地址, 与现 有技术相比, 减小了 MAC帧头, 增加了有效数据在上行 MAC帧中的比重, 提 高了上行 MAC帧的利用率, 进而提高了传输信道的利用率。  Since the STA device uses the short identifier of the AP device as the receiving address of the uplink MAC frame, the MAC frame header is reduced compared with the prior art, the proportion of the effective data in the uplink MAC frame is increased, and the utilization of the uplink MAC frame is improved. The rate, in turn, improves the utilization of the transmission channel.
图 7为本发明另一实施例提供的数据帧接收方法的流程图。 如图 7所示, 本实施例的方法包括:  FIG. 7 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in FIG. 7, the method in this embodiment includes:
步骤 701、 AP设备接收 STA设备发送的关联请求。  Step 701: The AP device receives an association request sent by the STA device.
在本实施例中, ST A设备在发现 AP设备并完成认证后, 向 AP设备发送关 联请求以请求与该 AP设备进行关联 AP设备接收 STA设备发送的关联请求。  In this embodiment, after the AP device is discovered and authenticated, the ST A device sends an association request to the AP device to request association with the AP device. The AP device receives the association request sent by the STA device.
步骤 702、 AP设备向 STA设备发送关联响应, 以关联 STA设备, 所述关 联响应包括 AP设备的短标识。  Step 702: The AP device sends an association response to the STA device to associate the STA device, where the association response includes a short identifier of the AP device.
AP设备接收到 STA设备发送的关联请求后, 为 STA设备分配 16比特的 AID, 用于 AP设备在服务区域内识别与自己关联的不同 STA设备。 然后, AP 设备同时将分配的 AID和 AP设备的短标识封装在关联响应中发送给 STA设备。 即本实施例的关联响应同时包括 STA的 AID和 AP设备的短标识。  After receiving the association request sent by the STA device, the AP device allocates a 16-bit AID to the STA device for the AP device to identify different STA devices associated with itself in the service area. Then, the AP device simultaneously sends the assigned AID and the short identifier of the AP device in the association response to the STA device. That is, the association response of this embodiment includes both the AID of the STA and the short identifier of the AP device.
其中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度; 所述 AP 设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。  The short identifier of the AP device is smaller than the length of the MAC address of the AP device. The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
在本实施例中, 短标识通知消息为关联响应。 步骤 701和步骤 702可以看 做 AP发送短标识通知消息的一种具体实施方式。 步骤 703、 AP设备接收 STA设备发送的上行 MAC帧。 In this embodiment, the short identifier notification message is an association response. Step 701 and step 702 can be regarded as a specific implementation manner in which the AP sends a short identifier notification message. Step 703: The AP device receives an uplink MAC frame sent by the STA device.
STA设备接收到关联响应后, 从中获取 AP设备分配给自己的 AID和 AP 设备的短标识。 在需要向 AP设备发送数据时, STA设备生成上行 MAC帧, 并 使用 AP设备的短标识作为上行 MAC帧中的接收地址, 使用 STA设备的 AID 作为上行 MAC帧中的发送地址, 然后发送给 AP设备。  After receiving the association response, the STA device obtains the short identifier of the AID and the AP device that the AP device allocates to itself. When the data needs to be sent to the AP device, the STA device generates an uplink MAC frame, and uses the short identifier of the AP device as the receiving address in the uplink MAC frame, and uses the AID of the STA device as the sending address in the uplink MAC frame, and then sends the data to the AP. device.
AP设备接收 STA设备发送的上行 MAC帧。  The AP device receives the uplink MAC frame sent by the STA device.
其中, AP设备的短标识与 AP设备的 BSSID相比长度要短, STA的 AID 与 STA的 MAC地址相比长度也要短, 故本实施例的上行 MAC帧中 MAC帧头 要小于现有技术中的 MAC帧头。  The short identifier of the AP device is shorter than the BSSID of the AP device, and the length of the STA is shorter than the MAC address of the STA. Therefore, the MAC frame header in the uplink MAC frame in this embodiment is smaller than the prior art. The MAC frame header in .
步骤 704 AP设备判断上行 MAC帧中的接收地址与 AP设备的短标识是否 相同; 如果判断结果为是, 即上行 MAC帧中的接收地址与 AP设备的短标识相 同, 执行步骤 705; 如果判断结果为否, 执行步骤 706。  Step 704: The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 705 is performed; If no, go to step 706.
步骤 705、 AP设备解析获得上行 MAC帧中的有效数据。  Step 705: The AP device parses and obtains valid data in the uplink MAC frame.
步骤 706、 AP设备丟弃该上行 MAC帧。  Step 706: The AP device discards the uplink MAC frame.
AP设备接收到上行 MAC帧后, 将上行 MAC帧中的接收地址与自己的短 标识进行比较, 如果比较结果为相同, 说明自己是该上行 MAC帧的接收者, 则 对该上行 MAC帧进行解析, 获取其中的有效数据; 如果比较结果为不同, 说明 自己不是该 MAC帧的接收者, 故将接收到的上行 MAC帧丟弃。  After receiving the uplink MAC frame, the AP device compares the received address in the uplink MAC frame with its own short identifier. If the comparison result is the same, indicating that it is the receiver of the uplink MAC frame, the uplink MAC frame is parsed. Get the valid data in it; if the comparison result is different, it means that you are not the receiver of the MAC frame, so the received uplink MAC frame is discarded.
在本实施例中, AP设备在与 STA设备关联的过程中将自己的短标识提供给 STA设备为 STA设备使用 AP设备的短标识与 AP设备进行通信打下了基础, STA设备与 AP设备使用 AP设备的短标识进行通信, 有利于减小上行 MAC帧 中的 MAC帧头, 有利于提高传输信道的利用率。  In this embodiment, the AP device provides its own short identifier to the STA device in the process of being associated with the STA device, and the STA device uses the short identifier of the AP device to communicate with the AP device, and the STA device and the AP device use the AP. The short identifier of the device communicates, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
图 8为本发明又一实施例提供的数据帧接收方法的流程图。 如图 8所示, 本实施例的方法包括: FIG. 8 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in Figure 8, The method of this embodiment includes:
步骤 801、 AP设备向 STA设备广播信标帧, 所述信标帧包括 AP设备的短 标识。  Step 801: The AP device broadcasts a beacon frame to the STA device, where the beacon frame includes a short identifier of the AP device.
在本实施例中, AP设备通过周期性的广播信标帧, 以便于 STA设备能够发 现该 AP设备并与该 AP设备进行关联。  In this embodiment, the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
其中, AP设备会在信标帧中携带 AP设备的 BSSID (即 MAC地址 ) , 以 便于 STA确定自己要接入的 BSS。 在本实施例中, AP设备同时在信标帧中携 带 AP设备的短标识。 即本实施例的信标帧同时包括 AP设备的 BSSID和 AP设 备的短标识。  The AP device carries the BSSID (ie, MAC address) of the AP device in the beacon frame, so that the STA can determine the BSS to be accessed by the STA. In this embodiment, the AP device simultaneously carries the short identifier of the AP device in the beacon frame. That is, the beacon frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备广播的信标帧, 并从信标帧中获取 AP设备 的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP设备 的短标识之间的对应关系。  Correspondingly, the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and simultaneously acquires the BSSID of the AP device and the short identifier of the AP device. Correspondence relationship.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度; AP设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device. The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
在本实施例中, 短标识通知消息为信标帧。 步骤 801可以看做 AP发送短标 识通知消息的一种具体实施方式。  In this embodiment, the short identity notification message is a beacon frame. Step 801 can be regarded as a specific implementation manner in which the AP sends a short identification notification message.
步骤 802、 AP设备对 STA设备进行认证。  Step 802: The AP device authenticates the STA device.
STA设备发现 AP设备后, 与该 AP设备进行认证。 该认证过程属于现有技 术, 在此不做详述。  After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
步骤 803、 AP设备接收 STA设备发送的关联请求。  Step 803: The AP device receives an association request sent by the STA device.
当 STA设备通过认证后, STA设备向 AP设备发送关联请求, 以与 AP设 备进行关联。 相应的, AP设备接收 STA设备的关联请求。  After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
步骤 804、 AP设备向 STA设备发送关联响应, 以关联 STA设备。 AP设备接收到 STA设备的关联请求后, 为该 STA设备分配 AID, 用于 AP 设备在服务区域内识别与自己关联的不同 STA设备。 AP设备将分配的 AID封 装在关联响应中发送给 STA设备。 Step 804: The AP device sends an association response to the STA device to associate the STA device. After receiving the association request of the STA device, the AP device allocates an AID for the STA device, and the AP device identifies the different STA devices associated with the STA device in the service area. The AP device encapsulates the allocated AID in the association response and sends it to the STA device.
STA设备接收 AP设备发送的关联响应, 并从中获取 AP设备分配的 AID。 步骤 805、 AP设备接收 STA设备发送的上行 MAC帧。  The STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device. Step 805: The AP device receives an uplink MAC frame sent by the STA device.
步骤 806 AP设备判断上行 MAC帧中的接收地址与 AP设备的短标识是否 相同; 如果判断结果为是, 即上行 MAC帧中的接收地址与 AP设备的短标识相 同, 执行步骤 807; 如果判断结果为否, 执行步骤 808。  Step 806: The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 807 is performed; If no, go to step 808.
步骤 807、 AP设备解析获得上行 MAC帧中的有效数据。  Step 807: The AP device parses and obtains valid data in the uplink MAC frame.
步骤 808、 AP设备丟弃该上行 MAC帧。  Step 808: The AP device discards the uplink MAC frame.
上述步骤 805至步骤 808可参见步骤 703至步骤 706的描述, 在此不再赘 述。  The foregoing step 805 to step 808 can be referred to the description of step 703 to step 706, and details are not described herein again.
在本实施例中, AP设备在 STA设备发现 AP设备的过程中将自己的短标识 提供给 STA设备, 为 STA设备使用 AP设备的短标识与 AP设备进行通信打下 了基础, STA设备与 AP设备使用 AP设备的短标识进行通信, 有利于减小上行 MAC帧中的 MAC帧头, 有利于提高传输信道的利用率。  In this embodiment, the AP device provides its own short identifier to the STA device in the process of the STA device discovering the AP device, and lays a foundation for the STA device to communicate with the AP device by using the short identifier of the AP device, and the STA device and the AP device. The short identifier of the AP device is used for communication, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
图 9为本发明又一实施例提供的数据帧接收方法的流程图。 如图 9所示, 本实施例的方法包括:  FIG. 9 is a flowchart of a data frame receiving method according to another embodiment of the present invention. As shown in FIG. 9, the method in this embodiment includes:
步骤 901、 AP设备接收 STA设备发送的探测请求帧。  Step 901: The AP device receives the probe request frame sent by the STA device.
步骤 902、 AP设备向 STA设备发送探测响应帧, 所述探测响应帧包括 AP 设备的短标识。  Step 902: The AP device sends a probe response frame to the STA device, where the probe response frame includes a short identifier of the AP device.
在本实施例中, STA设备主动广播探测请求帧, 以使周围的 AP设备进行响 应, 从而发现 AP设备。 对于 AP设备来说, 如果接收到 STA设备发送的探测 请求帧, 就会向 STA设备发送探测响应进行响应, 以便于 STA设备与其进行关 联。 In this embodiment, the STA device actively broadcasts the probe request frame to enable the surrounding AP device to respond, thereby discovering the AP device. For the AP device, if the probe sent by the STA device is received The request frame sends a probe response to the STA device in response to the STA device to associate with it.
其中, AP设备会在探测响应帧中携带 AP设备的 BSSID (即 MAC地址 ) , 以便于 STA确定自己要接入的 BSS。 在本实施例中, AP设备同时在探测响应 帧中携带 AP设备的短标识。 即本实施例的探测响应帧同时包括 AP设备的 BSSID和 AP设备的短标识。  The AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA. In this embodiment, the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备发送的探测响应帧, 并从探测响应帧中获取 AP设备的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP设备的短标识之间的对应关系。  Correspondingly, the STA device receives the probe response frame sent by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the probe response frame, and simultaneously obtains the BSSID between the AP device and the short identifier of the AP device. Correspondence relationship.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
在本实施例中, 短标识通知消息为探测响应帧。 步骤 901和步骤 902可以 看做 AP发送短标识通知消息的一种具体实施方式。  In this embodiment, the short identifier notification message is a probe response frame. Step 901 and step 902 can be regarded as a specific implementation manner in which the AP sends a short identifier notification message.
步骤 903、 AP设备对 STA设备进行认证。  Step 903: The AP device authenticates the STA device.
步骤 904、 AP设备接收 STA设备发送的关联请求。  Step 904: The AP device receives an association request sent by the STA device.
步骤 905、 AP设备向 STA设备发送关联响应, 以关联 STA设备。  Step 905: The AP device sends an association response to the STA device to associate the STA device.
步骤 906、 AP设备接收 STA设备发送的上行 MAC帧。  Step 906: The AP device receives an uplink MAC frame sent by the STA device.
步骤 907、 AP设备判断上行 MAC帧中的接收地址与 AP设备的短标识是否 相同; 如果判断结果为是, 即上行 MAC帧中的接收地址与 AP设备的短标识相 同, 执行步骤 908; 如果判断结果为否, 执行步骤 909。  Step 907: The AP device determines whether the receiving address in the uplink MAC frame is the same as the short identifier of the AP device. If the determination result is yes, that is, the receiving address in the uplink MAC frame is the same as the short identifier of the AP device, step 908 is performed; If the result is no, step 909 is performed.
步骤 908、 AP设备解析获得上行 MAC帧中的有效数据。  Step 908: The AP device parses the valid data in the uplink MAC frame.
步骤 909、 AP设备丟弃该上行 MAC帧。  Step 909: The AP device discards the uplink MAC frame.
上述步骤 903至步骤 909可参见步骤 802至步骤 808的描述, 在此不再赘 述。 For the foregoing steps 903 to 909, refer to the description of steps 802 to 808. Said.
在本实施例中, AP设备在 STA设备发现 AP设备的过程中将自己的短标识 提供给 STA设备, 为 STA设备使用 AP设备的短标识与 AP设备进行通信打下 了基础, STA设备与 AP设备使用 AP设备的短标识进行通信, 有利于减小上行 MAC帧中的 MAC帧头, 有利于提高传输信道的利用率。  In this embodiment, the AP device provides its own short identifier to the STA device in the process of the STA device discovering the AP device, and lays a foundation for the STA device to communicate with the AP device by using the short identifier of the AP device, and the STA device and the AP device. The short identifier of the AP device is used for communication, which is beneficial to reducing the MAC frame header in the uplink MAC frame, which is beneficial to improving the utilization of the transmission channel.
在此说明, 在图 6-图 9所示实施例中, 均以通讯消息为上行 MAC帧为例进 行说明, 但不限于此。  In the embodiment shown in FIG. 6 to FIG. 9, the communication message is an uplink MAC frame as an example, but is not limited thereto.
在上述各实施例中, AP设备的短标识可以包括网络标识和网内标识。 AP 设备的短标识也可以不区分网络标识和网内标识, 例如可以将全部比特均作为 网络标识。 其中, AP设备的短标识的长度优选为 16比特。 基于此, 图 10A所 示为包括 6比特网络标识和 10比特网内标识的短标识结构; 图 10B所示为 16 比特的网络标识的短标识结构, 即不包括网内标识。  In the foregoing embodiments, the short identifier of the AP device may include a network identifier and an intra-network identifier. The short identifier of the AP device may also not distinguish between the network identifier and the intra-network identifier. For example, all the bits may be used as the network identifier. The length of the short identifier of the AP device is preferably 16 bits. Based on this, FIG. 10A shows a short identification structure including a 6-bit network identifier and a 10-bit intra-network identifier; FIG. 10B shows a short-identification structure of a 16-bit network identifier, that is, does not include an intra-network identifier.
在上述各实施例中, 在 AP设备接收 MAC帧或上行 MAC帧之前, 可以为 AP设备配置在 AP设备所在区域内唯一标识 AP设备的短标识。 该配置短标识 的操作为一可选操作。 AP设备上可以已经预先配置好了短标识。  In the foregoing embodiments, before the AP device receives the MAC frame or the uplink MAC frame, the AP device may be configured with a short identifier that uniquely identifies the AP device in the area where the AP device is located. The operation of configuring the short identifier is an optional operation. A short identifier can be pre-configured on the AP device.
下面将详细介绍几种为 AP设备配置短标识的方法:  The following describes in detail how to configure short identifiers for AP devices:
例如, 由一个区域管理组织统一管理该区域内的所有 AP的短标识的分配问 题。 要在一个区域部署一个网络(例如 WiFi网络) 的网络运营组织, 需根据所 部署的网络类型和规模(如需要部署多少个 AP )向区域管理组织申请可用的短 标识, 并为所部署网络中的 AP分配申请获得的短标识, 以保证在同一区域内部 署的 AP的短标识不重复。 其中, 区域管理组织可以部署一区域网络管理功能实 体例如第一配置服务器负责为该区域内的 AP设备统一分配短标识具体包括: AP设备向第一配置服务器发送短标识获取请求, 所述短标识获取请求包括 AP 设备接入网络的类型。 其中, 接入网络的类型包括网络所在的区域的标识信息、 网络运营组织的标识信息、 网络针对的业务类型信息 (如传感检测、 智能测量 等)等。 AP设备接收第一配置服务器发送的短标识获取响应, 所述短标识获取 响应包括 AP设备的短标识。 在该方法中, AP设备的短标识由第一配置服务器 根据 AP设备接入网络的类型从预先存储的短标识中为 AP设备统一分配, 以使 所分配的短标识在所述 AP所在区域内唯一标识所述 AP设备。 For example, a regional management organization uniformly manages the allocation of short identifiers for all APs in the area. A network operation organization that deploys a network (such as a WiFi network) in an area needs to apply for a short identifier available to the regional management organization according to the type and size of the deployed network (such as how many APs need to be deployed), and is in the deployed network. The AP assigns a short identifier obtained by the application to ensure that the short identifiers of the APs deployed in the same area are not duplicated. The area management organization may deploy a regional network management function entity, for example, the first configuration server is responsible for uniformly allocating the short identifiers to the AP devices in the area, and the AP device sends a short identifier acquisition request to the first configuration server, where the short identifier is configured. Get request including AP The type of device access to the network. The type of the access network includes the identification information of the area where the network is located, the identification information of the network operation organization, and the service type information (such as sensing detection, intelligent measurement, etc.) for the network. The AP device receives the short identifier acquisition response sent by the first configuration server, where the short identifier acquisition response includes the short identifier of the AP device. In the method, the short identifier of the AP device is uniformly allocated by the first configuration server from the pre-stored short identifier according to the type of the AP device accessing the network, so that the allocated short identifier is in the area where the AP is located. Uniquely identifies the AP device.
又例如, AP设备根据自己的位置自动生成自己的短标识, 以使所生成的短 标识在所述 AP所在区域内唯一标识所述 AP设备。 由于不同 AP设备的位置信 息不同, 故根据位置信息生成的短标识可以保证整个网络的唯一性。  For example, the AP device automatically generates its own short identifier according to its own location, so that the generated short identifier uniquely identifies the AP device in the area where the AP is located. Since the location information of different AP devices is different, the short identifier generated based on the location information can ensure the uniqueness of the entire network.
进一步, 如果 AP设备的短标识包括网络标识和网内标识, 则为 AP设备配 置短标识包括为 AP设备配置网络标识和网内标识。  Further, if the short identifier of the AP device includes the network identifier and the identifier of the network, configuring the short identifier for the AP device includes configuring the network identifier and the identifier of the network for the AP device.
其中, 网络标识在一个区域内可以唯一标识一个网络, 也可由区域管理组 织统一管理该区域内的所有 AP的网络标识的分配问题。 一种为 AP设备配置网 络标识的方法可以是由区域管理组织部署的一区域网络管理功能实体, 即第二 配置服务器统一分配。 具体包括: AP设备向第二配置服务器发送网络标识获取 请求, 所述网络标识获取请求包括 AP设备接入网络的类型。 AP设备接收第二 配置服务器发送的网络标识获取响应, 所述网络标识获取响应包括 AP设备的短 标识中的所述网络标识。 在该方法中, AP设备的短标识中的网络标识由第二配 置服务器根据 AP设备接入网络的类型从预先存储的网络标识中为 AP设备统一 分配, 以使 AP设备的短标识在 AP设备所在区域内能够唯一标识 AP设备。 在 该方法中, 第二配置服务器上存储的是网络标识。  The network identifier can uniquely identify a network in an area, and the area management organization can uniformly manage the allocation of network identifiers of all APs in the area. A method for configuring a network identifier for an AP device may be a regional network management function entity deployed by the area management organization, that is, the second configuration server is uniformly allocated. Specifically, the AP device sends a network identity acquisition request to the second configuration server, where the network identity acquisition request includes a type of the AP device accessing the network. The AP device receives the network identifier acquisition response sent by the second configuration server, where the network identifier acquisition response includes the network identifier in the short identifier of the AP device. In the method, the network identifier in the short identifier of the AP device is uniformly allocated by the second configuration server from the pre-stored network identifier according to the type of the AP device accessing the network, so that the short identifier of the AP device is in the AP device. The AP device can be uniquely identified in the area. In the method, the network identifier is stored on the second configuration server.
其中, 一种为 AP设备配置网内标识的方法可以是由第三配置服务器为 AP 设备统一生成并分配的。 其中, 第三配置服务器是部署在每个局域网内的 AP管 理功能实体。 该方法具体包括: AP设备向第三配置服务器发送网内标识获取请 求; AP接收第三配置服务器发送的网内标识获取响应, 所述网内标识获取响应 包括 AP设备的短标识中的所述网内标识。 在该方法中, AP设备的短标识中的 网内标识由第三配置服务器根据网内标识获取请求统一为 AP设备生成并分配, 以使 AP设备的短标识在 AP设备所在区域内能够唯一标识 AP设备。 在该方法 中, 如果第三配置服务器为本实施例 AP设备生成的网内标识与其他 AP设备的 相冲突, 则第三配置服务器需要重新为本实施例 AP设备生成网内标识, 直到与 其他 AP设备的不冲突为止。 The method for configuring the identifier in the network for the AP device may be uniformly generated and allocated by the third configuration server for the AP device. The third configuration server is an AP tube deployed in each local area network. Functional entity. The method specifically includes: the AP device sends an intra-network identity acquisition request to the third configuration server; the AP receives the intra-network identity acquisition response sent by the third configuration server, where the intra-network identity acquisition response includes the short identifier in the AP device. Intranet identification. In the method, the intra-network identifier in the short identifier of the AP device is generated and allocated by the third configuration server according to the intra-network identifier acquisition request, so that the short identifier of the AP device can be uniquely identified in the area where the AP device is located. AP equipment. In the method, if the third configuration server conflicts with the other AP devices generated by the AP device in the embodiment, the third configuration server needs to re-generate the intra-network identifier for the AP device in the embodiment, until The AP devices do not conflict.
其中, 另一种为 AP设备配置网内标识的方法可以是由 AP设备根据自己的 位置信息自动生成。 为了避免与其他 AP设备的网内标识相冲突, 该方法具体包 括: AP设备根据自己的位置信息自动生成第一网内标识, 并向 AP设备所在网 络中的其他 AP设备发送内部标识请求, 所述内部标识请求包括第一网内标识。 可选的, AP设备可以向所在网络中广播内部标识请求。 如果 AP设备在预设时 间结束后未接收到其他 AP设备发送的内部标识响应, AP设备将第一网内标识 作为该 AP设备的短标识中的网内标识, 以使 AP设备的短标识在 AP设备所在 区域内能够唯一标识 AP设备。 其中, 网络中的其他 AP设备在接收到内部标识 请求后, 会将其中的第一网内标识和自己的网内标识进行比较; 如果比较结果 为不同, 则不进行响应, 并且还可以将内部标识请求丟弃; 如果比较结果为相 同, 则向发送内部标识请求的 AP设备发送内部标识响应。 也就是说, 内部标识 响应是其他 AP设备在自己的网内标识与第一网内标识相同时, 向 AP设备发送 的。  The method for configuring the identifier of the network for the AP device may be automatically generated by the AP device according to the location information of the AP. In order to avoid conflicts with the identifiers of other APs in the network, the method specifically includes: the AP device automatically generates an identifier of the first network according to the location information of the AP, and sends an internal identifier request to other APs in the network where the AP device is located. The internal identification request includes a first intra-network identity. Optionally, the AP device can broadcast an internal identification request to the network. If the AP device does not receive the internal identifier response sent by the other AP device after the preset time is over, the AP device uses the identifier of the first network as the identifier of the network in the short identifier of the AP device, so that the short identifier of the AP device is An AP device can be uniquely identified in the area where the AP device is located. After receiving the internal identification request, the other AP devices in the network compare the first intranet identifier with the own intranet identifier; if the comparison result is different, the response is not performed, and the internal The identification request is discarded; if the comparison result is the same, an internal identification response is sent to the AP device that sends the internal identification request. That is, the internal identity response is sent to the AP device when the other AP device has the same identity in the network as the first network.
可选的, 其他 AP设备还可以在内部标识响应中携带第一网内标识已经被使 用的指示信息。 在该方法中, 如果 AP设备接收到内部标识响应, 则可以重新生成一个第一 网内标识, 并再次向其他 AP设备发送携带重新生成的第一网内标识的内部标识 请求, 直到确定出自己的网内标识为止。 Optionally, the other AP device may further include, in the internal identifier response, indication information that the identifier in the first network has been used. In this method, if the AP device receives the internal identifier response, it may regenerate a first intra-network identifier, and send another internal identifier request carrying the regenerated first intra-network identifier to other AP devices until it determines that it is The identity of the network is up to now.
上述各种配置短标识的方法, 均可以解决相邻区域的两个 AP设备使用相同 短标识的问题, 避免了在两个 AP设备重叠覆盖区域内的 STA设备因无法识别 出所关联的 AP设备而无法正常通信的问题, 有利于保证通信质量。  The foregoing methods for configuring the short identifiers can solve the problem that the two APs in the adjacent area use the same short identifier, and the STA device in the overlapping coverage area of the two AP devices cannot be identified because the associated AP device cannot be identified. The problem of not being able to communicate properly is conducive to ensuring the quality of communication.
图 11为本发明又一实施例提供的数据帧发送方法的流程图。如图 11所示, 本实施例的方法包括:  FIG. 11 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 11, the method in this embodiment includes:
步骤 1101、 AP设备生成 MAC帧, 所述 MAC帧的发送地址为 AP设备的 短标识, 所述 AP设备的短标识的长度小于 AP设备的 MAC地址的长度; AP 设备的短标识用于在 AP设备所在区域内唯一标识 AP设备。  Step 1101: The AP device generates a MAC frame, where the sending address of the MAC frame is a short identifier of the AP device, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and the short identifier of the AP device is used in the AP. The AP device is uniquely identified in the area where the device is located.
步骤 1102、 AP设备向接收设备发送 MAC帧。  Step 1102: The AP device sends a MAC frame to the receiving device.
在本实施例中, AP设备使用 AP设备的短标识作为 MAC帧的发送地址, 与另一设备(即接收设备)进行通信。 在现有技术中, AP设备与另一设备进行 通信时, 使用的发送地址为 AP设备的 MAC地址, 而 AP设备的 MAC地址的 长度为 48比特, 使得 MAC帧头较长, 本实施例使用 AP设备的短标识, 其长 度小于 AP设备的 MAC地址, 减小了 MAC帧头, 增加了有效数据在 MAC帧 中的比重, 提高了 MAC帧的利用率, 进而提高了传输信道的利用率。  In this embodiment, the AP device uses the short identifier of the AP device as the sending address of the MAC frame, and communicates with another device (ie, the receiving device). In the prior art, when the AP device communicates with another device, the sending address used is the MAC address of the AP device, and the length of the MAC address of the AP device is 48 bits, so that the MAC frame header is long, which is used in this embodiment. The short identifier of the AP device is smaller than the MAC address of the AP device, which reduces the MAC frame header, increases the proportion of valid data in the MAC frame, improves the utilization of the MAC frame, and improves the utilization of the transmission channel.
其中, 与 AP设备进行通信的接收设备可以是 STA设备, 或是另一 AP设 备。  The receiving device that communicates with the AP device may be a STA device or another AP device.
如果与 AP设备进行通信的接收设备为 STA设备, 则 AP设备生成 MAC帧 具体为 AP设备生成下行 MAC帧; AP设备向接收设备发送下行 MAC帧具体为 AP设备向 STA设备发送下行 MAC帧。 图 12为本发明又一实施例提供的数据帧发送方法的流程图。如图 12所示, 本实施例的方法包括: If the receiving device that communicates with the AP device is the STA device, the AP device generates the MAC frame, and the AP device generates the downlink MAC frame. The AP device sends the downlink MAC frame to the receiving device. Specifically, the AP device sends the downlink MAC frame to the STA device. FIG. 12 is a flowchart of a data frame sending method according to another embodiment of the present invention. As shown in FIG. 12, the method in this embodiment includes:
步骤 1201、 AP设备接收 STA设备发送的关联请求。  Step 1201: The AP device receives an association request sent by the STA device.
在本实施例中, ST A设备在发现 AP设备并完成认证后, 向 AP设备发送关 联请求以请求与该 AP设备进行关联 AP设备接收 STA设备发送的关联请求。  In this embodiment, after the AP device is discovered and authenticated, the ST A device sends an association request to the AP device to request association with the AP device. The AP device receives the association request sent by the STA device.
步骤 1202、 AP设备向 STA设备发送关联响应, 以关联 STA设备, 所述关 联响应包括 AP设备的短标识。  Step 1202: The AP device sends an association response to the STA device to associate the STA device, where the association response includes a short identifier of the AP device.
AP设备接收到 STA设备发送的关联请求后, 为 STA设备分配 16比特的 AID, 用于 AP设备在服务区域内识别与自己关联的不同 STA设备。 然后, AP 设备同时将分配的 AID和 AP设备的短标识封装在关联响应中发送给 STA设备。 即本实施例的关联响应同时包括 STA的 AID和 AP设备的短标识。  After receiving the association request sent by the STA device, the AP device allocates a 16-bit AID to the STA device for the AP device to identify different STA devices associated with itself in the service area. Then, the AP device simultaneously sends the assigned AID and the short identifier of the AP device in the association response to the STA device. That is, the association response of this embodiment includes both the AID of the STA and the short identifier of the AP device.
其中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  The length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
步骤 1203、 AP设备生成下行 MAC帧, 所述下行 MAC帧的发送地址为 AP 设备的短标识, 接收地址为 STA的 AID。  Step 1203: The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
在本实施例中, 当 AP设备需要向 STA设备发送数据时, 生成下行 MAC 帧, 并使用 AP设备的短标识作为下行 MAC帧中的发送地址, 使用 STA设备 的 AID作为下行 MAC帧中的发送地址。  In this embodiment, when the AP device needs to send data to the STA device, generate a downlink MAC frame, and use the short identifier of the AP device as the sending address in the downlink MAC frame, and use the AID of the STA device as the sending in the downlink MAC frame. address.
其中, AP设备的短标识与 AP设备的 MAC地址相比长度要短, STA的 AID 与 STA的 MAC地址相比长度也要短, 故本实施例的下行 MAC帧中 MAC帧头 要小于现有技术中的 MAC帧头。  The short identifier of the AP device is shorter than the MAC address of the AP device, and the length of the STA is shorter than the MAC address of the STA. Therefore, the MAC frame header in the downlink MAC frame in this embodiment is smaller than the existing one. The MAC frame header in the technology.
步骤 1204、 AP设备将下行 MAC帧发送给 STA设备。  Step 1204: The AP device sends the downlink MAC frame to the STA device.
在生成下行 MAC帧后, AP设备将下行 MAC帧发送给 STA设备。 STA设 备接收 AP设备发送的下行 MAC帧。 然后, STA设备将下行 MAC帧中的接收 地址与自己的 AID进行比较, 以判断自己是否该下行 MAC帧的接收者。 如果 判断结果为是, STA设备对该下行 MAC帧进行解析, 获得其中的有效数据; 如 果判断结果为否, STA设备丟弃该下行 MAC帧。 After the downlink MAC frame is generated, the AP device sends the downlink MAC frame to the STA device. STA set The standby device receives the downlink MAC frame sent by the AP device. Then, the STA device compares the received address in the downlink MAC frame with its own AID to determine whether it is the receiver of the downlink MAC frame. If the judgment result is yes, the STA device parses the downlink MAC frame to obtain valid data therein; if the judgment result is no, the STA device discards the downlink MAC frame.
进一步,为了提高接收下行 MAC帧的准确性 STA设备还可以将下行 MAC 帧中的发送地址与在关联响应中获取的 AP设备的短标识进行比较, 判断该下行 MAC帧是否是由所关联的 AP设备发送, 以进一步判断自己是否为该下行 MAC 帧的接收者。 如果该判断结果为是, 且 STA的 AID与下行 MAC帧中的接收地 址也相同, 则 STA设备对该下行 MAC帧进行解析, 获取其中的有效数据; 如 果判断结果为否,无论 STA的 AID与下行 MAC帧中的接收地址是否相同, STA 设备均将该下行 MAC帧丟弃。  Further, in order to improve the accuracy of receiving the downlink MAC frame, the STA device may further compare the sending address in the downlink MAC frame with the short identifier of the AP device acquired in the association response, and determine whether the downlink MAC frame is associated with the AP. The device sends to further determine whether it is the receiver of the downlink MAC frame. If the result of the determination is yes, and the AID of the STA is the same as the receiving address in the downlink MAC frame, the STA device parses the downlink MAC frame to obtain valid data therein; if the determination result is no, regardless of the STA's AID and Whether the receiving address in the downlink MAC frame is the same, and the STA device discards the downlink MAC frame.
在本实施例中, AP设备发送给 STA的下行 MAC帧使用 AP设备的短标识 替代现有技术中 AP设备的 BSSID, 减小了 MAC帧头, 增加了有效数据在下行 MAC帧中的比重, 提高了下行 MAC帧的利用率, 进而提高了传输信道的利用 率。  In this embodiment, the downlink MAC frame sent by the AP device to the STA replaces the BSSID of the AP device in the prior art by using the short identifier of the AP device, reduces the MAC frame header, and increases the proportion of valid data in the downlink MAC frame. The utilization of the downlink MAC frame is improved, thereby improving the utilization of the transmission channel.
图 13为本发明又一实施例提供的数据帧发送方法的流程图。如图 13所示, 本实施例的方法包括:  FIG. 13 is a flowchart of a method for sending a data frame according to another embodiment of the present invention. As shown in FIG. 13, the method in this embodiment includes:
步骤 1301、 AP设备向 STA设备广播信标帧, 所述信标帧包括 AP设备的 短标识。  Step 1301: The AP device broadcasts a beacon frame to the STA device, where the beacon frame includes a short identifier of the AP device.
在本实施例中, AP设备通过周期性的广播信标帧, 以便于 STA设备能够发 现该 AP设备并与该 AP设备进行关联。  In this embodiment, the AP device periodically broadcasts the beacon frame, so that the STA device can discover the AP device and associate with the AP device.
其中, AP设备会在信标帧中携带 AP设备的 BSSID, 以便于 STA确定自己 要接入的 BS&在本实施例中, AP设备同时在信标帧中携带 AP设备的短标识。 即本实施例的信标帧同时包括 AP设备的 BSSID和 AP设备的短标识。 The AP device carries the BSSID of the AP device in the beacon frame, so that the STA determines the BS to be accessed by the STA. In this embodiment, the AP device simultaneously carries the short identifier of the AP device in the beacon frame. That is, the beacon frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备广播的信标帧, 并从信标帧中获取 AP设备 的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP设备 的短标识之间的对应关系。  Correspondingly, the STA device receives the beacon frame broadcasted by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the beacon frame, and simultaneously acquires the BSSID of the AP device and the short identifier of the AP device. Correspondence relationship.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
步骤 1302、 AP设备对 STA设备进行认证。  Step 1302: The AP device authenticates the STA device.
STA设备发现 AP设备后, 与该 AP设备进行认证。 该认证过程属于现有技 术, 在此不做详述。  After the STA device discovers the AP device, it authenticates with the AP device. This certification process is an existing technology and will not be described in detail here.
步骤 1303、 AP设备接收 STA设备发送的关联请求。  Step 1303: The AP device receives an association request sent by the STA device.
当 STA设备通过认证后, STA设备向 AP设备发送关联请求, 以与 AP设 备进行关联。 相应的, AP设备接收 STA设备的关联请求。  After the STA device passes the authentication, the STA device sends an association request to the AP device to associate with the AP device. Correspondingly, the AP device receives the association request of the STA device.
步骤 1304、 AP设备向 STA设备发送关联响应, 以关联 STA设备。  Step 1304: The AP device sends an association response to the STA device to associate the STA device.
AP设备接收到 STA设备的关联请求后, 为该 STA设备分配 AID, 用于 AP 设备在服务区域内识别与自己关联的不同 STA设备。 AP设备将分配的 AID封 装在关联响应中发送给 STA设备。  After receiving the association request of the STA device, the AP device allocates an AID to the STA device, and the AP device identifies the different STA device associated with the STA in the service area. The AP device encapsulates the assigned AID in the association response and sends it to the STA device.
STA设备接收 AP设备发送的关联响应, 并从中获取 AP设备分配的 AID。 步骤 1305、 AP设备生成下行 MAC帧, 所述下行 MAC帧的发送地址为 AP 设备的短标识, 接收地址为 STA的 AID。  The STA device receives the association response sent by the AP device, and obtains the AID allocated by the AP device. Step 1305: The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
步骤 1306、 AP设备将下行 MAC帧发送给 ST A设备。  Step 1306: The AP device sends the downlink MAC frame to the ST A device.
步骤 1305和步骤 1306可参见步骤 1203和步骤 1204的描述, 在此不再赘 述。  Step 1305 and step 1306 can be referred to the description of step 1203 and step 1204, and details are not described herein.
在本实施例中, AP设备发送给 STA的下行 MAC帧使用 AP设备的短标识 替代现有技术中 AP设备的 BSSID, 减小了 MAC帧头, 增加了有效数据在下行 MAC帧中的比重, 提高了下行 MAC帧的利用率, 进而提高了传输信道的利用 图 14为本发明又一实施例提供的数据帧发送方法的流程图。如图 14所示, 本实施例的方法包括: In this embodiment, the downlink MAC frame sent by the AP device to the STA uses the short identifier of the AP device. In place of the BSSID of the AP device in the prior art, the MAC frame header is reduced, the proportion of effective data in the downlink MAC frame is increased, the utilization of the downlink MAC frame is improved, and the utilization of the transmission channel is improved. A flowchart of a data frame transmission method provided by still another embodiment. As shown in FIG. 14, the method in this embodiment includes:
步骤 1401、 AP设备接收 STA设备发送的探测请求帧。  Step 1401: The AP device receives a probe request frame sent by the STA device.
步骤 1402、 AP设备向 STA设备发送探测响应帧, 所述探测响应帧包括 AP 设备的短标识。  Step 1402: The AP device sends a probe response frame to the STA device, where the probe response frame includes a short identifier of the AP device.
在本实施例中, STA设备主动广播探测请求帧, 以使周围的 AP设备进行响 应, 从而发现 AP设备。 对于 AP设备来说, 如果接收到 STA设备发送的探测 请求帧, 就会向 STA设备发送探测响应进行响应, 以便于 STA设备与其进行关 联。  In this embodiment, the STA device actively broadcasts the probe request frame, so that the surrounding AP device responds to discover the AP device. For the AP device, if the probe request frame sent by the STA device is received, the probe response is sent to the STA device to respond, so that the STA device can be associated with it.
其中, AP设备会在探测响应帧中携带 AP设备的 BSSID (即 MAC地址 ) , 以便于 STA确定自己要接入的 BSS。 在本实施例中, AP设备同时在探测响应 帧中携带 AP设备的短标识。 即本实施例的探测响应帧同时包括 AP设备的 BSSID和 AP设备的短标识。  The AP device carries the BSSID (ie, MAC address) of the AP device in the probe response frame, so that the STA determines the BSS to be accessed by the STA. In this embodiment, the AP device simultaneously carries the short identifier of the AP device in the probe response frame. That is, the probe response frame of this embodiment includes both the BSSID of the AP device and the short identifier of the AP device.
相应的, STA设备接收 AP设备发送的探测响应帧, 并从探测响应帧中获取 AP设备的 BSSID和 AP设备的短标识, 与此同时获取到 AP设备的 BSSID与 AP设备的短标识之间的对应关系。  Correspondingly, the STA device receives the probe response frame sent by the AP device, and obtains the BSSID of the AP device and the short identifier of the AP device from the probe response frame, and simultaneously obtains the BSSID between the AP device and the short identifier of the AP device. Correspondence relationship.
在本实施例中, AP设备的短标识的长度小于 AP设备的 MAC地址的长度, 用于在 AP设备所在区域内唯一标识 AP设备。  In this embodiment, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and is used to uniquely identify the AP device in the area where the AP device is located.
步骤 1403、 AP设备对 STA设备进行认证。  Step 1403: The AP device authenticates the STA device.
步骤 1404、 AP设备接收 STA设备发送的关联请求。 步骤 1405、 AP设备向 STA设备发送关联响应, 以关联 STA设备。 Step 1404: The AP device receives an association request sent by the STA device. Step 1405: The AP device sends an association response to the STA device to associate the STA device.
步骤 1406、 AP设备生成下行 MAC帧, 所述下行 MAC帧的发送地址为 AP 设备的短标识, 接收地址为 STA的 AID。  Step 1406: The AP device generates a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device, and the receiving address is an AID of the STA.
步骤 1407、 AP设备将下行 MAC帧发送给 STA设备。  Step 1407: The AP device sends the downlink MAC frame to the STA device.
上述步骤 1403至步骤 1407可参见步骤 1302至步骤 1306的描述, 在此不 再赘述。  The foregoing steps 1403 to 1407 can be referred to the description of step 1302 to step 1306, and details are not described herein again.
在本实施例中, AP设备发送给 STA的下行 MAC帧使用 AP设备的短标识 替代现有技术中 AP设备的 BSSID, 减小了 MAC帧头, 增加了有效数据在下行 MAC帧中的比重, 提高了下行 MAC帧的利用率, 进而提高了传输信道的利用 率。  In this embodiment, the downlink MAC frame sent by the AP device to the STA replaces the BSSID of the AP device in the prior art by using the short identifier of the AP device, reduces the MAC frame header, and increases the proportion of valid data in the downlink MAC frame. The utilization of the downlink MAC frame is improved, thereby improving the utilization of the transmission channel.
在上述各 MAC帧发送方法实施例中, AP设备的短标识可以包括网络标识 和网内标识。 AP设备的短标识也可以不区分网络标识和网内标识, 例如可以将 全部比特均作为网络标识。 其中, AP设备的短标识的长度优选为 16比特。  In the foregoing method for sending a MAC frame, the short identifier of the AP device may include a network identifier and an intra-network identifier. The short identifier of the AP device may also not distinguish between the network identifier and the identifier of the network. For example, all the bits may be used as the network identifier. The length of the short identifier of the AP device is preferably 16 bits.
在上述各 MAC帧发送方法实施例中,在 AP设备生成 MAC帧或下行 MAC 帧之前, 可以为 AP设备配置短标识。 该配置短标识的操作为一可选操作。 AP 设备上可以已经预先配置好了短标识。 其中, 为 AP设备配置短标识的方法参见 前述实施例的描述, 在此不再赘述。  In the foregoing embodiment of the method for transmitting a MAC frame, before the AP device generates a MAC frame or a downlink MAC frame, the AP device may be configured with a short identifier. The operation of configuring the short identifier is an optional operation. A short identifier can be pre-configured on the AP. For the method of configuring the short identifier for the AP device, refer to the description of the foregoing embodiment, and details are not described herein again.
综上可见本发明实施例通过为 AP设备定义长度小于 AP的 BSSID的短标 识, 并使用 AP的短标识替代现有技术使用的 AP的 BSSID作为 MAC帧的发送 地址或接收地址, 完成 AP设备与 STA设备或另一 AP设备之间的通信, 减小 了 MAC帧头, 提高了 MAC帧的利用率, 进而提高了传输信道的利用率。  It can be seen that the embodiment of the present invention completes the AP device by using the short identifier of the BSSID whose length is smaller than the AP, and the short identifier of the AP is used to replace the BSSID of the AP used in the prior art as the sending address or receiving address of the MAC frame. The communication between the STA device or another AP device reduces the MAC frame header, improves the utilization of the MAC frame, and improves the utilization of the transmission channel.
图 15为本发明一实施例提供的 STA设备的结构示意图。 如图 15所示, 本 实施例的 STA设备包括: 通知消息接收模块 150、 第一生成模块 151和第一发 送模块 152。 FIG. 15 is a schematic structural diagram of a STA device according to an embodiment of the present invention. As shown in FIG. 15, the STA device in this embodiment includes: a notification message receiving module 150, a first generating module 151, and a first sending The module 152 is sent.
其中, 通知消息接收模块 150, 用于接收 AP设备发送的短标识通知消息, 所述短标识通知消息包括所述 AP设备的短标识; 所述 AP设备的短标识的长度 小于所述 AP设备的 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP 设备所在区域内唯一标识所述 AP设备。  The notification message receiving module 150 is configured to receive a short identifier notification message that is sent by the AP device, where the short identifier notification message includes a short identifier of the AP device, and the short identifier of the AP device is smaller than the AP device. The length of the MAC address, the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located.
第一生成模块 151, 与通知消息接收模块 150通信, 用于生成通讯消息, 所 述通讯消息的接收地址为 AP设备的短标识。  The first generating module 151 is in communication with the notification message receiving module 150, and is configured to generate a communication message, where the receiving address of the communication message is a short identifier of the AP device.
第一发送模块 152, 与第一生成模块 151通信, 用于向 AP设备发送第一生 成模块 151生成的通讯消息。  The first sending module 152 is in communication with the first generating module 151, and is configured to send the communication message generated by the first generating module 151 to the AP device.
其中, 通讯消息可以是 MAC帧。  The communication message may be a MAC frame.
本实施例 STA设备的各功能模块可用于执行图 1所示通信方法的流程, 其 具体工作原理不再赘述, 详见方法实施例的描述。  The function modules of the STA device can be used to execute the flow of the communication method shown in FIG. 1. The specific working principle is not described here. For details, refer to the description of the method embodiments.
本实施例的 STA设备通过将 AP设备的短标识作为通讯消息的接收地址, 然后将该通讯消息发送给 AP设备, 实现与 AP设备的通信, 由于 AP设备的短 标识的长度小于 AP设备的 MAC地址(即 BSSID )的长度, 故减小了通讯消息 中的 MAC帧头, 增加了通讯消息中的有效数据的比重, 提高了通讯消息的利用 率, 进而提高了传输信道的利用率。  The STA device in this embodiment uses the short identifier of the AP device as the receiving address of the communication message, and then sends the communication message to the AP device to implement communication with the AP device. The length of the short identifier of the AP device is smaller than the MAC address of the AP device. The length of the address (ie, BSSID) reduces the MAC frame header in the communication message, increases the proportion of valid data in the communication message, improves the utilization of the communication message, and improves the utilization of the transmission channel.
其中, 本实施例的短标识通知消息可以为关联响应。 则本实施例的通知消 息接收模块 150具体用于在第一生成模块 151生成通讯消息之前, 向 AP设备发 送关联请求, 然后接收 AP设备发送的关联响应, 以与 AP设备进行关联。  The short identifier notification message in this embodiment may be an association response. The notification message receiving module 150 of the embodiment is specifically configured to send an association request to the AP device before the first generation module 151 generates the communication message, and then receive an association response sent by the AP device to associate with the AP device.
进一步, 本实施例的短标识通知消息还可以是信标帧。 则通知消息接收模 块 150具体用于接收 AP设备广播的信标帧,所述信标帧包括 AP设备的短标识。  Further, the short identifier notification message of this embodiment may also be a beacon frame. The notification message receiving module 150 is specifically configured to receive a beacon frame broadcast by the AP device, where the beacon frame includes a short identifier of the AP device.
进一步, 本实施例的短标识通知消息还可以是探测响应帧。 则通知消息接 收模块 150具体接收 AP设备发送的探测响应帧, 所述探测响应帧包括 AP设备 的短标识。 Further, the short identifier notification message of this embodiment may also be a probe response frame. Notification message The receiving module 150 specifically receives the probe response frame sent by the AP device, where the probe response frame includes a short identifier of the AP device.
其中, AP设备的短标识可由 AP设备根据 AP设备的位置信息自动生成, 以使所生成的短标识在 AP设备所在区域内唯一标识 AP设备, 或者可由第一配 置服务器根据 AP设备接入网络的类型为 AP设备统一分配, 以使所分配的短标 识在 AP设备所在区域内唯一标识 AP设备。  The short identifier of the AP device may be automatically generated by the AP device according to the location information of the AP device, so that the generated short identifier uniquely identifies the AP device in the area where the AP device is located, or may be accessed by the first configuration server according to the AP device. The type is uniformly assigned to the AP device, so that the assigned short identifier uniquely identifies the AP device in the area where the AP device is located.
可选的, AP设备的短标识可以包括网络标识和网内标识。 其中, 网络标识 可由第二配置服务器根据 AP设备接入网络的类型统一分配, 网内标识可由第三 配置服务器统一生成并分配或由 AP设备根据 AP设备的位置信息自动生成, 以 使 AP设备的短标识在 AP设备所在区域内唯一标识 AP设备。  Optionally, the short identifier of the AP device may include a network identifier and an intra-network identifier. The network identifier may be uniformly allocated by the second configuration server according to the type of the AP device accessing the network, and the identifier of the network may be uniformly generated and allocated by the third configuration server or automatically generated by the AP device according to the location information of the AP device, so that the AP device The short identifier uniquely identifies the AP device in the area where the AP device is located.
优选的, AP设备的短标识的长度为 16比特。  Preferably, the short identifier of the AP device has a length of 16 bits.
上述各功能模块可用于执行图 2A、 图 3和图 4所示数据帧发送方法中的相 应流程, 其具体工作原理不再赘述, 详见方法实施例的描述。  The foregoing functional modules can be used to perform the corresponding processes in the data frame sending method shown in FIG. 2A, FIG. 3, and FIG. 4, and the specific working principles are not described herein again. For details, refer to the description of the method embodiments.
本实施例的 STA设备, 通过各种模块在发现 AP设备的过程中或关联 AP 设备的过程中获取 AP设备的短标识, 为使用 AP设备的短标识与 AP设备进行 通信打下了基础, 由于本实施例 STA使用长度小于 AP设备的 MAC地址的 AP 设备的短标识作为通讯消息的接收地址, 故减小了通讯消息中的 MAC帧头, 增 加了通讯消息中的有效数据的比重, 提高了通讯消息的利用率, 进而提高了传 输信道的利用率。  The STA device of the present embodiment obtains the short identifier of the AP device in the process of discovering the AP device or the process of associating the AP device by using various modules, and lays a foundation for communicating with the AP device by using the short identifier of the AP device, because The STA of the embodiment uses the short identifier of the AP device whose length is smaller than the MAC address of the AP device as the receiving address of the communication message, so that the MAC frame header in the communication message is reduced, the proportion of the valid data in the communication message is increased, and the communication is improved. The utilization of the message, which in turn increases the utilization of the transmission channel.
图 16为本发明一实施例提供的 AP设备的结构示意图。 如图 17所示, 本实 施例的 AP设备包括: 通知消息发送模块 170、 接收模块 171、 判断模块 172和 数据获取模块 173。  FIG. 16 is a schematic structural diagram of an AP device according to an embodiment of the present invention. As shown in FIG. 17, the AP device of this embodiment includes: a notification message sending module 170, a receiving module 171, a determining module 172, and a data acquiring module 173.
其中, 通知消息发送模块 170, 用于发送短标识通知消息, 所述短标识通知 消息包含所述 AP设备的短标识, 所述 AP设备的短标识的长度小于所述 AP设 备的 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区域内 唯一标识所述 AP设备。 The notification message sending module 170 is configured to send a short identifier notification message, and the short identifier notification The message includes a short identifier of the AP device, the length of the short identifier of the AP device is smaller than the length of the MAC address of the AP device, and the short identifier of the AP device is used to uniquely identify the location of the AP device. Said AP device.
接收模块 171 , 用于接收通讯消息。  The receiving module 171 is configured to receive a communication message.
判断模块 172, 与接收模块 171通信, 用于判断接收模块 171接收到的通讯 消息中的接收地址与 AP设备的短标识是否相同。  The determining module 172 is in communication with the receiving module 171, and is configured to determine whether the receiving address in the communication message received by the receiving module 171 is the same as the short identifier of the AP device.
数据获取模块 173, 与判断模块 172通信, 用于在判断模块 172的判断结果 为相同时, 解析获得通讯消息中的数据部分。  The data obtaining module 173 is in communication with the determining module 172, and is configured to parse and obtain the data portion in the communication message when the determining result of the determining module 172 is the same.
本实施例 AP设备的各功能模块可用于执行图 5所示通信方法的流程, 其具 体工作原理不再赘述, 详见方法实施例的描述。  The function modules of the AP device can be used to execute the flow of the communication method shown in FIG. 5, and the specific working principle is not described here. For details, refer to the description of the method embodiment.
本实施例的 AP设备, 使用长度比 AP设备的 MAC地址(即 BSSID )短的 AP设备的短标识与其他设备进行通信, 减小了通讯消息中的 MAC帧头, 提高 了通讯消息的利用率, 进而提高了传输信道的利用率。  The AP device in this embodiment communicates with other devices by using the short identifier of the AP device whose length is shorter than the MAC address of the AP device (ie, the BSSID), reduces the MAC frame header in the communication message, and improves the utilization of the communication message. , thereby improving the utilization of the transmission channel.
图 17为本发明另一实施例提供的 AP设备的结构示意图。 本实施例基于图 16所示实施例实现, 如图 17所示, 本实施例的接收模块 171可具体用于接收 STA设备发送的上行 MAC帧。 相应的, 判断模块 172可具体用于判断 MAC帧 接收模块 171接收到的上行 MAC帧中的接收地址与 AP设备的短标识是否相同。 数据获取模块 173可具体用于在判断模块 172的判断结果为相同时, 解析获得 上行 MAC帧中的数据部分。  FIG. 17 is a schematic structural diagram of an AP device according to another embodiment of the present invention. The embodiment is implemented based on the embodiment shown in FIG. 16. As shown in FIG. 17, the receiving module 171 of this embodiment may be specifically configured to receive an uplink MAC frame sent by the STA device. Correspondingly, the determining module 172 is specifically configured to determine whether the receiving address in the uplink MAC frame received by the MAC frame receiving module 171 is the same as the short identifier of the AP device. The data obtaining module 173 is specifically configured to parse and obtain the data portion in the uplink MAC frame when the judgment result of the determining module 172 is the same.
进一步, 本实施例的 AP设备还包括: 第二生成模块 174和第二发送模块 Further, the AP device in this embodiment further includes: a second generation module 174 and a second sending module
175。 175.
其中, 第二生成模块 174, 用于生成下行 MAC帧, 下行 MAC帧的发送地 址为 AP设备的短标识。 第二发送模块 175 , 与第二生成模块 174通信, 用于向 STA设备发送第二 生成模块 174生成的下行 MAC帧。 The second generation module 174 is configured to generate a downlink MAC frame, where the sending address of the downlink MAC frame is a short identifier of the AP device. The second sending module 175 is in communication with the second generating module 174, and configured to send the downlink MAC frame generated by the second generating module 174 to the STA device.
其中, 第二生成模块 174和第二发送模块 175可用于执行图 11所示数据发 送方法的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。  The second generation module 174 and the second sending module 175 can be used to execute the flow of the data transmission method shown in FIG. 11. The specific working principle is not described here. For details, refer to the description of the method embodiment.
进一步, 本实施例的短标识通知消息可以是关联响应。 则通知消息发送模 块 170具体用于在接收模块 171接收通讯消息之前, 或者在第二生成模块 174 生成下行 MAC帧之前, 接收 STA设备发送的关联请求, 然后向 STA设备发送 关联响应, 以关联 STA设备; 所述关联响应包括 AP设备的短标识。  Further, the short identifier notification message of this embodiment may be an association response. The notification message sending module 170 is specifically configured to: before the receiving module 171 receives the communication message, or before the second generation module 174 generates the downlink MAC frame, receive the association request sent by the STA device, and then send an association response to the STA device to associate the STA. The device; the association response includes a short identifier of the AP device.
进一步, 本实施例的短标识通知消息可以是信标帧。 则通知消息发送模块 170具体  Further, the short identifier notification message of this embodiment may be a beacon frame. Then the notification message sending module 170 is specific
向 STA设备广播发送信标帧, 信标帧包括 AP设备的短标识。  The beacon frame is broadcasted to the STA device, and the beacon frame includes a short identifier of the AP device.
进一步, 本实施例的短标识通知消息可以是探测响应帧。 则通知消息发送 模块 170具体  Further, the short identifier notification message of this embodiment may be a probe response frame. Then the notification message sending module 170 is specific
向 STA设备发送探测响应帧, 探测响应帧包括 AP设备的短标识。  A probe response frame is sent to the STA device, and the probe response frame includes a short identifier of the AP device.
进一步, 本实施例的 AP设备还可以包括: 配置模块 180。 配置模块 180用 于为 AP设备配置在 AP设备所在区域内唯一标识 AP设备的短标识。 可选的, 配置模块 180与判断模块 172第二生成模块 17 通知消息发送模块 170通信, 用于向这些模块提供 AP设备的短标识。  Further, the AP device in this embodiment may further include: a configuration module 180. The configuration module 180 is configured to configure, for the AP device, a short identifier that uniquely identifies the AP device in the area where the AP device is located. Optionally, the configuration module 180 communicates with the determining module 172, the second generating module 17 and the notification message sending module 170, for providing the modules with short identifiers of the AP devices.
配置模块 180的一种结构包括: 获取请求发送子模块 1801和获取响应接收 子模块 1802。  One configuration of the configuration module 180 includes: an acquisition request transmission sub-module 1801 and an acquisition response reception sub-module 1802.
其中, 获取请求发送子模块 1801 , 用于向第一配置服务器发送短标识获取 请求, 所述短标识获取请求包括 AP设备接入网络的类型。  The obtaining request sending sub-module 1801 is configured to send a short identifier obtaining request to the first configuration server, where the short identifier obtaining request includes a type of the AP device accessing the network.
获取响应接收子模块 1802, 用于接收第一配置服务器发送的短标识获取响 应, 所述短标识获取响应包括 ΑΡ设备的短标识, 所述 ΑΡ设备的短标识由第一 配置服务器根据所述 ΑΡ设备接入网络的类型从预先存储的短标识中为 ΑΡ设备 统一分配, 以使所分配的短标识在所述 ΑΡ所在区域内唯一标识所述 ΑΡ设备。 The response receiving submodule 1802 is configured to receive the short identifier obtained by the first configuration server. The short identifier acquisition response includes a short identifier of the device, and the short identifier of the UI device is uniformly allocated by the first configuration server from the pre-stored short identifier to the UI device according to the type of the device access network. So that the assigned short identifier uniquely identifies the defective device within the area in which the defect is located.
如果 ΑΡ设备的短标识包括网络标识和网内标识, 则配置模块 180还可以包 括: 第一配置子模块 1803和第二配置子模块 1804。  If the short identifier of the device includes the network identifier and the intra-network identifier, the configuration module 180 may further include: a first configuration sub-module 1803 and a second configuration sub-module 1804.
其中, 第一配置子模块 1803, 用于为 ΑΡ设备配置 ΑΡ设备的短标识中的网 络标识。 第二配置子模块 1804, 用于为 ΑΡ设备配置 ΑΡ设备的短标识中网内标 识。  The first configuration submodule 1803 is configured to configure, for the device, the network identifier in the short identifier of the device. The second configuration sub-module 1804 is configured to configure the intra-network identifier of the short identifier of the device for the device.
第一配置子模块 1803的一种实现结构包括: 第一获取请求发送单元和第一 菝取响应接收单元。  An implementation structure of the first configuration submodule 1803 includes: a first acquisition request sending unit and a first retrieval response receiving unit.
其中, 第一获取请求发送单元, 用于向第二配置服务器发送网络标识获取 请求, 所述网络标识获取请求包括 ΑΡ设备接入网络的类型。 第一获取响应接收 单元, 用于接收第二配置服务器发送的网络标识获取响应, 所述网络标识获取 响应包括 ΑΡ设备的短标识中的网络标识, 所述 ΑΡ设备的短标识中的网络标识 由第二配置服务器根据 ΑΡ设备接入网络的类型从预先存储的网络标识中为 ΑΡ 设备统一分配以使 ΑΡ设备的短标识在 ΑΡ设备所在区域内唯一标识 ΑΡ设备。  The first acquisition request sending unit is configured to send a network identity acquisition request to the second configuration server, where the network identity acquisition request includes a type of the device access network. a first acquisition response receiving unit, configured to receive a network identifier acquisition response sent by the second configuration server, where the network identifier acquisition response includes a network identifier in a short identifier of the device, and the network identifier in the short identifier of the device is configured by The second configuration server uniformly allocates the ΑΡ device from the pre-stored network identifier according to the type of the 接入 device access network, so that the short identifier of the ΑΡ device uniquely identifies the ΑΡ device in the area where the ΑΡ device is located.
第二配置子模块 1804的一种实现结构包括: 第二获取请求发送单元和第二 获取响应接收单元。  An implementation structure of the second configuration sub-module 1804 includes: a second acquisition request sending unit and a second acquisition response receiving unit.
其中, 第二获取请求发送单元, 用于向第三配置服务器发送网内标识获取 请求。 第二获取响应接收单元, 用于接收第三配置服务器发送的网内标识获取 响应, 所述网内标识获取响应包括 ΑΡ设备的短标识中的网内标识, 所述 ΑΡ设 备的短标识中的网内标识由第三配置服务器根据网内标识获取请求统一为 ΑΡ 设备生成并分配, 以使 ΑΡ设备的短标识在 ΑΡ设备所在区域内唯一标识 ΑΡ设 备。 The second obtaining request sending unit is configured to send an in-network identifier obtaining request to the third configuration server. a second acquisition response receiving unit, configured to receive an intra-network identifier acquisition response sent by the third configuration server, where the intra-network identifier acquisition response includes an intra-network identifier in the short identifier of the device, and the short identifier in the device The intra-network identifier is generated and allocated by the third configuration server according to the intra-network identifier acquisition request, so that the short identifier of the device is uniquely identified in the area where the device is located. Ready.
第二配置子模块 1804的另一种实现结构包括: 标识生成单元、 标识请求发 送单元、 标识响应接收单元和标识确定单元。  Another implementation structure of the second configuration sub-module 1804 includes: an identification generating unit, an identification request sending unit, an identification response receiving unit, and an identification determining unit.
其中, 标识生成单元, 用于根据 AP设备的位置信息生成第一网内标识。 标 所述内部标识请求包括第一网内标识。 标识响应接收单元, 用于在预设时间内 接收其他 AP设备返回的内部标识响应, 所述内部标识响应是其他 AP设备在其 他 AP设备的短标识的网内标识与第一网内标识相同时向 AP设备发送的。 标识 确定单元, 用于在标识响应接收单元在预设时间结束后未接收到内部标识响应 时, 将第一网内标识作为 AP设备的短标识中的网内标识, 以使 AP设备的短标 识在 AP设备所在区域内唯一标识 AP设备。  The identifier generating unit is configured to generate the first intra-network identifier according to the location information of the AP device. The internal identification request includes a first intra-network identifier. The identifier response receiving unit is configured to receive an internal identifier response returned by the other AP device within a preset time, where the internal identifier response is that the identifier of the other AP device is the same as the identifier of the first network when the identifier of the short identifier of the other AP device is the same Sent to the AP device. The identifier determining unit is configured to: when the identifier response receiving unit does not receive the internal identifier response after the preset time ends, the identifier of the first network is used as the identifier of the network in the short identifier of the AP device, so that the short identifier of the AP device is used. The AP device is uniquely identified in the area where the AP device is located.
上述各功能模块、 子模块或单元可用于执行图 6-图 9和图 12-图 14所示实 施例中的相应流程, 其具体工作原理不再赘述, 详见方法实施例的描述。  The above-mentioned respective functional modules, sub-modules or units can be used to perform the corresponding processes in the embodiments shown in FIG. 6 to FIG. 9 and FIG. 12 to FIG. 14. The specific working principle is not described again. For details, refer to the description of the method embodiments.
本实施例的 AP设备, 通过在 STA发现 AP设备的过程中或 STA设备关联 AP设备的过程中将自己的短标识发送给 STA设备, 与 STA设备使用 AP设备 的短标识进行通信, 减小了通信过程中 MAC帧中的 MAC帧头, 增加了有效数 据在 MAC帧中的比重, 提高了 MAC帧的利用率, 进而提高了传输信道的利用 本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可读取 存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而前述的 存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  The AP device of the present embodiment transmits the short identifier of the AP device to the STA device in the process of the STA device being discovered by the STA or the STA device is associated with the AP device, and the STA device uses the short identifier of the AP device to communicate with the STA device. The MAC frame header in the MAC frame in the communication process increases the proportion of the valid data in the MAC frame, improves the utilization of the MAC frame, and further improves the utilization of the transmission channel. Those skilled in the art can understand that: implementing the above methods All or part of the steps of the example can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者 对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并不使相 应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than The present invention has been described in detail with reference to the foregoing embodiments, and those skilled in the art should understand that the technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be The equivalents are not included in the scope of the technical solutions of the embodiments of the present invention.

Claims

权利要求 Rights request
1、 一种通信方法, 其特征在于, 包括:  A communication method, comprising:
接收接入点 AP设备发送的短标识通知消息, 所述短标识通知消息包括所述 AP设备的短标识; 所述 AP设备的短标识的长度小于所述 AP设备的介质访问 控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区域内 唯一标识所述 AP设备; 生成通讯消息, 所述通讯消息的接收地址为所述 AP设备的短标识; 向所述 AP设备发送所述通讯消息。  Receiving a short identifier notification message sent by the access point AP device, where the short identifier notification message includes a short identifier of the AP device; the length of the short identifier of the AP device is smaller than a length of the medium access control MAC address of the AP device The short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located, and generate a communication message, where the receiving address of the communication message is a short identifier of the AP device, and the AP device is sent to the AP device. Send the communication message.
2、 根据权利要求 1所述的通信方法, 其特征在于, 所述接收接入点 AP设 备发送的短标识通知消息包括: 向所述 AP设备发送关联请求; 接收所述 AP设备发送的关联响应, 以与所述 AP设备进行关联; 其中, 所述关联响应为所述短标识通知消息。 The communication method according to claim 1, wherein the receiving the short identifier notification message sent by the access point AP device comprises: sending an association request to the AP device; receiving an association response sent by the AP device And the association with the AP device, where the association response is the short identifier notification message.
3、 根据权利要求 1所述的通信方法, 其特征在于, 所述接收接入点 AP设 备发送的短标识通知消息包括: 接收所述 AP设备广播发送的信标帧, 所述信标帧为所述短标识通知消息; 或者 The communication method according to claim 1, wherein the receiving the short identifier notification message sent by the access point AP device comprises: receiving a beacon frame broadcasted by the AP device, where the beacon frame is The short identification notification message; or
接收所述 AP设备发送的探测响应帧, 所述探测响应帧为所述短标识通知消 息。  Receiving a probe response frame sent by the AP device, where the probe response frame is the short identifier notification message.
4、 根据权利要求 1-3任一项所述的通信方法, 其特征在于, 所述 AP设备的短标识由所述 AP设备根据所述 AP设备的位置信息自动生 成; 或者 The communication method according to any one of claims 1-3, wherein the short identifier of the AP device is automatically generated by the AP device according to the location information of the AP device. Cheng; or
所述 AP设备的短标识由第一配置服务器根据所述 AP设备接入网络的类型 为所述 AP设备统一分配。  The short identifier of the AP device is uniformly allocated by the first configuration server to the AP device according to the type of the AP device accessing the network.
5、 根据权利要求 1-3任一项所述的通信方法, 其特征在于, 所述 AP设备 的短标识包括网络标识和网内标识;  The communication method according to any one of claims 1-3, wherein the short identifier of the AP device includes a network identifier and an intra-network identifier;
所述网络标识由第二配置服务器根据所述 AP设备接入网络的类型统一分 配, 所述网内标识由第三配置服务器统一生成并分配或由所述 AP设备根据所述 AP设备的位置信息自动生成。  The network identifier is uniformly allocated by the second configuration server according to the type of the AP device accessing the network, the intranet identifier is uniformly generated and allocated by the third configuration server, or the AP device is based on the location information of the AP device. Automatic generated.
6、 根据权利要求 1-3任一项所述的通信方法, 其特征在于, 所述 AP设备 的短标识的长度为 16比特。  The communication method according to any one of claims 1 to 3, wherein the short identifier of the AP device has a length of 16 bits.
7、 一种通信方法, 其特征在于, 包括: 接入点 AP设备发送短标识通知消息, 所述短标识通知消息包含所述 AP设 备的短标识, 所述 AP设备的短标识的长度小于所述 AP设备的介质访问控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区域内唯一 标识所述 AP设备;  A communication method, comprising: the access point AP device sends a short identifier notification message, the short identifier notification message includes a short identifier of the AP device, and the length of the short identifier of the AP device is smaller than The length of the media access control MAC address of the AP device, where the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
所述 AP设备接收包含所述 AP设备短标识的通讯消息;  Receiving, by the AP device, a communication message that includes the short identifier of the AP device;
所述 AP设备判断所述通讯消息中的接收地址与所述 AP设备的短标识是否 相同;  The AP device determines whether the receiving address in the communication message is the same as the short identifier of the AP device;
如果判断结果为相同, 所述 AP设备解析获得所述通讯消息中的有效数据。  If the judgment result is the same, the AP device parses the valid data in the communication message.
8、 根据权利要求 7所述的通信方法, 其特征在于, 所述接入点 AP设备发 送短标识通知消息包括: 所述 AP设备接收站点 STA设备发送的关联请求; The communication method according to claim 7, wherein the sending, by the access point AP, the short identifier notification message includes: Receiving, by the AP device, an association request sent by the STA device of the station;
所述 AP设备向所述 STA设备发送关联响应, 以关联所述 STA设备; 其中, 所述关联响应为所述短标识通知消息。  And the AP device sends an association response to the STA device to associate with the STA device, where the association response is the short identifier notification message.
9、 根据权利要求 7所述的通信方法, 其特征在于, 所述接入点 AP设备发 送短标识通知消息包括:  The communication method according to claim 7, wherein the sending, by the access point, the AP device, the short identifier notification message includes:
所述 AP设备向 STA设备广播发送信标帧, 所述信标帧为所述短标识通知 消息; 或者  Transmitting, by the AP device, a beacon frame to the STA device, where the beacon frame is the short identifier notification message; or
所述 AP设备向 STA设备发送探测响应帧, 所述探测响应帧为所述短标识 通知消息。  The AP device sends a probe response frame to the STA device, where the probe response frame is the short identifier notification message.
10、 根据权利要求 7-9任一项所述的通信方法, 其特征在于, 所述接入点 The communication method according to any one of claims 7 to 9, wherein the access point
AP设备发送短标识通知消息之前包括: Before the AP device sends the short identifier notification message, it includes:
为所述 AP设备配置在所述 AP设备所在区域内唯一标识所述 AP设备的短 标识。  And configuring, by the AP device, a short identifier that uniquely identifies the AP device in an area where the AP device is located.
11、 根据权利要求 10所述的通信方法, 其特征在于, 所述为所述 AP设备 配置在所述 AP设备所在区域内唯一标识所述 AP设备的短标识包括: 所述 AP设备向第一配置服务器发送短标识获取请求, 所述短标识获取请求 包括所述 AP设备接入网络的类型;  The communication method according to claim 10, wherein the configuring, by the AP device, the short identifier that uniquely identifies the AP device in the area where the AP device is located includes: the AP device is first The configuration server sends a short identifier acquisition request, where the short identifier acquisition request includes a type of the AP device accessing the network;
所述 AP设备接收所述第一配置服务器发送的短标识获取响应, 所述短标识 获取响应包括所述 AP设备的短标识, 所述 AP设备的短标识由所述第一配置服 务器根据所述 AP设备接入网络的类型从预先存储的短标识中为所述 AP设备统 一分配。 The AP device receives the short identifier acquisition response sent by the first configuration server, the short identifier acquisition response includes a short identifier of the AP device, and the short identifier of the AP device is used by the first configuration server according to the The type of the AP device accessing the network is uniformly allocated to the AP device from the pre-stored short identifier.
12、 根据权利要求 10所述的通信方法, 其特征在于, 所述 AP设备的短标 识包括网络标识和网内标识。 The communication method according to claim 10, wherein the short identifier of the AP device comprises a network identifier and an intra-network identifier.
13、 根据权利要求 11所述的通信方法, 其特征在于, 所述为所述 AP设备 配置在所述 AP设备所在区域内唯一标识所述 AP设备的短标识包括:  The communication method according to claim 11, wherein the short identifier that is configured to uniquely identify the AP device in the area where the AP device is located includes:
为所述 AP设备配置所述 AP设备的短标识中的所述网络标识和所述网内标 识。  And configuring the network identifier and the intranet identifier in the short identifier of the AP device for the AP device.
14、 根据权利要求 13所述的通信方法, 其特征在于, 所述为所述 AP设备 配置所述 AP设备的短标识中的所述网络标识包括: 所述 AP设备向第二配置服务器发送网络标识获取请求, 所述网络标识获取 请求包括所述 AP设备接入网络的类型; 所述 AP设备接收所述第二配置服务器发送的网络标识获取响应, 所述网络 标识获取响应包括所述 AP设备的短标识中的所述网络标识, 所述 AP设备的短 标识中的所述网络标识由所述第二配置服务器根据所述 AP设备接入网络的类 型从预先存储的网络标识中为所述 AP设备统一分配。  The communication method according to claim 13, wherein the configuring the network identifier in the short identifier of the AP device for the AP device comprises: sending, by the AP device, a network to a second configuration server And the network identifier acquisition request includes the network identifier acquisition response sent by the second configuration server, where the network identifier acquisition response includes the AP device The network identifier in the short identifier, the network identifier in the short identifier of the AP device is determined by the second configuration server according to the type of the AP device access network from the pre-stored network identifier. AP devices are uniformly allocated.
15、 根据权利要求 13所述的通信方法, 其特征在于, 所述为所述 AP设备 配置所述 AP设备的短标识中的所述网内标识包括:  The communication method according to claim 13, wherein the configuring the intra-network identifier in the short identifier of the AP device for the AP device comprises:
所述 AP设备向第三配置服务器发送网内标识获取请求; 所述 AP接收所述第三配置服务器发送的网内标识获取响应, 所述网内标识 获取响应包括所述 AP设备的短标识中的所述网内标识, 所述 AP设备的短标识 中的所述网内标识由所述第三配置服务器根据所述网内标识获取请求统一为所 述 AP设备生成并分配。 The AP device sends an intra-network identity acquisition request to the third configuration server; the AP receives the intra-network identity acquisition response sent by the third configuration server, and the intra-network identity acquisition response includes the short identifier of the AP device. The in-network identifier, the intra-network identifier in the short identifier of the AP device is generated and allocated by the third configuration server according to the intra-network identifier obtaining request for the AP device.
16、 根据权利要求 13所述的通信方法, 其特征在于, 所述为所述 AP设备 配置所述 AP设备的短标识中的所述网内标识包括: The communication method according to claim 13, wherein the configuring the intra-network identifier in the short identifier of the AP device for the AP device comprises:
所述 AP设备根据所述 AP设备的位置信息生成第一网内标识, 并向所述 AP设备所在网络中的其他 AP设备发送内部标识请求, 所述内部标识请求包括 所述第一网内标识;  The AP device generates an identifier of the first network according to the location information of the AP device, and sends an internal identifier request to the other AP device in the network where the AP device is located, where the internal identifier request includes the identifier in the first network. ;
如果所述 AP设备在预设时间结束后未接收到所述其他 AP设备发送的内部 标识响应, 所述 AP设备将所述第一网内标识作为所述 AP设备的短标识中的所 述网内标识; 其中, 所述其他 AP设备在所述其他 AP设备的短标识的网内标识 与所述第一网内标识相同时, 向所述 AP设备发送所述内部标识响应。  If the AP device does not receive the internal identifier response sent by the other AP device after the preset time is over, the AP device uses the first intra-network identifier as the network in the short identifier of the AP device. The internal identifier is sent to the AP device when the identifier of the short identifier of the other AP device is the same as the identifier of the first network.
17、 根据权利要求 7-9任一项所述的通信方法, 其特征在于, 所述 AP设备 的短标识的长度为 16比特。  The communication method according to any one of claims 7-9, wherein the short identifier of the AP device has a length of 16 bits.
18、 一种站点设备, 其特征在于, 包括:  18. A site device, comprising:
通知消息接收模块, 用于接收接入点 AP设备发送的短标识通知消息, 所述 短标识通知消息包括所述 AP设备的短标识; 所述 AP设备的短标识的长度小于 所述 AP设备的介质访问控制 MAC地址的长度, 所述 AP设备的短标识用于在 所述 AP设备所在区域内唯一标识所述 AP设备;  a notification message receiving module, configured to receive a short identifier notification message sent by the access point AP device, where the short identifier notification message includes a short identifier of the AP device, and the short identifier of the AP device is smaller than the AP device The length of the medium access control MAC address, the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located;
第一生成模块, 用于生成通讯消息, 所述通讯消息的接收地址为所述 AP设 备的短标识; 第一发送模块, 用于向所述 AP设备发送所述通讯消息。  The first generating module is configured to generate a communication message, where the receiving address of the communication message is a short identifier of the AP device, and the first sending module is configured to send the communication message to the AP device.
19、 根据权利要求 18所述的站点设备, 其特征在于, 所述短标识通知消息 为关联响应; 所述通知消息接收模块具体用于向所述 AP设备发送关联请求, 然后接收所 述 AP设备发送的关联响应, 以与所述 AP设备进行关联; 所述关联响应包括所 述 AP设备的短标识。 The site device according to claim 18, wherein the short identity notification message is an association response; The notification message receiving module is specifically configured to send an association request to the AP device, and then receive an association response sent by the AP device to associate with the AP device; the association response includes a short identifier of the AP device. .
20、 根据权利要求 18所述的站点设备, 其特征在于, 所述短标识通知消息 为信标帧; 所述通知消息接收模块具体用于接收所述 AP设备广播的信标帧; 或 者  The station device according to claim 18, wherein the short identifier notification message is a beacon frame; the notification message receiving module is specifically configured to receive a beacon frame broadcast by the AP device; or
所述短标识通知消息为探测响应帧; 所述通知消息接收模块具体用于接收 所述 AP设备发送的探测响应帧。  The short identifier notification message is a probe response frame. The notification message receiving module is specifically configured to receive a probe response frame sent by the AP device.
21、 根据权利要求 18-20任一项所述的站点设备, 其特征在于, 所述 AP设 备的短标识由所述 AP设备根据所述 AP设备的位置信息自动生成, 或者由第一 配置服务器根据所述 AP设备接入网络的类型为所述 AP设备统一分配。  The site device according to any one of claims 18 to 20, wherein the short identifier of the AP device is automatically generated by the AP device according to the location information of the AP device, or is configured by the first configuration server. The AP device is uniformly allocated according to the type of the AP device accessing the network.
22、 根据权利要求 18-20任一项所述的站点设备, 其特征在于, 所述 AP设 备的短标识包括网络标识和网内标识; 所述网络标识由第二配置服务器根据所 述 AP设备接入网络的类型统一分配, 所述网内标识由第三配置服务器统一生成 并分配或由所述 AP设备根据所述 AP设备的位置信息自动生成。  The site device according to any one of claims 18 to 20, wherein the short identifier of the AP device includes a network identifier and an intra-network identifier; and the network identifier is configured by the second configuration server according to the AP device. The type of the access network is uniformly allocated, and the identifier of the network is uniformly generated and allocated by the third configuration server or automatically generated by the AP device according to the location information of the AP device.
23、 根据权利要求 18-20任一项所述的站点设备, 其特征在于, 所述 AP设 备的短标识的长度为 16比特。 The site device according to any one of claims 18 to 20, wherein the short identifier of the AP device has a length of 16 bits.
24、 一种接入点 AP设备, 其特征在于, 包括: 通知消息发送模块, 用于发送短标识通知消息, 所述短标识通知消息包含 所述 AP设备的短标识, 所述 AP设备的短标识的长度小于所述 AP设备的介质 访问控制 MAC地址的长度, 所述 AP设备的短标识用于在所述 AP设备所在区 域内唯一标识所述 AP设备; 接收模块, 用于接收通讯消息; An access point AP device, comprising: a notification message sending module, configured to send a short identifier notification message, where the short identifier notification message includes a short identifier of the AP device, and the short of the AP device The length of the identifier is smaller than the length of the medium access control MAC address of the AP device, and the short identifier of the AP device is used to uniquely identify the AP device in the area where the AP device is located; a receiving module, configured to receive a communication message;
判断模块, 用于判断所述第一接收模块接收到的所述通讯消息中的接收地 址与所述 AP设备的短标识是否相同; 数据获取模块, 用于在所述判断模块的判断结果为相同时, 解析获得所述 通讯消息中的数据部分。  a determining module, configured to determine whether a receiving address in the communication message received by the first receiving module is the same as a short identifier of the AP device, and a data obtaining module, configured to determine a phase in the determining module At the same time, the data portion in the communication message is obtained by parsing.
25、 根据权利要求 24所述的 AP设备, 其特征在于, 所述短标识通知消息 为关联响应;  The AP device according to claim 24, wherein the short identifier notification message is an association response;
所述通知消息发送模块具体用于接收站点 STA设备发送的关联请求, 并向 所述 STA设备发送关联响应, 以关联所述 STA设备。  The notification message sending module is specifically configured to receive an association request sent by the STA device, and send an association response to the STA device to associate with the STA device.
26、 根据权利要求 24所述的 AP设备, 其特征在于, 所述短标识通知消息 为信标帧;  The AP device according to claim 24, wherein the short identifier notification message is a beacon frame;
所述通知消息发送模块具体用于向 STA设备广播信标帧; 或者 所述短标识通知消息为探测响应帧; 所述通知消息发送模块具体用于向 STA发送探测响应帧。  The notification message sending module is specifically configured to broadcast a beacon frame to the STA device; or the short identifier notification message is a probe response frame; and the notification message sending module is specifically configured to send a probe response frame to the STA.
27、 根据权利要求 24或 25或 26所述的 AP设备, 其特征在于, 还包括: 配置模块, 用于为所述 AP设备配置在所述 AP设备所在区域内唯一标识所 述 AP设备的短标识。  The AP device according to claim 24 or 25 or 26, further comprising: a configuration module, configured to configure, for the AP device, a short identifier of the AP device in an area where the AP device is located Logo.
28、 根据权利要求 27所述的 AP设备, 其特征在于, 所述配置模块包括: 获取请求发送子模块, 用于向第一配置服务器发送短标识获取请求, 所述 短标识获取请求包括所述 AP设备接入网络的类型;  The AP device according to claim 27, wherein the configuration module includes: an acquisition request sending submodule, configured to send a short identity acquisition request to the first configuration server, where the short identity acquisition request includes the Type of access to the network by the AP device;
获取响应接收子模块, 用于接收所述第一配置服务器发送的短标识获取响 应, 所述短标识获取响应包括所述 ΑΡ设备的短标识, 所述 ΑΡ设备的短标识由 所述第一配置服务器根据所述 ΑΡ设备接入网络的类型从预先存储的短标识中 为所述 ΑΡ设备统一分配。 Obtaining a response receiving submodule, configured to receive the short identifier obtained by the first configuration server The short identifier acquisition response includes a short identifier of the UI device, and the short identifier of the UI device is configured by the first configuration server from a pre-stored short identifier according to the type of the UI device access network. The device is uniformly distributed.
29、 根据权利要求 27所述的 ΑΡ设备, 其特征在于, 所述 ΑΡ设备的短标 识包括网络标识和网内标识; 所述配置模块包括: 第一配置子模块, 用于为所述 ΑΡ设备配置所述 ΑΡ设备的短标识中的所述 网络标识; 第二配置子模块, 用于为所述 ΑΡ设备配置所述 ΑΡ设备的短标识中的所述 网内标只。 The ΑΡ device according to claim 27, wherein the short identifier of the ΑΡ device includes a network identifier and an intra-network identifier; the configuration module includes: a first configuration sub-module, configured to be the ΑΡ device The network identifier in the short identifier of the device is configured; the second configuration submodule is configured to configure, in the short identifier of the device, the network identifier in the UI device.
30、 根据权利要求 29所述的 AP设备, 其特征在于, 所述第一配置子模块 包括:  The AP device according to claim 29, wherein the first configuration submodule comprises:
第一获取请求发送单元, 用于向第二配置服务器发送网络标识获取请求, 所述网络标识获取请求包括所述 AP设备接入网络的类型; 第一获取响应接收单元, 用于接收所述第二配置服务器发送的网络标识获 取响应, 所述网络标识获取响应包括所述 AP设备的短标识中的所述网络标识, 所述 AP设备的短标识中的所述网络标识由所述第二配置服务器根据所述 AP设 备接入网络的类型从预先存储的网络标识中为所述 AP设备统一分配。  a first acquisition request sending unit, configured to send a network identity acquisition request to the second configuration server, where the network identity acquisition request includes a type of the AP device accessing the network, and a first acquisition response receiving unit, configured to receive the first The network identifier acquisition response sent by the second configuration server, the network identifier acquisition response includes the network identifier in the short identifier of the AP device, and the network identifier in the short identifier of the AP device is configured by the second configuration The server uniformly allocates the AP device from the pre-stored network identifier according to the type of the AP device accessing the network.
31、 根据权利要求 29所述的 AP设备, 其特征在于, 所述第二配置子模块 包括:  The AP device according to claim 29, wherein the second configuration submodule comprises:
第二获取请求发送单元, 用于向第三配置服务器发送网内标识获取请求; 第二获取响应接收单元, 用于接收所述第三配置服务器发送的网内标识获 取响应, 所述网内标识获取响应包括所述 AP设备的短标识中的所述网内标识, 所述 AP设备的短标识中的所述网内标识由所述第三配置服务器根据所述网内 标识获取请求统一为所述 AP设备生成并分配。 a second obtaining request sending unit, configured to send an in-network identifier obtaining request to the third configuration server; a second acquisition response receiving unit, configured to receive an intra-network identifier acquisition response sent by the third configuration server, where the intra-network identifier acquisition response includes the intra-network identifier in the short identifier of the AP device, the AP The intra-network identifier in the short identifier of the device is generated and allocated by the third configuration server according to the intra-network identifier acquisition request for the AP device.
32、 根据权利要求 29所述的 AP设备, 其特征在于, 所述第二配置子模块 包括:  The AP device according to claim 29, wherein the second configuration submodule comprises:
标识生成单元, 用于根据所述 AP设备的位置信息生成第一网内标识; 标识请求发送单元, 用于向所述 AP设备所在网络中的其他 AP设备发送内 部标识请求, 所述内部标识请求包括所述第一网内标识;  An identifier generating unit, configured to generate an identifier in the first network according to location information of the AP device, and an identifier request sending unit, configured to send an internal identifier request to another AP device in the network where the AP device is located, where the internal identifier request Including the first intranet identifier;
标识响应接收单元, 用于在预设时间内接收所述其他 AP设备返回的内部标 识响应, 所述内部标识响应是所述其他 AP设备在所述其他 AP设备的短标识的 网内标识与所述第一网内标识相同时向所述 AP设备发送的; 标识确定单元, 用于在所述标识响应接收单元在所述预设时间结束后未接 收到所述内部标识响应时,将所述第一网内标识作为所述 AP设备的短标识中的 所述网内标识。  An identifier response receiving unit, configured to receive an internal identifier response returned by the other AP device within a preset time, where the internal identifier response is an identifier and location of the other AP device in the short identifier of the other AP device And the identifier determining unit is configured to: when the identifier response receiving unit does not receive the internal identifier response after the preset time ends, the identifier determining unit is configured to: The identifier in the first network is the identifier in the network in the short identifier of the AP device.
33、 根据权利要求 24或 25或 26所述的 AP设备, 其特征在于, 所述 AP 设备的短标识的长度为 16比特。  The AP device according to claim 24 or 25 or 26, wherein the short identifier of the AP device has a length of 16 bits.
PCT/CN2013/071364 2012-02-17 2013-02-05 Communication method, station device and access point device WO2013120422A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210037338.5A CN103260136B (en) 2012-02-17 2012-02-17 Communication method, site equipment and access point (AP) equipment
CN201210037338.5 2012-02-17

Publications (1)

Publication Number Publication Date
WO2013120422A1 true WO2013120422A1 (en) 2013-08-22

Family

ID=48963780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071364 WO2013120422A1 (en) 2012-02-17 2013-02-05 Communication method, station device and access point device

Country Status (2)

Country Link
CN (1) CN103260136B (en)
WO (1) WO2013120422A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105493563A (en) * 2013-08-30 2016-04-13 华为技术有限公司 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
CN107534999B (en) * 2015-08-26 2020-07-24 华为技术有限公司 Data transmission method, access point and station
CN106788910B (en) * 2015-11-20 2020-07-07 华为技术有限公司 Method and device for changing transmission opportunity holder
WO2017118297A1 (en) * 2016-01-06 2017-07-13 中兴通讯股份有限公司 Data transmission method, device and computer storage medium
CN111510999A (en) * 2017-08-25 2020-08-07 华为技术有限公司 Awakening method and device for WUR terminal in wireless network
CN109996243B (en) * 2017-12-29 2021-10-15 华为技术有限公司 Information processing method and communication device
CN111257394B (en) * 2018-12-31 2021-08-31 深圳硅基传感科技有限公司 Test platform for testing consistency of electrochemical parameters
CN113364893B (en) * 2020-03-06 2022-09-16 华为技术有限公司 Data transmission method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090146833A1 (en) * 2007-12-11 2009-06-11 Electronics And Telecommunications Research Institute Coordinator, gateway, and transmission method for IPv6 in wireless sensor network
CN101848459A (en) * 2010-03-30 2010-09-29 北京交通大学 Wireless transducer network address configuration method based on IEEE 802.15.4
CN102056263A (en) * 2011-01-31 2011-05-11 中控科技集团有限公司 routing method and device as well as sensor equipment based on wireless sensor tree network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090146833A1 (en) * 2007-12-11 2009-06-11 Electronics And Telecommunications Research Institute Coordinator, gateway, and transmission method for IPv6 in wireless sensor network
CN101848459A (en) * 2010-03-30 2010-09-29 北京交通大学 Wireless transducer network address configuration method based on IEEE 802.15.4
CN102056263A (en) * 2011-01-31 2011-05-11 中控科技集团有限公司 routing method and device as well as sensor equipment based on wireless sensor tree network

Also Published As

Publication number Publication date
CN103260136A (en) 2013-08-21
CN103260136B (en) 2017-04-12

Similar Documents

Publication Publication Date Title
WO2013120422A1 (en) Communication method, station device and access point device
CN110268753B (en) Accessing a communication system employing network slicing based on preconfigured access categories
WO2020087280A1 (en) Configurations for small data transmission
US7860067B2 (en) Method for dynamic address allocation using mobile IP in wireless portable Internet system
US20180115891A1 (en) Method and apparatus for connecting a terminal to network based on applicable network information in mobile communication system
US8363590B2 (en) Physical layer repeater with roaming support based on multiple identifiers
JP6141416B2 (en) System and method for domain name system querying
KR101500338B1 (en) METHOD AND SYSTEM FOR MANAGING CLOSED SUBSCRIBER GROUP OF A FEMTO BASE STATION IN WiMAX SYSTEM
CN112312418A (en) Method and device for acquiring user plane data and storage medium
US9749306B2 (en) Method, device and communications system for network convergence
JP2019515517A (en) Method and apparatus for establishing a radio resource control connection
KR100913474B1 (en) A method for discovery the network service provider and apparatus
US20110149897A1 (en) Bandwidth request method and bandwidth allocation method in broadband wireless access system
US20120002583A1 (en) Method and apparatus for generating group service flow in a mobile communication system
WO2013083059A1 (en) Access method and system, user equipment and network side device
WO2007003125A1 (en) A method for finding network service provider and the apparatus
WO2020084189A1 (en) Network slicing in radio interface
US20120002560A1 (en) Apparatus and method for selecting ap in consideration of network performance
EP2369791B1 (en) Apparatus and method for establishing connections with a plurality of virtual networks
WO2013123905A1 (en) Data frame transmission and reception method, station, and access point
WO2016201646A1 (en) Method, device and system for acquiring uplink data transmission resource
US20070155397A1 (en) Apparatus and method for measuring amount of user traffic in wireless communication system
US8315192B2 (en) Method and system for configuring a media access control header to reduce a header overhead
EP2477372A1 (en) Method, device and terminal for obtaining terminal identifier
CN114175827B (en) Communication method, communication device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13748964

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13748964

Country of ref document: EP

Kind code of ref document: A1