A network channel switching method, device, electronic device and storage medium

By monitoring and automatically switching network channels between routing devices, the problem of low switching efficiency caused by manual operations in the prior art is solved, and efficient network channel fault handling and user experience improvement is achieved.

CN114374646BActive Publication Date: 2025-02-11CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111615439.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-02-11
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

In the prior art, network channel failures between routing devices require manual notification and switching, resulting in low switching efficiency.

Method used

By monitoring the disconnection of network channels between routing devices, the network channel of the current routing device is automatically controlled to switch from the disconnected channel to another channel, and send network channel switching information to other routing devices, so that other routing devices can also automatically switch. aisle.

Benefits of technology

Automatic switching of network channels between routing devices is realized, fault information notification and switching efficiency is improved, network interruption perceived by users, and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114374646B_ABST
    Figure CN114374646B_ABST
Patent Text Reader

Abstract

The present application provides a network channel switching method, device, electronic device and storage medium, belonging to the field of communication technology, the method comprising: monitoring whether the first network channel for the current routing device to communicate with the remaining routing devices is disconnected; in the case where the first network channel is disconnected, controlling the network channel of the current routing device to switch from the first network channel to the second network channel, and sending network channel switching information to the remaining routing devices, so that the remaining routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information; wherein the network channel switching information includes the information that the first network channel of the current routing device is disconnected. Through the network channel switching method provided by the present application, the efficiency of network channel switching can be improved, and the switching of network channels can be achieved without the user's perception.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular, to a network channel switching method, device, electronic device and storage medium. Background Art

[0002] Currently, user equipments forward message information through routing devices to achieve mutual communication between user equipments.

[0003] Routing devices can communicate with each other through two different network channels. For example, routing devices can communicate with each other through two different network channels: a wired network channel or a wireless network channel. When one network channel between routing devices fails, another network channel can be connected to forward message information between routing devices.

[0004] However, when a network channel fails, it is necessary to manually notify other staff members of the network channel failure, so that after the other staff members learn of the network channel failure, they manually switch to another network channel. This manual operation method makes the network channel switching efficiency low. Summary of the invention

[0005] The embodiments of the present application provide a network channel switching method, device, electronic device and storage medium, aiming to solve the problem of low efficiency caused by manual operation of network channel switching.

[0006] A first aspect of an embodiment of the present application provides a network channel switching method, the method comprising:

[0007] Monitoring whether a first network channel through which the current routing device communicates with other routing devices is disconnected;

[0008] When the first network channel is disconnected, control the network channel of the current routing device to switch from the first network channel to the second network channel, and send network channel switching information to other routing devices, so that the other routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information;

[0009] The network channel switching information includes information that the first network channel of the current routing device is disconnected.

[0010] Optionally, the network channel switching information is sent to other routing devices, including:

[0011] Send network channel switching information to other routing devices via SMS and / or voice dialing.

[0012] Optionally, after sending the network channel switching information to the remaining routing devices, the method includes:

[0013] Detecting whether the current routing device receives response information fed back by the remaining routing devices;

[0014] In the case that the current routing device does not receive the response information, repeatedly sending the network channel switching information to the remaining routing devices until the remaining routing devices receive the network channel switching information;

[0015] When the current routing device receives the response information, stop sending the network channel switching information to the remaining routing devices;

[0016] The response information is information fed back by the other routing devices after successfully receiving the network channel switching information.

[0017] Optionally, in the case where the current routing device and the remaining routing devices communicate in layer 2 bridging mode, the current routing device and the remaining routing devices are both equipped with: a first intranet port and a first extranet port for establishing a first network channel, and a second intranet port and a second extranet port for establishing the second network channel;

[0018] Controlling the network channel of the current routing device to switch from the first network channel to the second network channel includes:

[0019] Control the first intranet port of the current routing device to be disconnected from the first external network port, and control the second intranet port of the current routing device to be connected to the second external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0020] Optionally, in the case where the current routing device and the remaining routing devices communicate in a routing selection mode, the current routing device and the remaining routing devices are both equipped with: a third internal network port for establishing the first network channel and the second network channel, a third external network port for establishing the first network channel, and a fourth external network port for establishing the second network channel;

[0021] Controlling the network channel of the current routing device to switch from the first network channel to the second network channel includes:

[0022] Control the connection between the third internal network port and the external network port of the current routing device, switch from the third external network port to the fourth external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0023] Optionally, the priority of the first network channel is greater than the priority of the second network channel, and the method includes:

[0024] When the first network channel is not disconnected, based on the priority of the first network channel and the second network channel, controlling the current routing device to communicate with the remaining routing devices;

[0025] The first network channel is a wired channel, and the second network channel is a wireless channel or a wired channel.

[0026] Optionally, after the remaining routing devices switch their own network channels from the first network channel to the second network channel, the method includes:

[0027] Monitor whether the disconnected first network channel is reconnected;

[0028] When it is detected that the first network channel is reconnected, the network channel through which the current routing device communicates with the remaining routing devices is controlled to be restored from the second network channel to the first network channel, and network recovery information is sent to the remaining routing devices so that the remaining routing devices restore their own network channels from the second network channel to the first network channel.

[0029] Optionally, each of the remaining routing devices pre-stores a plurality of correspondences between first port numbers and second port numbers, the first port number being the port number of a network port through which the current routing device communicates with the remaining routing devices, and the second port number being the port number of a network port through which the remaining routing devices communicate with the current routing device;

[0030] The remaining routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information, including:

[0031] The other routing devices obtain the device number of the current routing device;

[0032] According to the device number, obtaining the first port number;

[0033] Based on the correspondence between the first port number and the second port number, searching for the second port number corresponding to the first port number;

[0034] A communication connection is established between a first port corresponding to the first port number and a second port corresponding to the second port number to switch from the first network channel to the second network channel.

[0035] A second aspect of an embodiment of the present application provides a network channel switching device, the device comprising:

[0036] A monitoring module, used to monitor whether a first network channel for the current routing device to communicate with other routing devices is disconnected;

[0037] an information processing module, configured to control the network channel of the current routing device to switch from the first network channel to the second network channel when the first network channel is disconnected, and send network channel switching information to other routing devices, so that the other routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information;

[0038] The network channel switching information includes information that the first network channel of the current routing device is disconnected.

[0039] An electronic device according to an embodiment of the present application includes:

[0040] one or more processors; and

[0041] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the network channel switching method provided in the first aspect of the embodiment of the present application.

[0042] A fourth aspect of an embodiment of the present application provides one or more machine-readable storage media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the network channel switching method provided in the first aspect of the embodiment of the present application.

[0043] By adopting a network channel switching method provided by the present application, when it is detected that the first network channel of the current routing device is disconnected, network channel switching information can be automatically sent to the remaining routing devices communicating with it, so that the remaining routing devices can automatically switch the network channel through which they communicate with the current routing device from the first network channel to the second network channel according to the network channel switching information, and finally complete the automatic switching of the network channel between the current routing device and the remaining routing devices.

[0044] In this way, since the present application can automatically send network channel switching information to the remaining routing devices when it detects that the first network channel of the current routing device is disconnected, there is no need to manually notify the remaining staff of the first network channel failure, thereby improving the efficiency of notifying fault information; after the remaining routing devices of the present application receive the network channel switching information, they will also automatically switch from the first network channel to the second network channel according to the network channel switching information, and there is no need for the staff to switch the network channels of the remaining routing devices through manual operation, thereby improving the efficiency of network channel switching.

[0045] In addition, during the manual switching of network channels, since the network channel switching takes a long time, the user will obviously feel the network interruption of user devices such as mobile phones or computers. Since the present application improves the efficiency of fault information notification and network channel switching, even if the first network channel fails, it can connect to the second network channel in time, and the user will not obviously feel the network interruption of the user device, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1 is a flowchart of a method for switching a network channel proposed in one embodiment of the present application;

[0048] Figure 2 is a communication schematic diagram in a layer 2 bridging mode proposed in an embodiment of the present application;

[0049] Figure 3 This is a communication schematic diagram in a routing mode proposed in an embodiment of the present application;

[0050] Figure 4 It is a schematic diagram of the current routing device communicating with other routing devices in various different scenarios proposed in an embodiment of the present application;

[0051] Figure 5 This is a flowchart of the steps of a network channel switching method proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0052] 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.

[0053] Embodiment 1

[0054] See also Figure 1 As shown, an embodiment of the present application proposes a network channel switching method, which is applied to a network channel switching device. The network channel switching device can be arranged outside a routing device and communicated with the routing device, or can be arranged inside the routing device, and specifically includes the following steps:

[0055] Step 101: Monitor whether a first network channel through which the current routing device communicates with other routing devices is disconnected.

[0056] In the embodiment of the present application, a communication connection can be established between different routing devices to form a communication network. In the communication network, each routing device needs to establish communication with different routing devices.

[0057] Among them, the remaining routing devices refer to routing devices that can establish a communication connection with the current routing device. On the basis of establishing a communication connection between the current routing device and the remaining routing devices, there is naturally a network channel between the current routing device and the remaining routing devices to establish a communication connection between the two; on the basis of not establishing a communication connection between the current routing device and the remaining routing devices, there is no network channel between the current routing device and the remaining routing devices.

[0058] For example, in a communication network, routing device 18900 establishes communication connections with routing devices 18901, 18902, 18903, 18904, and 18905 respectively, but no communication connection is established between routing device 18900 and routing devices 18910 and 18911. Therefore, it is possible to monitor in the communication network whether multiple first network channels through which routing device 18900 establishes communication connections with routing devices 18901, 18902, 18903, 18904, and 18905 respectively are disconnected, thereby determining whether the multiple first network channels of routing device 18900 are faulty.

[0059] Step 102: When the first network channel is disconnected, control the network channel of the current routing device to switch from the first network channel to the second network channel, and send network channel switching information to other routing devices, so that the other routing devices switch their network channels with the current routing device from the first network channel to the second network channel according to the network channel switching information; wherein the network channel switching information includes information that the first network channel of the current routing device is disconnected.

[0060] In an embodiment of the present application, when the first network channel through which the current routing device communicates with other routing devices is disconnected, it is determined that the first network channel of the current routing device is in a faulty state. At this time, the network channel of the current routing device can be directly switched from the first network channel to a second network channel that can communicate normally.

[0061] Furthermore, in order to allow the remaining routing devices to also receive the message that the current routing device has switched from the first network channel to the second network channel, network channel switching information indicating that the first network channel of the current routing device is disconnected and the second network channel is connected will be sent to the remaining routing devices. The remaining routing devices will switch the network channel through which they communicate with the current routing device from the first network channel to the second network channel based on the network channel switching information, so that the current routing device and the remaining routing devices communicate through the second network channel, thereby realizing automatic switching of network channels between routing devices.

[0062] The first network channel may be a wired network channel, the second network channel may be a wired network channel or a wireless network channel, and the communication quality of the first network channel is higher than the communication quality of the second network channel.

[0063] Through a network channel switching method provided by the present application, when it is detected that the first network channel of the current routing device is disconnected, network channel switching information can be automatically sent to the remaining routing devices communicating with it, so that the remaining routing devices can automatically switch the network channel through which they communicate with the current routing device from the first network channel to the second network channel according to the network channel switching information, and finally complete the automatic switching of the network channel between the current routing device and the remaining routing devices.

[0064] In this way, since the present application can automatically send network channel switching information to the remaining routing devices when it detects that the first network channel of the current routing device is disconnected, there is no need to manually notify the remaining staff of the network channel failure, thereby improving the efficiency of notifying the failure information; after the remaining routing devices of the present application receive the network channel switching information, they will also automatically switch from the first network channel to the second network channel, and there is no need for the staff to switch the network channels of the remaining routing devices through manual operation, thereby improving the efficiency of network channel switching.

[0065] In addition, during the manual switching of network channels, users will clearly feel the network interruption of user-end devices such as mobile phones or computers. Since the present application improves the efficiency of fault information notification and network channel switching, even if the first network channel fails, it can be connected to the second network channel in time, and users will not obviously feel the network interruption of the device, thereby improving the user experience.

[0066] Embodiment 2

[0067] Based on the same inventive concept, another embodiment of the present application provides a network channel switching method, which is applied to a network channel switching device. The network channel switching device can be arranged outside a routing device and communicated with the routing device, or can be arranged inside the routing device. The method includes the following steps:

[0068] Step 201: Monitor whether a first network channel through which the current routing device communicates with other routing devices is disconnected.

[0069] Step 202: When the first network channel is not disconnected, based on the priority of the first network channel and the second network channel, control the current routing device to communicate with the remaining routing devices; wherein the first network channel is a wired channel, and the second network channel is a wireless channel or a wired channel.

[0070] In an embodiment of the present application, the current routing device can communicate with the remaining routing devices through only one network channel at the same time, that is, the current routing device communicates with the remaining routing devices through the first network channel, or the current routing device communicates with the remaining routing devices through the second network channel.

[0071] Therefore, when it is monitored that the first network channel and the second network channel between the current routing device and the remaining routing devices are communicating normally, since the communication quality of the first network channel is higher than that of the second network channel, in order to ensure the communication quality of the user, the first network channel will be used first to establish a communication connection between the current routing device and the remaining routing devices; when the first network channel is disconnected, the second network channel will be used to establish a communication connection between the current routing device and the remaining routing devices.

[0072] Among them, see Figure 2 As shown, the external network port WAN1 of user device A, the internal network port LAN1 of the current routing device, the external network port WAN1 of the current routing device, the user's remote network, the external network ports of other routing devices, the internal network ports of other routing devices, and the external network port of user device B can be connected in sequence to establish a wired channel.

[0073] You can also connect the external network port WAN2 of user device A, the internal network port LAN2 of the current routing device, the external network port WAN2 of the current routing device, the 5G CPE (Customer Premise Equipment), the external network ports of other routing devices, the internal network ports of other routing devices, and the external network port of user device B in sequence to establish a wireless channel.

[0074] 5G CPE refers to the IoT wireless router product running on the operator's 5G network. With technologies such as 4G / 5G wireless WAN dual network backup, the device provides uninterrupted access to multiple networks, and provides users with high-speed and stable data transmission channels with its comprehensive security and wireless services.

[0075] In this scenario, 5G CPE serves as the user-side bearer unit of the wireless network channel. It connects to the user-side LAN device through the LAN port and connects to the operator's 5G network to establish a 5G wireless network channel.

[0076] Step 203: When the first network channel is disconnected, control the network channel of the current routing device to switch from the first network channel to the second network channel; and send network channel switching information to other routing devices, so that the other routing devices switch the network channels between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information; wherein the network channel switching information includes the information that the first network channel of the current routing device is disconnected.

[0077] In an embodiment of the present application, each routing device may be equipped with a network channel switching device, which may be disposed inside the routing device or outside the routing device. When the network channel switching device configured on the current routing device detects that the first network channel through which the current routing device communicates with the remaining routing devices is disconnected, network channel switching information may be sent to the network channel switching devices configured on the remaining routing devices via SMS and / or voice dialing.

[0078] Specifically, see Figure 2 or Figure 3 As shown, the network channel switching device includes: a text message / voice dialing sending module, a text message / voice dialing receiving module, and an information processing module.

[0079] The information processing module configured on the current routing device monitors whether the first network channel for communication between the current routing device and the other routing devices is disconnected. If disconnected, the first network channel for communication between the current routing device and the other routing devices is first controlled to be disconnected and the second network channel is connected; then the network channel switching information is sent to the SMS / voice dial receiving modules of the other routing devices through the SMS / voice dial sending module.

[0080] The SMS / voice dial receiving modules of the remaining routing devices forward the network channel switching information to the information processing modules on the remaining routing devices. The information processing modules on the remaining routing devices then disconnect themselves from the first network channel for communicating with the current routing device and connect the second network channel to switch from the first network channel to the second network channel.

[0081] The format of the network channel switching information may be an audio format or a text format.

[0082] For example, when the first network channel for the current routing device to communicate with the remaining routing devices is disconnected, the SMS / voice dialing sending module on the current routing device makes a call to the SMS / voice dialing receiving module on the remaining routing devices. After the SMS / voice dialing receiving module on the remaining routing devices answers the call, the network channel switching information in audio format can be obtained.

[0083] For another example, when the first network channel currently communicating with the remaining routing devices is disconnected, the SMS / voice dial sending module on the current routing device sends a text message to the SMS / voice dial receiving modules on the remaining routing devices. After the SMS / voice dial receiving modules on the remaining routing devices receive the text message, they can obtain the network channel switching information in text format.

[0084] Among them, the first network channel and the second network channel are located in the data network, and data interaction between routing devices is realized through the data network; while the SMS / voice dialing sending module and the SMS / voice dialing receiving module in the network channel switching device are located in a switching network such as a wireless data network (such as a 2G network, a 3G network) or a circuit switching network, and data forwarding of network channel switching information is realized through the switching network.

[0085] It is known that the switching network implements functions such as making and receiving calls, sending and receiving text messages, etc. The data network is a broadband network, which implements information forwarding based on the broadband network, such as QQ calls and WeChat calls based on the broadband network. Since the data network and the switching network are two independent networks, when the data network with a complex network structure collapses and causes the original data transmission path and network channel switching mechanism to fail, the data network will not affect the use of the switching network, and the network channel switching information can still be transmitted through the switching network, which guarantees the stability of the transmission of network channel switching information to a certain extent.

[0086] In addition, since the security of data transmission in the data network is relatively low, if the network channel switching information is transmitted in the data network, it is easy to be stolen by illegal persons, causing users to be in a state of network interruption for a long time. The data transmission of the switching network is simple and has higher security. Therefore, transmitting the network channel switching information in the switching network can ensure the security of the network channel switching information transmission.

[0087] In addition, considering the production cost, if the user equipment in the data network deploys a dynamic routing protocol, or builds a huge application scheduling system to realize the forwarding of network channel switching information, it is not only necessary to re-establish a new cloud platform for data transmission and reception, but also inevitably need to transform the entire network architecture of the user equipment and the data network, which will obviously make the switching cost of the network channel higher. However, the use of SMS or voice in the switching network to realize the forwarding of network channel switching information can meet the needs of information forwarding, and the forwarding cost of SMS or voice communication is also low, which can greatly reduce the forwarding cost of network channel switching information.

[0088] In the embodiment of the present application, since the current routing device and the other routing devices can communicate in either a Layer 2 bridging mode or a routing selection mode, the channel switching between the first network channel and the second network channel has the following two situations.

[0089] When the current routing device and the remaining routing devices communicate in layer 2 bridging mode, the current routing device and the remaining routing devices are equipped with: a first intranet port and a first extranet port for establishing a first network channel, and a second intranet port and a second extranet port for establishing a second network channel.

[0090] Then, the step of controlling the network channel between the current routing device and the remaining routing devices to switch from the first network channel to the second network channel is: when the information processing module detects that the first external network port is disconnected, it is determined that the first network channel for the current routing device to communicate with the remaining routing devices is disconnected. At this time, the first internal network port of the current routing device can be controlled to be disconnected from the first external network port, and the second internal network port of the current routing device can be controlled to be connected to the second external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0091] For example, see Figure 2 As shown, the first intranet port of the current routing device is LAN1, and the second intranet port is LAN2; the first external network port of the current routing device is WAN1, and the second external network port is WAN2. Among them, LAN1 and WAN1 are used to establish a first network channel, and LAN1 is connected to the external network port WAN1 of the user device; LAN2 and WAN2 are used to establish a second network channel, and LAN2 is connected to the external network port WAN2 of the user device.

[0092] When the information processing module monitors that the WAN1 port is disconnected, it determines that the first network channel for the current routing device to communicate with the remaining routing devices is disconnected. At this time, the LAN1 port can be controlled to be disconnected from the WAN1 port, and the LAN2 port can be controlled to be connected to the WAN2 port to switch the network channel of the current routing device from the first network channel to the second network channel.

[0093] When the current routing device and the remaining routing devices communicate in routing selection mode, the current routing device and the remaining routing devices are equipped with: a third intranet port for establishing a first network channel and a second network channel, a third extranet port for establishing the first network channel, and a fourth extranet port for establishing the second network channel.

[0094] Then, the step of controlling the network channel between the current routing device and the remaining routing devices to switch from the first network channel to the second network channel is: when the information processing module detects that the third external network port is disconnected, it is determined that the first network channel for the current routing device to communicate with the remaining routing devices is disconnected. At this time, the connection between the third internal network port and the external network port of the current routing device is controlled, and switched from the third external network port to the fourth external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0095] For example, see Figure 3 As shown, the third intranet port of the current routing device is LAN * , the third external network port is WAN1, and the fourth external network port is WAN2. * and WAN1 to establish the first network channel, and LAN * Communicates with the external network port of the user device; LAN * Used with WAN2 to establish a second network channel.

[0096] When the information processing module detects that the WAN1 port is disconnected, it determines that the first network channel for the current routing device to communicate with other routing devices is disconnected. At this time, the LAN * The port is disconnected from WAN1, LAN * A connection is established with WAN2 to switch the network channel of the current routing device from the first network channel to the second network channel.

[0097] Similarly, the other routing devices are also configured with intranet ports and extranet ports. When the network channel through which the other routing devices communicate with the current routing device switches from the first network channel to the second network channel, the network channel switching method of the current routing device can also be referred to to achieve switching from the first network channel to the second network channel.

[0098] In the embodiment of the present application, there are multiple routing devices in the data network, and each routing device communicates not only with one routing device, but with multiple routing devices, and the mutual communication between the multiple routing devices constitutes the data network.

[0099] Since the current routing device communicates with not only one other routing device but multiple other routing devices; and the other routing devices communicate with not only one routing device but multiple other routing devices, a configuration file is stored in each routing device, and the configuration file stores a list of device numbers of multiple routing devices and the correspondence between the multiple device numbers and the port numbers of the multiple routing devices.

[0100] Taking the remaining routing devices as an example (the current routing devices have the same principle), each of the remaining routing devices stores a configuration file, which stores a list of device numbers of multiple current routing devices and a correspondence between multiple first port numbers and multiple second port numbers. The first port number is the port number of the network port through which the current routing device communicates with the remaining routing devices, and the second port number is the port number of the network port through which the remaining routing devices communicate with the current routing device.

[0101] The first port number includes: the port number corresponding to the intranet port of the current routing device used to establish the first network channel, for example, Figure 2 Shown with Figure 3 The first intranet port LAN1 or the third intranet port LAN1 used to establish the first network channel is shown * The corresponding port number, and the port number corresponding to the intranet port used to establish the second network channel, such as the second intranet port LAN2 or the third intranet port LAN used to establish the second network channel * The corresponding port number; the second port number includes: the port number corresponding to the intranet port of the remaining routing devices used to establish the first network channel, and the port number corresponding to the intranet port used to establish the second network channel.

[0102] There is a correspondence between the port number of the intranet port used by the current routing device to establish the first network channel and the port number of the intranet port used by the remaining routing devices to establish the first network channel. Taking the Layer 2 bridging mode as an example, there is a correspondence between the port number y01 of the intranet port LAN1 used by the routing device 18901 to establish the first network channel and the port number y11 of the intranet port LAN1 used by the routing device 18900 to establish the first network channel. The ports corresponding to the port numbers of the two can be used to establish the first network channel. There is a correspondence between the port number of the intranet port used by the current routing device to establish the second network channel and the port number of the intranet port used by the remaining routing devices to establish the second network channel. Taking the Layer 2 bridging mode as an example, there is a correspondence between the port number w01 of the intranet port LAN2 used by the routing device 18901 to establish the second network channel and the port number w11 of the intranet port LAN2 used by the routing device 18900 to establish the first network channel.

[0103] The network channel switching information includes the device number of the routing device and the content of the channel switching. The content of the channel switching may specifically be the content of switching from the first network channel to the second network channel, or from the second network channel to the first network channel.

[0104] The remaining routing devices store configuration files, which store corresponding relationships between device numbers of multiple current routing devices and first port numbers of multiple current routing devices.

[0105] Then, the steps for the remaining routing devices to switch the network channel between themselves and the current routing device from the first network channel to the second network channel based on the network channel switching information may be: the remaining routing devices obtain the device number of the current routing device; based on the device number and the correspondence between multiple device numbers of the current routing devices and multiple first port numbers, obtain the first port number corresponding to the device number from the stored configuration file; based on the correspondence between the first port number and the second port number, search for the second port number corresponding to the first port number; establish a communication connection between the first port corresponding to the first port number and the second port corresponding to the second port number, so as to switch from the first network channel to the second network channel.

[0106] For example, see Figure 4 As shown, routing device 18900 is the remaining routing device, and routing device 18901 is the current routing device.

[0107] When routing device 18900 receives the network channel switching information sent by routing device 18901, it can obtain the device number of routing device 18901 as "18901" from the network channel switching information; then, based on the device number "18901", it can find the first port number corresponding to the device number "18901" from its own configuration file, and the first port number includes: the number yo1 corresponding to the intranet port used by routing device 18901 to establish the first network channel, and the number w01 corresponding to the intranet channel used to establish the second network channel; then, based on the correspondence between the first port number and the second port number (y01 corresponds to y11, w01 corresponds to w11), the second port number of routing device 18900 itself is found, and the second port number includes: the number y11 corresponding to the intranet port used by routing device 18900 to establish the first network channel, and the number w11 corresponding to the intranet channel used to establish the second network channel. In this way, routing device 18900 can disconnect the port identified by y11 and connect to the port identified by w11 to disconnect the communication between the port identified by y11 and the port identified by y01 in the first network channel, and establish communication between the port identified by w11 and the port identified by w01 in the second network channel, thereby switching the channel through which the remaining routing devices communicate with the current routing device from the first network channel to the second network channel.

[0108] It can be seen that by configuring the correspondence between the device number of the current routing device and the first port number of the current routing device in the remaining routing devices, and configuring the correspondence between the first port number of the current routing device and the second port numbers of the remaining routing devices in the remaining routing devices, after the remaining routing devices receive the network channel switching information sent by the current routing device, according to the device number in the network channel switching information, the faulty current routing device can be determined from multiple current routing devices, and then the network channel between the remaining routing devices and the faulty current routing device can be switched from the disconnected first network channel to the second network channel of normal communication.

[0109] In this way, each routing device in the data network can accurately determine, based on the device number list, which routing device's network channel among the multiple routing devices connected to itself has failed and disconnected, and then switch to the second network channel to achieve network channel switching.

[0110] Furthermore, when the remaining routing devices need to feed back the message information of the user device to the current routing device, if the first network channel of the current routing device is monitored to be reconnected, the remaining routing devices can be controlled to still use the first network channel to feed back the message information of the user to the current routing device.

[0111] Specifically, the network channel switching device located on the current routing device can monitor whether the disconnected first network channel is reconnected; when it is detected that the first network channel is reconnected, the network channel through which the current routing device communicates with the remaining routing devices is controlled to be restored from the second network channel to the first network channel, and network recovery information is sent to the remaining routing devices, so that the remaining routing devices can restore their own network channels from the second network channel to the first network channel based on the network recovery information.

[0112] For example, see Figure 4 As shown, taking the first network channel as a wired channel and the second network channel as a wireless channel as an example, user device A communicates with routing device 18901, and user device B communicates with routing device 18900.

[0113] After the wired channel of routing device 18901 is switched to a wireless channel, network channel switching information is sent to routing device 18900. Routing device 18900 switches its own wired channel to a wireless channel based on the network channel switching information. In this way, a wireless channel connection is established between routing device 18900 and routing device 18901, and routing device 18901 transmits the message information of user device A to routing device 18900 through the wireless channel.

[0114] When it is detected that the wired channel of routing device 18901 is reconnected, a network recovery message is sent to routing device 18900. Routing device 18900 switches from the wireless channel to the wired channel according to the network recovery message. In this way, a wired channel connection is established between routing device 18900 and routing device 18901. Routing device 18900 feeds back the message information of user device B to routing device 18901 through the wired channel.

[0115] By sending network recovery information to other routing devices when monitoring the reconnection of the first network channel of the current routing device, the current routing device can establish communication between the current routing device and the other routing devices through the first network channel in a timely manner after reconnecting to the first network channel. Since the communication quality of the first network channel is higher than the communication quality of the second network channel, the communication quality between user devices can be better guaranteed.

[0116] Furthermore, when it is detected that the first network channel of the current routing device is not disconnected, the remaining routing devices may be controlled to communicate with the current routing device using the first network channel.

[0117] For example, see Figure 4 As shown, routing device 18902 sends the message information of user device A to routing device 18900 through a wired channel; similarly, routing device 18900 also feeds back the message information of user device B to routing device 18902 through a wired channel.

[0118] Furthermore, when the remaining routing devices need to feed back the message information of the user device to the current routing device, if it is detected that the first network channel of the current routing device is still disconnected, the message information of the user device is still fed back to the current routing device through the second network channel.

[0119] For example, see Figure 4 As shown, routing device 18903 sends the message information of user device A to routing device 18900 through a wireless channel; routing device 18900 also feeds back the message information of user device B to routing device 18903 through a wireless channel.

[0120] Furthermore, when the remaining routing devices need to feed back the message information of the user equipment to the current routing device, if it is detected that the first network channel of the current routing device is disconnected, the message information of the user equipment is fed back to the current routing device through the second network channel.

[0121] For example, see Figure 4As shown, when the wired channel of routing device 18905 is not disconnected, routing device 18905 sends the message information of user device A to routing device 18900 through the wired channel; when routing device 18900 receives the network channel switching information sent by routing device 18905, it indicates that the channel of routing device 18905 has been switched from the wired channel to the wireless channel, so routing device 18900 will feed back the message information of user device B to routing device 18905 through the wireless channel.

[0122] Furthermore, in order to ensure that the remaining routing devices can receive the network channel switching information sent by the current routing device, the following steps are also included: Step A1: Detect whether the current routing device has received the response information fed back by the remaining routing devices; Step A2: If the current routing device has not received the response information, repeatedly send the network channel switching information to the remaining routing devices until the remaining routing devices receive the network channel switching information; Step A3: If the current routing device receives the response information, stop sending the network channel switching information to the remaining routing devices; wherein the response information is the information fed back by the remaining routing devices after successfully receiving the network channel switching information.

[0123] Through the response information fed back by the other routing devices to the current routing device, the current routing device can determine that the other routing devices have successfully received the network channel switching information, so there is no need to continue to send network channel switching information to the other routing devices, thereby ensuring that the other routing devices can successfully receive the network channel switching information, and the subsequent network channel switching logic can continue to execute.

[0124] Based on the same inventive concept, the present application embodiment proposes a network channel switching device, see Figure 5 As shown, the device comprises:

[0125] A monitoring module, used to monitor whether a first network channel for the current routing device to communicate with other routing devices is disconnected;

[0126] an information processing module, configured to control the network channel of the current routing device to switch from the first network channel to the second network channel when the first network channel is disconnected, and send network channel switching information to other routing devices, so that the other routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information;

[0127] The network channel switching information includes information that the first network channel of the current routing device is disconnected.

[0128] Optionally, the information processing module includes:

[0129] The SMS / voice dialing sending module is used to send network channel switching information to other routing devices via SMS and / or voice dialing.

[0130] Optionally, the information processing module includes:

[0131] A response information detection module, used to detect whether the current routing device has received the response information fed back by the other routing devices;

[0132] a repeated sending module, configured to repeatedly send the network channel switching information to the remaining routing devices when the current routing device has not received the response information, until the remaining routing devices receive the network channel switching information;

[0133] The stop sending module is used to stop sending the network channel switching information to the remaining routing devices when the current routing device receives the response information; wherein the response information is the information fed back by the remaining routing devices after successfully receiving the network channel switching information.

[0134] Optionally, in the case where the current routing device and the remaining routing devices communicate in layer 2 bridging mode, the current routing device and the remaining routing devices are both equipped with: a first intranet port and a first extranet port for establishing a first network channel, and a second intranet port and a second extranet port for establishing the second network channel;

[0135] The information processing module includes:

[0136] The first information processing module is used to control the first internal network port of the current routing device to be disconnected from the first external network port, and to control the second internal network port of the current routing device to be connected to the second external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0137] Optionally, in the case where the current routing device and the remaining routing devices communicate in a routing selection mode, the current routing device and the remaining routing devices are both equipped with: a third internal network port for establishing the first network channel and the second network channel, a third external network port for establishing the first network channel, and a fourth external network port for establishing the second network channel;

[0138] The information processing module includes:

[0139] The second information processing module is used to control the connection between the third internal network port and the external network port of the current routing device, switching from the third external network port to the fourth external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

[0140] Optionally, the priority of the first network channel is greater than the priority of the second network channel, and the device includes:

[0141] The third information processing module is used to control the current routing device to communicate with the remaining routing devices based on the priority of the first network channel and the second network channel when the first network channel is not disconnected; wherein the first network channel is a wired channel, and the second network channel is a wireless channel or a wired channel.

[0142] Optionally, the device comprises:

[0143] A reconnection monitoring module, used to monitor whether the disconnected first network channel is reconnected;

[0144] A network channel recovery module is used to control the network channel for communication between the current routing device and the remaining routing devices to recover from the second network channel to the first network channel when the first network channel is detected to be reconnected, and to send network recovery information to the remaining routing devices so that the remaining routing devices recover their own network channels from the second network channel to the first network channel.

[0145] Optionally, each of the remaining routing devices pre-stores a plurality of correspondences between first port numbers and second port numbers, the first port number being the port number of a network port through which the current routing device communicates with the remaining routing devices, and the second port number being the port number of a network port through which the remaining routing devices communicate with the current routing device;

[0146] The information processing module comprises:

[0147] A device number acquisition module, used to acquire the device number of the current routing device through the remaining routing devices;

[0148] A port number determination module, used to obtain the first port number according to the device number;

[0149] A search module, configured to search for a second port number corresponding to the first port number based on a corresponding relationship between the first port number and the second port number;

[0150] The fourth information processing module is used to establish a communication connection between a first port corresponding to the first port number and a second port corresponding to the second port number, so as to switch from the first network channel to the second network channel.

[0151] Based on the same inventive concept, an embodiment of the present application provides an electronic device, including:

[0152] one or more processors; and

[0153] One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to perform the network channel switching method as described above.

[0154] Based on the same inventive concept, an embodiment of the present application proposes one or more machine-readable storage media, characterized in that instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the network channel switching method as described above.

[0155] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0156] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0157] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0158] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0159] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0160] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0161] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0162] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0163] The above is a detailed introduction to a network channel switching method, device, electronic device and storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A network channel switching method, characterized in that: The method comprises: Monitoring whether a first network channel through which the current routing device communicates with other routing devices is disconnected; When the first network channel is disconnected, control the network channel of the current routing device to switch from the first network channel to the second network channel, and send network channel switching information to other routing devices, so that the other routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information; The network channel switching information includes information that a first network channel of the current routing device is disconnected, the first network channel and the second network channel are located in a data network, and data forwarding of the network channel switching information is achieved through a switching network; The network channel switching information is sent to other routing devices, including: Send network channel switching information to other routing devices via SMS and / or voice dialing; Wherein, in the case where the current routing device and the remaining routing devices communicate in a routing selection mode, the current routing device and the remaining routing devices are both equipped with: a third internal network port for establishing the first network channel and the second network channel, a third external network port for establishing the first network channel, and a fourth external network port for establishing the second network channel; Controlling the network channel of the current routing device to switch from the first network channel to the second network channel includes: Control the connection between the third internal network port and the external network port of the current routing device, switch from the third external network port to the fourth external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

2. The method according to claim 1, characterized in that: After sending the network channel switching information to the remaining routing devices, the method includes: Detecting whether the current routing device receives response information fed back by the remaining routing devices; In the case that the current routing device does not receive the response information, repeatedly sending the network channel switching information to the remaining routing devices until the remaining routing devices receive the network channel switching information; When the current routing device receives the response information, stop sending the network channel switching information to the remaining routing devices; The response information is information fed back by the other routing devices after successfully receiving the network channel switching information.

3. The method according to claim 1, characterized in that: In the case where the current routing device and the remaining routing devices communicate in layer 2 bridging mode, the current routing device and the remaining routing devices are both equipped with: a first intranet port and a first extranet port for establishing a first network channel, and a second intranet port and a second extranet port for establishing a second network channel; Controlling the network channel of the current routing device to switch from the first network channel to the second network channel includes: Control the first intranet port of the current routing device to be disconnected from the first external network port, and control the second intranet port of the current routing device to be connected to the second external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

4. The method according to claim 1, characterized in that: The priority of the first network channel is greater than the priority of the second network channel, and the method includes: When the first network channel is not disconnected, based on the priority of the first network channel and the second network channel, controlling the current routing device to communicate with the remaining routing devices; The first network channel is a wired channel, and the second network channel is a wireless channel or a wired channel.

5. The method according to claim 1, characterized in that After the remaining routing devices switch their own network channels from the first network channel to the second network channel, the method includes: Monitor whether the disconnected first network channel is reconnected; When it is detected that the first network channel is reconnected, the network channel through which the current routing device communicates with the remaining routing devices is controlled to be restored from the second network channel to the first network channel, and network recovery information is sent to the remaining routing devices so that the remaining routing devices restore their own network channels from the second network channel to the first network channel.

6. The method according to claim 1, characterized in that Each of the remaining routing devices has a plurality of correspondences between first port numbers and second port numbers pre-stored therein, the first port number being the port number of a network port through which the current routing device communicates with the remaining routing devices, and the second port number being the port number of a network port through which the remaining routing devices communicate with the current routing device; The remaining routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information, including: The other routing devices obtain the device number of the current routing device; According to the device number, obtaining the first port number; Based on the correspondence between the first port number and the second port number, searching for the second port number corresponding to the first port number; A communication connection is established between a first port corresponding to the first port number and a second port corresponding to the second port number to switch from the first network channel to the second network channel.

7. A network channel switching device, characterized in that: The device comprises: A monitoring module, used to monitor whether a first network channel for the current routing device to communicate with other routing devices is disconnected; an information processing module, configured to control the network channel of the current routing device to switch from the first network channel to the second network channel when the first network channel is disconnected, and send network channel switching information to other routing devices, so that the other routing devices switch the network channel between themselves and the current routing device from the first network channel to the second network channel according to the network channel switching information; The network channel switching information includes information that a first network channel of the current routing device is disconnected, the first network channel and the second network channel are located in a data network, and data forwarding of the network channel switching information is achieved through a switching network; The SMS / voice dialing sending module is used to send network channel switching information to other routing devices via SMS and / or voice dialing; Wherein, in the case where the current routing device and the remaining routing devices communicate in a routing selection mode, the current routing device and the remaining routing devices are both equipped with: a third internal network port for establishing the first network channel and the second network channel, a third external network port for establishing the first network channel, and a fourth external network port for establishing the second network channel; Wherein, the information processing module further includes: The second information processing module is used to control the connection between the third internal network port and the external network port of the current routing device, switching from the third external network port to the fourth external network port, so as to switch the network channel of the current routing device from the first network channel to the second network channel.

8. An electronic device, characterized in that: include: one or more processors; and One or more machine-readable media having instructions stored thereon, when executed by the one or more processors, enable the electronic device to execute the network channel switching method as described in any one of claims 1-6.

9. One or more machine-readable storage media, characterized in that Instructions are stored thereon, which, when executed by one or more processors, enable the processors to execute the network channel switching method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Architecture and method for hybrid circuit-switched and packet-switched router

    CN105765557A

  • Network channel switching method and device, equipment and storage medium

    CN109379772A

  • Adaptive networking method and device, router and storage medium

    CN112333013A