Invention content
The embodiment of the present invention provides a kind of connection method for building up, equipment and system, to can not direct communication in AP and STA
It establishes and communicates to connect with the STA again as early as possible afterwards.
First aspect provides a kind of connection method for building up, including:
Access point sends relaying probe request message at least one trunking, and the relaying probe request message is used for
Indicate that the trunking sends probe message to the website of association described access point;
The relaying that described access point receives the return of the first trunking at least one trunking detects successfully
Message, relaying detection success message, which is first trunking, to be set for first relaying receiving the website
It is sent after the probe response message that the probe message that preparation is sent returns;
Described access point is established by first trunking and the website and is communicated to connect.
In the first possible realization method of first aspect, during described access point is sent at least one trunking
Include after probe request message:
Described access point is determining that described access point and the website can not be after direct communications, at least one relaying
Equipment sends the relaying probe request message.
With reference to first aspect or the first possible realization method of first aspect, second in first aspect are possible
In realization method, the method further includes:
Described access point receives other relayings in addition to first trunking at least one trunking
The relaying that equipment is sent detects failed message.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible
Realization method, in the third possible realization method of first aspect, described access point by first trunking with
The website establishes communication connection:
If first trunking is multiple, described access point selects one from multiple first trunkings
As object relay equipment, relaying instruction message is sent to the object relay equipment, to indicate that the object relay equipment is
Described access point and the website provide relay services, then establish communication link by the object relay equipment and the website
It connects.
The third possible realization method with reference to first aspect, in the 4th kind of possible realization method of first aspect
In, described access point selects one as object relay equipment from multiple first trunkings and includes:
From multiple relayings detection success message that multiple first trunkings are sent, acquisition includes described access point
First relaying detection success message of relay request mark;The relay request mark is to send first relaying to detect successfully
First trunking of message is encapsulated into when meeting preset first condition in the first relaying detection success message;
Described access point selected from corresponding first trunking of the first relaying detection success message one as
The object relay equipment.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method of first aspect
In, the first condition includes following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that first trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between first trunking and described access point is better than preset link-quality.
The third possible realization method with reference to first aspect, in the 6th kind of possible realization method of first aspect
In, described access point selects one as object relay equipment from multiple first trunkings and includes:
From multiple relayings detection success message that multiple first trunkings are sent, acquisition includes described access point
Second relaying detection success message of relaying instruction;The relaying instruction is send the second relaying detection success message the
One trunking from obtained in the probe response message and be encapsulated into it is described second relaying detection success message in, in described
Select the first trunking for sending the second relaying detection success message as target for identifying the website after instruction
Trunking;
Described access point determines that corresponding first trunking of the second relaying detection success message is in the target
After equipment.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or first aspect or first aspect
5th kind of possible realization method of one side or the 6th kind of possible realization method of first aspect, the 7th of first aspect the
In the possible realization method of kind, the relaying probe request message includes the identification information of the website and sends instruction, described
It sends instruction and is used to indicate the trunking to the website transmission probe message.
The 7th kind of possible realization method with reference to first aspect, in the 8th kind of possible realization method of first aspect
In, the relaying probe request message further includes at least one of sending time instruction, number instruction and the instruction of transmission interval;
The sending time instruction is used to indicate the time point that the trunking sends the probe message to the website, described a
Number instruction is used to indicate the number that the trunking sends the probe message to the website, and transmission interval instruction is used
The time interval of the probe message is sent to the website in the instruction trunking.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or first aspect or first aspect
The 7th of 5th kind of possible realization method of one side or the 6th kind of possible realization method of first aspect or first aspect
8th kind of possible realization method of the possible realization method of kind or first aspect, in the 9th kind of possible realization of first aspect
In mode, the probe message includes that the identification information of the website and detection indicate, the detection instruction is used to indicate to institute
Website is stated to be detected.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or first aspect or first aspect
The 7th of 5th kind of possible realization method of one side or the 6th kind of possible realization method of first aspect or first aspect
The possible realization method of kind or the 8th kind of possible realization method of first aspect or the 9th kind of possible realization of first aspect
Mode, in the tenth kind of possible realization method of first aspect, the probe response message includes the mark letter of the website
Cease the identification information of the trunking of probe message corresponding with the probe response message is sent.
The tenth kind of possible realization method with reference to first aspect, in a kind of the tenth possible realization method of first aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
With reference to first aspect or second of the first possible realization method of first aspect or first aspect possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or first aspect or first aspect
The 7th of 5th kind of possible realization method of one side or the 6th kind of possible realization method of first aspect or first aspect
The possible realization method of kind or the 8th kind of possible realization method of first aspect or the 9th kind of possible realization of first aspect
Mode or the tenth kind of possible realization method of first aspect or a kind of the tenth possible realization method of first aspect, first
In 12nd kind of possible realization method of aspect, described access point sends relaying probe requests thereby at least one trunking and disappears
Breath includes:
Described access point sends the relaying probe request message with broadcast mode at least one trunking;Or
Person
Described access point sends the relaying probe request message with multicast mode at least one trunking;Or
Person
Described access point sends the relaying probe request message with mode of unicast at least one trunking.
The 4th kind of possible realization method of the third possible realization method or first aspect with reference to first aspect or
The of 5th kind of possible realization method of first aspect or the 6th kind of possible realization method of first aspect or first aspect
9th kind of possible reality of the 8th kind of possible realization method or first aspect of seven kinds of possible realization methods or first aspect
Tenth a kind of possible realization method of the tenth kind of possible realization method or first aspect of existing mode or first aspect or the
12nd kind of possible realization method of one side, in the 13rd kind of possible realization method of first aspect, the access
Point is established with the website after communication connection by the object relay equipment:
Described access point receives the second encryption message that the object relay equipment is sent, and the second encryption message is institute
State object relay equipment using between described access point and the object relay equipment the second key pair first encrypt message into
Row encryption obtains, and the first encryption message is that the website uses the first key between the website and described access point
Acquisition is encrypted to cipher key acquisition request;
Described access point is that the website and object relay equipment distribution third are close according to the cipher key acquisition request
Key, and be encrypted using third key described in second key pair, it obtains third and encrypts message, use the first key
The 4th encryption message of acquisition is encrypted to the third key;
Third encryption message is sent to the object relay equipment by described access point, and the 4th encryption is disappeared
Breath is sent to the object relay equipment, so that the object relay equipment encrypts message by the described 4th is transmitted to the station
Point, so that the object relay equipment is communicated with the website using the third key.
Second aspect provides a kind of connection method for building up, including:
Trunking receives the relaying probe request message that access point is sent, wherein the relaying probe request message is used
In the instruction trunking probe message is sent to the website of association described access point;
The trunking sends the detection to the website and disappears according to the instruction of the relaying probe request message
Breath;
If the trunking receives the probe response message that the website returns, the trunking connects to described
Access point sends relaying detection success message, so that described access point is set from the relaying for returning to the relaying detection success message
The selection target trunking of relay services is provided for described access point and the website in standby, and is set by the object relay
Standby established with the website communicates to connect.
In the first possible realization method of second aspect, the trunking receives the relaying that access point is sent and visits
Surveying request message includes:
The trunking receives described access point and is determining that described access point can not send out with the website after direct communication
The relaying probe request message sent.
In conjunction with the possible realization method of the first of second aspect or second aspect, second in second aspect is possible
In realization method, the method further includes:
If the trunking does not receive the probe response message, the trunking is sent to described access point
Relaying detection failed message.
Second in conjunction with the possible realization method of the first of second aspect or second aspect or second aspect is possible
Realization method, in the third possible realization method of second aspect, the trunking sends to described access point and relays
Detecting success message includes:
The trunking judges whether to meet preset first condition;
If it is judged that being yes, relay request mark is encapsulated in the relaying and detects success message by the trunking
In, the relaying detection success message for being packaged with the relay request mark is sent to described access point, the relaying is asked
Mark is asked to be used as the object relay equipment for identifying the trunking request, so that described access point is used as institute from request
It states and selects the object relay equipment in the trunking of object relay equipment.
In conjunction with the third possible realization method of second aspect, in the 4th kind of possible realization method of second aspect
In, the first condition includes following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that the trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between the trunking and described access point is better than preset link-quality.
Second in conjunction with the possible realization method of the first of second aspect or second aspect or second aspect is possible
Realization method, in the 5th kind of possible realization method of second aspect, the probe response message includes relaying instruction, is used for
Identifying the website selects the trunking as the object relay equipment;
The trunking sends relaying detection success message to described access point:
Relaying instruction is encapsulated in the relaying and detected in success message by the trunking, will be packaged with it is described in
Relaying detection success message after instruction is sent to described access point.
Second in conjunction with the possible realization method of the first of second aspect or second aspect or second aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or second aspect or second aspect
5th kind of possible realization method of two aspects, in the 6th kind of possible realization method of second aspect, the method is also wrapped
It includes:
The trunking receives the first encryption message that the website is sent, and the first encryption message is the website
Acquisition is encrypted to cipher key acquisition request using the first key between the website and described access point;
The trunking is using the second key between the trunking and described access point, to first encryption
Message is encrypted, and obtains the second encryption message;
The trunking encrypts message by described second and is sent to described access point, so that described access point is according to
Cipher key acquisition request is that the website and the object relay equipment distribute third key;
The trunking receives the third encryption message that described access point is sent and the 4th encryption message, and by described the
Four encryption message are transmitted to the website, and to be communicated using the third key with the website, the third encryption disappears
Breath is that described access point is obtained using third key encryption described in second key pair, and the 4th encryption message is described
Acquisition is encrypted to the third key using the first key in access point.
Second in conjunction with the possible realization method of the first of second aspect or second aspect or second aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or second aspect or second aspect
5th kind of possible realization method of two aspects or the 6th kind of possible realization method of second aspect, the 7th of second aspect the
In the possible realization method of kind, the relaying probe request message includes the identification information of the website and sends instruction, described
It sends instruction and is used to indicate the trunking to the website transmission probe message.
In conjunction with the 7th kind of possible realization method of second aspect, in the 8th kind of possible realization method of second aspect
In, the relaying probe request message further includes at least one of sending time instruction, number instruction and the instruction of transmission interval;
The sending time instruction is used to indicate the time point that the trunking sends the probe message to the website, described a
Number instruction is used to indicate the number that the trunking sends the probe message to the website, and transmission interval instruction is used
The time interval of the probe message is sent to the website in the instruction trunking.
Second in conjunction with the possible realization method of the first of second aspect or second aspect or second aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or second aspect or second aspect
The 7th kind of 5th kind of possible realization method of two aspects or the 6th kind of possible realization method second aspect of second aspect
8th kind of possible realization method of possible realization method or second aspect, in the 9th kind of possible realization side of second aspect
In formula, the probe response message includes the identification information of the identification information and the trunking of the website.
In conjunction with the 9th kind of possible realization method of second aspect, in the tenth kind of possible realization method of second aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
The third aspect provides a kind of connection method for building up, including:
Website receives the probe message that trunking is sent, and the probe message is the trunking according to the website
What the instruction for the relaying probe request message that associated access point is sent was sent;
The website sends probe response message to the trunking, so that the trunking is returned to described access point
Relaying detection success message is returned, so that described access point is selected as from the trunking for returning to the relaying detection success message
Described access point and the website provide the object relay equipment of relay services, and pass through the object relay equipment and the station
Point establishes communication connection.
In the first possible realization method of the third aspect, the website receives the probe message that trunking is sent
Including:
The website receives the probe message that at least one trunking is sent;
The website sends probe response message to the trunking, so that the trunking is returned to described access point
Returning relaying detection success message includes:
The website each trunking at least one trunking sends the probe response message,
So that each trunking returns to the relaying to described access point detects success message;Or
The trunking that the website meets preset second condition at least one trunking is sent
The probe response message, so that the trunking for meeting the preset second condition returns to the relaying to described access point
Detect success message.
In conjunction with the first possible realization method of the third aspect, in second of possible realization method of the third aspect
In, the second condition includes following either condition or combinations thereof:
The reception power of the probe message is more than default reception power threshold;
The signal-to-noise ratio of the probe message is more than default signal-noise ratio threshold;
Link-quality between the website and the trunking is better than preset link-quality.
In conjunction with the first possible realization method of the third aspect or second of possible realization method of the third aspect,
In the third possible realization method of the third aspect, the website is from the trunking for meeting the preset second condition
In, one is selected as the object relay equipment, and is sealed in the probe response message for being sent to the object relay equipment
Dress relaying instruction, the object relay equipment for identifying the website selection;
The probe response message for being packaged with the relaying instruction is sent to the object relay equipment by the website,
So that the object relay equipment returns to the relaying detection success message for carrying the relaying instruction to described access point.
Second in conjunction with the possible realization method of the first of the third aspect or the third aspect or the third aspect is possible
The possible realization method of the third of realization method or the third aspect, in the 4th kind of possible realization method of the third aspect,
The method further includes:
The website is encrypted cipher key acquisition request using the first key between the website and described access point,
Obtain the first encryption message;
The website encrypts message by described first and is sent to the object relay equipment, so that the object relay equipment
It is sent out after being encrypted using the first encryption message described in the second key pair between the object relay equipment and described access point
Described access point is given, so that described access point is the website and the object relay equipment according to the cipher key acquisition request
Distribute third key;
The website receives the 4th encryption message that the object relay equipment is sent, and the 4th encryption message is described
Acquisition is encrypted to the third key using the first key in access point, so that the website and the object relay
Equipment is communicated using the third key.
Second in conjunction with the possible realization method of the first of the third aspect or the third aspect or the third aspect is possible
4th kind of possible realization method of the possible realization method of the third of realization method or the third aspect or the third aspect,
In 5th kind of possible realization method of three aspects, the relaying probe request message includes the identification information and hair of the website
Instruction, the transmission instruction is sent to be used to indicate the trunking and send the probe message to the website.
In conjunction with the 5th kind of possible realization method of the third aspect, in the 6th kind of possible realization method of the third aspect
In, the relaying probe request message further includes sending time instruction, number instruction and the instruction of transmission interval;The sending time
Instruction is used to indicate the time point that the trunking sends the probe message to the website, and the number instruction is for referring to
Show that the trunking sends the number of the probe message to the website, transmission interval instruction be used to indicate it is described in
The time interval of the probe message is sent to the website after equipment.
Second in conjunction with the possible realization method of the first of the third aspect or the third aspect or the third aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or the third aspect or the third aspect
5th kind of possible realization method of three aspects or the 6th kind of possible realization method of the third aspect, the 7th of the third aspect the
In the possible realization method of kind, the probe message includes that the identification information of the website and detection indicate, the detection instruction
It is used to indicate and the website is detected.
Second in conjunction with the possible realization method of the first of the third aspect or the third aspect or the third aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or the third aspect or the third aspect
The 7th of 5th kind of possible realization method of three aspects or the 6th kind of possible realization method of the third aspect or the third aspect
The possible realization method of kind, in the 8th kind of possible realization method of the third aspect, the probe response message includes described
The identification information of the trunking of the identification information of website probe message corresponding with the probe response message is sent.
In conjunction with the 8th kind of possible realization method of the third aspect, in the 9th kind of possible realization method of the third aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
Fourth aspect provides a kind of access point, including:
Sending module, for sending relaying probe request message, the relaying probe requests thereby at least one trunking
Message is used to indicate the trunking and sends probe message to the website of association described access point;
Receiving module, for receive the first trunking at least one trunking return relaying detection at
Work(message, the relaying detection success message are that first trunking is receiving the website for first relaying
It is sent after the probe response message that the probe message that equipment is sent returns;
Connection establishment module is communicated to connect for being established with the website by first trunking.
In the first possible realization method of fourth aspect, the sending module is specifically used for determining the access
Point can not send the relaying probe request message after direct communication with the website at least one trunking.
In conjunction with the possible realization method of the first of fourth aspect or fourth aspect, second in fourth aspect is possible
In realization method, the receiving module is additionally operable to receive at least one trunking in addition to first trunking
Other trunkings send relaying detect failed message.
Second in conjunction with the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible
Realization method, in the third possible realization method of fourth aspect, the connection establishment module includes:
Selecting unit, for when first trunking is multiple, being selected from the multiple first trunking
One is used as object relay equipment;
Transmission unit, for sending relaying instruction message to the object relay equipment, to indicate that the object relay is set
It is standby to provide relay services for described access point and the website;
Unit is established, is communicated to connect for being established by the object relay equipment and the website.
In conjunction with the third possible realization method of fourth aspect, in the 4th kind of possible realization method of fourth aspect
In, the selecting unit is specifically used for, when first trunking is multiple, sending from multiple first trunkings
Multiple relayings detection success message in, it includes that the first relaying of relay request mark detects success message to obtain, from described the
Selected in one corresponding first trunking of relaying detection success message one as the object relay equipment;The relaying is asked
It is to send the first trunking that first relaying detects success message to encapsulate when meeting preset first condition to seek mark
Into the first relaying detection success message.
In conjunction with the 4th kind of possible realization method of fourth aspect, in the 5th kind of possible realization method of fourth aspect
In, the first condition includes following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that first trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between first trunking and described access point is better than preset link-quality.
In conjunction with the third possible realization method of fourth aspect, in the 6th kind of possible realization method of fourth aspect
In, the selecting unit is specifically used for, when first trunking is multiple, sending from multiple first trunkings
Multiple relayings detection success message in, obtain include relaying instruction second relaying detect success message, determine described second
Corresponding first trunking of relaying detection success message is the object relay equipment;Relaying instruction is to send described the
First trunking of two relaying detection success messages obtains from the probe response message and is encapsulated into second relaying
It detects in success message, the relaying instruction sends the second relaying detection success message for identifying the website selection
The first trunking as object relay equipment.
Second in conjunction with the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or fourth aspect or fourth aspect
5th kind of possible realization method of four aspects or the 6th kind of possible realization method of fourth aspect, the 7th of fourth aspect the
In the possible realization method of kind, the relaying probe request message includes the identification information of the website and sends instruction, described
It sends instruction and is used to indicate the trunking to the website transmission probe message.
In conjunction with the 7th kind of possible realization method of fourth aspect, in the 8th kind of possible realization method of fourth aspect
In, the relaying probe request message further includes at least one of sending time instruction, number instruction and the instruction of transmission interval;
The sending time instruction is used to indicate the time point that the trunking sends the probe message to the website, described a
Number instruction is used to indicate the number that the trunking sends the probe message to the website, and transmission interval instruction is used
The time interval of the probe message is sent to the website in the instruction trunking.
Second in conjunction with the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or fourth aspect or fourth aspect
The 7th of 5th kind of possible realization method of four aspects or the 6th kind of possible realization method of fourth aspect or fourth aspect
8th kind of possible realization method of the possible realization method of kind or fourth aspect, in the 9th kind of possible realization of fourth aspect
In mode, the probe message includes that the identification information of the website and detection indicate, the detection instruction is used to indicate to institute
Website is stated to be detected.
Second in conjunction with the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or fourth aspect or fourth aspect
The 7th of 5th kind of possible realization method of four aspects or the 6th kind of possible realization method of fourth aspect or fourth aspect
The possible realization method of kind or the 8th kind of possible realization method of fourth aspect or the 9th kind of possible realization of fourth aspect
Mode, in the tenth kind of possible realization method of fourth aspect, the probe response message includes the mark letter of the website
Cease the identification information of the trunking of probe message corresponding with the probe response message is sent.
In conjunction with the tenth kind of possible realization method of fourth aspect, in a kind of the tenth possible realization method of fourth aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
Second in conjunction with the possible realization method of the first of fourth aspect or fourth aspect or fourth aspect is possible
The 4th kind of possible realization method or of the possible realization method of the third of realization method or fourth aspect or fourth aspect
The 7th of 5th kind of possible realization method of four aspects or the 6th kind of possible realization method of fourth aspect or fourth aspect
The possible realization method of kind or the 8th kind of possible realization method of fourth aspect or the 9th kind of possible realization of fourth aspect
Mode or the tenth kind of possible realization method of fourth aspect or a kind of the tenth possible realization method of fourth aspect, the 4th
In 12nd kind of possible realization method of aspect, the sending module be specifically used for broadcast mode to it is described it is at least one in
The relaying probe request message is sent after equipment;Or
The sending module is specifically used for sending the relaying detection at least one trunking with multicast mode
Request message;Or
The sending module is specifically used for sending the relaying detection at least one trunking with mode of unicast
Request message.
In conjunction with the third possible realization method of fourth aspect or the 4th kind of possible realization method of fourth aspect or
The of 5th kind of possible realization method of fourth aspect or the 6th kind of possible realization method of fourth aspect or fourth aspect
9th kind of possible reality of the 8th kind of possible realization method or fourth aspect of seven kinds of possible realization methods or fourth aspect
Tenth a kind of possible realization method of the tenth kind of possible realization method or fourth aspect of existing mode or fourth aspect or the
12nd kind of possible realization method of four aspects, in the 13rd kind of possible realization method of fourth aspect, the reception
Module is additionally operable to receive the second encryption message that the object relay equipment is sent, and the second encryption message is in the target
It is encrypted and is obtained using the second key pair first encryption message between described access point and the object relay equipment after equipment
, the first encryption message is that the website obtains key using the first key between the website and described access point
Take request that acquisition is encrypted;
Described access point further includes:
Module is obtained, for being that the website and the object relay equipment distribute third according to the cipher key acquisition request
Key, and be encrypted using third key described in second key pair, it obtains third and encrypts message, it is close using described first
The 4th encryption message of acquisition is encrypted to the third key in key;
The sending module is additionally operable to third encryption message being sent to the object relay equipment, and by described the
Four encryption message are sent to the object relay equipment, so that the object relay device forwards give the website, so that described
Object relay equipment is communicated with the website using the third key.
A kind of trunking of offer includes in terms of 5th:
Receiving module, the relaying probe request message for receiving access point transmission, wherein the relaying probe requests thereby disappears
Breath is used to indicate the trunking and sends probe message to the website of association described access point;
Sending module sends the detection to the website and disappears for the instruction according to the relaying probe request message
Breath, and after the probe response message that the receiving module receives that the website returns, send and relay to described access point
Success message is detected, so that described access point is selected as institute from the trunking for returning to the relaying detection success message
It states access point and the website provides the object relay equipment of relay services, and pass through the object relay equipment and the website
Establish communication connection.
In the first possible realization method of the 5th aspect, the receiving module is specifically used for receiving described access point
In the relaying probe request message for determining that described access point and the website can not be sent after direct communication, and described
After sending module sends the probe message, the probe response message that the website is returned according to the probe message is received.
In conjunction with the first possible realization method of the 5th aspect or the 5th aspect, second at the 5th aspect is possible
In realization method, the sending module is additionally operable to when the receiving module does not receive the probe response message, to described
Access point sends relaying detection failed message.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
Realization method, in the third possible realization method of the 5th aspect, the sending module is specifically used for according to the relaying
The instruction of probe request message sends the probe message to the website, and receives the station in the receiving module
After the probe response message that point returns, judge whether to meet preset first condition, if it is judged that being yes, by relay request
Mark is encapsulated in the relaying detection success message, and the relaying for being packaged with the relay request mark is detected and is successfully disappeared
Breath is sent to described access point, and the relay request mark is set for identifying the trunking request as the object relay
It is standby, select the object relay equipment in the trunking for described access point from request as the object relay equipment.
In conjunction with the third possible realization method of the 5th aspect, in the 4th kind of possible realization method of the 5th aspect
In, the first condition includes following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that the trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between the trunking and described access point is better than preset link-quality.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
Realization method, in the 5th kind of possible realization method of the 5th aspect, the probe response message includes relaying instruction, is used for
Identifying the website selects the trunking as the object relay equipment;
The sending module is specifically used for the instruction according to the relaying probe request message, described in website transmission
Probe message, and after the probe response message that the receiving module receives that the website returns, the relaying is indicated
It is encapsulated in the relaying detection success message, the relaying detection success message for being packaged with the relaying instruction is sent to
Described access point, so that described access point is selected from the trunking for returning to the relaying detection success message in the target
After equipment.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 5th aspect of realization method or the 5th aspect
5th kind of possible realization method of five aspects, in the 6th kind of possible realization method of the 5th aspect, the receiving module
It is additionally operable to receive the first encryption message that the website is sent, and receives third encryption message that described access point is sent and the
Four encryption message, the first encryption message are that the website uses the first key pair between the website and described access point
Acquisition is encrypted in cipher key acquisition request;Third encryption message be described access point using described access point with it is described in
It is obtained after the second key pair third key encryption between equipment, the 4th encryption message is described in described access point use
Acquisition is encrypted to the third key in first key;
The trunking further includes:
Module is obtained, for using second key, the first encryption message is encrypted, the second encryption is obtained
Message;
The sending module is additionally operable to the second encryption message being sent to described access point, so that described access point root
It is the website and the object relay equipment distribution third key according to the cipher key acquisition request, and in the reception mould
After block receives the 4th encryption message, encrypts message by the described 4th and be transmitted to the website, so that the trunking
It is communicated using the third key with the website.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 5th aspect of realization method or the 5th aspect
6th kind of possible realization method of the 5th aspect of the 5th kind of possible realization method of five aspects, at the 7th kind of the 5th aspect
In possible realization method, the relaying probe request message includes that the identification information of the website and transmission indicate, the hair
It send instruction to be used to indicate the trunking and sends the probe message to the website.
In conjunction with the 7th kind of possible realization method of the 5th aspect, in the 8th kind of possible realization method of the 5th aspect
In, the relaying probe request message further includes at least one of sending time instruction, number instruction and the instruction of transmission interval;
The sending time instruction is used to indicate the time point that the trunking sends the probe message to the website, described a
Number instruction is used to indicate the number that the trunking sends the probe message to the website, and transmission interval instruction is used
The time interval of the probe message is sent to the website in the instruction trunking.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 5th aspect of realization method or the 5th aspect
The 7th kind in terms of the 6th kind of possible realization method or the 5th of the 5th aspect of the 5th kind of possible realization method of five aspects
8th kind of possible realization method of possible realization method or the 5th aspect, in the 9th kind of possible realization side of the 5th aspect
In formula, the probe message includes that the identification information of the website and detection indicate, the detection instruction is used to indicate to described
Website is detected.
Second in conjunction with the first possible realization method or the 5th aspect of the 5th aspect or the 5th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 5th aspect of realization method or the 5th aspect
The 7th kind in terms of the 6th kind of possible realization method or the 5th of the 5th aspect of the 5th kind of possible realization method of five aspects
9th kind of possible realization side of the 8th kind of possible realization method or the 5th aspect of possible realization method or the 5th aspect
Formula, in the tenth kind of possible realization method of the 5th aspect, the probe response message includes the identification information of the website
With the identification information of the trunking.
In conjunction with the tenth kind of possible realization method of the 5th aspect, in a kind of the tenth possible realization method of the 5th aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
6th aspect provides a kind of website, including:
Receiving module, the probe message for receiving trunking transmission, the probe message is the trunking root
What the instruction of the relaying probe request message sent according to the access point of the station associate was sent;
Sending module, for sending probe response message to the trunking, so that the trunking connects to described
Access point returns to relaying detection success message, so that described access point is from the trunking for returning to the relaying detection success message
Be selected as the object relay equipment that described access point and the website provide relay services, and by the object relay equipment with
The website establishes communication connection.
In the first possible realization method of the 6th aspect, the receiving module is specifically used for receiving at least one institute
State the probe message of trunking transmission;
The sending module is specifically used for at least one trunking described in each trunking transmission
Probe response message, so that each trunking returns to the relaying to described access point detects success message, so that institute
It states access point and selects the object relay equipment from the trunking for returning to the relaying detection success message, and by described
Object relay equipment is established with the website and is communicated to connect;Or
The sending module is specifically used for meeting preset second condition at least one trunking
Trunking sends the probe response message, so as to meet the trunking of the preset second condition to described access point
The relaying detection success message is returned to, so that described access point is from the trunking for returning to the relaying detection success message
The object relay equipment is selected, and is established and is communicated to connect by the object relay equipment and the website.
In conjunction with the first possible realization method of the 6th aspect, in second of possible realization method of the 6th aspect
In, the second condition includes following either condition or combinations thereof:
The reception power of the probe message is more than default reception power threshold;
The signal-to-noise ratio of the probe message is more than default signal-noise ratio threshold;
Link-quality between the website and the trunking is better than preset link-quality.
In conjunction with the 6th aspect the first possible realization method or the 6th aspect second of possible realization method,
In the third possible realization method of 6th aspect, the sending module is specifically used for from meeting in preset second condition
Disappear as the object relay equipment, and in the probe response for being sent to the object relay equipment after in equipment, selecting one
Encapsulation relaying instruction in breath, the object relay equipment for identifying the website selection, then will be packaged with the relaying
The probe response message indicated is sent to the object relay equipment, so that the object relay equipment is to described access point
Return carries the relaying detection success message of the relaying instruction, so that described access point is detected from the relaying is returned
The object relay equipment is selected in the trunking of success message, and is established by the object relay equipment and the website
Communication connection.
Second in conjunction with the first possible realization method or the 6th aspect of the 6th aspect or the 6th aspect is possible
The third possible realization method of realization method or the 6th aspect, in the 4th kind of possible realization method of the 6th aspect,
The website further includes:
Module is obtained, for being carried out to cipher key acquisition request using the first key between the website and described access point
Encryption obtains the first encryption message;
The sending module is additionally operable to the first encryption message being sent to the object relay equipment, so that the mesh
Mark trunking using the first encryption message described in the second key pair between the object relay equipment and described access point into
It is sent to described access point after row encryption, so that described access point is the website and the mesh according to the cipher key acquisition request
It marks trunking and distributes third key;
The receiving module is additionally operable to receive the 4th encryption message that the object relay equipment is sent, the 4th encryption
Message is that acquisition is encrypted to the third key using the first key in described access point, with the website with it is described
Object relay equipment is communicated using the third key.
Second in conjunction with the first possible realization method or the 6th aspect of the 6th aspect or the 6th aspect is possible
The 4th kind of possible realization method of the third possible realization method or the 6th aspect of realization method or the 6th aspect, the
In 5th kind of possible realization method of six aspects, the relaying probe request message includes the identification information and hair of the website
Instruction, the transmission instruction is sent to be used to indicate the trunking and send the probe message to the website.
In conjunction with the 5th kind of possible realization method of the 6th aspect, in the 6th kind of possible realization method of the 6th aspect
In, the relaying probe request message further includes sending time instruction, number instruction and the instruction of transmission interval;The sending time
Instruction is used to indicate the time point that the trunking sends the probe message to the website, and the number instruction is for referring to
Show that the trunking sends the number of the probe message to the website, transmission interval instruction be used to indicate it is described in
The time interval of the probe message is sent to the website after equipment.
Second in conjunction with the first possible realization method or the 6th aspect of the 6th aspect or the 6th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 6th aspect of realization method or the 6th aspect
6th kind of possible realization method of the 5th kind of possible realization method of six aspects or the 6th aspect, the 7th of the 6th aspect the
In the possible realization method of kind, the probe message includes that the identification information of the website and detection indicate, the detection instruction
It is used to indicate and the website is detected.
Second in conjunction with the first possible realization method or the 6th aspect of the 6th aspect or the 6th aspect is possible
The 4th kind of possible realization method or the of the third possible realization method or the 6th aspect of realization method or the 6th aspect
The 7th of the 6th kind of possible realization method or the 6th aspect of 5th kind of possible realization method of six aspects or the 6th aspect
The possible realization method of kind, in the 8th kind of possible realization method of the 6th aspect, the probe response message includes described
The identification information of the identification information of website and the trunking.
In conjunction with the 8th kind of possible realization method of the 6th aspect, in the 9th kind of possible realization method of the 6th aspect
In, the probe response message further includes the current electric quantity information of the website and/or the location information of the website.
7th aspect provides a kind of connect and establishes system, including:Access point, website and at least one trunking;
Described access point, for sending relaying probe request message at least one trunking, the relaying is visited
It surveys request message and is used to indicate the trunking to website transmission probe message, receive at least one trunking
In the relaying that returns of the first trunking detect success message, it is first trunking that the relaying, which detects success message,
It is sent after receiving the probe response message that the probe message that the website is sent for first trunking returns
's;And it is established and is communicated to connect by first trunking and the website;
At least one trunking, the relaying probe request message for receiving described access point transmission, root
According to the instruction of the relaying probe request message, the probe message is sent to the website, and return receiving the website
When the probe response message returned, sends the relaying to described access point and detect success message;
The website, the probe message sent for receiving the trunking send institute to the trunking
State probe response message.
Connection method for building up, equipment and system provided in an embodiment of the present invention, during access point to trunking by sending
After probe request message, returned so that these trunkings send probe message and receive the website to the website for being associated with the access point
The probe response message returned, trunking return to relaying detection success message after receiving probe response message to access point,
Access point can be obtained from these trunkings so then to pass through acquisition with the object relay equipment of site communication
Object relay equipment and website establish and communicate to connect, in this way access point and the website can not direct communication in the case of, connect
Access point can establish communication connection as early as possible by these trunkings and website.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of connection method for building up provided in an embodiment of the present invention.As shown in Figure 1, the present embodiment
Method includes:
Step 101, when AP be associated with the AP STA can not direct communication when, AP at least one trunking send in
After probe request message, which is used to indicate trunking and sends probe message to the STA.
In the present embodiment, after STA associated APs, STA can not be primarily referred to as in associated AP with the case where AP direct communications
Later, AP and STA does not hear mutually other side whithin a period of time.The present embodiment is listened mutually not whithin a period of time with AP and STA
See for other side and illustrates.For example, if AP does not continuously receive this at multiple time points for presetting STA reported datas
The data of STA, then AP think with the STA can not direct communication, but some trunkings are possible to still to hear in network
The STA.Here the trunking in network can be the STA for having relay function, can also be one have website function and
The equipment of relay function, can also be one have access point function, website function and relay function equipment.Wherein, AP is pre-
First know which equipment has relay capabilities in network.For example, whether trunking can report it when being associated with AP to AP
With relay capabilities, reporting based on trunking, AP can know which equipment has relay capabilities in network.
Optionally, AP is determining that AP can not be after direct communication with the STA for being associated with the AP, at least one relaying into network
Equipment sends relaying probe request message, to indicate that these trunkings send probe message to the STA.
Optionally, AP includes to a kind of embodiment of at least one trunking transmission relaying probe request message:AP
With broadcast mode relaying probe request message is sent at least one trunking.
Optionally, AP includes to the another embodiment of at least one trunking transmission relaying probe request message:
AP sends relaying probe request message with multicast mode at least one trunking.
Optionally, AP includes to another embodiment of at least one trunking transmission relaying probe request message:
AP sends relaying probe request message with mode of unicast at least one trunking.
Illustrate herein, if AP just knows which equipment has relay capabilities, but does not know the position of these trunkings
Information, then AP the mode of broadcast may be used and send relaying probe request message to these trunkings.If AP is not just known that
Which equipment has relay capabilities, and knows the location information of these trunkings, then AP can be with multicast or the side of unicast
Formula sends relaying probe request message to these trunkings.For example, these link terminals are not only reported when being associated with AP
Oneself has relay capabilities, while the location information of oneself is reported to AP.
Optionally, relaying probe request message indicates that trunking sends a kind of side of probe message to the STA of associated AP
Formula is:Relaying probe request message includes that the identification information of the STA of associated AP and transmission indicate.Wherein, the identification information of the STA
Need which STA to send probe message to for identifying, and sends instruction and be used to indicate identification information institute of the trunking to STA
The STA of mark sends probe message.Optionally, relaying probe request message carry it is described send instruction mode include:Pass through
The certain field in probe request message is relayed, the transmission instruction is carried with the field;Alternatively, relaying probe request message
Itself mean that the transmission instruction.
Further, relaying probe request message can also include other than the identification information including STA is with transmission instruction
At least one of sending time instruction, number instruction and the instruction of transmission interval.
For example, relaying probe request message indicates that trunking sends the another kind side of probe message to the STA of associated AP
Formula is:Relaying probe request message includes the identification information of the STA, sends instruction and sending time instruction;Wherein, the mark of STA
Know information and need which STA to send probe message to for mark, sends instruction and be used to indicate trunking to the mark of STA letter
The identified STA of breath sends probe message, and sending time instruction is used to indicate trunking and is identified to the identification information of STA
STA send probe message time point.For example, the sending time instruction can be AP be trunking arrangement for
STA sends the period of probe message or at least one time point etc., and trunking can be in the period or these times
Point sends probe message to the STA of associated AP.
In another example relaying probe request message indicates that trunking sends another of probe message to the STA of associated AP
Mode is:Relaying probe request message includes:The identification information of STA sends instruction, number instruction and sends interval instruction;Its
In, the identification information of STA needs which STA to send probe message to for identifying, send instruction be used to indicate trunking to
The STA that the identification information of STA is identified sends probe message, and number instruction is used to indicate identification information of the trunking to STA
The STA identified sends the number of probe message, and sends interval instruction and be used to indicate identification information institute of the trunking to STA
The STA of mark sends the time interval of probe message.Based on this, trunking can according to send interval instruction it is indicated when
Between the STA that are identified to the identification information of STA of gap periods send probe message, the total number until sending probe message
Until reaching the indicated number of the number instruction.
Further, be based on above-mentioned various modes, AP can also be carried in relay probe request message transmission power indicate,
Code modulation mode indicates and sending strategy indicates etc..Wherein, transmission power instruction is used to indicate mark of the trunking to STA
The STA that information is identified sends the power that probe message uses, and code modulation mode instruction is used to indicate trunking to STA
The STA that is identified of identification information send the code modulation mode that probe message uses, sending strategy instruction is used to indicate relaying
Equipment sends probe message in the STA identified to the identification information of STA, but is the failure within a specified time receive STA's
When the probe response message that the STA that identification information is identified is returned, to send the adjustment that probe message is made to the STA again,
For instance it can be possible that adjustment transmission power, code modulation mode etc..
For trunking, after receiving relaying probe request message, according to the finger of relaying probe request message
Show, the STA identified to the identification information of STA sends probe message, and the STA is waited for be directed to the detection that the probe message returns
Response message.If trunking in specified receiving time, receives the probe response message of STA returns, then relaying is set
It is standby to return to relaying detection success message to AP.The probe message is indicated including at least the identification information of the STA and detection, described
Detection instruction, which is used to indicate, detects the STA.Wherein, after STA receives probe message, can specifically be disappeared according to the detection
Detection instruction in breath returns to probe response message.The probe response message may include that the identification information of STA and relaying are set
Standby identification information, trunking here refers to the trunking for sending probe message corresponding with the probe response message.
Optionally, if trunking is in specified receiving time, the probe response message of STA returns is not received,
Then trunking can return to relaying detection failed message to AP.Alternatively, if trunking in specified receiving time, not
The probe response message of STA returns is received, trunking can not send any message to AP.
Illustrate herein, since the quantity of trunking may be more, so the quantity of the probe message of channel
May be more, in order to save channel resource, such as reduce the time of probe message busy channel, probe message can be smaller,
Such as probe message can be no data packet(Null Data Packet, referred to as NDP)The data frame of type, but be not limited to
This.
Probe message can also be the beacon frame of trunking broadcast(Beacon), but not limited to this.
Probe response message can be existing probe request in standard(Probe Request Frame), but it is unlimited
In this.
Step 102, AP receive the relaying detection success message of the return of the first trunking at least one trunking,
Relaying detection success message is the first trunking in the probe message return for receiving STA for the transmission of the first trunking
Probe response message after send.
AP can receive the relaying that trunking returns after sending relaying probe request message in specified receiving time
Detect success message.Since not all trunking can detect the STA, so AP may can only be received in part
Success message is detected after the relaying that equipment returns.For ease of distinguishing, the present embodiment will return to relaying detection success message to AP
Trunking is known as the first trunking.
Based on this, AP at least one trunking after sending relaying probe request message, during reception is at least one
Success message is detected after the relaying that the first trunking in equipment is sent.
Optionally, AP can also receive other trunkings in addition to the first trunking at least one trunking
The relaying of transmission detects failed message.
Optionally, the probe response message that STA is returned can be that relay request message or ACK determine message etc..
Illustrate herein, relaying detection success message can be existing probing response frame in standard(ProbeResponse
Frame), but not limited to this.
Step 103, AP are established by the first trunking and STA and are communicated to connect.
AP passes through the first trunking and STA after receiving the relaying detection success message of the first trunking transmission
Establish communication connection.
In the present embodiment, the part or all of trunking of AP initiatives removes detection and the associated STA of AP, and according to this
Whether a little trunkings return to relaying detection success message, are therefrom determined to provide the trunking of relay services for the STA,
The trunking that AP in this way can be capable of providing relay services by these is communicated with STA, as AP and the STA for being associated with the AP
Can not direct communication when, AP can re-establish communication connection as early as possible by determining trunking and the STA, rather than simply
The STA is abandoned, the loss for causing significant data is avoided.
In an optional embodiment, the process that AP establishes communication connection by the first trunking with STA includes:If
First trunking is multiple, and AP selects one as object relay equipment, to object relay from multiple first trunkings
Equipment sends relaying instruction message, to indicate that the object relay equipment provides relay services for AP and STA, then by target
It establishes and communicates to connect after equipment and the STA.Wherein, object relay equipment refers to providing the relayings of relay services for AP and STA to set
It is standby.
If there are one the first trunkings, AP can directly determine that first trunking sets for object relay
It is standby, relaying instruction message is sent to the object relay equipment, communication link is then established by the object relay equipment and the STA
It connects.
In this embodiment, by AP from the first trunking selection target trunking, and by object relay
Equipment sends relaying instruction message and the trunking is made to know that oneself is object relay equipment, is responsible between AP and STA
Communication is relayed.
Based on above-mentioned, a kind of AP modes of selection target trunking from multiple first trunkings include:AP according to
Signal strength, signal power and/or the letter for multiple relayings detection success message that multiple first trunkings received are sent
Make an uproar than etc.(I.e. signal strength, signal power and signal-to-noise ratio etc. at least one of), therefrom selection signal is best in quality(Such as
Signal strength is most strong, signal power is maximum and/or signal-to-noise ratio is most high)First trunking set as object relay
It is standby.Alternatively, AP can also randomly choose one from multiple first trunkings is used as object relay equipment.The embodiment has
Body is by AP selection target trunkings.
AP another ways of selection target trunking from multiple first trunkings include:AP is more from what is received
In multiple relayings detection success message that a first trunking is sent, acquisition includes the first relaying detection of relay request mark
Success message, relay request mark are to send the first trunking of the first relaying detection success message to meet preset the
It is encapsulated into when one condition in the first relaying detection success message;Then, AP is from the first relaying detection success message corresponding the
Selected in one trunking one as object relay equipment.Optionally, if the first relaying detection success message is one,
AP can directly determine the first trunking for sending the first relaying detection success message as object relay equipment;If the
One relaying detection success message is multiple, then AP can therefrom randomly choose one first relaying detection success message, will send
First trunking of selected first relaying detection success message is as object relay equipment.Alternatively, AP can be according to more
Signal strength, signal power and/or the signal-to-noise ratio etc. of a first relaying detection success message, therefrom selection signal is top-quality
First relaying detection success message will send the first trunking of selected first relaying detection success message as target
Trunking, etc..
Above-mentioned first condition may include following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the STA that first trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between first trunking and the AP is better than preset link-quality.The link-quality is
It is preset, can be the various parameter values for being used for weighing link-quality, in the present embodiment, preset link-quality is main
As the standard for weighing the link-quality between the first trunking and AP.
The process of the above embodiment is specially:Receive the of the probe response message that STA is returned for probe message
One trunking judges whether to meet preset first condition, if it is judged that being yes, that is, meets preset first condition,
Then the first trunking encapsulation relay request mark in relaying detects success message, for identifying first trunking request
As object relay equipment;Include relaying from sending after AP receives the relaying detection success message of the first trunking transmission
The relaying of request mark detects success message(I.e. first relaying detection success message)The first trunking in selection target
After equipment, is then established and communicated to connect by object relay equipment and the STA.The embodiment is also finally by AP selection targets
Trunking.
Optionally, if it is judged that being no, that is, be unsatisfactory for preset first condition, then the first trunking directly will in
It is sent to AP after detection success message, does not include in this case, in relaying detection success message that relay request identifies.
AP another mode of selection target trunking from multiple first trunkings includes:AP is from multiple first
Include the second relaying detection success message for relaying instruction after in multiple relayings detection success message that equipment is sent, obtaining;Institute
It is to send the first trunking that second relays detection success message to obtain and encapsulate from probe response message to state relaying instruction
Into the second relaying detection success message, the relaying instruction detects successfully for identifying STA selections the second relaying of transmission
First trunking of message is as object relay equipment;Then, AP determines that the second relaying detects success message corresponding first
Trunking is object relay equipment.Wherein, the second corresponding first trunking of relaying detection success message be send this
First trunking of two relaying detection success messages.
The process of aforesaid way is specially:STA receives the spy of the transmission of the first trunking at least one trunking
After surveying message, according to the relevant information of probe message, such as the received signal strength of probe message or reception power etc., one is selected
A probe message, and determine and send the first trunking of selected probe message as object relay equipment, to this
It is encapsulated in the probe response message that one trunking returns(It can be regarded as carrying)Relaying instruction, with instruction selection first relaying
Equipment is as object relay equipment;After first trunking receives probe response message, in probe response message
It is encapsulated in relaying detection success message after instruction, is then sent to AP;For other the first trunkings, STA can be returned
The probe response message of relaying instruction is not carried, other trunkings can also return to the relaying for not carrying and relaying and indicating to AP and visit
Survey success message.Based on this, AP from receive relaying detection success message in, selection include relaying instruction relaying detect at
Work(message(I.e. second relaying detection success message), and using send second relaying detection success message the first trunking as
Object relay equipment.In this embodiment, object relay equipment is specifically to be determined by STA.
Illustrate herein, in the mode of above-mentioned each determining object relay equipment, the probe response message that STA is sent can be with
Including with some relevant information of STA, such as battery capacity, location information etc. that STA is current.Optionally, the first trunking
Information related with STA in probe response message can be detected success message by relaying and be reported to AP.
Illustrate herein, the process of above-mentioned determining object relay equipment, is all that STA is detected according to the instruction of AP in trunking
During carry out, but it is not limited to this.For example, determining that the process of object relay equipment can complete the detection to STA
It carries out later, that is, the process for detecting STA can be mutual indepedent with the process for determining object relay equipment.For being independently determined target
The process of trunking(Referred to as object relay device assignment process), it is exemplified below:
Optionally, after completing to the detection of STA, i.e. AP receive relaying detection that each first trunking is sent at
After work(message, STA can determine object relay equipment from the first trunking for sending probe message, then to as mesh
The first trunking for marking trunking sends relaying notice message, on the one hand informs first trunking as object relay
On the other hand equipment makes first trunking send relaying notice message to AP, AP is made to know that first trunking is mesh
Mark trunking;Based on this, the first trunking that object relay equipment is selected as by STA sends relaying notice message to AP;
After AP receives relaying notice message, determine the first trunking for sending relaying notice message as object relay equipment.
Optionally, after completing to the detection of STA, i.e. AP receive relaying detection that each first trunking is sent at
After work(message, AP can determine object relay equipment from sending to relay in the first trunking for detecting success message, then
Relaying notice message can be sent to each first trunking, which may include as object relay equipment
The identification information of first trunking, which the first trunking on the one hand notices object relay equipment is, is on the other hand made
The object relay equipment sends relaying notice message to STA, and STA is made to know that first trunking is object relay equipment, or
Person, the first trunking that AP can also only be selected as object relay equipment to this send relaying notice message, notice its quilt
As object relay equipment;Based on this, the first trunking that object relay equipment is selected as by AP sends relaying notice to STA
Message;After STA receives relaying notice message, determine that the first trunking for sending relaying notice message is set as object relay
It is standby.
From the foregoing, it can be seen that during above-mentioned object relay device assignment, STA and AP can be used as which arbitrator determines
A first trunking is as object relay equipment.In addition to aforesaid way, there can also be other modes, details are not described herein.
Based on the mode of above-mentioned various determining object relay equipment, AP establishes communication link by object relay equipment and STA
Can also include after connecing:
AP receives the second encryption message that object relay equipment is sent, and the second encryption message is that the object relay is set
Acquisition is encrypted in standby the second key pair first encryption message using between the AP and the object relay equipment, described
First encryption message is that acquisition is encrypted to cipher key acquisition request using the first key between STA and AP in STA.
Then, AP is STA according to cipher key acquisition request and object relay equipment distributes third key, and uses the second key
Third key is encrypted, third is obtained and encrypts message, acquisition the 4th, which is encrypted, to third key using first key adds
Close message.Specifically, after AP receives the second encryption message, can be parsed successively using the second key and first key,
Cipher key acquisition request is obtained, is then STA and object relay equipment distribution third key according to cipher key acquisition request, and make respectively
It is encrypted with first key and the second key pair third key, obtains the 4th encryption message and third encrypts message.
Third encryption message is sent to object relay equipment by AP, and is encrypted message by the described 4th and be sent to the target
Trunking, so that the object relay equipment encrypts message by the described 4th is transmitted to STA, so that the object relay equipment
It is communicated using the third key with STA.Later, object relay equipment encrypts from third and obtains third key in message,
STA obtains third key from the 4th encryption message, and then STA and object relay equipment use third key pair to each other logical
Letter process is encrypted, to realize secure communication.
Due to establishing safe communication connection by the second key of agreement between object relay equipment and AP, and
And STA can not with AP direct communications before, can also pass through the first key made an appointment between STA and AP and establish the logical of safety
Letter connection, i.e. STA trust AP with object relay equipment, therefore, for security reasons, can be using AP as STA and mesh
The third party that mark trunking is trusted jointly provides the third key for communicating and using by AP for STA and object relay equipment so that
It is securely communicated based on the third key between object relay equipment and STA.
Fig. 2 is another flow chart for connecting method for building up provided in an embodiment of the present invention.As shown in Fig. 2, the present embodiment
Method include:
Step 201, trunking receive the relaying probe request message that AP is sent, and the relaying probe request message is for referring to
Show that trunking sends probe message to the STA of associated AP.
Optionally, the relaying probe request message of trunking reception AP transmissions includes:Trunking receives AP in determination
The relaying probe request message that AP and the STA can not be sent after direct communication.
Step 202, trunking send probe message according among the above after the instruction of probe request message to STA.
The probe message may include that the identification information of the STA of the associated AP and detection indicate, the detection instruction
It is used to indicate and the STA is detected.
Wherein, which can send probe message in a manner of unicast or broadcast to the STA.
If step 203, trunking receive the probe response message of STA returns, during trunking is sent to AP
After detecting success message, so that AP is selected as from the trunking for returning to relaying detection success message in AP and STA offers
After the object relay equipment of service, and is established and communicated to connect by the object relay equipment and the STA.
The probe response message may include the identification information of above-mentioned STA and the identification information of trunking.Further,
The probe response message can also including STA current electric quantity information and/or STA location information, etc..
Optionally, if trunking does not receive the probe response message of STA returns, trunking can be sent out to AP
Send relaying detection failed message.Alternatively, if trunking does not receive the probe response message of STA returns, trunking
Any message can not be sent to AP.
In an optional embodiment, the process that trunking sends relaying detection success message to AP includes:Relaying is set
It is standby to judge whether to meet preset first condition;If it is judged that being yes, during relay request mark is encapsulated in by trunking
After detecting in success message, the relaying detection success message for being packaged with relay request mark is sent to AP, the relaying is asked
Ask mark for identify the trunking request be used as object relay equipment, for AP from request as in object relay equipment
After selection target trunking in equipment.Judging result be it is no in the case of, trunking be sent to AP relaying detection at
Work(message can not include that relay request identifies.
The preset first condition includes following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the STA that trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between trunking and AP is better than preset link-quality.
For reception power by first condition for probe response message is more than default reception power threshold, trunking tool
Body judges whether the reception power of probe response message is more than preset reception power threshold, if it is judged that for more than then
Relay request mark is encapsulated in relaying detection success message, the relaying for being packaged with relay request mark is detected and is successfully disappeared
Breath is sent to AP;If it is judged that being no, can relaying detection success message be directly sent to the AP.
In an optional embodiment, the probe response message that STA is sent includes relaying instruction, for identifying STA choosings
The trunking is selected as object relay equipment.Then trunking includes to the process of AP transmission relaying detection success messages:In
Relaying instruction is encapsulated in relaying detection success message after equipment, the relaying detection success message hair of relaying instruction will be packaged with
AP is given, so that AP selects the trunking as object relay equipment.
In an optional embodiment, if the trunking is object relay equipment, the method further includes:
Trunking as object relay equipment receives the first encryption message that STA is sent, the first encryption message
It is that acquisition is encrypted to cipher key acquisition request using the first key between the STA and AP in the STA;
Then, which adds the first encryption message using the second key between the trunking and AP
It is close, obtain the second encryption message;
After obtaining the second encryption message, the second encryption message is sent to AP by trunking, so that AP is according to therein
Cipher key acquisition request is the STA and object relay equipment distributes third key;Wherein, AP is distributed after third key, can be adopted
Third key is encrypted with first key, the 4th encryption message is obtained, is encrypted using the second key pair third key,
It obtains third and encrypts message, and third encryption message and the 4th encryption message are sent to the trunking(I.e. object relay is set
It is standby);
Then, trunking receives the third encryption message and the 4th encryption message that AP is sent, and encrypts message by the 4th
It is transmitted to STA, to be communicated using third key with the STA, the third encryption message is that the AP uses described second
Third key encryption described in key pair obtains, and the 4th encryption message is the AP using the first key to described the
Acquisition is encrypted in three keys.
Optionally, the relaying probe request message that AP is sent includes the identification information of STA and sends instruction, which indicates
It is used to indicate the STA that trunking is identified to the identification information of STA and sends probe message.
Further, the relaying probe request message can also include sending time instruction, number instruction and send interval
At least one of instruction.Sending time instruction is used to indicate the STA that trunking is identified to the identification information of STA and sends
The time point of probe message;Number instruction, which is used to indicate the STA that trunking is identified to the identification information of STA and sends to detect, to disappear
The number of breath;It sends interval instruction and is used to indicate the STA transmissions institute probe message that trunking is identified to the identification information of STA
Time interval.
For example, the relaying probe request message that AP is sent may include the identification information of STA, send instruction and sending time
Instruction.
In another example the relaying probe request message that AP is sent may include:The identification information of STA, transmission instruction, number refer to
Show and send interval instruction.
Connection method for building up provided in this embodiment is the description carried out from the angle of trunking, and detailed description can join
Embodiment as shown in Figure 1, details are not described herein.
In the present embodiment, the part or all of trunking of AP initiatives go detection should and the associated STA of AP, and according to
Whether these trunkings return to relaying detection success message, and the relaying for being therefrom determined to provide relay services for the STA is set
Standby, such AP can be communicated by the trunking determined with the STA, in this way AP and STA can not direct communication when,
It can be established and be communicated to connect with the STA again as early as possible by determining trunking, rather than simply abandon the STA, avoid making
At the loss of significant data.
Fig. 3 A are the flow chart of another connection method for building up provided in an embodiment of the present invention.As shown in Figure 3A, this implementation
Example method include:
Step 301, STA receive the probe message that trunking is sent, and the probe message is that trunking is closed according to STA
What the instruction for the relaying probe request message that the AP of connection is sent was sent.
Optionally, to be AP determining that the AP and STA can not send after direct communication to the relaying probe request message.
The probe message may include that the identification information of STA and detection indicate, the detection instruction is used to indicate to this
STA is detected.
Step 302, STA to trunking send probe response message so that trunking to AP return relaying detection at
Work(message, so that AP is selected as the AP and STA from the trunking for returning to relaying detection success message provides relay services
Object relay equipment, and pass through object relay equipment and the STA and establish and communicate to connect.
The probe response message may include the identification information of STA and the identification information of trunking.Further, described
Probe response message can also including the STA current electric quantity information and/or the STA location information, etc..
In an optional embodiment, STA receives the probe message that trunking is sent and includes:STA receives at least one
The probe message that trunking is sent.
The probe message that at least one trunking is sent is received based on STA, STA sends probe response to trunking and disappears
Breath, so that a kind of embodiment that trunking returns to relaying detection success message to AP includes:STA to it is described it is at least one in
Probe response message is sent after each trunking in equipment, is successfully disappeared so that each trunking returns to relaying and detect to AP
Breath.In this embodiment, STA returns to probe response message for receiving each probe message.
The probe message that at least one trunking is sent is received based on STA, STA sends probe response to trunking and disappears
Breath, so that the another embodiment that trunking returns to relaying detection success message to AP includes:STA is to described at least one
The trunking for meeting preset second condition in trunking sends probe response message, so as to meet preset second condition
Trunking to AP return relaying detection success message.In this embodiment, STA is returned for each probe message
Probe response message is returned, but selectively returns to probe response message, can reduce to return to relay to AP detecting successfully in this way
The number of the trunking of message advantageously reduces the message number transmitted in network, is conducive to save Internet resources.
Specifically, STA can preset second condition, after STA receives probe message, judge to send the probe message
Trunking whether meet preset second condition, if it is satisfied, then to the trunking return probe response message, if
Judging result is to be unsatisfactory for, then does not return to probe response message to the trunking.
The second condition may include following either condition or combinations thereof:
The reception power of the probe message is more than default reception power threshold;
The signal-to-noise ratio of the probe message is more than default signal-noise ratio threshold;
Link-quality between STA and trunking is better than preset link-quality.
By link-quality of the second condition between STA and trunking better than for preset link-quality, STA is connecing
After receiving a probe message, judge the link-quality between STA and the trunking for sending the probe message whether better than pre-
If link-quality, if it is judged that be it is yes, then to the trunking return probe response message, if it is judged that being
It is no, then do not return to probe response message to the trunking.
Further, STA meets the trunking transmission detection sound of preset second condition at least one trunking
Message is answered, so that the trunking for meeting preset second condition includes to AP return relaying detection success messages:
STA selects one as object relay equipment, and is sending from the trunking for meeting preset second condition
To encapsulation relaying instruction in the probe response message of the object relay equipment, to identify the object relay equipment of STA selections;So
Afterwards, the probe response message for being packaged with relaying instruction is sent to object relay equipment by STA, so that object relay equipment is returned to AP
Return the relaying detection success message for carrying relaying instruction.
Further, for meeting other trunkings of preset second condition, STA, which can be returned, does not carry relaying instruction
Probe response message.
In an optional embodiment, the connection method for building up further includes:STA is close using first between STA and AP
Cipher key acquisition request is encrypted in key, obtains the first encryption message;The cipher key acquisition request is used for should to AP acquisition requests
The third key used between STA and object relay equipment;
After obtaining the first encryption message, the first encryption message is sent to object relay equipment by STA, so that object relay is set
Standby the second key pair first encryption message using between object relay equipment and AP is sent to AP after being encrypted;Specifically,
Object relay equipment is encrypted using the second key pair first encryption message, the second encryption message is obtained, then by the
Two encryption message are sent to AP.
Then, STA receive object relay equipment send carry third key the 4th encryption message, with in target
It is communicated using third key after equipment, the 4th encryption message is that AP is encrypted third key using first key
It obtains.It after AP receives the second encryption message, can be parsed successively using the second key and first key, obtain key
Request is obtained, is then STA and object relay equipment distribution third key according to cipher key acquisition request, and close using first respectively
Key and the second key pair third key are encrypted, and obtain the 4th encryption message and third encrypts message, then by the 4th encryption
Message and third encryption message are sent to object relay equipment, the 4th encryption message are sent to STA by object relay equipment, mesh
It marks trunking and encrypts acquisition third key in message from third, STA obtains third key from the 4th encryption message, then
STA is encrypted with object relay equipment using third cipher key pair communication process, to realize secure communication.
Connection method for building up provided in this embodiment is the description carried out from the angle of STA, and detailed description can be found in Fig. 1
Illustrated embodiment, details are not described herein.
In the present embodiment, the part or all of trunking of AP initiatives removes detection and the associated STA of AP, and according to this
Whether a little trunkings return to relaying detection success message, are therefrom determined to provide the trunking of relay services for the STA,
AP in this way can be communicated by the trunking determined with the STA, when AP and the STA can not direct communication when, AP can
To re-establish communication connection as early as possible by the trunking determined and the STA, rather than the STA is simply abandoned, avoids making
At the loss of significant data.
Fig. 3 B are the flow chart of another connection method for building up provided in an embodiment of the present invention.As shown in Figure 3B, the side
Method includes:
Step 3a, AP broadcast relays probe request message, the relaying probe request message include at least the identification information of STA
Refer to the transmission that the trunking for receiving relaying probe request message is detected to STA transmissions probe message is used to indicate
Show.
Step 3b, it after trunking receives relaying probe request message, is indicated according to transmission therein, is sent to STA
Probe message, the probe message is including at least the identification information of STA and for identifying the detection instruction detected to STA.
Step 3c, after STA receives probe message, probe response message, the probe response message are returned to trunking
The identification information of identification information and trunking including at least STA.Further, which can also include:STA
Current electric quantity information, location information etc..
The present embodiment is by taking a trunking returns to probe response message thereto as an example.
Step 3d, after trunking receives probe response message, relaying detection success message is sent to AP.
Step 3e, AP is from the trunking for returning to relaying detection success message, selection target trunking.
Step 3f, AP is established by object relay equipment and STA and is communicated to connect.
Further, after AP establishes communication connection by object relay equipment and STA, further include:
Step 3g, STA sends the first encryption message to object relay equipment, and the first encryption message is that STA uses STA and AP
Acquisition is encrypted to cipher key acquisition request in the first key arranged before.
Step 3h, object relay equipment is used is encrypted with the second key pair first encryption message arranged before AP,
The second encryption message is obtained, and the second encryption message is sent to AP.
Step 3i, the second encryption of AP receptions message obtains the first encryption message from the second encryption message, then adds from first
Cipher key acquisition request is obtained in close message, distributes third key according to cipher key acquisition request, and use first key and second respectively
Key pair third key is encrypted, and obtains the 4th encryption message and third encrypts message, third encrypts message and the 4th encryption
Message carries third key.
Step 3j, third is encrypted message by AP and the 4th encryption message is sent to object relay equipment.
Step 3k, object relay equipment encrypts from third and obtains third key in message, and the 4th encryption message is sent to
STA。
Step 3l, STA obtains third key from the 4th encryption message, then uses third key and object relay equipment
It securely communicates.
Fig. 4 is a kind of structural schematic diagram of AP provided in an embodiment of the present invention.As shown in figure 4, the AP of the present embodiment includes:
Sending module 41, receiving module 42 and connection establishment module 43.
Sending module 41, for sending relaying probe request message at least one trunking, the relaying detection is asked
It asks message to be used to indicate trunking and sends probe message to the STA of association the present embodiment AP.
Receiving module 42, the relaying for receiving the return of the first trunking at least one trunking detect successfully
Message, the relaying detection success message are the first trunkings in the STA for receiving association the present embodiment AP is for first
It is sent after the probe response message that the probe message that equipment is sent returns.Receiving module 42 is connect with sending module 41.
Connection establishment module 43 is connect with receiving module 42, for being communicated with STA foundation by the first trunking
Connection.
In an optional embodiment, sending module 41, which is particularly used in, is determining that the present embodiment AP and STA can not
After direct communication, the relaying probe request message is sent at least one trunking.
In an optional embodiment, receiving module 42 is additionally operable to receive at least one trunking except the first relaying is set
The relaying that other trunkings except standby are sent detects failed message.
In an optional embodiment, as shown in figure 4, a kind of realization structure packet of the connection establishment module 43 of the present embodiment
It includes:Selecting unit 431, transmission unit 432 and establish unit 433.
Selecting unit 431 is connect with receiving module 42, is used for when the first trunking is multiple, from multiple first
After selected in equipment one as object relay equipment.Transmission unit 432 is connect with selecting unit 431, is used for selecting unit
The object relay equipment of 431 selections sends relaying instruction message, to indicate the object relay equipment as the present embodiment AP and be somebody's turn to do
STA provides relay services.Unit 433 is established, is connect with selecting unit 431, in the target for being selected by selecting unit 431
It establishes and communicates to connect after equipment and the STA.
Optionally, selecting unit 431 is particularly used in when the first trunking is multiple, from multiple first trunkings
In the multiple relayings detection success message sent, it includes that the first relaying of relay request mark detects success message to obtain, from the
Selected in one corresponding first trunking of relaying detection success message one as object relay equipment;The relay request mark
Knowledge is to send the first trunking that first relays detection success message to be encapsulated into first when meeting preset first condition
After detecting in success message.
The first condition may include following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that first trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between first trunking and described access point is better than preset link-quality.
Optionally, selecting unit 431 is particularly used in when the first trunking is multiple, from multiple first trunkings
In the multiple relayings detection success message sent, it includes the second relaying detection success message for relaying instruction to obtain, and determines second
Corresponding first trunking of relaying detection success message is object relay equipment;The relaying instruction is to send the second relaying to visit
Survey success message the first trunking from obtained in probe response message and be encapsulated into the second relaying detection success message in,
The relaying instruction selects the first trunking for sending the second relaying detection success message as target for identifying the STA
Trunking.
In an optional embodiment, sending module 41, which is particularly used in, to be sent out with broadcast mode at least one trunking
Send relaying probe request message.Or
Sending module 41 is particularly used in sends relaying probe request message with multicast mode at least one trunking.
Or
Sending module 41 is particularly used in sends relaying probe request message with mode of unicast at least one trunking.
The relaying probe request message that sending module 41 is sent may include the identification information of STA and send instruction, described
It sends and indicates that being used to indicate the STA that trunking is identified to the identification information of STA send probe message.
Further, the relaying probe request message can also include sending time instruction, number instruction and send interval
At least one of instruction.The sending time instruction is used to indicate the STA hairs that trunking is identified to the identification information of STA
Send the time point of the probe message;The number instruction is used to indicate the STA that trunking is identified to the identification information of STA
Send the number of the probe message;Transmission interval instruction is used to indicate trunking and is identified to the identification information of STA
STA send the time interval of the probe message.
Wherein, probe message may include that the identification information of STA and detection indicate, the detection instruction is used to indicate to institute
STA is stated to be detected.
Probe response message may include the identification information probe message corresponding with the probe response message is sent of STA
The identification information of trunking.
Further, the location information for the current electric quantity information and/or STA that the probe response message can also be including STA.
Further, as shown in figure 4, the AP of the present embodiment further includes:Obtain module 44.
Based on this, receiving module 42 is additionally operable to receive the second encryption message that object relay equipment is sent, and described second adds
Close message is that object relay equipment uses the second key pair first encryption message between the present embodiment AP and object relay equipment
Acquisition is encrypted, the first encryption message is that STA obtains key using the first key between STA and the present embodiment AP
Take request that acquisition is encrypted.
Module 44 is obtained, for being that the STA and object relay equipment distribution third are close according to the cipher key acquisition request
Key, and being encrypted using the second key pair third key is obtained third and encrypts message, using first key to third key into
Row encryption obtains the 4th encryption message.Module 44 is obtained to connect with receiving module 42 and sending module 43.
Sending module 41 is additionally operable to third encryption message being sent to object relay equipment, and the 4th encryption message is sent
Give object relay equipment so that object relay equipment by the 4th encryption message be transmitted to STA so that object relay equipment with should
STA is communicated using third key.
Each function module or unit of AP provided in this embodiment can be used for executing the stream in connection method for building up shown in Fig. 1
Journey, concrete operating principle repeat no more, and refer to the description of embodiment of the method.
AP provided in this embodiment, partly or entirely trunking goes detection to be associated with the STA of the AP in initiative network,
And relaying detection success message whether is returned according to these trunkings, it is therefrom determined to provide relay services for the STA
Trunking, later, AP can be established with STA by the trunking determined and be communicated to connect, in this way when AP and STA can not be straight
When connecting letter, AP can be established by the trunking determined with the STA and be communicated to connect again as early as possible, rather than simply be abandoned
The STA avoids the loss for causing significant data.
Fig. 5 is the structural schematic diagram of another AP provided in an embodiment of the present invention.As shown in figure 5, AP provided in this embodiment
Including:Communication interface 51, processor 52 and memory 53.
Communication interface 51, for sending relaying probe request message at least one trunking, the relaying detection is asked
It asks message to be used to indicate trunking and sends probe message to the AP of association the present embodiment;And receive at least one trunking
In the relaying that returns of the first trunking detect success message, it is that the first trunking is connecing that the relaying, which detects success message,
Receive what the probe response message that STA is returned for the probe message that the first trunking is sent was sent later.
Memory 53, for storing program.Specifically, program may include program code, said program code includes meter
Calculation machine operational order.Memory 53 can include high-speed RAM memory, can also include nonvolatile memory(non-
volatile memory), a for example, at least magnetic disk storage.
Processor 52, the program for executing the storage of memory 53, for being built with STA by communicating the first trunking
Vertical communication connection.
Processor 52 can be one or more central processing units(Central Processing Unit, referred to as
CPU)Or specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or
Person is arranged to implement one or more integrated circuits of the embodiment of the present invention.
In an optional embodiment, optionally, processor 52 can not can directly lead to determining the present embodiment AP and STA
After letter, control communication interface 51 sends relaying probe request message at least one trunking.
In an optional embodiment, communication interface 51 is additionally operable to receive at least one trunking except the first relaying is set
The relaying that other trunkings except standby are sent detects failed message.
In an optional embodiment, processor 52 is specifically used for when the first trunking is multiple, from multiple first
One is selected in trunking as object relay equipment, is then controlled communication interface 51 and is sent out to selected object relay equipment
Relaying instruction message is sent, to indicate that the object relay equipment provides relay services as described access point and the website, and is led to
It crosses selected object relay equipment and establishes communication connection with STA.
Optionally, processor 52 is particularly used in when the first trunking is multiple, is detected from multiple relayings and is successfully disappeared
In breath, acquisition includes the first relaying detection success message of relay request mark, and it is corresponding to detect success message from the first relaying
Selected in first trunking one as object relay equipment;The relay request mark is to send the first relaying to detect successfully
First trunking of message is encapsulated into when meeting preset first condition in the first relaying detection success message.
The first condition may include following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the website that first trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between first trunking and the present embodiment AP is better than preset link-quality.
Optionally, processor 52 is particularly used in when the first trunking is multiple, is detected from multiple relayings and is successfully disappeared
In breath, obtain include relaying instruction the second relaying detection success message, determine that the second relaying detects success message corresponding the
One trunking is object relay equipment;The relaying instruction is to send the first trunking of the second relaying detection success message
From obtaining and being encapsulated into the second relaying detection success message in probe response message, the relaying instruction is for identifying STA
Select the first trunking for sending the second relaying detection success message as object relay equipment.
In an optional embodiment, communication interface 51, which is particularly used in, to be sent out with broadcast mode at least one trunking
Send relaying probe request message.Or
Communication interface 51 is particularly used in sends relaying probe request message with multicast mode at least one trunking.
Or
Communication interface 51 is particularly used in sends relaying probe request message with mode of unicast at least one trunking.
Optionally, the relaying probe request message that communication interface 51 is sent includes that the identification information of STA and transmission indicate, institute
It states transmission instruction and is used to indicate trunking to STA transmission probe messages.
Further, relaying probe request message can also include sending time instruction, number instruction and the instruction of transmission interval
At least one of;The sending time instruction is used to indicate the trunking and sends the probe message to the STA
Time point, the number instruction are used to indicate the number that the trunking sends the probe message to the STA, the hair
Interval instruction is sent to be used to indicate the time interval that the trunking sends the probe message to the STA.
In an optional embodiment, communication interface 51 is additionally operable to receive object relay equipment is sent second and encrypt to disappear
Breath, the second encryption message are that object relay equipment uses the second key pair between the present embodiment AP and object relay equipment
First encryption message is encrypted acquisition, and the first encryption message, which is STA, uses the between the STA and the present embodiment AP
Acquisition is encrypted in one key pair cipher key acquisition request.
Processor 52, it is STA to be additionally operable to according to the cipher key acquisition request and object relay equipment distributes third key, and
It is encrypted using third key described in second key pair, obtains third and encrypt message, using the first key to institute
It states third key and the 4th encryption message of acquisition is encrypted.
Further, communication interface 51 is additionally operable to third encryption message being sent to object relay equipment, and the 4th is encrypted
Message is sent to object relay equipment, so that object relay equipment encrypts message by the described 4th is transmitted to STA, so that in target
It is communicated using third key with the STA after equipment.
Optionally, in specific implementation, if communication interface 51, processor 52 and the independent realization of memory 53, communicate
Interface 51, processor 52 and memory 53 can be connected with each other by bus and complete mutual communication.The bus can be with
It is industry standard architecture(Industry StandardArchitecture, referred to as ISA)Bus, external equipment interconnection
(Peripheral Component, referred to as PCI)Bus or extended industry-standard architecture(Extended Industry
StandardArchitecture, referred to as EISA)Bus etc..The bus can be divided into address bus, data/address bus, control
Bus etc..It for ease of indicating, is only indicated with a thick line in Fig. 5, it is not intended that an only bus or a type of total
Line.
Optionally, in specific implementation, if communication interface 51, processor 52 and memory 53 are integrated on one chip
Realize, then communication interface 51, processor 52 and memory 53 can be completed by internal interface it is identical between communication.
AP provided in this embodiment can be used for executing the flow in connection method for building up shown in Fig. 1, concrete operating principle
It repeats no more, refers to the description of embodiment of the method.
AP provided in this embodiment, partly or entirely trunking goes detection to be associated with the STA of the AP in initiative network,
And relaying detection success message whether is returned according to these trunkings, it is therefrom determined to provide relay services for the STA
Trunking, later, AP can be established with STA by the trunking determined and be communicated to connect, in this way when AP and STA can not be straight
When connecting letter, AP can be established by the trunking determined with the STA and be communicated to connect again as early as possible, rather than simply be abandoned
The STA avoids the loss for causing significant data.
Fig. 6 is a kind of structural schematic diagram of trunking provided in an embodiment of the present invention.As shown in fig. 6, the present embodiment
Trunking includes:Receiving module 61 and sending module 62.
Receiving module 61, the relaying probe request message for receiving AP transmissions, wherein the relaying probe request message
It is used to indicate the present embodiment trunking and sends probe message to the STA of associated AP.
Sending module 62 is connect with receiving module 61, the relaying probe request message for being received according to receiving module 61
Instruction, to STA send probe message, and receiving module 61 receive STA return probe response message after, to AP send out
Relaying detection success message is sent, is provided so that AP is selected as AP and STA from the trunking for returning to relaying detection success message
The object relay equipment of relay services, and established and communicated to connect by object relay equipment and STA.
In an optional embodiment, receiving module 61, which is particularly used in, to be received AP and is determining that AP and STA can not directly lead to
The relaying probe request message sent after letter, and after stating sending module 62 and sending the probe message, receive STA roots
The probe response message returned according to the probe message.
In an optional embodiment, sending module 62 is additionally operable to not receive probe response message in receiving module 61
When, send relaying detection failed message to AP.
In an optional embodiment, sending module 62, which is specifically used for the relaying received according to receiving module 61 detection, asks
The instruction for seeking message sends probe message to STA, and after the probe response message that receiving module 61 receives STA returns,
Judge whether to meet preset first condition, if it is judged that being yes, relay request mark, which is encapsulated in the relaying, to be detected
In success message, the relaying detection success message for being packaged with the relay request mark is sent to AP, the relaying is asked
Mark is asked to be used as object relay equipment for identifying the trunking request, so that AP is set from request as the object relay
The object relay equipment is selected in standby trunking.Optionally, if it is judged that being no, sending module 62 can be direct
Relaying detection success message is sent to AP.
The first condition may include following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the STA that the trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between the trunking and AP is better than preset link-quality.
In an optional embodiment, the probe response message that STA is returned includes relaying instruction, for identifying STA selections
The trunking of the present embodiment is as object relay equipment.Based on this, sending module 62 is specifically used for being connect according to receiving module 61
The instruction of the relaying probe request message of receipts sends probe message to STA, and receives STA returns in receiving module 61
After probe response message, the relaying instruction that receiving module 61 receives is encapsulated in relaying detection success message, will be packaged with
The relaying detection success message of relaying instruction is sent to AP, so that the AP is set from the relaying for returning to the relaying detection success message
The standby middle selection object relay equipment.
In an optional embodiment, as shown in fig. 6, the trunking of the present embodiment further includes:Obtain module 63.
Receiving module 61 is additionally operable to receive the first encryption message that STA is sent, and receives the third encryption that AP is sent and disappear
Breath and the 4th encryption message, the first encryption message are that STA uses the first key between STA and AP to cipher key acquisition request
Acquisition is encrypted;Third encryption message, which is AP, uses the second key pair between AP and the present embodiment trunking the
The encryption of three keys obtains, and the 4th encryption message is that AP is encrypted the third key using the first key and obtains
.The cipher key acquisition request is used for the third key used between the AP acquisition requests STA and object relay equipment.
Module 63 is obtained, connect with receiving module 61, for using second key, to the of the reception of receiving module 61
One encryption message is encrypted, and obtains the second encryption message.It obtains module 63 also to connect with sending module 62, be used for transmission mould
Block 62 provides the second encryption message.
Sending module 62 is additionally operable to the second encryption message being sent to AP, so that AP is according to the cipher key acquisition request
The third key is distributed for STA and object relay equipment, and after receiving module 61 receives the 4th encryption message, it will
The 4th encryption message is transmitted to STA, so that the present embodiment trunking is communicated with STA using the third key.
Sending module 62 is also connect with receiving module 61.
Optionally, the relaying probe request message that receiving module 61 receives may include that the identification information of STA and transmission refer to
Show, the STA for indicating to be used to indicate the present embodiment that sends sends probe message to STA.
Further, the relaying probe request message can also include:Sending time instruction, number instruction and transmission interval
At least one of instruction;The sending time instruction is used to indicate the present embodiment trunking and sends the spy to the STA
It surveys the time point of message, the number instruction is used to indicate the present embodiment trunking and sends the probe message to the STA
Number, it is described send interval instruction be used to indicate the present embodiment trunking to the STA send the probe message when
Between be spaced.
Wherein, probe message may include that the identification information of STA and detection indicate, the detection indicates to be used to indicate pair
The STA that the identification information of STA is identified is detected.
Wherein, probe response message may include the identification information of the identification information and the present embodiment trunking of STA.
Further, the probe response message can also include the current electric quantity information of the STA and/or the STA
Location information.
Trunking provided in this embodiment can be the trunking in above method embodiment, and each function module can
For executing the flow connected shown in Fig. 2 in method for building up, concrete operating principle repeats no more, and refers to retouching for embodiment of the method
It states.
Trunking provided in this embodiment, the AP and STA provided with above-described embodiment are matched, and are received in AP transmissions
After probe request message, and under the instruction of relaying probe request message, probe message is sent to STA, realizes the spy to STA
It surveys, and is detecting STA(Receive the probe response message of STA returns)Afterwards, relaying detection success message is returned to AP, with
AP is set to know that the trunking of the present embodiment detects STA, and then from least one trunking that can detect STA
Middle selection target trunking, passes through object relay equipment and STA and establishes and communicate to connect so that AP can be can not be straight with STA
It when connecting letter, establishes communicate to connect with the STA again as early as possible, rather than simply abandon the STA, avoid causing losing for significant data
It loses.
Fig. 7 is the structural schematic diagram of another trunking provided in an embodiment of the present invention.As shown in fig. 7, the present embodiment
Trunking includes:Communication interface 71, processor 72 and memory 73.
Communication interface 71, the relaying probe request message for receiving AP transmissions, according to the relaying probe request message
Instruction sends probe message to the STA of associated AP, and after the probe response message for receiving STA returns, in being sent to AP
After detection success message, so that AP is selected as AP and STA from the trunking for returning to relaying detection success message provides relaying
The object relay equipment of service, and established and communicated to connect by object relay equipment and STA.
Optionally, communication interface 71, which is particularly used in, receives AP in determining that AP and STA can not be sent after direct communication
After probe request message, and after sending the probe message, the probe response that STA is returned according to the probe message is received
Message.
Memory 73, for storing program.Specifically, program may include program code, said program code includes meter
Calculation machine operational order.Memory 73 can include high-speed RAM memory, can also include nonvolatile memory(non-
volatile memory), a for example, at least magnetic disk storage.
Processor 72, the program for executing the storage of memory 73, for realizing the control of the present embodiment trunking
Logic etc..
Processor 72 can be one or more CPU or specific ASIC, or may be configured to implement the present invention
One or more integrated circuits of embodiment.
In an optional embodiment, communication interface 71 is additionally operable to when not receiving probe response message, is sent to AP
Relaying detection failed message.
In an optional embodiment, processor 72 can be used for after the probe response message that communication interface 71 receives, and sentence
It is disconnected whether to meet preset first condition, if it is judged that be it is yes, by relay request mark be encapsulated in the relaying detect at
In work(message, it will be packaged in the relaying detection success message of the relay request mark, and be supplied to communication interface 71;
Communication interface 71 is specifically used for the relaying detection success message for being packaged with relay request mark being sent to AP, relay request mark
For identify the present embodiment trunking ask be used as object relay equipment, for AP from request as object relay equipment
Selection target trunking in trunking;If it is judged that being no, control communication interface 71 directly detects relaying successfully
Message is sent to AP.
The first condition may include following either condition or combinations thereof:
The reception power of the probe response message is more than default reception power threshold;
The signal-to-noise ratio of the probe response message is more than default signal-noise ratio threshold;
The number for the STA that the trunking is serviced as object relay equipment is less than predetermined number thresholding;
Link-quality between the trunking and AP is better than preset link-quality.
In an optional embodiment, the probe response message that STA is returned may include relaying instruction, for identifying STA
Select the trunking of the present embodiment as object relay equipment.Based on this, processor 72 can be used for receiving communication interface 71
To relaying instruction be encapsulated in relaying detection success message, and be supplied to communication interface 71;Communication interface 71 is specifically used for will
The relaying detection success message for being packaged with relaying instruction is sent to AP.
In an optional embodiment, when the trunking of the present embodiment is object relay equipment, the present embodiment leads to
Letter interface 71 is additionally operable to receive the first encryption message of STA transmissions, and receives the third encryption message and the 4th that AP is sent and add
Close message, the first encryption message is that STA is encrypted cipher key acquisition request using the first key between STA and AP and obtains
;The third encryption message is that AP is encrypted using the second key pair third key between AP and the present embodiment trunking
It obtains, the 4th encryption message is that acquisition is encrypted to third key using first key in AP.The key obtains
Request is for the third key used between the AP acquisition requests STA and object relay equipment.
Processor 72 is also used for second key, is encrypted to the first encryption message, obtains second and add
Close message.
Communication interface 71 is additionally operable to the second encryption message being sent to AP, so that AP is according to the cipher key acquisition request
The third key is distributed for STA and object relay equipment, and after receiving the 4th encryption message, the described 4th is added
Close message is transmitted to STA, so that the trunking of the present embodiment is communicated with STA using the third key.
Optionally, the relaying probe request message that communication interface 71 receives may include that the identification information of STA and transmission refer to
Show, the trunking for indicating to be used to indicate the present embodiment that sends sends probe message to STA.
Further, the relaying probe request message can also include:Sending time instruction, number instruction and transmission interval
At least one of instruction;The sending time instruction is used to indicate the present embodiment trunking and disappears to the STA transmissions detection
The time point of breath, the number instruction are used to indicate the number that the present embodiment trunking sends the probe message to STA, institute
It states the instruction of transmission interval and is used to indicate the time interval that the present embodiment trunking sends the probe message to STA.
The probe message may include that the identification information of STA and detection indicate, the detection instruction is used to indicate to STA
It is detected.
The probe response message may include the identification information of the identification information and the present embodiment trunking of STA.Into
One step, the location information for the current electric quantity information and/or STA that the probe response message can also be including STA.
Optionally, in specific implementation, if communication interface 71, processor 72 and the independent realization of memory 73, communicate
Interface 71, processor 72 and memory 73 can be connected with each other by bus and complete mutual communication.The bus can be with
It is isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc..For
Convenient for indicating, only indicated with a thick line in Fig. 7, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if communication interface 71, processor 72 and memory 73 are integrated on one chip
Realize, then communication interface 71, processor 72 and memory 73 can be completed by internal interface it is identical between communication.
Trunking provided in this embodiment can be the trunking in above method embodiment, can be used for execution figure
Flow in connection method for building up shown in 2, concrete operating principle repeat no more, and refer to the description of embodiment of the method.
Trunking provided in this embodiment, the AP and STA provided with above-described embodiment are matched, and are received in AP transmissions
After probe request message, and under the instruction of relaying probe request message, probe message is sent to STA, realizes the spy to STA
It surveys, and is detecting STA(Receive the probe response message of STA returns)Afterwards, relaying detection success message is returned to AP, with
AP is set to know that the trunking of the present embodiment detects STA, and then from least one trunking that can detect STA
Middle selection target trunking, passes through object relay equipment and STA and establishes and communicate to connect so that AP can be can not be straight with STA
It when connecting letter, establishes communicate to connect with the STA again as early as possible, rather than simply abandon the STA, avoid causing losing for significant data
It loses.
Fig. 8 is a kind of structural schematic diagram of STA provided in an embodiment of the present invention.As shown in figure 8, the STA packets of the present embodiment
It includes:Receiving module 81 and sending module 82.
Receiving module 81, the probe message for receiving trunking transmission, the probe message be trunking according to
What the instruction for the relaying probe request message that the associated AP of the present embodiment STA are sent was sent.
Optionally, the relaying probe request message be AP the STA for determining AP and the present embodiment can not be after direct communication
It sends.
Sending module 82 is connect with receiving module 81, for sending probe response message to trunking, so that relaying is set
It is standby to return to relaying detection success message to AP, so that AP is selected as the AP from the trunking that return relays detection success message
The object relay equipment of relay services is provided with the present embodiment STA, and is established by the STA of object relay equipment and the present embodiment
Communication connection.
Optionally, receiving module 81 is specifically used for receiving the probe message that at least one trunking is sent.
Sending module 82 is specifically used for each trunking at least one trunking and sends the detection sound
Message is answered, so that each trunking returns to the relaying to AP detects success message, so that AP is detected from relaying is returned
It is selected as the AP in the trunking of success message and the present embodiment STA provides the object relay equipment of relay services, and passes through
The STA of object relay equipment and the present embodiment establishes communication connection.Or
Sending module 82 is specifically used for meeting in preset second condition at least one trunking
Send the probe response message after equipment so that meet the trunking of the preset second condition to AP return it is described in
After detection success message, so that AP is selected as the AP and the present embodiment from the trunking for returning to relaying detection success message
STA provides the object relay equipment of relay services, and is established and communicated to connect by the STA of object relay equipment and the present embodiment.
The second condition includes following either condition or combinations thereof:
The reception power of the probe message is more than default reception power threshold;
The signal-to-noise ratio of the probe message is more than default signal-noise ratio threshold;
Link-quality between the present embodiment STA and the trunking is better than preset link-quality.
Further, sending module 82 is specifically used for from the trunking for meeting preset second condition, selects one
As the object relay equipment, and the encapsulation relaying instruction in the probe response message for being sent to the object relay equipment,
Then the object relay equipment for identifying the present embodiment STA selections will be packaged with the detection of the relaying instruction
Response message is sent to the object relay equipment, so that the object relay equipment carries the relaying instruction to AP returns
The relaying detect success message so that AP from return relay detection success message trunking in be selected as the AP and this
Embodiment STA provides the object relay equipment of relay services, and is communicated with the STA of the present embodiment foundation by object relay equipment
Connection.
Optionally, as shown in figure 8, the STA of the present embodiment further includes:Obtain module 83.
Module 83 is obtained, for adding to cipher key acquisition request using the first key between the present embodiment STA and AP
It is close, obtain the first encryption message.The cipher key acquisition request for ask AP distribute the present embodiment STA and object relay equipment it
Between the third key that uses.Sending module 82 is additionally operable to the first encryption message being sent to the object relay equipment, with
Make the object relay equipment using the first encryption message described in the second key pair between the object relay equipment and AP into
It is sent to AP after row encryption, so that AP is the present embodiment STA and object relay equipment distribution the according to the cipher key acquisition request
Three keys.Module 83 is obtained to connect with sending module 82.
Receiving module 81 is additionally operable to receive the 4th encryption message that the object relay equipment is sent, and the 4th encryption disappears
Breath is that acquisition is encrypted to the third key using the first key in AP, in the present embodiment STA and the target
It is communicated using the third key after equipment.
The relaying probe request message may include that the identification information of the present embodiment STA and transmission indicate, the transmission
Instruction is used to indicate the trunking and sends the probe message to the present embodiment STA.
Further, the relaying probe request message can also include sending time instruction, number instruction and send interval
Instruction;The sending time instruction is used to indicate the time that the trunking sends the probe message to the present embodiment STA
Point, the number instruction are used to indicate the number that the trunking sends the probe message to the present embodiment STA, the hair
Interval instruction is sent to be used to indicate the time interval that the trunking sends the probe message to the present embodiment STA.
The probe message may include that the identification information of the present embodiment STA and detection indicate, the detection instruction is used for
Instruction detects the present embodiment STA.
The probe response message may include the identification information of the present embodiment STA and the mark letter of the trunking
Breath.Further, the probe response message can also include the current electric quantity information and/or the present embodiment STA of the present embodiment STA
Location information.
STA provided in this embodiment can be the STA in above method embodiment, and each function module can be used for execution figure
Flow in connection method for building up shown in 3A, concrete operating principle repeat no more, and refer to the description of embodiment of the method.
STA provided in this embodiment, the AP and trunking provided with above-described embodiment are matched, and are received trunking and are existed
The probe message sent under the instruction of AP, and after receiving probe message probe response message is returned to trunking so that
Trunking returns to relaying detection success message and the selection target from the trunking for sending relaying detection success message to AP
Then trunking is established by the STA of object relay equipment and the present embodiment and is communicated to connect so that AP can be with the present embodiment
STA can not direct communication when, established and communicated to connect with the present embodiment STA again as early as possible by object relay equipment, rather than simple
It is single to abandon STA, avoid the loss for causing significant data.
Fig. 9 is the structural schematic diagram of another kind STA provided in an embodiment of the present invention.As shown in figure 9, the STA of the present embodiment
Including:Communication interface 91, processor 92 and memory 93.
Communication interface 91, the probe message for receiving trunking transmission, and send probe response to trunking and disappear
Breath, so that trunking detects success message to the associated AP returns relayings of the present embodiment STA, so that AP is detected from relaying is returned
It is selected as the AP in the trunking of success message and the present embodiment STA provides the object relay equipment of relay services, and passes through
The STA of object relay equipment and the present embodiment establishes communication connection, and the probe message is during trunking is sent according to AP
After probe request message instruction send.
Optionally, the relaying probe request message be AP the STA for determining AP and the present embodiment can not direct communication it
It sends afterwards.
Communication interface 91 is specifically used for receiving the probe message that at least one trunking is sent.Based on this, communicate
Interface 91 is specifically used for each trunking at least one trunking and sends the probe response message, so that institute
It states each trunking and returns to the relaying detection success message to AP, so that AP relays the relaying of detection success message from return
Be selected as the object relay equipment that the AP and the present embodiment STA provides relay services in equipment, and by object relay equipment with
The STA of the present embodiment establishes communication connection.Alternatively, communication interface 91 is specifically used for at least one trunking
The trunking for meeting preset second condition sends the probe response message, so as to meet the preset second condition
Trunking returns to the relaying to AP and detects success message, so that AP is from the trunking for returning to relaying detection success message
It is selected as the AP and the present embodiment STA provides the object relay equipment of relay services, and pass through object relay equipment and this implementation
The STA of example establishes communication connection.
The second condition includes following either condition or combinations thereof:
The reception power of the probe message is more than default reception power threshold;
The signal-to-noise ratio of the probe message is more than default signal-noise ratio threshold;
Link-quality between the present embodiment STA and the trunking is better than preset link-quality.
Further, communication interface 91 is specifically used for from the trunking for meeting preset second condition, selects one
As the object relay equipment, and the encapsulation relaying instruction in the probe response message for being sent to the object relay equipment,
Then the object relay equipment for identifying the present embodiment STA selections will be packaged with the detection of the relaying instruction
Response message is sent to the object relay equipment, so that the object relay equipment carries the relaying instruction to AP returns
The relaying detect success message so that AP from return relay detection success message trunking in be selected as the AP and this
Embodiment STA provides the object relay equipment of relay services, and is communicated with the STA of the present embodiment foundation by object relay equipment
Connection.
Memory 93, for storing program.Specifically, program may include program code, said program code includes meter
Calculation machine operational order.Memory 93 can include high-speed RAM memory, can also include nonvolatile memory(non-
volatile memory), a for example, at least magnetic disk storage.
Processor 92, the program for executing the storage of memory 93, for realizing the control logic of the present embodiment STA
Deng.
Processor 92 can be that one or more CPU either specific ASIC or are arranged to implement implementation of the present invention
One or more integrated circuits of example.
The first key that processor 92 may be used between the present embodiment STA and AP adds cipher key acquisition request
It is close, the first encryption message is obtained, and be supplied to communication interface 91.The cipher key acquisition request is for asking AP to distribute the present embodiment
The third key used between STA and object relay equipment.Communication interface 91 is additionally operable to the first encryption message being sent to
The object relay equipment, so that the object relay equipment uses the second key pair between the object relay equipment and AP
It is described first encryption message be encrypted after be sent to AP so that AP according to the cipher key acquisition request be the present embodiment STA and
Object relay equipment distributes third key, and receives the 4th encryption message that the object relay equipment is sent, and the described 4th
Encrypt message be that acquisition is encrypted to the third key using the first key in AP, with the present embodiment STA with it is described
Object relay equipment is communicated using the third key.
The relaying probe request message may include that the identification information of the present embodiment STA and transmission indicate, the transmission
Instruction is used to indicate the trunking and sends the probe message to the present embodiment STA.
Further, the relaying probe request message can also include sending time instruction, number instruction and send interval
Instruction;The sending time instruction is used to indicate the time that the trunking sends the probe message to the present embodiment STA
Point, the number instruction are used to indicate the number that the trunking sends the probe message to the present embodiment STA, the hair
Interval instruction is sent to be used to indicate the time interval that the trunking sends the probe message to the present embodiment STA.
The probe message may include that the identification information of the present embodiment STA and detection indicate, the detection instruction is used for
Instruction detects the present embodiment STA.
The probe response message may include the identification information of the present embodiment STA and the mark letter of the trunking
Breath.Further, the probe response message can also include the current electric quantity information and/or the present embodiment STA of the present embodiment STA
Location information.
STA provided in this embodiment can be the STA in above method embodiment, can be used for executing connection shown in Fig. 3 A
Flow in method for building up, concrete operating principle repeat no more, and refer to the description of embodiment of the method.
STA provided in this embodiment, the AP and trunking provided with above-described embodiment are matched, and are received trunking and are existed
The probe message sent under the instruction of AP, and after receiving probe message probe response message is returned to trunking so that
Trunking returns to relaying detection success message and the selection target from the trunking for sending relaying detection success message to AP
Then trunking is established by the STA of object relay equipment and the present embodiment and is communicated to connect so that AP can be with the present embodiment
STA can not direct communication when, established and communicated to connect with the present embodiment STA again as early as possible by object relay equipment, rather than simple
It is single to abandon STA, avoid the loss for causing significant data.
The embodiment of the present invention provides a kind of connect and establishes system, and system provided in this embodiment includes:AP, it is at least one in
After equipment and STA.
The AP, for sending relaying probe request message at least one trunking, the relaying detection is asked
It asks message to be used to indicate the trunking and sends probe message to the website, receive at least one trunking
The relaying that first trunking returns detects success message, and the relaying detection success message is that first trunking is connecing
Receive what the probe response message that the website is returned for the probe message that first trunking is sent was sent later;With
And it is established and is communicated to connect by first trunking and the website.
At least one trunking, the relaying probe request message for receiving described access point transmission, root
According to the instruction of the relaying probe request message, the probe message is sent to the website, and return receiving the website
When the probe response message returned, sends the relaying to described access point and detect success message.
The STA, the probe message sent for receiving the trunking, described in trunking transmission
Probe response message.
The realization structure of above-mentioned AP can be found in Fig. 4 or embodiment illustrated in fig. 5, and the realization structure of trunking can be found in Fig. 6
Or with 7 illustrated embodiments, the realization structure of STA can be found in Fig. 8 or embodiment illustrated in fig. 9, repeats no more herein.
System is established in connection provided in this embodiment, by the stream for executing connection method for building up provided in an embodiment of the present invention
Journey, access point to trunking by sending relaying probe request message, so that these trunkings are associated with the station of the access point
Point send probe message simultaneously receive the website return probe response message, trunking after receiving probe response message to
Access point returns to relaying detection success message, and such access point can be obtained from these trunkings can be with site communication
Trunking, then established and communicated to connect by the trunking of acquisition and website, in this way access point and the website can not
In the case of direct communication, access point can establish communication connection as early as possible by these trunkings and website.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to
The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey
When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or
The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.