Network switching methods, devices, network equipment and storage media

By establishing 5G and WIFI network tunnels and utilizing a handover evaluation model, automatic handover between 5G and WIFI networks was achieved, resolving the terminal disconnection problem caused by 5G network failures, improving network stability, and reducing operation and maintenance costs.

CN116963216BActive Publication Date: 2026-11-17CHINA MOBILE GROUP ZHEJIANG +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210820520.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2026-11-17
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

In 5G industrial numerical control data transmission, network failures cause a large number of terminals to drop offline. Existing technologies rely on manual network switching, which is inefficient, slow, and costly, and increases the number of potential failure points for small switches.

Method used

Establish 5G network tunnels and WIFI network tunnels, automatically monitor network quality through a preset handover evaluation model, realize automatic handover between 5G network and WIFI network, and use the routing processor to control the switch to switch traffic.

Benefits of technology

It enables automatic switching between 5G and WIFI networks, improving the stability and reliability of network equipment terminals, avoiding frequent switching, and reducing operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116963216B_ABST
    Figure CN116963216B_ABST
Patent Text Reader

Abstract

This invention discloses a network handover method, apparatus, network device, and storage medium. The method includes: establishing a 5G network tunnel and a Wi-Fi network tunnel respectively, and connecting the 5G network tunnel and the Wi-Fi network tunnel to a first switch; monitoring the 5G network tunnel, and according to a preset handover evaluation model, when an anomaly occurs in the 5G network tunnel, switching the traffic of the 5G network tunnel to the Wi-Fi network tunnel through the first switch; and forwarding the traffic of the 5G network tunnel or the Wi-Fi network tunnel to the application terminal. Through the above method, this invention achieves automatic handover between the 5G network and the existing Wi-Fi network using a preset handover evaluation model, forming a reliable data transmission path, thereby overcoming the problem of service interruption caused by 5G single-access environment outages.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network communication technology, and specifically to a network switching method, apparatus, device, and storage medium. Background Technology

[0002] 5G industrial CNC data can currently be transmitted via 5G private networks. However, unlike the one-to-one access of traditional wired networks, the failure of wireless base stations may cause a batch of terminals in the factory to go offline, thus preventing the industrial CNC data from being uploaded.

[0003] To ensure that CNC operations can still be used even if the 5G network is interrupted or of poor quality, maintenance personnel typically manually switch the terminal's network access to Wi-Fi after assessment. Since Wi-Fi access requires a small downstream switch, the overall maintenance cost increases accordingly.

[0004] Therefore, current methods for 5G industrial CNC cross-network backup have the following drawbacks: network switching relies on manual intervention, resulting in low efficiency; network switching is delayed, meaning it cannot be implemented immediately when network problems occur; costs are significantly increased, and the number of potential failure points for small switches is also increased. Therefore, a new switching scheme is needed to address these technical problems. Summary of the Invention

[0005] In view of the above problems, the present invention is proposed to provide a network switching method, apparatus, device and storage medium that overcomes or at least partially solves the above problems.

[0006] According to one aspect of the present invention, a network handover method is provided, the network handover method comprising:

[0007] Establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively;

[0008] The 5G network tunnel is monitored, and according to the preset handover evaluation model, when the 5G network tunnel is abnormal, the traffic of the 5G network tunnel is switched to the WIFI network tunnel through the first switch.

[0009] The traffic from the 5G network tunnel or the WIFI network tunnel is forwarded to the application terminal.

[0010] Optionally, the 5G network tunnel being abnormal refers to the 5G network tunnel being inactive or the service quality exceeding a threshold.

[0011] Optionally, after switching the traffic of the 5G network tunnel to the WIFI network tunnel through the first switch, the method further includes:

[0012] If the 5G network tunnel is detected to be active or the service quality is restored to normal, the traffic of the WIFI network tunnel will be switched back to the 5G network tunnel.

[0013] Optionally, the switching evaluation model includes:

[0014] Set quality thresholds for the 5G network tunnel and the WIFI network tunnel respectively, the quality thresholds including time limit thresholds and / or packet loss thresholds;

[0015] The number of times C, where the 5G network tunnel and the WIFI network tunnel exceed the quality threshold within a preset time period T, is recorded. The over-limit frequency F is then C / T, where the over-limit frequency of the 5G network tunnel is F. 5G The over-limit frequency of the WIFI network tunnel is F. WIFI ;

[0016] If within the observation period T', where T' < T, F 5G If C is greater than the first preset threshold, then a switching decision is initiated: if C WIFI =0, and / or, F WIFI <F 5G If the traffic in the 5G network tunnel is switched to the WIFI network tunnel, then the traffic in the 5G network tunnel will be switched to the WIFI network tunnel; otherwise, the next observation period T' will begin.

[0017] While switching the traffic of the 5G network tunnel to the WIFI network tunnel, a switchback assessment and judgment is initiated.

[0018] Optionally, assume n is a natural number less than or equal to N, T is a time interval divisible by N, and the cut-back rule is C. 5G =0, and / or, F 5G <F WIFI The specific steps for initiating a switchback assessment include:

[0019] Step 1: Set n=1. If the switchback rule is met within 1T / N seconds, the traffic destined for the WIFI network tunnel is switched back to the 5G network tunnel, and n remains unchanged. Otherwise, the traffic is not switched back, and n==n+1, n≤N. Continue to evaluate and judge the switchback according to the switchback rule within nT / N seconds.

[0020] Step 2: After the traffic is switched back to the 5G network tunnel, continue monitoring. If a switch occurs again within nT / N seconds, set n = n + 1, n ≤ N, and continue to perform a switchback assessment and judgment according to the switchback rules within nT / N seconds.

[0021] Optionally, the decision to enable the switchback assessment also includes:

[0022] When n = N, if C is within time interval T 5G If n = 0, then the traffic will be switched back to the 5G network tunnel and n = 1; otherwise, it will not be switched back.

[0023] Optionally, the handover evaluation model is set in the routing processor, which controls the first switch and the first switch is connected to the server.

[0024] According to another aspect of the present invention, a network switching device is provided, the network switching device comprising:

[0025] The tunnel establishment module is adapted to establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively.

[0026] The tunnel switching module is adapted to monitor the 5G network tunnel. According to the preset switching evaluation model, when there is an anomaly in the 5G network tunnel, the traffic of the 5G network tunnel is switched to the WIFI network tunnel through the first switch.

[0027] The traffic forwarding module is adapted to forward the traffic of the 5G network tunnel or the WIFI network tunnel to the terminal.

[0028] According to another aspect of the present invention, a communication device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;

[0029] The memory is used to store at least one executable instruction, which causes the processor to perform the operation corresponding to the above-described network switching method.

[0030] According to another aspect of the present invention, a computer storage medium is provided, the storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the network switching method described above.

[0031] In summary, the above-mentioned technical solution of the present invention achieves automatic switching between 5G networks and existing WIFI networks through steps such as establishing network tunnels and pre-setting handover evaluation models, forming a reliable data transmission path, thereby overcoming the problem of service interruption caused by 5G single access environment interruption.

[0032] Furthermore, through a unique algorithm design for switching evaluation models, frequent switching between 5G and WIFI networks is avoided, thereby improving the stability and reliability of network equipment terminals.

[0033] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0034] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0035] Figure 1 A flowchart of a network switching method according to an embodiment of the present invention is shown;

[0036] Figure 2 A schematic diagram of the structure of a network device terminal provided in an embodiment of the present invention is shown;

[0037] Figure 3 An operational diagram of a network device terminal provided in an embodiment of the present invention is shown;

[0038] Figure 4 A schematic diagram of the structure of a network switching device according to an embodiment of the present invention is shown;

[0039] Figure 5 A schematic diagram of the structure of a network device provided in an embodiment of the present invention is shown. Detailed Implementation

[0040] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0041] Figure 1 A flowchart of an embodiment of the network switching method of the present invention is shown, which is applied to a network device terminal. It is particularly applicable to 5G industrial CNC inter-network backup in various industrial scenarios, combined with… Figure 2 The network device terminal integrated structure shown has a routing processor in the control and management plane, and input ports, switching structure, 5G module and WIFI module respectively in the data forwarding plane. Under the control of the routing processor, traffic switching between the two modules is realized through a preset switching model built into the switching structure.

[0042] like Figure 1 As shown, the network switching method includes the following steps:

[0043] Step 110: Establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively.

[0044] The handover evaluation model is set in the routing processor, which controls the first switch and is connected to the server. The composition of each network tunnel and the connections between the first switch are described below. Figure 3 As shown. Based on the above operating logic, establishing WIFI network tunnels and 5G network tunnels respectively can provide the prerequisites for subsequent handover steps.

[0045] It's important to note that Wi-Fi is a revolutionary advancement over WLAN (Wireless Local Area Network) technology, also based on the 802.11 protocol, and is considered the most mature wireless LAN technology. 5G (5th Generation Mobile Communication Technology), on the other hand, evolved from analog communication, GSM (Global System for Mobile Communications), and 2 / 3 / 4G mobile networks. It guarantees real-time, latency-free voice calls and uninterrupted handover between base stations. Therefore, Wi-Fi originates from local area networks, while 5G originates from communication networks; their fundamental natures differ, resulting in different performance characteristics. Thus, given the current application scenarios where both coexist, switching to Wi-Fi is a viable option when the 5G network fails.

[0046] Step 120: Monitor the 5G network tunnel. According to the preset switching evaluation model, when the 5G network tunnel is abnormal, switch the traffic of the 5G network tunnel to the WIFI network tunnel through the first switch.

[0047] After establishing tunnel connections with the first switch via the 5G module and the WIFI module respectively, heartbeat detection is performed inside the tunnel. When a fault or interruption is detected in the 5G network tunnel, the traffic of the 5G network tunnel can be switched to the WIFI network tunnel using the first switch.

[0048] It should be noted that the network device in this invention uses 5G network as the traffic source. Therefore, the traffic can be switched back to the 5G network in a timely manner by preset time or conditions.

[0049] Step 130: Forward the traffic of the 5G network tunnel or the WIFI network tunnel to the application terminal.

[0050] Traffic can be forwarded to various application terminals using terminal devices, including servers, PCs, laptops, mobile phones, and other devices that need to connect to the network.

[0051] In a preferred embodiment, the 5G network tunnel being abnormal means that the 5G network tunnel is not alive or the service quality exceeds a threshold.

[0052] Among them, network service quality is measured by using detection and statistical techniques to collect network information such as response time, network jitter, and packet loss rate. The quality is expressed in terms of quantity. For example, latency thresholds and packet loss thresholds can be set. If the response time or packet loss rate exceeds the above thresholds, it indicates that the network quality is unqualified and cannot meet the requirements for normal transmission.

[0053] In a preferred embodiment, after switching the traffic of the 5G network tunnel to the WIFI network tunnel via the first switch, the method further includes: if the 5G network tunnel is detected to be active again or the service quality returns to normal, then switching the traffic of the WIFI network tunnel back to the 5G network tunnel. That is, the decision to switch traffic back to the 5G network tunnel is determined by detecting whether the 5G network tunnel has returned to normal.

[0054] In one or more embodiments, the switching evaluation model includes:

[0055] Quality thresholds are set for the 5G network tunnel and the WIFI network tunnel respectively. The quality thresholds include a time limit threshold X and a packet loss threshold Y.

[0056] The number of times C, where the 5G network tunnel and the WIFI network tunnel exceed the quality threshold within a preset time period T, is recorded. The over-limit frequency F is then C / T, where the over-limit frequency of the 5G network tunnel is F. 5G The over-limit frequency of the WIFI network tunnel is F. WIFI .

[0057] Specifically, based on the time limit threshold X and the packet loss threshold Y, the over-limit frequency F is generated, including F0. X - 5G F Y - 5G F X - WIFI F Y - WIFI .

[0058] If within the observation period T', where T' < T, F 5GIf C is greater than the first preset threshold, then a switching decision is initiated: if C WIFI =0, and / or, F WIFI <F 5G If the traffic in the 5G network tunnel is switched to the WIFI network tunnel, then the traffic will be switched to the WIFI network tunnel; otherwise, the next observation period T' will begin. In an illustrative example, if within T / 10 seconds (T = 100 * M seconds, M ∈ N+), F > T / 100 times, where F is preferably the over-limit frequency within T', then a switching initiation determination will be made.

[0059] Then, while switching the traffic of the 5G network tunnel to the WIFI network tunnel, a switchback assessment is initiated.

[0060] It should be noted that when comparing the magnitudes of out-of-limit frequencies, F can be used separately. X-5G With F X-WIFI Comparison, F Y-5G With F Y-WIFI Comparison, when F X-5G With F Y-5G Both are better than F X-WIFI With F Y-WIFI When large, or C WIFI =0, then switch to the WIFI network tunnel.

[0061] In one embodiment, assuming n is a natural number less than or equal to N, T is a time period divisible by N, and the cut-back rule is C. 5G =0, and / or, F 5G <F WIFI The specific steps for initiating a switchback assessment include:

[0062] Step 1: Set n=1. If the switchback rule is met within 1T / N seconds, where F is the over-limit frequency within 1T / N seconds, then the traffic sent to the WIFI network tunnel will be switched back to the 5G network tunnel. At this time, n remains unchanged.

[0063] Otherwise, without switching back, the traffic remains in the Wi-Fi network tunnel, and n = n + 1, n ≤ N, continuing for nT / N seconds (when n = n + 1), according to the above switching back rule (i.e., C). 5G =0, and / or, F 5G <F WIFI Perform a cutback assessment and judgment.

[0064] Step 2: After the switchback, i.e., the traffic is on the 5G network tunnel, continue monitoring. If another switch occurs within nT / N seconds, i.e. the traffic switches to the WIFI network tunnel, then set n = n+1, n < N, and continue to evaluate and judge the switchback according to the above switchback rules within nT / N seconds.

[0065] It should be noted that as n increases, the time interval between each judgment also increases. At this point, F is the over-limit frequency within nT / N seconds.

[0066] Continue the above-mentioned cutback evaluation and judgment until n = N, if C is within nT / N seconds. 5G If the value is 0, switch back to the 5G network tunnel and set n=1; otherwise, do not switch back and continue to determine C within nT / N seconds. 5G Is it equal to 0?

[0067] It should be noted that if the network switches to a 5G network tunnel, the system will enter an observation period T' to determine the switchover; otherwise, the system will continue to make a decision based on the switchback logic.

[0068] The following example illustrates how to switch from a 5G network tunnel to a Wi-Fi network tunnel when the 5G network quality is poor:

[0069] If the preset time T = 300 seconds, and the frequency of exceeding the limit F > 3 times within T / 10 = 30 seconds, a switchover start judgment will be made.

[0070] When C WIFI =0|F WIFI <F 5G If so, switch to WIFI and perform a switchback assessment;

[0071] If nT / 5=within 60 seconds, C 5G =0 or F 5G <F WIFI If the signal is switched, then a switch will be made. However, if the signal is switched back to WIFI within nT / 5 = 60 (n = 1) seconds after the switch, then n = n + 1 = 2; until n = 5, if C is switched back to WIFI within nT / 5 = 300 seconds... 5G If n = 0, then n is set to 1 and the network is switched to 5G.

[0072] By continuously extending the time frame before making a judgment, excessive switching judgments and the number of actual possible switchings are avoided, which could lead to frequent switching. Thus, the dynamic switching evaluation module introduces a penalty mechanism to effectively achieve reliable and stable switching and better data channel selection.

[0073] Figure 4 A schematic diagram of an embodiment of the network switching device of the present invention is shown. Figure 4 As shown, the device 400 includes:

[0074] The tunnel establishment module 410 is adapted to establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively.

[0075] The tunnel switching module 420 is adapted to monitor the 5G network tunnel. According to a preset switching evaluation model, when the 5G network tunnel is abnormal, the traffic of the 5G network tunnel is switched to the WIFI network tunnel through the first switch.

[0076] The traffic forwarding module 430 is adapted to forward the traffic of the 5G network tunnel or the WIFI network tunnel to the application terminal.

[0077] In summary, the above technical solution, through modules such as establishing network tunnels and pre-setting handover evaluation models, realizes automatic handover between 5G networks and existing WIFI networks, forming a reliable data transmission path, thereby overcoming the problem of service interruption caused by 5G single-access environment interruption.

[0078] In one embodiment, the 5G network tunnel being abnormal means that the 5G network tunnel is not alive or the service quality exceeds a threshold.

[0079] In one embodiment, the tunnel switching module 420 is further adapted to:

[0080] If the 5G network tunnel is detected to be active or the service quality is restored to normal, the traffic of the WIFI network tunnel will be switched back to the 5G network tunnel.

[0081] In one embodiment, the handover evaluation model in the tunnel handover module 420 includes:

[0082] Set quality thresholds for the 5G network tunnel and the WIFI network tunnel respectively, the quality thresholds including time limit thresholds and / or packet loss thresholds;

[0083] The number of times C, where the 5G network tunnel and the WIFI network tunnel exceed the quality threshold within a preset time period T, is recorded. The over-limit frequency F is then C / T, where the over-limit frequency of the 5G network tunnel is F. 5G The over-limit frequency of the WIFI network tunnel is F. WIFI ;

[0084] If within the observation period T', where T' < T, F 5G If C is greater than the first preset threshold, then a switching decision is initiated: if C WIFI =0, and / or, F WIFI <F 5G If the traffic in the 5G network tunnel is switched to the WIFI network tunnel, then the traffic in the 5G network tunnel will be switched to the WIFI network tunnel; otherwise, the next observation period T' will begin.

[0085] While switching the traffic of the 5G network tunnel to the WIFI network tunnel, a switchback assessment and judgment is initiated.

[0086] Furthermore, assuming n is a natural number less than or equal to N, and T is a time interval divisible by N, the cut-back rule is C. 5G =0, and / or, F 5G <F WIFI The specific steps for initiating a switchback assessment include:

[0087] Step 1: Set n = 1. If the switchback rule is met within 1T / N seconds, the traffic destined for the WIFI network tunnel is switched back to the 5G network tunnel, and n remains unchanged. Otherwise, the traffic is not switched back, and n = n + 1 is set, n ≤ N. Continue to evaluate and judge the switchback according to the switchback rule within nT / N seconds.

[0088] Step 2: After the traffic is switched back to the 5G network tunnel, continue monitoring. If a switch occurs again within nT / N seconds, set n = n + 1, n ≤ N, and continue to evaluate and judge the switchback according to the switchback rules within nT / N seconds.

[0089] In one embodiment, the decision to enable switchback further includes:

[0090] Continue the above-mentioned cutback assessment and judgment until n = N, if C occurs within time period T. 5G If n = 0, then the traffic will be switched to the 5G network tunnel; otherwise, no switch will be made, and n = 1 will be set.

[0091] In a preferred embodiment, the handover evaluation model in the tunnel handover module 420 is set in the routing processor, which controls the first switch and the first switch is connected to the server.

[0092] This invention provides a non-volatile computer storage medium storing at least one executable instruction that can execute the network switching method in any of the above method embodiments.

[0093] Figure 5 The diagram shows a structural schematic of an embodiment of the network device of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the network device.

[0094] like Figure 5 As shown, the network device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.

[0095] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508. Communication interface 504 is used to communicate with other network elements, such as clients or other servers. Processor 502 executes program 510, specifically performing the relevant steps described in the network switching method embodiment for network devices.

[0096] Specifically, program 510 may include program code that includes computer operation instructions.

[0097] Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The network device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.

[0098] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0099] Specifically, program 510 can be used to cause processor 502 to perform operations corresponding to the network switching method embodiments described above.

[0100] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0101] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0102] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.

[0103] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0104] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.

[0105] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0106] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A network handover method, the network handover method comprising: Establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively; The 5G network tunnel is monitored, and according to the preset handover evaluation model, when the 5G network tunnel is abnormal, the traffic of the 5G network tunnel is switched to the WIFI network tunnel through the first switch. Forward the traffic from the 5G network tunnel or the WIFI network tunnel to the application terminal; The switching evaluation model includes: Set quality thresholds for the 5G network tunnel and the WIFI network tunnel respectively, the quality thresholds including time limit thresholds and / or packet loss thresholds; Record the number of times C that the 5G network tunnel and the WIFI network tunnel exceed the quality threshold within a preset time period T. Then the over-limit frequency F is C / T, where the over-limit frequency of the 5G network tunnel is... The over-limit frequency of the WIFI network tunnel is ; If within a time observation period T', wherein T' < T, greater than a first preset threshold, then start switching determination: if = 0, and / or, then switch the traffic of the 5G network tunnel to the WIFI network tunnel, otherwise enter the next observation time period T'; While switching the traffic of the 5G network tunnel to the WIFI network tunnel, a switchback assessment and judgment is initiated. Assuming n is a natural number less than or equal to N, T is a time period that can be divided by N; the cutback rule is ; the starting cutback evaluation judgment specifically includes: Step 1: Set n=1. If the switchback rule is met within 1T / N seconds, the traffic destined for the WIFI network tunnel is switched back to the 5G network tunnel, and n remains unchanged. Otherwise, the traffic is not switched back, and n=n+1, n≤N. Continue to evaluate and judge the switchback according to the switchback rule within nT / N seconds. Step 2: After the traffic is switched back to the 5G network tunnel, continue monitoring. If a switch occurs again within nT / N seconds, set n=n+1, n≤N, and continue to evaluate and judge the switchback according to the switchback rules within nT / N seconds. When n = N, if in T time period then cut back the traffic to 5G network tunnel, and set n = 1; otherwise, do not cut back.

2. The network handover method of claim 1, wherein, The 5G network tunnel being abnormal refers to the 5G network tunnel being not alive or the service quality exceeding the threshold.

3. The network handover method of claim 1, wherein, After switching the traffic of the 5G network tunnel to the WIFI network tunnel through the first switch, the process further includes: If the 5G network tunnel is detected to be active or the service quality is restored to normal, the traffic of the WIFI network tunnel will be switched back to the 5G network tunnel.

4. The network handover method according to any one of claims 1 to 3, characterized by, The handover evaluation model is set in the routing processor, which controls the first switch and the first switch is connected to the server.

5. A network switching device, characterized in that, The network switching device includes: The tunnel establishment module is adapted to establish a 5G network tunnel and a WIFI network tunnel respectively, and connect the 5G network tunnel and the WIFI network tunnel to the first switch respectively. The tunnel switching module is adapted to monitor the 5G network tunnel. According to the preset switching evaluation model, when there is an anomaly in the 5G network tunnel, the traffic of the 5G network tunnel is switched to the WIFI network tunnel through the first switch. A traffic forwarding module is adapted to forward traffic from the 5G network tunnel or the WIFI network tunnel to the terminal; The switching evaluation model includes: Set quality thresholds for the 5G network tunnel and the WIFI network tunnel respectively, the quality thresholds including time limit thresholds and / or packet loss thresholds; record the number C of times that the 5G network tunnel and the WIFI network tunnel exceed the quality threshold value within a preset time period T, and the overrun frequency F is C / T, wherein the overrun frequency of the 5G network tunnel is , and the overrun frequency of the WIFI network tunnel is . If within a time observation period T', wherein T' < T, is greater than a first preset threshold, then a switching decision is initiated: if = 0, and / or, then switching the traffic of the 5G network tunnel to the WIFI network tunnel, otherwise entering the next observation time period T'. While switching the traffic of the 5G network tunnel to the WIFI network tunnel, a switchback assessment and judgment is initiated. Assuming n is a natural number less than or equal to N, T is a time period that can be divided by N; the cutback rule is ; the starting cutback evaluation judgment specifically includes: Step 1: Set n=1. If the switchback rule is met within 1T / N seconds, the traffic destined for the WIFI network tunnel is switched back to the 5G network tunnel, and n remains unchanged. Otherwise, the traffic is not switched back, and n=n+1, n≤N. Continue to evaluate and judge the switchback according to the switchback rule within nT / N seconds. Step 2: After the traffic is switched back to the 5G network tunnel, continue monitoring. If a switch occurs again within nT / N seconds, set n=n+1, n≤N, and continue to evaluate and judge the switchback according to the switchback rules within nT / N seconds. When n = N, if in T time period then cut back the traffic to 5G network tunnel, and set n = 1; otherwise, do not cut back.

6. A communication device, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation corresponding to the network switching method as described in any one of claims 1-4.

7. A computer storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the network switching method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Network switching device and method

    CN105554831A

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

    CN112333800A

  • Dual-card switching system and method

    CN112995070A

  • Network connection method and device

    CN113015226A

  • Data packet forwarding method and apparatus, and network device

    WO2021259352A1