Network service processing method and device, electronic equipment and storage medium

By introducing a coordinator into the SDN controller to manage the pre-submission operations of the network service processor and configuration manager, the problem of inconsistent data processing during network service activation is solved, and high-reliability service activation and data consistency are achieved.

CN118555181AActive Publication Date: 2024-08-27RUIJIE NETWORKS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310165139.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27
Estimated Expiration
2043-02-24

AI Technical Summary

Technical Problem

In the SDN controller, when the network service is activated, the writing operation of each functional module to the database or network element device fails, resulting in inconsistent data processing, affecting the service success rate and user experience.

Method used

Introduce the coordinator to receive the distributed transaction registration request initiated by the network business processor, and register the pre-commit operation records of the network business processor and the configuration manager in the distributed transaction to ensure that each module is driven to perform submission after the pre-commit operation is successful. operation, otherwise a rollback operation will be performed to ensure the consistency of data processing.

Benefits of technology

Through the unified coordination and management of the coordinator, it ensures the consistency of data processing in the network service activation process, improves the high reliability of the service, and eliminates duplicate or abnormal data in the rollback operation to avoid affecting other business requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention discloses a network service processing method and device, electronic equipment and a storage medium, and relates to the technical field of network communication. The method is applied to an SDN (Software Defined Network) controller, and comprises the following steps: a coordinator receives a distributed transaction registration request initiated by a network service processor and performs distributed transaction registration based on the distributed transaction registration request, and the coordinator registers pre-submission operation records initiated by the network service processor and a configuration manager in a distributed transaction; and if the coordinator determines that the pre-submission operation results of the network service processor and the configuration manager are successful, the coordinator drives the network service processor and the configuration manager to execute the respective submission operation according to the respective pre-submission operation records.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network service processing method, device, electronic device and storage medium. Background Art

[0002] Software Defined Network (SDN) is a new type of innovative network architecture and a way to implement network virtualization. The SDN controller is responsible for traffic control in SDN to ensure the normal operation of the intelligent network. The SDN controller is based on southbound interface protocols such as OpenFlow and Netconf to achieve unified management of all network devices, thereby achieving rapid deployment, resource integration, unified planning, and on-demand calling.

[0003] At present, the overall architecture of the SDN controller mainly includes the device layer (also called the data plane), the platform layer (also called the control plane) and the application layer (also called the application plane). Figure 1 As shown in the figure, the data plane is composed of network element devices such as switches and routers. Each network element device is connected through an SDN data path formed by different rules. It can receive the routing configuration issued by the control plane, and can also receive the configuration executed by the user directly through the command line interface (English: Command Line Interface, abbreviated: CLI) command; the control plane grasps the global network information, provides basic network services for applications, and is responsible for the control of various forwarding rules. It can include general capabilities such as device management, topology management, and configuration management; the application plane includes various SDN-based network applications, for example, it provides functions such as virtual private network (English: Virtual Private Network, abbreviated: VPN) activation, quality of service (English: Quality of Service, abbreviated: QoS) policy configuration, network diagnosis, etc., and relies on software platforms, control planes, network element devices, etc. to realize the activation of specific services.

[0004] Based on the above Figure 1As shown in the architecture diagram, when opening a network service, the following process may be mainly included: a user sends a VPN service request to a VPN processor via the Web; after receiving the request, the VPN processor performs corresponding VPN service processing based on the service data in the request, and sends the service data to a functional module related to the VPN service request (e.g., a routing processor, a configuration manager, etc.) for corresponding VPN service processing. At this time, if the service data generated after processing by the configuration manager during the VPN service processing is successfully sent to a designated network element device through the Netconf protocol or other protocols; and the service data generated after processing by the VPN processor and the routing processor are successfully stored in the database, it indicates that the network service is successfully opened.

[0005] However, when opening a network service, each functional module needs to write its own changed service data to the database or network element device. If any one of them fails (for example, the changed service data fails to be written to the database), the entire VPN service processing process will be inconsistent. This means that the entire network service opening is not atomic, that is, not all successful. If the data processing is inconsistent, it will cause the network service opening to fail, affect subsequent operations, and even cause network disconnection, affecting the user experience.

[0006] Therefore, when opening network services, how to ensure the consistency of data processing is an urgent problem that needs to be solved. Summary of the invention

[0007] The present application provides a network service processing method to solve the problem of inconsistent data processing.

[0008] In a first aspect, a network service processing method is provided, which is applied to an SDN controller, wherein the SDN controller includes a coordinator, a network service processor, and a configuration manager, and the method includes:

[0009] The coordinator receives a distributed transaction registration request initiated by the network service processor, and performs distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; the coordinator registers in the distributed transaction the pre-commit operation records initiated by the network service processor and the configuration manager respectively; wherein the pre-commit operation records initiated by each are generated by the network service processor and the configuration manager respectively based on the service data in the service request; if the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful, then according to the respective pre-commit operation records, the coordinator drives the network service processor and the configuration manager to perform their respective commit operations.

[0010] In a possible implementation manner, the pre-submission operation record of the network service processor carries a first data identifier of first service data generated by the network service processor according to the service data; the pre-submission operation record of the configuration manager carries a second data identifier of second service data generated by the configuration manager according to the service data; and the driving the network service processor and the configuration manager to perform respective submission operations according to the respective pre-submission operation records includes:

[0011] According to the second data identifier, the configuration manager is driven to execute its own commit operation to validate the second service data; according to the first data identifier, the network service processor is driven to execute its own commit operation to validate the first service data.

[0012] In one possible implementation, the pre-commit operation of the network service processor is that the network service processor pre-writes the first service data generated by the network service processor into a database; the pre-commit operation of the configuration manager is that the configuration manager pre-configures and sends the second service data generated by the configuration manager to a network element device.

[0013] In one possible implementation, the method further includes:

[0014] If the coordinator determines that at least one of the results of the pre-commit operations performed by the network service processor and the configuration manager is a failure, the coordinator drives the network service processor and the configuration manager to perform respective rollback operations according to the respective pre-commit operation records.

[0015] In a second aspect, a network service processing method is provided, which is applied to an SDN controller, wherein the SDN controller includes a coordinator, a network service processor, and a configuration manager, and the method includes:

[0016] The network service processor sends a distributed transaction registration request to the coordinator based on the service request initiated by the user terminal device; the network service processor initiates its own pre-commit operation record to the coordinator based on the service data in the service request, and sends the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation; the network service processor performs its own pre-commit operation, and sends the result of the pre-commit operation performed by itself and the result of the pre-commit operation performed by the configuration manager to the coordinator, so that if the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful, the network service processor and the configuration manager are driven to perform their respective commit operations according to their respective pre-commit operation records.

[0017] In a possible implementation manner, the network service processor initiates its own pre-submission operation record to the coordinator based on the service data in the service request, including:

[0018] The network service processor processes the service data to generate first service data; initiates its own pre-submission operation record to the coordinator according to the first service data; accordingly, the network service processor performs its own pre-submission operation, including:

[0019] The network service processor pre-writes the first service data into a database.

[0020] In a possible implementation, the network service processor initiates its own pre-submission operation record to the coordinator based on the service data in the service request, and sends the service data to the configuration manager, so that the configuration manager initiates its own pre-submission operation record to the coordinator based on the service data and then performs its own pre-submission operation, including:

[0021] The network service processor initiates its own pre-commit operation record to the coordinator, and the pre-commit operation record of the network service processor carries a first data identifier of the first service data, so that the coordinator drives the network service processor to perform its own commit operation or rollback operation based on the first data identifier, and the commit operation of the network service processor is used to take effect on the first service data; the network service processor sends the service data to the configuration manager, so that the configuration manager generates second service data based on the service data, and after initiating its own pre-commit operation record to the coordinator based on the second service data, performs its own pre-commit operation; wherein the pre-commit operation of the configuration manager carries a second data identifier of the second service data, and the second data identifier is used for the coordinator to drive the configuration manager to perform its own commit operation or rollback operation based on the second data identifier, and the commit operation of the configuration manager is used to take effect on the second service data.

[0022] In a possible implementation manner, the pre-submission operation of the configuration manager is that the configuration manager pre-configures and sends the second service data to a network element device.

[0023] In a third aspect, a coordinator is provided, which is applied to an SDN controller. The SDN controller includes the coordinator, a network service processor, and a configuration manager. The coordinator includes:

[0024] A registration module, used to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and, used to register in the distributed transaction the pre-commit operation records initiated by the network service processor and the configuration manager respectively; wherein the pre-commit operation records initiated by each are generated by the network service processor and the configuration manager respectively based on the service data in the service request; a driving module, used to drive the network service processor and the configuration manager to perform their respective commit operations according to the respective pre-commit operation records if the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful.

[0025] In a fourth aspect, a network service processor is provided, which is applied to an SDN controller, wherein the SDN controller includes a coordinator, the network service processor, and a configuration manager, and the network service processor includes:

[0026] A sending module, used to send a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; and used to initiate its own pre-commit operation record to the coordinator based on the service data in the service request, and send the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation;

[0027] An execution module is used to execute its own pre-submission operation and send the result of the pre-submission operation executed by itself and the result of the pre-submission operation executed by the configuration manager to the coordinator, so that if the coordinator determines that the results of the pre-submission operations executed by the network service processor and the configuration manager are both successful, then according to the respective pre-submission operation records, the coordinator drives the network service processor and the configuration manager to execute their respective submission operations.

[0028] In a fifth aspect, an SDN controller is provided, the SDN controller comprising a coordinator, a network service processor, and a configuration manager; wherein the coordinator is connected to the network service processor and the configuration manager respectively, and the network service processor calls the configuration manager;

[0029] The coordinator is used to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and is used to register in the distributed transaction the pre-commit operation records respectively initiated by the network service processor and the configuration manager; wherein the pre-commit operation records respectively initiated are generated by the network service processor and the configuration manager respectively based on service data in the service request; and, if it is determined that the results of the pre-commit operations respectively performed by the network service processor and the configuration manager are both successful, then, according to the respective pre-commit operation records, drive the network service processor and the configuration manager to perform respective commit operations;

[0030] The network service processor is used to send a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; to initiate its own pre-commit operation record to the coordinator based on the service data in the service request, and to send the service data to the configuration manager to perform its own pre-commit operation; and to send the result of the pre-commit operation performed by itself and the result of the pre-commit operation performed by the configuration manager to the coordinator;

[0031] The configuration manager is used to initiate its own pre-commit operation record to the coordinator based on the service data sent by the network service processor, execute its own pre-commit operation, and send the result of the pre-commit operation executed by itself to the network service processor.

[0032] In a sixth aspect, an electronic device is provided, including:

[0033] A memory for storing a computer program; a processor for implementing any one of the method steps in the first aspect when executing the computer program stored in the memory.

[0034] In a seventh aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.

[0035] In the embodiment of the present application, a coordinator is added to the SDN controller architecture to receive a distributed transaction registration request initiated by the network service processor, and to register a distributed transaction based on the distributed transaction registration request, so as to facilitate the subsequent recording of the entire service data processing process. The coordinator registers the pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction, so as to facilitate the subsequent determination of which operation to drive each module to perform based on this, thereby ensuring the high reliability of network service activation; if the coordinator determines that the results of the network service processor and the configuration manager performing the pre-commit operation are both successful, then according to the respective pre-commit operation records, the network service processor and the configuration manager are driven to perform their respective commit operations. Therefore, the newly added coordinator can uniformly coordinate and manage the modules in the SDN controller, and divide it into two parts during the network service activation process, one part is the data pre-commit stage, and the other part is based on the result of the first part, through the coordinator to drive each module to perform a commit operation or a rollback operation, so that the consistency of data processing is maintained during the entire network service activation process. Further, during the rollback operation, duplicate or abnormal data can also be targeted to eliminate, and no impact will be generated on other network service requests (for example, device CLI operations).

[0036] For each of the above-mentioned aspects from the second to the sixth aspects and the technical effects that may be achieved by each of the aspects, please refer to the above-mentioned description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a schematic diagram of the architecture of a currently provided SDN controller;

[0038] Figure 2This is a logical diagram of the current distributed transaction implementation based on the two-phase protocol;

[0039] Figure 3 A schematic diagram of an application scenario applicable to the embodiment of the present application;

[0040] Figure 4 A schematic diagram of the internal architecture of an SDN controller provided in an embodiment of the present application;

[0041] Figure 5 A flowchart of a network service processing method based on the coordinator side is provided for an embodiment of the present application;

[0042] Figure 6 A flowchart of a network service processing method based on a network service processor side provided in an embodiment of the present application;

[0043] Figure 7 An interactive schematic diagram of a network service processing provided in an embodiment of the present application;

[0044] Figure 8 A schematic diagram of the structure of a coordinator provided in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of the structure of a network service processor provided in an embodiment of the present application;

[0046] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0048] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are first explained below.

[0049] (1) QoS stands for Quality of Service. In network services, quality of service includes transmission bandwidth, transmission delay, data packet loss rate, etc. In the network, the quality of service can be improved by ensuring transmission bandwidth, reducing transmission delay, reducing data packet loss rate and delay jitter, etc.

[0050] (2) Software platform: It provides standard, flexible, and reusable technical components and services for applications, supports application development, delivery, and stable and reliable operation, and can also store various generated data in the database.

[0051] (3) A distributed transaction refers to a transaction (business) in which the transaction (business) participants, the server supporting the transaction, the resource manager, and the transaction manager are located on different nodes of different distributed systems.

[0052] (4) The two-phase commit protocol (2PC) can ensure strong data consistency. Many distributed relational data management systems use this protocol to complete distributed transactions. In this protocol, the transaction manager (TM) corresponds to the coordinator below, which is used to coordinate one or more resource managers (RM) corresponding to the processor and configuration manager below to complete business processing. The two-phase commit protocol mainly implements distributed transactions in two stages, thereby ensuring the atomicity of business operations in multiple modules and the consistency of data, such as Figure 2 As shown:

[0053] In the first stage, the transaction initiator initiates a transaction (or business) to the transaction manager. The transaction manager sends a prepare transaction request to all transaction participants (resource manager A, resource manager B). After receiving the prepare transaction request, each resource manager executes the local transaction and completes the preparation for submitting the data. Each resource manager also reports its preparation status to the transaction manager.

[0054] In the second stage, the transaction manager drives each resource manager to execute the commit transaction operation or the rollback transaction operation according to the preparation status reported by each. Specifically, if each resource manager reports that it has completed the preparation, the transaction manager initiates a commit transaction request to each resource manager. After receiving the request, each resource manager executes the commit transaction operation of the local transaction; if the resource manager reports that it has not completed the preparation (for example, resource manager B), the transaction manager initiates a rollback transaction request to resource managers A and B. After receiving the request, resource managers A and B each execute the rollback transaction operation of the local transaction.

[0055] (5) Candidate protocol is a type of Netconf protocol, which may include capability exchange, writable operation capability, candidate configuration capability, confirmation submission capability, rollback error capability, verification capability, unique startup capability, Uniform Resource Locator (URL) capability, etc.; among them, the candidate configuration capability indicates that the device supports candidate configuration data storage, which is used to save configuration data that can be operated without affecting the current configuration of the device. The confirmation submission capability refers to submitting the above candidate configuration, and the rollback error capability refers to rolling back the above candidate configuration, so that the device configuration has the ability to pre-submit, submit or rollback.

[0056] The following is a brief introduction to the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0057] Figure 3 Schematic diagram of application scenarios applicable to the embodiments of the present application. The scenario may mainly include a user terminal device 30 and an SDN controller 31; wherein the user terminal device 30 and the SDN controller 31 may exchange information via a communication network, and the communication mode adopted by the communication network may include: wireless communication mode and wired communication mode.

[0058] Exemplarily, the user terminal device 30 can access the network and communicate with the SDN controller 31 through cellular mobile communication technology. The cellular mobile communication technology may include the fifth generation mobile communication (English: 5th Generation Mobile Networks, abbreviated: 5G) technology.

[0059] Exemplarily, the user terminal device 30 can access the network and communicate with the SDN controller 31 through a short-range wireless communication method. The short-range wireless communication method may include Wireless Fidelity (English: Wireless Fidelity, abbreviated: Wi-Fi) technology.

[0060] The present application embodiment does not impose any restriction on the number of the above-mentioned devices. Figure 3 As shown, only the user terminal device 30 and the SDN controller 31 are described as examples, and the above devices and their respective functions are briefly introduced below.

[0061] The user terminal device 30 is a device that can provide voice and / or data connectivity to the user, including: a handheld terminal device with a wireless connection function, a vehicle-mounted terminal device, etc.

[0062] Exemplarily, the user terminal device 30 includes, but is not limited to: mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (English: Mobile Internet Device, abbreviated: MID), wearable devices, virtual reality (English: Virtual Reality, abbreviated: VR) devices, augmented reality (English: Augmented Reality, abbreviated: AR) devices, wireless terminal devices in industrial control, wireless terminal devices in unmanned driving, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, or wireless terminal devices in smart homes, etc.

[0063] In addition, a client related to network service processing may be installed on the user terminal device 30, and the client may be software (for example, an APP, a browser, etc.), or a web page, a small program, etc. In the embodiment of the present application, the user terminal device 30 may use the client related to the above network service processing, and may interact with the SDN controller 31 for information related to the network service scenario, for example, the user terminal device 30 sends a service request carrying service data to the SDN controller 31.

[0064] The SDN controller 31 can be used to perform corresponding network service processing (for example, opening VPN services) for service requests from user-end devices 30. The SDN controller 31 can be equipped with a network service processing system corresponding to the above-mentioned client to process various network services. Furthermore, the SDN controller 31 can be combined with the two-phase distributed transaction protocol, the Candidate protocol, etc., in the process of network service processing, to build a logical framework that can achieve data consistency and multi-input isolation (for example, the isolation of database operations by each module), thereby supporting cross-device network configuration distribution and strong consistency of data storage; it can also be combined with open source application frameworks (for example, the SpringBoot framework) and Java annotations to provide a complete set of programming models that ensure the atomicity of network service activation, support the rapid development and implementation of network services, ensure code quality, and reduce the cost of network service implementation.

[0065] like Figure 4 As shown, a schematic diagram of the structure of an SDN controller provided by an embodiment of the present application is exemplified. Figure 4 As shown, the SDN controller 400 mainly includes an application layer, a platform layer, and a device layer. The application layer mainly includes a network service processor; the platform layer may include a software platform and a network controller platform, the software platform includes a coordinator and a database, and the network controller platform may include a configuration manager; the device layer is mainly composed of network element devices (e.g., switches).

[0066] In the SDN controller, the coordinator can be connected to the network service processor and the configuration manager respectively to exchange information. The network service processor can call the configuration manager to exchange information. The above modules will be explained one by one below.

[0067] For example, the network service processor can be used based on the user terminal equipment (such as Figure 3 The network service processor can also be used to send a distributed transaction registration request to the coordinator based on the service data in the service request and to send the service data to the configuration manager to perform its own pre-commit operation. It can also be used to send the result of the pre-commit operation performed by itself and the result of the pre-commit operation performed by the configuration manager to the coordinator. Further, when the network service processor receives a drive instruction initiated by the coordinator based on the result of the pre-commit operation performed by each, it can perform its own commit operation or rollback operation according to the drive instruction.

[0068] Exemplarily, there may be more than one network service processor, which may be allocated according to actual service requests, and the embodiments of the present application are not limited here; for example, when the service request is used to request the activation of a VPN service, the network service processor may specifically include a VPN processor and a routing processor; wherein the VPN processor is a processor allocated based on the type of service request, and the routing processor is a processor that needs to participate in the allocation of the service request and can be called by the VPN processor.

[0069] Exemplarily, the configuration manager is used to initiate its own pre-commit operation record to the coordinator based on the service data sent by the above-mentioned network service processor, perform its own pre-commit operation, and send the result of the pre-commit operation performed by itself to the network service processor. In this process, the configuration manager can also parse and process the service data from the network service processor in conjunction with the device manager, topology manager, etc. in the platform layer. Furthermore, when the configuration manager receives a drive instruction initiated by the coordinator based on the results of the above-mentioned pre-commit operations respectively performed, it can perform its own commit operation or rollback operation according to the drive instruction.

[0070] Exemplarily, the coordinator is used to receive a distributed transaction registration request initiated by a network service processor, and to perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and is used to register pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction; wherein the pre-commit operation records initiated by each are generated by the network service processor and the configuration manager based on service data in the service request; and, if it is determined that the results of the pre-commit operations executed by the network service processor and the configuration manager are both successful, then, according to their respective pre-commit operation records, drive the network service processor and the configuration manager to execute their respective commit operations.

[0071] In the embodiment of the present application, a coordinator is newly added to the software platform in the SDN controller to coordinate and manage the network service processor and the configuration manager, so as to ensure the consistency of data processing during the network service activation process.

[0072] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed or executed in parallel in the actual processing process or when the device is executed in accordance with the method sequence shown in the embodiment or drawings.

[0073] Figure 5 The present invention provides a flowchart of a network service processing method based on the coordinator side, which is used to ensure the consistency of data processing. Figure 5 As shown, the process includes the following steps:

[0074] In the embodiment of the present application, the method is applied to the SDN controller (such as Figure 4 The SDN controller 400 shown in the figure includes a coordinator, a network service processor, and a configuration manager.

[0075] 501: The coordinator receives a distributed transaction registration request initiated by the network service processor, and performs distributed transaction registration based on the distributed transaction registration request.

[0076] Exemplarily, the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device, the service request carries service data to be processed, and the service data may include the user terminal device (for example Figure 3The identification, service type, service name, etc. of the user terminal device 30 shown.

[0077] The interactive process of this step can be: the user-end device sends a service request to the network service processor. After the network service processor receives the service request, it sends a distributed transaction registration request to the coordinator based on the service request. After the coordinator receives the distributed transaction request, it registers the distributed transaction, so that the subsequent processing process of the service data by the network service processor and the configuration manager is recorded in real time.

[0078] 502: The coordinator registers the pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction.

[0079] Exemplarily, the pre-commit operation records initiated respectively are generated by the network service processor and the configuration manager respectively based on the service data in the service request.

[0080] Exemplarily, the pre-submission operation record of the network service processor carries a first data identifier of first service data generated by the network service processor based on service data; the pre-submission operation record of the configuration manager carries a second data identifier of second service data generated by the configuration manager based on service data.

[0081] In other embodiments, each pre-commit operation record may also carry a specific description of the pre-commit operation performed by each.

[0082] Exemplarily, the pre-commit operation performed by the network service processor is that the network service processor pre-writes the first service data generated by the network service processor into the database.

[0083] Exemplarily, the pre-commit operation performed by the configuration manager is that the configuration manager pre-configures and sends the second service data generated by the configuration manager to the network element device. For example, the configuration manager pre-configures and sends the second service data to the network element device based on the candidate protocol or other protocols.

[0084] In some embodiments, the coordinator registers the pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction, which can be recorded in the form of a distributed transaction record table or in other forms, which are not limited in the embodiments of the present application. As shown in Table 1, a distributed transaction record table is exemplarily shown.

[0085] Table 1: Distributed transaction record table

[0086]

[0087]

[0088] Exemplarily, the process of the coordinator registering the pre-commit operation records initiated by the network service processor and the configuration manager in a distributed transaction may specifically include the following interactive process: the coordinator completes the above-mentioned distributed transaction registration, the network service processor processes the service data to obtain the first service data, and initiates its own pre-commit operation record to the coordinator based on the first service data, and sends the service data to the configuration manager; the configuration manager processes the service data to obtain the second service data, and initiates its own pre-commit operation record to the coordinator based on the second service data; when the coordinator receives the respective pre-commit operation records, it can register them (as shown in Table 1 above), so that the coordinator can use this as a basis to drive the network service processor and the configuration manager to perform commit operations or rollback operations respectively, thereby ensuring the consistency of data processing during the entire network service activation process.

[0089] Exemplarily, after the network service processor initiates its own pre-commit operation record to the coordinator according to the first service data, it may perform its own pre-commit operation according to the first service data.

[0090] Exemplarily, after the configuration manager initiates its own pre-commit operation record to the coordinator according to the second business data, it may perform its own pre-commit operation according to the second business data.

[0091] It should be noted that there is no order restriction on which of the configuration manager and the network service processor completes their respective pre-submission operations first. The configuration manager can complete its own pre-submission operation first, or the network service processor can complete its own pre-submission operation first, or the configuration manager and the network service processor can complete their respective pre-submission operations at the same time.

[0092] Through the above steps, the coordinator can record the processing process of the network service processor and the configuration manager in the SDN controller on the service data, and uniformly manage the changes of the service data, so that the coordinator can subsequently use this as a basis to drive each of them to perform a commit operation or a rollback operation, thereby ensuring the consistency of data processing during the entire network service activation process.

[0093] 503 : The coordinator determines whether the results of the pre-submission operations performed by the network service processor and the configuration manager are successful. If yes, the process goes to 504 ; if not, the process goes to 505 .

[0094] Exemplarily, the result of the configuration manager executing its own pre-submission operation may be fed back to the network service processor first, and then sent to the coordinator via the network service processor, and the results of the pre-submission operations executed by each are integrated through the network service processor.

[0095] Exemplarily, the transition to 504 may specifically meet the following conditions: if the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful, the process proceeds to 504 .

[0096] Exemplarily, the transition to 505 may specifically meet the following conditions: if the coordinator determines that at least one of the results of the pre-submission operation performed by the network service processing and the configuration manager is a failure, the process proceeds to 505 .

[0097] 504: According to the respective pre-submission operation records, the network service processor and the configuration manager are driven to perform respective submission operations.

[0098] Exemplarily, driving the network service processor and the configuration manager to perform their respective submission operations may specifically include: according to the above-mentioned second data identifier (such as data 2 in Table 1), driving the configuration manager to perform its own submission operation to validate the second service data; according to the above-mentioned first data identifier (such as data 1 in Table 1), driving the network service processor to perform its own submission operation to validate the first service data.

[0099] Exemplarily, driving the configuration manager to perform its own submission operation may be that the coordinator initiates a driving instruction to the configuration manager based on the second data identifier to instruct the configuration manager to perform its own submission operation; when the configuration manager receives the driving instruction, it may perform its own submission operation.

[0100] Exemplarily, driving the network service processor to perform its own submission operation may specifically be that the coordinator initiates a driving instruction to the network service processor based on the first data identifier to instruct the network service processor to perform its own submission operation; when the network service processor receives the driving instruction, it can perform its own submission operation.

[0101] 505: According to the respective pre-commit operation records, the network service processor and the configuration manager are driven to perform respective rollback operations.

[0102] Exemplarily, driving the network service processor and the configuration manager to perform their respective rollback operations may specifically include: according to the above-mentioned second data identifier (such as data 2 in Table 1), driving the configuration manager to perform its own rollback operation to roll back the second service data; according to the above-mentioned first data identifier (such as data 1 in Table 1), driving the network service processor to perform its own commit operation to roll back the first service data.

[0103] Exemplarily, driving the configuration manager to perform its own rollback operation may be that the coordinator initiates a driving instruction to the configuration manager based on the second data identifier to instruct the configuration manager to perform its own rollback operation; when the configuration manager receives the driving instruction, it may perform its own rollback operation.

[0104] Exemplarily, driving the network service processor to perform its own commit operation may specifically be that the coordinator initiates a driving instruction to the network service processor based on the first data identifier to instruct the network service processor to perform its own rollback operation; when the network service processor receives the driving instruction, it can perform its own rollback operation.

[0105] In some embodiments, after completing the activation process of the above network service, a network service activation message may be sent to the user terminal device through the network service processor. The network service activation message is used to notify the user whether the requested network service is activated successfully, so as to facilitate the user to perform subsequent operations in a targeted manner.

[0106] In the embodiment of the present application, a coordinator is added to the SDN controller architecture to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request, so as to facilitate the subsequent recording of the entire service data processing process. The coordinator registers the pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction, so as to facilitate the subsequent determination of which operation to drive each module to perform based on this, thereby ensuring the high reliability of network service activation; if the coordinator determines that the results of the network service processor and the configuration manager performing the pre-commit operation are both successful, the network service processor and the configuration manager are driven to perform their respective commit operations according to the respective pre-commit operation records. Therefore, the newly added coordinator can uniformly coordinate and manage the modules in the SDN controller, and divide it into two parts during the network service activation process, one part is the data pre-commit stage, and the other part is to drive each module to perform a commit operation or a rollback operation according to the result of the first part, so as to maintain the consistency of data processing during the entire network service activation process. Furthermore, during the rollback operation, duplicate or abnormal data can also be eliminated in a targeted manner without any impact on other network service requests (for example, device CLI operations).

[0107] Figure 6 A flowchart of a network service processing method based on a network service processor side is provided for an embodiment of the present application. Figure 6 As shown, the process includes the following steps:

[0108] In the embodiment of the present application, the method is applied to the SDN controller (such as Figure 4 The SDN controller 400 shown in the figure includes a coordinator, a network service processor, and a configuration manager.

[0109] 601: The network service processor sends a distributed transaction registration request to the coordinator based on the service request initiated by the user terminal device.

[0110] In this step, specifically, it can be: after the network service processor receives the service request from the user terminal device, it generates a distributed transaction request according to the service request, and sends the distributed transaction request to the coordinator, so that the coordinator registers the distributed transaction based on the distributed transaction request, so as to facilitate real-time recording of subsequent processing processes.

[0111] 602: The network service processor initiates its own pre-commit operation record to the coordinator based on the service data in the service request, and sends the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation.

[0112] In this step, specifically, it can be: the network service processor initiates its own pre-commit operation record to the coordinator, and the pre-commit operation record carries a first data identifier of the first service data, so that the coordinator drives the network service processor to perform its own commit operation or rollback operation based on the first data identifier, and the commit operation of the network service processor is used to take effect on the first service data; the network service processor sends the service data to the configuration manager, so that the configuration manager generates second service data based on the service data, and after initiating its own pre-commit operation record to the coordinator based on the second service data, performs its own pre-commit operation, and the pre-commit operation carries a second data identifier of the second service data, and the second data identifier is used for the coordinator to drive the configuration manager to perform its own commit operation or rollback operation based on the second data identifier, and the commit operation of the configuration manager is used to take effect on the second service data.

[0113] Exemplarily, the network service processor initiates its own pre-submission operation record to the coordinator based on the service data in the service request, which may specifically include: the network service processor processes the service data to generate first service data; and initiates its own pre-submission operation record to the coordinator based on the first service data.

[0114] Exemplarily, the configuration manager performs its own pre-submission operation specifically as follows: the configuration manager pre-configures and sends the second service data to the network element device.

[0115] 603: The network service processor performs its own pre-submission operation and sends the result of its own pre-submission operation and the result of the pre-submission operation performed by the configuration manager to the coordinator, so that if the coordinator determines that the results of the pre-submission operations performed by the network service processor and the configuration manager are both successful, the network service processor and the configuration manager are driven to perform their respective submission operations according to their respective pre-submission operation records.

[0116] Exemplarily, the network service processor performs its own pre-commit operation, which may specifically be that the network service processor pre-writes the first service data into the database.

[0117] In the above steps, the network service processors can integrate the results of the pre-submission operations performed by each of them and feed them back to the coordinator, so that the coordinator can simultaneously drive the network service processor and the configuration manager to perform which operation based on the above results, thereby improving processing efficiency.

[0118] If the coordinator determines that the results of the pre-submission operation performed by the network service processor and the configuration manager are both successful, the specific description of driving the network service processor and the configuration manager to perform their respective submission operations according to their respective pre-submission operation records can be referred to. Figure 5 503 to 505 are not described again here.

[0119] Figure 7 The following is a schematic diagram of an interaction of network service processing provided by an embodiment of the present application. Taking the opening of VPN as an example, the SDN controller includes a coordinator, a configuration manager, and a network service processor, and the network service processor specifically includes a VPN processor and a routing processor. Figure 7 As shown, the following steps may be included:

[0120] 701: The user terminal device sends a service request carrying service data to the VPN processor.

[0121] The user terminal device may specifically be Figure 3 The user terminal device 30 is shown.

[0122] 702: The VPN processor sends a distributed transaction request to the coordinator based on the service request.

[0123] 703: After receiving the distributed transaction request, the coordinator performs distributed transaction registration based on the distributed transaction request.

[0124] 704: The VPN processor processes the service data to obtain service data A, and sends a pre-submission operation record about the service data A to the coordinator, so that the coordinator records the relevant information of the VPN processor performing the pre-submission operation.

[0125] The pre-submission operation record carries a data identifier of business data A, for example, data 1, and the business data A is data newly generated based on the business data.

[0126] It should be noted that there is no specific order limitation for step 704 . For example, step 704 may occur after step 702 or simultaneously with step 702 .

[0127] 705: The VPN processor performs its own pre-submission operation according to the service data A, and obtains the result of the pre-submission operation.

[0128] 706: The VPN processor calls the routing processor and sends the above service data to the routing processor.

[0129] In some embodiments, the service data A and the service data may also be sent together to the routing processor.

[0130] It should be noted that there is no specific order limitation for step 706 . For example, step 706 may occur simultaneously with step 705 , or may occur before step 705 .

[0131] 707: After receiving the above business data, the routing processor creates a route for the business data, obtains business data B, and sends a pre-submission operation record related to business data B to the coordinator, so that the coordinator records the relevant information of the routing processor performing the pre-submission operation.

[0132] The pre-submission operation record carries a data identifier of business data B, for example, data 3. The business data B may be generated based on business data, or may be data generated based on business data A and business data.

[0133] 708: The routing processor performs its own pre-submission operation according to the service data B, and feeds back the result of the pre-submission operation to the VPN processor.

[0134] 709: The routing processor calls the configuration manager and forwards the above business data to the configuration manager. The configuration manager can be Figure 4 The configuration manager in the SDN controller 400 is shown. In some embodiments, the service data B and the service data may also be sent to the configuration manager.

[0135] It should be noted that there is no specific order limitation for step 709 . For example, step 709 may occur simultaneously with step 708 , or may occur before step 708 .

[0136] 710: After receiving the above business data, the configuration manager performs configuration processing on the business data to obtain business data C, and sends a pre-commit operation record related to the business data C to the coordinator, so that the coordinator records the relevant information of the configuration manager performing the pre-commit operation.

[0137] In some embodiments, the pre-submission operation record carries a data identifier of business data C, such as data 2. The business data C may be generated based on business data, or may be generated based on business data B and business data.

[0138] 711: The configuration manager performs its own pre-submission operation according to the target service data C, and sends the result of the pre-submission operation to the VPN processor via the routing processor.

[0139] 712: The VPN processor sends the results of the pre-submission operations performed by 705, 708, and 711 to the coordinator.

[0140] 713: The coordinator determines whether the results of the above-mentioned respective pre-commit operations are successful. If so, the process proceeds to 714; if not, the process proceeds to 715.

[0141] 714: The coordinator determines to drive the VPN processor, the routing processor, and the configuration manager to perform their respective commit operations according to their respective pre-commit operation records.

[0142] 715: The coordinator determines to drive the VPN processor, the routing processor, and the configuration manager to perform respective rollback operations according to their respective pre-commit operation records.

[0143] Based on the same technical concept, an embodiment of the present application further provides a coordinator, which is applied to an SDN controller and can implement the process of the above-mentioned network service processing method in the embodiment of the present application.

[0144] Figure 8 This is a schematic diagram of the structure of a coordinator provided in an embodiment of the present application. The coordinator is applied to an SDN controller, and the SDN controller includes a network service processor, the coordinator, and a configuration manager. Figure 8 As shown, the coordinator includes: a registration module 801 and a driving module 802 .

[0145] The registration module 801 is used to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and, is used to register in the distributed transaction the pre-commit operation records initiated by the network service processor and the configuration manager respectively; wherein the pre-commit operation records initiated by each are generated by the network service processor and the configuration manager respectively based on the service data in the service request.

[0146] The driving module 703 is used to drive the network service processor and the configuration manager to perform their respective submission operations according to their respective pre-submission operation records if the coordinator determines that the results of the pre-submission operations performed by the network service processor and the configuration manager are both successful.

[0147] Exemplarily, the pre-submission operation record of the network service processor carries a first data identifier of first service data generated by the network service processor according to the service data; the pre-submission operation record of the configuration manager carries a second data identifier of second service data generated by the configuration manager according to the service data; the driver module 703 is specifically used to:

[0148] According to the second data identifier, the configuration manager is driven to execute its own commit operation to validate the second service data; according to the first data identifier, the network service processor is driven to execute its own commit operation to validate the first service data.

[0149] Exemplarily, the driving module 703 is further used for:

[0150] If the coordinator determines that at least one of the results of the pre-commit operations performed by the network service processor and the configuration manager is a failure, the coordinator drives the network service processor and the configuration manager to perform respective rollback operations according to the respective pre-commit operation records.

[0151] It should be noted here that the above-mentioned coordinator provided in the embodiment of the present application can implement all the method steps in the above-mentioned network service processing method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0152] Based on the same technical concept, the embodiment of the present application also provides a network service data device, which is applied to the SDN controller and can implement the process of the above-mentioned network service processing method in the embodiment of the present application.

[0153] Fig. 9 The present invention provides a schematic diagram of the structure of a network service processor, which is applied to an SDN controller. The SDN controller includes the network service processor, a coordinator, and a configuration manager. Fig. 9 As shown, the network service processor includes: a sending module 901 and an execution module 902.

[0154] The sending module 901 is used to send a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; and to initiate its own pre-commit operation record to the coordinator based on the service data in the service request, and send the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation.

[0155] The execution module 902 is used to execute its own pre-submission operation and send the result of the pre-submission operation executed by itself and the result of the pre-submission operation executed by the configuration manager to the coordinator, so that if the coordinator determines that the results of the pre-submission operations executed by the network service processor and the configuration manager are both successful, then the coordinator drives the network service processor and the configuration manager to execute their respective submission operations according to their respective pre-submission operation records.

[0156] Exemplarily, the execution module 902 is specifically used for: the network service processor processes the service data to generate first service data; initiating its own pre-submission operation record to the coordinator according to the first service data; accordingly, the execution module 902 is specifically used for: pre-writing the first service data into the database.

[0157] Exemplarily, the execution module is specifically used to: initiate its own pre-commit operation record to the coordinator, the pre-commit operation record carrying a first data identifier of first business data, so that the coordinator drives the network business processor to perform its own commit operation or rollback operation based on the first data identifier, and the commit operation of the network business processor is used to take effect on the first business data; send the business data to the configuration manager, so that the configuration manager performs its own pre-commit operation based on the second business data after the pre-commit operation record initiated by the configuration manager to the coordinator based on the business data carries a second data identifier of second business data generated by the configuration manager according to the business data, and the second data identifier is used for the coordinator to drive the configuration manager to perform its own commit operation or rollback operation based on the second data identifier, and the commit operation of the configuration manager is used to take effect on the second business data.

[0158] It should be noted here that the above-mentioned network service processor provided in the embodiment of the present application can implement all the method steps in the above-mentioned network service processing method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0159] Based on the same technical concept, an electronic device is also provided in an embodiment of the present application, and the electronic device can realize the functions of the aforementioned network service processing device.

[0160] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0161] At least one processor 1001, and a memory 1002 connected to the at least one processor 1001. The specific connection medium between the processor 1001 and the memory 1002 is not limited in the embodiment of the present application. Fig.10 In the example, the processor 1001 and the memory 1002 are connected via the bus 1000. Fig.10 The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 1000 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 1001 can also be called a controller, and there is no limitation on the name.

[0162] In the embodiment of the present application, the memory 1002 stores instructions that can be executed by at least one processor 1001. The at least one processor 1001 can execute a network service processing method discussed above by executing the instructions stored in the memory 1002. The processor 1001 can implement Figure 8 or Fig. 9 The functions of each module in the structure shown.

[0163] Among them, processor 1001 is the control center of the device, and can use various interfaces and lines to connect various parts of the entire control device. By running or executing instructions stored in memory 1002 and calling data stored in memory 1002, various functions of the device and processing data, the device can be monitored as a whole.

[0164] In one possible design, the processor 1001 may include one or more processing units, and the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0165] Processor 1001 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of a network service processing method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0166] Memory 1002, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. Memory 1002 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. Memory 402 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 402 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0167] By designing and programming the processor 1001, the code corresponding to the network service processing method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 5 or Figure 6 or Figure 7 The embodiment shown is a network service processing method. How to design and program the processor 1001 is a technology well known to those skilled in the art and will not be described in detail here.

[0168] It should be noted here that the above-mentioned electronic device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0169] An embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a network service processing method in the above embodiment.

[0170] An embodiment of the present application further provides a computer program product. When the computer program product is called by a computer, the computer executes a network service processing method in the above embodiment.

[0171] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0172] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0173] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0174] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0175] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A network service processing method, applied to a software defined network (SDN) controller, characterized in that: The SDN controller includes a coordinator, a network service processor, and a configuration manager, and the method includes: The coordinator receives a distributed transaction registration request initiated by the network service processor, and performs distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; The coordinator registers the pre-commit operation records initiated by the network service processor and the configuration manager in the distributed transaction; wherein the pre-commit operation records initiated by each are generated by the network service processor and the configuration manager based on the service data in the service request; If the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful, the coordinator drives the network service processor and the configuration manager to perform their respective commit operations according to the respective pre-commit operation records.

2. The method according to claim 1, characterized in that The pre-submission operation record of the network service processor carries a first data identifier of the first service data generated by the network service processor according to the service data; the pre-submission operation record of the configuration manager carries a second data identifier of the second service data generated by the configuration manager according to the service data; The step of driving the network service processor and the configuration manager to perform respective submission operations according to the respective pre-submission operation records includes: According to the second data identifier, driving the configuration manager to execute its own submission operation to make the second business data effective; According to the first data identifier, the network service processor is driven to execute its own submission operation to make the first service data effective.

3. The method according to claim 1, characterized in that The pre-commit operation of the network service processor is that the network service processor pre-writes the first service data generated by the network service processor into the database; The pre-submission operation of the configuration manager is that the configuration manager pre-configures and sends the second service data generated by the configuration manager to the network element device.

4. The method according to claim 1, characterized in that The method further comprises: If the coordinator determines that at least one of the results of the pre-commit operations performed by the network service processor and the configuration manager is a failure, the coordinator drives the network service processor and the configuration manager to perform respective rollback operations according to the respective pre-commit operation records.

5. A network service processing method, applied to a software defined network (SDN) controller, characterized in that: The SDN controller includes a coordinator, a network service processor, and a configuration manager, and the method includes: The network service processor sends a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; The network service processor initiates its own pre-commit operation record to the coordinator based on the service data in the service request, and sends the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation; The network service processor performs its own pre-submission operation, and sends the result of the pre-submission operation performed by itself and the result of the pre-submission operation performed by the configuration manager to the coordinator, so that if the coordinator determines that the results of the pre-submission operations performed by the network service processor and the configuration manager are both successful, the network service processor and the configuration manager are driven to perform their respective submission operations according to the respective pre-submission operation records.

6. The method according to claim 5, characterized in that The network service processor initiates its own pre-submission operation record to the coordinator based on the service data in the service request, including: The network service processor processes the service data to generate first service data; Initiate its own pre-submission operation record to the coordinator according to the first business data; Accordingly, the network service processor performs its own pre-submission operation, including: The network service processor pre-writes the first service data into a database.

7. The method according to claim 5, characterized in that The network service processor initiates its own pre-commit operation record to the coordinator based on the service data in the service request, and sends the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation, including: The network service processor initiates its own pre-commit operation record to the coordinator, and the pre-commit operation record of the network service processor carries a first data identifier of the first service data, so that the coordinator drives the network service processor to perform its own commit operation or rollback operation based on the first data identifier, and the commit operation of the network service processor is used to take effect on the first service data; The network service processor sends the service data to the configuration manager, so that the configuration manager generates second service data based on the service data, and initiates its own pre-commit operation record to the coordinator based on the second service data, and then performs its own pre-commit operation; wherein, the pre-commit operation of the configuration manager carries a second data identifier of the second service data, and the second data identifier is used by the coordinator to drive the configuration manager to perform its own commit operation or rollback operation based on the second data identifier, and the commit operation of the configuration manager is used to take effect on the second service data.

8. A coordinator, applied to a software defined network (SDN) controller, wherein the SDN controller includes the coordinator, a network service processor, and a configuration manager, wherein: The coordinator comprises: A registration module, configured to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and, configured to register in the distributed transaction a pre-commit operation record initiated by the network service processor and the configuration manager respectively; wherein the pre-commit operation record initiated by each of the network service processor and the configuration manager respectively is generated by the network service processor and the configuration manager respectively based on service data in the service request; A driving module is used to drive the network service processor and the configuration manager to perform their respective commit operations according to their respective pre-commit operation records if the coordinator determines that the results of the pre-commit operations performed by the network service processor and the configuration manager are both successful.

9. A network service processor, applied to a software defined network (SDN) controller, wherein the SDN controller includes a coordinator, the network service processor, and a configuration manager, wherein: The network service processor comprises: A sending module, used to send a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; and used to initiate its own pre-commit operation record to the coordinator based on the service data in the service request, and send the service data to the configuration manager, so that the configuration manager initiates its own pre-commit operation record to the coordinator based on the service data and then performs its own pre-commit operation; An execution module is used to execute its own pre-submission operation and send the result of the pre-submission operation executed by itself and the result of the pre-submission operation executed by the configuration manager to the coordinator, so that if the coordinator determines that the result of the pre-submission operation executed by the network service processor and the configuration manager is successful, the network service processor and the configuration manager are driven to execute their respective submission operations according to the respective pre-submission operation records.

10. A software defined network (SDN) controller, characterized in that: include: A coordinator, a network service processor, and a configuration manager; wherein the coordinator is connected to the network service processor and the configuration manager respectively, and the network service processor calls the configuration manager; The coordinator is used to receive a distributed transaction registration request initiated by the network service processor, and perform distributed transaction registration based on the distributed transaction registration request; wherein the distributed transaction registration request is generated by the network service processor based on a service request initiated by a user terminal device; and is used to register in the distributed transaction the pre-commit operation records respectively initiated by the network service processor and the configuration manager; wherein the pre-commit operation records respectively initiated are generated by the network service processor and the configuration manager respectively based on service data in the service request; and, if it is determined that the results of the pre-commit operations respectively performed by the network service processor and the configuration manager are both successful, then, according to the respective pre-commit operation records, drive the network service processor and the configuration manager to perform respective commit operations; The network service processor is used to send a distributed transaction registration request to the coordinator based on a service request initiated by a user terminal device; to initiate its own pre-commit operation record to the coordinator based on the service data in the service request, and to send the service data to the configuration manager to perform its own pre-commit operation; and to send the result of the pre-commit operation performed by itself and the result of the pre-commit operation performed by the configuration manager to the coordinator; The configuration manager is used to initiate its own pre-commit operation record to the coordinator based on the service data sent by the network service processor, execute its own pre-commit operation, and send the result of the pre-commit operation executed by itself to the network service processor.

11. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing the method steps of any one of claims 1 to 4, or implementing the method steps of any one of claims 5 to 8 when executing the computer program stored in the memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 4 are implemented, or the method steps of any one of claims 5 to 8 are implemented.

Citation Information

Patent Citations

  • Affairs coordinator, resource using end, service end and distribution affairs process method

    CN101046815A

  • A distributed transaction processing method and a related product

    CN109819023A

  • Software defined network device exposure to third parties

    US11374813B1

  • Method and system for debugging in a software-defined networking (SDN) system

    US20170048126A1

  • Data driven orchestrated network using a light weight distributed SDN controller

    US20170187607A1