Cloud private line switching method and device, equipment and storage medium

By monitoring and switching cloud dedicated line messages in real time, using available dedicated lines instead of fault dedicated lines for traffic forwarding, the traffic interruption and data loss caused by cloud dedicated line failure is solved, and business continuity and network stability are improved.

CN119276818APending Publication Date: 2025-01-07BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411364448.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In multi-cloud or hybrid cloud mode, traffic interruption and data loss caused by cloud dedicated line failures, the existing technology switching takes a long time, affecting business continuity and stability.

Method used

By monitoring the dedicated line messages generated by the target peer, the faulty dedicated line is identified in real time, and before switching to the available dedicated line, the available dedicated line is used instead of the faulty dedicated line for traffic forwarding, ensuring the normal forwarding of traffic and reducing interrupt losses.

Benefits of technology

It realizes rapid response to cloud dedicated line failover, minimizes business interruptions, improves the redundancy and reliability of the network architecture, and reduces the risk of traffic accumulation and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276818A_ABST
    Figure CN119276818A_ABST
Patent Text Reader

Abstract

The invention provides a cloud private line switching method and device, equipment and a storage medium, and relates to the technical field of computers, in particular to the technical fields of network technologies, information transmission, data management and the like. The specific implementation scheme is as follows: monitoring a private line message generated by a target peer; the target peer comprises a target switch and an internet data center; under the condition that it is determined that the first target special line breaks down based on the special line message, available special lines between the target switch and the Internet data center are screened out; and before the first target special line is switched to the second target special line, the available special line is adopted to replace the first target special line to carry out flow forwarding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as network technology, information transmission, and data management. Background Art

[0002] With the maturity and development of cloud technology, more and more traditional business scenarios are being covered by cloud technology, and many emerging application scenarios have emerged.

[0003] In some scenarios, more companies will choose a multi-cloud or hybrid cloud model to deploy their businesses, allowing them to flexibly allocate resources according to business needs, providing them with greater scalability while enabling them to select the most suitable services for specific workloads on different cloud platforms, thereby optimizing performance and costs. Summary of the invention

[0004] The present invention provides a cloud dedicated line switching method, device, equipment and storage medium.

[0005] According to one aspect of the present disclosure, a cloud dedicated line switching method is provided, including:

[0006] Monitoring dedicated line messages generated by target peers; the target peers include target switches and Internet data centers;

[0007] In the case where it is determined based on the dedicated line message that the first target dedicated line has a fault, screening out available dedicated lines between the VPC gateway and the Internet data center;

[0008] Before the first target dedicated line is switched to the second target dedicated line, the available dedicated line is used to replace the first target dedicated line for traffic forwarding.

[0009] According to another aspect of the present disclosure, a cloud dedicated line switching device is provided, comprising:

[0010] A monitoring module, used to monitor the dedicated line message generated by the target peer; the target peer includes a target switch and an Internet data center;

[0011] A screening module, configured to screen out available dedicated lines between the VPC gateway and the Internet data center when it is determined based on the dedicated line message that a first target dedicated line fails;

[0012] The forwarding module is used to use the available dedicated line to replace the first target dedicated line for traffic forwarding before the first target dedicated line is switched to the second target dedicated line.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0018] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0019] In the disclosed embodiment, by monitoring the target status of the dedicated line in real time, when a failure occurs in the dedicated line, the dedicated line is quickly switched to an available dedicated line for traffic forwarding.

[0020] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0022] Figure 1 It is a flowchart of a cloud dedicated line switching method provided according to an embodiment of the present disclosure;

[0023] Figure 2 is a schematic diagram of a process for screening available dedicated lines according to an embodiment of the present disclosure;

[0024] Figure 3 It is a schematic diagram of a framework of a cloud dedicated line switching method provided according to an embodiment of the present disclosure;

[0025] Figure 4 is another schematic diagram of a cloud dedicated line switching method provided according to an embodiment of the present disclosure;

[0026] Figure 5 is a timing diagram of a cloud dedicated line switching method provided according to an embodiment of the present disclosure;

[0027] Figure 6 It is a structural diagram of a cloud dedicated line switching device provided according to an embodiment of the present disclosure;

[0028] Figure 7It is a block diagram of an electronic device used to implement the cloud dedicated line switching method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0030] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] In some business scenarios, multi-cloud and hybrid cloud models allow enterprises to flexibly allocate resources according to business needs. For example, when business volume suddenly increases, additional computing, storage, and network resources can be quickly obtained from different cloud service providers to ensure business continuity and stability. Data security and availability are ensured by performing data backup and redundant deployment on multiple cloud platforms.

[0032] In a multi-cloud or hybrid cloud model, dedicated lines are needed to connect clouds or clouds to IDCs (Internet Data Centers) under the cloud. Dedicated lines are the only channel between clouds or clouds to IDCs under the cloud. Therefore, the stability of dedicated lines is the first factor that users need to consider when adopting cloud technology. However, dedicated lines can be affected by some uncontrollable factors and cause failures, such as access switch failures, access optical module failures, line failures, etc. In order to improve the dedicated line SLA (Service Level Agreement), general users will build multiple dedicated lines to improve the SLA. After a dedicated line fails, all traffic can be cut to other available lines.

[0033] This switching process requires both the cloud and off-cloud ends to complete the switching to be considered successful. Among them, the routing switching of the off-cloud IDC is switched by the switch routing protocol, which is generally fast. However, the switching of the on-cloud SDN (Software-Defined Networking, a network architecture) takes a long time, and as the number of routing entries increases, the switching time will gradually increase.

[0034] In view of this, the embodiments of the present disclosure provide a cloud dedicated line switching method to improve the stability of the cloud dedicated line. In the embodiments of the present disclosure, by establishing a target peer, dedicated line failures can be quickly perceived in real time, and response measures can be taken in a timely manner to ensure the normal forwarding of traffic. This method is applicable to on-cloud dedicated line switching between clouds, and is also applicable to on-cloud dedicated line switching in cloud and off-cloud IDC scenarios. Specifically, Figure 1 The figure is a flow chart of the cloud dedicated line switching method provided by the embodiment of the present disclosure, including the following contents:

[0035] S101, monitoring a dedicated line message generated by a target peer.

[0036] The target peer refers to the two routers in BGP (Border Gateway Protocol) that can exchange routing information after establishing a BGP session. They are called BGP peers (i.e., target peers in the disclosed embodiment). In the disclosed embodiment, the target peers include target switches and Internet data centers. Among them, a switch is a key device used for internal communication in a local area network, such as an access switch, which can be used to optimize traffic or implement specific network policies. Internet data centers are important nodes that can provide computing resources, storage, and network connections.

[0037] By monitoring the dedicated line messages generated by the target peer, you can obtain the status information of the dedicated line in real time. Through efficient and accurate monitoring, you can ensure that the failed dedicated line can be identified quickly and timely.

[0038] S102, when it is determined based on the dedicated line message that the first target dedicated line has a fault, select available dedicated lines between the VPC gateway and the Internet data center.

[0039] That is, when the received dedicated line message indicates that the first target dedicated line fails, the available dedicated lines are selected from the remaining dedicated lines between the VPC (Virtual Private Cloud) gateway and the Internet data center for traffic transmission.

[0040] S103, before the first target dedicated line is switched to the second target dedicated line, an available dedicated line is used to replace the first target dedicated line for traffic forwarding.

[0041] After available dedicated lines are screened out, before the cloud completes the link switching of the first target dedicated line, the traffic can be switched from the failed first target dedicated line to the available dedicated line for forwarding to avoid significant impact on the business.

[0042] During implementation, after the switch is completed, the status of the available dedicated lines can be continuously monitored. If any problems are found or further optimization is needed, the failed available dedicated line can continue to be processed as the first target dedicated line, so that timely adjustments can be made to ensure the stability and reliability of cloud technology.

[0043] In the disclosed embodiment, by monitoring the dedicated line message of the target peer, the failed dedicated line can be quickly sensed. In the case of a failure in the first target dedicated line, the available dedicated lines can be quickly screened out and traffic forwarding can be performed, and the traffic of the first target dedicated line can be switched to the available dedicated line for traffic forwarding. As a result, the business interruption loss caused by the failure of the dedicated line can be minimized to the greatest extent, ensuring that the business can continue to run and avoiding losses caused by the failure of the dedicated line. Among them, by finding an available dedicated line to replace the first target dedicated line for traffic forwarding, instead of waiting for the first target dedicated line to be switched to the second target dedicated line before continuing to forward the traffic on the first target dedicated line, the traffic accumulation caused by the failure of the first dedicated line can be reduced or even eliminated, increasing the redundancy and reliability of the entire network architecture. In addition, it is no longer dependent on a single dedicated line switching mode, but can flexibly switch between multiple dedicated lines on different paths, improving the overall utilization and efficiency of dedicated line resources.

[0044] In the disclosed embodiment, after the first target dedicated line is switched to the second target dedicated line, the traffic originally handled by the first target dedicated line will be forwarded to the Internet data center by the second target dedicated line, and the aforementioned available dedicated line will no longer be responsible for the traffic originally handled by the first target dedicated line. In this way, after the first target dedicated line is successfully switched to the second target dedicated line, the dedicated line resources of the available dedicated line can be released in time to ensure smooth traffic forwarding of each dedicated line, thereby improving the stability and efficiency of the dedicated line.

[0045] In the embodiment of the present disclosure, when the first target dedicated line fails, the traffic originally forwarded by the first target dedicated line may accumulate or even be lost due to the inability to forward it. In order to ensure the timeliness of traffic forwarding and improve the efficiency of switching the traffic of the failed first target dedicated line to the available dedicated line for forwarding, a virtual interface state is proposed in the embodiment of the present disclosure. Among them, each group of independent dedicated lines corresponds to a virtual interface state. For example, the first target dedicated line and the second target dedicated line correspond to their own virtual interface states. In the case where the first target dedicated line fails and needs to be switched to the second target dedicated line, the second target dedicated line will inherit the virtual interface state of the first target dedicated line. In the case of successful switching, the second target dedicated line corresponds to the virtual interface state of the first target dedicated line, and because it has switched from the failed first target dedicated line to the normal second target dedicated line, the virtual interface state of the original first target dedicated line will also be updated. Among them, the virtual interface state is only a state, which is convenient to update and maintain. Specifically, in the case of a virtual interface state, it can be determined whether the first target dedicated line has a fault based on the dedicated line message to screen out the available dedicated lines between the VPC gateway and the Internet data center. The specific implementation process is as follows: Figure 2 As shown, including the following:

[0046] S201: When it is determined based on a dedicated line message that a first target dedicated line has a fault, update the virtual interface state of the first target dedicated line in the VPC gateway to a fault state.

[0047] That is, when it is determined that the first target dedicated line has a fault, by timely updating the virtual interface status in the VPC gateway to a faulty state, the VPC gateway can be ensured to quickly sense that the first target dedicated line is unavailable, thereby avoiding continued reliance on this faulty dedicated line for data transmission, thereby reducing possible data loss and transmission errors.

[0048] S202, from the set of dedicated lines between the VPC gateway and the Internet data center, select at least one dedicated line whose virtual interface status is available as an available dedicated line.

[0049] Continuing with the previous example, when the first target dedicated line fails, the virtual interface state of the first target dedicated line is a failure state, which means that the first target dedicated line is unavailable, while the virtual interface states of other dedicated lines that have not failed remain available.

[0050] Among them, selecting at least one dedicated line with an available virtual interface status from the dedicated line set between the VPC gateway and the Internet data center as an available dedicated line is a key step to ensure the continuity and stability of data transmission. In order to select available dedicated lines, during implementation, each dedicated line between clouds or between clouds and off clouds is processed with reference to the first target dedicated line. As a result, the virtual interface status of each dedicated line in the dedicated line set can be monitored and evaluated in real time to ensure that the selected dedicated lines are available.

[0051] In the disclosed embodiment, timely discovering and updating the virtual interface status of the faulty dedicated line to a faulty state can avoid continuing to rely on the unavailable dedicated line for data transmission, and reduce problems such as data loss and transmission errors caused by using the faulty dedicated line. Filtering out dedicated lines with virtual interface status in an available state as available dedicated lines ensures that data can be transmitted through a reliable channel, thereby improving the stability of the entire system operation. Therefore, the disclosed embodiment provides emergency measures in the event of a failure. Before switching to the second target dedicated line, the available dedicated line can be used to take charge of the traffic of the first target dedicated line, thereby improving the traffic switching forwarding efficiency and the stability of the grid.

[0052] In the disclosed embodiment, the target switch in the target peer can be periodically queried to obtain the status of each dedicated line between the target switch and the Internet data center. In addition, in order to improve the efficiency of fault handling, monitoring the dedicated line message generated by the target peer can be achieved by receiving the dedicated line message sent in real time by the target switch in the target peer; the dedicated line message includes the dedicated line identifier of the first target dedicated line and the dedicated line status corresponding to the dedicated line identifier.

[0053] That is, the information about the dedicated line status of the target switch is obtained in real time to ensure that the dedicated line status is the latest and most accurate. This helps to make corresponding decisions and adjustments quickly.

[0054] The dedicated line ID is a key identifier used to uniquely identify each dedicated line and is used to distinguish different dedicated lines. The dedicated line status describes the current working status of the dedicated line, which may include different states such as normal, faulty, and idle. Accurate dedicated line status information is crucial for traffic switching, fault handling, and other aspects. For example, if the dedicated line status is displayed as a fault, the fault handling mechanism can be immediately started to calculate the optimal path as the second target dedicated line for switching.

[0055] In the disclosed embodiment, by receiving the dedicated line message sent by the target switch in real time, the latest status and identification information of the dedicated line can be obtained in time. This can respond quickly to changes in the dedicated line without periodic queries or waiting for scheduled reports, greatly improving the timeliness and accuracy of monitoring. Once a problem occurs in the dedicated line, real-time message transmission can quickly locate the problem. The dedicated line identification contained therein helps to quickly locate the specific faulty dedicated line, and the dedicated line status information can provide key clues for fault diagnosis, so that the VPC gateway can promptly perceive the faulty dedicated line and filter the available dedicated lines for traffic forwarding.

[0056] During implementation, the virtual interface status of the first target dedicated line in the VPC gateway can be updated to a faulty state based on the following methods to improve traffic switching and forwarding efficiency:

[0057] Step A1: Generate a virtual interface update message.

[0058] like Figure 3 As shown, a schematic diagram of the network structure of the public cloud and IDC interaction provided by the embodiment of the present disclosure is provided. There are two groups of links between the VPC gateway and the IDC, including one group of links carried by access switch 1 and another group of links carried by access switch 2.

[0059] Access switch 1 and IDC form a group of peers, and access switch 2 and IDC form another group of peers.

[0060] Take access switch 1 and IDC as target peers as an example. There are multiple links between access switch 1 and IDC. When dedicated line 1 fails, you can switch to dedicated line 3 (not shown in the figure) between access switch 1 and IDC. At this time, dedicated line 1 is the first target dedicated line, and dedicated line 3 is the second target dedicated line.

[0061] In the event of a failure in dedicated line 1, the target switch in the target peer, namely access switch 1, will sense the failure and notify the dedicated line controller to perform routing learning to screen out a second target dedicated line suitable for switching to complete the switching process of the dedicated line. At the same time, in the embodiment of the present disclosure, access switch 1 will additionally generate a dedicated line message to the monitoring module.

[0062] The monitoring module monitors the status of the target peer in real time. When it detects that the first target dedicated line has a fault, it will generate a virtual interface update message to timely update the virtual interface status in the VPC gateway. For example, when the status of dedicated line 1 of the target peer is "down", the monitoring module will generate an update message containing the virtual interface identifier and current status. This update message may include the virtual interface ID, current status (such as fault status), occurrence time and other information.

[0063] like Figure 3 As shown, the monitoring module can communicate with the VPC controller. After generating the virtual interface update message, in step A2, the update interface of the VPC controller is called to send the virtual interface update message to the VPC controller, so that the VPC controller updates the virtual interface state of the first target dedicated line in the VPC gateway to a fault state.

[0064] The update interface provided by the VPC controller can be used to receive and process virtual interface update messages. After the VPC controller receives the update request from the monitoring module, it parses the virtual interface update message in the update request to update the virtual interface state of the first target dedicated line. That is, the virtual interface state of the first target dedicated line in the VPC gateway is updated to a fault state.

[0065] After the update is complete, the VPC controller can return a feedback message to confirm that the virtual interface status is updated successfully.

[0066] Meanwhile, the dedicated line controller may still be performing route learning and calculation, and has not yet screened out a second target dedicated line that is suitable for replacing the first target dedicated line.

[0067] In the disclosed embodiment, based on the generated virtual interface update message, the update interface of the VPC controller is called to send the virtual interface update message to the VPC controller, so that the VPC gateway can quickly perceive the failed dedicated line, which helps to reduce the impact time of the failure on the business, thereby improving the overall reliability and stability of the system.

[0068] In the scenario of network traffic forwarding, in order to ensure the stability and continuity of the service, it is sometimes necessary to switch between different dedicated lines. This switching is usually based on various factors. For example, the original first target dedicated line may have performance degradation, failure, or other problems that affect normal traffic forwarding, so a second target dedicated line that can replace the first target dedicated line is needed to forward traffic. Similarly, if the second target dedicated line fails, it is necessary to select an available dedicated line from the remaining dedicated lines including the first target dedicated line to replace it in order to complete traffic forwarding.

[0069] During implementation, for the stability of traffic forwarding, a detection mechanism can be added to ensure that the second target dedicated line after switching is highly available. Specifically, in the process of using an available dedicated line to replace the first target dedicated line for traffic forwarding, when the first target dedicated line is successfully switched to the second target dedicated line, the status of the second target dedicated line can be monitored; and when the second target dedicated line continues to be normal within a preset period of time, the virtual interface status of the first target dedicated line in the VPC gateway is updated to an available state, so that the second target dedicated line is responsible for forwarding at least part of the traffic sent to the Internet data center.

[0070] That is, after the traffic originally forwarded through the first target dedicated line is switched to the second target dedicated line, the second target dedicated line is not immediately used to take charge of the traffic originally forwarded by the first target dedicated line, but the stability and reliability of the second target dedicated line must be ensured by monitoring the status of the second target dedicated line. For example, the status of the second target dedicated line can be continuously monitored for a preset period of time. If the second target dedicated line continues to remain in a normal state within the preset period of time, that is, all key indicators meet the preset standards, then it can be considered that the second target dedicated line has the ability to successfully replace the first target dedicated line.

[0071] During the preset time period of monitoring the second target dedicated line, the traffic of the first target dedicated line is still forwarded by the available dedicated line selected above.

[0072] After confirming that the second target dedicated line is stable and reliable, the virtual interface status of the first target dedicated line in the VPC gateway is updated to an available state, so that the second target dedicated line is responsible for forwarding at least part of the traffic sent to the Internet data center.

[0073] That is, after the first target dedicated line switches to the second target dedicated line, the second target dedicated line can be determined according to the strategy to determine which traffic it is responsible for forwarding, such as forwarding the traffic originally forwarded by the first target dedicated line. In the event of a failure in other dedicated lines, the second target dedicated line may become an available dedicated line for the other dedicated lines, responsible for forwarding part of the traffic in the other dedicated lines.

[0074] It is understandable that the second target dedicated line is not a pre-set backup dedicated line for the first target dedicated line. The second target dedicated line is an optimal path that can replace the second target dedicated line selected through routing calculation and learning.

[0075] In the disclosed embodiment, after the second target dedicated line is screened out, the second target dedicated line will not be enabled immediately, but the status of the second target dedicated line will be continuously monitored within a preset time period to ensure that the second target dedicated line can indeed provide stable service quality and avoid secondary failures caused by problems in switching to the second target dedicated line. Within the preset time period, if the second target dedicated line continues to be normal, the virtual interface status of the first target dedicated line in the VPC gateway is updated to an available state, so that the VPC gateway can forward traffic according to the original strategy when forwarding traffic. That is, the VPC gateway will consider the path of the first target dedicated line to be normal based on the virtual interface status of the first target dedicated line, and forward the traffic on the first target dedicated line to the second target dedicated line according to the virtual interface status of the first target dedicated line, which is helpful for the management and maintenance of the entire network architecture, and can more clearly understand the actual situation of each dedicated line, so as to make more reasonable traffic forwarding decisions.

[0076] In the embodiment of the present disclosure, as described above, when a fault occurs in the first target dedicated line, the dedicated line controller is notified to perform routing learning to filter out the second target dedicated line to which the first target dedicated line needs to switch.

[0077] Continue as Figure 3 As shown, when it is determined that the first target dedicated line has a fault, the dedicated line control line is immediately notified to perform route learning. After receiving the notification, the dedicated line controller queries the available network resources and routing information, including the status, bandwidth, delay and other parameters of other potential second target dedicated lines. Based on the results of route learning, the most suitable dedicated line is selected as the second target dedicated line according to certain algorithms, such as the shortest path algorithm and the load balancing algorithm.

[0078] In the disclosed embodiment, when a failure of the first target dedicated line is detected, the dedicated line controller is immediately notified to perform route learning, and a replacement second target dedicated line can be quickly found. This enables the network to restore the connection in a short time, improving the continuity and availability of the service.

[0079] In the embodiment of the present disclosure, when the dedicated line controller screens out the second target dedicated line, the dedicated line controller calls the VPC controller so that the VPC controller switches the first target dedicated line in the VPC gateway to the second target dedicated line.

[0080] That is, after the second target dedicated line is determined, the dedicated line controller will use its calling function to start interaction with the VPC controller. Figure 3 As shown, the dedicated line controller notifies the VPC controller to perform specific operations by sending routes. After receiving the routes sent by the dedicated line controller, the VPC controller switches the virtual interface corresponding to the dedicated line in the VPC gateway. The first target dedicated line that was originally in use is replaced with the newly selected second target dedicated line.

[0081] In the embodiment of the present disclosure, when the first target dedicated line fails, it is subsequently switched to the second target dedicated line to ensure the stability and continuity of the network connection.

[0082] In order to facilitate understanding of the cloud dedicated line switching method provided in the embodiment of the present disclosure, Figure 4 As shown in the figure, it is assumed that there are four switches between the VPC gateway and the IDC, namely access switch 1, access switch 2, access switch 3, and access switch 4. That is, there are four groups of links between the VPC gateway and the IDC, and each switch carries a group of links.

[0083] Based on what has been described above, if the dedicated line between any access switch and the IDC fails, the access switch will generate a dedicated line message to the monitoring module, and the monitoring module will generate a virtual interface update message to update the virtual interface status in the VPC gateway, so that the VPC gateway can directly forward traffic by reading the status of the virtual interface. Figure 4 As shown in the figure, when the virtual interface states corresponding to dedicated line 1 and dedicated line 2 between access switch 1 and access switch 2 and the IDC are both "down", the dedicated line controller (not shown in the figure) can calculate the optimal dedicated line in real time. At the same time, the monitoring module will sense that dedicated line 1 and dedicated line 2 have failed, thereby updating the virtual interface states of these two dedicated lines in the VPC gateway to a failed state. In this way, when the VPC gateway forwards the cloud traffic to the IDC, it will select the dedicated line in the available state for forwarding, so that the traffic originally forwarded by dedicated line 1 and dedicated line 2 can be sent to the IDC through the available dedicated line. In the process of forwarding traffic, Figure 4 As shown in the figure, if dedicated line 3 is the best dedicated line calculated, dedicated line 3 can be sent to the VPC gateway to switch dedicated line 1 to dedicated line 3. In order to ensure the stability of traffic forwarding, after dedicated line 1 is switched to dedicated line 3, the monitoring module will monitor the status of dedicated line 3. If dedicated line 3 is determined to be stable and reliable within the preset time, the monitoring module can call the VPC controller to update the virtual interface status corresponding to dedicated line 1 in the VPC gateway to an available status, thereby officially enabling dedicated line 3 to replace the failed dedicated line 1 for traffic forwarding.

[0084] In order to more intuitively understand the timing operation of the cloud dedicated line switching method provided by the embodiment of the present disclosure, Figure 4 On the basis of Figure 5 The figure shows the timing diagram of cloud dedicated line switching. At time T0, dedicated line 1 forwards traffic normally until dedicated line 1 fails at time T1. At this time, the dedicated line controller performs route learning and calculation. At the same time, the monitoring module updates the virtual interface status, and the traffic of dedicated line 1 is switched to an available dedicated line, such as completing traffic forwarding through dedicated line 2. Until time T2, the optimal dedicated line 3 is selected as the second target dedicated line to replace dedicated line 1. The monitoring module will continue to monitor the status of dedicated line 3. When the monitoring is completed at time T3 and it is confirmed that dedicated line 3 continues to be normal, the virtual interface status corresponding to dedicated line 1 will be updated to an available status. At this time, dedicated line 3 is officially enabled to replace dedicated line 1 for traffic forwarding.

[0085] It is understandable that, during implementation, each dedicated line may correspond to a virtual interface state, for example, dedicated line 1 in access switch 1 corresponds to a virtual interface state, and dedicated line 5 corresponds to a virtual interface state. Alternatively, the same access switch may correspond to a virtual interface state. In the latter case, when all dedicated lines of the same access switch fail, the corresponding virtual interface state will be changed to a failure state. It is also possible to update the virtual interface state of the access switch to a failure state when any dedicated line of the same access switch fails. When forwarding traffic, regardless of the situation, the dedicated line corresponding to the virtual interface state in the available state is used for traffic forwarding.

[0086] In summary, the cloud dedicated line switching method provided by the embodiment of the present disclosure can enable the monitoring module to quickly sense the BGP state of the dedicated line down by monitoring the target peer after the dedicated line fails and the BGP state is down. At the same time, the dedicated line controller module will also synchronize the routes and calculations one by one. Afterwards, the VPC controller is called to update the virtual interface state of the VPC gateway down. After the virtual interface state of the VPC gateway is down, the traffic will be automatically forwarded to the access switch through other virtual interfaces. In this way, the traffic of the failed dedicated line is switched without waiting for all routing updates to be completed, so that the entire switching process can be controlled within sub-seconds. In addition, after switching to the second target dedicated line, the availability of the second target dedicated line can be continuously monitored, so that the switching process has a more stable guarantee.

[0087] The cloud dedicated line switching method provided in the embodiment of the present disclosure can achieve switching within 1 second. Compared with the cloud dedicated line switching operation that originally takes 7-8 seconds to complete, it can greatly improve the efficiency and improve the stability of the dedicated line.

[0088] Based on the same technical concept, the embodiment of the present disclosure also provides a cloud dedicated line switching device 600, such as Figure 6 As shown, including:

[0089] A monitoring module 601 is used to monitor the dedicated line message generated by the target peer; the target peer includes a target switch and an Internet data center;

[0090] A screening module 602 is used to screen out available private lines between the VPC gateway and the Internet data center when it is determined based on the private line message that the first target private line has a fault;

[0091] The forwarding module 603 is used to use an available dedicated line to replace the first target dedicated line for traffic forwarding before the first target dedicated line is switched to the second target dedicated line.

[0092] In some embodiments, the screening module comprises:

[0093] An updating subunit, configured to update a virtual interface state of the first target dedicated line in the VPC gateway to a fault state when it is determined based on the dedicated line message that a fault occurs in the first target dedicated line;

[0094] The screening subunit is used to screen out at least one private line whose virtual interface status is available from the private line set between the VPC gateway and the Internet data center as an available private line.

[0095] In some embodiments, the monitoring module is specifically used to:

[0096] A dedicated line message is received which is sent in real time by a target switch in a target peer; the dedicated line message includes a dedicated line identifier of a first target dedicated line and a dedicated line state corresponding to the dedicated line identifier.

[0097] In some embodiments, the updating subunit is specifically used to:

[0098] Generate a virtual interface update message;

[0099] Call the update interface of the VPC controller to send a virtual interface update message to the VPC controller, so that the VPC controller updates the virtual interface state of the first target dedicated line in the VPC gateway to a fault state.

[0100] In some embodiments, it also includes:

[0101] A state detection module is used to monitor the state of the second target dedicated line when the first target dedicated line is successfully switched to the second target dedicated line during the process of using the available dedicated line to replace the first target dedicated line for traffic forwarding;

[0102] The update module is used to update the virtual interface status of the first target dedicated line in the VPC gateway to an available status when the second target dedicated line continues to operate normally within a preset time period, so that the second target dedicated line is responsible for forwarding at least part of the traffic sent to the Internet data center.

[0103] In some embodiments, it also includes:

[0104] The notification module is used to notify the dedicated line controller to perform routing learning in order to select the second target dedicated line to which the first target dedicated line needs to switch when a fault occurs in the first target dedicated line.

[0105] In some embodiments, it also includes:

[0106] The switching module is used to call the VPC controller through the dedicated line controller when the dedicated line controller screens out the second target dedicated line, so that the VPC controller switches the first target dedicated line in the VPC gateway to the second target dedicated line.

[0107] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0108] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0109] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0110] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0111] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0112] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0113] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as a cloud dedicated line switching method. For example, in some embodiments, the cloud dedicated line switching method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the cloud dedicated line switching method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the cloud dedicated line switching method in any other appropriate manner (e.g., by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0116] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0118] In addition, an embodiment of the present disclosure also provides a vehicle, comprising the aforementioned electronic device.

[0119] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0120] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0122] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A cloud dedicated line switching method, comprising: Monitor the dedicated line messages generated by the target peer; The target peers include a target switch and an Internet data center; In the case where it is determined based on the dedicated line message that the first target dedicated line has a fault, screening out available dedicated lines between the VPC gateway and the Internet data center; Before the first target dedicated line is switched to the second target dedicated line, the available dedicated line is used to replace the first target dedicated line for traffic forwarding.

2. The method according to claim 1, wherein: The step of screening out available dedicated lines between the VPC gateway and the Internet data center when it is determined based on the dedicated line message that the first target dedicated line has a fault includes: When it is determined based on the dedicated line message that the first target dedicated line has a fault, updating the virtual interface state of the first target dedicated line in the VPC gateway to a fault state; In the set of dedicated lines between the VPC gateway and the Internet data center, at least one dedicated line whose virtual interface status is available is selected as the available dedicated line.

3. The method according to claim 1 or 2, wherein: The dedicated line message generated by the monitoring target peer includes: A dedicated line message is received which is sent in real time by the target switch in the target peer; the dedicated line message includes a dedicated line identifier of the first target dedicated line and a dedicated line status corresponding to the dedicated line identifier.

4. The method according to claim 2, wherein: The updating the virtual interface state of the first target dedicated line in the VPC gateway to a fault state includes: Generate a virtual interface update message; Call an update interface of the VPC controller to send the virtual interface update message to the VPC controller, so that the VPC controller updates the virtual interface state of the first target dedicated line in the VPC gateway to a fault state.

5. The method according to claim 2, further comprising: In the process of using the available dedicated line to replace the first target dedicated line for traffic forwarding, when the first target dedicated line is successfully switched to the second target dedicated line, monitoring the status of the second target dedicated line; If the second target dedicated line continues to operate normally within a preset time period, the virtual interface status of the first target dedicated line in the VPC gateway is updated to an available status, so that the second target dedicated line is responsible for forwarding at least part of the traffic sent to the Internet data center.

6. The method according to any one of claims 1 to 5, further comprising: In the case where the first target dedicated line fails, the dedicated line controller is notified to perform route learning to filter out the second target dedicated line to which the first target dedicated line needs to be switched.

7. The method according to any one of claims 1 to 5, further comprising: In the case where the dedicated line controller selects the second target dedicated line, the VPC controller is called through the dedicated line controller, so that the VPC controller switches the first target dedicated line in the VPC gateway to the second target dedicated line.

8. A cloud dedicated line switching device, comprising: A monitoring module, used to monitor the dedicated line messages generated by the target peer; The target peers include a target switch and an Internet data center; A screening module, configured to screen out available dedicated lines between the VPC gateway and the Internet data center when it is determined based on the dedicated line message that a first target dedicated line fails; The forwarding module is used to use the available dedicated line to replace the first target dedicated line for traffic forwarding before the first target dedicated line is switched to the second target dedicated line.

9. The device according to claim 8, wherein: The screening module comprises: an updating subunit, configured to update a virtual interface state of the first target dedicated line in the VPC gateway to a fault state when it is determined based on the dedicated line message that a fault occurs in the first target dedicated line; The screening subunit is used to screen out at least one private line whose virtual interface status is available from the private line set between the VPC gateway and the Internet data center as the available private line.

10. The device according to claim 8 or 9, wherein: The monitoring module is specifically used for: A dedicated line message is received which is sent in real time by the target switch in the target peer; the dedicated line message includes a dedicated line identifier of the first target dedicated line and a dedicated line status corresponding to the dedicated line identifier.

11. The device according to claim 9, wherein: The updating subunit is specifically used for: Generate a virtual interface update message; Call an update interface of the VPC controller to send the virtual interface update message to the VPC controller, so that the VPC controller updates the virtual interface state of the first target dedicated line in the VPC gateway to a fault state.

12. The apparatus according to claim 9, further comprising: A state detection module, used for monitoring the state of the second target dedicated line when the first target dedicated line is successfully switched to the second target dedicated line during the process of using the available dedicated line to replace the first target dedicated line for traffic forwarding; The update module is used to update the virtual interface status of the first target dedicated line in the VPC gateway to an available status when the second target dedicated line continues to operate normally within a preset time period, so that the second target dedicated line is responsible for forwarding at least part of the traffic sent to the Internet data center.

13. The device according to any one of claims 8 to 12, further comprising: The notification module is used to notify the dedicated line controller to perform routing learning in order to select the second target dedicated line to which the first target dedicated line needs to switch when a fault occurs in the first target dedicated line.

14. The device according to any one of claims 8 to 12, further comprising: The switching module is used to call the VPC controller through the dedicated line controller when the dedicated line controller filters out the second target dedicated line, so that the VPC controller switches the first target dedicated line in the VPC gateway to the second target dedicated line.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.