Pairing switching method for mesh network system
By introducing the pairing switching method in the mesh network and using pairing change requests and consent packets to update the assistance table, the routing table complexity problem during node switching is solved, and fast and efficient network switching and data transmission are achieved.
Patent Information
- Application Number
- CN202210795773.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-07
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-07-07
AI Technical Summary
When nodes are switched in existing mesh networks, network topology changes lead to complicated routing table updates, and the switching methods of different networking technologies are inconsistent, affecting data transmission efficiency.
This paper proposes a pairing switching method for mesh network systems. It selects new parent nodes through a network node scanner, generates and sends pairing change request packets, assists in table updating, and achieves fast and efficient node switching and information synchronization.
It achieves fast, stable and efficient node switching in the mesh network, ensuring timely updates of the network topology and continuity of data transmission.
Smart Images

Figure CN115174413B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to a pairing switching method for a mesh network system. Background Art
[0002] In recent years, with the rapid development of network technology, mesh networks have been widely used in the fields of Internet of Things, routers, etc.
[0003] In an existing mesh network, when a node switches, it usually disconnects from the current parent node first, then selects a new parent node to reconnect, and then, due to changes in the network topology, the routing table is updated.
[0004] However, there are currently many different mesh network networking technologies, and different networking technologies may have different switching methods, allowing related nodes in the network to simultaneously obtain and update node switching information to meet the data transmission needs of the mesh network. Summary of the invention
[0005] The embodiment of the present application provides a pairing switching method for a mesh network system, which allows any network node to quickly and efficiently switch its parent node, and allows related nodes in the mesh network to simultaneously obtain and update the switching information of the nodes.
[0006] In order to solve the above technical problems, this application is implemented as follows:
[0007] The present application provides a pairing switching method for a mesh network system, comprising: a network node executes a scanning procedure to select a new parent node, so that the current parent node becomes an old parent node; when the new parent node is not an access point, the network node generates and sends a pairing change request data packet carrying the MAC address of its descendant node, the MAC address of the old root node, the MAC address of the old parent node and the MAC address of the new parent node to the new parent node, and starts a timer, wherein the sending address of the pairing change request data packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node, and the old root node is the root node corresponding to the old parent node; the new parent node that receives the pairing change request data packet determines whether it can be a network node and When its descendant nodes provide relay services, the MAC addresses of the network node and its descendant nodes are added to the assistance table stored in itself, wherein the assistance table includes the MAC addresses of all subordinate nodes for which it provides relay services; when the new parent node is a root node, a first pairing consent packet is generated and transmitted back to the network node, wherein the sending address of the first pairing consent packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node; when the new parent node is not a root node, the receiving address is modified to the MAC address of its own parent node and then the pairing change request packet is forwarded upstream; and if the timer has not expired, the network node receives the first pairing consent packet, which means that the pairing switch is successful.
[0008] The present application provides another pairing switching method for a mesh network system, comprising: a network node executes a scanning procedure to select a new parent node, so that the current parent node becomes an old parent node; when the new parent node is an access point, the network node generates and sends a pairing switching data packet carrying a pairing switching identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node to the access point, so that the access point forwards the pairing switching data packet to the old root node, wherein the receiving address of the pairing switching data packet is the MAC address of the access point, the sending address is the MAC address of the network node, and the target address is the MAC address of the old root node; after the old root node receives the pairing switching data packet, it deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself, and generates and forwards the pairing switching data packet downstream. A second pairing cancellation data packet carries the MAC address of the network node and its descendant nodes and the MAC address of the new parent node, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the old root node, and the assistance table includes the MAC addresses of all subordinate nodes that provide relay services by itself; the relay node that receives the second pairing cancellation data packet deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and after receiving the second pairing cancellation data packet, the old parent node deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself.
[0009] The present application provides another pairing switching method for a mesh network system, including: a network node executes a scanning program to select a new parent node, so that the current parent node becomes the old parent node; when the new parent node is not an access point, the network node generates and sends a pairing change request data packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node, and starts a timer, wherein the sending address of the pairing change request data packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node, and the old root node is the root node corresponding to the old parent node; the new parent node that receives the pairing change request data packet determines that the MAC addresses of the network node and its descendant nodes exist in the assistance table stored in itself, generates and returns a first pairing consent data packet to the network node, and generates and sends a second pairing consent data packet carrying the MAC addresses of the network node and its descendant nodes downstream For a cancellation data packet, the assistance table includes the MAC addresses of all subordinate nodes that provide relay services, the sending address of the first pairing approval data packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node, and the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the new parent node; if the network node receives the first pairing approval data packet, it means that the pairing switch is successful; the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and after the old parent node receives the second pairing cancellation data packet, it deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself.
[0010] In an embodiment of the present application, the pairing switching method of the mesh network system can be applied to a mesh network that forwards data packets based on MAC addresses. The pairing switching process is used to simultaneously update the assistance table of relevant nodes in the mesh network, thereby achieving fast, stable and efficient pairing switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0012] Figure 1 is a flow chart of a first embodiment of a node pairing method according to the present application;
[0013] Figure 2 A schematic diagram of the format of a pairing request data packet according to an embodiment of the present application;
[0014] Figure 3 A schematic diagram of the format of a pairing consent data packet according to an embodiment of the present application;
[0015] Figure 4 A schematic diagram of a first embodiment of a mesh network system of the present application;
[0016] Figure 5 A schematic diagram of an embodiment of a relay node of the present application;
[0017] Figure 6 A schematic diagram of an embodiment of a node to be paired in the present application;
[0018] Figure 7 for Figure 6 The node to be paired joins Figure 4 A flowchart of a node pairing method according to a first embodiment of a mesh network system;
[0019] Figure 8 is a flow chart of a second embodiment of a node pairing method according to the present application;
[0020] Fig. 9 A schematic diagram of the format of a pairing rejection data packet according to an embodiment of the present application;
[0021] Fig.10 for Figure 6 The node to be paired joins Figure 4 A flowchart of a node pairing method according to a second embodiment of a mesh network system;
[0022] Fig.11 is a flow chart of a third embodiment of the node pairing method according to the present application;
[0023] Fig.12 is a flow chart of a fourth embodiment of the node pairing method according to the present application;
[0024] Fig.13 is a flow chart of a first embodiment of a data transmission method according to the present application;
[0025] Fig.14 A schematic diagram of the format of a data packet generated by a site according to an embodiment of the present application;
[0026] Fig.15 is a flow chart of a second embodiment of a data transmission method according to the present application;
[0027] Fig.16 and Fig.17 is a flow chart of a first embodiment of a pairing switching method of a mesh network system according to the present application;
[0028] Fig.18 and Fig.19 Mesh network system in application Fig.16 and Fig.17 A schematic diagram of an embodiment before and after the pairing switching method;
[0029] Fig. 20 is a flow chart of a second embodiment of a pairing switching method of a mesh network system according to the present application;
[0030] Fig.21 and Fig. 22 Mesh network system in application Fig. 20 A schematic diagram of an embodiment before and after the pairing switching method;
[0031] Fig.23 is a flow chart of a third embodiment of a pairing switching method of a mesh network system according to the present application;
[0032] Fig.24 is a flow chart of a fourth embodiment of a pairing switching method of a mesh network system according to the present application;
[0033] Fig.25 and Fig.26 Mesh network system in application Fig.24 A schematic diagram of an embodiment before and after the pairing switching method;
[0034] Fig. 27 is a flow chart of a fifth embodiment of a pairing switching method of a mesh network system according to the present application;
[0035] Fig.28 and Fig.29 Mesh network system in application Fig. 27 A schematic diagram of an embodiment before and after the pairing switching method;
[0036] Fig.30 is a flow chart of a sixth embodiment of a pairing switching method of a mesh network system according to the present application;
[0037] Fig.31 and Fig.32 Mesh network system in application Fig.30 A schematic diagram of an embodiment before and after the pairing switching method; and
[0038] Fig.33 It is a flow chart of a seventh embodiment of the pairing switching method of the mesh network system according to the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The embodiments of the present invention will be described below with reference to the accompanying drawings. In these drawings, the same reference numerals represent the same or similar components or method flows.
[0041] It must be understood that the words "comprise", "include", etc. used in this specification are used to indicate the existence of specific technical features, values, method steps, job processing and / or components, but do not exclude the addition of more technical features, values, method steps, job processing, components, or any combination of the above.
[0042] It should be understood that when a component is described as being "connected" or "coupled" to another component, it may be directly connected or coupled to the other component, and relay components may be present. Conversely, when a component is described as being "directly connected" or "directly coupled" to another component, there are no relay components.
[0043] Before explaining the pairing switching method of the mesh network system of the present application, the terms of the present application are explained first. The "mesh network system" described in the present application refers to a mesh communication network formed by network nodes communicating with each other; "network node" refers to a computing device (for example: workstation, server, terminal device, network device) connected to a network with an independent address and the function of transmitting or receiving data, wherein a network node with a relay function is called a relay node, and a network node without a relay function is called a station (STA). All network nodes can provide the STA function of working as a station in the infrastructure mode defined by the 802.11 protocol. Therefore, the relay node can execute different programs to play the role of a station. It should be noted that for the relay node, the MAC address used for the STA function and the relay function can be the same or different.
[0044] A network node / relay node directly connected to an access point (AP) is called a root node; a network node connected to an access point through a root node is called a second-level node, a network node connected to an access point through a second-level node is called a third-level node, and so on; of two directly connected network nodes, the network node at the upper level is called the parent node of the lower-level network node, and the network node at the lower level is called the child node of the upper-level network node; each network node has only one parent node, and a parent node can have many child nodes. The root node is directly connected to the access point, and the access point can be considered the parent node of the root node; a network node whose level is greater than that of a certain network node is called the lower-level node of this network node (for example: the third, fourth, and fifth-level nodes are all lower-level nodes of the second-level node); all lower-level nodes of a certain network node that need to pass through to communicate with the access point are called descendant nodes of this network node.
[0045] In addition, the "assistance table" described in the present application refers to the relevant information stored in each relay node to record its descendant nodes (for example: MAC address and its variant or MAC address, the variant of the MAC address is the result of hash calculation of the MAC address, or the result of CRC calculation of the MAC address). The following embodiments are described with the assistance table stored in each relay node to record the MAC addresses of its descendant nodes. In addition, the "node to be paired" refers to a new node to be added to the mesh network system, which may or may not have relay capability; when the node to be paired has relay capability, it and the relay node may have the same module and structure, because they execute different programs and play different roles. Furthermore, the "MAC address of the access point" described in the present application refers to the Basic Service Set Identifier (BSSID) of the access point.
[0046] During the construction of the mesh network system, each relay node can construct the contents of its own stored assistance table and each network node can confirm its own parent node. Therefore, before describing the pairing switching method of the mesh network system of the present application, the construction process of the mesh network system must be described first.
[0047] During the construction of the mesh network system, the network node acting as a root node can establish its connection with the access point through the existing pairing connection method, which is not described here; and the network node acting as a non-root node (hereinafter referred to as the node to be paired) can confirm its own parent node and join the mesh network system through the node pairing method described below, and enable each relay node of the mesh network system to update the contents of the assistance table stored in itself.
[0048] See also Figure 1, which is a flow chart of the first embodiment of the node pairing method according to the present application. The node pairing method includes: the node to be paired sends a pairing request data packet to its parent node and starts a timer, wherein the sending address of the pairing request data packet is the MAC address of the node to be paired and the receiving address is the MAC address of the parent node of the node to be paired, and the parent node of the node to be paired is a relay node of the mesh network system (step 110); after the relay node receives the pairing request data packet and determines that it can provide relay service for the node to be paired, it adds the MAC address of the node to be paired to an assistance table stored in itself, wherein the assistance table includes the MAC addresses of all subordinate nodes for which it provides relay service (step 120); if the relay node that receives the pairing request data packet is a non-root node, the receiving address of the received pairing request data packet is modified to the MAC address of its own parent node and then forwarded uplink (step 130); if the relay node that receives the pairing request data packet is a root node, it returns a pairing consent data packet, wherein the receiving address of the pairing consent data packet is the MAC address of the node to be paired and the sending address is its own MAC address (step 140); if the node to be paired receives the pairing consent data packet, it means that the pairing is successful (step 160). It should be noted that when the parent node of the node to be paired is the root node, step 130 can be omitted.
[0049] In one embodiment, when the parent node of the node to be paired is a non-root node, the node pairing method may further include after step 140 and before step 160: the relay node that receives the pairing agreement data packet confirms that the sending address of the pairing agreement data packet is the MAC address of its parent node, and when the receiving address exists in the assistance table stored in itself, the sending address of the pairing agreement data packet is modified to its own MAC address and then forwarded downstream until the pairing agreement data packet is forwarded to the node to be paired (step 150).
[0050] The formats of the pairing request data packet and the pairing consent data packet may be data frames, management frames, control frames, or other custom types of frames defined by the 802.11 protocol, and the same data packet may be used to represent multiple meanings or multiple types of data packets may be used.
[0051] In one embodiment, the format of the pairing request data packet may be a null data frame defined using the 802.11 protocol, wherein the null data frame includes: a frame control field, a continuation field, an address 1 field, an address 2 field, an address 3 field, a sequence control field, and a frame check sequence field; specifically, in step 110, the node to be paired sends a pairing request data packet, including: the node to be paired fills the address 1 field in the null data frame with the MAC address of the parent node of the node to be paired, fills the address 2 field with the MAC address of the node to be paired, sets the first preset bit of the address 3 field to a first preset value to define the null data frame as a handshake frame, sets multiple second preset bits of the address 3 field to a third preset value to define the type of the handshake frame as a pairing request, so as to generate and send the pairing request data packet. In one example, the first preset bit of the address 3 field may be bit0, the first preset value may be 1 (ie, bit0 is 1), the multiple second preset bits of the address 3 field may be bit1 to bit4, the third preset value may be 0 (ie, bit1 to bit4 are all 0), and the other bits of the address 3 field (ie, bit5 to bit47) may be reserved for encoding, so that the handshake frame carries pairing related information (such as Figure 2 As shown, Figure 2 1 is a schematic diagram of the format of an embodiment of a pairing request data packet according to the present application). It should be noted that although the bit 0 value of the address defined by the 802.11 protocol is 1, it indicates a multicast address, but since the empty data frame does not include a multicast address when actually used, this feature can be used to allow both hardware and software to easily identify that this is a data packet defined in the present application.
[0052] In addition, the format of the pairing consent packet may also be an empty data frame defined using the 802.11 protocol; specifically, if the relay node that receives the pairing request packet is a root node, the pairing consent packet is returned in step 140, which also includes: the root node fills the address 1 field in the empty data frame with the MAC address of the node to be paired, fills the address 2 field with the MAC address of the root node, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, and sets the multiple second preset bits of the address 3 field to the fourth preset value to define the type of the handshake frame as pairing consent, so as to generate and return the pairing consent packet. In one example, the first preset bit of the address 3 field may be bit0, the first preset value may be 1 (i.e., bit0 is 1), the multiple second preset bits of the address 3 field may be bit1 to bit4, the fourth preset value may be 1 (i.e., bits 1 to bit3 are all 0, and bit4 is 1), and the other bits of the address 3 field (i.e., bit5 to bit47) may be reserved for encoding, so that the handshake frame carries pairing related information (such as Figure 3 As shown, Figure 3FIG. 4 is a schematic diagram of the format of a pairing consent data packet according to an embodiment of the present application.
[0053] More specifically, the following pairing Figures 4 to 7 By way of example Figure 1 An illustration of the node pairing method shown.
[0054] See also Figure 4 , which is a schematic diagram of the first embodiment of the mesh network system of the present application. Figure 4 As shown, the mesh network system 100 includes an access point 200 and multiple network nodes. The multiple network nodes can communicate with each other through the mesh network. The multiple network nodes include multiple relay nodes (i.e., relay node 300a, relay node 300b and relay node 300c). Relay node 300a serves as a root node that is communicatively connected to the access point 200, the parent node of relay node 300c is relay node 300b, and the parent node of relay node 300b is relay node 300a.
[0055] See also Figure 5 , which is a schematic diagram of an embodiment of the relay node of the present application. The relay node 300a, the relay node 300b and the relay node 300c may include: a storage module 410, a receiving module 420, a processing module 430, a data packet generation module 440, an address conversion module 450 and a sending module 460, the receiving module 420 is connected to the storage module 410, the processing module 430 is connected to the receiving module 420 and the storage module 410, the data packet generation module 440 is connected to the processing module 430, the address conversion module 450 is connected to the storage module 410 and the processing module 430, the sending module 460 is connected to the address conversion module 450 and the data packet generation module 440, and the storage module 410 is used to store the assistance table. Among them, the receiving module 420, the processing module 430, the data packet generating module 440, the address converting module 450 and the sending module 460 can be implemented as software, hardware and appropriate combinations thereof; the software module can be located in a storage medium in this field and perform its work through a processor. For example, if the above modules are all software modules, they can be located in the same processor, or in different processors in any combination.
[0056] See also Figure 6, which is a schematic diagram of an embodiment of the node to be paired of the present application. The node to be paired 500 is a node to be added to the mesh network system 100, and the node to be paired 500 includes: a data packet generation module 510, a sending module 520, a receiving module 530 and a processing module 540, wherein the sending module 520 is connected to the data packet generation module 510, the processing module 540 is connected to the sending module 520 and the receiving module 530, and the processing module 540 includes a timer 542. Among them, the data packet generation module 510, the sending module 520, the receiving module 530 and the processing module 540 can be implemented as software, hardware and their appropriate combination; the software module can be located in a storage medium in the art, and its work is completed by a processor. For example, if the above modules are all software modules, they can be located in the same processor, or in different processors in any combination.
[0057] See also Figures 4 to 7 , Figure 7 for Figure 6 The node to be paired joins Figure 4 A flowchart of a node pairing method according to a first embodiment of a mesh network system. Figure 6 500 nodes to be paired want to join Figure 4 When the mesh network system 100 is connected, the node to be paired 500 generates a pairing request packet through the packet generation module 510 (step 610), the sending module 520 sends the pairing request packet to the relay node 300c (step 620), and starts the timer 542 (step 630), wherein the parent node of the node to be paired 500 is the relay node 300c, the sending address of the pairing request packet is the MAC address of the node to be paired 500, and the receiving address is the MAC address of the relay node 300c. Since the receiving address of the pairing request packet is the MAC address of the relay node 300c, the relay node 300c receives the pairing request packet through the receiving module 420. When the processing module 430 of the relay node 300c determines that it can provide relay service for the node to be paired 500, based on the fact that the sending address of the pairing request data packet is the MAC address of the node to be paired 500, the MAC address of the node to be paired 500 is added to the assistance table stored in the storage module 410 (step 640), and it is determined whether the relay node 300c is a root node. When the processing module 430 of the relay node 300c determines that it is a non-root node, the relay node 300c modifies the receiving address of the received pairing request data packet from the MAC address of the relay node 300c to the MAC address of the relay node 300b through the address conversion module 450 (step 650), and the sending module 460 sends the pairing request data packet with the receiving address modified by the address conversion module 450 to the relay node 300b (step 660).
[0058] Since the receiving address of the pairing request packet is the MAC address of the relay node 300b, the relay node 300b receives the pairing request packet through the receiving module 420. After the processing module 430 of the relay node 300b determines that the relay service can be provided for the node to be paired 500, based on the fact that the sending address of the pairing request packet is the MAC address of the node to be paired 500, the MAC address of the node to be paired 500 is added to the assistance table stored in the storage module 410 (step 670). When the processing module 430 of the relay node 300b determines that it is a non-root node, the relay node 300b modifies the receiving address of the received pairing request packet from the MAC address of the relay node 300b to the MAC address of the relay node 300a through the address conversion module 450 (step 680), and the sending module 460 sends the pairing request packet with the receiving address modified by the address conversion module 450 to the relay node 300a (step 690).
[0059] Since the receiving address of the pairing request packet is the MAC address of the relay node 300a, the relay node 300a receives the pairing request packet through the receiving module 420. After the processing module 430 of the relay node 300a determines that it can provide relay service for the node to be paired 500, based on the fact that the sending address of the pairing request packet is the MAC address of the node to be paired 500, the MAC address of the node to be paired 500 is added to the assistance table stored in the storage module 410 (step 710). When the processing module 430 of the relay node 300a determines that it is the root node, the relay node 300a generates a pairing consent packet through the packet generation module 440 (step 720), and the sending module 460 sends the pairing consent packet generated by the packet generation module 440 to the relay node 300b (step 730), wherein the receiving address of the pairing consent packet is the MAC address of the node to be paired 500 and the sending address is the MAC address of the relay node 300a.
[0060] Since the sending address of the pairing consent data packet is the MAC address of the relay node 300a, and the receiving address exists in the assistance table stored in the storage module 410 of the relay node 300b, the relay node 300b receives the pairing consent data packet through the receiving module 420, and modifies the sending address of the pairing consent data packet to the MAC address of the relay node 300b through the address conversion module 450 (step 740), and the sending module 460 sends the pairing consent data packet with the sending address modified by the address conversion module 450 to the relay node 300c (step 750). Since the sending address of the pairing consent data packet is the MAC address of the relay node 300b, and the receiving address exists in the assistance table stored in the storage module 410 of the relay node 300c, the relay node 300c receives the pairing consent data packet through the receiving module 420, and modifies the sending address of the pairing consent data packet to the MAC address of the relay node 300c through the address conversion module 450 (step 760), and the sending module 460 modifies the sending address of the pairing consent data packet to the node to be paired 500 through the address conversion module 450 (step 770).
[0061] Since the receiving address of the pairing agreement data packet is the MAC address of the node to be paired 500, the node to be paired 500 receives the pairing agreement data packet through the receiving module 530. If the timer 542 has not timed out when the receiving module 530 receives the pairing agreement data packet, it means that the pairing is successful (step 780) (that is, the node to be paired 500 successfully joins the mesh network system 100).
[0062] See also Figure 8 , which is a flow chart of the second embodiment of the node pairing method according to the present application. In addition to the above steps 110 to 160, the node pairing method may also include: when the relay node that receives the pairing request data packet determines that it cannot provide relay service for the node to be paired, it returns a pairing rejection data packet, wherein the receiving address of the pairing rejection data packet is the MAC address of the node to be paired and the sending address is its own MAC address (step 170); and if the node to be paired receives the pairing rejection data packet, it means that the pairing fails (step 190). It should be noted that, when it is determined that relay service cannot be provided for the node to be paired and the relay node that returns the pairing rejection data packet is not the parent node of the node to be paired, the node pairing method may also include after step 170 and before step 190: the relay node that receives the pairing rejection data packet confirms that the sending address of the pairing rejection data packet is the MAC address of its parent node, and when the receiving address exists in the assistance table stored in itself, the MAC address of the node to be paired is deleted from the assistance table stored in itself, and the sending address of the received pairing rejection data packet is modified to its own MAC address and then forwarded downlink until the pairing rejection data packet is forwarded to the node to be paired (step 180).
[0063] The format of the pairing rejection packet may be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol. In one embodiment, the format of the pairing rejection packet may also be an empty data frame defined by the 802.11 protocol; specifically, when the node receiving the pairing request packet in step 170 determines that it cannot provide relay service for the node to be paired, it returns the pairing rejection packet, and also includes: the relay node receiving the pairing request packet fills the address 1 field in the empty data frame with the MAC address of the node to be paired, fills the address 2 field with its own MAC address, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, and sets the multiple second preset bits of the address 3 field to the second preset value to define the type of the handshake frame as pairing rejection, so as to generate and return the pairing rejection packet. In one example, the first preset bit of the address 3 field may be bit0, the first preset value may be 1, the multiple second preset bits of the address 3 field may be bit1 to bit4, the second preset value may be 2 (i.e., bit1, bit2 and bit4 are all 0, bit3 is 1), and the other bits of the address 3 field (i.e., bit5 to bit47) may be reserved for encoding, so that the handshake frame carries pairing related information (such as Fig. 9 As shown, Fig. 9 FIG. 4 is a schematic diagram of the format of a pairing rejection data packet according to an embodiment of the present application.
[0064] In one embodiment, situations in which a relay node determines that it cannot provide relay services to a node to be paired may include but are not limited to: (1) the storage capacity of the relay node's assistance table has reached an upper limit and it can no longer provide relay services to more network nodes; (2) the relay node turns off the relay service function; (3) the relay node is trying to switch connections to other network nodes; (4) the relay node has left the mesh network system.
[0065] It should be noted that the relay node determined in step 170 to be unable to provide relay service for the node to be paired may be a relay node that is a root node or a non-root node.
[0066] More specifically, the following pairing Figures 4 to 6 , Fig.10 By way of example Figure 8 An illustration of the node pairing method shown.
[0067] See also Figures 4 to 6 , Fig.10 , Fig.10 for Figure 6 The node to be paired joins Figure 4 A flowchart of a node pairing method according to a second embodiment of a mesh network system. Fig.10 and Figure 7 The difference lies in the process after the relay node 300b determines that it cannot provide relay service for the node to be paired 500, so the process description of step 610 to step 660 is not repeated. Fig.10 As shown, after the relay node 300b determines that it cannot provide relay service for the node to be paired 500 through the processing module 430, it generates a pairing rejection data packet through the data packet generation module 440 (step 790), and sends the pairing rejection data packet to the relay node 300c through the sending module 460 (step 810), wherein the receiving address of the pairing rejection data packet is the MAC address of the node to be paired 500 and the sending address is the MAC address of the relay node 300b. The relay node 300c confirms through the processing module 430 that the sending address of the pairing rejection data packet is the MAC address of its parent node. After the receiving address exists in the assistance table stored in the storage module 410, the MAC address of the node to be paired 500 is deleted from the assistance table stored in the storage module 410 (step 820); then, the relay node 300c modifies the sending address of the received pairing rejection data packet to the MAC address of the relay node 300c through the address conversion module 450 (step 830); thereafter, the relay node 300c sends the pairing rejection data packet with the sending address modified by the address conversion module 450 to the node to be paired 500 through the sending module 460 (step 840).
[0068] Since the receiving address of the pairing rejection data packet is the MAC address of the node to be paired 500, the node to be paired 500 receives the pairing rejection data packet through the receiving module 530. If the timer 542 has not timed out when the receiving module 530 receives the pairing rejection data packet, it means that the pairing has failed (step 850) (that is, the node to be paired 500 has not successfully joined the mesh network system 100).
[0069] See also Fig.11 , which is a flowchart of the third embodiment of the node pairing method according to the present application. In addition to the above steps 110 to 190, the node pairing method may also include: if the timer times out, it means that the pairing fails (step 192). Specifically, if the timer times out and the node to be paired does not receive a pairing rejection data packet or a pairing success data packet, it means that the pairing fails.
[0070] In one embodiment, see Fig.12 , which is a flow chart of the fourth embodiment of the node pairing method according to the present application; before step 110, the node pairing method may also include: setting the node to be paired to only receive data packets of various types that meet the filtering conditions, wherein the filtering conditions are that the sending address of each type of data packet is the MAC address of the parent node of the node to be paired and the receiving address is the MAC address of the node to be paired (step 102).
[0071] In one embodiment, see Fig.12 Before step 102, the node pairing method may further include: the node to be paired extracts the signal strength (Received Signal Strength Indication, RSSI) between each relay node and the access point in the mesh network system and obtains the signal strength between it and each relay node through a plurality of beacon data packets or a plurality of probe response data packets obtained by a scanning program (step 104); and the node to be paired selects a relay node as its parent node based on the signal strength between each relay node and the access point and the signal strength between it and each relay node (step 106).
[0072] In one example, the scanning procedure is for the node to be paired to actively detect and search for each relay node in the mesh network system; specifically, the node to be paired can send a probe request frame (probe request) on the channel it supports in sequence, and the probe request frame does not carry SSID but may include a vendor-defined information element (Vendor IE), such as BSSID and information requesting assistance, to detect all available relay nodes around; the relay node that receives the probe request frame will send a probe response frame (probe response) to the node to be paired, and the probe response frame may include BSSID, the signal strength between itself and the access point, the MAC address of the root node to which it is connected, the level of itself in the mesh network system, the number of subsequent nodes that provide relay services, information that can provide assistance, and other vendor-defined information elements. Therefore, the node to be paired can receive the probe response frame sent by each relay node through the above scanning procedure, and obtain the signal strength between itself and each relay node and the signal strength between each relay node and the access point, and then select a relay node as its parent node. For example, the node to be paired first selects the relay node with the best signal strength between it and its parent node as its parent node. However, if the signal strength between the selected relay node and its parent node is poor / the signal strength between the nodes on its uplink path is poor, the node to be paired will instead select the relay node with the second best signal strength as its parent node, and so on, until a suitable relay node is selected as its parent node.
[0073] In another example, the scanning procedure is for the node to be paired to passively receive beacon frames sent by each relay node of the mesh network system; specifically, each relay node of the mesh network system periodically broadcasts beacon frames, and the node to be paired can listen to beacon frames on each channel it supports. The beacon frame may include BSSID, the signal strength between itself and the access point, the MAC address of the root node to which it is connected, the level of itself in the mesh network system, the number of subsequent nodes that provide relay services, information that can provide assistance, and other manufacturer-defined information elements. Therefore, the node to be paired can receive the detection response frames sent by each relay node through the above scanning procedure, and obtain the signal strength between itself and each relay node and the signal strength between each relay node and the access point, and then select a relay node as its parent node.
[0074] pass Figure 1 , Figure 8 , Fig.11 and Fig.12 The node pairing method can enable a network node that is not a root node (i.e., a node to be paired) to confirm its own parent node and join the mesh network system, and enable each relay node of the mesh network system to update the contents of its own stored assistance table to construct a mesh network system, and is applied to the following data transmission method and the pairing switching method of the present application.
[0075] See also Fig.13 , which is a flow chart of the first embodiment of the data transmission method according to the present application. The data transmission method includes: the software layer of the site generates a data packet, wherein the sending address of the data packet is the MAC address of the site and the receiving address is the MAC address of the access point (step 1010); the hardware layer of the site modifies the receiving address of the data packet to the MAC address of its own parent node and then sends it (step 1020); the relay node that receives the data packet returns an ACK frame, and modifies the receiving address of the data packet to the MAC address of its own parent node and then forwards it uplink until the data packet is forwarded to the access point (step 1030); and after receiving the data packet, the access point returns an ACK frame, parses the data packet, and determines the reception of data from the site based on the sending address of the data packet (step 1040).
[0076] The format of the data packet generated by the software layer of the station may be a data frame, a management frame, a control frame defined by the 802.11 protocol, or other custom-defined frames.
[0077] In one embodiment, the format of the data packet generated by the software layer of the station may be a data frame defined by the 802.11 protocol, wherein the data frame includes: a frame control field, a continuation field, an address 1 field, an address 2 field, an address 3 field, a sequence control field, an address 4 field, a quality of service (QoS) control field, a high throughput (HT) control field, a frame body field, and a frame check sequence field (such as Fig.14 As shown, Fig.14 A schematic diagram of the format of an embodiment of a data packet generated by a site according to the present application); specifically, the software layer of the site fills the address 1 field in the data frame with the MAC address of the access point, and fills the address 2 field with its own MAC address to generate the data packet, but this embodiment is not used to limit the present application.
[0078] In one embodiment, considering the security of data transmission, the data transmission method may encrypt the data packet at the site and decrypt the data packet at the access point. Specifically, when the encryption and decryption method adopts Temporal Key Integrity Protocol (TKIP), Counter Mode Cipher Block Chaining Message Authentication Protocol (CCMP) or Wired Equivalent Privacy (WEP), step 1010 may include: the software layer of the site generates a data packet and encrypts the data packet, or step 1020 may include: after the hardware layer of the site encrypts the data packet, the receiving address of the data packet is modified to the MAC address of the parent node of the site, and then sent; step 1040 may include: the access point decrypts the received data packet, and based on the sending address of the data packet being the MAC address of the site, determines to receive the data from the site. In another embodiment, when TKIP or WEP is used for encryption and decryption, step 1020 may include: the hardware layer of the site modifies the receiving address of the data packet to the MAC address of its own parent node, encrypts the data packet, and then sends it; step 1040 may include: the access point decrypts the received data packet, and based on the fact that the sending address of the data packet is the MAC address of the site, determines to receive the data from the site.
[0079] In one embodiment, in order to ensure the correctness and integrity of data transmission, the data transmission method may use a cyclic redundancy check (CRC) algorithm to check the data packet. Specifically, step 1020 may include: after the hardware layer of the station modifies the receiving address of the data packet to the MAC address of its own parent node, first perform CRC calculation on the data packet, then fill the calculated CRC code into the data packet, and then send the data packet; step 1030 may include: the relay node that receives the data packet performs CRC check on the data packet, when the data packet passes the CRC check, the relay node returns an ACK frame, and modifies the receiving address of the received data packet to the MAC address of its own parent node, then performs CRC calculation on the data packet, and fills the calculated CRC code into the data packet, and then performs uplink forwarding until the data packet is forwarded to the access point; step 1040 may include: after the access point receives the data packet, first perform CRC check on the data packet, when the data packet passes the CRC check, the access point returns an ACK frame, and parses the data packet to obtain data from the station.
[0080] In another embodiment of using a CRC check algorithm to check the data packet, step 1020 may include: the hardware layer of the site first performs CRC calculation on the data packet, and fills the calculated CRC code into the data packet, and then modifies the receiving address of the data packet to the MAC address of its own parent node, and then sends the data packet; step 1030 may include: the relay node that receives the data packet modifies the receiving address of the data packet to the MAC address of the access point, and then performs CRC check on the data packet, when the data packet passes the CRC check, returns an ACK frame, and modifies the receiving address of the data packet to the MAC address of its own parent node (the data packet retains the original CRC code) and then forwards it uplink until the data packet is forwarded to the access point; step 1040 may include: after receiving the data packet, the access point first performs CRC check on the data packet, when the data packet passes the CRC check, returns an ACK frame, and parses the data packet to obtain data from the site.
[0081] In one embodiment, taking into account the security, correctness and integrity of data transmission, the data transmission method may simultaneously include encryption and decryption processing of the data field of the data packet and verification of the data packet using a CRC verification algorithm.
[0082] See also Fig.15, which is a flow chart of the second embodiment of the data transmission method according to the present application. The data transmission method includes: the access point sends a data packet, wherein the receiving address of the data packet is the MAC address of the site and the sending address is the MAC address of the access point (step 2010); the relay node receives the data packet based on the MAC address of the site stored in its own assistance table and the sending address of the data packet is the MAC address of its own parent node, returns an ACK frame to its own parent node, and modifies the sending address of the data packet to its own MAC address before forwarding it downlink until the data packet is forwarded to the site, wherein the assistance table includes the MAC addresses of all lower-level nodes that provide relay services for itself (step 2020); and the hardware layer of the site receives the data packet based on the sending address of the data packet being the MAC address of its own parent node and the receiving address being the MAC address of the site, returns an ACK frame, modifies the sending address of the received data packet to the MAC address of the access point, and transmits it to the software layer, so that the software layer determines the reception of data from the access point based on the sending address of the data packet (step 2030).
[0083] The format of the data packet sent by the access point may be a data frame, a management frame, a control frame, or other custom-defined frames defined by the 802.11 protocol.
[0084] In one embodiment, the format of the data packet sent by the access point may be a data frame defined by the 802.11 protocol, such as Fig.14 Specifically, the access point fills the MAC address of the station in the address 1 field of the data frame, and fills its own MAC address in the address 2 field, to generate the data packet, but this embodiment is not intended to limit the present application. For example, the access point fills the MAC address of the station in the address 3 field of the data frame, and fills its own MAC address in the address 4 field, to generate the data packet (i.e., the receiving address is filled in the address 3 field, and the sending address is filled in the address 4 field).
[0085] In one embodiment, considering the security of data transmission, the data transmission method may encrypt the data packet at the access point and decrypt the data packet at the station; specifically, step 2010 may include: the access point encrypts the data packet and then sends it; step 2030 may include: the hardware layer of the station decrypts the data packet, modifies the sending address of the data packet to the MAC address of the access point, and then transmits it to the software layer, so that the software layer determines to receive data from the access point based on the sending address of the data packet. In another embodiment, step 2010 may include: the access point encrypts the data packet and then sends it; step 2030 may include: the hardware layer of the station modifies the sending address of the received data packet to the MAC address of the access point, and then transmits it to the software layer; and the software layer decrypts the data packet and determines to receive data from the access point based on the sending address of the data packet.
[0086] In one embodiment, in order to ensure the correctness and integrity of data transmission, the data transmission method may use a CRC check algorithm to check the data packet. Specifically, step 2010 may include: after the access point performs CRC calculation on the data packet, fills the calculated CRC code into the data packet, and then sends the data packet; step 2020 may include: the relay node that receives the data packet performs CRC check on the data packet, when the data packet passes the CRC check, the relay node returns an ACK frame, and modifies the sending address of the received data packet to its own MAC address, and then performs CRC calculation on the data packet, and fills the calculated CRC code into the data packet, and then forwards it downlink; step 2030 may include: the hardware layer of the station performs CRC check on the data packet, when the data packet passes the CRC check, the hardware layer returns an ACK frame, and modifies the sending address of the received data packet to the MAC address of the access point, and then transmits it to the software layer, so that the software layer determines the reception of data from the access point based on the sending address of the data packet.
[0087] In another embodiment of using a CRC check algorithm to check the data packet, step 2010 may include: after the access point performs CRC calculation on the data packet, it fills the calculated CRC code into the data packet and then sends the data packet; step 2020 may include: the relay node that receives the data packet performs CRC check on the data packet, and when the data packet passes the CRC check, the relay node returns an ACK frame, and modifies the sending address of the data packet to its own MAC address (the data packet retains the original CRC code) and then forwards it downlink; step 2030 may include: the hardware layer of the site modifies the sending address of the data packet to the MAC address of the access point, and then performs CRC check on the data packet. When the data packet passes the CRC check, the hardware layer of the site returns an ACK frame and transmits the data packet that passes the CRC check to the software layer, so that the software layer determines the reception of data from the access point based on the sending address of the data packet.
[0088] In one embodiment, taking into account the security, correctness and integrity of data transmission, the data transmission method may simultaneously include encryption and decryption processing of the data field of the data packet and verification of the data packet using a CRC verification algorithm.
[0089] See also Fig.16 and Fig.17 , which is a flow chart of a first embodiment of a pairing switching method of a mesh network system according to the present application. Fig.16 and Fig.17 As shown, the pairing switching method of the mesh network system includes: steps 201 to 205 and step 208.
[0090] In step 201, the network node executes a scanning procedure to select a new parent node, so that the current parent node becomes the old parent node.
[0091] In one embodiment, when the network node detects that the communication quality between it and the current parent node is poor or receives the first pairing cancellation data packet from the current parent node, it executes a scanning procedure to select a new parent node, so that the current parent node becomes the old parent node. The format of the first pairing cancellation data packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol; in one example, the current parent node fills the address 1 field in the empty data frame with the MAC address of the network node, fills the address 2 field with the MAC address of the current parent node, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, and sets the multiple second preset bits of the address 3 field to the fifth preset value to define the type of the handshake frame as pairing cancellation, so as to generate the first pairing cancellation data packet.
[0092] In one example, when a network node statistics that its failure rate in sending uplink data packets reaches a first threshold, the energy of the data packet received from the current parent node is lower than a second threshold, or the beacon is lost continuously for a period of time, it means that the network node detects that the communication quality between it and the current parent node is poor, and thus executes the scanning procedure to select a new parent node, wherein the size of the first threshold and the second threshold can be set according to actual needs.
[0093] In one example, when the current parent node detects that the communication quality between it and the network node is poor or receives a request from the application layer to disconnect the current network connection or connect to another network, it sends a first pairing cancellation data packet to the network node, so that the network node executes the scanning procedure to select a new parent node, but this example is not intended to limit the present application.
[0094] In one embodiment, the method in which the network node executes the scanning procedure to select a new parent node can be similar to Fig.12The method in which the node to be paired selects a parent node through a scanning program is the same, and will not be repeated here. In another embodiment, the network node in step 201 executes a scanning program to select a new parent node, so that the current parent node becomes an old parent node, and further includes: the network node obtains the communication information of each relay node in the mesh network system based on multiple beacon data packets or multiple detection response data packets obtained through the scanning program; and the network node selects a relay node as a new parent node based on the communication information of each relay node. Among them, the communication information of each relay node may include but is not limited to: the signal strength between each relay node and the access point, the signal strength between the network node and each relay node, the level of each relay node in the mesh network system, the relay service capability of each relay node and / or the MAC address of each relay node; the relay service capability of each relay node allows the network node to determine how many lower-level nodes each relay node can provide relay services for; the MAC address of each relay node allows the network node to confirm whether the MAC address of each relay node is in its own assistance table.
[0095] In step 202, when the new parent node is not an access point, the network node generates and sends a pairing change request packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node, and starts a timer.
[0096] Among them, the old root node is the root node corresponding to the old parent node; the sending address of the pairing change request data packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node. The format of the pairing change request data packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol; in one embodiment, the format of the pairing change request data packet can be based on the pairing request data packet. Expand the payload field; Specifically, the network node in step 202 generates and sends a packet carrying the MAC address of its descendant node, the MAC address of the old root node, and the MAC address of the old parent node. The pairing change request packet of the MAC address is sent to the new parent node, including: the network node fills the address 1 field in the empty data frame with the MAC address of the new parent node, fills the address 2 field with the MAC address of the network node, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, sets the multiple second preset bits of the address 3 field to the third preset value to define the type of the handshake frame as a pairing request, and fills the extended payload field with the MAC address of the descendant node of the network node, the MAC address of the old root node and the MAC address of the old parent node, so as to generate and send the pairing change request packet to the new parent node. Among them, the extended payload field in the pairing change request packet can carry the MAC address of the new parent node.
[0097] In one example, the first preset bit of the address 3 field may be bit0, the first preset value may be 1 (i.e., bit0 is 1), the multiple second preset bits of the address 3 field may be bit1 to bit4, the third preset value may be 0 (i.e., bit1 to bit4 are all 0), and the other bits of the address 3 field (i.e., bit5 to bit47) may be reserved for encoding, and the expanded payload field may be filled with the MAC address of the descendant node of the network node, the MAC address of the old root node, and the MAC address of the old parent node in sequence.
[0098] In step 203, when the new parent node that receives the pairing change request data packet determines that it can provide relay services for the network node and its descendant nodes, it adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself.
[0099] In step 204, when the new parent node is a root node, a first pairing agreement packet is generated and transmitted back to the network node. The sending address of the first pairing agreement packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node; the format of the first pairing agreement packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol. In one embodiment, the new parent node in step 204 generates and transmits the first pairing agreement packet back to the network node, including: the new parent node fills the address 1 field in the empty data frame with the MAC address of the network node, the address 2 field with the MAC address of the new parent node, the first preset bit of the address 3 field is set to the first preset value to define the empty data frame as a handshake frame, and the multiple second preset bits of the address 3 field are set to the fourth preset value to define the type of the handshake frame as pairing agreement, so as to generate and transmit the first pairing agreement packet back.
[0100] In step 205, when the new parent node is not the root node, the receiving address is modified to be the MAC address of its own parent node and then the pairing change request data packet is forwarded upstream.
[0101] In step 208 , if the timer has not timed out and the network node receives the first pairing consent packet, it means that the pairing switch is successful.
[0102] In one embodiment, when the new parent node is not the root node, the pairing switching method of the mesh network system may further include, after step 205 : step 206 , step 207 and step 208 a .
[0103] In step 206, after receiving the pairing change request data packet, the relay node determines that it can provide relay services for the network node and its descendant nodes, and adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself, and modifies the receiving address to the MAC address of its own parent node, and then forwards the pairing change request data packet upstream until the root node corresponding to the new parent node receives the pairing change request data packet, so that the root node corresponding to the new parent node, after determining that it can provide relay services for the network node and its descendant nodes, adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself, and generates and forwards the second pairing consent data packet downstream. Among them, the sending address of the second pairing consent data packet is the MAC address of the root node corresponding to the new parent node and the receiving address is the MAC address of the network node; the format of the second pairing consent data packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol. In one embodiment, in step 206, the root node corresponding to the new parent node generates and downstream forwards a second pairing agreement data packet, including: the root node corresponding to the new parent node fills the address 1 field in the empty data frame with the MAC address of the network node, fills the address 2 field with the MAC address of the root node corresponding to the new parent node, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, and sets multiple second preset bits of the address 3 field to the fourth preset value to define the type of the handshake frame as pairing agreement, so as to generate and downstream forward the second pairing agreement data packet.
[0104] In step 207, when the relay node that receives the second pairing agreement data packet determines that the sending address of the second pairing agreement data packet is the MAC address of its own parent node and the receiving address is the MAC address in the assistance table stored in itself, it modifies the sending address to its own MAC address and then forwards the second pairing agreement data packet downstream until the network node receives the second pairing agreement data packet.
[0105] In step 208a, if the timer has not timed out and the network node receives the second pairing consent data packet, it means that the pairing switch is successful.
[0106] In one embodiment, after the above-mentioned step 201, the pairing switching method of the mesh network system may also include: setting the network node to only receive various types of data packets that meet the filtering conditions, wherein the filtering conditions are uplink data packets whose receiving address is the MAC address of the network node, or data packets whose sending address is the MAC address of the new parent node and whose receiving address is the MAC address of the network node (step 202a).
[0107] In one embodiment, the pairing switching method of the mesh network system may further include, in addition to the above steps 201 to 208 and step 208a, if the timer times out, it indicates that the pairing switching has failed. Specifically, if the timer times out and the node to be paired has not received the first pairing consent packet or the second pairing consent packet, it indicates that the pairing switching has failed.
[0108] In one embodiment, in addition to the above-mentioned steps 201 to 208 and step 208a, the pairing switching method of the mesh network system may also include: when the new parent node that receives the pairing change request data packet determines that it cannot provide relay services for the network node and its descendant nodes, it generates and returns a pairing rejection data packet to the network node, wherein the sending address of the pairing rejection data packet is its own MAC address and the receiving address is the MAC address of the network node; and when the network node receives the pairing rejection data packet, it means that the pairing switching has failed.
[0109] In one embodiment, the pairing switching method of the mesh network system may further include, in addition to the above steps 201 to 208 and step 208a, the following: when any relay node or the root node corresponding to the new parent node that receives the pairing change request data packet determines that it cannot provide relay services for the network node and its descendant nodes, a pairing rejection data packet is generated and forwarded downstream; and when the network node receives the pairing rejection data packet, it means that the pairing switching has failed. The sending address of the pairing rejection data packet is the MAC address of the network node itself and the receiving address is the MAC address of the network node, and the pairing rejection data packet carries the MAC address of the network node and its descendant nodes; the relay node that receives the pairing rejection data packet deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the pairing rejection data packet downstream until the network node receives the pairing rejection data packet.
[0110] See also Fig.18 and Fig.19 , respectively, in the application of mesh network system Fig.16 and Fig.17 A schematic diagram of an embodiment before and after the pairing switching method. The mesh network system 3100 includes an access point 3110 and a plurality of network nodes, the plurality of network nodes can communicate with each other through the mesh network, the plurality of network nodes include a plurality of relay nodes (i.e., relay node 3122a, relay node 3122b, and relay node 3130), the relay node 3122b and the relay node 3130 are root nodes connected to the access point 3110 for communication, and the parent node of the relay node 3122a is the relay node 3122b; in the process of constructing the mesh network system 3100 based on the above-mentioned node pairing method, the relay node 3122a, the relay node 3122b, and the relay node 3130 each store the MAC address of its descendant node in its own assistance table.
[0111] exist Fig.18 In , the parent node of the relay node 3130 is the access point 3110. Fig.19 In the example, the parent node of the relay node 3130 is changed to the relay node 3122a. The entire process of changing the parent node of the relay node 3130 from the access point 3110 to the relay node 3122a is as follows.
[0112] When the relay node 3130 detects that the communication quality between it and the access point 3110 is poor, it executes a scanning procedure to select the relay node 3122a, so that the access point 3110 becomes the old parent node.
[0113] The relay node 3130 is configured to only receive uplink data packets whose receiving address is its own MAC address, or to send data packets whose sending address is the MAC address of the relay node 3122a and whose receiving address is its own MAC address.
[0114] Since the relay node 3122a (i.e., the new parent node) is not an access point, the relay node 3130 generates and sends a pairing change request packet carrying the MAC address of its descendant node, its own MAC address, and the MAC address of the access point 3110 to the relay node 3122a, and starts a timer, wherein the sending address of the pairing change request packet is the MAC address of the relay node 3130 and the receiving address is the MAC address of the relay node 3122a. It should be noted that since the relay node 3130 itself was originally a root node and later changed to a non-root node, the relay node 3130 itself belongs to the old root node during the pairing switch.
[0115] After receiving the pairing change request data packet, the relay node 3122a first determines whether it can provide relay service for the relay node 3130 and its descendant nodes; when the relay node 3122a determines that it can provide relay service for the relay node 3130 and its descendant nodes, it adds the MAC addresses of the relay node 3130 and its descendant nodes to the assistance table stored in itself; then, the relay node 3122a determines that it is not a root node, and therefore changes the receiving address of the received pairing change request data packet from its own MAC address to the MAC address of its own parent node, and then forwards the modified pairing change request data packet upstream.
[0116] After receiving the pairing change request data packet, relay node 3122b first determines whether it can provide relay service for relay node 3130 and its descendant nodes; when relay node 3122b determines that it can provide relay service for relay node 3130 and its descendant nodes, it adds the MAC addresses of relay node 3130 and its descendant nodes to the assistance table stored in itself; then, because relay node 3122b is the root node, it generates and forwards a second pairing agreement data packet downstream, wherein the sending address of the second pairing agreement data packet is the MAC address of relay node 3122b and the receiving address is the MAC address of relay node 3130.
[0117] After receiving the second pairing agreement data packet, the relay node 3122a first determines that the sending address of the second pairing agreement data packet is the MAC address of its own parent node and the receiving address is the MAC address in its own stored assistance table, and then modifies the sending address of the received second pairing agreement data packet from the MAC address of the relay node 3122b to the MAC address of the relay node 3122a, and finally forwards the modified second pairing agreement data packet downstream to the relay node 3130.
[0118] When the timer does not expire and the relay node 3130 receives the second pairing agreement data packet, it means that the relay node 3130 is successfully paired with the relay node 3122a.
[0119] See also Fig. 20 , which is a flow chart of a second embodiment of a pairing switching method for a mesh network system according to the present application. The pairing switching method for a mesh network system includes Fig.16 and Fig.17 In addition to steps 201 to 208 and step 208a, the method may further include steps 210 to 213. It should be noted that in order to avoid Fig. 20 The drawing is too complex, and drawing steps 201 to 208 and step 208a are omitted.
[0120] In step 210, when the root node corresponding to the new parent node is different from the root node corresponding to the old parent node, the root node corresponding to the new parent node also generates and sends a pairing handover data packet carrying a pairing handover identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node to the access point, so that the access point forwards the pairing handover data packet to the old root node. The receiving address of the pairing handover data packet is the MAC address of the access point, the sending address is its own MAC address, and the target address is the MAC address of the old root node; the pairing handover data packet may be, but is not limited to, a normal data packet or a QoS data packet defined by the 802.11 protocol; the pairing handover data packet may include: an address 1 field, an address 2 field, an address 3 field, and a payload field.
[0121] In one embodiment, in step 210, the root node corresponding to the new parent node generates and sends a pairing switching data packet carrying a pairing switching identifier, a MAC address of the network node and its descendant nodes, and a MAC address of the old parent node to the access point, including: the root node corresponding to the new parent node fills the address 1 field in the data frame with the MAC address of the access point, fills the address 2 field with the MAC address of the root node corresponding to the new parent node (that is, its own MAC address), fills the address 3 field with the MAC address of the old root node, and fills the payload field with the pairing switching identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node, so as to generate and send the pairing switching data packet to the access point.
[0122] In one embodiment, after the network node confirms that the pairing switch is successful (step 208 or step 208a), it additionally notifies the new root node to execute step 210. In another embodiment, regardless of whether the pairing switch is successful, the root node corresponding to the new parent node can generate and send the pairing switch data packet to the access point at the same time or after generating and downlinking the second pairing consent data packet.
[0123] In step 211, after receiving the pairing switching data packet, the old root node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and generates and forwards a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes. The receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the old root node; the format of the second pairing cancellation data packet can be a data frame, management frame, control frame defined by the 802.11 protocol, or other custom types of frames.
[0124] In one embodiment, the format of the second pairing cancellation data packet can expand the payload field on the basis of the empty data frame, so that the old root node in step 211 generates and forwards the second pairing cancellation data packet carrying the MAC address of the network node and its descendant nodes in the downstream, including: the old root node fills the address 1 field in the empty data frame with the MAC address of the old parent node, fills the address 2 field with the MAC address of the old root node, sets the first preset bit of the address 3 field to the first preset value to define the empty data frame as a handshake frame, sets the multiple second preset bits of the address 3 field to the fifth preset value to define the type of the handshake frame as pairing cancellation, and fills the expanded payload field with the MAC address of the network node and its descendant nodes to generate and forward the second pairing cancellation data packet in the downstream. In one example, the first preset bit of the address 3 field can be bit0, the first preset value can be 1 (that is, bit0 is 1), the multiple second preset bits of the address 3 field can be bit1 to bit4, and the fifth preset value can be 3 (that is, bit1 to bit4 are all 3).
[0125] In step 212, the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet.
[0126] In step 213, after receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself.
[0127] Therefore, the old parent node and its superior node can delete the MAC addresses of the network node and its descendant nodes from their own stored assistance tables during the pairing switching process (ie, the old parent node and its superior node do not provide relay services to the network node and its descendant nodes).
[0128] See also Fig.21 and Fig. 22 Mesh network system in application Fig. 20 A schematic diagram of an embodiment before and after the pairing switching method. The mesh network system 3200 includes an access point 3210 and a plurality of network nodes, the plurality of network nodes can communicate with each other through the mesh network, the plurality of network nodes include a plurality of relay nodes (i.e., relay node 3212a, relay node 3212b, relay node 3222a, relay node 3222b, and relay node 3230), relay node 3222b and relay node 3212b are root nodes that are connected to the access point 3210 for communication, the parent node of relay node 3212a is relay node 3212b, and the parent node of relay node 3222a is relay node 3222b; in the process of constructing the mesh network system 3200 based on the above-mentioned node pairing method, relay node 3212a, relay node 3212b, relay node 3222a, relay node 3222b, and relay node 3230 each store the MAC address of its descendant node in its own assistance table.
[0129] exist Fig.21 In , the parent node of relay node 3230 is relay node 3212a. Fig. 22 In the example, the parent node of the relay node 3130 is changed to the relay node 3222a. The entire process of changing the parent node of the relay node 3230 from the relay node 3212a to the relay node 3222a is as follows.
[0130] When the relay node 3230 detects that the communication quality between it and the relay node 3212a is poor or receives the first pairing cancellation data packet from the relay node 3212a, it executes a scanning procedure to select the relay node 3222a, making the relay node 3212a an old parent node.
[0131] The relay node 3230 is configured to only receive uplink data packets whose receiving address is its own MAC address, or to send data packets whose sending address is the MAC address of the relay node 3222a and whose receiving address is its own MAC address.
[0132] Since the relay node 3222a is not an access point, the relay node 3230 generates and sends a pairing change request packet carrying the MAC address of its descendant node, its own MAC address, the MAC address of the relay node 3212a and the MAC address of the relay node 3222a to the relay node 3222a, and starts a timer, wherein the sending address of the pairing change request packet is the MAC address of the relay node 3230 and the receiving address is the MAC address of the relay node 3222a.
[0133] After receiving the pairing change request data packet, the relay node 3222a first determines whether it can provide relay services for the relay node 3230 and its descendant nodes; when the relay node 3222a determines that it can provide relay services for the relay node 3230 and its descendant nodes, it adds the MAC addresses of the relay node 3230 and its descendant nodes to the assistance table stored in itself; then, the relay node 3222a determines that it is not a root node, and therefore changes the receiving address of the received pairing change request data packet from its own MAC address to the MAC address of its own parent node, and then forwards the modified pairing change request data packet upstream.
[0134] After receiving the pairing change request data packet, relay node 3222b first determines whether it can provide relay service for relay node 3230 and its descendant nodes; when relay node 3222b determines that it can provide relay service for relay node 3230 and its descendant nodes, it adds the MAC addresses of relay node 3230 and its descendant nodes to the assistance table stored in itself; then, because relay node 3222b is the root node, it generates and forwards a second pairing agreement data packet downstream, wherein the sending address of the second pairing agreement data packet is the MAC address of relay node 3222b and the receiving address is the MAC address of relay node 3230.
[0135] After receiving the second pairing agreement data packet, the relay node 3222a first determines that the sending address of the second pairing agreement data packet is the MAC address of its own parent node and the receiving address is the MAC address in the assistance table stored in itself, and then modifies the sending address of the received second pairing agreement data packet from the MAC address of the relay node 3222b to the MAC address of the relay node 3222a, and finally forwards the modified second pairing agreement data packet downstream to the relay node 3230.
[0136] When the timer does not expire and the relay node 3230 receives the second pairing agreement data packet, it means that the relay node 3230 is successfully paired with the relay node 3222a.
[0137] Since the root node corresponding to the relay node 3222a is different from the root node corresponding to the relay node 3212a, the relay node 3222b may generate and send a pairing switching data packet carrying the pairing switching identifier, the MAC address of the relay node 3230 and its descendant nodes, and the MAC address of the relay node 3212a to the access point 3210 at the same time or after generating and downlink forwarding the second pairing agreement data packet, so that the access point 3210 forwards the pairing switching data packet to the relay node 3212b, wherein the receiving address of the pairing switching data packet is the MAC address of the access point 3210, the sending address is its own MAC address, and the target address is the MAC address of the relay node 3212b.
[0138] After receiving the pairing switching data packet, relay node 3212b deletes the MAC addresses of relay node 3230 and its descendant nodes from the assistance table stored in itself, and generates and forwards downstream a second pairing cancellation data packet carrying the MAC addresses of relay node 3230 and its descendant nodes and the MAC address of relay node 3222a, wherein the receiving address of the second pairing cancellation data packet is the MAC address of relay node 3212a and the sending address is the MAC address of relay node 3212b.
[0139] After receiving the second pairing cancellation data packet, the relay node 3212a deletes the MAC addresses of the relay node 3230 and its descendant nodes from the assistance table stored in itself.
[0140] See also Fig.23 , which is a flow chart of a third embodiment of a pairing switching method for a mesh network system according to the present application. The pairing switching method for a mesh network system includes Fig.16 and Fig.17 In addition to steps 201 to 208 and step 208a, the method may further include steps 225 to 228. It should be noted that in order to avoid Fig.23 The drawing is too complex, and drawing steps 201 to 208 and step 208a are omitted.
[0141] In step 225, when the root node corresponding to the new parent node is different from the root node corresponding to the old parent node, the root node corresponding to the new parent node also generates and sends a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes to the old root node, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the access point. The way in which the root node corresponding to the new parent node generates the second pairing cancellation data packet in step 225 is the same as the way in which the old root node generates the second pairing cancellation data packet in step 211, and will not be described in detail here.
[0142] In one embodiment, after the network node confirms that the pairing switch is successful (step 208 or step 208a), it additionally notifies the new root node to execute step 225. In another embodiment, regardless of whether the pairing switch is successful, the root node corresponding to the new parent node may generate and send a second pairing cancellation packet at the same time or after generating and downlinking the second pairing approval packet.
[0143] In step 226, the old root node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from its own stored assistance table, and modifies the sending address to its own MAC address before forwarding the second pairing cancellation data packet downstream.
[0144] In step 227, the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet.
[0145] In step 228, after receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself.
[0146] Therefore, through the setting of step 225, the new parent node directly generates and sends a second pairing cancellation data packet carrying the MAC address of the network node and its descendant nodes to the old root node, replacing step 210 in which the new parent node generates and sends a pairing switch data packet to the access point, so that the access point forwards the pairing switch data to the old root node, and step 211 in which the old root node generates and downstream forwards the second pairing cancellation data packet.
[0147] See also Fig.24 , which is a flowchart of a fourth embodiment of a pairing switching method for a mesh network system according to the present application. The pairing switching method for a mesh network system includes Fig.16 and Fig.17 In addition to steps 201 to 208 and step 208a, the method may further include steps 214 to 216. It should be noted that in order to avoid Fig.23 The drawing is too complex, and drawing steps 201 to 208 and step 208a are omitted.
[0148] In step 214, when the root node corresponding to the new parent node is the same as the root node corresponding to the old parent node, the root node corresponding to the new parent node generates and forwards downlink a second pairing cancellation packet carrying the MAC address of the network node and its descendant nodes. The receiving address of the second pairing cancellation packet is the MAC address of the old parent node and the sending address is its own MAC address; the format of the second pairing cancellation packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol; the way the root node corresponding to the new parent node generates the second pairing cancellation packet in step 214 is the same as the way the old root node generates the second pairing cancellation packet in step 211, which will not be repeated here.
[0149] In one embodiment, after the network node confirms that the pairing switch is successful (step 208 or step 208a), it additionally notifies the new root node to execute step 214. In another embodiment, regardless of whether the pairing switch is successful, the root node corresponding to the new parent node may generate and forward the second pairing cancellation packet at the same time or after generating and forwarding the second pairing approval packet.
[0150] In step 215, the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet.
[0151] In step 216, after receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself.
[0152] Therefore, the old parent node and its superior node can delete the MAC address of the network node and its descendant node from the assistance table stored in itself during the pairing switching process (that is, the old parent node and its superior node do not provide relay services to the network node and its descendant nodes). In addition, since the root node corresponding to the new parent node in this embodiment is the same as the root node corresponding to the old parent node, the root node corresponding to the new parent node in this embodiment does not need to generate a pairing switching data packet to the access point.
[0153] See also Fig.25 and Fig.26 Mesh network system in application Fig.24A schematic diagram of an embodiment before and after the pairing switching method. The mesh network system 3300 includes an access point 3310 and a plurality of network nodes, the plurality of network nodes can communicate with each other through the mesh network, the plurality of network nodes include a plurality of relay nodes (i.e., relay node 3312a, relay node 3312b, relay node 3312c, relay node 3322a, and relay node 3330), the relay node 3312c is a root node connected to the access point 3310 for communication, the parent node of the relay node 3312a is the relay node 3312b, and the parent node of the relay node 3312b and the relay node 3322a is the relay node 3312c; in the process of constructing the mesh network system 3300 based on the above-mentioned node pairing method, the relay node 3312a, the relay node 3312b, the relay node 3312c, the relay node 3322a, and the relay node 3330 each store the MAC address of its descendant node in its own assistance table.
[0154] exist Fig.25 In , the parent node of relay node 3330 is relay node 3312a. Fig.26 In the example, the parent node of the relay node 3330 is changed to the relay node 3322a. The entire process of changing the parent node of the relay node 3330 from the relay node 3312a to the relay node 3322a is as follows.
[0155] When the relay node 3330 detects that the communication quality between it and the relay node 3312a is poor or receives the first pairing cancellation data packet from the relay node 3312a, it executes a scanning procedure to select the relay node 3322a, making the relay node 3312a an old parent node.
[0156] The relay node 3330 is configured to only receive uplink data packets whose receiving address is its own MAC address, or to send data packets whose sending address is the MAC address of the relay node 3322a and whose receiving address is its own MAC address.
[0157] Since the relay node 3322a is not an access point, the relay node 3330 generates and sends a pairing change request packet carrying the MAC address of its descendant node, its own MAC address and the MAC address of the relay node 3312a to the relay node 3322a, and starts a timer, wherein the sending address of the pairing change request packet is the MAC address of the relay node 3330 and the receiving address is the MAC address of the relay node 3322a.
[0158] After receiving the pairing change request data packet, the relay node 3322a first determines whether it can provide relay service for the relay node 3330 and its descendant nodes; when the relay node 3322a determines that it can provide relay service for the relay node 3330 and its descendant nodes, it adds the MAC addresses of the relay node 3330 and its descendant nodes to the assistance table stored in itself; then, the relay node 3322a determines that it is not a root node, and therefore changes the receiving address of the received pairing change request data packet from its own MAC address to the MAC address of its own parent node, and then forwards the modified pairing change request data packet upstream.
[0159] After receiving the pairing change request data packet, relay node 3312c first determines whether it can provide relay service for relay node 3330 and its descendant nodes; when relay node 3312c determines that it can provide relay service for relay node 3330 and its descendant nodes, it adds the MAC addresses of relay node 3330 and its descendant nodes to the assistance table stored in itself; then, because relay node 3312c is the root node, relay node 3312c generates and forwards a second pairing agreement data packet downstream, wherein the sending address of the second pairing agreement data packet is the MAC address of relay node 3312c and the receiving address is the MAC address of relay node 3330.
[0160] After receiving the second pairing agreement data packet, the relay node 3322a first determines that the sending address of the second pairing agreement data packet is the MAC address of its own parent node and the receiving address is the MAC address in its own stored assistance table, and then modifies the sending address of the received second pairing agreement data packet from the MAC address of the relay node 3312c to the MAC address of the relay node 3322a, and finally forwards the modified second pairing agreement data packet downstream to the relay node 3330.
[0161] When the timer does not expire and the relay node 3330 receives the second pairing agreement data packet, it means that the relay node 3330 is successfully paired with the relay node 3322a.
[0162] Since the root node corresponding to the relay node 3322a is the same as the root node corresponding to the relay node 3312a, the relay node 3312c generates and forwards the second pairing cancellation packet carrying the MAC address of the relay node 3330 and its descendant nodes and the relay node 3322a at the same time or after generating and forwarding the second pairing approval packet. The receiving address of the second pairing cancellation packet is the MAC address of the relay node 3312a, and the sending address is its own MAC address.
[0163] After receiving the second pairing cancellation data packet, the relay node 3312b deletes the MAC addresses of the relay node 3330 and its descendant nodes from its own stored assistance table, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream to the relay node 3312a.
[0164] After receiving the second pairing cancellation data packet, the relay node 3312a deletes the MAC addresses of the relay node 3330 and its descendant nodes from the assistance table stored in itself.
[0165] See also Fig. 27 , which is a flowchart of a fifth embodiment of a pairing switching method for a mesh network system according to the present application. The pairing switching method for a mesh network system includes Fig.16 and Fig.17 In addition to steps 201 to 208 and step 208a, the method may further include steps 217 to 219. It should be noted that in order to avoid Fig.26 The drawing is too complicated, and steps 201 to 208 and 208a are omitted; in this embodiment, the pairing change request data packet described in step 202 carries the MAC address of the descendant node of the network node, the MAC address of the old root node, the MAC address of the old parent node and the MAC address of the new parent node, so as to facilitate the subsequent steps.
[0166] In step 217, when the root node corresponding to the new parent node is the same as the root node corresponding to the old parent node, the root node corresponding to the new parent node generates and forwards a third pairing cancellation packet carrying the MAC address of the network node and its descendant nodes and the MAC address of the new parent node. The receiving address of the third pairing cancellation packet is the MAC address of the old parent node and the sending address is its own MAC address; the format of the third pairing cancellation packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol; the way the root node corresponding to the new parent node generates the third pairing cancellation packet in step 217 is similar to the way the old root node generates the second pairing cancellation packet in step 211, except that the extended payload field is also filled with the MAC address of the new parent node.
[0167] In one embodiment, after the network node confirms that the pairing switch is successful (step 208 or step 208a), it additionally notifies the new root node to execute step 217. In another embodiment, regardless of whether the pairing switch is successful, the root node corresponding to the new parent node may generate and forward the third pairing cancellation packet at the same time or after generating and forwarding the third pairing approval packet.
[0168] In step 218, the relay node that receives the third pairing cancellation data packet first determines whether its own MAC address is the same as the MAC address of the new parent node or determines whether the MAC address of the new parent node is in its own stored assistance table, and then forwards the third pairing cancellation data packet downstream until the old parent node receives the third pairing cancellation data packet; wherein, if it is determined that its own MAC address is the same as the MAC address of the new parent node or the MAC address of the new parent node exists in its own stored assistance table, the relay node modifies the sending address to its own MAC address and then forwards the third pairing cancellation data packet downstream; if it is determined that its own MAC address is not the same as the MAC address of the new parent node or the MAC address of the new parent node does not exist in its own stored assistance table, the relay node deletes the MAC address of the network node and its descendant nodes from its own stored assistance table, and modifies the sending address to its own MAC address and then forwards the third pairing cancellation data packet downstream.
[0169] In step 219, after receiving the third pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
[0170] Therefore, the setting of step 218 can avoid the situation where the new parent node and the new parent node's superior node mistakenly delete the MAC addresses of the network node and its descendant nodes from their own stored assistance tables when the new parent node is the superior node of the old parent node.
[0171] See also Fig.28 and Fig.29 Mesh network system in application Fig. 27 A schematic diagram of an embodiment before and after the pairing switching method. The mesh network system 3400 includes an access point 3410 and a plurality of network nodes, the plurality of network nodes can communicate with each other through the mesh network, the plurality of network nodes include a plurality of relay nodes (i.e., relay node 3412a, relay node 3412b, relay node 3412c and relay node 3430), the relay node 3412c is a root node connected to the access point 3410 for communication, the parent node of the relay node 3412a is the relay node 3412b, and the parent node of the relay node 3412b is the relay node 3412c; in the process of constructing the mesh network system 3400 based on the above-mentioned node pairing method, the relay node 3412a, the relay node 3412b, the relay node 3412c and the relay node 3430 each store the MAC address of its descendant node in its own assistance table.
[0172] exist Fig.28 In , the parent node of relay node 3430 is relay node 3412a. Fig.29In the example, the parent node of the relay node 3430 is changed to the relay node 3412b. The entire process of changing the parent node of the relay node 3430 from the relay node 3412a to the relay node 3412b is as follows.
[0173] When the relay node 3430 detects that the communication quality between it and the relay node 3412a is poor or receives the first pairing cancellation data packet from the relay node 3412a, it executes a scanning procedure to select the relay node 3412b, making the relay node 3412a an old parent node.
[0174] The relay node 3430 is configured to only receive uplink data packets addressed to its own MAC address, or to send data packets addressed to the MAC address of the relay node 3412b and received to its own MAC address.
[0175] Since relay node 3412b is not an access point, relay node 3430 generates and sends a pairing change request packet carrying the MAC address of its descendant node, its own MAC address, the MAC address of relay node 3412a and the MAC address of relay node 3412c to relay node 3412b, and starts a timer, wherein the sending address of the pairing change request packet is the MAC address of relay node 3430 and the receiving address is the MAC address of relay node 3412b.
[0176] After receiving the pairing change request data packet, relay node 3412b first determines whether it can provide relay service for relay node 3430 and its descendant nodes; when relay node 3412b determines that it can provide relay service for relay node 3430 and its descendant nodes, it adds the MAC addresses of relay node 3430 and its descendant nodes to the assistance table stored in itself; then, relay node 3412b determines that it is not a root node, and therefore changes the receiving address of the received pairing change request data packet from its own MAC address to the MAC address of its own parent node, and then forwards the modified pairing change request data packet upstream.
[0177] After receiving the pairing change request data packet, relay node 3412c first determines whether it can provide relay service for relay node 3430 and its descendant nodes; when relay node 3312c determines that it can provide relay service for relay node 3430 and its descendant nodes, it adds the MAC addresses of relay node 3430 and its descendant nodes to its own stored assistance table; then, because relay node 3412c is the root node, relay node 3412c generates and forwards a second pairing agreement data packet downstream, wherein the sending address of the second pairing agreement data packet is the MAC address of relay node 3412c and the receiving address is the MAC address of relay node 3430.
[0178] After receiving the second pairing agreement data packet, relay node 3412b first determines that the sending address of the second pairing agreement data packet is the MAC address of its own parent node and the receiving address is the MAC address in its own stored assistance table, and then modifies the sending address of the received second pairing agreement data packet from the MAC address of relay node 3412c to the MAC address of relay node 3412b, and finally forwards the modified second pairing agreement data packet downstream to relay node 3430.
[0179] When the timer does not expire and the relay node 3430 receives the second pairing agreement data packet, it means that the relay node 3430 is successfully paired with the relay node 3412b.
[0180] Since the root node corresponding to the relay node 3412b is the same as the root node corresponding to the relay node 3412a, the relay node 3412c generates and forwards the third pairing cancellation packet carrying the MAC address of the relay node 3430 and its descendant nodes and the MAC address of the relay node 3412b at the same time or after generating and forwarding the second pairing approval packet. The receiving address of the third pairing cancellation packet is the MAC address of the relay node 3412a and the sending address is its own MAC address.
[0181] After receiving the third pairing cancellation data packet, relay node 3412b determines that it is the new parent node (i.e., determines that the MAC address of the new parent node (relay node 3412b) of the third pairing cancellation data packet is its own MAC address), modifies the sending address to its own MAC address, and then forwards the third pairing cancellation data packet downstream.
[0182] After receiving the third pairing cancellation data packet, the relay node 3412a deletes the MAC addresses of the relay node 3430 and its descendant nodes from the assistance table stored in itself.
[0183] See also Fig.30 , which is a flow chart of the sixth embodiment of the pairing switching method of the mesh network system according to the present application. Fig.30 As shown, the pairing switching method of the mesh network system includes: steps 220 to 224.
[0184] In step 220, the network node executes a scanning procedure to select a new parent node, so that the current parent node becomes the old parent node. Step 220 is the same as step 201 and will not be described in detail herein.
[0185] In step 221, when the new parent node is an access point, the network node generates and sends a pairing switching data packet carrying a pairing switching identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node to the access point, so that the access point forwards the pairing switching data packet to the old root node. Among them, the receiving address of the pairing switching data packet is the MAC address of the access point, the sending address is the MAC address of the network node, and the target address is the MAC address of the old root node; the pairing switching data packet can be, but is not limited to, a normal data packet or a QoS data packet defined by the 802.11 protocol. The way in which the network node generates the pairing switching data packet in step 221 is the same as the way in which the root node corresponding to the new parent node generates the pairing switching data packet in step 210, and will not be repeated here.
[0186] In step 222, after receiving the pairing switching data packet, the old root node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and generates and forwards a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes. The receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the old root node; the format of the second pairing cancellation data packet can be a data frame, management frame, control frame, or other custom type of frame defined by the 802.11 protocol; the way the old root node generates the second pairing cancellation data packet in step 222 is the same as the way the old root node generates the second pairing cancellation data packet in step 211 above, and will not be repeated here.
[0187] In step 223, the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet.
[0188] In step 224, after receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
[0189] In one embodiment, after the above-mentioned step 220, the pairing switching method of the mesh network system may also include: setting the network node to only receive various types of data packets that meet the filtering conditions, wherein the filtering conditions are uplink data packets whose receiving address is the MAC address of the network node, or data packets whose sending address is the MAC address of the new parent node and whose receiving address is the MAC address of the network node (step 221a).
[0190] See also Fig.31 and Fig.32 Mesh network system in application Fig.30A schematic diagram of an embodiment before and after the pairing switching method. The mesh network system 3500 includes an access point 3510 and a plurality of network nodes, the plurality of network nodes can communicate with each other through the mesh network, the plurality of network nodes include a plurality of relay nodes (i.e., relay node 3512a, relay node 3512b, and relay node 3530), the relay node 3512b is a root node that is connected to the access point 3510 for communication, and the parent node of the relay node 3512a is the relay node 3512b; in the process of constructing the mesh network system 3500 based on the above-mentioned node pairing method, the relay node 3512a, the relay node 3512b, and the relay node 3530 each store the MAC address of its descendant node in its own assistance table.
[0191] exist Fig.31 In , the parent node of relay node 3530 is relay node 3512a. Fig.32 In the example, the parent node of the relay node 3530 is changed to the access point 3510 (the relay node 3530 is changed to the new root node). The entire process of changing the parent node of the relay node 3530 from the relay node 3512a to the access point 3510 is as follows.
[0192] When the relay node 3530 detects that the communication quality between it and the relay node 3512a is poor or receives the first pairing cancellation data packet from the relay node 3512a, it executes a scanning procedure to select the access point 3510, so that the relay node 3512a becomes the old parent node.
[0193] The relay node 3530 is configured to receive only uplink data packets addressed to its own MAC address, or to send data packets addressed to the MAC address of the access point 3510 and received to its own MAC address.
[0194] Since the new parent node of relay node 3530 is an access point, relay node 3530 generates and sends a pairing switching data packet carrying a pairing switching identifier, the MAC address of relay node 3530 and its descendant nodes, and the MAC address of relay node 3512a to access point 3510, so that access point 3510 forwards the pairing switching data packet to relay node 3512a, wherein the receiving address of the pairing switching data packet is the MAC address of access point 3510, the sending address is the MAC address of relay node 3530, and the target address is the MAC address of relay node 3512b.
[0195] After receiving the pairing switching data packet, the relay node 3512b deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and generates and forwards downstream a second pairing cancellation data packet carrying the MAC addresses of the relay node 3530 and its descendant nodes and the MAC address of the access point 3510. The receiving address of the second pairing cancellation data packet is the MAC address of the relay node 3512a, and the sending address is the MAC address of the relay node 3512b.
[0196] The relay node 3512a that receives the second pairing cancellation data packet deletes the MAC addresses of the relay node 3530 and its descendant nodes from the assistance table stored in itself.
[0197] See also Fig.33 , which is a flow chart of the seventh embodiment of the pairing switching method of the mesh network system according to the present application. Fig.33 As shown, the pairing switching method of the mesh network system includes: steps 229 to 234.
[0198] In step 229, the network node executes a scanning procedure to select a new parent node, so that the current parent node becomes the old parent node. Step 229 is the same as step 201 and will not be described again.
[0199] In step 230, when the new parent node is not an access point, the network node generates and sends a pairing change request packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node, and starts a timer. The sending address of the pairing change request packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node, and the old root node is the root node corresponding to the old parent node. Step 220 is the same as step 202 and will not be repeated here.
[0200] In step 231, the new parent node that receives the pairing change request data packet determines that the MAC addresses of the network node and its descendant nodes exist in the assistance table stored in itself, generates and returns a first pairing approval data packet to the network node, and generates and sends downlink a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes. Among them, the assistance table includes the MAC addresses of all subordinate nodes that provide relay services, the sending address of the first pairing approval data packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node, and the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the new parent node. The way in which the root node corresponding to the new parent node in step 231 generates the second pairing cancellation data packet is the same as the way in which the old root node generates the second pairing cancellation data packet in step 211 above, and will not be repeated here.
[0201] In this embodiment, since the new parent node is the superior node of the old parent node, the new parent node can generate the first pairing consent data packet and the second pairing cancellation data packet without generating the first pairing consent data packet and the second pairing cancellation data packet through the root node corresponding to the new parent node.
[0202] In step 232 , if the network node receives the first pairing consent packet, it means the pairing switch is successful.
[0203] In step 233, the relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet.
[0204] In step 234, after receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself.
[0205] In one embodiment, after the above-mentioned step 229, the pairing switching method of the mesh network system may also include: setting the network node to only receive various types of data packets that meet the filtering conditions, wherein the filtering conditions are uplink data packets whose receiving address is the MAC address of the network node, or data packets whose sending address is the MAC address of the new parent node and whose receiving address is the MAC address of the network node (step 230a).
[0206] It should be noted that if there is no causal relationship between the above steps, this application does not limit the order of their execution.
[0207] To summarize, in the embodiments of the present application, the pairing switching method of the mesh network system can be applied to a mesh network that performs data packet forwarding based on a MAC address. By designing a pairing switching data packet, a pairing change request data packet, a first pairing consent data packet, a second pairing consent data packet, a first pairing cancellation data packet, and a second pairing cancellation data packet, corresponding processing logic is proposed for the nodes in the mesh network system, so that the assistance table of the relevant nodes in the mesh network can be updated simultaneously during the pairing switching process, thereby achieving fast, stable, and efficient pairing switching.
[0208] Although the present invention is described using the above embodiments, it should be noted that these descriptions are not intended to limit the present invention. On the contrary, the present invention covers obvious modifications and similar arrangements that are obvious to those skilled in the art. Therefore, the scope of the claims should be interpreted in the broadest way to include all obvious modifications and similar arrangements.
Claims
1. A pairing switching method for a mesh network system, characterized in that: include: The network node executes the scanning procedure to select a new parent node, making the current parent node the old parent node; When the new parent node is not an access point, the network node generates and sends a pairing change request data packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node, and starts a timer, wherein the sending address of the pairing change request data packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node, and the old root node is the root node corresponding to the old parent node; When the new parent node that receives the pairing change request data packet determines that it can provide relay services for the network node and its descendant nodes, it adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself, wherein the assistance table includes the MAC addresses of all subordinate nodes for which it provides relay services; When the new parent node is a root node, generating and returning a first pairing consent packet to the network node, wherein the sending address of the first pairing consent packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node; When the new parent node is not the root node, modify the receiving address to the MAC address of its own parent node and then forward the pairing change request data packet upstream; and If the timer has not timed out and the network node has received the first pairing consent data packet, it means that the pairing switch is successful.
2. The pairing switching method of the mesh network system according to claim 1, characterized in that: The step of the network node generating and sending a pairing change request data packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node also includes: The network node fills the Address 1 field in the empty data frame with the MAC address of the new parent node, fills the Address 2 field with the MAC address of the network node, sets the first preset bit of the Address 3 field to a first preset value to define the empty data frame as a handshake frame, sets multiple second preset bits of the Address 3 field to a third preset value to define the type of the handshake frame as a pairing request, and fills the expanded payload field with the MAC address of the descendant node of the network node, the MAC address of the old root node and the MAC address of the old parent node to generate and send the pairing change request data packet to the new parent node.
3. The pairing switching method of the mesh network system according to claim 1, characterized in that: When the new parent node is a root node, the step of generating and returning a first pairing consent data packet to the network node further includes: The new parent node fills the address 1 field in the empty data frame with the MAC address of the network node, fills the address 2 field with the MAC address of the new parent node, sets the first preset bit of the address 3 field to a first preset value to define the empty data frame as a handshake frame, and sets the multiple second preset bits of the address 3 field to a fourth preset value to define the type of the handshake frame as pairing agreement, so as to generate and return the first pairing agreement data packet.
4. The pairing switching method of the mesh network system according to claim 1, characterized in that: Also includes: When the new parent node that receives the pairing change request data packet determines that it cannot provide relay services for the network node and its descendant nodes, it generates and returns a pairing rejection data packet to the network node, wherein the sending address of the pairing rejection data packet is its own MAC address and the receiving address is the MAC address of the network node; and When the network node receives the pairing rejection data packet, it means that the pairing switching fails.
5. The pairing switching method of the mesh network system according to claim 1, characterized in that: After the step of the network node executing a scanning procedure to select a new parent node and making the current parent node become an old parent node, the pairing switching method of the mesh network system further includes: The network node is set to only receive data packets of various types that meet the filtering conditions, wherein the filtering conditions are uplink data packets whose receiving address is the MAC address of the network node, or data packets whose sending address is the MAC address of the new parent node and whose receiving address is the MAC address of the network node.
6. The pairing switching method of the mesh network system according to claim 1, characterized in that: The step of the network node executing a scanning program to select a new parent node so that the current parent node becomes the old parent node also includes: The network node acquires communication information of each relay node in the mesh network system based on a plurality of beacon data packets or a plurality of probe response data packets acquired through the scanning procedure, wherein the communication information of each relay node includes: signal strength between each relay node and the access point, signal strength between the network node and each relay node, level of each relay node in the mesh network system, relay service capability of each relay node and / or MAC address of each relay node; and The network node selects a relay node as the new parent node based on the communication information of each relay node.
7. The pairing switching method of the mesh network system according to claim 1, characterized in that: When the network node finds that the failure rate of the sent uplink data packets reaches a first threshold, the energy of the data packets received from the current parent node is lower than a second threshold, or the beacon is lost for a period of time, it means that the network node detects that the communication quality between it and the current parent node is poor, and thus executes the scanning procedure to select the new parent node; When the current parent node detects that the communication quality with the network node deteriorates or receives a connection change instruction, it outputs a first pairing cancellation data packet to the network node, so that the network node executes the scanning procedure to select the new parent node.
8. The pairing switching method of the mesh network system according to claim 1, characterized in that: Also includes: After receiving the pairing change request data packet, the relay node determines that it can provide relay services for the network node and its descendant nodes, and adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself, and modifies the receiving address to the MAC address of its own parent node, and then forwards the pairing change request data packet upstream until the root node corresponding to the new parent node receives the pairing change request data packet, so that the root node corresponding to the new parent node, after determining that it can provide relay services for the network node and its descendant nodes, adds the MAC addresses of the network node and its descendant nodes to the assistance table stored in itself, and generates and forwards a second pairing consent data packet downstream, wherein the sending address of the second pairing consent data packet is the MAC address of the root node corresponding to the new parent node and the receiving address is the MAC address of the network node; When the relay node that receives the second pairing consent packet determines that the sending address of the second pairing consent packet is the MAC address of its own parent node and the receiving address is the MAC address in the assistance table stored in itself, the relay node modifies the sending address to its own MAC address and then forwards the second pairing consent packet downstream until the network node receives the second pairing consent packet; as well as If the timer has not timed out and the network node receives the second pairing consent data packet, it means that the pairing switch is successful.
9. The pairing switching method of the mesh network system according to claim 8, characterized in that: Also includes: When the root node corresponding to the new parent node is different from the root node corresponding to the old parent node, the root node corresponding to the new parent node further generates and sends a pairing switching data packet carrying a pairing switching identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node to the access point, so that the access point forwards the pairing switching data packet to the old root node, wherein the receiving address of the pairing switching data packet is the MAC address of the access point, the sending address is the MAC address of the root node corresponding to the new parent node, and the target address is the MAC address of the old root node; After receiving the pairing switching data packet, the old root node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old root node, and generates and forwards a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the old root node; The relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and After receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
10. The pairing switching method of the mesh network system according to claim 9, characterized in that: The step of the old root node generating and downstream forwarding a second pairing cancellation data packet carrying the MAC address of the network node and its descendant nodes also includes: The old root node fills the Address 1 field in the empty data frame with the MAC address of the old parent node, fills the Address 2 field with the MAC address of the old root node, sets the first preset bit of the Address 3 field to a first preset value to define the empty data frame as a handshake frame, sets multiple second preset bits of the Address 3 field to a fifth preset value to define the type of the handshake frame as pairing cancellation, and fills the expanded payload field with the MAC address of the network node and its descendant nodes to generate and forward the second pairing cancellation data packet downstream.
11. The pairing switching method of the mesh network system according to claim 9, characterized in that: The step of the root node corresponding to the new parent node further generating and sending a pairing switching data packet carrying a pairing switching identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node to the access point also includes: The root node corresponding to the new parent node fills the address 1 field in the data frame with the MAC address of the access point, fills the address 2 field with the MAC address of the root node corresponding to the new parent node, fills the address 3 field with the MAC address of the old root node, and fills the payload field with the pairing switch identifier, the MAC address of the network node and its descendant nodes, and the MAC address of the old parent node, so as to generate and send the pairing switch data packet to the access point.
12. The pairing switching method of the mesh network system according to claim 8, characterized in that: Also includes: When the root node corresponding to the new parent node is the same as the root node corresponding to the old parent node, the root node corresponding to the new parent node generates and downstream forwards a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the root node corresponding to the new parent node; The relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; as well as After receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
13. The pairing switching method of the mesh network system according to claim 8, characterized in that: Also includes: When the root node corresponding to the new parent node is the same as the root node corresponding to the old parent node, the root node corresponding to the new parent node generates and forwards downstream a third pairing cancellation data packet carrying the MAC address of the network node and its descendant nodes and the MAC address of the new parent node, wherein the receiving address of the third pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the root node corresponding to the new parent node; The relay node that receives the third pairing cancellation data packet first determines whether its own MAC address is the same as the MAC address of the new parent node or determines whether the MAC address of the new parent node is in the assistance table stored in itself, and then forwards the third pairing cancellation data packet downstream until the old parent node receives the third pairing cancellation data packet; wherein, if it is determined that its own MAC address is the same as the MAC address of the new parent node or the MAC address of the new parent node is in the assistance table stored in itself, the relay node modifies the sending address to its own MAC address and then forwards the third pairing cancellation data packet downstream; if it is determined that its own MAC address is not the same as the MAC address of the new parent node or the MAC address of the new parent node is not in the assistance table stored in itself, the relay node deletes the MAC address of the network node and its descendant nodes from the assistance table stored in itself, and modifies the sending address to its own MAC address and then forwards the third pairing cancellation data packet downstream; and After receiving the third pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
14. The pairing switching method of the mesh network system according to claim 8, characterized in that: Also includes: When the root node corresponding to the new parent node is different from the root node corresponding to the old parent node, the root node corresponding to the new parent node further generates and sends a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes to the old root node, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the access point; The old root node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream; The relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and After receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
15. The pairing switching method of the mesh network system according to claim 8, characterized in that: Also includes: When any of the relay nodes or the root node corresponding to the new parent node that receives the pairing change request data packet determines that it cannot provide relay services for the network node and its descendant nodes, it generates and forwards a pairing rejection data packet downstream; and When the network node receives the pairing rejection data packet, it means that the pairing switching fails.
16. The pairing switching method of the mesh network system according to claim 1, characterized in that: The extended payload field in the pairing change request data packet carries the MAC address of the new parent node.
17. A pairing switching method for a mesh network system, characterized in that: include: The network node executes the scanning procedure to select a new parent node, making the current parent node the old parent node; When the new parent node is an access point, the network node generates and sends a pairing switching data packet carrying a pairing switching identifier, the MAC addresses of the network node and its descendant nodes, and the MAC address of the old parent node to the access point, so that the access point forwards the pairing switching data packet to the old root node, wherein the receiving address of the pairing switching data packet is the MAC address of the access point, the sending address is the MAC address of the network node, and the target address is the MAC address of the old root node; After receiving the pairing switching data packet, the old root node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, and generates and forwards a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes, wherein the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the old root node, and the assistance table includes the MAC addresses of all subordinate nodes for which it provides relay services; The relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and After receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
18. A pairing switching method for a mesh network system, characterized in that: include: The network node executes the scanning procedure to select a new parent node, making the current parent node the old parent node; When the new parent node is not an access point, the network node generates and sends a pairing change request data packet carrying the MAC address of its descendant node, the MAC address of the old root node and the MAC address of the old parent node to the new parent node, and starts a timer, wherein the sending address of the pairing change request data packet is the MAC address of the network node and the receiving address is the MAC address of the new parent node, and the old root node is the root node corresponding to the old parent node; The new parent node that receives the pairing change request data packet determines that the MAC addresses of the network node and its descendant nodes exist in the assistance table stored in itself, generates and returns a first pairing approval data packet to the network node, and generates and sends downlink a second pairing cancellation data packet carrying the MAC addresses of the network node and its descendant nodes, wherein the assistance table includes the MAC addresses of all subordinate nodes that provide relay services, the sending address of the first pairing approval data packet is the MAC address of the new parent node and the receiving address is the MAC address of the network node, and the receiving address of the second pairing cancellation data packet is the MAC address of the old parent node and the sending address is the MAC address of the new parent node; If the network node receives the first pairing consent data packet, it means that the pairing switch is successful; The relay node that receives the second pairing cancellation data packet deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in itself, modifies the sending address to its own MAC address, and then forwards the second pairing cancellation data packet downstream until the old parent node receives the second pairing cancellation data packet; and After receiving the second pairing cancellation data packet, the old parent node deletes the MAC addresses of the network node and its descendant nodes from the assistance table stored in the old parent node.
Citation Information
Patent Citations
Mesh network system and techniques
CA2856027A1
routing method and device as well as sensor equipment based on wireless sensor tree network
CN102056263A
