CN116938689A - Network switching method, node, electronic device, and readable storage medium - Google Patents

Network switching method, node, electronic device, and readable storage medium Download PDF

Info

Publication number
CN116938689A
CN116938689A CN202210339051.1A CN202210339051A CN116938689A CN 116938689 A CN116938689 A CN 116938689A CN 202210339051 A CN202210339051 A CN 202210339051A CN 116938689 A CN116938689 A CN 116938689A
Authority
CN
China
Prior art keywords
network
node
child node
communication
child
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210339051.1A
Other languages
Chinese (zh)
Inventor
冯敏超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202210339051.1A priority Critical patent/CN116938689A/en
Priority to PCT/CN2023/071922 priority patent/WO2023185214A1/en
Publication of CN116938689A publication Critical patent/CN116938689A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The application provides a network switching method, a node, electronic equipment and a readable storage medium, and relates to the technical field of navigation. The method comprises the following steps: generating a first switching message under the condition that the child node is determined to be faulty according to the network state information of the child node; and sending a first switching message to the child node so that the child node can switch the network connection mode to the network connection mode supporting end-to-end communication. Through the end-to-end communication connection with the sub-nodes, the sub-nodes with faults can be directly communicated with the current main node, the sub-nodes can be continuously communicated with other nodes through the current main node, the possibility of network paralysis is reduced, and the system stability of a communication network is improved.

Description

Network switching method, node, electronic device, and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network switching method, a node, an electronic device, and a readable storage medium.
Background
With the development of network technology, the use of wireless routers is increasing. The network transmission speed of a single wireless router is steadily improved, but the network coverage of the single wireless router is smaller and smaller, and a user can construct a wireless Mesh network (Wireless Mesh Network) through a plurality of wireless routers with Mesh functions and can expand the network coverage through the wireless Mesh network.
However, if a certain routing node in the wireless Mesh network fails or the routing node has interference of wireless signals, other nodes connected with the routing node cannot perform network communication, so that the use experience of a user is reduced; if a plurality of routing nodes in the wireless Mesh network all fail, paralysis of the Mesh network can be caused, and system stability of the wireless Mesh network is reduced.
Disclosure of Invention
The application provides a network switching method, a node, an electronic device and a readable storage medium.
The embodiment of the application provides a network switching method, which comprises the following steps: generating a first switching message under the condition that the child node is determined to be faulty according to the network state information of the child node; and sending a first switching message to the child node so that the child node can switch the network connection mode to the network connection mode supporting end-to-end communication.
The embodiment of the application provides a network switching method, which comprises the following steps: transmitting network state information of the child node to the main node, wherein the network state information is information representing that the child node fails; and responding to the first switching message sent by the main node, and switching the network connection mode of the sub-node into a network connection mode supporting end-to-end communication.
The embodiment of the application provides a network switching master node, which comprises: the generation module is configured to generate a first switching message when the child node is determined to be faulty according to the network state information of the child node; and the switching module is configured to send a first switching message to the child node so that the child node can switch the network connection mode to the network connection mode supporting end-to-end communication.
The embodiment of the application provides a network switching sub-node, which comprises the following components: the sending module is configured to send the network state information of the child node to the main node, wherein the network state information is information representing that the child node fails; and the response module is configured to respond to the first switching message sent by the main node and switch the network connection mode of the sub-node into a network connection mode supporting end-to-end communication.
An embodiment of the present application provides an electronic device, including: one or more processors; and a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement any one of the network switching methods of the embodiments of the present application.
The embodiment of the application provides a readable storage medium which stores a computer program, and when the computer program is executed by a processor, any one of the network switching methods in the embodiment of the application is realized.
According to the network switching method, the node, the electronic equipment and the readable storage medium, the network state condition of each sub-node can be monitored by acquiring the network state information of the sub-node, so that the network management of each sub-node is facilitated; under the condition that the child node is determined to be faulty according to the network state information of the child node, a first switching message is generated, the faulty child node can be processed in time, and the fault proportion that other nodes cannot communicate due to the fact that the factor node is faulty is reduced; and sending a first switching message to the child node so that the child node switches the network connection mode into a network connection mode supporting end-to-end communication, and through the end-to-end communication connection with the child node, not only can the child node with faults directly communicate with the current main node, but also the child node can continuously communicate with other nodes through the current main node, thereby reducing the possibility of network paralysis and improving the system stability of the communication network.
With respect to the above embodiments and other aspects of the application and implementations thereof, further description is provided in the accompanying drawings, detailed description and claims.
Drawings
Fig. 1 shows a flow chart of a network switching method according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a network switching system according to an embodiment of the present application.
Fig. 3 is a flow chart illustrating a network switching method according to an embodiment of the present application.
Fig. 4 is a flow chart illustrating a network switching method according to an embodiment of the present application.
Fig. 5 shows a block diagram of a network switching master node according to an embodiment of the present application.
Fig. 6 shows a block diagram of a network switching sub-node according to an embodiment of the present application.
Fig. 7 shows a block diagram of a network switching system according to an embodiment of the present application.
Fig. 8 is a flow chart illustrating a working method of a network switching system according to an embodiment of the present application.
Fig. 9 illustrates a block diagram of an exemplary hardware architecture of a computing device capable of implementing network switching methods and apparatus according to embodiments of the application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be arbitrarily combined with each other.
With the rapid development of wireless Mesh network technology, more and more routers with Mesh functions enter the home. As the wireless router rate increases, its price decreases gradually; however, since the high transmission power of the wireless Mesh router may cause harm to the health of human body, the network coverage of the wireless router is gradually reduced. In a home application scenario, a home intranet may be built by multiple wireless routers to achieve coverage of a wireless network of a whole house.
However, if a certain wireless Mesh router fails, a plurality of devices connected with the wireless Mesh router network cannot obtain communication service, so that the stability of the Mesh network system is reduced.
Based on the above problems, the present application provides a network switching method, a node, an electronic device, and a readable storage medium, which can switch end-to-end communication connection between a master node and a slave node through a network, not only enable the slave node that generates a fault to directly communicate with the current master node, but also enable the slave node to continue to communicate with other nodes through the current master node, thereby reducing the possibility of network paralysis and improving the system stability of the communication network.
Fig. 1 shows a flow chart of a network switching method according to an embodiment of the present application. The network switching method can be applied to a network switching master node. As shown in fig. 1, the network handover method in the embodiment of the present application includes, but is not limited to, the following steps.
Step S101, when it is determined that the child node fails according to the network status information of the child node, a first handover message is generated.
Step S102, a first switching message is sent to the sub-node for the sub-node to switch its network connection mode to a network connection mode supporting end-to-end communication.
In the embodiment, the network state information of each sub-node is acquired, so that the network state condition of each sub-node can be monitored, and the network management of each sub-node is facilitated; under the condition that the child node is determined to be faulty according to the network state information of the child node, a first switching message is generated, the faulty child node can be processed in time, and the fault proportion that other nodes cannot communicate due to the fact that the factor node is faulty is reduced; and sending a first switching message to the child node so that the child node switches the network connection mode into a network connection mode supporting end-to-end communication, and through the end-to-end communication connection with the child node, not only can the child node with faults directly communicate with the current main node, but also the child node can continuously communicate with other nodes through the current main node, thereby reducing the possibility of network paralysis and improving the system stability of the communication network.
It should be noted that, the network switching master node may be a node supporting a connection mode of a Mesh network (Mesh network), and simultaneously support end-to-end communication (e.g., a node supporting an end-to-end action hotspot (WiFi-Peer, wiFi-P2P)). The network handover master node may also be a node that supports legacy communications (e.g., mobile communications) and supports end-to-end communications. The above communication modes of the network switching master node are only exemplified, and can be specifically set according to actual needs, and other communication modes of the network switching master node which are not explained are also within the protection scope of the present application, and are not described herein.
For example, fig. 2 shows a schematic structural diagram of a network switching system according to an embodiment of the present application. As shown in fig. 2, the Mesh network master node 220 may include a Mesh network assistant 221, which constructs a Mesh network 210 with a plurality of child nodes (not shown in the figure), and a WiFi-P2P network 230, respectively.
The child nodes in the Mesh network 210 may also be child nodes in the WiFi-P2P network 230, that is, the child nodes connected to the Mesh network master node 220 can support two different communication modes at the same time.
It should be noted that, in the Mesh network 210, through dynamic self-organization and self-configuration, the installation overhead of multiple child nodes can be reduced, and the operation cost is reduced. The ability of child nodes to self-configure may enable dynamic allocation of workload. And WiFi-P2P is an end-to-end communication technology among WiFi technologies, and two or more devices are connected through an end-to-end communication technology to form a small-range communication network. In a WiFi-P2P network, one Group Owner device (GO) and multiple Group Clients (GC) may be included.
The Mesh network assistant 221 is configured to collect network state information of each sub-node in the Mesh network 210, monitor communication states of different sub-nodes based on the network state information of each sub-node, and detect possible faults of each sub-node in real time, and process each sub-node in time, so as to improve safety of the Mesh network.
For example, after the Mesh network master node 220 gathers the network state information of each sub-node in the Mesh network 210 through the Mesh network assistant 221, the network state information of these sub-nodes and the current communication network connection mode corresponding to the sub-nodes may be stored in the database, so as to facilitate subsequent query or update.
In some specific implementations, the Mesh network master node 220 may further perform a "ping" operation on each child node through the Mesh network assistant 221 at intervals of a preset duration (for example, 5 seconds or 10 seconds, etc.), so as to obtain a network connection state of each child node. For example, when a "ping" operation is performed on a certain child node, if the time delay fed back by the child node is smaller than a preset time delay threshold (for example, 20ms, etc.), it is indicated that the child node is connected to the Mesh network master node 220; otherwise, it is characterized that the child node is not connected to the Mesh network master node 220.
The network switching master node 220 may be a Mesh wireless router, or may be a terminal (for example, a smart phone or the like) supporting different communication modes. The above types of the network switching master node are only illustrative, and can be specifically set according to actual needs, and the network switching master node and the sub-node establishing communication connection with the network switching master node can support at least two different functions of network communication connection.
The network switching master node 220 can be provided with collection of network state information of each child node in the Mesh network; the state of each child node can be monitored; and under the condition that a certain sub-node is determined to have communication failure, the communication connection mode between the network switching main node 220 and the sub-node is switched to a network connection mode supporting end-to-end communication, so that the sub-node can continue to communicate with other nodes, and the communication efficiency is improved.
In this embodiment, the network state information of each sub-node in the Mesh network can be monitored by the network switching master node 220, so that a sub-node with a communication failure can be found in time, and further, an end-to-end communication mode is established between the network switching master node 220 and the failed sub-node, the GO or GC of the WiFi-P2P network can be fused into the Mesh network, the communication stability of each sub-node in the Mesh network is ensured, and the use experience of a user on the wireless Mesh network can be improved.
Fig. 3 is a flow chart illustrating a network switching method according to an embodiment of the present application. The network switching method can be applied to a network switching master node. As shown in fig. 3, the network handover method in the embodiment of the present application includes, but is not limited to, the following steps.
Step S301 establishes a first communication connection with a plurality of child nodes based on a connection mode of the mesh network.
The connection mode of the mesh network may include: a connection mode of a mobile Ad Hoc network, and/or a connection mode of a Mesh network.
By establishing the first communication connection with the plurality of child nodes, the network switching master node can communicate with the plurality of child nodes based on the first communication connection, and acquire communication information of the plurality of child nodes.
Step S302, establishing a second communication connection with the plurality of child nodes based on a network connection mode of the end-to-end communication.
Wherein the child nodes are group user GCs.
It should be noted that, based on the network connection mode of the end-to-end communication, the network switching master node can perform the end-to-end communication with each sub-node respectively, so as to reduce the proportion of forwarding communication information by the intermediate node, enable the network switching master node to obtain the communication information of a plurality of sub-nodes more quickly and accurately, and improve the communication efficiency.
Step S303, in the case that the child node is determined to be faulty according to the network state information of the child node, a first switching message is generated.
Step S304, a first switching message is sent to the child node, so that the child node switches its network connection mode to a network connection mode supporting end-to-end communication.
Note that, steps S303 to S304 in the present embodiment are the same as steps S101 to S102 in the embodiment shown in fig. 1, and are not described here again.
In this embodiment, by establishing the first communication connection and the second communication connection with the plurality of child nodes respectively, the network switching master node can communicate with the plurality of child nodes through a plurality of different communication connection modes, and the communication modes are expanded; under the condition that the child node is determined to be faulty according to the network state information of the child node, the generated first switching message can be sent to the child node, so that the child node switches the network connection mode of the child node from the network connection mode based on the mesh network to the network connection mode supporting end-to-end communication, the faulty child node and the network switching master node can directly communicate, the proportion of communication interruption caused by the fault of the factor node is reduced, the possibility of network paralysis is further reduced, and the system stability of the communication network is improved.
In some implementations, the network state information includes: connection status information of the child node in the first communication connection; determining that the child node fails according to the network status information of the child node in step S303 includes: determining that the child node has a connection fault under the condition that the connection state information in the first communication connection is determined to be indicative of the non-communication between the child node and the main node; the master node owns the device GO for the group.
For example, obtaining network state information of a child node includes: each interval is preset in time length, and a measurement indication message is sent to the child node; and responding to the measurement result information fed back by the child node, and acquiring the network state information of the child node.
The preset time length can be a specific time interval of 5 seconds, 10 seconds and the like, so that the master node can regularly measure the network connection state of a plurality of sub-nodes, and therefore the connection state information of the sub-nodes in the first communication connection can be obtained in real time, and the connection state information is more accurate.
For example, the connection state information of the child node in the first communication connection may include: and presetting heartbeat messages between the main node and the child nodes. The heartbeat message is reported by the child node at fixed time, so that the master node can know the communication connection condition between the child node and the master node. If the main node does not receive the heartbeat message reported by the sub-node in the preset period, or if the received heartbeat message is wrong (for example, the preset heartbeat message carries the heartbeat times, if the heartbeat times received at a certain time are not arranged in sequence, or the heartbeat times are messy codes), the sub-node is not communicated with the main node, namely, the sub-node has connection fault.
As another example, the connection status information of the child node in the first communication connection may further include: and (3) verifying a connection identifier, wherein the connection identifier can represent the communication connection state between the child node and the main node. And comparing the connection identifier to be verified with a preset connection identifier to determine whether the connection identifier to be verified is identical with the preset connection identifier. Under the condition that the connection identifier to be verified is the same as the preset connection identifier, the communication between the child node and the main node is determined; otherwise, determining that the child node is not communicated with the main node.
The connection state information of the child node in the first communication connection is used for determining whether the child node has a connection fault or not, so that the child node with the connection fault can be timely detected, the child node with the connection fault can be quickly repaired and processed, the proportion of communication interruption is reduced, and the communication efficiency is improved.
In some implementations, the network state information includes: signaling configuration information and connection state information of the child node in the first communication connection; determining that the child node fails according to the network status information of the child node in step S303 includes: and under the condition that the signaling configuration information is different from the preset configuration information of the child node and the connection state information is used for representing that the child node is not communicated with the main node, determining that the child node has abnormal configuration faults.
The signaling configuration information may include: at least one of service configuration information, network parameter configuration information and configuration information of a communication system.
Comparing the signaling configuration information with preset configuration information of the child node to obtain a first comparison result; judging the connection state information of the node in the first communication connection to determine whether the sub-node and the main node are in a communication state or a non-communication state; the communication conditions of the sub-nodes can be measured in multiple dimensions, so that the fault conditions of the sub-nodes can be judged more accurately. Under the condition that the signaling configuration information is different from the preset configuration information of the child node and the connection state information is used for representing that the child node is not communicated with the main node, the child node is determined to have abnormal configuration faults, so that the child node can be corrected in a targeted mode conveniently, and normal communication can be quickly recovered by the child node.
It should be noted that, the correction of the configuration information of the child node may be performed through a network connection mode supporting end-to-end communication between the master node and the child node, so that the child node with a failure may quickly and accurately obtain the corrected configuration information of the master node, reduce the error proportion of the configuration information, and accelerate the repair efficiency of the child node.
In some implementations, the network state information includes: real-time traffic handling capacity of child nodes; determining that the child node fails according to the network status information of the child node in step S303 includes: acquiring the service processing capacity of the child node; and determining that the sub-node has network congestion fault according to the real-time service processing capacity of the sub-node and the service processing capacity of the sub-node.
The service processing capacity of the sub-node can represent the maximum peak value of the service data volume which can be processed by the sub-node, and the real-time service processing capacity of the sub-node is compared with the service processing capacity of the sub-node, so that whether the service data volume processed by the sub-node at the current moment exceeds the processing capacity of the sub-node can be determined, and further, the network congestion fault of the sub-node is determined under the condition that the real-time service processing capacity of the sub-node exceeds the service processing capacity of the sub-node is determined.
When the sub-node has network congestion fault, the service data volume of the sub-node needs to be split so as to reduce the service processing pressure of the sub-node. For example, through a network connection mode supporting end-to-end communication between the master node and the child node, part of the service of the child node is shunted to the master node, so that the master node can relieve the service processing pressure of the child node.
In some implementations, after sending the first switching message to the child node for the child node to switch its network connection mode to a network connection mode supporting end-to-end communication, the method further includes: generating a second switching message under the condition that the child node is determined to be recovered to be normal according to the network state information; and sending a second switching message to the child node according to the second communication connection so that the child node switches the network connection mode to the connection mode of the mesh network.
Wherein the second handover message is used to instruct the child node to resume its original network connection mode (e.g., a mesh network connection mode, etc.).
When the network state information obtained by the master node can represent that the communication between the sub-node and the master node based on the first communication connection (such as the connection mode of the mesh network) is recovered to be normal, the sub-node can continue to communicate with the master node through the first communication connection, so that the connection mode between the sub-node and the master node based on the second communication connection (such as the end-to-end communication connection) can be disconnected, and the master node can communicate with the sub-node through the connection mode of the mesh network, so that the processing pressure of the master node is reduced. At this time, the master node does not need to maintain end-to-end communication connection with the sub-nodes, so that the master node can release communication resources for processing communication information of other fault sub-nodes, and system stability of the communication network is improved.
In some implementations, before determining that the child node returns to normal according to the network state information, the method further includes: and according to the second communication connection, configuring communication resources used by the child node by adopting preset configuration information of the child node so as to enable the child node to acquire the communication resources required by the child node.
For example, the preset configuration information may include: at least one of preset service configuration information, preset network parameter configuration information and configuration information of a preset communication system.
And the second communication connection is adopted, and the preset configuration information of a plurality of different dimensions required by the child node is sent to the node, so that the child node can quickly and accurately acquire the required communication resources, the communication efficiency of the child node is improved, the possibility of failure of the child node is reduced, and the use experience of a user is improved.
In some implementations, determining that the child node is restored to normal based on the network state information includes: and determining that the child node is restored to normal under the condition that the child node is determined to meet at least one of the following conditions:
the connection state of the child node in the first communication connection is communication;
the real-time service processing capacity of the child node is matched with the service processing capacity of the child node;
The signaling configuration information fed back by the child node is the same as the preset configuration information.
By judging the different angles of the conditions, the communication state of the child node can be clarified, and whether the child node is recovered to be normal or not (for example, the child node is recovered to be in a state of normal communication by using an initially configured network connection mode, and the like) is further determined, so that the child node recovered to be normal is processed in time, the network connection mode of end-to-end communication between the child node and the main node can be recovered to the initially configured network connection mode, the processing pressure of the main node is reduced, the main node can conveniently release more communication resources for processing other fault nodes, the possibility of network paralysis is reduced, and the system stability of a communication network is improved.
Fig. 4 is a flow chart illustrating a network switching method according to an embodiment of the present application. The network switching method can be applied to the network switching child node. As shown in fig. 4, the network handover method in the embodiment of the present application includes, but is not limited to, the following steps.
Step S401, transmitting the network status information of the child node to the master node.
The network state information is information representing that the child node fails. For example, a failure in which communication connection is interrupted by a child node, a failure in which network congestion occurs by a child node, a failure in which configuration information obtained by a child node is abnormal, or the like. The above types of faults occurring to the child nodes are only exemplified, and specific processing can be performed according to actual situations, and other types of faults occurring to non-illustrated child nodes are also within the protection scope of the present application, and are not described herein.
The information of the occurrence of the faults of the child nodes is sent to the main node, so that the main node can timely and accurately acquire that the child nodes are abnormal, and the child nodes are rapidly subjected to fault processing, so that the communication of the child nodes can be rapidly recovered to be normal, the proportion of poor user experience caused by communication interruption is reduced, and the communication stability between the network switching child nodes and the network switching main node is improved.
Step S402, in response to the first switching message sent by the master node, the network connection mode of the child node is switched to a network connection mode supporting end-to-end communication.
The first switching message is a message for instructing the child node to switch the communication network connection mode.
Because the communication connection between the master node and the slave node is based on a non-end-to-end communication connection (e.g., a Mesh network-based communication connection, etc.) before the first handover message is obtained, if the communication of the slave node is interrupted, the communication of other devices connected with the slave node is affected (e.g., the configuration information of the master node cannot be obtained in time, or the obtained information sent by the master node is error information, etc.); the network connection mode of the sub-node is switched to the network connection mode supporting end-to-end communication, so that the sub-node can directly communicate with the main node, and the speed of acquiring information from the main node is increased; the sub-node can communicate with other devices through the forwarding of communication information between the sub-node and the main node, so that the possibility of paralysis of the communication network is reduced, and the system stability of the communication network is improved.
Various nodes according to embodiments of the present application are described in detail below with reference to the accompanying drawings. Fig. 5 shows a block diagram of a network switching master node according to an embodiment of the present application. As shown in fig. 5, the network switching master node 500 includes the following modules.
The generating module 501 is configured to generate a first handover message in case it is determined that a child node fails according to the network state information of the child node.
The switching module 502 is configured to send a first switching message to the child node for the child node to switch its network connection mode to a network connection mode supporting end-to-end communication.
In some implementations, the network switching master node 500 further includes: a communication connection establishment module for establishing a first communication connection with the plurality of child nodes based on a connection mode of the mesh network; and establishing second communication connection with a plurality of sub-nodes based on a network connection mode of end-to-end communication, wherein the sub-nodes are group user GC.
In some implementations, the network state information includes: connection status information of the child node in the first communication connection; the generating module 501 is specifically configured to: determining that the child node has a connection fault under the condition that the connection state information in the first communication connection is determined to be indicative of the non-communication between the child node and the main node; the master node owns the device GO for the group.
In some implementations, the network state information includes: signaling configuration information and connection state information of the child node in the first communication connection; the generating module 501 is specifically configured to: and under the condition that the signaling configuration information is different from the preset configuration information of the child node and the connection state information is used for representing that the child node is not communicated with the main node, determining that the child node has abnormal configuration faults.
In some implementations, the network state information includes: real-time traffic handling capacity of child nodes; the generating module 501 is specifically configured to: acquiring the service processing capacity of the child node; and determining that the sub-node has network congestion fault according to the real-time service processing capacity of the sub-node and the service processing capacity of the sub-node.
In some implementations, the network switching master node 500 further includes: the recovery module is used for generating a second switching message under the condition that the child node is determined to be recovered to be normal according to the network state information; and sending a second switching message to the child node according to the second communication connection so that the child node switches the network connection mode to the connection mode of the mesh network.
In some implementations, the network switching master node 500 further includes: the configuration module is used for configuring communication resources used by the child node by adopting preset configuration information of the child node according to the second communication connection so as to enable the child node to acquire the communication resources required by the child node.
In some implementations, determining that the child node is restored to normal according to the network state information in the restoration module includes: and determining that the child node is restored to normal under the condition that the child node is determined to meet at least one of the following conditions: the connection state of the child node in the first communication connection is communication; the real-time service processing capacity of the child node is matched with the service processing capacity of the child node; the signaling configuration information fed back by the child node is the same as the preset configuration information.
In the embodiment, the network state information of each sub-node is acquired, so that the network state condition of each sub-node can be monitored, and the network management of each sub-node is facilitated; the generation module generates a first switching message under the condition that the child node is determined to be faulty according to the network state information of the child node, and can timely process the faulty child node, so that the fault proportion that other nodes cannot communicate due to the fact that the factor node is faulty is reduced; the switching module sends a first switching message to the sub-node so that the sub-node can switch the network connection mode of the sub-node to a network connection mode supporting end-to-end communication, and through the end-to-end communication connection with the sub-node, the sub-node which generates faults can directly communicate with the current main node, and the sub-node can continuously communicate with other nodes through the current main node, thereby reducing the possibility of network paralysis and improving the system stability of the communication network.
Fig. 6 shows a block diagram of a network switching sub-node according to an embodiment of the present application. As shown in fig. 6, the network switching sub-node 600 includes the following modules.
The sending module 601 is configured to send network status information of the child node to the master node, where the network status information is information indicating that the child node has a fault.
The response module 602 is configured to switch the network connection mode of the child node to a network connection mode supporting end-to-end communication in response to the first switching message sent by the master node.
In this embodiment, the sending module sends the network state information of the child node to the master node, where the network state information is information indicating that the child node has a fault, so that the master node can timely and accurately learn that the child node has an abnormality, and quickly perform fault processing on the child node, so that communication of the child node can quickly return to normal; the response module is used for responding to the first switching message sent by the main node, switching the network connection mode of the sub-node into a network connection mode supporting end-to-end communication, enabling the sub-node to directly communicate with the main node, and accelerating the speed of acquiring information from the main node; the sub-node can communicate with other devices through the forwarding of communication information between the sub-node and the main node, so that the possibility of paralysis of the communication network is reduced, and the system stability of the communication network is improved.
Fig. 7 shows a block diagram of a network switching system according to an embodiment of the present application. As shown in fig. 7, the network switching system may include the following devices.
A Mesh network connection-based network switching master node 710 and a plurality of network switching sub-nodes (e.g., a first sub-node 721, second sub-nodes 722, … …, a kth sub-node 72K, an nth sub-node 72N, etc., N representing the number of sub-nodes, N being an integer greater than or equal to 1, K being an integer greater than 2 and less than N).
It should be noted that, the network switching master node 710 may establish end-to-end communication with any one of the network sub-nodes. For example, the network switching master node 710 may not only establish a multi-hop Mesh network connection with the second sub-node 722 and the kth sub-node 72K, but also directly establish an end-to-end network connection with the kth sub-node 72K, so that the kth sub-node 72K can communicate with other sub-nodes through multiple network connection modes, thereby improving communication efficiency, reducing possibility of network paralysis, and improving system stability of the communication network.
Fig. 8 is a flow chart illustrating a working method of a network switching system according to an embodiment of the present application. As shown in fig. 8, the operation method of the network switching system includes, but is not limited to, the following steps.
In step S801, a first communication connection is established between the network switching master node 710 and the plurality of network switching child nodes according to a connection mode of the mesh network. Meanwhile, the network switching master node 710 starts the master control end of the Mesh network assistant, and the plurality of network switching sub-nodes (such as the second sub-node 722 or the kth sub-node 72K, etc.) start the clients of the Mesh network group; the network switch master node 710 establishes a second communication connection (e.g., an end-to-end communication connection) with the plurality of network switch child nodes through the WiFi-P2P network function component.
For example, the first communication connection may be established in the following manner: the network switching master node 710 constructs Mesh network connection with the first sub-node 721, the second sub-nodes 722, … …, the kth sub-node 72K, the nth sub-node 72N, and the like according to a Mesh network standard protocol.
For another example, after the network switching master node 710 receives the Mesh network connection establishment completion message fed back by each network switching sub-node, the network switching master node 710 may send an indication of starting the WiFi-P2P software function to the plurality of network switching sub-nodes, so that each network switching sub-node may start the WiFi-P2P function.
The network switching master node 710 serves as a GO in a WiFi-P2P network, and each network switching child node serves as a GC in the WiFi-P2P network.
Step S802, the network switching master node 710 monitors the network states of the plurality of network switching sub-nodes through the master control end of the Mesh network assistant, and obtains the connection state information of each network switching sub-node in the first communication connection; and saving the connection state information in the first communication connection to a child node state information table.
Wherein the child node state information table may include: network mode of each network switching, working state information of the network switching sub-node, etc.
In step S803, the network switching master node 710 periodically transmits a measurement message to the second child node 722 and the kth child node 72K.
Wherein the measurement message is used to obtain network status information of the second child node 722 and the kth child node 72K. The network status information may include: at least one of connection state information of the second sub-node 722 in the first communication connection (e.g., mesh network connection), real-time traffic handling capacity of the second sub-node 722, and signaling configuration information. The connection status information is used to characterize whether the second child node 722 is in communication with the network switching master node 710, for example, a heartbeat message may be used to characterize the communication connectivity status between the two nodes.
If the network switching master node 710 is capable of receiving the correct heartbeat message sent by the second child node 722 (or the kth child node 72K) within the preset period, it is indicated that the second child node 722 (or the kth child node 72K) is connected to the network switching master node 710; otherwise, if the network handover master node 710 does not receive the correct heartbeat message sent by the second child node 722 (or the kth child node 72K) within the preset period, or the received heartbeat message is an abnormal message, it indicates that the second child node 722 (or the kth child node 72K) is not connected to the network handover master node 710, and there may be a communication failure.
In step S804, the kth child node 72K feeds back the network state information obtained by its measurement in the first communication connection state to the network switching master node 710 in response to the measurement message.
In step S805, the network switching master node 710 determines that the kth child node 72K is not connected to the network switching master node 710 according to the network status information fed back by the kth child node 72K, and generates a first switching message.
Wherein the first switching message is for causing the kth child node 72K to switch its network connection mode to a network connection mode supporting end-to-end communication.
In step S806, the network switching master node 710 transmits the first switching message to the kth child node 72K through the second communication connection.
In step S807, the kth sub-node 72K, after receiving the first handover message, enables the kth sub-node 72K to perform end-to-end communication with the network handover master node 710 based on the second communication connection.
In step S808, the kth child node 72K transmits the connection state information thereof in the first communication connection obtained by the measurement to the network switching master node 710 through the second communication connection.
In step S809, the network switching master node 710 updates the child node status information table according to the obtained network status information sent by the different network switching child nodes.
In step S810, according to the updated status information table of the sub-nodes, it is determined that the connection status information of the kth sub-node 72K in the first communication connection can indicate that the first communication connection between the kth sub-node 72K and the network switching master node 710 is restored, and the network switching master node 710 generates a second switching message and sends the second switching message to the kth sub-node 72K through the second communication connection.
Step S811, after receiving the second switching message, the kth child node 72K switches the communication connection mode between itself and the network switching master node 710 from the second communication connection to the first communication connection; and the kth child node 72K communicates with the network switching master node 710 based on the first communication connection.
In this embodiment, a first communication connection and a second communication connection are established between the network switching master node 710 and the plurality of network switching sub-nodes, so that the network switching master node 710 can monitor connection state information of the plurality of network switching sub-nodes in the first communication connection, and can accurately determine whether each network switching sub-node has a fault in real time; in the case that it is determined that the first communication connection between a certain sub-node and the network switching master node 710 is in an interrupted state, the communication connection between the sub-node and the network switching master node 710 can be switched to the second communication connection in time, so that it is ensured that the sub-node can still communicate with other nodes through the second communication connection mode (for example, directly communicate with the network switching master node 710 based on the second communication connection, or communicate with other nodes through forwarding of the network switching master node 710, or the like), and the failure rate of other nodes which cannot communicate due to the failure of the factor node can be reduced. In addition, when the connection state information of the faulty sub-node in the first communication connection is detected, the first communication connection between the kth sub-node 72K and the network switching master node 710 can be represented, and then the faulty sub-node is switched from the second communication connection back to the first communication connection, so that the faulty sub-node can be switched to different available network modes (for example, the WiFi-P2P network connection is used as a standby communication connection of the Mesh network connection) in good time, the possibility of network paralysis is reduced, and the system stability of the communication network is improved.
It should be clear that the invention is not limited to the specific arrangements and processes described in the foregoing embodiments and shown in the drawings. For convenience and brevity of description, detailed descriptions of known methods are omitted herein, and specific working processes of the systems, modules and units described above may refer to corresponding processes in the foregoing method embodiments, which are not repeated herein.
Fig. 9 illustrates a block diagram of an exemplary hardware architecture of a computing device capable of implementing network switching methods and apparatus according to embodiments of the invention.
As shown in fig. 9, the computing device 900 includes an input device 901, an input interface 902, a central processor 903, a memory 904, an output interface 905, and an output device 906. The input interface 902, the central processing unit 903, the memory 904, and the output interface 905 are connected to each other through a bus 907, and the input device 901 and the output device 906 are connected to the bus 907, and further connected to other components of the computing device 900 through the input interface 902 and the output interface 905, respectively.
Specifically, the input device 901 receives input information from the outside, and transmits the input information to the central processor 903 through the input interface 902; the central processor 903 processes the input information based on computer-executable instructions stored in the memory 904 to generate output information, temporarily or permanently stores the output information in the memory 904, and then transmits the output information to the output device 906 through the output interface 905; output device 906 outputs the output information to the outside of computing device 900 for use by a user.
In one embodiment, the computing device shown in fig. 9 may be implemented as an electronic device, which may include: a memory configured to store a program; and a processor configured to run a program stored in the memory to perform the network switching method described in the above embodiment.
In one embodiment, the computing device shown in FIG. 9 may be implemented as a network switching system that may include: a memory configured to store a program; and a processor configured to run a program stored in the memory to perform the network switching method described in the above embodiment.
The foregoing description is only exemplary embodiments of the application and is not intended to limit the scope of the application. In general, the various embodiments of the application may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the application is not limited thereto.
Embodiments of the application may be implemented by a data processor of a mobile device executing computer program instructions, e.g. in a processor entity, either in hardware, or in a combination of software and hardware. The computer program instructions may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages.
The block diagrams of any of the logic flows in the figures of this application may represent program steps, or may represent interconnected logic circuits, modules, and functions, or may represent a combination of program steps and logic circuits, modules, and functions. The computer program may be stored on a memory. The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read Only Memory (ROM), random Access Memory (RAM), optical storage devices and systems (digital versatile disk DVD or CD optical disk), etc. The computer readable medium may include a non-transitory storage medium. The data processor may be of any type suitable to the local technical environment, such as, but not limited to, general purpose computers, special purpose computers, microprocessors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), programmable logic devices (FGPAs), and processors based on a multi-core processor architecture.
The foregoing detailed description of exemplary embodiments of the application has been provided by way of exemplary and non-limiting examples. Various modifications and adaptations to the above embodiments may become apparent to those skilled in the art without departing from the scope of the application, which is defined in the accompanying drawings and claims. Accordingly, the proper scope of the application is to be determined according to the claims.

Claims (13)

1. A method of network switching, the method comprising:
generating a first switching message under the condition that the child node is determined to have faults according to the network state information of the child node;
and sending the first switching message to the child node so that the child node switches the network connection mode to a network connection mode supporting end-to-end communication.
2. The method of claim 1, wherein prior to determining that a child node fails based on network state information of the child node, further comprising:
establishing a first communication connection with a plurality of the child nodes based on a connection mode of the mesh network;
and establishing second communication connection with a plurality of child nodes based on the network connection mode of the end-to-end communication, wherein the child nodes are group user GC.
3. The method of claim 2, wherein the network status information comprises: connection status information of the child node in the first communication connection;
the determining that the child node fails according to the network state information of the child node includes:
determining that the child node has a connection fault under the condition that connection state information in the first communication connection is determined to be used for representing that the child node is not communicated with a main node; wherein the master node owns the device GO for the group.
4. The method of claim 2, wherein the network status information comprises: signaling configuration information and connection state information of the child node in the first communication connection;
the determining that the child node fails according to the network state information of the child node includes:
and under the condition that the signaling configuration information is different from the preset configuration information of the child node and the connection state information is used for representing that the child node is not communicated with the main node, determining that the child node has abnormal configuration faults.
5. The method according to claim 1 or 2, wherein the network status information comprises: real-time traffic handling capacity of the child node;
the determining that the child node fails according to the network state information of the child node includes:
acquiring the service processing capacity of the child node;
and determining that the sub-node has network congestion faults according to the real-time service processing capacity of the sub-node and the service processing capacity of the sub-node.
6. The method according to claim 2, wherein after said sending said first switching message to said child node for said child node to switch its network connection mode to a network connection mode supporting end-to-end communication, further comprising:
Generating a second switching message under the condition that the child node is determined to be normal according to the network state information;
and sending the second switching message to the child node according to the second communication connection, so that the child node switches the network connection mode to the connection mode of the mesh network.
7. The method of claim 6, wherein before determining that the child node is restored from the network status information, further comprising:
and configuring communication resources used by the child node by adopting preset configuration information of the child node according to the second communication connection so that the child node obtains the communication resources required by the child node.
8. The method of claim 6, wherein said determining that the child node is restored from the network status information comprises:
and determining that the child node is restored to normal under the condition that the child node is determined to meet at least one of the following conditions:
the connection state of the child node in the first communication connection is communicated;
the real-time service processing capacity of the child node is matched with the service processing capacity of the child node;
The signaling configuration information fed back by the child node is the same as the preset configuration information.
9. A method of network switching, the method comprising:
transmitting network state information of a child node to a main node, wherein the network state information is information representing that the child node has faults;
and responding to the first switching message sent by the main node, and switching the network connection mode of the sub-node into a network connection mode supporting end-to-end communication.
10. A network switching master node, comprising:
a generation module configured to generate a first handover message in case it is determined that a child node fails according to network state information of the child node;
and the switching module is configured to send the first switching message to the child node so that the child node can switch the network connection mode to a network connection mode supporting end-to-end communication.
11. A network switch child node, comprising:
the system comprises a sending module, a receiving module and a processing module, wherein the sending module is configured to send network state information of a child node to a main node, wherein the network state information is information representing that the child node fails;
and the response module is configured to respond to the first switching message sent by the main node and switch the network connection mode of the sub-node into a network connection mode supporting end-to-end communication.
12. An electronic device, comprising:
one or more processors;
a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the network handover method of any of claims 1-8, or claim 9.
13. A readable storage medium, characterized in that the readable storage medium stores a computer program, which when executed by a processor implements the network switching method according to any of claims 1-8, or according to claim 9.
CN202210339051.1A 2022-04-01 2022-04-01 Network switching method, node, electronic device, and readable storage medium Pending CN116938689A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210339051.1A CN116938689A (en) 2022-04-01 2022-04-01 Network switching method, node, electronic device, and readable storage medium
PCT/CN2023/071922 WO2023185214A1 (en) 2022-04-01 2023-01-12 Network switching method, node, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210339051.1A CN116938689A (en) 2022-04-01 2022-04-01 Network switching method, node, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN116938689A true CN116938689A (en) 2023-10-24

Family

ID=88199042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210339051.1A Pending CN116938689A (en) 2022-04-01 2022-04-01 Network switching method, node, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN116938689A (en)
WO (1) WO2023185214A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8346238B2 (en) * 2007-10-30 2013-01-01 Cisco Technology, Inc. Mesh communication network and devices
US9356831B2 (en) * 2012-12-17 2016-05-31 Itron, Inc. Intelligent network operation
EP3504902B1 (en) * 2016-08-29 2021-08-11 Signify Holding B.V. Outdoor lighting network as a contingency connectivity infrastructure
DE102018106197A1 (en) * 2018-03-16 2019-09-19 Schneider Electric Industries Sas METHOD FOR CONFIGURING AND / OR CONTROLLING DEVICES OF HOUSE AUTOMATION
CN111526543A (en) * 2019-02-02 2020-08-11 索尼公司 Electronic device, communication method, and storage medium
CN113965474A (en) * 2020-06-29 2022-01-21 中兴通讯股份有限公司 Network quality evaluation method, electronic device and storage medium

Also Published As

Publication number Publication date
WO2023185214A1 (en) 2023-10-05

Similar Documents

Publication Publication Date Title
CN106453648B (en) Equipment state determination method and device for intelligent household equipment
CN107371206B (en) Method and equipment for data transmission
CN110830276B (en) EtherCAT communication system and method based on cold redundancy mechanism
CN107078962B (en) Data processing method, device and system in SDN, electronic equipment and computer storage medium
EP3145118B1 (en) Link backup and power source backup method, device and system, and storage medium
CN111107572A (en) Redundancy backup method and device
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
CN113726556A (en) Operation and maintenance method, system, storage medium and computing device for edge internet of things agent node
CN104901834A (en) Method and system for automatically switching between network servers
EP2472793A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
US11012290B2 (en) Systems and methods for node outage determination and reporting
CN107360012B (en) Link state processing method and network node equipment
CN102546304B (en) BFD detection method, equipment and system
CN116938689A (en) Network switching method, node, electronic device, and readable storage medium
CN110224872B (en) Communication method, device and storage medium
US20200213878A1 (en) Method and apparatus for controlling network sensors
US10079893B2 (en) M2M application request sending method, CSE and system
CN107612719B (en) Data backup method and device for Internet of things access point
CN102014054A (en) Sending method and equipment for keep-alive messages
CN113784377B (en) Data communication method, device, electronic equipment and storage medium
US20190335378A1 (en) Access point connectivity
CN106304241B (en) Data transmission method, repeater and gateway
CN111698136B (en) Data transmission method and data transmission system of high-reliability PLC
CN101958812B (en) Link failure detection method and system
JP3777809B2 (en) Method for detecting line abnormality in duplex communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication