Transaction generation method, device, electronic device and medium for automatic network operation

By obtaining the functional parameter information of network equipment for standardization and abstraction, building a network atomic capability collection and system operation templates, generating transactions to realize the automated operation of the communication network, solving the problems of high costs and high difficulty in the existing technology, and realizing automated configuration and fault repair.

CN116016232BActive Publication Date: 2025-08-19CHINA TELECOM CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211717705.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-08-19
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The existing technology cannot realize the automated operation of communication networks, resulting in high maintenance costs, high difficulty in configuration and forwarding behavior of network equipment, and easy operational errors.

Method used

By obtaining the functional parameter information of network equipment, standardized abstraction, building a collection of network atomic capabilities, and building a system operation template based on this, generating transactions to provide network services and dealing with faults, realizing automated network operations.

Benefits of technology

It realizes automated operation of the network, reduces maintenance complexity, improves operational efficiency, reduces manual intervention, and supports automated configuration, business operations and fault repair.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016232B_ABST
    Figure CN116016232B_ABST
Patent Text Reader

Abstract

The present disclosure provides a transaction generation method, device, electronic device and storage medium for automatic network operation, which relates to the field of data communication technology. Among them, the transaction generation method for automatic network operation includes: obtaining functional parameter information of each network device in the target system; based on the functional parameter information, standardizing and abstracting the functions of each network device to obtain the network atomic capability set of the target system; based on the network atomic capability set, constructing a system operation template of the target system, and setting the default parameter value of the system operation template; when receiving a user service request, generating a first transaction for providing network service based on the user service request and the system operation template. The present disclosure can generate a transaction based on the user service request and the system operation template, and the transaction can be used to provide network services and handle network failures to achieve automatic operation of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data communication technology, and in particular to a transaction generation method, device, electronic device, and storage medium for automatic network operation. Background Art

[0002] With the rapid development of the internet, communication networks are carrying more user services and connecting more physical devices, making them increasingly complex. When a device in a communication network fails, it can cause one or more other devices in the network to malfunction, generating corresponding alarms, known as derivative alarms.

[0003] Existing technologies mostly solve various network problems or provide various network services for users in the form of work orders. These problems are handled through manual judgment and manual operation by maintenance personnel, and cannot achieve automated operation. As a result, the maintenance cost of network equipment configuration and forwarding behavior is high and difficult, and it is also easy to make operational errors, which may lead to network accidents.

[0004] Based on this, how to achieve automated network operation has become a technical problem that needs to be solved urgently.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute prior art known to ordinary technicians in the field. Summary of the Invention

[0006] The present disclosure provides a transaction generation method, device, electronic device and storage medium for automatic network operation, which at least to a certain extent overcome the problem that the automatic operation of the network cannot be achieved in the related art.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.

[0008] According to one aspect of the present disclosure, a transaction generation method for automatic network operation is provided, comprising: obtaining functional parameter information of each network device in a target system; performing standardized abstraction on the functions of each network device based on the functional parameter information to obtain a network atomic capability set of the target system; constructing a system operation template of the target system based on the network atomic capability set, and setting default parameter values for the system operation template; when a user service request is received, generating a first transaction for providing network service based on the user service request and the system operation template.

[0009] In one embodiment of the present disclosure, after constructing the system operation template of the target system based on the network atomic capability set, the method further includes: when a network status change is detected, generating a second transaction for handling network failures based on the network status change and the system operation template.

[0010] In one embodiment of the present disclosure, after constructing the system operation template of the target system based on the network atomic capability set, the method also includes: obtaining the service type and combination process of the network service that the target system can provide; generating a third transaction for the operation of the target system based on the system operation template, the service type and the combination process.

[0011] In one embodiment of the present disclosure, a first transaction for providing network services is generated based on the user service request and the system operation template, including: generating template configuration parameters based on the user service request; configuring the system operation template based on the template configuration parameters to obtain the first transaction for providing network services.

[0012] In one embodiment of the present disclosure, the method further includes: when the target transaction is executed on the target network device, obtaining status information of the target network device, wherein the target transaction is a first transaction, a second transaction, or a third transaction; judging whether the system operation template is in a normal state based on the status information of the target network device, and obtaining a status determination result of the system operation template; and performing a transaction status migration on the target transaction based on the status determination result, wherein the transaction status includes draft, pending execution, executing, partial failure, total failure, success, and end.

[0013] In one embodiment of the present disclosure, the method further includes: when the transaction status of the target transaction is draft, determining the operation time and / or triggering condition of the target transaction; and when the operation time and / or the triggering condition are met, migrating the transaction status of the target transaction to pending execution.

[0014] In one embodiment of the present disclosure, the method further includes: executing a target transaction whose transaction status is pending execution, and determining whether all operations included in the target transaction are successfully executed; when all operations included in the target transaction are successfully executed, migrating the transaction status of the target transaction to success; when some operations included in the target transaction fail to execute, migrating the transaction status of the target transaction to partial failure; when all operations included in the target transaction fail to execute, migrating the transaction status of the target transaction to complete failure.

[0015] In one embodiment of the present disclosure, the method further includes: judging the validity of the target transaction to obtain the transaction validity of the target transaction, wherein the transaction validity is a single transaction or a long-term transaction; when the transaction validity of the target transaction is a single transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to end; when the transaction validity of the target transaction is a long-term transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to pending execution, waiting for the next execution of the target transaction.

[0016] In one embodiment of the present disclosure, the method further includes: when the transaction status of the target transaction is partially failed, processing the target transaction through the following steps: after rolling back some operations that were successfully executed in the target transaction, migrating the transaction status of the target transaction to pending execution; or, migrating the transaction status of the target transaction to executing, and executing some operations that failed to be executed in the target transaction separately; or, after canceling the execution of some operations that failed to be executed in the target transaction, migrating the transaction status of the target transaction to ended.

[0017] In one embodiment of the present disclosure, the method further includes: when the transaction status of the target transaction is completely failed, processing the target transaction through the following steps: after rolling back all operations in the target transaction, migrating the transaction status of the target transaction to pending execution; or, after canceling the execution of all operations in the target transaction, migrating the transaction status of the target transaction to ended.

[0018] In one embodiment of the present disclosure, the method also includes: executing the target transaction through the following steps: starting a configuration generation thread according to the target transaction, wherein the configuration generation thread is used to obtain the device exclusive lock according to the lock resource scheduling logic, and then calling the service demand data to obtain the network configuration of the lock-occupying device; using the configuration generation thread to obtain the current configuration of the target network device involved in executing the target transaction, and the service parameters of the network service corresponding to the target transaction; generating a distributed configuration of the target network device based on the current configuration and the service parameters; and sending the distributed configuration to the target device based on the service parameter generation situation.

[0019] According to another aspect of the present disclosure, a transaction generation device for automatic network operation is provided, including: an information acquisition module for acquiring functional parameter information of each network device in a target system; an atomic capability abstraction module for performing standardized abstraction of the functions of each network device based on the functional parameter information to obtain a set of network atomic capabilities of the target system; an operation template module for constructing a system operation template of the target system based on the network atomic capability set and setting default parameter values of the system operation template; and a transaction management module for generating a first transaction for providing network services based on the user service request and the system operation template when a user service request is received.

[0020] In one embodiment of the present disclosure, the transaction management module is further configured to generate a second transaction for handling a network failure based on the network status change and the system operation template when a network status change is detected.

[0021] In one embodiment of the present disclosure, the transaction management module is further used to obtain the service type and combination process of the network service that the target system can provide; and generate a third transaction for the operation of the target system based on the system operation template, the service type and the combination process.

[0022] In one embodiment of the present disclosure, the transaction management module is further configured to generate template configuration parameters according to the user service request; configure the system operation template according to the template configuration parameters to obtain a first transaction for providing network services.

[0023] In one embodiment of the present disclosure, the above-mentioned transaction management module is also used to obtain the status information of the target network device when the target transaction is executed on the target network device, wherein the target transaction is the first transaction, the second transaction or the third transaction; based on the status information of the target network device, determine whether the system operation template is in a normal state, and obtain the status determination result of the system operation template; based on the status determination result, perform state migration of the transaction state of the target transaction, wherein the transaction state includes draft, to be executed, executing, partial failure, total failure, success and end.

[0024] In one embodiment of the present disclosure, the above-mentioned transaction management module is also used to determine the operation time and / or trigger conditions of the target transaction when the transaction status of the target transaction is draft; and when the operation time and / or the trigger conditions are met, the transaction status of the target transaction is migrated to pending execution.

[0025] In one embodiment of the present disclosure, the transaction management module is further configured to execute a target transaction whose transaction status is pending, and determine whether all operations included in the target transaction are successfully executed; when all operations included in the target transaction are successfully executed, the transaction status of the target transaction is migrated to success; when some operations included in the target transaction fail to execute, the transaction status of the target transaction is migrated to partial failure; and when all operations included in the target transaction fail to execute, the transaction status of the target transaction is migrated to total failure.

[0026] In one embodiment of the present disclosure, the above-mentioned transaction management module is further used to judge the validity of the target transaction to obtain the transaction validity of the target transaction, wherein the transaction validity is a single transaction or a long-term transaction; when the transaction validity of the target transaction is a single transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to end; when the transaction validity of the target transaction is a long-term transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to pending execution, waiting for the next execution of the target transaction.

[0027] In one embodiment of the present disclosure, the above-mentioned transaction management module is also used to process the target transaction through the following steps when the transaction status of the target transaction is partially failed: after rolling back the part of the operations that were successfully executed in the target transaction, the transaction status of the target transaction is migrated to pending execution; or, the transaction status of the target transaction is migrated to executing, and the part of the operations that failed to be executed in the target transaction is executed separately; or, after canceling the execution of the part of the operations that failed to be executed in the target transaction, the transaction status of the target transaction is migrated to ended.

[0028] In one embodiment of the present disclosure, the above-mentioned transaction management module is also used to process the target transaction through the following steps when the transaction status of the target transaction is completely failed: after rolling back all operations in the target transaction, the transaction status of the target transaction is migrated to pending execution; or, after canceling the execution of all operations in the target transaction, the transaction status of the target transaction is migrated to ended.

[0029] In one embodiment of the present disclosure, the above-mentioned transaction management module is further used to execute the target transaction through the following steps: starting a configuration generation thread according to the target transaction, wherein the configuration generation thread is used to obtain the device exclusive lock according to the lock resource scheduling logic, and then calling the service demand data to obtain the network configuration of the lock-occupying device; using the configuration generation thread to obtain the current configuration of the target network device involved in executing the target transaction, and the service parameters of the network service corresponding to the target transaction; generating a distributed configuration of the target network device based on the current configuration and the service parameters; and sending the distributed configuration to the target device based on the service parameter generation situation.

[0030] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned transaction generation method for automatic network operation by executing the executable instructions.

[0031] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the transaction generation method for automatic network operation is implemented.

[0032] The embodiments of the present disclosure provide a transaction generation method, device, electronic device, and storage medium for automatic network operation, wherein the transaction generation method for automatic network operation includes: obtaining functional parameter information of each network device in the target system; based on the functional parameter information, performing standardized abstraction on the functions of each network device to obtain a set of network atomic capabilities of the target system; based on the set of network atomic capabilities, constructing a system operation template for the target system and setting default parameter values for the system operation template; when a user service request is received, generating a first transaction for providing network services based on the user service request and the system operation template. The present disclosure can generate a transaction based on the user service request and the system operation template, and the transaction can be used to provide network services and handle network failures to achieve automatic network operation.

[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0035] Figure 1A schematic diagram showing a communication system structure according to an embodiment of the present disclosure is provided;

[0036] Figure 2 A flow chart of a transaction generation method for automatic network operation according to an embodiment of the present disclosure is shown;

[0037] Figure 3 A schematic diagram of a transaction generation method for automatic network operation according to an embodiment of the present disclosure is shown;

[0038] Figure 4 A schematic diagram of a transaction automatic state machine according to an embodiment of the present disclosure is shown;

[0039] Figure 5 A schematic diagram of a transaction draft state in an embodiment of the present disclosure is shown;

[0040] Figure 6 A schematic diagram of a transaction to be executed in an embodiment of the present disclosure is shown;

[0041] Figure 7 A schematic diagram of a transaction execution state in an embodiment of the present disclosure is shown;

[0042] Figure 8 A schematic diagram showing a successful transaction state in an embodiment of the present disclosure is shown;

[0043] Figure 9 A schematic diagram showing a state where all transactions fail in an embodiment of the present disclosure is shown;

[0044] Figure 10 A schematic diagram of a partial transaction failure state in an embodiment of the present disclosure is shown;

[0045] Figure 11 A schematic diagram of a transaction end state in an embodiment of the present disclosure is shown;

[0046] Figure 12 A schematic diagram showing structural information of a network atomic capability according to an embodiment of the present disclosure is shown;

[0047] Figure 13 A schematic diagram of a basic configuration template for a backbone relay according to an embodiment of the present disclosure is shown;

[0048] Figure 14 A schematic diagram of transaction status processing tracking in an embodiment of the present disclosure is shown;

[0049] Figure 15 A schematic diagram showing a transaction generation device for automatic network operation according to an embodiment of the present disclosure; and

[0050] Figure 16 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0051] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0052] In addition, the accompanying drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0053] As mentioned in the background technology, existing technologies mostly solve various network problems or provide various network services for users in the form of work orders. These are handled through manual judgment and manual operation by maintenance personnel, and cannot achieve automated operation. As a result, the maintenance cost of network equipment configuration and forwarding behavior is high and difficult, and it is also easy to make operational errors, which may lead to network accidents.

[0054] In existing automation solutions, the actions of the automation process are hidden from users. Users are unclear about the specific execution process and have difficulty identifying the location and cause of execution failures. Building backbone network automation requires automated judgment and operation of device configuration and forwarding behavior, as well as accurate assessment of the impact of automated operations on device behavior. This requires control over network automation processes, visibility into automation processes and failure causes, and the ability to assess execution status and results to optimize operational processes.

[0055] Based on this, the embodiments of the present disclosure provide a transaction generation method, device, electronic device, and storage medium for automatic network operation. These methods can perform a unified abstraction of various network device configurations and operations to obtain a set of network atomic capabilities. Based on the set of network atomic capabilities, a general system operation template is constructed. The operations and processes of transactions are constructed according to the system operation template. A transaction can contain several sub-transactions, thereby realizing network automation services through transaction construction. Through the transaction automatic state machine migration mechanism, functions such as automatic generation of configuration parameters, automatic execution of business operations, automatic processing of monitoring status, and automatic repair of fault errors are realized. Furthermore, through analysis of the operation status of transaction processing and iterative correction of the system, autonomous driving of the network is gradually realized.

[0056] The present disclosure can realize autonomous driving of IP SDN network based on IP (Internet Protocol) SDN (Software Defined Network) controller, SDN devices and controller, transaction construction and state migration, thereby simplifying the workload of network operation in SDN network, reducing the complexity of network maintenance, improving network operation efficiency, saving network operation and maintenance costs, and achieving automatic operation of IP network.

[0057] Figure 1 A schematic diagram shows an exemplary system architecture of a transaction generation method or a transaction generation device for automatic network operation that can be applied to an embodiment of the present disclosure.

[0058] like Figure 1 As shown, the system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 .

[0059] The network 104 is a medium for providing a communication link between the terminal devices 101 , 102 , 103 and the server 105 , and can be a wired network or a wireless network.

[0060] Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. can be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.

[0061] The terminal devices 101 , 102 , and 103 may be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, and the like.

[0062] Optionally, the client of the application installed in different terminal devices 101, 102, and 103 is the same, or the client of the same type of application based on different operating systems. Based on different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile phone client, a PC client, etc.

[0063] The server 105 may be a server that provides various services, such as a background management server that provides support for devices operated by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received requests and other data, and feed back the processing results to the terminal device.

[0064] Optionally, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to these. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0065] Those skilled in the art will know that Figure 1 The number of terminal devices, networks, and servers in the embodiment is merely illustrative, and any number of terminal devices, networks, and servers may be provided based on actual needs. This embodiment of the present disclosure does not limit this.

[0066] This exemplary implementation is described in detail below with reference to the accompanying drawings and examples.

[0067] First, an embodiment of the present disclosure provides a transaction generation method for automatic network operation, which can be executed by any electronic device with computing and processing capabilities.

[0068] Figure 2 A flowchart of a transaction generation method for network automatic operation in an embodiment of the present disclosure is shown. Figure 2 As shown, the transaction generation method for network automatic operation provided in the embodiment of the present disclosure includes the following steps:

[0069] S202: Acquire function parameter information of each network device in the target system.

[0070] It should be noted that the target system can be any system used to provide network services, and the network equipment can be equipment with various network functions, such as various network elements, access and mobility management function (AMF, Access and Mobility Management Function), unified data management (UDM, Unified Data Management), network exposure function (NEF, Network Exposure Function), network storage function (NRF, Network Repository Function), user plane function (UPF, User Plane Function), policy control function (PCF, Policy Control Function), etc.; the function parameter information can be data or parameters used to characterize the function of the network device, and can be at least one of the version function and parameter configuration of the network device.

[0071] In one embodiment of the present disclosure, system information of a target system may be monitored and collected in real time, and functional parameter information of each network device in the target system may be checked to obtain functional parameter information of each network device in the target system.

[0072] S204 , performing standardized abstraction on the functions of each network device according to the functional parameter information to obtain a set of network atomic capabilities of the target system.

[0073] It should be noted that the network atomic capability set may include multiple network atomic capabilities, and the network atomic capability may be IFM capability, QoS (Quality of Service) capability or SR (Segment Routing) capability.

[0074] In one embodiment of the present disclosure, based on the functional parameter information, the functions of each network device are standardized and abstracted to obtain the network atomic capability set of the target system, which may include: based on the functional parameter information, the functions of each network device are standardized and abstracted at the network element level to obtain the network atomic capability set of the target system; wherein the standardized abstraction may be a functional abstraction or a parameter configuration abstraction, and the network atomic capability set may include a first network atomic capability set and a second network atomic capability set. For example, when the standardized abstraction is a functional abstraction, the intersection of the manufacturer version functions of each network device is taken, and the basic network capabilities are abstracted according to the standard YANG model to obtain the first network atomic capability set; when the standardized abstraction is a parameter configuration abstraction, the collection of the manufacturer-declared versions of each network device is taken, and the basic network capabilities are abstracted according to the standard YANG model to obtain the second network atomic capability set.

[0075] In one embodiment of the present disclosure, based on the functional parameter information, the functions of each network device are standardized and abstracted to obtain the network atomic capability set of the target system, which may include: based on the functional parameter information, the CLI (Command Line Interface) or YANG interface of each network device is uniformly abstracted to obtain the network atomic capability set of the target system. Here, the CLI or YANG interface of network devices of different manufacturers can be uniformly abstracted by the atomic capability abstraction module of the IP SDN controller system, that is, the basic universal capabilities of the network element level of the network device are uniformly abstracted to generate the network atomic capability set of the controller's basic operations on the forwarder network element. The basic universal capabilities of the network element level of the network device are uniformly abstracted, for example, different raw materials are integrated into standard parts or bricks, such as the standard SRv6 configuration function.

[0076] S206: Construct a system operation template for the target system based on the network atomic capability set, and set default parameter values for the system operation template.

[0077] It should be noted that the system operation template can be at least one of a backbone relay template and a network EVPN template. The template structure of the system operation template can be a YANG structure or a tree structure to facilitate transaction construction. When the system operation template is a backbone relay template, the default parameter value of the system operation template can be an IFM default value. The system operation template of the target system is constructed based on the network atomic capability set. For example, standard parts or bricks are built into standard general prefabricated parts. For example, in the device deployment template, basic configuration models such as AAA (Authentication Authorization Accounting), routing policy, IGP (Interior Gateway Protocol), network element equipment, SRv6 (Segment Routing IPv6), BGP (Border Gateway Protocol), interface, QoS, etc. are prefabricated.

[0078] S208: When a user service request is received, a first transaction for providing network service is generated according to the user service request and the system operation template.

[0079] It should be noted that the user service request may include information about the network service required to be provided to the user; the network service may be a network application service used to provide standardized and open services, and may be at least one of device online, relay activation, EVPN (Ethernet Virtual Private Network) / SRv6 deployment, performance collection, device or network inspection, fault alarm processing, path tuning, and traffic adjustment; the first transaction (or the target transaction, second transaction, third transaction, transaction in the embodiment of the present disclosure) may be a simple command or configuration operation; it may also be a collection of end-to-end configurations of a complete service; it may also be a complex transaction composed of multiple sub-transactions, where the sub-transactions are several services or operations in the corresponding network service, such as multi-dimensional inspections, perception of network faults, alarm display or automatic processing, etc.

[0080] When initiating a transaction, specific template configuration parameters are automatically generated in real time based on network service requirements and the target system's system information. A transaction state machine can be used to manage related transactions. Transaction management encompasses both network service responses and transaction execution. Transaction state transitions can be performed based on network device status feedback. Transaction management supports analysis of transaction execution based on network status and transaction corrections, ultimately achieving the long-term goal of autonomous and self-healing network automation. Specifically, this system automatically generates configuration parameters corresponding to user services, automatically executes user service operations, supports automated processing of system monitoring status, and provides automatic repair of faults and errors throughout the network service lifecycle. Through transaction management, autonomous network automation is achieved.

[0081] It should be noted that the service capabilities of network services can be provided to users through standard open interfaces and interfaces. Users can use the corresponding functions of network services according to their needs, operate the interface or call the interface. When a user service request is received, or the network status changes, the corresponding transaction generation process is triggered to automatically configure, detect, collect and troubleshoot the network. In one embodiment of the present disclosure, a service document can be created through the service opening module, and the range of network devices that may be operated can be determined; the transaction management module creates a transaction, specifies the transaction scheduling operation time and adds it to the scheduler for scheduling; the transaction management scheduler opens a new thread according to the set time and trigger conditions to implement device configuration, collection, control, and maintenance operations; the transaction layer execution operation of the acquisition and control conversion module is effective in real time.

[0082] Building transactions for providing network services based on system operation templates is like assembling the aforementioned prefabricated components into a product and basic processing flow that meets user needs. For example, in a transaction for bringing a device online, templates for basic network device configuration, RR (Route Reflector) neighbor creation, RR configuration, route announcement, resource writeback, connectivity testing, and redundant configuration removal are assembled into a single transaction. Simultaneously, the automatic execution sequence and strategy for each business operation step in the transaction are determined. At the start of the transaction, specific configuration parameter values are automatically generated in real time based on service requirement data and system environment information. Furthermore, templates can be combined into corresponding processing based on the system's monitoring status, thereby supporting the system's automatic processing when providing network services. Furthermore, the present disclosure can also provide automatic modification operations and transaction state migration for faults and errors that occur during service provision, based on template capabilities, thereby enabling automatic fault and error correction. Thus, the present disclosure can automatically process various network faults and provide various network services based on transactions, eliminating the need for human intervention during the operation process and thus achieving automated network operation.

[0083] In one embodiment of the present disclosure, see Figure 3 The diagram shows a transaction generation method for automatic network operation. By standardizing and abstracting the functions of each network device in the target system, a set of network atomic capabilities of the target system is obtained; based on the set of network atomic capabilities, a system operation template of the target system is constructed; service capabilities can be opened to network users, and user service requests of network users can be standardizedly mapped to achieve functions such as automatic generation of configuration parameters, automatic execution of business operations, automatic processing of monitoring status, and automatic repair of fault errors.

[0084] The present disclosure can follow the following scheme: 1. In actual operation, there may be multiple transactions operating on multiple devices, and there are intersections on the devices; 2. The device configuration does not support multi-threaded operations; 3. The transaction scheduling layer does not need to understand the upper-layer services, but only needs to perform template and atomic capability analysis; 4. There is no dependency between the operations of each independent service, and they are independent of each other.

[0085] The present disclosure may be based on the following design principles: 1. Treating devices as resources that do not support concurrency, and providing exclusive lock semantics for device configuration changes; 2. The transaction layer generates configurations based on service requirements; 3. Maintaining a device configuration storage system [network element device implementation {providing a device configuration get_config interface} or upper-layer code implementation (needs to maintain consistency with device configuration semantics, generally through timed collection)].

[0086] In one embodiment of the present disclosure, after constructing a system operation template of the target system based on a set of network atomic capabilities and setting default parameter values of the system operation template, the above method may further include: based on the system operation template, constructing transactions that the target system needs to run according to the functional types, combination processes and error handling solutions of different network services.

[0087] The embodiments of the present disclosure provide that the present disclosure can generate transactions based on user service requests and system operation templates, and the transactions can be used to provide network services and handle network failures to achieve automated operation of the network.

[0088] In one embodiment of the present disclosure, after constructing a system operation template of the target system based on a set of network atomic capabilities, the method further includes: when a network status change is detected, generating a second transaction for handling network failures based on the network status change and the system operation template.

[0089] In one embodiment of the present disclosure, after constructing a system operation template of the target system based on a set of network atomic capabilities, the above method further includes: obtaining the service type and combination process of the network service that the target system can provide; and generating a third transaction for the operation of the target system based on the system operation template, service type and combination process.

[0090] In one embodiment of the present disclosure, a first transaction for providing network services is generated based on a user service request and a system operation template, including: generating template configuration parameters based on the user service request; configuring the system operation template based on the template configuration parameters to obtain the first transaction for providing network services.

[0091] In one embodiment of the present disclosure, the above method also includes: when the target transaction is executed on the target network device, obtaining the status information of the target network device, wherein the target transaction is the first transaction, the second transaction or the third transaction; judging whether the system operation template is in a normal state based on the status information of the target network device, and obtaining a status determination result of the system operation template; and performing a state migration of the transaction state of the target transaction based on the status determination result, wherein the transaction state includes draft, pending execution, executing, partial failure, total failure, success and end.

[0092] It should be noted that the target transaction can be used for automatic operation of the IP network to provide users with a variety of network services.

[0093] In one embodiment of the present disclosure, see Figure 4 The diagram shows a transaction automation state machine. Transaction management, based on the system's transaction automation state machine mechanism, automatically connects to network devices and executes the corresponding transaction operations. If a transaction fails, the failure reason is returned to the transaction management module. The transaction management module then collaborates with the service provisioning module, and the service layer presents this information to the user. When the transaction is operating normally on the device, the system operation template is used to synchronously obtain device status information for each network device and determine whether the corresponding system operation template is normal. Based on the status determination of the system operation template, the transaction state is then migrated. Based on the transaction migration status, the service layer is then linked to perform business scenario writebacks based on the transaction status. Service completion status information is then fed back to the user. Once all related transactions are successfully executed, the customer's service request, such as service activation, is fulfilled. During the transaction execution process, the system supports full-process transactional visualization. If a transaction fails, the failed process location and status information are clearly displayed.

[0094] In one embodiment of the present disclosure, see Figures 5 to 11 , Figure 5 A diagram of a transaction draft state. Figure 6 A diagram of a transaction waiting to be executed. Figure 7 A diagram showing the state of a transaction execution. Figure 8 A diagram of a successful transaction state. Figure 9 A diagram showing a complete failure state of a transaction. Figure 10 A schematic diagram of a partial transaction failure state. Figure 11 This is a diagram of a transaction end state.

[0095] In one embodiment of the present disclosure, the network atomic capability set includes multiple network atomic capabilities. The schematic diagram of the structural information of the network atomic capability can be found in Figure 12 .

[0096] In one embodiment of the present disclosure, the above method further includes: when the transaction status of the target transaction is a draft, determining the operation time and / or triggering conditions of the target transaction; and when the operation time and / or triggering conditions are met, migrating the transaction status of the target transaction to pending execution. It should be noted that when the initial transaction status of the transaction is a draft, the transaction in the draft state can be edited. After saving and confirming the draft and selecting the execution method (immediate or scheduled, triggering conditions, etc.), the transaction status of the transaction is migrated to pending execution. After the transaction meets the execution conditions, the transaction is started and the transaction status of the transaction is migrated to executing. At this time, the operations on the network device edited in the relevant transaction will be specifically executed.

[0097] In one embodiment of the present disclosure, the above method also includes: executing a target transaction whose transaction status is pending execution, and determining whether all operations included in the target transaction are successfully executed; when all operations included in the target transaction are successfully executed, migrating the transaction status of the target transaction to success; when some operations included in the target transaction fail to execute, migrating the transaction status of the target transaction to partial failure; when all operations included in the target transaction fail to execute, migrating the transaction status of the target transaction to complete failure.

[0098] It should be noted that the execution of a transaction involves the following state transitions: from "In Progress" to "Ended", "In Progress" to "Partial Failure", "In Progress" to "Total Failure", and "In Progress" to "Successful". When all operations in the transaction are successfully executed, the transaction state transitions to "Successful", thus completing the processing of this transaction. After successful processing, the transaction needs to be judged for validity. If it is a single transaction, the transaction state transitions to "Ended". If it is a long-term transaction, the transaction state transitions to "Pending Execution", awaiting the next execution. When some operations in the transaction succeed and some fail, the transaction state transitions to "Partial Failure". When all operations in the transaction fail, the transaction state transitions to "Total Failure".

[0099] In one embodiment of the present disclosure, the above method also includes: judging the validity of the target transaction to obtain the transaction validity of the target transaction, wherein the transaction validity is a single transaction or a long-term transaction; when the transaction validity of the target transaction is a single transaction, after all operations included in the target transaction are successfully executed, the transaction status of the target transaction is migrated to end; when the transaction validity of the target transaction is a long-term transaction, after all operations included in the target transaction are successfully executed, the transaction status of the target transaction is migrated to pending execution, waiting for the next execution of the target transaction.

[0100] In one embodiment of the present disclosure, the above method also includes: when the transaction status of the target transaction is partially failed, processing the target transaction through the following steps: after rolling back some operations that were successfully executed in the target transaction, migrating the transaction status of the target transaction to pending execution; or, migrating the transaction status of the target transaction to executing, and executing some operations that failed to be executed in the target transaction separately; or, after canceling some operations that failed to be executed in the target transaction, migrating the transaction status of the target transaction to ended.

[0101] It should be noted that for transactions in a partially failed state, the present disclosure supports three processing methods, that is, there are three state migration paths. One is to roll back the part of the operation that was successfully executed in this transaction, and then migrate the transaction state to the pending state, that is, this transaction can be executed again. One is to execute the part of the operation that failed in this transaction again separately, that is, the state of this transaction will be migrated to the executing state. There is another one, that is, the reason for the execution failure may be insufficient system resources, or network equipment failure, etc., when this transaction no longer has the conditions for successful execution. The present disclosure supports cancellation processing for transactions in a partially failed state, so that the state of this transaction will be migrated to the end state. When a transaction in a partially failed state is canceled, the part of the operation that has been successfully executed in this transaction will also cause the system to roll back processing.

[0102] In one embodiment of the present disclosure, the above method also includes: when the transaction status of the target transaction is completely failed, processing the target transaction through the following steps: after rolling back all operations in the target transaction, migrating the transaction status of the target transaction to pending execution; or, after canceling all operations in the target transaction, migrating the transaction status of the target transaction to ended.

[0103] It should be noted that for transactions in a completely failed state, the present disclosure supports two processing methods, that is, there are two state migration paths. One is to roll back the transaction, at which point the transaction state is migrated to a pending state, that is, the transaction can be executed again. The other is when the reason for the execution failure may be insufficient system resources or network equipment failure, and the transaction no longer has the conditions for successful execution, the present disclosure supports canceling transactions that are in a completely failed state, so that the state of the transaction will be migrated to an ended state. For ended transactions, the present disclosure supports optimizing and modifying the transaction based on network resource conditions, network status performance, transaction execution efficiency, and changes in user needs, thereby generating a new transaction draft, that is, the transaction state is migrated to a draft state, and the iterative optimization of the transaction is completed.

[0104] In one embodiment of the present disclosure, the method also includes: executing the target transaction through the following steps: starting a configuration generation thread according to the target transaction, wherein the configuration generation thread is used to obtain the device exclusive lock according to the lock resource scheduling logic, and then calling the service demand data to obtain the network configuration of the lock-occupying device; using the configuration generation thread to obtain the current configuration of the target network device involved in executing the target transaction, and the service parameters of the network service corresponding to the target transaction; generating a distributed configuration of the target network device based on the current configuration and service parameters; and sending the distributed configuration to the target device based on the service parameter generation situation.

[0105] It should be noted that: 1. Configuration generation logic: 1) The transaction scheduler starts the configuration generation thread on time (set by the service layer). The thread is responsible for obtaining the device exclusive lock according to the lock resource scheduling logic, and then calling the service demand data to obtain the network configuration of the exclusive lock device; 2) The transaction management obtains the current configuration of the corresponding network device based on the current service parameters and the system acquisition and control conversion module, and generates the configuration for the current network device {whether the current device meets the conditions and N (n>=0) and the configuration sequence (the configuration sequence is executed in sequence)}, and the transaction layer stores and maintains the configuration; 3) The transaction scheduling layer issues the configuration based on the parameter generation situation or notifies the service to cancel (there is a device that does not meet the execution conditions) or the business has been configured (the operating devices have completed the configuration of the current business). 2. Configuration issuance logic: 1) The transaction starts multiple threads to update the configuration of each device, and executes them in sequence according to the configuration sequence of each device. If any configuration fails to be issued, the subsequent configuration issuance execution is interrupted and the reason for the failure is stored (device error or transaction layer error); 2) After the transaction scheduling layer completes the configuration issuance of the current device, it triggers the acquisition and control conversion module to synchronize the current device configuration logic and unlock the device. 3. Service callback logic: After the transaction scheduling layer completes the configuration of all devices, it notifies the service layer to complete the configuration.

[0106] The transaction maintenance interface disclosed in the present invention can support the following capabilities: 1. Provide the progress of multiple device configuration changes from a business perspective; 2. Provide a list of activated services from a device perspective; 3. Provide an interface for viewing and maintaining configuration scripts for each configuration sequence. That is, for automated business scenarios associated with transactions, the process status of the corresponding scenario can be graphically presented based on the processing template of the associated transaction, the relevant status of the transaction automatic state machine, and the feedback status information of the network device. The SDN controller system, in accordance with the method disclosed in the present invention, defines the automation scenario of user services, and realizes the linkage between network service automation scenarios and transaction management in the transaction management based on the transaction function template and the automatic processing mechanism of the transaction automatic state machine, thereby ultimately achieving the automatic operation of network services and realizing the blueprint of network autonomy and self-healing.

[0107] This disclosure can be applied to at least the following scenarios: 1. All future autonomous IPSDN scenarios, including but not limited to existing automated service provisioning such as automatic device onboarding, backbone relays, VPN relays, single-ended relays, and SR paths. 2. Automated data communication network monitoring systems, such as network inspections and controller system management. 3. Autonomous data communication network scenarios, enabling automated adjustments to network traffic and quality, and automated handling of network fault alarms.

[0108] In one embodiment of the present disclosure, in a telecommunications data communication network, after a network device is online, a backbone relay circuit and a VPN relay are opened. The backbone relay circuit can be configured using a backbone relay basic configuration template. Figure 13 The diagram of a backbone relay basic configuration template is shown. That is, the automation scenario at this time is the backbone relay activation scenario. This disclosure supports creating a new backbone relay creation transaction in transaction management. This is the draft of the backbone relay creation transaction. After saving the transaction, this transaction is in the pending execution state. After the backbone relay transaction is executed, relevant processing will be carried out according to the specific steps of the transaction, see Figure 14 The diagram shows a transaction status processing tracking diagram, including resource allocation, basic configuration, relay testing, protocol loading, and resource rewriting.

[0109] Resource allocation involves resource pre-allocation and management for related transactions. By editing and combining templates, operational information for related transactions is obtained. For transactions involving backbone relay activation, the primary operation is the issuance of basic configurations. After configuration is complete, the next step in the transaction involves testing the relay configuration to confirm its accuracy. After the relay test passes, the transaction proceeds to protocol loading, also through template editing, to load the required protocol onto the network device. After successful protocol loading, the transaction proceeds to rewrite the backbone relay resources.

[0110] The activation of backbone relays can present complete automated scenario process tracking information based on historical transaction management information, improving the automated monitoring capabilities of data communication networks. Furthermore, through transaction processing efficiency analysis, the specific operations and steps of transactions can be modified and optimized, thereby improving the automation efficiency and level of the network system. This disclosure can also be used to perform related transaction processing for scenarios such as device online, VPN (Virtual Private Network) relay, SR deployment, network inspection, traffic adjustment, and fault handling. Thus, through the IP SDN controller, the system capability of network autonomous driving can be gradually built.

[0111] Based on the same inventive concept, the present disclosure also provides a transaction generation device for network automatic operation, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0112] Figure 15 A schematic diagram of a transaction generation device for automatic network operation in an embodiment of the present disclosure is shown. Figure 15 As shown, the device includes:

[0113] Information acquisition module 1510, used to obtain functional parameter information of each network device in the target system;

[0114] Atomic capability abstraction module 1520 is used to perform standardized abstraction of the functions of each network device based on the functional parameter information to obtain the network atomic capability set of the target system;

[0115] The operation template module 1530 is used to construct a system operation template of the target system according to the network atomic capability set and set default parameter values of the system operation template;

[0116] The transaction management module 1540 is configured to generate a first transaction for providing network services according to the user service request and the system operation template when receiving the user service request.

[0117] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to generate a second transaction for handling a network failure based on the network status change and a system operation template when a network status change is detected.

[0118] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to obtain the service type and combination process of the network service that the target system can provide; and generate a third transaction for the target system to run according to the system operation template, service type and combination process.

[0119] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to generate template configuration parameters according to a user service request; configure a system operation template according to the template configuration parameters, and obtain a first transaction for providing a network service.

[0120] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to obtain status information of the target network device when the target transaction is executed on the target network device, wherein the target transaction is the first transaction, the second transaction, or the third transaction; determine whether the system operation template is in a normal state based on the status information of the target network device, and obtain a status determination result of the system operation template; and perform a transaction status migration on the target transaction based on the status determination result, wherein the transaction status includes draft, pending execution, executing, partial failure, total failure, success, and end.

[0121] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to determine the operation time and / or triggering conditions of the target transaction when the transaction status of the target transaction is draft; and to migrate the transaction status of the target transaction to pending execution when the operation time and / or triggering conditions are met.

[0122] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to execute a target transaction whose transaction status is pending, and determine whether all operations included in the target transaction are successfully executed; when all operations included in the target transaction are successfully executed, the transaction status of the target transaction is migrated to success; when some operations included in the target transaction fail to execute, the transaction status of the target transaction is migrated to partial failure; and when all operations included in the target transaction fail to execute, the transaction status of the target transaction is migrated to complete failure.

[0123] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to determine the validity of the target transaction to obtain the transaction validity of the target transaction, wherein the transaction validity is a single transaction or a long-term transaction. When the transaction validity of the target transaction is a single transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to "Ended." When the transaction validity of the target transaction is a long-term transaction, after all operations included in the target transaction are successfully executed, the transaction state of the target transaction is migrated to "To Be Executed," waiting for the next execution of the target transaction.

[0124] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to process the target transaction through the following steps when the transaction status of the target transaction is partially failed: after rolling back some operations that were successfully executed in the target transaction, the transaction status of the target transaction is migrated to pending execution; or, after migrating the transaction status of the target transaction to executing, the operations that failed to be executed in the target transaction are executed separately; or, after canceling some operations that failed to be executed in the target transaction, the transaction status of the target transaction is migrated to ended.

[0125] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to process the target transaction by performing the following steps when the transaction status of the target transaction is completely failed: after rolling back all operations in the target transaction, migrating the transaction status of the target transaction to pending execution; or, after canceling all operations in the target transaction, migrating the transaction status of the target transaction to ended.

[0126] In one embodiment of the present disclosure, the transaction management module 1540 is further configured to execute a target transaction through the following steps: starting a configuration generation thread according to the target transaction, wherein the configuration generation thread is configured to obtain a device exclusive lock according to the lock resource scheduling logic, and then call service demand data to obtain the network configuration of the lock-occupying device; using the configuration generation thread to obtain the current configuration of the target network device involved in executing the target transaction, and the service parameters of the network service corresponding to the target transaction; generating a dispatched configuration for the target network device based on the current configuration and service parameters; and sending the dispatched configuration to the target device based on the service parameter generation situation.

[0127] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be implemented in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits," "modules," or "systems."

[0128] Refer to the following Figure 16 16 is a diagram to describe an electronic device 1600 according to this embodiment of the present disclosure. Figure 16 The electronic device 1600 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0129] like Figure 16 As shown, electronic device 1600 is implemented as a general-purpose computing device. Components of electronic device 1600 may include, but are not limited to, the aforementioned at least one processing unit 1610, the aforementioned at least one storage unit 1620, and a bus 1630 connecting various system components (including storage unit 1620 and processing unit 1610).

[0130] The storage unit stores program code, which can be executed by the processing unit 1610, so that the processing unit 1610 performs the steps described in the "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 1610 can perform the following steps of the above-mentioned method embodiment: obtaining functional parameter information of each network device in the target system; based on the functional parameter information, performing standardized abstraction on the functions of each network device to obtain a set of network atomic capabilities of the target system; based on the set of network atomic capabilities, constructing a system operation template for the target system and setting default parameter values for the system operation template; when receiving a user service request, generating a first transaction for providing network services based on the user service request and the system operation template.

[0131] The storage unit 1620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 16201 and / or a cache memory unit 16202 , and may further include a read-only memory unit (ROM) 16203 .

[0132] The storage unit 1620 may also include a program / utility 16204 having a set (at least one) of program modules 16205, such program modules 16205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0133] Bus 1630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0134] Electronic device 1600 can also communicate with one or more external devices 1640 (e.g., a keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1600, and / or any device that enables electronic device 1600 to communicate with one or more other computing devices (e.g., a router, modem, etc.). Such communication can occur via input / output (I / O) interface 1650. Furthermore, electronic device 1600 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via network adapter 1660. As shown, network adapter 1660 communicates with other modules of electronic device 1600 via bus 1630. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with electronic device 1600, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0135] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0136] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided. The computer-readable storage medium may be a readable signal medium or a readable storage medium. A program product capable of implementing the above-mentioned method of the present disclosure is stored thereon. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section above of this specification.

[0137] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, 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), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0138] In the present disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0139] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0140] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a standalone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0141] It should be noted that although several modules or units of the device for action execution are mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0142] Furthermore, although the steps of the method of the present disclosure are described in a particular order in the accompanying drawings, this does not require or imply that the steps must be performed in this particular order, or that all steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0143] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0144] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.

Claims

1. A transaction generation method for automatic network operation, characterized in that: include: Obtain functional parameter information of each network device in the target system; Based on the functional parameter information, a standardized abstraction is performed on the functions of each network device to obtain a network atomic capability set of the target system, wherein the network atomic capability set includes at least one of an IFM capability, a quality of service capability, and an SR capability, and the standardized abstraction includes a functional abstraction and a parameter configuration abstraction; Constructing a system operation template for the target system according to the network atomic capability set, and setting default parameter values for the system operation template, wherein the system operation template includes at least one of a backbone relay template and a network EVPN template, and the template structure of the system operation template is a YANG structure or a tree structure; When a user service request is received, a first transaction for providing a network service is generated according to the user service request and the system operation template.

2. The transaction generation method for network automatic operation according to claim 1, characterized in that: After constructing the system operation template of the target system according to the network atomic capability set, the method further includes: When a network status change is detected, a second transaction for handling the network failure is generated according to the network status change and the system operation template.

3. The transaction generation method for network automatic operation according to claim 1, characterized in that: After constructing the system operation template of the target system according to the network atomic capability set, the method further includes: Obtain the service types and combination processes that the target system can provide network services; A third transaction for target system operation is generated according to the system operation template, the service type, and the combined process.

4. The transaction generation method for network automatic operation according to claim 1, characterized in that: Generating a first transaction for providing a network service according to the user service request and the system operation template, including: Generating template configuration parameters according to the user service request; The system operation template is configured according to the template configuration parameters to obtain a first transaction for providing a network service.

5. The transaction generation method for network automatic operation according to claim 1, characterized in that: The method further comprises: When a target transaction is executed on a target network device, obtaining state information of the target network device, wherein the target transaction is a first transaction, a second transaction, or a third transaction; Determining whether the system operation template is in a normal state according to the state information of the target network device, and obtaining a state determination result of the system operation template; According to the status determination result, the target transaction is subjected to a transaction status migration, wherein the transaction status includes draft, pending, executing, partially failed, completely failed, successful, and ended.

6. The transaction generation method for network automatic operation according to claim 5, characterized in that: The method further comprises: When the transaction status of the target transaction is draft, determining the operation time and / or triggering condition of the target transaction; When the operation time and / or the trigger condition are met, the transaction state of the target transaction is migrated to pending execution.

7. The transaction generation method for network automatic operation according to claim 5, characterized in that: The method further comprises: Execute a target transaction whose transaction status is pending, and determine whether all operations included in the target transaction are successfully executed; When all operations included in the target transaction are successfully executed, the transaction status of the target transaction is migrated to success; When a portion of operations included in the target transaction fails to execute, migrating the transaction state of the target transaction to partial failure; When all operations included in the target transaction fail to execute, the transaction state of the target transaction is migrated to all failed.

8. A transaction generation device for automatic network operation, characterized in that: include: Information acquisition module, used to obtain functional parameter information of each network device in the target system; an atomic capability abstraction module, configured to perform standardized abstraction on the functions of each network device based on the functional parameter information to obtain a network atomic capability set of the target system, wherein the network atomic capability set includes at least one of IFM capability, QoS capability, and SR capability, and the standardized abstraction includes functional abstraction and parameter configuration abstraction; an operation template module, configured to construct a system operation template for the target system based on the network atomic capability set, and set default parameter values for the system operation template, wherein the system operation template includes at least one of a backbone relay template and a network EVPN template, and the template structure of the system operation template is a YANG structure or a tree structure; The transaction management module is used to generate a first transaction for providing network services according to the user service request and the system operation template when receiving the user service request.

9. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to execute the transaction generation method for automatic network operation according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the transaction generation method for automatic network operation according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Asynchronous task online monitoring method, front-end control system and service response platform

    CN111367725A