Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Fig. 1 is a flowchart of an embodiment of a channel selection method according to the present invention, and as shown in fig. 1, the channel selection method may include:
step 101, when the Mesh node needs to perform channel switching, the Mesh node sends a channel selection announcement cell to a neighbor node of the Mesh node, and the channel selection announcement cell carries an identifier of a channel to be switched selected by the Mesh node.
Specifically, the Mesh node may send the channel selection advertisement information element to a neighboring node of the Mesh node in a beacon (beacon) frame or a probe (probe) response frame.
In this embodiment, the channel selection announcement information element may include an initiator field, an initiator node field, a new channel field, and a status field; wherein, the value of the new channel field can be set as the identifier of the channel to be switched selected by the Mesh node, for example: the number of the channel to be switched and the like can uniquely identify the identifier of the channel to be switched so as to carry the identifier of the channel to be switched selected by the Mesh node in the channel selection announcement cell.
In addition, the Mesh node may set the value of the initiator field in the channel selection advertisement cell sent by the Mesh node to "1", which indicates that the channel selection advertisement cell is initiated by the Mesh node; the value of the initiator node field can be set as the Media Access Control (MAC) address of the Mesh node; the value of the status field may be set to "1", indicating that the Mesh node agrees to switch to the channel to be switched. The above is, of course, merely an example of the invention and should not be taken as a limitation on the invention.
And 102, the Mesh node receives a channel selection result of the neighbor node.
Specifically, the Mesh node may receive a beacon frame or a probe response frame sent by the neighboring node, where the beacon frame or the probe response frame carries the channel selection result.
In this embodiment, the neighbor node may represent the channel selection result of the neighbor node by setting the value of the status field in the channel selection announcement cell; for example, the neighbor node may set the value of the status field in the channel selection announcement cell to "0" to indicate that the neighbor node does not agree to switch to the channel to be switched; or, the neighbor node may indicate that the node agrees to switch to the channel to be switched by setting the value of the status field in the channel selection announcement cell to "1"; of course, this is only an example of the present invention and is not to be construed as limiting the present invention. Then, the neighbor node can send the set channel selection announcement cell carried in the beacon frame or the probe frame to the Mesh node.
And 103, when all nodes in the network where the Mesh node is located agree to switch to the channel to be switched, the Mesh node is switched to the channel to be switched.
In the above embodiment, when the Mesh node needs to perform channel switching, the Mesh node sends a channel selection announcement cell to a neighbor node of the Mesh node, where the channel selection announcement cell carries an identifier of a channel to be switched selected by the Mesh node; and after all nodes in the network where the Mesh node is located agree to switch to the channel to be switched, the Mesh node switches to the channel to be switched. Therefore, all nodes in the Mesh network can work on the channel with better channel indexes, and the overall performance of the Mesh network can be improved.
Fig. 2 is a flowchart of another embodiment of the channel selection method of the present invention, as shown in fig. 2, the channel selection method may include:
step 201, when the Mesh node needs to perform channel switching, the Mesh node performs priority ordering on channels meeting the channel selection condition of the Mesh node according to the sequence of the channel intensity from strong to weak.
The channel selection condition of the Mesh node may be that the channel strength is greater than-65 dbm, which is not limited in the embodiments of the present invention.
Step 202, the Mesh node selects the channel with the highest priority from the ordered channel queues as the channel to be switched.
Step 203, the Mesh node initializes the channel selection announcement cell of the Mesh node.
Specifically, the structure of the channel selection announcement cell may be as shown in fig. 3, where fig. 3 is a schematic diagram of an embodiment of the structure of the channel selection announcement cell of the present invention, and in this embodiment, the channel selection announcement cell may include at least an originator field, an originator node field, a new channel field, and a status field;
the definitions of the fields are described below.
(1) The value of the initiator field may be set to "1", indicating that the Mesh node initiates a channel selection advertisement; the value of the initiator field may be set to "0" indicating that the channel selection advertisement is initiated by other Mesh nodes and propagated by the current Mesh node.
(2) The value of the initiator node field may be set to the MAC address of the Mesh node that initiated the channel selection advertisement.
(3) The value of the field of the new channel can be set as the identifier of the channel to be switched selected by the Mesh node initiating the channel selection announcement, and the identifier of the channel to be switched can be the identifier which can uniquely identify the channel to be switched, such as the number of the channel to be switched.
(4) The value of the status field indicates the status of the Mesh node, and may be set with reference to table 1.
TABLE 1
In this embodiment, when the Mesh node needs to perform channel switching, the Mesh node may initialize a channel selection advertisement cell of the Mesh node. Specifically, the Mesh node may set the value of the initiator field to "1", which indicates that the Mesh node initiates a channel selection advertisement; the value of the initiator node field may be set to the MAC address of the Mesh node; the value of the field of the new channel can be set as the identifier of the channel to be switched selected by the Mesh node; the value of the status field may be set to "1" indicating that the Mesh node agrees to switch to the channel to be switched.
Step 204, the Mesh node sends the channel selection announcement cell to the neighbor nodes of the Mesh node.
In particular, the channel selection announcement information element may be transmitted unicast or multicast. In this embodiment, the Mesh node may carry the channel selection announcement cell in the beacon frame or the probe response frame for transmission.
Step 205, the Mesh node receives the channel selection result of the neighbor node.
Specifically, the neighboring node may carry the channel selection result in a beacon frame or a probe response frame and send the beacon frame or the probe response frame to the Mesh node.
In this embodiment, the neighbor node may represent the channel selection result of the neighbor node by setting the value of the status field in the channel selection announcement cell; referring to table 1, a neighbor node may indicate that the neighbor node does not agree to switch to the channel to be switched by setting a value of a status field in a channel selection announcement cell to "0"; or, the neighbor node may indicate that the node agrees to switch to the channel to be switched by setting the value of the status field in the channel selection announcement cell to "1"; of course, this is only an example of the present invention and is not to be construed as limiting the present invention. Then, the neighbor node can send the set channel selection announcement cell carried in the beacon frame or the probe frame to the Mesh node.
And step 206, when all nodes in the network where the Mesh node is located agree to switch to the channel to be switched, the Mesh node is switched to the channel to be switched.
In this embodiment, when the values of the status fields in the channel selection announcement cells of all the neighbor nodes of the Mesh node initiating the channel selection are all "3", it indicates that all the Mesh nodes in the network where the Mesh is located agree to switch to the channel to be switched, and at this time, the Mesh node may initiate a channel switching attempt to switch to the channel to be switched.
If the Mesh node initiating the channel selection receives that the value of the state field in the channel selection announcement cell of at least one neighbor node is '0', the condition that at least one node in the network where the Mesh node is located does not agree to switch to the channel to be switched is indicated, at the moment, if the channel queue still has an optional channel, the Mesh node deletes the channel to be switched from the channel queue, selects the channel with the highest priority from the channel queue to resend the channel selection announcement cell, and so on until no optional channel exists in the channel queue.
When at least one neighbor node in a network where the Mesh node is located does not agree with switching to a channel to be switched and no optional channel exists in a channel queue, the Mesh node initiating channel selection cancels a channel selection notice initiated by the Mesh node; then, the Mesh node can send a cancellation channel selection frame to a neighbor node of the Mesh node; after receiving the cancellation channel selection frame, the neighbor nodes of the Mesh node send the cancellation channel selection frame to the respective neighbor nodes.
In addition, in this embodiment, after receiving the channel selection advertisement cell sent by the neighbor node of the Mesh node, a Mesh node may execute the flow shown in fig. 4, where fig. 4 is a flow chart of an embodiment of processing the received channel selection advertisement cell by the Mesh node of the present invention, as shown in fig. 4, the flow may include:
step 401, a Mesh node receives a channel selection announcement cell sent by a neighbor node of the Mesh node, where the channel selection announcement cell sent by the neighbor node carries an identifier of a channel to be switched selected by the neighbor node.
Specifically, the Mesh node may receive a channel selection announcement cell sent by a neighboring node of the Mesh node through a beacon frame or a probe response frame.
The method for setting the channel selection announcement information element by the neighboring node may refer to the description in step 203, and is not described herein again.
Step 402, the Mesh node judges whether to receive only the channel selection announcement cell sent by one neighbor node of the Mesh node; if so, go to step 403; if the Mesh node receives the channel selection advertisement cells sent by at least two neighboring nodes of the Mesh node in sequence, step 404 is executed.
In step 403, the Mesh node accepts the channel selection advertisement cell and then performs step 405.
Step 404, the Mesh node receives the channel selection announcement information element sent by the neighbor node with the minimum MAC address, and then step 405 is executed.
Step 405, the Mesh node determines whether to select the channel to be switched carried in the channel selection announcement cell sent by the neighbor node according to the channel selection condition of the Mesh node.
Step 406, the Mesh node updates the neighbor channel selection table of the Mesh node and the channel selection state of the Mesh node.
In this embodiment, after the Mesh node receives the channel selection announcement cell sent by the neighbor node of the Mesh node, no matter whether the Mesh node selects the channel to be switched carried in the channel selection announcement cell sent by the neighbor node, the Mesh node records the channel selection condition of the neighbor node in the neighbor channel selection table of the Mesh node, so that when the Mesh node finds that the neighbor node in the channel selection table of the Mesh node is in the channel selection state, the Mesh node does not initiate channel selection any more. That is, after receiving the channel selection announcement cell sent by the neighbor node, the Mesh node will not initiate channel selection any more before switching to the channel to be switched.
And after the Mesh node receives the channel selection announcement cell sent by the neighbor node of the Mesh node, the Mesh node updates the channel selection state of the Mesh node no matter whether the Mesh node selects the channel to be switched carried in the channel selection announcement cell sent by the neighbor node, for example: referring to table 1, when the Mesh node determines to select a channel to be switched carried in a channel selection announcement cell sent by a neighbor node, the Mesh node may set a channel selection state of the Mesh node to "1", which indicates that the Mesh node agrees to switch to the channel to be switched; or, when the Mesh node does not agree to select the channel to be switched, the channel selection state of the Mesh node may be set to "0", which indicates that the Mesh node does not agree to switch to the channel to be switched.
Step 407, the Mesh node sends the channel selection result of the Mesh node to the neighbor node of the Mesh node.
In this embodiment, the Mesh node may set the channel selection result of the Mesh node in the channel selection advertisement cell, and then send the channel selection advertisement cell to the neighbor node through the beacon frame or the probe response frame.
Specifically, the Mesh node may set a value of an initiator field in a channel selection advertisement cell of the Mesh node to "0", which indicates that a channel selection advertisement is initiated by a neighbor node and propagated by the Mesh node; the value of the status field may be set to the channel selection status of the Mesh node, for example: "0" or "1", etc.; at this time, the value of the initiator node field in the channel selection announcement cell is the MAC address of the neighbor node which initiates the channel selection announcement, and the value of the new channel field is the channel to be switched selected by the neighbor node which initiates the channel selection announcement.
After the channel selection announcement cell is set, the Mesh node may send the channel selection announcement cell carried in a beacon frame or a probe response frame to all neighboring nodes of the Mesh node.
In addition, in this embodiment, after the Mesh node receives the cancellation channel selection frame, the Mesh node sends the received cancellation channel selection frame to the neighbor node of the Mesh node, and the Mesh node does not initiate channel selection any more.
The embodiment realizes that all nodes in the Mesh network work on the channel with better channel index, thereby improving the overall performance of the Mesh network.
The following describes the channel selection method provided by the embodiment of the present invention in detail by using a specific example.
Fig. 5 is a schematic structural diagram of an embodiment of a Mesh network topology of the present invention, and as shown in fig. 5, the Mesh network includes 5 Mesh nodes (Mesh points; hereinafter referred to as MPs), which are respectively MP1, MP2, MP3, MP4, and MP 5.
It is assumed that the MP1 needs to perform channel switching and select a channel to be switched, and the identifier of the channel to be switched is "11", where the method for selecting the channel to be switched by the MP1 may refer to the description of step 201 to step 202 in the embodiment shown in fig. 2 of the present invention, and is not described herein again. Then, MP1, MP2, MP3, MP4 and MP5 will perform the following steps to complete the channel switching.
In step 1, the MP1 sends a channel selection announcement cell to the MP2 and the MP3, and sets the channel selection state of the MP1 to "1".
Step 2, after MP2 and MP3 receive the information channel selection notice information element of MP1, according to the information channel condition of itself and the condition of the information channel to be switched at the node, it is determined whether to agree to select the information channel to be switched.
Step 3, if MP2 and MP3 agree to select the channel to be switched, MP2 and MP3 set the respective channel selection state to "1", and send the channel selection announcement cell to the respective neighbor node; after MP1 receives the channel selection announcement cells sent by MP2 and MP3, it finds that the values of the status fields in the channel selection announcement cells sent by MP2 and MP3 are both "1", which indicates that MP2 and MP3 both agree to switch to the channel to be switched, at this time, MP1 sets the channel selection status of MP1 to "2".
In addition, if one of the MP2 and MP3 does not agree to switch to the channel to be switched, the node can set the channel selection status to "0" and send the channel selection announcement cell to the neighboring node, after the MP1 receives the channel selection announcement cell, if there is still an optional channel in the channel queue, the MP1 deletes the previously selected channel to be switched from the channel queue, selects the channel with the next highest priority in the channel queue, and re-initiates channel selection; if there is no optional channel in the channel queue, MP1 will cancel the channel selection; however, the present embodiment takes the example that MP2 and MP3 agree to switch to the channel to be switched.
Step 4, after MP4 receives the channel selection announcement cells sent by MP2 and MP3, it finds that the values of the state fields in the channel selection announcement cells sent by MP2 and MP3 are both "1", which indicates that MP2 and MP3 both agree to switch to the channel to be switched, at this time, MP4 determines whether it agrees to switch to the channel to be switched according to the channel condition of the channel to be switched at MP4, if MP4 agrees to switch to the channel to be switched, MP4 sets its channel selection state to "1", and sends the channel selection announcement cell to the neighbor node of MP 4. After MP2 and MP3 receive the channel selection announcement cell sent by MP4, MP2 and MP3 find that MP4 agrees to switch to the channel to be switched, and MP1 agrees to switch to the channel to be switched, at this time, all neighbor nodes of MP2 and MP3 agree to switch to the channel to be switched, so MP2 and MP3 may set the respective channel selection state to "2", which indicates that all neighbor nodes of MP2 and MP3 agree to switch to the channel to be switched, and then MP2 and MP3 send the channel selection announcement cell to the respective neighbor nodes, that is, MP1 and MP 4.
After receiving the channel selection announcement cells sent by MP2 and MP3, MP1 finds that the channel selection states of MP2 and MP3 are both "2", that is, all the neighbor nodes of MP2 and MP3 agree to switch to the channel to be switched at this time, but MP1 cannot determine whether all the nodes in the network agree to switch to the channel to be switched, so MP1 sets its channel selection state to "2".
Similarly, after receiving the channel selection announcement cells sent by MP2 and MP3, MP4 finds that the channel selection states of MP2 and MP3 are both "2", that is, at this time, all neighbor nodes of MP2 and MP3 agree to switch to the channel to be switched, but at this time, MP4 cannot determine whether MP5 agrees to switch to the channel to be switched, so MP4 cannot determine whether all neighbor nodes of MP4 agree to switch to the channel to be switched, and therefore, MP4 sets its channel selection state to "1".
In addition, if the MP4 does not agree to switch to the channel to be switched, the MP4 sets the channel selection state to "0" and sends the channel selection notification cell to the neighboring node, after the MP2 and MP3 receive the channel selection notification cell sent by the MP4, the respective channel selection state is set to "0" and sends the channel selection notification cell to the neighboring node MP1, and after the MP1 receives the channel selection notification cell, if there is still an optional channel in the channel queue, the MP1 deletes the previously selected channel to be switched from the channel queue, and selects the channel with the next highest priority in the channel queue, and initiates channel selection again; if there is no channel available in the channel queue, MP1 will cancel the channel selection. However, the present embodiment is described by taking the example that MP4 agrees to switch to the channel to be switched.
Step 5, after receiving the channel selection announcement cell sent by MP4, MP5 finds that the value of the status field in the channel selection announcement cell sent by MP4 is "1", which indicates that MP4 agrees to switch to the channel to be switched, if MP5 also agrees to switch to the channel to be switched, since MP5 only has one neighbor node MP4, and MP4 agrees to switch to the channel to be switched, which indicates that all neighbor nodes of MP5 agree to switch to the channel to be switched, MP5 sets the channel selection status of itself to "2", and sends the channel selection announcement cell to the neighbor nodes of MP 5; after MP4 receives the channel selection announcement cell sent by MP5, it finds that the channel selection states of all neighbor nodes of MP4 are "2", which means that all neighbor nodes of MP4 agree to switch to the channel to be switched, so MP4 sets the channel selection state of MP4 to "2", and sends the channel selection announcement cell to the neighbor nodes of MP 4.
Step 6, after the MP2 and the MP3 receive the channel selection announcement cell sent by the MP4, the MP2 and the MP3 discover their respective neighbor nodes, and the neighbor nodes of their respective neighbor nodes MP2 and MP3 both agree to switch to the channel to be switched, but since the MP2 and the MP3 cannot determine whether all nodes in the network agree to switch to the channel to be switched, the MP2 and the MP3 also set their respective channel selection states to "2".
After MP5 receives the channel selection announcement cell sent by MP4, it finds that the status field in the channel selection announcement cell sent by MP4 has a value of "2", which indicates that all the neighboring nodes of MP4 and MP4 agree to switch to the channel to be switched, because MP5 only has one neighboring node MP4, at this time MP5 can determine that all the nodes in the network where MP5 is located agree to switch to the channel to be switched, so MP5 sets its own channel selection status to "3", and sends the channel selection announcement cell to the neighboring nodes of MP 5.
Step 7, after MP4 receives the channel selection announcement cell of MP5, it finds that the value of the status field in the channel selection announcement cell sent by MP5 is "3", and the channel selection status of the other two neighbor nodes MP2 and MP3 of MP4 is "2", at this time, MP4 may also determine that all nodes in the network where MP4 is located agree to switch to the channel to be switched, so MP4 sets the channel selection status of itself to "3", and sends the channel selection announcement cell to the neighbor nodes of MP 4.
Step 8, after MP2 and MP3 receive the channel selection announcement cell of MP4, find that the value of the status field in the channel selection announcement cell sent by MP4 is "3", and the channel selection status of MP1 of another neighbor node of MP2 and MP3 is "2", at this time, MP2 and MP3 can determine that all nodes in the network where MP2 and MP3 are located agree to switch to the channel to be switched, so MP2 and MP3 set the respective channel selection status to "3", and continue to send the channel selection announcement cell to the respective neighbor node.
Step 9, after MP1 receives the channel selection announcement cells sent by MP2 and MP3, it finds that the channel selection status of all the neighbor nodes (MP2 and MP3) of MP1 themselves is 3, which means that the entire network agrees to switch to the channel to be switched, and MP1 will initiate channel switching.
In the above example, please refer to the description of the embodiment shown in fig. 2 of the present invention for the setting manner of the channel selection announcement cell, which is not described herein again. In addition, when a Mesh node receives channel selection advertisement cells sent by at least two nodes and needs to accept or reject the received channel selection advertisement cells, the Mesh node may refer to the method provided in the embodiment shown in fig. 4 of the present invention, which is not described herein again.
The channel selection method provided by the embodiment of the invention utilizes the characteristic that the beacon frame or the probe response frame is sent at a fixed frequency to add the channel selection announcement information element into the beacon frame or the probe response frame, so that the existing channel resources are not additionally occupied in the channel selection process. And in default, each Mesh node sends beacon frames or probe response frames with a fixed period of 100 milliseconds, and the network automatically converges. In addition, after a Mesh node initiates a channel selection, the Mesh node can be switched to the channel to be switched only after all nodes in the network where the Mesh node is located are satisfied with the channel to be switched, so that other nodes in the network where the Mesh node is located cannot immediately reselect the channel to be switched after the Mesh node is switched to the channel to be switched, and the network oscillation is avoided; in this embodiment, all nodes in a network where a Mesh node initiating channel selection agrees to switch to a channel to be switched under a certain channel selection condition, and if all nodes in the network agree to switch to the channel to be switched, it indicates that the channel to be switched reaches the channel selection condition of all nodes in the network, for example: when the channel selection condition is that the channel intensity is greater than-65 dbm, after the channel selection is completed and channel switching occurs, the average value of the channel intensity in the network is greater than-65 dbm, so that the channel quality in the Mesh network is improved.
The basic principle of the channel selection method provided by the embodiment of the invention is that the channel selection method starts from a node, gradually spreads to the whole network, and then returns to the node, so as to achieve the purpose of collecting the information of the whole network; this principle may also be used in other applications based on distribution in the future.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 6 is a schematic structural diagram of an embodiment of a channel selection apparatus according to the present invention, where the channel selection apparatus in this embodiment may be used as mesh node entity equipment or a part of mesh node entity equipment to implement the flow of the embodiment shown in fig. 1 of the present invention. As shown in fig. 6, the channel selecting means may include: a sending module 61, a receiving module 62 and a switching module 63.
The sending module 61 is configured to send a channel selection announcement cell to a neighboring node of the Mesh node when the Mesh node needs to perform channel switching, where the channel selection announcement cell carries an identifier of a channel to be switched selected by the Mesh node; specifically, the sending module 61 may send the channel selection announcement information element carried in a beacon frame or a probe response frame to the neighboring nodes of the Mesh node.
In this embodiment, the channel selection announcement information element may include an initiator field, an initiator node field, a new channel field, and a status field; wherein, the value of the new channel field can be set as the identifier of the channel to be switched selected by the Mesh node, for example: the number of the channel to be switched and the like can uniquely identify the identifier of the channel to be switched so as to carry the identifier of the channel to be switched selected by the Mesh node in the channel selection announcement cell.
A receiving module 62, configured to receive a channel selection result of a neighboring node; specifically, the receiving module 62 may receive a beacon frame or a probe response frame sent by the neighboring node, where the beacon frame or the probe response frame carries the channel selection result.
And a switching module 63, configured to switch to the channel to be switched when all nodes in the network where the Mesh node is located agree to switch to the channel to be switched.
In the channel selection device, when a Mesh node needs to perform channel switching, a sending module 61 sends a channel selection announcement cell to a neighbor node of the Mesh node, wherein the channel selection announcement cell carries an identifier of a channel to be switched selected by the Mesh node; after all the nodes in the network where the Mesh node is located agree to switch to the channel to be switched, the switching module 63 switches to the channel to be switched. Therefore, all nodes in the Mesh network can work on the channel with better channel indexes, and the overall performance of the Mesh network can be improved.
Fig. 7 is a schematic structural diagram of another embodiment of the channel selection apparatus of the present invention, where the channel selection apparatus in this embodiment may be used as mesh node entity equipment or a part of mesh node entity equipment to implement the flows of the embodiments shown in fig. 1 and fig. 2 of the present invention. Compared with the channel selection device shown in fig. 6, the difference is that the channel selection device shown in fig. 7 may further include:
a sorting module 64, configured to perform priority sorting on channels that meet the channel selection condition of the Mesh node according to a sequence from strong channel strength to weak channel strength;
and a selecting module 65, configured to select a channel with the highest priority from the ordered channel queues in the ordering module 64 as a channel to be switched.
Further, the channel selecting apparatus may further include:
a deleting module 66, configured to delete a channel to be switched from the channel queue when at least one node in the network does not agree to switch to the channel to be switched and there is still an optional channel in the channel queue;
at this time, the selecting module 65 may also select the channel with the highest priority from the channel queue to resend the channel selection announcement cell after the deleting module 66 deletes the channel to be switched.
Further, the channel selecting apparatus may further include:
a cancellation module 67, configured to cancel the channel selection announcement when at least one node in the network does not agree to switch to the channel to be switched, and there is no optional channel in the channel queue.
Further, the channel selecting apparatus may further include: an accepting module 68, configured to, after the receiving module 62 receives the channel selection announcement cell sent by the neighbor node of the Mesh node, accept the channel selection announcement cell if the receiving module 62 receives only the channel selection announcement cell sent by one neighbor node of the Mesh node; or, if the receiving module 62 receives the channel selection announcement cells sent by at least two neighboring nodes of the Mesh node in sequence, the receiving module receives the channel selection announcement cells sent by the neighboring node with the minimum MAC address; the channel selection announcement information cell sent by the neighbor node carries the identifier of the channel to be switched selected by the neighbor node.
Further, the channel selecting apparatus may further include:
a determining module 69, configured to determine, according to the channel selection condition of the Mesh node, whether to select a channel to be switched carried in the channel selection announcement cell sent by the neighbor node after the receiving module 68 receives the channel selection announcement cell sent by the neighbor node;
an updating module 610, configured to update the neighbor channel selection table of the Mesh node and the channel selection state of the Mesh node after the determining module 69 determines whether to select a channel to be switched carried in the channel selection announcement cell sent by the neighbor node;
at this time, the sending module 61 is further configured to send the channel selection result of the Mesh node to the neighbor node of the Mesh node.
The channel selection device can realize that all nodes in the Mesh network work on the channel with better channel indexes, thereby improving the overall performance of the Mesh network.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.