Network switching method and device, communication equipment, storage medium and program product

By setting up multiple network link configuration types in multi-WAN communication devices and performing corresponding network switching operations according to application scenarios, the problem that devices cannot switch in time in different scenarios is solved, and the flexibility and stability of network switching is improved.

CN119545388APending Publication Date: 2025-02-28CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411697400.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

Multi-WAN communication devices cannot perform network switching in time in different application scenarios, reducing the flexibility of network switching.

Method used

By setting up a variety of network link configuration types, including only configuring wired links, only cellular wireless links, cellular wireless link priority and wired link priority, we can determine the network link configuration type set by the user and perform corresponding network switching operations in different application scenarios.

Benefits of technology

It improves the flexibility of network link switching for multi-WAN communication devices in different application scenarios, ensuring network continuity and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119545388A_ABST
    Figure CN119545388A_ABST
Patent Text Reader

Abstract

The invention provides a network switching method and device, communication equipment, a storage medium and a program product. The method comprises the step of using a wired link when the network link configuration type is that only the wired link is configured. When only the cellular wireless link is configured, the cellular wireless link is used, and when the cellular wireless link is not connected, the WIFI mode is switched to the STA mode. When the cellular wireless link is preferential, if the signal-to-noise ratio threshold value and the reference signal receiving power threshold value are null, a wired link is used when the cellular wireless link is not connected; and if the signal-to-noise ratio threshold value and the reference signal receiving power threshold value are not null, switching to the network service area meeting the use condition according to the signal-to-noise ratio and the reference signal receiving power. When the data is the wired link priority, the wired link is used if the data is not in the preset positioning area data range; and switching to a cellular wireless link in the preset positioning area data range. According to the method provided by the invention, the network switching flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network switching method, apparatus, communication equipment, storage medium and program product. Background Art

[0002] Multi-WAN (Wide Area Network) communication equipment is only configured with cellular wireless links when it leaves the factory. However, in the actual network deployment environment, users may configure wired links based on cellular wireless links as needed, thus forming a situation where multiple networks, including cellular wireless links and wired links, are accessed simultaneously. Therefore, switching between the main link and links is involved to ensure the continuity and stability of the network.

[0003] Currently, the existing technology usually directly uses a wired link or a cellular wireless link as the main link of the network.

[0004] However, directly using a wired link or a cellular wireless link as the main link of the network causes multiple WAN communication devices to be unable to perform network switching in a timely manner in different application scenarios, thereby reducing the flexibility of network switching. Summary of the invention

[0005] The embodiments of the present application provide a network switching method, an apparatus, a communication device, a storage medium, and a program product to achieve the effect of improving the flexibility of network switching.

[0006] In a first aspect, an embodiment of the present application provides a network switching method, comprising: receiving network link configuration data sent by a user terminal; wherein the network link configuration data includes a network link configuration type; when the network link configuration type is to configure only a wired link, if the wired link is connected, the wired link is used; when the network link configuration type is to configure only a cellular wireless link, the following steps are performed: determining whether the cellular wireless link is connected; if the cellular wireless link is connected, the cellular wireless link is used; if the cellular wireless link is not connected, determining whether to allow WIFI to switch to STA mode according to the network link configuration data; if WIFI is allowed to switch to STA mode, obtaining available WIFI within a preset network service range, and switching the network to available WIFI; switching to the cellular wireless link when the cellular wireless link is connected; when the network link configuration type is cellular wireless link priority, the following steps are performed: determining whether the signal-to-noise ratio threshold and the reference signal receiving power threshold in the network link configuration data are empty; if the signal-to-noise ratio threshold and the reference signal receiving power threshold are both empty, determining whether the cellular wireless link is connected; if the cellular wireless link is connected, the cellular wireless link is used; if the cellular wireless link is not connected but the wired link is connected, the network is switched to wired link; switch to the cellular wireless link when the cellular wireless link is connected; if the signal-to-noise ratio threshold and the reference signal receiving power threshold are not empty, determine whether the cellular wireless link in the current network service area meets the use conditions; if so, use the cellular wireless link in the current network service area; if not, switch the network to the cellular wireless link corresponding to the adjacent network service area that meets the use conditions; when the network link configuration data is wired link priority, perform the following steps: determine whether there is preset positioning area data in the network link configuration data; if there is no preset positioning area data in the network link configuration data, determine the wired wireless link. Whether the link is connected; if the wired link is connected, use the wired link; if the wired link is not connected but the cellular wireless link is connected, switch the network to the cellular wireless link; switch to the wired link when the wired link is connected; if there is preset positioning area data in the network link configuration data, determine whether the current network service area is within the preset positioning area data range; if it is not within the preset positioning area data range and the wired link is connected, use the wired link; if it is within the preset positioning area data range and the cellular wireless link is connected, switch the network to the cellular wireless link, and switch to the wired link when the cellular wireless link is not connected.

[0007] In one possible implementation, determining whether a cellular wireless link in a current network service area meets a usage condition includes: obtaining a signal-to-noise ratio and a reference signal receiving power in the current network service area; if the signal-to-noise ratio is greater than a signal-to-noise ratio threshold, and the reference signal receiving power is greater than a reference signal receiving power threshold, determining that the cellular wireless link in the current network service area meets the usage condition.

[0008] In a possible implementation, it also includes: when the cellular wireless link in the current network service area does not meet the usage conditions, and the cellular wireless link corresponding to the adjacent network service area also does not meet the usage conditions, determining whether the wired link is connected; if the wired link is connected, switching the network to the wired link; when the cellular wireless link is connected, switching the network to the cellular wireless link.

[0009] In a possible implementation, the method further includes: if no available WIFI is obtained within the preset network service range, switching the network to a cellular wireless network.

[0010] In a possible implementation, the method further includes: when the cellular wireless link is not connected, performing abnormal recovery processing on the cellular wireless link, so as to switch the network to the cellular wireless link when the cellular wireless link is connected.

[0011] In a possible implementation, switching the network to a cellular wireless link corresponding to an adjacent network service area that meets the usage conditions includes: switching the network to a cellular wireless link corresponding to an adjacent network service area that meets the usage conditions through frequency locking technology.

[0012] In a possible implementation, it also includes: continuously monitoring the signal quality of the current network service area and the signal quality of the adjacent network service area; judging whether to use the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area based on the signal quality of the current network service area and the signal quality of the adjacent network service area; obtaining an IP address after using the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area; and communicating according to the IP address during the use of the cellular wireless link.

[0013] In a second aspect, an embodiment of the present application provides a network switching device, including:

[0014] A receiving module, configured to receive network link configuration data sent by a user terminal; wherein the network link configuration data includes a network link configuration type;

[0015] A first network link determination module, configured to use the wired link if the wired link is connected when the network link configuration type is to configure only the wired link;

[0016] The second network link judgment module is used to perform the following steps when the network link configuration type is to configure only the cellular wireless link;

[0017] Wherein, the second network link determination module includes:

[0018] A first determination unit, configured to determine whether a cellular wireless link is connected;

[0019] A first determination unit, configured to use the cellular wireless link if the cellular wireless link is connected;

[0020] The second determination unit is used to determine whether to allow WIFI to switch to STA mode according to the network link configuration data if the cellular wireless link is not connected; if the WIFI is allowed to switch to STA mode, obtain available WIFI within the preset network service range and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected;

[0021] The third network link judgment module is used to execute the following steps when the network link configuration type is cellular wireless link priority;

[0022] Wherein, the third network link determination module includes:

[0023] A second judgment unit is used to judge whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty;

[0024] A third determination unit, if the signal-to-noise ratio threshold and the reference signal received power threshold are both empty, determines whether the cellular wireless link is connected;

[0025] A fourth determination unit is configured to use the cellular wireless link if the cellular wireless link is connected; switch the network to the wired link if the cellular wireless link is not connected but the wired link is connected; and switch to the cellular wireless link again when the cellular wireless link is connected;

[0026] The fifth determination unit determines whether the cellular wireless link in the current network service area meets the use conditions if both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty; if so, the cellular wireless link in the current network service area is used; if not, the network is switched to the cellular wireless link corresponding to the adjacent network service area that meets the use conditions;

[0027] The fourth network link judgment module is used to execute the following steps when the network link configuration data indicates that the wired link is prioritized;

[0028] Wherein, the fourth network link determination module includes:

[0029] A third determination unit, used to determine whether there is preset positioning area data in the network link configuration data;

[0030] a sixth determination unit, configured to determine whether the wired link is connected if the preset positioning area data does not exist in the network link configuration data; if the wired link is connected, use the wired link; if the wired link is not connected but the cellular wireless link is connected, switch the network to the cellular wireless link; and switch to the wired link when the wired link is connected;

[0031] a seventh determination unit, configured to determine whether the current network service area is within the range of the preset positioning area data if the preset positioning area data exists in the network link configuration data;

[0032] an eighth determination unit, configured to use the wired link if the location is not within the preset positioning area data range and the wired link is connected;

[0033] The ninth determination unit is used to switch the network to the cellular wireless link if it is within the preset positioning area data range and the cellular wireless link is connected, and then switch to the wired link when the cellular wireless link is not connected.

[0034] In a third aspect, an embodiment of the present application provides a multi-WAN communication device, including: a memory, a processor;

[0035] The memory stores computer-executable instructions;

[0036] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0038] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0039] In the network switching method, apparatus, communication device, storage medium and program product provided by the embodiments of the present application, the network link configuration types sent by the user end include: only configuring wired links, only configuring cellular wireless links, cellular wireless links first and wired links first. The multi-WAN communication device determines the network link configuration type and performs different network switching operations in different application scenarios corresponding to different network link configuration types, so that the multi-WAN communication device can flexibly switch network links in different application scenarios, thereby improving the flexibility of network switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] Figure 1 A schematic diagram of a scenario of a network switching method provided in an embodiment of the present application;

[0042] Figure 2 A flowchart of a network switching method provided in an embodiment of the present application;

[0043] Figure 3 A schematic diagram of the structure of a network switching device provided in an embodiment of the present application;

[0044] Figure 4 A schematic diagram of the structure of a multi-WAN communication device provided in an embodiment of the present application.

[0045] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0046] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0047] Figure 1 A schematic diagram of a network switching method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the specific application scenario of the present application includes a user terminal 101 and a multi-WAN communication device 102 .

[0048] refer to Figure 1 The user terminal sends the network link configuration data to the multi-WAN communication device 102, the network link configuration data includes the network link configuration type; wherein the network link configuration type includes: only configuring the wired link, only configuring the cellular wireless link, cellular wireless link priority and wired link priority. The multi-WAN communication device 102 performs network switching according to the network link configuration type.

[0049] Multi-WAN (Wide Area Network) communication equipment is only configured with cellular wireless links when it leaves the factory. However, in the actual network deployment environment, users may configure wired links based on cellular wireless links as needed, which results in multiple networks of cellular wireless links and wired links being accessed at the same time. Therefore, the main link and switching between links are involved to ensure the continuity and stability of the network. At present, the existing technology usually directly uses wired links or cellular wireless links as the main links of the network. However, directly using wired links or cellular wireless links as the main links of the network results in the inability of multi-WAN communication equipment to perform network switching in a timely manner in different application scenarios, reducing the flexibility of network switching.

[0050] In order to solve the above technical problems, the embodiments of the present application propose the following technical ideas: Considering that multi-WAN communication devices cannot perform network switching in time in different application scenarios. The inventor thought of setting a variety of network link configuration types to adapt to multiple application scenarios, including: only configuring wired links, only configuring cellular wireless links, cellular wireless links first, and wired links first. Determine the network link configuration type set by the user end, and perform different network switching operations in different application scenarios corresponding to different network link configuration types, so that multi-WAN communication devices can flexibly switch network links in different application scenarios, thereby improving the flexibility of network switching.

[0051] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0052] Figure 2 A flowchart of a network switching method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:

[0053] S20: Receive network link configuration data sent by the user terminal; wherein the network link configuration data includes a network link configuration type.

[0054] The network link configuration data is obtained by configuring the user end according to the usage scenario of multiple WAN communication devices.

[0055] In this embodiment, the network link configuration types include: configuring only wired links, configuring only cellular wireless links, giving priority to cellular wireless links, and giving priority to wired links.

[0056] In this embodiment, if the network link configuration type is to configure only wired links, step S201 is executed; if the network link configuration type is to configure only cellular wireless links, step S202 is executed; if the network link configuration type is cellular wireless links first, step S203 is executed; if the network link configuration type is wired links first, step S204 is executed.

[0057] S201: When the network link configuration type is to configure only the wired link, if the wired link is connected, the wired link is used.

[0058] Optionally, if the multi-WAN communication device is located in an area without 4G or 5G signal coverage, the satellite signal is good and it is necessary to access the wired satellite network to ensure normal service. At this time, the user end needs to set the network link configuration type to only configure the wired link, and only needs to detect whether the wired link is connected. If the wired link is connected, normal data service is carried out; if the wired link is not connected, the abnormal recovery process of the wired link is attempted, such as redialing and checking the physical connection.

[0059] Optionally, the connectivity of the wired link may be detected by pinging a server or the like.

[0060] S202: When the network link configuration type is to configure only the cellular wireless link, perform the following steps.

[0061] Specifically, step S202 includes S2021 to S2024:

[0062] S2021: Determine whether the cellular wireless link is connected.

[0063] S2022: If the cellular wireless link is connected, use the cellular wireless link.

[0064] S2023: If the cellular wireless link is not connected, determine whether to allow WIFI to switch to STA mode based on the network link configuration data.

[0065] S2024: If the WIFI is allowed to switch to the STA mode, obtain available WIFI within the preset network service range, and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected.

[0066] Among them, when the network link configuration type is to configure only the cellular wireless link, the specific operation will be described in detail in the subsequent embodiments.

[0067] S203: When the network link configuration type is cellular wireless link priority, perform the following steps.

[0068] Specifically, step S203 includes S2031 to S2033:

[0069] S2031: Determine whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty.

[0070] S2032: If the signal-to-noise ratio threshold and the reference signal received power threshold are both empty, determine whether the cellular wireless link is connected.

[0071] Sa: If the cellular wireless link is connected, use the cellular wireless link;

[0072] Sb: If the cellular wireless link is not connected but the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, it is switched to the cellular wireless link again;

[0073] S2033: If both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty, determining whether the cellular wireless link in the current network service area meets the usage conditions;

[0074] Sc: If satisfied, use the cellular wireless link in the current network service area;

[0075] Sd: If not, the network will be switched to the cellular wireless link corresponding to the adjacent network service area that meets the usage conditions.

[0076] Among them, when the network link configuration type is cellular wireless link priority, the specific operation will be described in detail in the subsequent embodiments.

[0077] S204: When the network link configuration data is wired link priority, perform the following steps.

[0078] Specifically, step S204 includes S2041 to S2043:

[0079] S2041: Determine whether there is preset positioning area data in the network link configuration data;

[0080] S2042: If the preset positioning area data does not exist in the network link configuration data, determine whether the wired link is connected;

[0081] Se: If the wired link is connected, use the wired link;

[0082] Sf: If the wired link is not connected but the cellular wireless link is connected, the network is switched to the cellular wireless link; when the wired link is connected, it is switched to the wired link again;

[0083] S2043: If there is preset positioning area data in the network link configuration data, determine whether the current network service area is within the preset positioning area data range;

[0084] Sg: If it is not within the preset positioning area data range and the wired link is connected, the wired link is used;

[0085] Sh: If it is within the preset positioning area data range and the cellular wireless link is connected, the network will be switched to the cellular wireless link. If the cellular wireless link is not connected, it will be switched to the wired link.

[0086] Among them, when the network link configuration type is wired link priority, the specific operation will be described in detail in the subsequent embodiments.

[0087] In summary, the user terminal sets multiple network link configuration types including: only wired link configuration, only cellular wireless link configuration, cellular wireless link priority and wired link priority. By judging the network link configuration type set by the user terminal, the corresponding link connection is executed in different application scenarios corresponding to different network link configuration types, so that multiple WAN communication devices can flexibly switch network links in different application scenarios, thereby improving the flexibility of network switching.

[0088] Based on the above embodiment, in this embodiment, the processing process when the network link configuration type is to configure only a cellular wireless link is described in detail, as follows:

[0089] S501: When the network link configuration type is to configure only the cellular wireless link, perform the following steps.

[0090] Optionally, if multi-WAN communication devices are located in some remote areas, mountainous areas and islands where wired links are difficult to cover or the cost is too high, as well as some temporary places such as outdoor exhibitions and pop-up stores where wired links cannot be accessed, only cellular wireless links can be configured.

[0091] S5011: Determine whether the cellular wireless link is connected.

[0092] Optionally, the connectivity of the cellular wireless link may be detected by pinging a server or the like.

[0093] S5012: If the cellular wireless link is connected, use the cellular wireless link.

[0094] S5013: If the cellular wireless link is not connected, determine whether to allow WIFI to switch to STA mode according to the network link configuration data.

[0095] In this embodiment, the network link configuration data also includes configuration data on whether to allow WIFI to switch to STA mode.

[0096] Optionally, if the cellular wireless link is not connected, you need to consider whether to allow Wi-Fi to switch from the default AP (Access Point) mode to the STA (Station) mode. The Wi-Fi of gateway devices such as CPE (Customer Premises Equipment) works in AP mode by default.

[0097] Specifically, when the cellular wireless link is disconnected, abnormal recovery processing is performed on the cellular wireless link, so that when the cellular wireless link is connected, the network is switched to the cellular wireless link. Optionally, abnormal recovery processing includes but is not limited to SIM card switching, frequency locking, and restarting the protocol stack.

[0098] S5014: If the WIFI is allowed to switch to the STA mode, obtain available WIFI within the preset network service range, and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected.

[0099] In this embodiment, if the WIFI is allowed to switch to the STA mode, the working mode of the WIFI is switched to the STA mode, and the existing WIFI network nearby is searched and connected within the preset network service range. Optionally, if no available WIFI is obtained within the preset network service range, the network is switched to the cellular wireless network.

[0100] In summary, on the one hand, when multi-WAN communication equipment is located in some remote areas, mountainous areas and islands where wired links are difficult to cover or the cost is too high, configuring only cellular wireless links can reduce costs; on the other hand, when the cellular wireless link fails, allowing WIFI to switch to STA mode, the system can automatically switch to a nearby WIFI network, thereby ensuring the continuity of the network connection.

[0101] Based on the above embodiment, in this embodiment, the processing process when the network link configuration type is cellular wireless link priority is described in detail, as follows:

[0102] S601: When the network link configuration type is cellular wireless link priority, perform the following steps.

[0103] Specifically, step S601 includes S6011 to S6013:

[0104] S6011: Determine whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty.

[0105] In this embodiment, the network link configuration data also includes whether a signal-to-noise ratio threshold and a reference signal received power threshold are set.

[0106] Among them, Signal to Interference & Noise Ratio (SINR) is the signal to interference plus noise ratio, which is the ratio of the strength of the received useful signal to the strength of the received interference signal. Reference Signal Receiving Power (RSRP) is one of the key parameters for measuring the strength of wireless signals in LTE networks. It represents the average value of the signal power received on all resource elements carrying reference signals in a symbol.

[0107] S6012: If the signal-to-noise ratio threshold and the reference signal received power threshold are both empty, determine whether the cellular wireless link is connected.

[0108] Sa: If the cellular wireless link is connected, use the cellular wireless link;

[0109] Sb: If the cellular wireless link is not connected but the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, it is switched to the cellular wireless link again.

[0110] Specifically, when the cellular wireless link is not connected, abnormal recovery processing is performed on the cellular wireless link, so that when the cellular wireless link is connected, the network is switched to the cellular wireless link.

[0111] S6013: If both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty, determine whether the cellular wireless link in the current network service area meets the usage conditions.

[0112] Specifically, the signal-to-noise ratio and reference signal received power of the current network service area are obtained; if the signal-to-noise ratio is greater than the signal-to-noise ratio threshold, and the reference signal received power is greater than the reference signal received power threshold, it is determined that the cellular wireless link in the current network service area meets the usage conditions.

[0113] Sc: If satisfied, use the cellular wireless link in the current network service area;

[0114] Sd: If not, the network will be switched to the cellular wireless link corresponding to the adjacent network service area that meets the usage conditions.

[0115] Specifically, through frequency locking technology, the network is switched to a cellular wireless link corresponding to an adjacent network service area that meets the usage conditions.

[0116] In this embodiment, if the SINR of the current network service area is less than the SINR threshold, or the RSRP is less than the RSRP threshold, that is, the cellular wireless link of the current network service area does not meet the usage conditions, it will switch to an adjacent network service area where the SINR is greater than the SINR threshold and the RSRP is greater than the RSRP threshold.

[0117] In this embodiment, multi-WAN communication devices are stationed in a cell with good signal by default, but sometimes the load of the cell with good signal is too high, or the signal of the current network service area is similar to that of the adjacent network service area. At this time, it is necessary to switch to the cellular wireless link of the adjacent network service area to avoid network jumping.

[0118] In this embodiment, when the cellular wireless link of the current network service area does not meet the usage conditions, and the cellular wireless link corresponding to the adjacent network service area also does not meet the usage conditions, it is determined whether the wired link is connected; if the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, the network is switched to the cellular wireless link.

[0119] Optionally, if the cellular wireless links of the current network service area and the adjacent network service area do not meet the usage conditions, the frequency locking information is deleted.

[0120] In summary, when the network link configuration type is cellular wireless link priority, if there is no signal-to-noise ratio and reference signal receiving power threshold, when the cellular wireless link is not connected, it can switch to the wired link, further improving the flexibility of network switching; if there is a signal-to-noise ratio and reference signal receiving power threshold, it is possible to select a network service area with better signal quality for communication according to the signal-to-noise ratio and reference signal receiving power threshold, thereby improving the stability and reliability of the network connection.

[0121] Based on the above embodiment, in this embodiment, the processing process when the network link configuration type is wired link priority is introduced in detail, as follows:

[0122] S701: When the network link configuration data is wired link priority, perform the following steps.

[0123] Optionally, multi-WAN communication devices are used in the wilderness or in the vast ocean, where there is usually no 4G or 5G signal coverage, but the satellite signals and GPS reception signals in these places are very good. At this time, there is no need to use cellular wireless links, and wired links need to be accessed to ensure normal business. However, when multi-WAN communication devices move to areas covered by 4G or 5G signals, the satellite network fee is much higher than that of 4G and 5G, so wired links can be configured to take priority.

[0124] Specifically, step S701 includes S7011 to S7013:

[0125] S7011: Determine whether there is preset positioning area data in the network link configuration data.

[0126] In this embodiment, if the user terminal is configured with a positioning function, the network link configuration data also includes preset positioning area data.

[0127] Optionally, the preset positioning area data may be preset GPS area data.

[0128] S7012: If the preset positioning area data does not exist in the network link configuration data, determine whether the wired link is connected.

[0129] Se: If the wired link is connected, use the wired link.

[0130] Sf: If the wired link is not connected but the cellular wireless link is connected, the network is switched to the cellular wireless link; when the wired link is connected, it is switched to the wired link again;

[0131] S7013: If there is preset positioning area data in the network link configuration data, determine whether the current network service area is within the range of the preset positioning area data.

[0132] In this embodiment, the preset location area data is used to determine whether the multi-WAN communication device is located within a preset geographical range.

[0133] Sg: If it is not within the preset positioning area data range and the wired link is connected, the wired link is used.

[0134] Sh: If it is within the preset positioning area data range and the cellular wireless link is connected, the network will be switched to the cellular wireless link. If the cellular wireless link is not connected, it will be switched to the wired link.

[0135] In this embodiment, the multi-WAN communication device will check whether its current location is within the preset positioning area. If the multi-WAN communication device is not within the range of the preset positioning area data, the multi-WAN communication device will not detect the signal of the cellular wireless link and only use the wired link for communication; if the multi-WAN communication device moves within the range of the preset positioning area data, the device will detect the connectivity of the cellular wireless link. If the cellular wireless link is connected, it will switch to the cellular wireless link for communication; if the cellular wireless link is not connected, it will continue to use the wired link for communication.

[0136] Optionally, the latitude and longitude coordinates of the positioning signal may be compared to determine whether the positioning signal is within the range of the preset positioning area data.

[0137] In summary, when the network link configuration type is wired link priority, if there is no preset positioning area data, the cellular wireless link will not be detected, thereby avoiding unnecessary consumption of wireless resources.

[0138] If there is preset positioning area data, cellular wireless link detection can be enabled within the preset positioning area data range, providing flexible network configuration options, thereby improving the flexibility of network switching.

[0139] On the basis of the above embodiment, in this embodiment, when a cellular wireless link is involved in the network link configuration type, it is necessary to detect the signal quality to ensure that the multi-WAN communication devices can communicate normally, as described in detail as follows:

[0140] S801: Continuously monitor the signal quality of the current network service area and the signal quality of the adjacent network service areas.

[0141] In this embodiment, the signal quality of the current network service area and the adjacent network service areas is detected, including key indicators such as SINR and RSRP.

[0142] S802: Determine whether to use the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area according to the signal quality of the current network service area and the signal quality of the adjacent network service area.

[0143] Optionally, the signal quality of the current network service area and the adjacent network service area are compared. If the signal quality of the adjacent network service area is obviously better than that of the current network service area, the cellular wireless link of the adjacent network service area is used.

[0144] S803: Obtain an IP address after using a cellular wireless link in the current network service area or using a cellular wireless link in an adjacent network service area.

[0145] In this embodiment, after successfully connecting to the cellular network, the multi-WAN communication device will obtain a valid IP address from the DHCP server in the network. This IP address is the unique identifier of the multi-WAN communication device for data communication in the network.

[0146] S804: During the use of the cellular wireless link, communication is performed according to the IP address.

[0147] In summary, when the network link configuration type involves a cellular wireless link, the signal quality is detected to ensure that the multi-WAN communication device can always be connected to a network service area with good signal quality to ensure that the multi-WAN communication device can communicate normally.

[0148] Figure 3 A schematic diagram of the structure of a network switching device provided in an embodiment of the present application is shown in FIG. Figure 3As shown, the network switching device provided by this embodiment includes: a receiving module 10, a first network link judgment module 20, a second network link judgment module 30, a third network link judgment module 40 and a fourth network link judgment module 50. Among them, the second network link judgment module 30 includes: a first judgment unit 301, a first judgment unit 302 and a second judgment unit 303; the third network link judgment module 40 includes: a second judgment unit 401, a third judgment unit 402, a fourth judgment unit 403 and a fifth judgment unit 404; the fourth network link judgment module 50 includes: a third judgment unit 501, a sixth judgment unit 502, a seventh judgment unit 503, an eighth judgment unit 504 and a ninth judgment unit 505.

[0149] The receiving module 10 is used to receive the network link configuration data sent by the user terminal; wherein the network link configuration data includes the network link configuration type;

[0150] A first network link determination module 20, configured to use the wired link if the wired link is connected when the network link configuration type is to configure only the wired link;

[0151] The second network link judgment module 30 is used to perform the following steps when the network link configuration type is to configure only a cellular wireless link;

[0152] Wherein, the second network link determination module 30 includes:

[0153] The first determination unit 301 is used to determine whether the cellular wireless link is connected;

[0154] The first determination unit 302 is configured to use the cellular wireless link if the cellular wireless link is connected;

[0155] The second determination unit 303 is used to determine whether to allow WIFI to switch to STA mode according to the network link configuration data if the cellular wireless link is not connected; if the WIFI is allowed to switch to STA mode, obtain available WIFI within the preset network service range and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected;

[0156] The third network link judgment module 40 is used to perform the following steps when the network link configuration type is cellular wireless link priority;

[0157] The third network link determination module 40 includes:

[0158] The second judging unit 401 is used to judge whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty;

[0159] The third determination unit 402 determines whether the cellular wireless link is connected if the signal-to-noise ratio threshold and the reference signal received power threshold are both empty;

[0160] The fourth determination unit 403 is configured to use the cellular wireless link if the cellular wireless link is connected; switch the network to the wired link if the cellular wireless link is not connected but the wired link is connected; and switch to the cellular wireless link again when the cellular wireless link is connected;

[0161] The fifth determination unit 404 determines whether the cellular wireless link in the current network service area meets the use condition if both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty; if so, the cellular wireless link in the current network service area is used; if not, the network is switched to the cellular wireless link corresponding to the adjacent network service area that meets the use condition;

[0162] The fourth network link determination module 50 is configured to execute the following steps when the network link configuration data indicates that the wired link is prioritized;

[0163] The fourth network link determination module 50 includes:

[0164] The third determination unit 501 is used to determine whether there is preset positioning area data in the network link configuration data;

[0165] The sixth determination unit 502 is used to determine whether the wired link is connected if the preset positioning area data does not exist in the network link configuration data; if the wired link is connected, use the wired link; if the wired link is not connected but the cellular wireless link is connected, switch the network to the cellular wireless link; and switch to the wired link when the wired link is connected;

[0166] The seventh determination unit 503 is used to determine whether the current network service area is within the range of the preset positioning area data if there is preset positioning area data in the network link configuration data;

[0167] The eighth determination unit 504 is configured to use the wired link if the location is not within the preset positioning area data range and the wired link is connected;

[0168] The ninth determination unit 505 is configured to switch the network to the cellular wireless link if the network is within the preset positioning area data range and the cellular wireless link is connected, and then switch to the wired link if the cellular wireless link is not connected.

[0169] In a possible implementation, the fifth determination unit 404 is specifically used to: obtain the signal-to-noise ratio and the reference signal receiving power of the current network service area; if the signal-to-noise ratio is greater than the signal-to-noise ratio threshold, and the reference signal receiving power is greater than the reference signal receiving power threshold, it is determined that the cellular wireless link in the current network service area meets the usage conditions.

[0170] In a possible implementation, the network switching device also includes: a condition judgment module, which is used to judge whether the wired link is connected when the cellular wireless link in the current network service area does not meet the usage conditions and the cellular wireless link corresponding to the adjacent network service area also does not meet the usage conditions; if the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, the network is switched to the cellular wireless link again.

[0171] In a possible implementation, the network switching device further includes: a first switching module, configured to switch the network to a cellular wireless network if no available WIFI is obtained within a preset network service range.

[0172] In a possible implementation, the network switching device further includes: a second switching module, configured to perform abnormal recovery processing on the cellular wireless link when the cellular wireless link is not connected, so as to switch the network to the cellular wireless link when the cellular wireless link is connected.

[0173] In a possible implementation manner, the fifth determination unit 404 is specifically configured to: switch the network to a cellular wireless link corresponding to an adjacent network service area that meets the usage conditions through a frequency locking technology.

[0174] In a possible implementation, it also includes: continuously monitoring the signal quality of the current network service area and the signal quality of the adjacent network service area; judging whether to use the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area based on the signal quality of the current network service area and the signal quality of the adjacent network service area; obtaining an IP address after using the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area; and communicating according to the IP address during the use of the cellular wireless link.

[0175] The network switching device provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.

[0176] Figure 4 This is a schematic diagram of the structure of a multi-WAN communication device provided in an embodiment of the present application. Figure 4 As shown, the multi-WAN communication device provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the multi-WAN communication device also includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus 604.

[0177] In a specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above method.

[0178] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0179] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0180] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0181] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0182] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0183] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0184] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0185] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0186] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0187] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0188] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0189] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0190] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0191] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A network switching method, characterized in that: Applicable to multi-WAN communication equipment, including: Receiving network link configuration data sent by a user terminal; wherein the network link configuration data includes a network link configuration type; When the network link configuration type is to configure only a wired link, if the wired link is connected, the wired link is used; When the network link configuration type is to configure only a cellular wireless link, perform the following steps: Determining whether the cellular wireless link is connected; If the cellular wireless link is connected, using the cellular wireless link; If the cellular wireless link is not connected, determine whether to allow WIFI to switch to STA mode according to the network link configuration data; if WIFI is allowed to switch to STA mode, obtain available WIFI within the preset network service range, and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected; When the network link configuration type is cellular wireless link priority, the following steps are performed: Determine whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty; If the signal-to-noise ratio threshold and the reference signal received power threshold are both empty, determining whether the cellular wireless link is connected; If the cellular wireless link is connected, the cellular wireless link is used; if the cellular wireless link is not connected but the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, the network is switched to the cellular wireless link; If both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty, determining whether the cellular wireless link in the current network service area meets the use conditions; if so, using the cellular wireless link in the current network service area; if not, switching the network to a cellular wireless link corresponding to an adjacent network service area that meets the use conditions; When the network link configuration data indicates that wired links are prioritized, the following steps are performed: Determining whether there is preset positioning area data in the network link configuration data; If the preset positioning area data does not exist in the network link configuration data, determining whether the wired link is connected; if the wired link is connected, using the wired link; if the wired link is not connected but the cellular wireless link is connected, switching the network to the cellular wireless link; and switching to the wired link again when the wired link is connected; If the preset positioning area data exists in the network link configuration data, determining whether the current network service area is within the range of the preset positioning area data; If it is not within the preset positioning area data range and the wired link is connected, use the wired link; If it is within the preset positioning area data range and the cellular wireless link is connected, the network is switched to the cellular wireless link, and when the cellular wireless link is not connected, it is switched to the wired link.

2. The method according to claim 1, characterized in that The determining whether the cellular wireless link in the current network service area meets the usage conditions includes: Obtain the signal-to-noise ratio and reference signal received power of the current network service area; If the signal-to-noise ratio is greater than the signal-to-noise ratio threshold, and the reference signal received power is greater than the reference signal received power threshold, it is determined that the cellular wireless link in the current network service area meets the usage conditions.

3. The method according to claim 1, characterized in that Also includes: When the cellular wireless link of the current network service area does not meet the use condition, and the cellular wireless link corresponding to the adjacent network service area also does not meet the use condition, determining whether the wired link is connected; If the wired link is connected, the network is switched to the wired link; when the cellular wireless link is connected, the network is switched to the cellular wireless link.

4. The method according to claim 1, characterized in that: Also includes: If no available WIFI is obtained within the preset network service range, the network is switched to the cellular wireless network.

5. The method according to claim 1, characterized in that Also includes: When the cellular wireless link is not connected, abnormal recovery processing is performed on the cellular wireless link, so that when the cellular wireless link is connected, the network is switched to the cellular wireless link.

6. The method according to claim 1, characterized in that The switching of the network to a cellular wireless link corresponding to an adjacent network service area that meets the usage conditions includes: Through frequency locking technology, the network is switched to the cellular wireless link corresponding to the adjacent network service area that meets the usage conditions.

7. The method according to any one of claims 1 to 6, characterized in that: Also includes: Continuously monitor the signal quality of the current network service area and the signal quality of adjacent network service areas; According to the signal quality of the current network service area and the signal quality of the adjacent network service area, determining whether to use the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area; After using the cellular wireless link of the current network service area or the cellular wireless link of the adjacent network service area, obtaining an IP address; During use of the cellular wireless link, communication is performed based on the IP address.

8. A network switching device, characterized in that: Applicable to multi-WAN communication equipment, including: A receiving module, configured to receive network link configuration data sent by a user terminal; wherein the network link configuration data includes a network link configuration type; A first network link determination module, configured to use the wired link if the wired link is connected when the network link configuration type is to configure only the wired link; A second network link judgment module is used to perform the following steps when the network link configuration type is to configure only a cellular wireless link; Wherein, the second network link determination module includes: A first determination unit, configured to determine whether the cellular wireless link is connected; A first determination unit, configured to use the cellular wireless link if the cellular wireless link is connected; The second determination unit is used to determine whether to allow WIFI to switch to STA mode according to the network link configuration data if the cellular wireless link is not connected; if the WIFI is allowed to switch to STA mode, obtain available WIFI within a preset network service range and switch the network to the available WIFI; and switch to the cellular wireless link when the cellular wireless link is connected; A third network link judgment module is used to perform the following steps when the network link configuration type is cellular wireless link priority; Wherein, the third network link determination module includes: A second judgment unit is used to judge whether the signal-to-noise ratio threshold and the reference signal received power threshold in the network link configuration data are empty; A third determination unit, if the signal-to-noise ratio threshold and the reference signal received power threshold are both empty, determines whether the cellular wireless link is connected; a fourth determination unit, configured to use the cellular wireless link if the cellular wireless link is connected; switch the network to the wired link if the cellular wireless link is not connected but the wired link is connected; and switch to the cellular wireless link again when the cellular wireless link is connected; A fifth determination unit, if both the signal-to-noise ratio threshold and the reference signal received power threshold are not empty, determines whether the cellular wireless link of the current network service area meets the use condition; if so, uses the cellular wireless link of the current network service area; if not, switches the network to the cellular wireless link corresponding to the adjacent network service area that meets the use condition; The fourth network link judgment module is used to execute the following steps when the network link configuration data indicates that the wired link is prioritized; Wherein, the fourth network link determination module includes: A third determination unit, used to determine whether there is preset positioning area data in the network link configuration data; a sixth determination unit, configured to determine whether the wired link is connected if the preset positioning area data does not exist in the network link configuration data; if the wired link is connected, use the wired link; if the wired link is not connected but the cellular wireless link is connected, switch the network to the cellular wireless link; and switch to the wired link again when the wired link is connected; a seventh determination unit, configured to determine whether the current network service area is within the range of the preset positioning area data if the preset positioning area data exists in the network link configuration data; an eighth determination unit, configured to use the wired link if the location is not within the preset positioning area data range and the wired link is connected; The ninth determination unit is used to switch the network to the cellular wireless link if it is within the preset positioning area data range and the cellular wireless link is connected, and then switch to the wired link when the cellular wireless link is not connected.

9. A multi-WAN communication device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.