CN108601094B - Correlation method and device - Google Patents
Correlation method and device Download PDFInfo
- Publication number
- CN108601094B CN108601094B CN201810241483.2A CN201810241483A CN108601094B CN 108601094 B CN108601094 B CN 108601094B CN 201810241483 A CN201810241483 A CN 201810241483A CN 108601094 B CN108601094 B CN 108601094B
- Authority
- CN
- China
- Prior art keywords
- mesh
- mpp
- equipment
- link
- allowed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides a correlation method and a device, which are applied to MESH equipment, wherein the correlation method comprises the following steps: the method comprises the steps of broadcasting a detection request message carrying identification information of the MESH equipment on a target channel, determining a target MPP from at least one MPP if a detection response message which is sent by at least one MPP and used for indicating permission of establishing a MESH link is received, establishing the MESH link with the target MPP, and associating with an AC which allows the MESH equipment to be associated through the established MESH link. By the technical scheme provided by the embodiment of the application, the time consumed for the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time consumed for the successful association process of the MESH equipment and the AC is long is effectively solved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to an association method and an association apparatus.
Background
In the MESH network, a MESH device (MP (MESH Point) providing MESH service or MAP (MESH Access Point) providing MESH service and wireless Access service) is connected to an AC (Access Controller) through an MPP (MESH Point, MESH authentication Point).
Specifically, taking an MP as an example, the MP may traverse an active channel passively scanned by itself, and broadcast a probe request message on the scanned active channel, if the active channel has an MPP providing MESH service, the MPP may feed back a probe response message to the MP, and the MP may establish a temporary MESH link with the MP, attempt to associate with the AC, if the AC connected to the MPP does not allow MP association, the MP needs to switch to a next active channel, attempt to establish the temporary MESH link again and attempt to associate with the AC until an MPP allowed to associate with the connected AC is found, and finally associate with the AC through the MPP and acquire relevant configuration information from the AC. It can be seen that in the process of associating the MP with the AC, the MP may take a long time to establish a MESH link with an irrelevant MPP, and then wait for successful association with the AC, which results in a long time consumption for association.
Disclosure of Invention
An object of the embodiments of the present application is to provide an association method and an association apparatus, so as to solve the problem that a process of successfully associating a MESH device with an AC takes a long time. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an association method, which is applied to a MESH device, where the MESH device is an MP or a MAP, and the method includes:
selecting one active channel from the scanned active channels as a target channel;
broadcasting a detection request message carrying identification information of the MESH equipment on the target channel, so that the MPP receiving the detection request message generates and broadcasts a query request message according to the identification information of the MESH equipment, and the AC receiving the query request message determines whether to allow the MESH equipment to be associated according to the identification information of the MESH equipment;
if a probe response message sent by at least one MPP and used for indicating permission of establishing a MESH link is received, determining a target MPP from the at least one MPP, wherein each probe response message used for indicating permission of establishing the MESH link is as follows: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and establishing a MESH link with the target MPP, and associating with the AC allowing the MESH equipment to be associated through the established MESH link.
In a second aspect, an embodiment of the present application provides an association method, which is applied to MPP, and the method includes:
when a detection request message which is sent by a MESH device and carries identification information of the MESH device is received, generating a query request message according to the identification information of the MESH device and broadcasting the query request message so that an AC (access controller) receiving the query request message determines whether to allow the MESH device to be associated according to the identification information of the MESH device, wherein the detection request message is broadcasted by the MESH device on an active channel which is scanned by the MESH device and is the same as a working channel of the MPP, and the MESH device is an MP or an MAP;
if receiving a query response message which allows the AC associated with the MESH equipment to send, sending a probe response message which indicates that the MESH link is allowed to be established to the MESH equipment, so that the MESH equipment determines a target MPP from a source MPP of the received probe response message, establishes a MESH link with the target MPP, and associates the target MPP with the AC allowed to be associated with the MESH equipment through the established MESH link, wherein the query response message is as follows: and when the AC receiving the query request message determines that the MESH equipment association is allowed, sending a message used for indicating that the MESH equipment association is allowed to the MPP.
In a third aspect, an embodiment of the present application provides an association apparatus, which is applied to a MESH device, where the MESH device is an MP or a MAP, and the apparatus includes:
a selection module, configured to select one active channel from the scanned active channels as a target channel;
a broadcasting module, configured to broadcast a probe request packet carrying identification information of the MESH device on the target channel, so that the MPP that receives the probe request packet generates and broadcasts an inquiry request packet according to the identification information of the MESH device, and the AC that receives the inquiry request packet determines whether to allow the MESH device to associate according to the identification information of the MESH device;
a determining module, configured to determine a target MPP from at least one MPP if a probe response message sent by the at least one MPP and indicating that the MESH link is allowed to be established is received, where each probe response message indicating that the MESH link is allowed to be established is: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and the association module is used for establishing a MESH link with the target MPP and associating the MESH link with the AC allowing the MESH equipment to be associated through the established MESH link.
In a fourth aspect, an embodiment of the present application provides an association apparatus, which is applied to MPP, where the apparatus includes:
a broadcast module, configured to generate and broadcast a query request message according to identification information of a MESH device when receiving a probe request message that is sent by the MESH device and carries the identification information of the MESH device, so that an AC that receives the query request message determines whether to allow the MESH device to associate according to the identification information of the MESH device, where the probe request message is broadcast by the MESH device on an active channel that is scanned by the MESH device and is the same as a working channel of the MPP, and the MESH device is an MP or an MAP;
a sending module, configured to send, if receiving an inquiry response packet that allows the AC associated with the MESH device to send, a probe response packet indicating that the MESH link is allowed to be established to the MESH device, so that the MESH device determines a target MPP from a source MPP of the received probe response packet, and establishes a MESH link with the target MPP, so as to associate with the AC allowed to be associated with the MESH device through the established MESH link, where the inquiry response packet is: and when the AC receiving the query request message determines that the MESH equipment association is allowed, sending a message used for indicating that the MESH equipment association is allowed to the MPP.
In a fifth aspect, an embodiment of the present application provides a MESH device, including a processor and a computer-readable storage medium, where the computer-readable storage medium stores a computer program executable by the processor, and the processor is configured to execute the computer program to implement any one of the above-mentioned steps of an associated method applied to the MESH device.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method implements any one of the above-mentioned steps of an association method applied to a MESH device.
In a seventh aspect, an embodiment of the present application provides an MPP, including a processor and a computer-readable storage medium, where the computer-readable storage medium stores a computer program executable by the processor, and the processor is configured to execute the computer program to implement any one of the above-mentioned method steps applied to MPP.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above-mentioned associated method steps applied to MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an association method provided in an embodiment of the present application;
fig. 2 is another flowchart of an association method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an association apparatus according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of an association apparatus provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a MESH device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an MPP provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the problem that the time consumption of the successful association process of the MESH device and the AC is long, an embodiment of the present application provides an association method, which is applied to the MESH device, where the MESH device is an MP or an MAP, and the association method includes:
selecting one active channel from the scanned active channels as a target channel;
broadcasting a detection request message carrying identification information of the MESH equipment on a target channel so that the MPP receiving the detection request message generates and broadcasts a query request message according to the identification information of the MESH equipment, and determining whether to allow the MESH equipment to be associated or not by the AC receiving the query request message according to the identification information of the MESH equipment;
if a detection response message which is sent by at least one MPP and used for indicating permission of establishing a MESH link is received, determining a target MPP from the at least one MPP, wherein each detection response message is sent after the corresponding MPP receives a query response message which is sent by an AC (access controller) and allowed to be associated with MESH equipment, and the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and establishing a MESH link with the target MPP, and associating with the AC allowing the MESH equipment to be associated through the established MESH link.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
An association method provided in the embodiment of the present application is described below with MESH devices as MPs as an example.
Fig. 1 shows a flowchart of an association method provided in an embodiment of the present application, where the association method is applied to an MP, and includes the following steps:
s101, selecting one active channel from the scanned active channels as a target channel.
The MP scanning the active channels may be by passively scanning channels for listening to the active channels. Specifically, the MP may receive a beacon frame broadcast by the MPP and determine whether the channel is an active channel from channel information included in the beacon frame.
When there is only one active channel scanned by the MP, the MP directly takes the only one active channel as the target channel.
When there are at least two active channels scanned by the MP, the manner of selecting the target channel from the at least two active channels may include at least the following three ways:
in a first alternative, the MP may randomly select an active channel from the scanned active channels as the target channel.
In a second selection manner, the MP may sequentially select the active channels as the target channels according to a time sequence in which the MP scans the active channels.
And in the third selection mode, according to the signal intensity of the MPP in each active channel scanned by the MP, the MP selects the active channel where the MPP with the strongest signal intensity is located as the target channel.
Of course, the method for selecting the target channel is not limited to the above-mentioned methods, and may include other methods, which are not limited herein.
S102, broadcasting a detection request message carrying the identification information of the MP on a target channel.
The probe request message includes identification information of the MP, where the identification information may include at least one of a device serial number, a Media Access Control (MAC) address, and an Internet Protocol (IP) address of the MP. Of course, the identification information is not limited to include the above three kinds of information, and may also include other information for identification, which is not limited herein.
Each MP has corresponding configuration information, and the MP can perform corresponding configuration according to the configuration information corresponding to the MP. The configuration information is in one-to-one correspondence with the identification information of the MPs, and one configuration information can be determined by the identification information of one MP.
The packaging format of the identification information of the MP in the probe request message may be customized. For example, the format of the identification information of the MP in the probe request message may be an encapsulation format of TLV (Type Length Value).
In the embodiment of the application, after the target channel is determined, the MP encapsulates the identification information of the MP to the detection request message, and broadcasts the detection request message on the target channel, and the MPP working in the target channel can receive the detection request message. Therefore, there may be one or more MPPs that receive the probe request message.
The MPP receiving the detection request message can extract the identification information of the MP in the detection request message, and repackages the MP to be a query request message and broadcasts the query request message, the AC associated with the MPP can receive the broadcast query request message, and if other ACs exist in the MESH network where the MPP is located, the MPP may also receive the query request message. Therefore, there may be one or more ACs that receive the query request message sent by the MPP.
The AC receiving the query request message may obtain the identification information of the MP in the query request message, and query whether the local stores the identification information of the MP. If the identification information of the MP is inquired, the configuration information corresponding to the identification information of the MP is stored in the AC locally, and the configuration information is the configuration information required by the MP for configuration; at this time, the AC allows the MP to associate. If the identification information of the MP is not queried, it indicates that the AC does not locally store the configuration information corresponding to the identification information of the MP, and at this time, the AC does not allow the MP to associate.
S103, if a detection response message which is sent by at least one MPP and used for indicating that the MESH link is allowed to be established is received, a target MPP is determined from the at least one MPP.
Each probe response message for indicating permission to establish the MESH link is as follows: the corresponding MPP (that is, the MPP that receives the probe response packet indicating that the MESH link is allowed to be established) is sent after receiving the query response packet that is allowed to be sent by the MP-associated AC.
The query response message is: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
For the AC receiving the query request message, when the AC queries that the identification information of the MP is locally stored, the AC sends a query response message for indicating that the association of the MP is allowed to the MPP, and the query response message can also carry related information such as an MAC address and an IP address of the AC; when the AC inquires that the identification information of the MP is not stored locally, the MPP is not responded, and an inquiry response message for indicating that the association of the MP is not allowed can be sent to the MPP.
For the MPP receiving the query response packet indicating that MP association is allowed, the MPP may extract information included in the query response packet, and repackage the information to obtain a probe response packet indicating that MESH link establishment is allowed. And the MPP sends a detection response message indicating that the MESH link is allowed to be established to the MP.
For the MPP receiving the query response message indicating that MP association is not allowed, the MPP may not respond to the MP, or may send a probe response message indicating that MESH link establishment is not allowed to the MP.
In the embodiment of the present application, there may be one or more MPPs that send a probe response packet indicating that the MESH link is allowed to be established; there may be one or more probe response messages received by the MP indicating permission to establish the MESH link.
When only one MPP is sent for indicating the detection response message allowing the establishment of the MESH link, the MP directly determines the MPP as the target MPP.
When there are multiple MPPs that send probe response messages indicating that the MESH link is allowed to be established, in order to make the connection between the MP and the MPPs more stable, in an embodiment, the MP may select, as the target MPP, the MPP with the strongest signal strength measured when the probe response message is received, from the multiple MPPs that send probe response messages indicating that the MESH link is allowed to be established.
In another embodiment, in order to speed up the association process between the MP and the AC, after the MP broadcasts the probe request message, when the MP receives the probe response message indicating that the MESH link is allowed to be established for the first time, the MPP that sends the probe response message is taken as the target MPP.
And if the probe response message for indicating that the MESH link is allowed to be established is not received, re-executing the step of selecting one active channel from the scanned active channels as the target channel (S101). Wherein the reselected active channel is different from the selected active channel.
Further, a preset time duration may be set, and if the probe response message indicating that the MESH link is allowed to be established is not received within the preset time duration, the step of selecting one active channel from the scanned active channels as the target channel (S101) is executed again. The preset time length can be set by self-definition.
And S104, establishing a MESH link with the target MPP, and associating with the AC allowing the MP to be associated through the established MESH link.
After the MP associates with the AC that allows the MP to associate, the MP may obtain the required configuration information from the associated AC for configuration. The MP completes its own configuration, i.e., comes online on the associated AC.
The MP can successfully associate with the AC only by establishing a MESH link with the target MPP once. The MP is prevented from spending longer time to establish the MESH link with irrelevant MPP, and further, the time consumption of the MP on the association time is reduced.
An embodiment of the present application further provides an association method applied to MPP, as shown in another flowchart of the association method provided in the embodiment of the present application shown in fig. 3, where the method applied to MPP includes the following steps:
s201, when receiving a detection request message which is sent by the MESH equipment and carries the identification information of the MESH equipment, generating a query request message according to the identification information of the MESH equipment and broadcasting the query request message.
The detection request message is broadcasted by the MESH equipment on the scanned active channel which is the same as the working channel of the MPP. Here, the MESH device is an MP or a MAP. For the AC receiving the query request message, the AC may determine whether to allow the MESH device to associate according to the identification information of the MESH device, and generate a query response message, where the query response message is used to indicate a result of whether the AC allows the MESH device to associate. For example, if the AC allows the MESH device association, a query response message indicating that the MESH device association is allowed is generated.
S302, if receiving the inquiry response message which allows the AC associated with the MESH equipment to send, sending a detection response message which indicates that the MESH link is allowed to be established to the MESH equipment.
The query response message is: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
The probe response message sent by the MPP may include relevant information such as a MAC address and an IP address of the MPP, so that the MESH device may establish a MESH link with the MPP according to the relevant information of the MPP.
The MESH device determines a target MPP from the source MPP of the received probe response message for indicating that the MESH link is allowed to be established, and establishes a MESH link with the target MPP so as to be associated with the AC which is allowed to be associated with the MESH device through the established MESH link.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
Corresponding to the above embodiment of the association method applied to the MESH device, the embodiment of the present application further provides an association apparatus applied to the MESH device. The MESH device is an MP or a MAP, and as shown in fig. 3, the association apparatus includes:
a selecting module 310, configured to select one active channel from the scanned active channels as a target channel;
a broadcasting module 320, configured to broadcast a probe request packet carrying identification information of the MESH device on a target channel, so that an MPP receiving the probe request packet generates and broadcasts a query request packet according to the identification information of the MESH device, and an AC receiving the query request packet determines whether to allow association of the MESH device according to the identification information of the MESH device;
a determining module 330, configured to determine a target MPP from at least one MPP if a probe response message sent by the at least one MPP and indicating that the MESH link is allowed to be established is received, where each probe response message for indicating that the MESH link is allowed to be established is: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and the associating module 340 is configured to establish a MESH link with the target MPP, and associate with an AC allowing association of a MESH device through the established MESH link.
Optionally, the selecting module 310 is further configured to:
if the detection response message for indicating that the MESH link is allowed to be established is not received, a step of selecting an active channel from the scanned active channels as a target channel is executed again;
wherein the reselected active channel is different from the selected active channel.
Optionally, the determining module 330 is specifically configured to:
and selecting the MPP with the strongest signal strength measured when the detection response message is received from at least one MPP as the target MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
Corresponding to the embodiment of the association method applied to the MPP, the embodiment of the application also provides an association device applied to the MPP. As shown in fig. 4, another schematic structural diagram of an association apparatus includes:
a broadcast module 410, configured to generate and broadcast a query request message according to identification information of a MESH device when receiving a probe request message that is sent by the MESH device and carries the identification information of the MESH device, so that an AC that receives the query request message determines whether to allow the MESH device to associate according to the identification information of the MESH device, where the probe request message is broadcast by the MESH device on an active channel that is scanned by the MESH device and is the same as a working channel of an MPP, and the MESH device is an MP or an MAP;
a sending module 420, configured to send, if a query response message sent by an AC allowing MESH device to be associated is received, a probe response message indicating that MESH link establishment is allowed to be performed to the MESH device, so that the MESH device determines a target MPP from a source MPP of the received probe response message, establishes a MESH link with the target MPP, and associates the MESH link with the AC allowing MESH device to be associated through the established MESH link, where the query response message is: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
Corresponding to the embodiment of the association method applied to the MESH device, an embodiment of the present application further provides a MESH device, such as the MESH device (MP or MAP) shown in fig. 5, including a processor 510 and a computer-readable storage medium 520, where the computer-readable storage medium 520 stores a computer program capable of being executed by the processor 510.
In addition, as shown in fig. 5, the MESH device may further include: a communication interface 530 and a communication bus 540; the processor 510, the computer-readable storage medium 520, and the communication interface 530 complete communication with each other through the communication bus 540, and the communication interface 530 is used for communication between the MESH device and other devices.
Wherein the computer program comprises: selection instructions 521, broadcast instructions 522, determination instructions 523, and association instructions 524.
The processor 510 is caused by the broadcast instructions 522 to implement: and broadcasting a detection request message carrying identification information of the MESH equipment on a target channel so that the MPP receiving the detection request message generates and broadcasts a query request message according to the identification information of the MP, and determining whether to allow the MESH equipment to be associated or not by the AC receiving the query request message according to the identification information of the MESH equipment.
In one embodiment of the present application, processor 510 is prompted by selection instructions 521 to implement:
if the detection response message for indicating that the MESH link is allowed to be established is not received, a step of selecting an active channel from the scanned active channels as a target channel is executed again;
wherein the reselected active channel is different from the selected active channel.
In one embodiment of the present application, processor 510 is caused by determining instructions 523 to specifically implement:
and selecting the MPP with the strongest signal strength measured when the detection response message is received from at least one MPP as the target MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
The communication bus 540 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus 540 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The computer-readable storage medium 520 may include a RAM (Random Access Memory) and may also include a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the computer-readable storage medium 520 may also be at least one memory device located remotely from the aforementioned processor.
Corresponding to the embodiment of the association method applied to the MESH device, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the association method applied to the MESH device is implemented.
Wherein the computer program comprises: a selection instruction, a broadcast instruction, a determination instruction, and an association instruction.
When invoked and executed by a processor, the selection instructions cause the processor to: and selecting one active channel from the scanned active channels as a target channel.
When invoked and executed by a processor, broadcast instructions cause the processor to: and broadcasting a detection request message carrying identification information of the MESH equipment on a target channel so that the MPP receiving the detection request message generates and broadcasts a query request message according to the identification information of the MESH equipment, and determining whether to allow the MESH equipment to be associated or not by the AC receiving the query request message according to the identification information of the MESH equipment.
When invoked and executed by a processor, the determining instructions cause the processor to: if a probe response message sent by at least one MPP and used for indicating permission of establishing a MESH link is received, determining a target MPP from the at least one MPP, wherein each probe response message used for indicating permission of establishing the MESH link is as follows: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
When invoked and executed by a processor, the associated instructions cause the processor to: and establishing a MESH link with the target MPP, and associating with the AC allowing the MESH equipment to be associated through the established MESH link.
In one embodiment of the present application, the selection instructions, when invoked and executed by a processor, cause the processor to specifically implement: if the detection response message for indicating that the MESH link is allowed to be established is not received, a step of selecting an active channel from the scanned active channels as a target channel is executed again; wherein the reselected active channel is different from the selected active channel.
In one embodiment of the present application, the determining instructions, when invoked and executed by a processor, cause the processor to specifically implement:
and selecting the MPP with the strongest signal strength measured when the detection response message is received from at least one MPP as the target MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
Corresponding to the embodiment of the association method applied to the MPP, the embodiment of the present application further provides an MPP, such as the MPP shown in fig. 6, including a processor 610 and a computer-readable storage medium 620, where the computer-readable storage medium 620 stores a computer program capable of being executed by the processor 610.
In addition, as shown in fig. 6, the MPP may further include: a communication interface 630 and a communication bus 640; the processor 610, the computer-readable storage medium 620, and the communication interface 630 complete communication with each other through the communication bus 640, and the communication interface 630 is used for communication between the MPP and other devices.
Wherein the computer program comprises: broadcast instructions 621 and send instructions 622.
The processor 610 is caused by the broadcast instructions 621 to implement: when a detection request message which is sent by the MESH equipment and carries identification information of the MESH equipment is received, an inquiry request message is generated according to the identification information of the MESH equipment and is broadcasted, so that an AC (access controller) which receives the inquiry request message determines whether to allow the MESH equipment to be associated according to the identification information of the MESH equipment, the detection request message is broadcasted by the MESH equipment on an active channel which is scanned by the MESH equipment and is the same as a working channel of MPP (maximum power point), and the MESH equipment is MP or MAP.
The processor 610 is sent instructions 622 to cause the implementation of: if receiving a query response message sent by an AC allowing the MESH equipment to be associated, sending a probe response message for indicating that the MESH link is allowed to be established to the MESH equipment, so that the MESH equipment determines a target MPP from a source MPP of the received probe response message, establishes the MESH link with the target MPP, associates the AC allowing the MESH equipment to be associated with the MESH link, and the query response message is as follows: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
The communication bus 640 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus 640 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
The computer-readable storage medium 620 may include a RAM (Random Access Memory) and may also include a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the computer-readable storage medium 620 may also be at least one memory device located remotely from the aforementioned processor.
The Processor 610 may be a general-purpose Processor including a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also DSPs (Digital Signal Processing), ASICs (Application Specific Integrated circuits), FPGAs (Field Programmable Gate arrays) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the embodiment of the association method applied to the MPP, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the association method applied to the MPP is implemented.
Wherein the computer program comprises: broadcast instructions and send instructions.
When invoked and executed by a processor, broadcast instructions cause the processor to: when a detection request message which is sent by the MESH equipment and carries identification information of the MESH equipment is received, an inquiry request message is generated according to the identification information of the MESH equipment and is broadcasted, so that an AC (access controller) which receives the inquiry request message determines whether to allow the MESH equipment to be associated according to the identification information of the MESH equipment, the detection request message is broadcasted by the MESH equipment on an active channel which is scanned by the MESH equipment and is the same as a working channel of MPP (maximum power point), and the MESH equipment is MP or MAP.
When invoked and executed by a processor, the send instructions cause the processor to: if receiving a query response message sent by an AC allowing the MESH equipment to be associated, sending a probe response message for indicating that the MESH link is allowed to be established to the MESH equipment, so that the MESH equipment determines a target MPP from a source MPP of the received probe response message, establishes the MESH link with the target MPP, associates the AC allowing the MESH equipment to be associated with the MESH link, and the query response message is as follows: and when the AC receiving the query request message determines that the MESH equipment association is allowed, the message used for indicating that the MESH equipment association is allowed is sent to the MPP.
Through the technical scheme provided by the embodiment of the application, before establishing a MESH link with an MPP, a MESH device (MP or MAP) determines whether the MPP allows establishing the MESH link, and if so, it means that the MPP finds an AC allowing the MESH device to associate with the MPP, and the MESH device establishes the MESH link with the MPP on the basis that the MPP can successfully associate with the AC allowing the MESH device to associate with the MESH device; in the case of not allowing, it means that the MPP does not find an AC allowing the MESH device to associate with, and the MESH device continues to search on other scanned active channels without establishing a MESH link with the MPP. Therefore, the condition that the MESH equipment spends a long time to establish the MESH link with the irrelevant MPP, especially the MESH link can be successfully associated with the AC after different active channels are selected for many times is avoided, the time spent on the MESH equipment and the irrelevant MPP to establish the MESH link is reduced, and the problem that the time spent in the process of successfully associating the MESH equipment with the AC is long is effectively solved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the association apparatus, the MP, the MPP, and the computer-readable storage medium, since they are substantially similar to the embodiments of the association method, the description is relatively simple, and for relevant points, reference may be made to partial description of the embodiments of the association method.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (12)
1. An association method is applied to MESH MESH equipment, wherein the MESH equipment is MESH point MP or MESH access point MAP, and the method comprises the following steps:
selecting one active channel from the scanned active channels as a target channel;
broadcasting a detection request message carrying identification information of the MESH equipment on the target channel, so that a MESH authentication point (MPP) receiving the detection request message generates and broadcasts a query request message according to the identification information of the MESH equipment, and an Access Controller (AC) receiving the query request message determines whether to allow the MESH equipment to be associated according to the identification information of the MESH equipment;
if a probe response message sent by at least one MPP and used for indicating permission of establishing a MESH link is received, determining a target MPP from the at least one MPP, wherein each probe response message used for indicating permission of establishing the MESH link is as follows: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and establishing a MESH link with the target MPP, and associating with the AC allowing the MESH equipment to be associated through the established MESH link.
2. The method of claim 1, further comprising:
if the detection response message for indicating that the MESH link is allowed to be established is not received, re-executing the step of selecting one active channel from the scanned active channels as a target channel;
wherein the reselected active channel is different from the selected active channel.
3. The method of claim 1, wherein said step of determining a target MPP from said at least one MPP comprises:
and selecting the MPP with the strongest signal strength measured when the detection response message is received as the target MPP from the at least one MPP.
4. An association method applied to a mesh authentication point (MPP), the method comprising:
when a detection request message which is sent by MESH MESH equipment and carries identification information of the MESH equipment is received, generating a query request message according to the identification information of the MESH equipment and broadcasting the query request message so that an Access Controller (AC) which receives the query request message determines whether to allow the MESH equipment to be associated according to the identification information of the MESH equipment, wherein the detection request message is broadcasted by the MESH equipment on an active channel which is scanned by the MESH equipment and is the same as a working channel of the MPP, and the MESH equipment is a MESH Point (MP) or a MESH Access Point (MAP);
if receiving a query response message which allows the AC associated with the MESH equipment to send, sending a probe response message which indicates that the MESH link is allowed to be established to the MESH equipment, so that the MESH equipment determines a target MPP from a source MPP of the received probe response message, establishes a MESH link with the target MPP, and associates the target MPP with the AC allowed to be associated with the MESH equipment through the established MESH link, wherein the query response message is as follows: and when the AC receiving the query request message determines that the MESH equipment association is allowed, sending a message used for indicating that the MESH equipment association is allowed to the MPP.
5. An association apparatus, applied to MESH (MESH) devices, where the MESH devices are MESH Points (MPs) or MESH Access Points (MAPs), the apparatus comprising:
a selection module, configured to select one active channel from the scanned active channels as a target channel;
a broadcasting module, configured to broadcast a probe request packet carrying identification information of the MESH device on the target channel, so that a MESH authentication point MPP that receives the probe request packet generates and broadcasts a query request packet according to the identification information of the MESH device, and an access controller AC that receives the query request packet determines, according to the identification information of the MESH device, whether to allow the MESH device to associate;
a determining module, configured to determine a target MPP from at least one MPP if a probe response message sent by the at least one MPP and indicating that the MESH link is allowed to be established is received, where each probe response message indicating that the MESH link is allowed to be established is: the corresponding MPP is sent after receiving a query response message which allows the AC associated with the MESH equipment to send, wherein the query response message is as follows: when the AC receiving the query request message determines that the MESH equipment association is allowed, the AC sends a message used for indicating that the MESH equipment association is allowed to the MPP;
and the association module is used for establishing a MESH link with the target MPP and associating the MESH link with the AC allowing the MESH equipment to be associated through the established MESH link.
6. The apparatus of claim 5, wherein the selection module is further configured to:
if the detection response message for indicating that the MESH link is allowed to be established is not received, re-executing the step of selecting one active channel from the scanned active channels as a target channel;
wherein the reselected active channel is different from the selected active channel.
7. The apparatus of claim 5, wherein the determining module is specifically configured to:
and selecting the MPP with the strongest signal strength measured when the detection response message is received as the target MPP from the at least one MPP.
8. An association device, applied to a mesh authentication point (MPP), the device comprising:
a broadcast module, configured to generate and broadcast a query request message according to identification information of MESH devices when receiving a probe request message that is sent by the MESH devices and carries the identification information of the MESH devices, so that an access controller AC that receives the query request message determines, according to the identification information of the MESH devices, whether to allow the MESH devices to associate, where the probe request message is broadcast by the MESH devices on an active channel that is scanned and is the same as a working channel of the MPP, and the MESH devices are MESH points MP or MESH access points MAP;
a sending module, configured to send, if receiving an inquiry response packet that allows the AC associated with the MESH device to send, a probe response packet indicating that the MESH link is allowed to be established to the MESH device, so that the MESH device determines a target MPP from a source MPP of the received probe response packet, and establishes a MESH link with the target MPP, so as to associate with the AC allowed to be associated with the MESH device through the established MESH link, where the inquiry response packet is: and when the AC receiving the query request message determines that the MESH equipment association is allowed, sending a message used for indicating that the MESH equipment association is allowed to the MPP.
9. A MESH device comprising a processor and a computer readable storage medium storing a computer program executable by the processor, the processor configured to execute the computer program to implement the method steps of any of claims 1-3.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
11. A mesh authentication point MPP comprising a processor and a computer readable storage medium storing a computer program executable by the processor, the processor being configured to execute the computer program to implement the method steps of claim 4.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810241483.2A CN108601094B (en) | 2018-03-22 | 2018-03-22 | Correlation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810241483.2A CN108601094B (en) | 2018-03-22 | 2018-03-22 | Correlation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108601094A CN108601094A (en) | 2018-09-28 |
CN108601094B true CN108601094B (en) | 2020-06-26 |
Family
ID=63627109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810241483.2A Active CN108601094B (en) | 2018-03-22 | 2018-03-22 | Correlation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108601094B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109195205B (en) * | 2018-09-12 | 2020-12-22 | 深圳鲲鹏无限科技有限公司 | Multi-radio frequency wireless mesh network and method for establishing data transmission link thereof |
CN111314994B (en) * | 2020-02-13 | 2022-05-24 | 深圳市潮流网络技术有限公司 | Wireless mesh network access method and device, computing equipment and storage medium |
CN112929908B (en) | 2021-03-17 | 2023-03-24 | 北京小米移动软件有限公司 | Mesh networking method and device, gateway equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271421A (en) * | 2011-07-19 | 2011-12-07 | 杭州华三通信技术有限公司 | Method and device for establishing Mesh link |
CN106211279A (en) * | 2016-07-12 | 2016-12-07 | 美的智慧家居科技有限公司 | Wireless network method of network entry and wireless device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070070959A1 (en) * | 2005-09-23 | 2007-03-29 | Almeroth Kevin C | Infrastructure mesh networks |
-
2018
- 2018-03-22 CN CN201810241483.2A patent/CN108601094B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102271421A (en) * | 2011-07-19 | 2011-12-07 | 杭州华三通信技术有限公司 | Method and device for establishing Mesh link |
CN106211279A (en) * | 2016-07-12 | 2016-12-07 | 美的智慧家居科技有限公司 | Wireless network method of network entry and wireless device |
Also Published As
Publication number | Publication date |
---|---|
CN108601094A (en) | 2018-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10602438B2 (en) | Network slice selection method and apparatus | |
EP3163946B1 (en) | Transmission list in wi-fi acces point | |
US8565100B2 (en) | Method and apparatus for facilitating machine-type communication | |
CN108601094B (en) | Correlation method and device | |
US9572190B2 (en) | Device and method for associating with WiFi networks | |
US20170273012A1 (en) | Wireless local area network scanning method and wireless access point | |
CN106101067B (en) | Method and terminal for binding intelligent equipment | |
EP3316626A1 (en) | Method and apparatus for accessing wireless network with smart device | |
CN108770045B (en) | Network access method, related equipment and network system | |
CN108401290B (en) | Paging method and base station | |
CN108966331B (en) | Cell registration method, cell registration device, wireless routing equipment, terminal and storage medium | |
CN110731074A (en) | Subscription message processing method and device, computer equipment and storage medium | |
EP3496431A1 (en) | Message transmission method and apparatus | |
CN107306388B (en) | Configuration method and device of Access Point Name (APN) | |
CN114402659A (en) | Method for acquiring and sending MBMS information, terminal equipment and network element equipment | |
US9125024B2 (en) | Broadcasting availability of free internet access at wireless access points | |
US20160294465A1 (en) | Information collection system, relay terminal, control method for relay terminal to connect to center system, sensor terminal, and control method for sensor terminal to connect to center system | |
WO2020024685A1 (en) | Cell resident method, terminal, update server, and storage medium | |
EP3637859B1 (en) | Hidden hotspot scanning based on a match of mac addresses | |
CN108718280B (en) | Message forwarding method and device | |
CN110430609B (en) | Scheduling method of system information and user equipment | |
CN114007276A (en) | Network access processing method, device, equipment and system of ZigBee network | |
CN110049548B (en) | AP registration method, device, equipment and storage medium | |
CN110536369B (en) | Device and method for simultaneously acquiring TAC (cell identity) and CI (cell identity) information of LTE (long term evolution) main adjacent cell | |
CN111049918B (en) | Communication establishment method and device of Internet of things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230614 Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right |