Direct Link Setup Method, Key Updating Method and Device

Information

  • Patent Application
  • 20150104019
  • Publication Number
    20150104019
  • Date Filed
    December 17, 2014
    9 years ago
  • Date Published
    April 16, 2015
    9 years ago
Abstract
A method includes transmitting, by a first station to an access point, a direct link setup request message destined for a second station, where the direct link setup request message is used to request setup of a direct link between the first station and the second station, receiving, by the first station from the access point, a direct link setup response message point, where the direct link setup response message includes a first key information, and where the first key information is used to perform a secure transmission for service data transmitted in the direct link between the first station and the second station, and transmitting, by the first station to the second station over the direct link, a first direct link setup confirm message, where the first direct link setup confirm message is used to indicate that the first station has received the first key information.
Description
TECHNICAL FIELD

The present invention relates to communications technologies, and in particular, to direct link setup.


BACKGROUND

A station (STA) communicates with an access point (AP) using power negotiated with the access point. A different rate exists when a STA at a different location in a coverage area of an AP directly communicates with the AP. When a STA that has a relatively long distance from the AP communicates with the AP, a relay device is forwards data to shorten communication time between the STA and the AP.


In an example, a STA generates a random number and carries the random number to a setup request to be sent to an AP, and the AP sends the random number to the relay using the setup request. After receiving the random number generated by the STA, the relay generates a random number, and calculates the random number generated by the STA and the random number generated by the relay to generate a key used to decrypt service data sent by the STA to the relay. The relay adds the random number generated by the Relay to a setup response to be sent to the AP, and the AP sends, using the setup response, the random number generated by the relay to the STA and calculates the random number generated by the STA and the random number generated by the relay, to generate a key used to encrypt the service data sent by the STA to the Relay, which may have a high signaling overhead.


SUMMARY

An embodiment method includes transmitting, by a first station to an access point, a direct link setup request message destined for a second station, where the direct link setup request message is used to request setup of a direct link between the first station and the second station and receiving, by the first station from the access point, a direct link setup response message point, where the direct link setup response message includes a first key information, and where the first key information is used to perform a secure transmission for service data transmitted in the direct link between the first station and the second station. The method also includes transmitting, by the first station to the second station over the direct link, a first direct link setup confirm message, where the first direct link setup confirm message is used to indicate that the first station has received the first key information.


An embodiment first station includes a transmitter configured to transmit a direct link setup request message to an access point destined for a second station, where the direct link setup request message is configured to request setup of a direct link between the first station and the second station and a receiver configured to receive a direct link setup response message from the access point, where the direct link setup response message includes a first key information, where the first key information is used to perform secure transmission for service data transmitted in the direct link between the first station and the second station, where the transmitter is further configured to transmit a first direct link setup confirm message to the second station over the direct link, and where the first direct link setup confirm message indicates that the first station has received the first key information.


An embodiment method includes receiving, by a first station from an access point, a direct link setup request message and generating a first key information in accordance with the direct link setup request message. The method also includes transmitting, by the first station to the access point, the first key information.


The foregoing has outlined rather broadly the features of an embodiment of the present invention in order that the detailed description of the invention that follows may be better understood. Additional features and advantages of embodiments of the invention will be described hereinafter, which form the subject of the claims of the invention. It should be appreciated by those skilled in the art that the conception and specific embodiments disclosed may be readily utilized as a basis for modifying or designing other structures or processes for carrying out the same purposes of the present invention. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims.





BRIEF DESCRIPTION OF THE DRAWINGS

For a more complete understanding of the present invention, and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawing, in which:



FIG. 1 is a flowchart of an embodiment of a direct link setup method;



FIG. 2 is a flowchart of another embodiment of a direct link setup method;



FIG. 3 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 4 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 5 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 6 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 7 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 8 is a flowchart of yet another embodiment of a direct link setup method;



FIG. 9 is a schematic structural diagram of an embodiment of a requested station;



FIG. 10 is a schematic structural diagram of an embodiment of a request station;



FIG. 11 is a schematic structural diagram of another embodiment of a requested station;



FIG. 12 is a schematic structural diagram of another embodiment of a requested station;



FIG. 13 is a schematic structural diagram of another embodiment of a request station; and



FIG. 14 is a schematic structural diagram of another embodiment of a request station according to the present invention.





DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

It should be understood at the outset that although an illustrative implementation of one or more embodiments are provided below, the disclosed systems and/or methods may be implemented using any number of techniques, whether currently known or in existence. The disclosure should in no way be limited to the illustrative implementations, drawings, and techniques illustrated below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.


Technologies described in this specification may be applied to various communications systems, for example, current second generation of mobile telecommunications technology (2G) and third generation of mobile telecommunications technology (3G) communications systems and a next-generation communications system, for example, a Global System for Mobile Communications (GSM), a Code Division Multiple Access (CDMA) system, a Time Division Multiple Access (TDMA) system, a Wideband Code Division Multiple Access (WCDMA) system, a Frequency Division Multiple Access (FDMA) system, an Orthogonal Frequency-Division Multiple Access (OFDMA), Orthogonal Frequency-Division Multiple Access) system, a single-carrier FDMA (SC-FDMA) system, a General Packet Radio Service (GPRS) system, a Long Term Evolution (LTE) system, and other communications systems.



FIG. 1 is a flowchart of an embodiment of a direct link setup method. As shown in FIG. 1, the link setup method provided in this embodiment is described by using an operation performed by a requested station side in a direct link setup process as an example. The method includes:


In step S101, the requested station receives a direct link setup request message sent by an access point, where the direct link setup request message is used to request setup of a direct link between a request station and the requested station.


In step S102, the requested station generates first key information, where the first key information is used to perform secure transmission for service data transmitted in a direct link between the request station and the requested station.


In step S103, the requested station transmits a direct link setup response message to the access point, so that the access point sends the direct link setup response message to the request station, where the direct link setup response message carries the first key information.


In step S104, the requested station receives a first direct link setup confirm message that is sent by the request station using the direct link, where the first direct link setup confirm message is used to indicate that the request station has received the first key information generated by the requested station.


The request station may be a wireless request station or a wired request station, for example, it may be a station (STA), such as a sensor, an electricity meter, in various networks such as a wireless fidelity (WiFi) network or a cellular network. The requested station has a capability of generating the first key information, and may be a wireless requested station or a wired requested station, such as a sensor, an electricity meter, and another station. In addition, the request station and the requested station are located in a same network, for example, located in a WiFi network served by a same access point. The access point may be a network element, such as an access point (AP) in a wireless local area network (WLAN), an access point in a WiFi network, a base station (BS), base transceiver station (BTS) in a GSM network, a GPRS network, a CDMA network, or a cellular network, a base station (NodeB) in a CDMA2000 network or a WCDMA network, an evolved base station (eNodeB or eNB) in an LTE network, or an access service network base station (ASN BS) in a WiMAX network, or it may be a network element, such as a controller or an authenticator behind the above access points and base stations.


This application is applicable to multiple implementation scenarios, such as an implementation scenario in which an electricity meter, as a request station in a WiFi network, reports an electricity meter reading to an access point, and an implementation scenario in which a humidity and temperature sensor, as a request station, reports measured humidity and temperature to an access point. In this embodiment, when there is a relatively long distance between the request station and the access point, the request station may use a requested station to forward service data to be reported to the access point, to shorten communication time between the request station and the access point. A direct link is set up between the request station and the requested station to transmit the service data.


In a setup process of the direct link between the request station and the requested station, the access point forwards the direct link setup request message and the direct link setup response message.


In this embodiment, after receiving the direct link setup request message forwarded by the access point, the requested station may locally generate the first key information used to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station. The secure transmission may include performing an operation such as encryption/decryption and/or integrity verification on the transmitted data. The requested station may carry the first key information to the direct link setup response message and transmit the direct link setup response message to the access point, so that the access point sends, to the request station, the direct link setup response message that carries the first key information. Therefore, the request station transmits the service data in the direct link (that is, an air interface) between the request station and the requested station. For example, when the service data is an electricity meter reading or detection data of a sensor, in a life cycle of a first key, the request station may use the first key information to encrypt the service data. After receiving the service data sent by the request station, the requested station may use the first key information to decrypt the received service data.


The first key information may include the first key, or it may include the first key and life cycle information of the first key. In a scenario in which the first key information includes the first key and the life cycle information of the first key, after generating the first key, the requested station may further determine a life cycle of the first key, and carry the life cycle information of the first key to the first key information and send the first key information to the access point.


Also, after sending, to the access point, the direct link setup response message which carries the first key information, the requested station may receive the first direct link setup confirm message (confirm message) which is sent by the request station using the direct link, where the first direct link setup confirm message is used to indicate that the request station has received the first key information generated by the requested station, and the first confirm message may carry message integrity code (MIC) used for integrity verification.


The requested station can directly receive, from the direct link, the first direct link setup confirm message sent by the request station, instead of requiring the access point to forward the first direct link setup confirm message, thereby reducing times of directly sending a message to the access point by the request station, and effectively reducing energy consumption of the request station.


The requested station may directly receive, from the direct link, the first direct link setup confirm message sent by the request station. The requested station may perform, according to the MIC carried in the first direct link setup confirm message, integrity verification for the first direct link setup confirm message received by the requested station. When the verification succeeds, the requested station may send an acknowledgment message (ACK) to the request station by using the direct link, where the acknowledgment message is used to indicate that the integrity verification succeeds, that is, the request station has correctly received the first key information.


Because the first key has a limited life cycle, after the life cycle ends, the first key is invalid and cannot be used to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station. Accordingly, before the life cycle of the first key ends, when a timer of the requested station overflows, when the request station requests an update of the first key information, or in another implementation scenario, the requested station may generate second key information and send the second key information to the access point, so that the access point forwards the second key information to the request station. Therefore, after the life cycle of the first key ends, the request station may replace the first key information with the second key information to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


The second key information may include a second key, or may include a second key and life cycle information of the second key. In an embodiment in which the second key information includes the second key and the life cycle information of the second key, after generating the second key, the requested station may further determine a life cycle of the second key, and carry the life cycle information of the second key to the second key information and send the second key information to the access point.


The requested station may send the second key information to the access point by carrying the second key information to existing messages that are of various formats and are configured to interact with the access point. For example, it may carry the second key information to a message in a direct link setup response format and then send the message to the access point.


The requested station may generate the second key information and send the second key information to the request station before the life cycle of the first key ends, and therefore, it is avoided that a direct link between the request station and the requested station is re-set up because the first key expires, thereby increasing a transmission throughput.


Similar to transmitting the first key information to the request station, after sending the second key information to the access point, the requested station may receive a second direct link setup confirm message (confirm message) which is sent by the request station over the direct link, where the second direct link setup confirm message is used to indicate that the request station has received the second key information generated by the requested station, and the second direct link setup confirm message may also carry MIC used for integrity verification.


The requested station may receive the second direct link setup confirm message which is sent by the request station by using the direct link, and may perform integrity verification according to the MIC carried in the second direct link setup confirm message. When the verification succeeds, the requested station may send an ACK to the request station using the direct link.


It should be noted that, the direct link setup request message, the direct link setup response message, the first direct link setup confirm message (Confirm message), and the second direct link setup confirm message (Confirm message) that are involved in this embodiment of the present invention not only carry the information involved in this embodiment of the present invention, but also retain existing information of various types.


In the foregoing messages, such as address information of the request station, address information of the requested station, and a rate collection and a capacities parameter which are supported by the request station or the requested station. For the existing information carried in the foregoing messages, reference may be made to a related description in an existing protocol, such as the 802.11 made by the Institute of Electrical and Electronics Engineers (IEEE).


According to the link setup method provided in this embodiment of the present invention, after receiving a direct link setup request message forwarded by an access point, a requested station adds, to a direct link setup response message to be returned to the access point, key information generated by the requested station, so that after the access point returns the direct link setup response message to a request station, and the request station may perform, according to the key, secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station.



FIG. 2 is a flowchart of another embodiment of a direct link setup method. As shown in FIG. 2, in this embodiment, the link setup method provided is described by using an operation performed by an access point side in a direct link setup process as an example. The method includes the following steps.


In step S201, an access point receives a direct link setup request message sent by a request station, where the direct link setup request message is used to request setup of a direct link between the request station and a requested station.


In step S202, the access point sends the direct link setup request message to the requested station.


In step S203, the access point receives a direct link setup response message sent by the requested station, where the direct link setup response message carries first key information, and the first key information is used to perform secure transmission for service data transmitted in the direct link between the request station and the requested station.


In step S204, the access point sends the direct link setup response message to the request station.


After receiving the direct link setup request message sent by the request station, the access point may forward the direct link setup request message to the requested station.


After receiving the direct link setup request message forwarded by the access point, the requested station may locally generate the first key information used to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station. The requested station may carry the first key information to the direct link setup response message and send the direct link setup response message to the access point. After receiving the direct link setup response message that carries the first key information, the access point may forward the direct link setup response message to the request station.


Before a life cycle of a first key ends, the requested station may generate second key information and send the second key information to the access point. The access point may forward the second key information to the request station, so that after the life cycle of the first key ends, the request station may replace the first key information with the second key information to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


It should be noted that, the direct link setup request message and the direct link setup response message may be encapsulated in a data frame format and forwarded by the access point. In this embodiment, the access point may not parse the foregoing messages, but only executes a message forwarding operation. This scenario is a tunneled direct link setup process.


As another embodiment, the direct link setup request message and the direct link setup response message may also be forwarded by the access point in a management frame format. In this embodiment, the access point may parse the foregoing messages, so as to manage that the request station communicates with which relay. This embodiment is a non-tunneled direct link setup process.


According to the link setup method provided in this embodiment, after an access point forwards, to a requested station, a direct link setup request message sent by a request station, the access point receives a direct link setup response message which is returned by the requested station and carries key information generated by the requested station. After the access point returns the direct link setup response message to the request station, the request station may encrypt/decrypt, according to the key information, service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station.



FIG. 3 is a flowchart of another embodiment of a direct link setup method. As shown in FIG. 3, in this embodiment, the direct link setup method is described by using an operation performed by a request station side in a direct link setup process as an example. The method includes the following steps.


In step S301, a request station sends a direct link setup request message to an access point, so that the access point sends the direct link setup request message to a requested station, where the direct link setup request message is used to request setup of a direct link between the request station and the requested station.


In step S302, the request station receives a direct link setup response message sent by the access point, where the direct link setup response message carries first key information, and the first key information is used to perform secure transmission for service data transmitted in the direct link between the request station and the requested station.


In step S303, the request station sends a first direct link setup confirm message to the requested station by using the direct link, where the first direct link setup confirm message is used to indicate that the request station has received the first key information generated by the requested station.


In an embodiment in which the requested station is required to forward service data when there is a relatively long distance between the request station and the access point, the request station may initiate the setup of the direct link to the requested station. However, in the setup process of the direct link between the request station and the requested station, the access point is required to forward the direct link setup request message and the direct link setup response message.


After receiving the direct link setup request message forwarded by the access point, the requested station may locally generate the first key information used to encrypt/decrypt the service data transmitted in the direct link between the request station and the requested station. In addition, the first key information is carried to the direct link setup response message, and the direct link setup response message is sent to the access point. The request station may receive the direct link setup response message that carries the first key information and is forwarded by the access point.


The first key information may include a first key, or it may include a first key and life cycle information of the first key.


After the direct link between the request station and the requested station is set up, the request station may use the first key information to encrypt the service data, such as an electricity meter reading and detection data of a sensor.


It should be noted that after receiving the direct link setup response message sent by the access point, the request station may return the first direct link setup confirm message to the requested station by using the direct link, so as to indicate that the first key information generated by the requested station has been received.


Further, before a life cycle of the first key ends, the request station may further receive second key information forwarded by the access point, where the second key information is generated by the requested station before the life cycle of the first key ends. Therefore, after the life cycle of the first key ends, the request station may use the second key information to encrypt the service data transmitted in the direct link between the request station and the requested station.


The second key information may include a second key, or it may include a second key and life cycle information of the second key.


Similarly, after receiving the second key information sent by the access point, the request station may send a second direct link setup confirm message to the requested station using the direct link, where the second direct link setup confirm message is used to indicate that the second key information generated by the requested station has been received.


According to the link setup method provided in this embodiment, after sending a direct link setup request message to an access point, a request station may receive a direct link setup response message that is returned by the access point and carries key information generated by a requested station, and the request station may perform, according to the key, secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station.



FIG. 4 is a flowchart of yet another embodiment of a key updating method. As shown in FIG. 4, the method includes the following steps.


In step S401, a requested station generates second key information, where the second key information is used to replace first key information generated by the requested station, so as to perform secure transmission for service data transmitted in a direct link between a request station and the requested station.


In step S402, the requested station sends the second key information to an access point, so that the access point sends the second key information to the request station.


The first key information may be any key information generated by the requested station, for example, it may be key information generated in a setup process of the direct link between the requested station and the request station, or it may be key information generated in a process of service transmission in the direct link between the requested station and the request station.


Because the first key has a life cycle, after the life cycle ends, the first key is invalid and cannot be used to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station. Accordingly, before the life cycle of the first key ends, when a timer of the requested station overflows, when the request station requests an update of the first key, or in another implementation scenario, the requested station may generate second key information and send the second key information to the access point, so that the access point forwards the second key information to the request station. Therefore, after the life cycle of the first key ends, the request station may replace the first key information with the second key information to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


The second key information may include a second key, or it may include a second key and a life cycle of the second key. When the second key information includes the second key and the life cycle of the second key, after generating the second key, the requested station may further determine the life cycle of the second key, and carry life cycle information of the second key to the second key information and send the second key information to the access point.


The requested station may send the second key information to the access point by carrying the second key information to existing messages that are of various formats and are interacted with the access point, for example, may carry the second key information to a message in a direct link setup response format and then send the message to the access point.


The requested station may generate the second key information and send the second key information to the request station before the life cycle of the first key ends, and therefore, it is avoided that a direct link between the request station and the requested station is re-set up because the first key expires, thereby increasing a transmission throughput.


After sending the second key information to the access point, the requested station may receive a second direct link setup confirm message (Confirm message) that is sent by the request station by using the direct link, where the second direct link setup confirm message is used to indicate that the request station has received the second key information generated by the requested station, and the second direct link setup confirm message may also carry MIC used for integrity verification.


The requested station may receive the second direct link setup confirm message that is sent by the request station by using the direct link, and may perform integrity verification according to the MIC carried in the second direct link setup confirm message. When the verification succeeds, the requested station may send an ACK to the request station by using the direct link.


According to the key updating method provided in this embodiment, after generating second key information used to replace first key information, a requested station can return the second key information to a request station by using an access point, so that the request station replaces the first key information with the second key information to perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a key updating process.



FIG. 5 is a flowchart of yet another embodiment of a key updating method. As shown in FIG. 5, the method includes the following steps.


In step S501, an access point receives second key information sent by a requested station, where the second key information is generated by the requested station, and is used to replace first key information generated by the requested station, so as to perform secure transmission for service data transmitted in a direct link between a request station and the requested station.


In step S502, the access point sends the second key information to the request station.


Before a life cycle of a first key ends, the requested station generates the second key information and sends the second key information to the access point. The access point may forward the second key information to the request station, so that after the life cycle of the first key ends, the request station may replace the first key information with the second key information to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


According to the key updating method provided in this embodiment, after receiving second key information that is generated by a requested station and used to replace a first key information, an access point may forward the second key information to a request station, so that the request station replaces the first key information with the second key information to perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a key updating process.



FIG. 6 is a flowchart of yet another embodiment of a key updating method. As shown in FIG. 6, the method includes the following steps.


In step S601, a request station receives second key information sent by an access point, where the second key information is generated by a requested station, and is used to replace first key information generated by the requested station, so as to perform secure transmission for service data transmitted in a direct link between the request station and the requested station.


In step S602, the request station replaces the first key information with the second key information, so as to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


Before a life cycle of a first key ends, the request station may further receive the second key information forwarded by the access point, where the second key information is generated by the requested station before the life cycle of the first key ends. Therefore, after the life cycle of the first key ends, the request station may use the second key information to encrypt the service data transmitted in the direct link between the request station and the requested station.


The second key information is used to replace the first key information generated by the requested station, so as to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station. The second key information may include life cycle information of a second key.


After receiving the second key information sent by the access point, the request station may send a second direct link setup confirm message to the requested station by using the direct link, where the second direct link setup confirm message is used to indicate that the second key information generated by the requested station has been received.


According to the key updating method provided in this embodiment, a request station may receive second key information that is forwarded by an access point, generated by a requested station, and used to replace first key information, and then replace the first key information with the second key information to perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a key updating process.



FIG. 7 is a flowchart of another embodiment of a link setup method. As shown in FIG. 7, this embodiment provides an interaction process of a request station (STA1), an access point (AP), and a requested station (STA2) in a link setup process.


It should be noted that the STA1 has determined that it is necessary to transmit service data to the AP by using the STA2, and the STA1 has selected the STA2 (that is, address information of the STA2 is obtained). Before a direct link between the STA1 and the STA2 is set up, the STA1 and the STA2 separately associate with a same AP, and establish corresponding robust security network associations (RSNA). That is, a secure bidirectional link is set up both between the STA1 and the AP and between the AP and the STA2.


The method includes the following steps.


In step S701, the STA1 sends a direct link setup request message to the AP, where the direct link setup request message is used to request setup of a direct link between the request station and the requested station.


The direct link setup request message (Setup Request) sent by the STA1 to the AP includes: address information of the STA1, address information of the STA2, and a rate collection, a capacities parameter, and the like that are supported by the STA1. The direct link setup request message is encrypted by using a PTK generated when the STA1 is associated with the AP. A process in which a key 1 (PTK1) is generated when the STA1 is associated with the AP is the prior art, which is not described herein again.


An association identifier (AID) may be used as the address information of the STA1 and the address information of the STA2 that are carried in the direct link setup request message. The AID may be an association identifier allocated by the AP to the STA1 when the STA1 is associated with the AP. Generally a length of the association identifier is 16 bits. Compared with a media access control (MAC) address of 48 bits, using an association identifier of a shorter length when transmission is performed by the STA2 can reduce transmission burden and shorten a header of a data frame after link setup, thereby increasing a throughput of an effective load.


It should be noted that in the setup process of the direct link between the STA1 and the STA2, an AID may be used as the address information of the STA1 and the STA2 separately. After the direct link between the STA1 and the STA2 is set up, a short MAC frame header format of two addresses that is shown in the following Table 1 may be used when the STA1 needs to send service data to the STA2.














TABLE 1









Octets: 2
2
2
2



Frame
AID
AID
Sequence



Control
(A1 for STA1)
(A2 for STA2)
Control










In Table 1, Frame Control represents a frame control word and occupies two bytes; A1 for STA1 is an AID of the STA1 and occupies two bytes; A2 for STA2 is an AID of the STA2 and occupies two bytes; and Sequence Control carries a serial number of a data unit and a serial number of a data unit segment and occupies two bytes.


In step S702, the AP sends the direct link setup request message to the STA2.


The AP may select, according to a service requirement, whether it is required to parse the direct link setup request message. For example, to manage each STA1 in a range of the AP to ensure service transmission quality, the AP may parse the setup request message, so as to learn which STA2 is used by the STA1 to forward service data.


The direct link setup request message forwarded by the AP to the STA2 is encrypted by using a key 2 (PTK2) generated when the STA2 is associated with the AP.


In step S703, the STA2 generates first key information, where the first key information is used to perform secure transmission for service data transmitted in the direct link between the STA1 and the STA2.


The STA2 may generate a unique random number that is not the same as another key and use the random number as a first key, or it may generate a first key in another key generating manner, which is not limited herein.


The STA2 may further determine a life cycle of a first key.


In step S704, the STA2 sends a direct link setup response message to the AP, where the direct link setup response message carries the first key information.


The first key information includes a first key, or it may include a first key and life cycle information of the first key.


Similar to the direct link setup request message, a TDLS setup response message sent by the STA2 to the AP includes: the address information of the STA1, the address information of the STA2, and a rate collection, a capacities parameter, and the like that are supported by the STA2. An AID may also be used as the address information of the STA1 and the address information of the STA2. In addition, the direct link setup response message further carries the first key information generated by the STA2.


The direct link setup response message sent by the STA2 to the AP is also encrypted by using the PTK generated when the STA2 is associated with the AP.


After sending the direct link setup response message to the AP, the STA2 may be in an active state all the time until a first confirm message in S707 is received or a timer of the STA2 overflows.


In step S705, the AP sends the direct link setup response message to the request station.


The direct link setup response message forwarded by the AP to the STA1 is encrypted by using the PTK1 generated when the STA1 is associated with the AP.


In step S706, the STA1 uses the first key information to encrypt a first direct link setup confirm message to generate first message integrity code MIC.


In step S707, the STA1 sends the first direct link setup confirm message to the STA2 by using the direct link, where the first direct link setup confirm message carries the first MIC.


The first direct link setup confirm message may include: the address information of the STA1, the address information of the STA2, the first MIC, and the like.


An AID may be used as the address information of the STA1 and the address information of the STA2.


In step S708, the STA2 performs, according to the first MIC, integrity verification for a first key received by the request station. If the verification succeeds, step S709 is performed; otherwise, the process ends.


In step S709, the STA2 sends a first acknowledgment message to the STA1 by using the direct link, where the first acknowledgment message is used to indicate that the integrity verification performed for the first key information received by the STA1 succeeds.


A process of generating the first MIC according to the first key information by the STA1 and a process of performing, by the STA2 according to the first MIC, the integrity verification for the first key information received by the STA1 are performed. When the integrity verification performed by the STA2 fails, the STA2 does not send a first acknowledgment message to the STA1, and setup of the direct link between the STA1 and the STA2 fails.


After setup of the direct link between the STA1 and the STA2 is complete, the STA1 may use the first key information to encrypt service data sent in the direct link to the STA2, and then the STA2 transmits the service data to the AP. The service data forwarded by the STA2 to the AP may be encrypted by the key 2 (PTK2) generated when the STA2 is associated with the AP.


In a process of sending the service data by the STA1 to the AP, the STA1 may also select whether to forward the service data by using the STA2. The STA1 may carry a 1-bit indicator bit to a signal unit, a signal A unit, or a signal B unit (Signal or Signal A or Signal B, SIGA) in a frame header of a physical layer PHY layer) of the service layer, and indicate, by using the indicator bit, whether the STA2 forwards a packet. For example, the STA1 may set the indicator bit to 1, so as to indicate that the STA2 forwards the packet; and when the indicator bit is set to 0, it indicates that the STA2 does not forward the packet, and if the STA2 receives a packet sent by the STA1, the STA2 may perform discarding processing. It should be noted that because a cyclic redundancy check (CRC) on a physical layer in the 11ah specifications only has four bits, and an indicator bit in a physical header is vulnerable to interference, the STA2 may further analyze address information in a MAC header of a data frame to determine whether to forward the data frame to the AP.


According to the link setup method provided in this embodiment, after a request station sends a direct link setup request message to an access point, the access point may send the setup request message to a requested station; and after receiving the direct link setup request message forwarded by the access point, the requested station adds, to a direct link setup response message to be returned to the access point, key information generated by the requested station, so that after the access point returns the setup response message to the request station, the request station can perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station. The requested station can directly receive, from the direct link, a direct link setup confirm message sent by the request station, instead of requiring the access point to forward the confirm message, thereby reducing times of directly sending a message to the access point by the request station, and effectively reducing energy consumption of the request station.



FIG. 8 is a flowchart of another embodiment of a key updating method. As shown in FIG. 8, the method includes the following steps.


In step S801, a STA2 generates second key information, where the second key information is used to replace first key information to perform secure transmission for service data transmitted in a direct link between a STA1 and the STA2.


The STA2 may further determine a life cycle of a second key.


Similar to generating of a first key, the STA2 may generate a unique random number that is not the same as another key (including the first key) and use the random number as a second key, or may generate a second key in another key generating manner, which is not limited herein.


In step S802, the STA2 sends the second key information to an AP.


The second key information includes the second key, or may include the second key and life cycle information of the second key.


The second key information sent by the STA2 to the AP may use various existing message formats. A message format of a direct link setup response message (Setup Response) may be used. The new message may include: address information of the STA1, address information of the STA2, a rate collection and a capacities (Capacities) parameter that are supported by the STA2, and the second key information. The message may be transmitted by using an RSNA between the STA2 and the AP, and may be encrypted by using a key 2 (PTK2) generated when the STA2 is associated with the AP.


An AID may be used as the address information of the STA1 and the address information of the STA2.


In step S803, the AP sends the second key information to the STA1.


Similar to step S802, the AP may select, according to a service requirement, whether it is required to parse a message that carries the second key and the life cycle information of the second key. The AP may use a key 1 (PTK1) generated when the STA1 is associated with the AP, to encrypt a message that carries the second key information.


In step S804, the STA1 uses the second key information to encrypt a second direct link setup confirm message to generate a second MIC.


In step S805, the STA1 sends the second direct link setup confirm message to the STA2 by using the direct link, where the second direct link setup confirm message carries the second MIC.


In step S806, the STA2 performs integrity verification for a third acknowledgment message according to the second MIC. If the verification succeeds, step S807 is performed; otherwise, the process ends.


In step S807, the STA2 sends a second acknowledgment message to the STA1, where the second acknowledgment message is used to indicate that the integrity verification performed for the second key received by the STA1 succeeds.


According to the key updating method provided in this embodiment, a requested station may generate a new key and send the new key to a request station before a life cycle of a key ends, and therefore, it is avoided that a direct link between the request station and the requested station is re-set up because the key expires, thereby increasing a transmission throughput.



FIG. 9 is a schematic structural diagram of an embodiment of a requested station. As shown in FIG. 9, the requested station includes a receiver 11, a processor 12, and a transmitter 13.


The receiver 11 is configured to receive a direct link setup request message sent by an access point, where the direct link setup request message is used to request setup of a direct link between a request station and the requested station.


The processor 12 is configured to generate first key information, where the first key information is used to perform secure transmission for service data transmitted in the direct link between the request station and the requested station.


The transmitter 13 is configured to send a direct link setup response message to the access point, so that the access point sends the direct link setup response message to the request station, where the direct link setup response message carries the first key information.


The receiver 11 may further be configured to receive a first direct link setup confirm message that is sent by the request station by using the direct link, where the first direct link setup confirm message is used to indicate that the request station has received the first key information generated by the requested station.


The first key information sent by the transmitter 13 includes a first key, or it includes a first key and a life cycle of the first key; and when the first key information includes the first key and the life cycle of the first key, the processor 12 may further be configured to determine the life cycle of the first key.


The processor 12 may further be configured to generate second key information, where the second key information is used to replace the first key information and perform secure transmission for service data transmitted in the direct link between the request station and the requested station.


Correspondingly, the transmitter 13 may further be configured to send the second key information to the access point, so that the access point sends the second key information to the requested station.


The second key information sent by the transmitter 13 includes a second key, or a second key and a life cycle of the second key; and when the second key information includes the second key and the life cycle of the second key, the processor 12 may further be configured to determine the life cycle of the second key.


The receiver 11 may further be configured to receive a second direct link setup confirm message that is sent by the request station by using the direct link, where the second direct link setup confirm message is used to indicate that the request station has received the second key information generated by the requested station.


The requested station provided in this embodiment is an execution device of the direct link setup methods provided in the embodiments.


After receiving a direct link setup request message forwarded by an access point, a requested station in this embodiment adds, to a direct link setup response message to be returned to the access point, key information generated by the requested station, so that after the access point returns the direct link setup response message to a request station, the request station can perform, according to the key, secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station.



FIG. 10 is a schematic structural diagram of an embodiment of a request station. As shown in FIG. 10, the request station includes a transmitter 21 and a receiver 22.


The transmitter 21 is configured to send a direct link setup request message to an access point, so that the access point sends the direct link setup request message to a requested station, where the direct link setup request message is used to request setup of a direct link between the request station and the requested station.


The receiver 22 is configured to receive a direct link setup response message sent by the access point, where the direct link setup response message carries first key information, and the first key information is used to perform secure transmission for service data transmitted in the direct link between the request station and the requested station.


The transmitter 21 is further configured to send a first direct link setup confirm message to the requested station by using the direct link, where the first direct link setup confirm message is used to indicate that the request station has received the first key information generated by the requested station.


The first key information received by the receiver 22 may include a first key, or include a first key and life cycle information of the first key.


The receiver 22 may further be configured to receive second key information sent by the access point, where the second key information is generated by the requested station, and the second key information is used to replace the first key information to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


The second key information received by the receiver 22 may include a second key, or include a second key and life cycle information of the second key.


The transmitter 21 may further be configured to send a second direct link setup confirm message to the requested station by using the direct link, where the second direct link setup confirm message is used to indicate that the request station has received the second key information generated by the requested station.


The request station provided in this embodiment is an execution device of the direct link setup methods provided in the embodiments.


After sending a direct link setup request message to an access point, a request station provided in this embodiment may receive a direct link setup response message that is returned by the access point and carries key information generated by a requested station; and the request station can perform, according to the key, secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a setup process of the link between the request station and the requested station.



FIG. 11 is a schematic structural diagram of another embodiment of a requested station. As shown in FIG. 11, the requested station may include a processor 31 and a transmitter 32.


The processor 31 is configured to generate second key information, where the second key information is used to replace first key information generated by the requested station, so as to perform secure transmission for service data transmitted in a direct link between a request station and the requested station.


The transmitter 32 is configured to send the second key information to an access point, so that the access point sends the second key information to the request station.


The second key information sent by the transmitter 32 may include a second key, or a second key and a life cycle of the second key; and when the second key information includes the second key and the life cycle of the second key, the processor 31 may further be configured to determine the life cycle of the second key.



FIG. 12 is a schematic structural diagram of another embodiment of a requested station. As shown in FIG. 12, the requested station may further include a receiver 33, configured to receive a direct link setup confirm message sent by a request station by using a direct link, where the direct link setup confirm message is used to indicate that the request station has received the key information generated by the requested station.


The requested station provided in this embodiment is an execution device of the key updating methods provided in the embodiments. For specific processes of executing the key updating methods by the requested station, reference may be made to related descriptions in the method embodiments shown in FIG. 4 and FIG. 8, which are not described herein again.


After generating second key information used to replace first key information, a requested station provided in this embodiment can return the second key information to a request station by using an access point, so that the request station replaces the first key information with the second key information to perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a key updating process.



FIG. 13 is a schematic structural diagram of another embodiment of a request station. As shown in FIG. 13, the request station includes a receiver 41 and a processor 42.


The receiver 41 is configured to receive second key information sent by an access point, where the second key information is generated by a requested station, and is used to replace first key information generated by the requested station, so as to perform secure transmission for service data transmitted in a direct link between the request station and the requested station.


The processor 42 is configured to replace the first key information with the second key information, so as to perform secure transmission for the service data transmitted in the direct link between the request station and the requested station.


The second key information received by the receiver 41 may include a second key, or include a first key information and life cycle information of the second key.



FIG. 14 is a schematic structural diagram of another embodiment of a request station. As shown in FIG. 14, the request station may further include a transmitter 43, configured to send a direct link setup confirm message to a requested station by using a direct link, where the direct link setup confirm message is used to indicate that the request station has received the key information generated by the requested station.


The request station provided in this embodiment is an execution device of the key updating methods provided in the embodiments.


The request station provided in this embodiment may receive second key information that is forwarded by an access point, generated by a requested station, and used to replace a first key information, and then replace the first key information with the second key information to perform secure transmission for service data transmitted in a direct link between the request station and the requested station, so as to save a signaling overhead in a key updating process.


It may be clearly understood by persons skilled in the art that, for the purpose of convenient and brief description, division of the foregoing function modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different function modules to implement all or part of the functions described above. For a detailed working process of the foregoing system, apparatus, and unit, reference may be made to a corresponding process in the foregoing method embodiments, and details are not described herein again.


In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the module or unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.


The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. A part or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.


In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.


When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present application essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or a part of the steps of the methods in the embodiments of the present application. The foregoing storage medium includes: any medium that can store program code, such as a universal serial bus (USB) flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.


The foregoing embodiments are merely intended for describing the technical solutions of the present application, but not for limiting the present application. Although the present application is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof, as long as such modifications or replacements do not cause the essence of corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present application.

Claims
  • 1. A method comprising: transmitting, by a first station to an access point, a direct link setup request message destined for a second station, wherein the direct link setup request message is used to request setup of a direct link between the first station and the second station;receiving, by the first station from the access point, a direct link setup response message point, wherein the direct link setup response message comprises a first key information, and wherein the first key information is used to perform a secure transmission for service data transmitted in the direct link between the first station and the second station; andtransmitting, by the first station to the second station over the direct link, a first direct link setup confirm message, wherein the first direct link setup confirm message is used to indicate that the first station has received the first key information.
  • 2. The method of claim 1, wherein the first key information comprises a first key.
  • 3. The method of claim 2, wherein the first key information further comprises life cycle information of the first key.
  • 4. The method of claim 1, further comprising receiving, by the first station from the access point, after receiving the direct link setup response message, a second key information, wherein the second key information has been generated by the second station, and wherein the second key information is used to replace the first key information.
  • 5. The method of claim 4, wherein the second key information comprises a second key.
  • 6. The method of claim 5, wherein the second key information further comprises life cycle information of the second key.
  • 7. The method of claim 4, further comprising transmitting, by the first station to the second station, after receiving the second key information, a second direct link setup confirm message over the direct link, wherein the second direct link setup confirm message is configured to indicate that the first station has received the second key information.
  • 8. The method of claim 4, further comprising transmitting, by the first station to the second station, after receiving the second key information, a second direct link setup confirm message over the direct link, wherein the second direct link setup confirm message indicates that the first station has received the second key information.
  • 9. A first station comprising: a transmitter configured to transmit a direct link setup request message to an access point destined for a second station, wherein the direct link setup request message is configured to request setup of a direct link between the first station and the second station; anda receiver configured to receive a direct link setup response message from the access point, wherein the direct link setup response message comprises a first key information, wherein the first key information is used to perform secure transmission for service data transmitted in the direct link between the first station and the second station, wherein the transmitter is further configured to transmit a first direct link setup confirm message to the second station over the direct link, and wherein the first direct link setup confirm message indicates that the first station has received the first key information.
  • 10. The first station of claim 9, wherein the first key information comprises a first key, or comprises the first key.
  • 11. The first station of claim 10, wherein the first key information further comprises life cycle information of the first key.
  • 12. The first station of claim 9, wherein the receiver is further configured to receive a second key information from the access point, wherein the second key information is generated by the second station, and wherein the second key information is configured to replace the first key information.
  • 13. The first station of claim 12, wherein the transmitter is further configured to transmit a second direct link setup confirm message to the second station over the direct link, wherein the second direct link setup confirm message indicates that the first station has received the second key information.
  • 14. The first station of claim 12, wherein the second key information comprises a second key.
  • 15. The first station of claim 14, wherein the second key information further comprises life cycle information of the second key.
  • 16. The first station of claim 12, wherein the transmitter is further configured to transmit a second direct link setup confirm message to the second station over the direct link, wherein the second direct link setup confirm message indicates that the first station has received the second key information.
  • 17. A method comprising: receiving, by a first station from an access point, a direct link setup request message;generating a first key information in accordance with the direct link setup request message; andtransmitting, by the first station to the access point, the first key information.
  • 18. The method of claim 17, further comprising: receiving, by the first station from a second station, a first direct link setup confirm message;performing an integrity check in accordance with the first direct link setup confirm message to produce a first acknowledgment message; andtransmitting, by the first station to the second station, the first acknowledgment message.
  • 19. The method of claim 18, further comprising: generating a second key information after transmitting the first acknowledgment message; andtransmitting, by the first station to the access point, the second key information.
  • 20. The method of claim 19, further comprising: receiving, by the first station from the second station, after transmitting the second key information, a second direct link setup confirm message;performing an integrity check in accordance with the second direct link setup confirm message to produce a second acknowledgment message; andtransmitting, by the first station to the second station, the second acknowledgment message.
Priority Claims (1)
Number Date Country Kind
201210226264.X Jul 2012 CN national
Parent Case Info

This application is a continuation of PCT Application No. PCT/CN2013/077431, filed on Jun. 19, 2013, which claims priority to Chinese Patent Application No. 201210226264.X, filed on Jul. 3, 2012, both of which are incorporated herein by reference in their entireties.

Continuations (1)
Number Date Country
Parent PCT/CN2013/077431 Jun 2013 US
Child 14573935 US