Network configuration change method and device, and storage medium

By linking the network configuration change method with the control plane and data plane, the network status can be detected in real time, solving the problem of difficulty in timely detection of faults during large-scale network changes and improving network stability.

CN121887632APending Publication Date: 2026-04-17ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ALIBABA CLOUD COMPUTING CO LTD
Filing Date
2024-10-16
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

As the target network grows, changes in network configuration can more easily lead to network failures that are difficult to detect in a timely manner, thus affecting network stability.

Method used

By acquiring network configuration change information in the control plane and generating multiple sequentially executed network configuration change tasks, combined with network connectivity detection in the data plane, the control plane and data plane can be linked to detect network status in real time and promptly identify network faults.

Benefits of technology

It improves network stability after network configuration changes, enables timely detection and response to potential faults, and ensures network connectivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121887632A_ABST
    Figure CN121887632A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network configuration change method and device and a storage medium, the method is applied to an operating system providing networking service, the operating system comprises a control plane and a data plane, and the method comprises the following steps: acquiring network configuration change information corresponding to a target network through the control plane; generating a plurality of sequentially executed network configuration change tasks corresponding to the network configuration change information in the control plane; in response to execution of the target network configuration change task in the control plane, network connectivity detection of the target network is started in the data plane, and the target network configuration change task is a network configuration change task configured with a network connectivity detection trigger node; and determining the network state of the target network after the network configuration change according to the network connectivity detection result. According to the scheme, through linkage of the control plane and the data plane, network connectivity detection of the data plane is automatically triggered, network abnormity can be sensed in time, and the stability of a target network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, device and storage medium for changing network configuration. Background Technology

[0002] With the development of communication technology, cloud service providers offer networking services that allow users to interconnect different network instances, such as Virtual Private Cloud (VPC) instances, Virtual Border Router (VBR) instances, and Cloud Connect Network (CNN) instances, through forwarding network elements (such as Transit Routers (TRs)), to build a target network dedicated to the user. These forwarding network elements support routing functions, allowing users to configure routes to control traffic forwarding between network instances.

[0003] In practical applications, as the target network grows in size, it contains a large number of network instances, which increases the number and complexity of routes, making maintenance difficult for users. When network configuration changes are made to the target network (e.g., adding or deleting routes), network failures are likely to occur and may not be detected in real time, thus affecting network stability. Summary of the Invention

[0004] This invention provides a network configuration change method, device, and storage medium to enhance the stability of a network.

[0005] In a first aspect, embodiments of the present invention provide a network configuration change method, applied to an operating system providing networking services, the operating system including a control plane and a data plane, the method comprising:

[0006] The network configuration change information corresponding to the target network is obtained through the control plane.

[0007] In the control plane, generate multiple sequentially executed network configuration change tasks corresponding to the network configuration change information;

[0008] In response to the execution of a target network configuration change task in the control plane, a network connectivity probe of the target network is initiated in the data plane; the target network configuration change task is a network configuration change task configured with a network connectivity probe trigger node among the plurality of sequentially executed network configuration change tasks.

[0009] Based on the network connectivity detection results, the network status of the target network after the network configuration change is determined.

[0010] Secondly, embodiments of the present invention provide a network configuration change device applied to an operating system providing networking services, the operating system including a control plane and a data plane, the device comprising:

[0011] The acquisition module is used to acquire network configuration change information corresponding to the target network through the control plane;

[0012] The generation module is used to generate multiple sequentially executed network configuration change tasks corresponding to the network configuration change information in the control plane;

[0013] The processing module is configured to initiate network connectivity detection of the target network in the data plane in response to the execution of the target network configuration change task in the control plane; the target network configuration change task is a network configuration change task configured with a network connectivity detection trigger node among the plurality of sequentially executed network configuration change tasks; and determine the network state of the target network after the network configuration change based on the network connectivity detection result.

[0014] Thirdly, embodiments of the present invention provide an electronic device, including: a memory, a processor, and a communication interface; wherein, the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the network configuration change method as described in the first aspect.

[0015] Fourthly, embodiments of the present invention provide a non-transitory machine-readable storage medium storing executable code, which, when executed by a processor of an electronic device, enables the processor to at least implement the network configuration change method as described in the first aspect.

[0016] Fifthly, embodiments of the present invention provide a computer program product, comprising: a computer program that, when executed by a processor of an electronic device, enables the processor to at least implement the network configuration change method as described in the first aspect.

[0017] In the solution provided by this embodiment of the invention, network configuration change information corresponding to the target network is first obtained in the control plane of the operating system providing networking services, and multiple sequentially executed network configuration change tasks are generated. The target network is a network built based on networking services; the multiple sequentially executed network configuration change tasks include a target network configuration change task configured with a network connectivity detection trigger node. Based on this target network configuration change task, the control plane and data plane of the operating system providing networking services can be linked. Specifically, during the execution of multiple sequentially executed network configuration change tasks in the control plane, in response to the execution of the target network configuration change task in the control plane, network connectivity detection of the target network is initiated in the data plane. The network connectivity detection in the data plane can detect the actual forwarding status of user data by the target network in real time. Based on the network detection results, the network status of the target network after the network configuration change can be determined in a timely manner, thus enabling timely response measures when the target network experiences a fault after the network configuration change. In summary, this solution achieves linkage between the control plane and the data plane through target network configuration tasks, which can automatically trigger network connectivity detection in the data plane, enabling timely network anomaly detection in target network scenarios during network configuration changes, and improving the stability of the target network. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating a network configuration change method provided in an embodiment of the present invention;

[0020] Figure 2 This is a schematic diagram illustrating a network configuration change scenario provided by an embodiment of the present invention;

[0021] Figure 3 A flowchart illustrating another network configuration change method provided in an embodiment of the present invention;

[0022] Figure 4 This is a schematic diagram illustrating another network configuration change scenario provided by an embodiment of the present invention;

[0023] Figure 5 This is a schematic diagram of a network configuration change device provided in an embodiment of the present invention;

[0024] Figure 6 To and Figure 5 The illustrated embodiment provides a schematic diagram of the electronic device corresponding to the network configuration change device. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0027] The following detailed description of some embodiments of the present invention is provided in conjunction with the accompanying drawings. Where there is no conflict between the embodiments, the following embodiments and features can be combined with each other. Furthermore, the timing of the steps in the following method embodiments is merely an example and not a strict limitation.

[0028] With the development of communication technology, cloud service providers offer networking services that allow users to interconnect different network instances, such as Virtual Private Cloud (VPC) instances, Virtual Border Router (VBR) instances, and Cloud Connect Network (CCN) instances, through forwarding network elements (such as Transit Routers (TRs)), in order to build a target network dedicated to the user.

[0029] In networking services, forwarding network elements support routing functions, such as custom routing tables and custom routing entries. Users can configure routes to achieve flexible interoperability between network instances, thereby controlling traffic forwarding between network instances. Network interoperability between VPC and other network instances based on forwarding network elements such as TR includes, but is not limited to, interoperability within the same region, interoperability across regions, and interoperability between cloud and on-premises networks, among other network interoperability scenarios.

[0030] In various network interconnection scenarios, as network scale increases, the target network built by users based on networking services typically contains a large number of network instances. Correspondingly, the number and complexity of routing between network instances also increase, which is not conducive to user maintenance. When network configuration changes are made to the target network, network failures are prone to occur and cannot be detected in time, which is detrimental to the stability of the target network.

[0031] For example, from a user's perspective, after building a target network using a networking service, the target network may require configuration changes based on actual usage needs. These changes might include adding or deleting a network instance (e.g., a VPC instance), adding or deleting a routing entry in the routing table of a network instance, or changing the version of the networking service used (different versions support different networking functionalities). These configuration changes alter the routing information within the target network, affecting network connectivity between network instances. However, due to the large number and complexity of routes in the target network, users often struggle to determine whether these changes will impact its normal operation. Furthermore, when changes do affect normal operation, users may not immediately perceive it. For instance, deleting a routing entry may only reveal the network failure caused by the configuration change if a data transmission failure occurs. This delay in detecting network failures due to configuration changes is detrimental to the stability of the target network.

[0032] For example, from the perspective of cloud service providers that provide networking services, in order to provide users with high-quality networking services, they usually carry out internal operation and maintenance operations such as network architecture optimization, migration of forwarding network element instances such as routers and switches, and product iteration and upgrade of networking services. These operations will also change the network configuration of the target network.

[0033] For example, network architecture optimization includes optimizing an active-passive mode from a primary-secondary mode to an active-active mode. In active-passive mode, the target network may contain a primary router and a backup router. The primary router handles all traffic, and the backup router takes over traffic when the primary router fails. During data transmission, when traffic reaches the backup router, it needs to be routed to the primary router before data transmission can proceed, resulting in traffic detours and high latency. In active-active mode, however, both routers have the same traffic processing capacity, and traffic can be forwarded locally. Therefore, network architecture optimization leads to changes in routing within the target network, meaning the network configuration of the target network will change.

[0034] Migrating forwarding network element instances includes migrating user data within forwarding network element instances such as routers, switches, and gateways. It's understandable that the forwarding network elements provided by networking services are typically multi-tenant, meaning multiple users share a single forwarding network element. Each forwarding network element has limited processing capacity; for example, a router might only handle 10GB of traffic. When one user's traffic fully utilizes that router's processing capacity, other users will be unable to use the router. To improve the high availability of forwarding network elements such as routers, user data from users with high traffic volumes is typically migrated to other forwarding network elements to avoid impacting data transmission for other users within the same forwarding network element. This migration of forwarding network element instances alters routing in the target network; for example, the next hop of the route may change before and after the migration. In other words, the migration of forwarding network element instances will change the network configuration of the target network.

[0035] Product iteration and upgrades of networking services include upgrading the Open Application Programming Interface (Open API). Based on the upgraded Open API, users typically gain access to more networking functions. In practice, to adapt to the upgraded networking service, the network configuration of the target network built by the user based on the old version of the networking service is usually updated.

[0036] Based on the examples above, during the network architecture optimization, forwarding element instance migration, and product iteration upgrades performed by cloud service providers offering networking services, the network configuration of the target network will be changed. In practical applications, such network changes may be more complex, and the impact on the user's target network is difficult to predict, posing a significant stability risk to the target network.

[0037] To reduce the impact of network configuration changes performed by users or cloud service providers on the network stability of the target network, embodiments of the present invention provide, for example... Figure 1 The method for changing network configuration is shown. Figure 1 A flowchart illustrating a network configuration change method provided in this embodiment of the invention is applied to an operating system providing networking services. This operating system includes a control plane and a data plane, such as... Figure 1 As shown, it may include the following steps:

[0038] 101. Obtain network configuration change information corresponding to the target network through the control plane.

[0039] 102. Generate multiple sequentially executed network configuration change tasks corresponding to the network configuration change information in the control plane.

[0040] 103. In response to the target network configuration change task being executed in the control plane, network connectivity detection of the target network is initiated in the data plane; the target network configuration change task is a network configuration change task with a network connectivity detection trigger node configured among multiple sequentially executed network configuration change tasks.

[0041] 104. Based on the network connectivity detection results, determine the network status of the target network after the network configuration change.

[0042] In this embodiment of the invention, the operating system provides underlying technical support in various aspects such as computing, storage, and networking. Based on this underlying technical support, the operating system can provide networking services. According to the different functions the operating system is responsible for in providing networking services, the operating system can be divided into a control plane and a data plane.

[0043] The control plane is responsible for understanding the network configuration information configured by the user through the network configuration interface or Open API provided by the operating system, generating routing configurations (such as routing tables) for forwarding network elements such as routers or gateways, and sending them to the data plane; as well as outputting the network resource status in the target network constructed by the user.

[0044] The data plane is responsible for forwarding user data (i.e. carrying the actual user data traffic in the user's target network) and distributing the routing configurations issued by the control plane to the corresponding routers, switches, network elements, and other forwarding network elements so that the forwarding network elements can learn the routes.

[0045] In the network configuration change method provided in this embodiment of the invention, to enhance the stability of the target network during network configuration changes, on the one hand, the ability to perform network connectivity detection on the target network is configured in the data plane; on the other hand, network connectivity detection on the target network is triggered by operations in the control plane, thereby extending the interconnection path between the control plane and the data plane. The following, in conjunction with... Figure 2 right Figure 1 The methods for changing network configurations will be explained in detail.

[0046] Figure 2 This is a schematic diagram illustrating a network configuration change scenario provided by an embodiment of the present invention. Figure 2 As shown, in an operating system that provides networking services, the control plane and data plane perform different processing operations.

[0047] To elaborate, firstly, in the control plane, information on network configuration changes of the target network configured by the user through the network configuration interface provided by the operating system or the OpenAPI is obtained, or information on network configuration changes of the target network configured by the cloud service provider through the Internal Application Programming Interface (Open API) is obtained.

[0048] Then, in the control plane, multiple sequentially executed network configuration change tasks corresponding to the network configuration change information are generated, such as... Figure 2 As shown, it can include network configuration change task 1, network configuration change task 2, ..., network configuration change task m, ..., network configuration change task n (m and n are positive integers). The network configuration change of the target network can be achieved once all the sequentially executed target configuration change tasks are completed in the control plane.

[0049] In practical applications, multiple sequentially executed network configuration change tasks can be customized based on the actual network configuration change information. This embodiment does not limit the number of network configuration change tasks or the specific operations performed by each task.

[0050] To facilitate understanding, let's take the example of a network configuration change message that reads "Add a route entry x to a VPC instance in the target network (hereinafter referred to as the target VPC instance)". For instance, when the network configuration change message is "Add a route entry x to a VPC instance in the target network", the sequentially executed network configuration change tasks corresponding to this message can be as follows: Obtain the network resources currently contained in the target network, including network instances and routing tables; Add route entry x to the routing table of the target VPC instance; Propagate route entry x to other network instances in the target network so that they can learn this new route; Other network instances recalculate their routing tables based on route entry x; Distribute the routing configuration in the newly calculated routing table to the data plane so that the data plane can distribute the routing configuration to forwarding network elements such as routers, switches, and network elements; Confirm that route entry x has taken effect.

[0051] Understandably, after the data plane receives the routing configuration corresponding to the network configuration change information from the forwarding plane and distributes the routing configuration to forwarding network elements such as routers, switches, and network elements, user data is forwarded according to the new routing table. If real-time network connectivity detection of the target network can be performed promptly, it can ensure that the network failure caused by the network configuration change is determined as early as possible, thus improving the stability of the target network.

[0052] In practical applications, initiating network connectivity probing of the target network in the data plane typically takes some time. Therefore, if the network connectivity probing of the target network in the data plane is triggered before the control plane sends the routing configuration corresponding to the network configuration change information to the data plane, timely detection of the connectivity status of the target network after the network configuration change can be guaranteed.

[0053] Optionally, assuming that among multiple sequentially executed network configuration change tasks is a first network configuration change task that distributes the routing configuration corresponding to the network configuration change information to the data plane, the timing for triggering the network connectivity probe of the target network in the data plane can be: executing the target network configuration change task in the control plane (e.g., Figure 2 The target network configuration change task is one of several second network configuration change tasks executed before the first network configuration change task, among a plurality of sequentially executed network configuration change tasks.

[0054] In practical applications, network connectivity probing of the target network in the data plane usually consumes a lot of computing resources. If the start time is early (for example, when the first task in a series of sequentially executed network configuration change tasks is executed, the network connectivity probing of the target network in the data plane is triggered, and the network connectivity probing of the target network is completed a long time before the control plane sends the routing configuration corresponding to the network configuration change information to the data plane), then the network connectivity probing of the target network will also be executed much earlier, which will cause unnecessary waste of computing resources.

[0055] To improve the efficiency of data plane computing resource utilization, optionally, a target network configuration change task can be selected from the plurality of second network configuration change tasks based on the start time of network connectivity probing in actual applications. Specifically, the task execution time required from the execution of the target network configuration change task to the execution of the first network configuration change task is greater than the start time of network connectivity probing, but less than the task execution time required from the execution of other second network configuration change tasks to the execution of the first network configuration change task.

[0056] As an optional method for triggering network connectivity detection, network connectivity detection of the target network can be initiated in the data plane by calling the network connectivity detection start interface when the target network configuration change task is executed in the control plane.

[0057] As another optional method for triggering network connectivity detection, a network connectivity detection trigger node can be configured in the target network configuration change task. Through this trigger node, network connectivity detection of the target network can be initiated in the data plane.

[0058] Optionally, the triggering node can be a log generation node. Specifically, in response to the target network configuration change task being executed in the control plane, firstly, a target log is generated in the control plane; then, the target log is stored in a storage area accessible by the data plane; during the periodic scanning of this storage area, in response to detecting the target log, the data plane initiates a network connectivity probe of the target network.

[0059] After the network connectivity probe of the target network is initiated in the data plane, the network connectivity of the target network is probed. Specifically, the source address and destination address corresponding to the user data can be obtained first; then, the network connectivity of at least one network path between the source address and the destination address can be determined. Among them, at least one network path is a network path in the target network.

[0060] Understandably, when a network path is connected, user data can flow through that path, generating corresponding data traffic; conversely, when a network path is interrupted, user data cannot flow through it, and the corresponding data traffic is zero. Therefore, optionally, determining the network connectivity of at least one network path between the source and destination addresses includes: determining at least one network path between the source and destination addresses; detecting data traffic flowing through at least one network path; and determining the network connectivity of at least one network path based on the data traffic flowing through it. Specifically, for any target network path among the at least one network path, if the data traffic flowing through the target network path is less than or equal to a set traffic threshold (e.g., 0), then the target network path is determined to be interrupted, i.e., disconnected; if the data traffic flowing through the target network path is greater than the set traffic threshold (e.g., 0), then the target network path is determined to be connected.

[0061] Finally, based on the network connectivity detection results of the target network, the network status of the target network after the network configuration change is determined. For example, if the network connectivity detection results of the target network indicate the existence of disconnected network paths, it is determined that the target network has a network fault after the network configuration change; if the network connectivity detection results of the target network indicate that there are no disconnected network paths, it is determined that the target network is normal after the network configuration change.

[0062] In practical applications, a network path disconnection may be a problem that existed before the network configuration change, or it may be caused by the current network configuration change. To improve the accuracy of the network connectivity detection results based on the target network and the network status determined after the network configuration change, the specific implementation process can first obtain the first network connectivity detection result of the target network before the network configuration change, and the second network connectivity detection result of the target network after the network configuration change. Then, based on the first and second network connectivity detection results, it can be determined whether a network fault exists in the target network after the network configuration change, and whether the network fault is caused by the network configuration change.

[0063] For example, if the first network connectivity test result indicates that the target network is normal, and the second network connectivity test result indicates that the target network has a network fault, then it is determined that the target network has a network fault after the network configuration change, and the network fault is caused by the network configuration change; if both the first and second network connectivity test results indicate that the target network has a network fault, and the disconnected network paths corresponding to the network faults are the same, then it is determined that the target network has a network fault after the network configuration change, and the network fault is not caused by the network configuration change.

[0064] To help users or cloud service providers understand the adverse effects of network configuration changes on the target network, during the implementation process, if the network connectivity detection results indicate that there are disconnected network paths in the target network after the network configuration change, a prompt message will be output to indicate that there is a network failure in the target network after the network configuration change.

[0065] It should be noted that, in the aforementioned embodiments, after initiating network connectivity detection of the target network in the data plane, the network connectivity detection of the target network continues at least until the network configuration change of the target network is completed, that is, it can detect the network status of the target network after the network configuration change. Furthermore, the network connectivity detection is a real-time detection of the target network.

[0066] In practical applications, to improve the accuracy of network connectivity detection, the duration of network connectivity detection for the target network can be optionally increased. That is, even after the network configuration change of the target network is completed, the network connectivity detection of the target network after the configuration change continues. The network connectivity detection of the target network stops when a preset condition is met. For example, if the network connectivity detection result of the target network indicates that there are no disconnected network paths within a preset time period after the network configuration change, then the network connectivity detection of the target network in the data plane is stopped. As another example, if the network connectivity detection result of the target network indicates that there are disconnected network paths within a preset time period after the network configuration change, and these disconnected network paths remain disconnected within the preset time period, then the network connectivity detection of the target network in the data plane is stopped.

[0067] In summary, the configuration change method provided in this embodiment of the invention first obtains network configuration change information corresponding to the target network in the control plane of the operating system providing networking services, and generates multiple sequentially executed network configuration change tasks corresponding to the network configuration change information. Among these sequentially executed network configuration change tasks is a target network configuration change task configured with a network connectivity detection trigger node. Based on this target network configuration change task, the control plane and data plane of the operating system providing networking services can be linked. Specifically, during the execution of multiple sequentially executed network configuration change tasks in the control plane, in response to the execution of the target network configuration change task in the control plane, network connectivity detection of the target network is initiated in the data plane. The network connectivity detection in the data plane can detect the actual forwarding status of user data by the target network in real time. Based on the network detection results, the network status of the target network after the network configuration change can be determined in a timely manner, thereby facilitating users or cloud service providers to take appropriate countermeasures promptly. Therefore, this solution, through the linkage of the control plane and data plane, and the network connectivity detection capability of the data plane, achieves network anomaly perception in the target network during network configuration change scenarios, improving the stability of the target network.

[0068] The above provides a method for improving the stability of a target network by focusing on how to more quickly detect whether a network fault exists after a network configuration change. This method is a post-processing approach to network configuration changes. Optionally, this embodiment also provides a method for performing pre-checks before making network configuration changes to the target network.

[0069] Figure 3 A flowchart illustrating another network configuration change method provided in this embodiment of the invention is applied to an operating system that provides networking services. This operating system includes a control plane and a data plane, such as... Figure 3As shown, it may include the following steps:

[0070] 301. Obtain network configuration change information corresponding to the target network through the control plane.

[0071] 302. In the control plane, based on the network configuration change information and the network resources currently contained in the target network, perform routing simulation on the target network to determine the target routes in the target network affected by the network configuration change information.

[0072] 303. Output the target route so that the user can determine whether to perform the network configuration change operation corresponding to the network configuration change information on the target network based on the target route.

[0073] 304. In response to determining that a network configuration change operation will be performed on the target network, generate multiple sequentially executed network configuration change tasks in the control plane corresponding to the network configuration change information.

[0074] 305. In response to the target network configuration change task being executed in the control plane, initiate network connectivity detection of the target network in the data plane; the target network configuration change task is a network configuration change task with a network connectivity detection trigger node configured among multiple sequentially executed network configuration change tasks.

[0075] 306. Based on the network connectivity detection results, determine the network status of the target network after the network configuration change.

[0076] The specific implementation process of steps 301, 305 and 306 can be referred to the aforementioned embodiments, and will not be repeated in this embodiment.

[0077] For ease of understanding, combined with Figure 4 The method for changing network configuration provided in the embodiments of the invention will be described. Figure 4 This is a schematic diagram illustrating another network configuration change scenario provided by an embodiment of the present invention. For example... Figure 4 As shown, in operating systems providing networking services, the control plane is configured with routing simulation capabilities. Based on this capability, the impact of network configuration changes on the target network can be simulated. For example, it can simulate how adding a route entry affects which routing entries in which routing tables. The impact on routing entries includes, but is not limited to, adding new routing entries, deleting old routing entries, modifying certain routing entries, and changing the next hop in a routing entry.

[0078] In the specific implementation process, the network configuration change information corresponding to the target network, as well as the network resources currently contained in the target network, are first obtained in the control plane, such as network instances, forwarding network elements, and routing tables. Then, based on the network configuration change information and the network resources currently contained in the target network, route simulation is performed on the target network to determine the target routes affected by the network configuration change information. The target routes include the routing tables that will change due to the network configuration changes, and the route entries in the routing tables. Afterwards, based on the target routes in the route simulation results, the user determines whether to perform the network configuration change operation corresponding to the network configuration change information on the target network.

[0079] The criteria for determining whether to perform network configuration change operations corresponding to the network configuration change information on the target network can be customized by the user. For example, if the user believes that the route range corresponding to the target route is large and that network configuration change operations will affect a large area of ​​the target network, the user can choose not to perform network configuration change operations corresponding to the network configuration change information on the target network; if the user believes that the route range corresponding to the target route is small and that network configuration change operations will only affect a small area of ​​the target network, the user can choose to perform network configuration change operations corresponding to the network configuration change information on the target network.

[0080] Finally, if it is determined that a network configuration change operation will be performed on the target network, multiple sequentially executed network configuration change tasks corresponding to the network configuration change information will be generated in the control plane; if it is determined that no network configuration change operation will be performed on the target network, the network configuration change for the target network will be terminated, meaning the target network will retain its original network configuration. When it is determined that a network configuration change operation will be performed on the target network, the subsequent network configuration change process can be referred to the aforementioned embodiments, and will not be repeated in this embodiment.

[0081] In summary, this embodiment, during the process of changing the network configuration of the target network, performs routing simulation on the control plane and probes the network connectivity of the target network on the data plane. This achieves both the generation of simulation results showing the impact of the network configuration change on the target network's network state and the acquisition of the actual impact of the network configuration change on user data transmission—that is, the acquisition of the target network's true network state after the configuration change. Based on the network state of the target network obtained from both the control plane and data plane, the impact of the network configuration change on the target network can be perceived comprehensively and timely from multiple dimensions, improving the stability of the target network in network configuration change scenarios.

[0082] The following describes in detail one or more embodiments of the network configuration change apparatus of the present invention. Those skilled in the art will understand that these apparatuses can all be configured using commercially available hardware components through the steps taught in this solution.

[0083] Figure 5 This is a schematic diagram of a network configuration change device provided in an embodiment of the present invention. It is applied to an operating system that provides networking services. The operating system includes a control plane and a data plane, such as... Figure 5 As shown, the device includes: an acquisition module 11, a generation module 12, and a processing module 13.

[0084] The acquisition module 11 is used to acquire network configuration change information corresponding to the target network through the control plane.

[0085] The generation module 12 is used to generate multiple sequentially executed network configuration change tasks corresponding to the network configuration change information in the control plane.

[0086] Processing module 13 is configured to initiate network connectivity detection of the target network in the data plane in response to the execution of the target network configuration change task in the control plane; the target network configuration change task is a network configuration change task configured with a network connectivity detection trigger node among the plurality of sequentially executed network configuration change tasks; and determine the network state of the target network after the network configuration change based on the network connectivity detection result.

[0087] Optionally, the device further includes a routing simulation module, which is used in the control plane to perform routing simulation on the target network based on the network configuration change information and the network resources currently contained in the target network, so as to determine the target route in the target network affected by the network configuration change information; and output the target route so that the user can determine whether to perform the network configuration change operation corresponding to the network configuration change information on the target network based on the target route.

[0088] Accordingly, the processing module 13 is specifically configured to generate, in the control plane, multiple sequentially executed network configuration change tasks corresponding to the network configuration change information in response to determining that the network configuration change operation will be performed on the target network.

[0089] Optionally, the plurality of sequentially executed network configuration change tasks include: a first network configuration change task that sends the routing configuration corresponding to the network configuration change information to the data plane; the target network configuration change task is one of a plurality of second network configuration change tasks executed before the first network configuration change task among the plurality of sequentially executed network configuration change tasks.

[0090] Optionally, the processing module 13 is further configured to generate a target log in response to the target network configuration change task being executed in the control plane; and to initiate network connectivity detection of the target network in the data plane in response to the detection of the target log.

[0091] Optionally, the processing module 13 is further configured to obtain the source address and destination address corresponding to the user data; and determine the network connectivity of at least one network path between the source address and the destination address.

[0092] Optionally, the processing module 13 is further configured to determine at least one network path between the source address and the destination address; detect data traffic flowing through the at least one network path; and determine the network connectivity of the at least one network path based on the data traffic flowing through the at least one network path.

[0093] Optionally, the processing module 13 is further configured to output a prompt message if the network connectivity detection result indicates that there is a disconnected network path in the target network after the network configuration change, so as to prompt that there is a network failure in the target network after the network configuration change.

[0094] Optionally, the processing module 13 is further configured to stop the network connectivity detection of the target network in the data plane if the network connectivity detection result indicates that there are no disconnected network paths in the target network within a preset time period after the network configuration change. Figure 5 The device shown can perform the steps described in the foregoing embodiments. For detailed execution process and technical effects, please refer to the description in the foregoing embodiments, which will not be repeated here.

[0095] In one possible design, the above Figure 5 The network configuration change device shown can be implemented as an electronic device, such as... Figure 6 As shown, the electronic device may include: a memory 21, a processor 22, and a communication interface 23. The memory 21 stores executable code, which, when executed by the processor 22, enables the processor 22 to at least implement the network configuration change method provided in the foregoing embodiments.

[0096] In addition, embodiments of the present invention provide a non-transitory machine-readable storage medium storing executable code, which, when executed by a processor of an electronic device, enables the processor to at least implement the network configuration change method provided in the foregoing embodiments.

[0097] This invention provides a computer program product, including: a computer program that, when executed by a processor of an electronic device, causes the processor to execute the network configuration change method provided in the foregoing embodiments.

[0098] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of a necessary general-purpose hardware platform, or by a combination of hardware and software. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a computer product. The present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0100] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for changing network configuration, characterized in that, An operating system used to provide networking services, the operating system including a control plane and a data plane, the method includes: The network configuration change information corresponding to the target network is obtained through the control plane. In the control plane, generate multiple sequentially executed network configuration change tasks corresponding to the network configuration change information; In response to the execution of a target network configuration change task in the control plane, a network connectivity probe of the target network is initiated in the data plane; the target network configuration change task is a network configuration change task configured with a network connectivity probe trigger node among the plurality of sequentially executed network configuration change tasks. Based on the network connectivity detection results, the network status of the target network after the network configuration change is determined.

2. The method according to claim 1, characterized in that, The method further includes: In the control plane, based on the network configuration change information and the network resources currently contained in the target network, routing simulation is performed on the target network to determine the target routes in the target network affected by the network configuration change information; The target route is output so that the user can determine whether to perform the network configuration change operation corresponding to the network configuration change information on the target network based on the target route. The generation of multiple sequentially executed network configuration change tasks corresponding to the network configuration change information in the control plane includes: In response to determining that the network configuration change operation will be performed on the target network, a plurality of sequentially executed network configuration change tasks corresponding to the network configuration change information are generated in the control plane.

3. The method according to claim 1, characterized in that, The plurality of sequentially executed network configuration change tasks include: a first network configuration change task that sends the routing configuration corresponding to the network configuration change information to the data plane; the target network configuration change task is one of a plurality of second network configuration change tasks executed before the first network configuration change task among the plurality of sequentially executed network configuration change tasks.

4. The method according to claim 1, characterized in that, The response to the target network configuration change task being executed in the control plane, initiating network connectivity detection of the target network in the data plane, includes: In response to the target network configuration change task being executed in the control plane, a target log is generated; In response to the detection of the target log, network connectivity detection of the target network is initiated in the data plane.

5. The method according to claim 1, characterized in that, The network connectivity detection of the target network includes: Obtain the source and destination addresses corresponding to the user data; Determine the network connectivity of at least one network path between the source address and the destination address.

6. The method according to claim 5, characterized in that, Determining the network connectivity of at least one network path between the source address and the destination address includes: Determine at least one network path between the source address and the destination address; Detect data traffic flowing through at least one of the network paths; The network connectivity of the at least one network path is determined based on the data traffic flowing through it.

7. The method according to claim 1, characterized in that, Determining the network state of the target network after the network configuration change based on the network connectivity detection results includes: If the network connectivity detection result indicates that the target network has disconnected network paths after the network configuration change, a prompt message is output to indicate that the target network has a network failure after the network configuration change.

8. The method according to claim 1, characterized in that, The method further includes: If the network connectivity detection result indicates that there are no disconnected network paths in the target network within a preset time period after the network configuration change, then the network connectivity detection of the target network in the data plane is stopped.

9. An electronic device, characterized in that, include: The system includes a memory, a processor, and a communication interface; wherein the memory stores executable code, which, when executed by the processor, causes the processor to perform the network configuration change method as described in any one of claims 1 to 8.

10. A non-transitory machine-readable storage medium, characterized in that, The non-transitory machine-readable storage medium stores executable code that, when executed by a processor of an electronic device, causes the processor to perform the network configuration change method as described in any one of claims 1 to 8.

11. A computer program product, characterized in that, include: A computer program, when executed by a processor of an electronic device, causes the processor to perform the network configuration change method as described in any one of claims 1 to 8.

Citation Information

Cited By

  • Cloud side end virtualization zero configuration network interconnection method and system oriented to heterogeneous link

    CN122093263A