Method for building automatic switching based on 5G private network and traditional MPLS side network
By deploying the dual-link structure and intelligent routing technology on the 5G private network and MPLS side in the enterprise network, automatic switching is achieved, which solves the problem of network interruption caused by a single link failure and improves network reliability and data transmission efficiency.
Patent Information
- Application Number
- CN202410888344.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-04
AI Technical Summary
The existing network architecture relies too much on a single link for data transmission, resulting in network interruptions caused by equipment failures, line interruptions, or natural disasters, seriously affecting enterprise operations and customer services.
An automatic switching method based on 5G private network and traditional MPLS side network is adopted. By deploying a dual-link structure at each branch access point, CPE is used for intelligent routing decision-making and link monitoring to achieve automatic switching of active and backup links. Ensure data is transmitted along the optimal path.
It improves the overall performance and reliability of the network, ensures business continuity and data security, reduces user-perceived interruption time, and optimizes service quality through dynamic tuning algorithms and link type weights.
Smart Images

Figure CN118449899B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method for building automatic switching based on a 5G private network and a traditional MPLS side network. Background Art
[0002] Commercial or enterprise customers usually need to ensure business continuity and stability. Therefore, they have very high requirements for network availability. With the widespread application of technologies such as big data, cloud computing, remote collaboration, and high-definition video conferencing in enterprises, the demand for network bandwidth is increasing. At the same time, for scenarios such as real-time transactions, online collaboration, and remote control, enterprise customers expect the network to provide a stable network architecture to ensure stable data transmission.
[0003] However, the current network architecture relies too much on a single link for data transmission. Once this link fails due to equipment failure, line interruption, natural disasters, human error, etc., the entire network or key business systems will instantly lose connection, seriously affecting business operations and customer service. In view of this, a method for automatic switching based on 5G private network and traditional MPLS side network is provided. Summary of the invention
[0004] The purpose of the present invention is to provide a method for automatic switching based on 5G private network and traditional MPLS side network, so as to solve the problem of over-reliance on a single link for data transmission proposed in the above background technology. Once this link fails due to equipment failure, line interruption, natural disasters, human operational errors, etc., the entire network or key business system will lose connection instantly, seriously affecting business operations and customer service.
[0005] To achieve the above object, the present invention aims to provide a method for automatic switching based on 5G private network and traditional MPLS side network, comprising the following steps:
[0006] S1. Deploy 5G enterprise private networks and MPLS private lines at each branch access point to build a dual-link structure based on 4 / 5G cellular networks and MPLS private lines.
[0007] S2. All branch access points access the dual-link network through CPE. As a network edge device, CPE is responsible for local user access and intelligent routing decisions between dual links. It plans independent IP address pools for the 5G business private network and the MPLS side to ensure that the address space does not conflict. It ensures that each branch access point has a unique and clear network identity on the dual link and adapts to the specific needs of each branch access point.
[0008] S3. Configure routing policies on CPEs. The routing policies define routing priority rules and set the priorities of primary and backup links according to business needs. This ensures that data traffic is transmitted along the primary link first during normal operation and can be quickly switched to the backup link when the primary link fails.
[0009] S4, CPE uses intelligent routing technology, which monitors the network status in real time based on a dynamic tuning algorithm, dynamically adjusts the routing table, and ensures that data is transmitted along the optimal path;
[0010] S5. Deploy a link monitoring system on the CPE. The link monitoring system detects the occurrence of faults in real time and responds quickly based on automatic failover technology.
[0011] Among them, the automatic failover technology uses the CPE static routing link detection strategy to continuously detect the connectivity, packet loss, and delay indicators of the link between the 4 / 5G cellular network and the MPLS dedicated line;
[0012] S6. When a failure of the main link is detected, the link monitoring system automatically switches to the backup link based on the CPE static routing link detection algorithm, configures dual routing for redundant backup, and automatically switches to the pre-set backup line when the main line is interrupted to ensure business continuity and data security.
[0013] As a further improvement of the technical solution, in S1, the 5G business-enterprise private network performs data transmission based on 5G mobile communication technology;
[0014] In addition, 5G enterprise-specific networks are based on network slicing technology and use virtualization and software-defined networking (SDN) technologies to configure and manage network resources.
[0015] As a further improvement of the technical solution, in S1, the MPLS dedicated line is a virtual private network (VPN) built based on MPLS technology, and the MPLS dedicated line is composed of routers and switches supporting the MPLS protocol, which are used to set routing tables and label switching to support fast data transmission and intelligent routing selection;
[0016] Among them, MPLS dedicated line uses MPLS protocol and dynamic routing protocol to achieve real-time routing and link backup; MPLS protocol is used for label encapsulation and decapsulation of data packets, and dynamic routing protocols (OSPF, BGP) ensure the update of routing tables and the selection of the optimal path.
[0017] As a further improvement of the technical solution, in S3, the routing strategy adopts a hybrid strategy based on link stability, link health check and quality of service (QoS);
[0018] The specific mixed strategy is:
[0019] A1. Configure the dynamic routing OSPF protocol on the CPE and assign a lower metric value to the primary link to ensure that it is selected as the forwarding path first.
[0020] A2. Continuously monitor the packet loss rate, latency, and bandwidth utilization performance indicators of 4 / 5G enterprise private networks and MPLS private lines. When any indicator of the main link exceeds the preset threshold, the link is downgraded and the backup link is upgraded to the main link. Deploy a link monitoring system on the CPE and link it with the routing protocol. When the monitoring system detects an abnormality in the main link, adjust the metric value or preference value through the routing protocol to switch traffic to the backup link. After recovery, automatically re-evaluate and adjust the link priority.
[0021] A3. Use DSCP to mark different levels of service traffic, configure multiple policy routes on the CPE, each route corresponds to a traffic level, set the policy route corresponding to key service traffic to prioritize the primary link, and other levels of traffic can be flexibly set according to actual conditions; configure the CBWFQ queue scheduling algorithm on the CPE to ensure that key service traffic is sent first when the link is congested; CBWFQ (Class-Based Weighted Fair Queueing) is a queue scheduling algorithm that allows bandwidth to be allocated based on traffic categories (such as different levels of service traffic distinguished by DSCP marking) and gives priority to key service traffic when the link is congested;
[0022] The specific algorithm flow is:
[0023] A31. Classify the packets received by the inbound interface using the Class-Map rule and assign them to the corresponding queues.
[0024] A32. For interfaces with priority queues, traffic in these queues is processed first;
[0025] A33. For common CBWFQ queues, bandwidth is allocated according to the weight ratio of each queue. When congestion occurs, weighted polling scheduling is performed on each queue according to the weight to ensure that high-critical business traffic is sent first;
[0026] A34. If the traffic of a queue does not reach its allocated guaranteed bandwidth, the remaining bandwidth will be allocated to other queues according to the weight ratio to maximize bandwidth utilization;
[0027] A35. When all queues have no data packets to be sent, the link bandwidth is released for use by other interfaces;
[0028] A4. Based on the priority of link stability, combined with real-time link health check results and QoS policies, dynamically adjust the path through which data packets are transmitted in the network. When the main link fails or performance is severely degraded, immediately switch to the backup link. After the main link is restored, re-evaluate and adjust the link priority based on the current link status and business needs.
[0029] As a further improvement of the technical solution, in S4, the dynamic tuning algorithm involves the expression:
[0030] Take 5G business-enterprise private network as a candidate path, denoted as ; Take the MPLS dedicated line as another candidate path, denoted as ;
[0031] For each path, there are the following performance indicators: bandwidth (Unit: Mbps), Delay (Unit: ms) and packet loss rate ;
[0032] For each performance indicator, preset weights ,in, and , indicating the relative importance of the indicator in the total cost calculation;
[0033] Considering the characteristics of the dual-link structure, the link type weight is introduced and link availability weight , link type weight Used to reflect the business preference for 4 / 5G cellular networks and MPLS dedicated lines, link availability weight It is used to reflect the current connectivity status of the link; the optimal data transmission path is:
[0034] According to the preset weight and link type weight , link availability weight In order to quantify the network characteristics, we measure the frequency of sudden packet loss events in the network (i.e., the probability of a large number of packet losses in a short period of time) and the severity of continuous packet loss (i.e., the stable level of packet loss over a longer time scale), and introduce the burst packet loss rate and sustained packet loss rate , calculate the path The comprehensive cost :
[0035] In the formula, Indicates the path The overall cost of Indicates the normalized value of the burst packet loss rate; Indicates the normalized value of the continuous packet loss rate; Indicates the path The link type score of Indicates the path Link availability score; Indicates the value of the bandwidth after normalization, which falls into the interval [0,1]; Indicates the path The delay is the time it takes for a data packet to pass through the path from the source node. The time required for transmission to the target node is one of the key indicators for measuring network performance; Indicates the preset weight of bandwidth in the total cost calculation; Indicates the preset weight of delay in the total cost calculation; Indicates the preset weight of packet loss rate in the total cost calculation; Indicates the preset weight of burst packet loss rate in the total cost calculation; represents the preset weight of the sustained packet loss rate in the total cost calculation, and ;
[0036] in, In the formula, Indicates the path The original bandwidth value; Represents the minimum value of all path bandwidths; Indicates the maximum value of all path bandwidths; the above is the calculation path bandwidth The specific expression of the normalized value, the maximum and minimum normalization linearly scales the bandwidth values of all paths according to the minimum and maximum values to ensure that the normalized The value is in the interval [0,1]. The closer the value is to 1, the higher the path bandwidth is relative to all paths. The closer the value is to 0, the lower the path bandwidth is.
[0037] Similarly, calculate the path The comprehensive cost ;contrast and , and select the path with the lowest comprehensive cost as the optimal data transmission path.
[0038] As a further improvement of the present technical solution, in S5, the link monitoring system includes a link monitoring module, a fault triggering module, a fault transfer module, and a fault recovery and switchback module.
[0039] As a further improvement of the technical solution, the CPE static routing link detection strategy is specifically as follows:
[0040] S7.1. Continuously monitor the connectivity, packet loss rate and delay performance indicators of the network link through the link monitoring module;
[0041] S7.2, when the performance data collected by the link monitoring module exceeds the preset threshold, the fault trigger module determines whether there is a link fault according to the predefined fault trigger condition. Once the trigger condition is met, the fault trigger module determines that the main link is faulty and triggers the subsequent failover process; otherwise, it means that the current link status is normal and no failover operation is required;
[0042] S7.3. After receiving the fault trigger signal, the failover module immediately executes the preset failover conditions and switches the data traffic from the faulty link to the backup link to maintain business continuity;
[0043] S7.4. When the original main link returns to normal working state after being repaired, the fault recovery and switchback module is responsible for detecting this change and performing corresponding switchback operations according to the preset fault recovery and switchback conditions.
[0044] As a further improvement of the technical solution, in S7.2, the fault triggering condition is specifically:
[0045] ;
[0046] In the formula, Indicates link status;
[0047] Indicates the packet loss rate;
[0048] Indicates delay; Indicates that a fault occurs at the physical layer or data link layer of the interface, causing the interface to be unable to maintain a valid connection; Indicates the packet loss rate threshold; Indicates the maximum allowed value of link delay;
[0049] Check whether the status of the main link interface is "DOWN". "DOWN" means that a fault has occurred in the physical layer or data link layer of the link.
[0050] Check the packet loss rate on the main link. When the packet loss rate exceeds the preset threshold , it is believed that there is a serious fault in the link;
[0051] Check whether the delay of the main link exceeds the preset maximum allowable threshold of Y milliseconds. When the link delay exceeds the threshold of Y milliseconds, it will affect the performance of applications with high real-time requirements;
[0052] When the main link status is DOWN and the packet loss rate exceeds the threshold , and the delay exceeds Y milliseconds, it indicates that the main link may be faulty.
[0053] As a further improvement of the technical solution, in S7.3, the preset failover condition is specifically:
[0054] S9.1. Execution command, setting the priority of the backup link to high, making it the new primary link;
[0055] S9.2. Execution Command, update the routing table, modify the traffic entry originally pointing to the primary link to point to the backup link, and the data packets in the network will automatically be transferred to the backup link according to the updated routing table;
[0056] S9.3. Execution Command to activate the backup path and enable the backup link as the primary data path to transmit data. At this point, all data to be transmitted will be transmitted through the backup link to ensure that the service is not affected during the failure of the primary link.
[0057] As a further improvement of the technical solution, in S7.4, the fault recovery and switchback conditions are specifically:
[0058] S10.1. When the status of the primary link is restored and meets the health standard, the action is triggered, triggering the fault recovery and switchback operation;
[0059] S10.2. Execution The command sets the priority of the primary link to high, making it the preferred data transmission path again.
[0060] The command updates the routing table and changes the traffic entry that previously pointed to the backup link back to the main link that has been restored to normal.
[0061] S10.3. Execution Command to deactivate the backup path and resume data transmission through the primary link.
[0062] Compared with the prior art, the present invention has the following beneficial effects:
[0063] 1. In the method of automatic switching based on 5G private network and traditional MPLS side network, a dual-link structure based on 5G business private network and MPLS private line is constructed, combining the high speed, low latency, network slicing characteristics of 5G private network with the stable and efficient transmission capability of MPLS private line to build a dual-link architecture and improve the overall network performance and reliability;
[0064] At the same time, intelligent routing technology is used to monitor the network status in real time based on a dynamic tuning algorithm, and the routing table is dynamically adjusted to ensure that data is transmitted along the optimal path, avoiding congestion or inefficient links, and ensuring that data reaches the destination quickly and accurately, thereby improving the overall network transmission efficiency.
[0065] 2. In the method of building automatic switching based on 5G private network and traditional MPLS side network, a link monitoring system is deployed to monitor the link status in real time, trigger failover based on preset thresholds, realize automatic switching of primary and backup links, and ensure business continuity and data security;
[0066] It also adopts a dynamic tuning algorithm, introduces link type weights and link availability weights, and quantifies burst packet loss rate and continuous packet loss rate, and considers and weights the two types of packet loss separately, so that the cost function can more accurately reflect the path quality, which helps to more accurately evaluate the path, optimize service quality, refine fault location and prevention, and make more reasonable routing choices.
[0067] 3. In the method of automatic switching based on 5G private network and traditional MPLS side network, automatic failover technology is used to monitor network status and continuity, detect failures in real time and respond quickly. Once a failure of the main link is detected, the system can automatically switch to the backup link to ensure business continuity and data security. In addition, automatic failover technology can quickly restore network connections and redistribute traffic to reduce user-perceived interruption time. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 The figure is a flow chart of the overall method of the present invention. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0070] Example:
[0071] See also Figure 1 As shown, this embodiment provides a method for building automatic switching based on a 5G private network and a traditional MPLS side network, including the following steps:
[0072] S1. Deploy 5G enterprise private networks and MPLS private lines at each branch access point to build a dual-link structure based on 4 / 5G cellular networks and MPLS private lines.
[0073] Among them, 5G business-enterprise private networks are based on 5G mobile communication technology for data transmission;
[0074] 5G private network for business enterprises provides higher bandwidth and lower network latency. It can support data-intensive applications such as large-scale data transmission, high-definition video streaming, and real-time interaction, meeting the needs of enterprises for high speed and real-time performance. At the same time, 5G private network for business enterprises also supports network slicing technology, which can divide network resources to meet the specific needs of different businesses and provide customized network services. 5G private network for business enterprises uses wireless connections, gets rid of the limitations of traditional wired networks, and has higher flexibility. It can cover a wide area and support access by mobile devices. It is suitable for various scenarios such as temporary office spaces, mobile vehicles, and IoT devices. The MPLS network can adjust the network architecture and configuration according to the needs of the enterprise, according to different geographical locations or business needs, and has high adaptability.
[0075] Moreover, 5G private networks for businesses are based on network slicing technology, and use virtualization and software-defined networking (SDN) technology to configure and manage network resources. Network slicing technology is used to ensure that each network has its own dedicated bandwidth, computing power, storage space and other resources to avoid mutual interference; virtualization technology supports dynamic allocation and recycling of resources, and can adjust the allocation of virtual resources in real time according to changes in business load to ensure that resources always match business needs; SDN controllers can monitor network status in real time, including traffic, performance indicators, device status, etc., and automatically adjust network resource allocation according to predefined policies or machine learning algorithms;
[0076] Among them, network slicing technology allows the creation of multiple logically independent network "slices" on a shared physical network infrastructure, and each slice can provide a dedicated network environment for a specific enterprise or business type. This means that different enterprises or business departments can obtain network resources, performance characteristics and security levels that match their specific needs, achieving effective resource isolation and customized services;
[0077] Virtualization and software-defined networking (SDN) technologies enable network functions to run in virtual machines (VMs) or containers by abstracting, pooling, and automatically managing hardware resources, thereby achieving rapid deployment, elastic scaling, and flexible migration of network functions. In 5G private networks for businesses and enterprises, virtualization technology enables network slices to be quickly created, adjusted, or destroyed when needed to respond to changes in business needs or emergencies, greatly improving network resource utilization and business response speed.
[0078] Rapid deployment and adjustment based on business needs, self-healing capabilities, and the ability to automatically detect and respond to network failures; this elasticity and reliability ensures network stability and availability;
[0079] In this embodiment, the MPLS dedicated line is a virtual private network (VPN) built based on MPLS technology, and the MPLS dedicated line is composed of routers and switches supporting the MPLS protocol, which are used to set routing tables and label switching to support fast data transmission and intelligent routing selection;
[0080] Among them, MPLS dedicated line uses MPLS protocol and dynamic routing protocol to achieve real-time routing and link backup. MPLS protocol is used for label encapsulation and decapsulation of data packets, and dynamic routing protocols (OSPF, BGP) ensure the update of routing tables and the selection of the optimal path;
[0081] Furthermore, the MPLS protocol is a technology that introduces a label mechanism into an IP network to implement efficient, flexible, and scalable network services.
[0082] S2. All branch access points access the dual-link network through CPE. As a network edge device, CPE is responsible for local user access and intelligent routing decisions between dual links. It plans independent IP address pools for the 5G business private network and the MPLS side to ensure that the address space does not conflict. It ensures that each branch access point has a unique and clear network identity on the dual link and adapts to the specific needs of each branch access point.
[0083] S3. Configure routing policies on CPEs. The routing policies define routing priority rules and set the priorities of primary and backup links according to business needs. This ensures that data traffic is transmitted along the primary link first during normal operation and can be quickly switched to the backup link when the primary link fails.
[0084] In this embodiment, the routing strategy adopts a hybrid strategy based on link stability, link health check, and quality of service (QoS);
[0085] The specific mixed strategy is:
[0086] A1. Prioritize link stability. Configure the dynamic routing OSPF protocol on the CPE and assign a lower metric value to the primary link to ensure that it is selected as the forwarding path first.
[0087] A2. Link health check: continuously monitor the packet loss rate, latency, and bandwidth utilization performance indicators of 4 / 5G enterprise private networks and MPLS private lines. When any indicator of the primary link exceeds the preset threshold, the link is downgraded and the backup link is upgraded to the primary link. A link monitoring system is deployed on the CPE and linked with the routing protocol. When the monitoring system detects an abnormality in the primary link, the metric value or preference value is adjusted through the routing protocol to switch traffic to the backup link. After recovery, the link priority is automatically re-evaluated and adjusted.
[0088] A3. Priority setting for quality of service (QoS). Use DSCP to mark different levels of service traffic. Configure multiple policy routes on the CPE. Each route corresponds to a traffic level. The policy route corresponding to key service traffic is set to prioritize the main link. Other levels of traffic can be flexibly set according to actual conditions. Configure the CBWFQ queue scheduling algorithm on the CPE to ensure that key service traffic is sent first when the link is congested. CBWFQ (Class-Based Weighted Fair Queueing) is a queue scheduling algorithm that allows bandwidth to be allocated based on traffic categories (such as different levels of service traffic distinguished by DSCP marking) and gives priority to key service traffic when the link is congested.
[0089] The specific algorithm flow is:
[0090] A31. Classify the packets received by the inbound interface using the Class-Map rule and assign them to the corresponding queues.
[0091] A32. For interfaces with priority queues, traffic in these queues is processed first;
[0092] A33. For common CBWFQ queues, bandwidth is allocated according to the weight ratio of each queue. When congestion occurs, weighted polling scheduling is performed on each queue according to the weight to ensure that high-critical business traffic is sent first;
[0093] A34. If the traffic of a queue does not reach its allocated guaranteed bandwidth, the remaining bandwidth will be allocated to other queues according to the weight ratio to maximize bandwidth utilization;
[0094] A35. When all queues have no data packets to be sent, the link bandwidth is released for use by other interfaces;
[0095] A4. Comprehensive decision-making and switching mechanism, based on the priority of link stability, combined with real-time link health check results and QoS policies, dynamically adjusts the path through which data packets are transmitted in the network. When the main link fails or its performance is severely degraded, it immediately switches to the backup link. After the main link is restored, the link priority is re-evaluated and adjusted according to the current link status and business needs.
[0096] S4. CPE uses intelligent routing technology. Intelligent routing technology monitors the network status in real time based on dynamic tuning algorithms (including bandwidth utilization, delay, and packet loss rate), dynamically adjusts the routing table, and ensures that data is transmitted along the optimal path. It analyzes the network topology, measures the link quality in real time, and considers multiple factors (such as bandwidth, delay, congestion, etc.) to find the optimal data transmission path. This intelligent routing selection can improve network throughput, reduce delay, and enhance network stability and reliability.
[0097] Furthermore, the specific steps involved in dynamically adjusting the routing table are:
[0098] For data flows with a specific destination or service type, modify or add routing table entries to point to the link interface currently evaluated as optimal, which involves modifying the target network prefix, next hop address, and possible metrics (such as number of hops, priority, bandwidth weight, etc.) to reflect the new routing decision. For static routing or policy routing scenarios, it only needs to be updated on the local CPE.
[0099] The updated routing table takes effect immediately, and subsequent packet forwarding will follow the new routing rules to ensure that traffic is diverted to the link that is evaluated as the best.
[0100] In this embodiment, the dynamic tuning algorithm involves the expression:
[0101] Take 5G enterprise private network as a candidate path, denoted as ; Take the MPLS dedicated line as another candidate path, denoted as ;
[0102] For each path, there are the following performance indicators: bandwidth (Unit: Mbps), Delay (Unit: ms) and packet loss rate ;
[0103] For each performance indicator, preset weights ,in, and , indicating the relative importance of the indicator in the total cost calculation;
[0104] Considering the characteristics of the dual-link structure, the link type weight is introduced and link availability weight , link type weight Used to reflect the business preference for 4 / 5G cellular networks and MPLS dedicated lines, link availability weight It is used to reflect the current connectivity status of the link; the optimal data transmission path is:
[0105] According to the preset weight and link type weight , link availability weight In order to quantify the network characteristics, we measure the frequency of sudden packet loss events in the network (i.e., the probability of a large number of packet losses in a short period of time) and the severity of continuous packet loss (i.e., the stable level of packet loss over a longer time scale), and introduce the burst packet loss rate and sustained packet loss rate , calculate the path The comprehensive cost :
[0106] In the formula, Indicates the path The overall cost of Indicates the normalized value of the burst packet loss rate; Indicates the normalized value of the continuous packet loss rate; Indicates the path The link type score of Indicates the path Link availability score; Indicates the value of the bandwidth after normalization, which falls into the interval [0,1]; Indicates the path The delay is the time it takes for a data packet to pass through the path from the source node. The time required for transmission to the target node is one of the key indicators for measuring network performance; Indicates the preset weight of bandwidth in the total cost calculation; Indicates the preset weight of delay in the total cost calculation; Indicates the preset weight of packet loss rate in the total cost calculation; Indicates the preset weight of burst packet loss rate in the total cost calculation; represents the preset weight of the sustained packet loss rate in the total cost calculation, and ;
[0107] in, In the formula, Indicates the path The original bandwidth value; Represents the minimum value of all path bandwidths; Indicates the maximum value of all path bandwidths; the above is the calculation path bandwidth The specific expression of the normalized value, the maximum and minimum normalization linearly scales the bandwidth values of all paths according to the minimum and maximum values to ensure that the normalized The value is in the interval [0,1]. The closer the value is to 1, the higher the path bandwidth is relative to all paths. The closer the value is to 0, the lower the path bandwidth is.
[0108] Similarly, calculate the path The comprehensive cost ;contrast and , and select the path with the lowest comprehensive cost as the optimal data transmission path.
[0109] In this embodiment, different packet loss modes (burst packet loss and continuous packet loss) that affect user experience and network stability are distinguished, so that the cost function can more accurately reflect the true quality of the path; burst packet loss is a one-time or short-term large-scale packet loss phenomenon caused by network instantaneous congestion, equipment failure, physical interference, etc.; and continuous packet loss is a packet loss phenomenon that persists for a long time and has a certain regularity, which is caused by problems such as long-term insufficient network resources, poor link quality, and equipment performance bottlenecks. Distinguishing between these two types of packet loss can more finely characterize the actual state of the network and help to more accurately evaluate the path quality.
[0110] At the same time, distinguishing between burst packet loss and continuous packet loss helps network operation and maintenance personnel locate the cause of the fault more quickly and accurately. At the same time, it can provide a more accurate description of the network status, which is conducive to targeted optimization of service quality, refined fault location and prevention, and optimized routing decisions, thereby improving the overall performance of the network and user experience; and in the dynamic routing algorithm, distinguishing between burst packet loss and continuous packet loss can enable the algorithm to more accurately select the optimal path. A path with a low overall packet loss rate but high burst packet loss may not be suitable for applications with high real-time requirements, while a path with a slightly higher overall packet loss rate but no obvious burst packet loss may be more suitable. By separately considering and weighting the two types of packet loss, it can better meet actual business needs and make more reasonable routing choices.
[0111] S5. Deploy a link monitoring system on the CPE. The link monitoring system is based on automatic failover technology. The automatic failover technology uses the CPE static routing link detection strategy to continuously detect the connectivity, packet loss, and delay indicators of the link between the 4 / 5G cellular network and the MPLS dedicated line, detect the occurrence of a fault in real time, and respond quickly.
[0112] In this embodiment, the link monitoring system includes a link monitoring module, a fault triggering module, a fault transfer module, and a fault recovery and switchback module;
[0113] The CPE static routing link detection strategy is as follows:
[0114] S7.1. Continuously monitor the connectivity, packet loss rate and delay performance indicators of the network link through the link monitoring module;
[0115] S7.2, when the performance data collected by the link monitoring module exceeds the preset threshold, the fault trigger module determines whether there is a link fault according to the predefined fault trigger condition. Once the trigger condition is met, the fault trigger module determines that the main link is faulty and triggers the subsequent failover process; otherwise, it means that the current link status is normal and no failover operation is required;
[0116] Furthermore, the fault triggering conditions are specifically as follows:
[0117] ;
[0118] In the formula, Indicates link status;
[0119] Indicates the packet loss rate;
[0120] Indicates delay; Indicates that a fault occurs at the physical layer or data link layer of the interface, causing the interface to be unable to maintain a valid connection; Indicates the packet loss rate threshold; Indicates the maximum allowed value of link delay.
[0121] Check whether the status of the main link interface is "DOWN". "DOWN" means that a fault has occurred in the physical layer or data link layer of the link.
[0122] Check the packet loss rate on the main link. When the packet loss rate exceeds the preset threshold , it is believed that there is a serious fault in the link;
[0123] Check whether the delay of the main link exceeds the preset maximum allowable threshold of Y milliseconds. When the link delay exceeds the threshold of Y milliseconds, it will affect the performance of applications with high real-time requirements;
[0124] When the main link status is DOWN and the packet loss rate exceeds the threshold , and the delay exceeds Y milliseconds, it indicates that the main link may be faulty.
[0125] S7.3. After receiving the fault trigger signal, the failover module immediately executes the preset failover conditions and switches the data traffic from the faulty link to the backup link to maintain business continuity;
[0126] The preset failover conditions are as follows:
[0127] S9.1. Execution command, setting the priority of the backup link to high, making it the new primary link;
[0128] S9.2. Execution Command, update the routing table, modify the traffic entry originally pointing to the primary link to point to the backup link, and the data packets in the network will automatically be transferred to the backup link according to the updated routing table;
[0129] S9.3. Execution Command to activate the backup path and enable the backup link as the primary data path to transmit data. At this point, all data to be transmitted will be transmitted through the backup link to ensure that the service is not affected during the failure of the primary link;
[0130] In this embodiment, the commands involved in the Boolean expression are embedded in the corresponding script, configuration file or API call as a basis for determining whether to trigger a failover;
[0131] This is an operation instruction for setting the priority of the backup link, which is used to set the backup link in the network environment ( ) has a priority of " ", the backup link is given a high priority, so that it is qualified to become the main link. Once the original main link fails or does not meet the conditions for continuing to carry data flow, the backup link will be automatically or selected by the system as the new main link according to its newly set high priority, and take on the main data transmission task;
[0132] Indicates that the existing routing table ( ) to adapt to the needs of primary and backup link switching, ( ) represents the original primary link, and in the update operation, it is the same as ( ) The relevant routing entries will be modified, that is, the traffic originally directed to the primary link will be directed to the backup link, which involves replacing or updating the IP address, interface, and next hop information associated with the primary link. This ensures that even if the primary link fails, network traffic can still be seamlessly switched to the backup link according to the latest routing information and continue to flow, maintaining business connectivity;
[0133] The command to activate the backup data path is to formally enable the backup link that has been set as a high priority and updated as a new forwarding path in the routing table, so that it can start to carry actual business data transmission. As a function call instruction, its core intention is to start the backup path to enter the working state. The "backup path" here refers to the complete data transmission path including the backup link and related network devices, protocol configurations, etc.
[0134] S7.4, when the original main link returns to normal working state after being repaired, the fault recovery and switchback module is responsible for detecting this change and performing corresponding switchback operations according to the preset fault recovery and switchback conditions;
[0135] The specific fault recovery and switchback conditions are as follows:
[0136] S10.1. When the main link status is restored and meets the health standard, the action is triggered, triggering the fault recovery and switchback operation; that is,
[0137] ;
[0138] Only when the primary link meets the following conditions at the same time: good connectivity (status is "UP"), packet loss rate is less than the threshold ( ) and latency is within the ideal range ( ) When these three health criteria are met at the same time, the primary link is considered to have been fully restored, thus triggering the subsequent switchback operation;
[0139] S10.2. Execution The command sets the priority of the primary link to high, making it the preferred data transmission path again.
[0140] The command updates the routing table and changes the traffic entry that previously pointed to the backup link back to the main link that has been restored to normal.
[0141] S10.3. Execution Command to deactivate the backup path and resume data transmission through the primary link.
[0142] S6. When a failure of the main link is detected, the link monitoring system automatically switches to the backup link based on the CPE static routing link detection algorithm, configures dual routing for redundant backup, and automatically switches to the pre-set backup line when the main line is interrupted to ensure business continuity and data security;
[0143] Specifically, redundant backup refers to planning an independent IP address pool for each link on the CPE device to ensure that the address space does not conflict, so that the main link and the backup link are logically separated at the network level and can process data traffic independently; by configuring the routing policy, different priorities are defined for the main link and the backup link, and data packets are preferentially transmitted through the main link with a high priority. Only when the main link fails or its performance drops below the preset threshold will the automatic switching mechanism be triggered to direct the traffic to the backup link.
[0144] Both 5G enterprise private networks and MPLS networks have high bandwidth and low latency, enabling fast and stable data transmission. This is very important for business applications, large-scale data transmission, video conferencing and other scenarios that require high bandwidth and real-time performance. In terms of line backup, multiple lines provide redundant backup, so that even if a line fails, the network connection can still be maintained, ensuring business continuity and reliability.
[0145] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A method for automatic switching based on a 5G private network and a traditional MPLS side network, characterized in that: The following steps are involved: S1. Deploy 5G enterprise private networks and MPLS private lines at each branch access point to build a dual-link structure based on 4 / 5G cellular networks and MPLS private lines. S2. All branch access points access the dual-link network through CPE, and independent IP address pools are planned for the 5G business private network and the MPLS side respectively; S3. Configure a routing policy on the CPE. The routing policy defines the routing priority rules and sets the priority of the primary and backup links according to business requirements. S4, CPE uses intelligent routing technology, which monitors the network status in real time based on a dynamic tuning algorithm, dynamically adjusts the routing table, and ensures that data is transmitted along the optimal path; S5. Deploy a link monitoring system on the CPE. The link monitoring system detects the occurrence of faults in real time and responds quickly based on automatic failover technology. Among them, the automatic failover technology uses the CPE static routing link detection strategy to continuously detect the connectivity, packet loss, and delay indicators of the link between the 4 / 5G cellular network and the MPLS dedicated line; S6. When a failure of the main link is detected, the link monitoring system automatically switches to the backup link based on the CPE static routing link detection algorithm, configures dual routing for redundant backup, and automatically switches to the pre-set backup link when the main line is interrupted; In S4, the dynamic tuning algorithm involves the expression: Take 5G enterprise private network as a candidate path, denoted as ; Take the MPLS dedicated line as another candidate path, denoted as ; For each path, there are the following performance indicators: bandwidth ,Delay and packet loss rate ; For each performance indicator, preset weights ,in, and ; Introducing link type weights and link availability weight , then the optimal data transmission path is: According to the preset weight and link type weight , link availability weight , and introduces the burst packet loss rate and sustained packet loss rate , calculate the path The comprehensive cost : ; In the formula, Indicates the path The overall cost of Indicates the normalized value of the burst packet loss rate; Indicates the normalized value of the continuous packet loss rate; Indicates the path The link type score of Indicates the path Link availability score of Indicates the normalized value of bandwidth; Indicates the path Delays; Indicates the preset weight of bandwidth in the total cost calculation; Indicates the preset weight of delay in the total cost calculation; Indicates the preset weight of packet loss rate in the total cost calculation; Indicates the preset weight of burst packet loss rate in the total cost calculation; Indicates the preset weight of the sustained packet loss rate in the total cost calculation; in, ; In the formula, Indicates the path The original bandwidth value; Represents the minimum value of all path bandwidths; Indicates the maximum value of all path bandwidths; Similarly, calculate the path The comprehensive cost ; contrast and , and select the path with the lowest comprehensive cost as the optimal data transmission path; In S5, the link monitoring system includes a link monitoring module, a fault triggering module, a fault transfer module, and a fault recovery and switchback module; The CPE static routing link detection strategy is specifically as follows: S7.
1. Continuously monitor the connectivity, packet loss rate and delay performance indicators of the network link through the link monitoring module; S7.2, when the performance data collected by the link monitoring module exceeds the preset threshold, the fault trigger module determines whether there is a link fault according to the predefined fault trigger condition. Once the trigger condition is met, the fault trigger module determines that the main link has a fault and triggers the subsequent fault transfer process; S7.
3. After receiving the fault trigger signal, the failover module immediately executes the preset failover conditions and switches the data traffic from the faulty link to the backup link to maintain business continuity; S7.4, when the original main link returns to normal working state after being repaired, the fault recovery and switchback module is responsible for detecting this change and performing corresponding switchback operations according to the preset fault recovery and switchback conditions; In S7.2, the fault triggering conditions are specifically: ; In the formula, Indicates link status; Indicates the packet loss rate; Indicates delay; Indicates that a fault occurs at the physical layer or data link layer of the interface, causing the interface to be unable to maintain a valid connection; Indicates the packet loss rate threshold; Indicates the maximum allowed value of link delay; In S7.3, the preset failover conditions are specifically: S9.
1. Execution command, setting the priority of the backup link to high, making it the new primary link; S9.
2. Execution Command, update the routing table, modify the traffic entry originally pointing to the primary link to point to the backup link; S9.
3. Execution command, activate the standby path, enable the standby link as the main data path to transmit data; In S7.4, the fault recovery and switchback conditions are specifically as follows: S10.
1. When the status of the primary link is restored and meets the health standard, the action is triggered, triggering the fault recovery and switchback operation; S10.
2. Execution The command sets the priority of the primary link to high, making it the preferred data transmission path again. The command updates the routing table and changes the traffic entry that previously pointed to the backup link back to the main link that has been restored to normal. S10.
3. Execution Command to deactivate the backup path and resume data transmission through the primary link.
2. The method for automatic switching based on 5G private network and traditional MPLS side network construction according to claim 1 is characterized in that: In S1, the 5G business private network performs data transmission based on 5G mobile communication technology; In addition, 5G enterprise-specific networks are based on network slicing technology and use virtualization and software-defined network technologies to configure and manage network resources.
3. The method for automatic switching based on 5G private network and traditional MPLS side network construction according to claim 2 is characterized in that: In S1, the MPLS dedicated line is a virtual private network built based on MPLS technology, and the MPLS dedicated line is composed of routers and switches supporting the MPLS protocol, which are used to set routing tables and label switching to support fast data transmission and intelligent routing selection; Among them, MPLS dedicated line uses MPLS protocol and dynamic routing protocol to achieve real-time routing and link backup.
4. The method for automatic switching based on 5G private network and traditional MPLS side network construction according to claim 3 is characterized in that: In S3, the routing strategy adopts a hybrid strategy based on link stability, link health check and service quality; The specific hybrid strategy is: A1. Configure the dynamic routing OSPF protocol on the CPE and assign a lower metric value to the primary link to ensure that it is selected as the forwarding path first. A2. Continuously monitor the packet loss rate, latency, and bandwidth utilization performance indicators of 4 / 5G enterprise private networks and MPLS private lines. When any indicator of the primary link exceeds the preset threshold, the link is downgraded and the backup link is upgraded to the primary link. A3. Use DSCP to mark different levels of service traffic, configure multiple policy routes on the CPE, each route corresponds to a traffic level, and configure the CBWFQ queue scheduling algorithm on the CPE to ensure that key service traffic is sent first when the link is congested; A4. Based on the priority of link stability, combined with real-time link health check results and QoS policies, dynamically adjust the path through which data packets are transmitted in the network. When the main link fails or performance is severely degraded, immediately switch to the backup link. After the main link is restored, re-evaluate and adjust the link priority based on the current link status and business needs.
