Service configuration method, device, storage medium and program product

CN122845643APending Publication Date: 2026-09-29RUIJIE NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510376495.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

然后再通过该功能在网络设备中配置网络业务,这导致在网络设备中配置网络业务的效率较低

Benefits of technology

[0064]本申请实施例提供的方法、设备、存储介质及程序产品,在该方法中,获取第一网络业务的业务参数、以及网络设备的设备标识;根据所述业务参数,确定所述第一网络业务的配置信息;确定所述第一网络业务的至少一个预设基础功能;通过所述至少一个预设基础功能,向所述设备标识指示的所述网络设备下发所述配置信息,以实现在网络设备中配置第一网络业务,无需针对每个网络业务单独一个或多个功能,能够减少开发工作量,进而提高在网络设备中配置第一网络业务的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122845643A_ABST
    Figure CN122845643A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a service configuration method and device, a storage medium and a program product, wherein the method comprises: obtaining a service parameter of a first network service, a device identifier of a network device, and the first network service to be configured in the network device; determining configuration information of the first network service according to the service parameter; determining at least one preset basic function of the first network service; and issuing the configuration information to the network device indicated by the device identifier through the at least one preset basic function, the configuration information being used for configuring the first network service in the network device, so as to improve the efficiency of configuring the first network service in the network device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software-defined networking (SDN) control plane technology, and in particular to a service configuration method, device, storage medium and program product. Background Technology

[0002] The SDN controller provides a centralized control plane, which allows users to manage network devices and network services in a unified manner, thereby simplifying the process of configuring network services in network devices.

[0003] In related technologies, configuring network services in network devices requires first developing network device adaptation functions. Then, these functions are used to configure network services within the network device, resulting in low efficiency. Summary of the Invention

[0004] This application provides a service configuration method, device, storage medium, and program product to improve the efficiency of configuring a first network service in a network device.

[0005] In a first aspect, embodiments of this application provide a service configuration method applied to an SDN controller, the method comprising:

[0006] Obtain the service parameters of the first network service and the device identifier of the network device, wherein the first network service is to be configured in the network device;

[0007] Determine at least one preset basic function of the first network service;

[0008] Based on the service parameters, determine the configuration information of the first network service;

[0009] The configuration information is sent to the network device indicated by the device identifier through the at least one preset basic function, wherein the configuration information is used to configure the first network service in the network device.

[0010] In one implementation, determining at least one preset basic function of the first network service includes:

[0011] Obtain the scenario type of the first service scenario, and the first network service supports the first service scenario;

[0012] Determine the general functions corresponding to the aforementioned scenario type;

[0013] At least one preset basic function included in the general functions corresponding to the scenario type is determined as at least one preset basic function of the first network service.

[0014] In one implementation, the general function for determining the scene type includes:

[0015] In a preset list, a general function identifier corresponding to the scene type is determined. The preset list includes the correspondence between multiple preset scene types and multiple preset general function identifiers.

[0016] The preset general function corresponding to the general function identifier is determined as the general function corresponding to the scenario type.

[0017] In one implementation, the configuration information is sent to the network device indicated by the device identifier through the at least one preset basic function, including:

[0018] Invoke at least one preset basic function of the first network service according to the invocation strategy of the at least one preset basic function;

[0019] And through the at least one preset basic function, the configuration information is sent to the network device indicated by the device identifier.

[0020] In one implementation, invoking at least one preset basic function of the first network service according to the invocation strategy of the at least one preset basic function includes:

[0021] Determine whether the first network service and the at least one preset basic function are registered in the registration device;

[0022] When registering the first network service and the at least one preset basic function in the registrar, the at least one preset basic function of the first network service is invoked according to the invocation strategy of the at least one preset basic function.

[0023] In one implementation, before determining whether the first network service and the at least one preset basic function are registered in the registrar, the method further includes:

[0024] Implement the general business interface according to the general business interface defined in the registrar;

[0025] The first network service and / or at least one preset basic function are registered in the registrar through the implemented general service interface.

[0026] In one embodiment, the method further includes: generating an orchestration task corresponding to the first network service;

[0027] When a first condition is met, the orchestration task is marked as failed. The first condition includes one or more of the following: the first network service is not registered in the registrar, the at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device fails.

[0028] When a second condition is met, the orchestration task is marked as successful, the second condition including: the first network service is successfully configured in the network device.

[0029] In one implementation, the service parameters include at least one service resource corresponding to the first network service;

[0030] Determining the configuration information of the first network service based on the service parameters includes: determining whether the at least one service resource is occupied;

[0031] When none of the at least one service resource is occupied, the service parameters are transmitted to at least one preset basic function of the first network service in the registrar;

[0032] The service parameters are converted into the configuration information through at least one preset basic function of the first network service.

[0033] In one embodiment, the method further includes: when the network device fails to configure the first network service and successfully configures at least one second service, calling the deletion function corresponding to the first network service to delete the configuration information in the network device, wherein the deletion function is a preset basic function of the first network service;

[0034] Check whether the configuration information in the network device has been successfully deleted;

[0035] If the configuration information in the network device is not successfully deleted, the deletion function corresponding to the first network service is invoked to delete the configuration information obtained by converting the service parameters.

[0036] Secondly, embodiments of this application provide a service configuration device applied to an SDN controller, the device comprising:

[0037] The acquisition module is used to acquire the service parameters of the first network service and the device identifier of the network device, wherein the first network service is to be configured in the network device;

[0038] A processing module is used to determine at least one preset basic function of the first network service;

[0039] The processing module is also configured to determine the configuration information of the first network service based on the service parameters;

[0040] The distribution module is used to distribute the configuration information to the network device indicated by the device identifier through the at least one preset basic function, wherein the configuration information is used to configure the first network service in the network device.

[0041] In one implementation, the processing module is specifically used to: obtain the scenario type of the first service scenario, wherein the first network service supports the first service scenario;

[0042] Determine the general functions corresponding to the aforementioned scenario type;

[0043] At least one preset basic function included in the general functions corresponding to the scenario type is determined as at least one preset basic function of the first network service.

[0044] In one implementation, the processing module is specifically used to: determine the general function identifier corresponding to the scene type in a preset list, wherein the preset list includes the correspondence between multiple preset scene types and multiple preset general function identifiers;

[0045] The preset general function corresponding to the general function identifier is determined as the general function corresponding to the scenario type.

[0046] In one implementation, the issuing module is specifically used to: invoke at least one preset basic function of the first network service according to the invocation strategy of the at least one preset basic function;

[0047] And through the at least one preset basic function, the configuration information is sent to the network device indicated by the device identifier.

[0048] In one implementation, the distribution module is specifically used to: determine whether the first network service and the at least one preset basic function are registered in the registration device;

[0049] When registering the first network service and the at least one preset basic function in the registrar, the at least one preset basic function of the first network service is invoked according to the invocation strategy of the at least one preset basic function.

[0050] In one implementation, the processing module is further configured to: implement the business general interface according to the business general interface defined in the registrar;

[0051] The first network service and / or at least one preset basic function are registered in the registrar through the implemented general service interface.

[0052] In one implementation, the processing module is further configured to: generate an orchestration task corresponding to the first network service;

[0053] When a first condition is met, the orchestration task is marked as failed. The first condition includes one or more of the following: the first network service is not registered in the registrar, the at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device fails.

[0054] When a second condition is met, the orchestration task is marked as successful, the second condition including: the first network service is successfully configured in the network device.

[0055] In one implementation, the service parameters include at least one service resource corresponding to the first network service; the processing module is specifically used for:

[0056] Determine whether the at least one service resource is occupied; if the at least one service resource is not occupied, transmit the service parameters to at least one preset basic function of the first network service in the registration unit;

[0057] The service parameters are converted into the configuration information through at least one preset basic function of the first network service.

[0058] In one embodiment, the processing module is further configured to: when the network device fails to configure the first network service and successfully configures at least one second service, invoke the deletion function corresponding to the first network service to delete the configuration information in the network device, wherein the deletion function is a preset basic function of the first network service;

[0059] Check whether the configuration information in the network device has been successfully deleted;

[0060] If the configuration information in the network device is not successfully deleted, the deletion function corresponding to the first network service is invoked to delete the configuration information obtained by converting the service parameters.

[0061] Thirdly, embodiments of this application provide a service configuration device, including: a memory and a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.

[0062] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.

[0063] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0064] The method, device, storage medium, and program product provided in this application embodiment obtain service parameters of a first network service and a device identifier of a network device; determine configuration information of the first network service based on the service parameters; determine at least one preset basic function of the first network service; and send the configuration information to the network device indicated by the device identifier through the at least one preset basic function, so as to configure the first network service in the network device without requiring one or more separate functions for each network service, thereby reducing development workload and improving the efficiency of configuring the first network service in the network device. Attached Figure Description

[0065] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0066] Figure 1 A schematic diagram of the basic architecture of the SDN controller provided for related technologies;

[0067] Figure 2 A schematic diagram of an architecture of an SDN controller provided in an embodiment of this application;

[0068] Figure 3 One of the flowcharts illustrating the service configuration method provided in the embodiments of this application;

[0069] Figure 4 A second flowchart illustrating the service configuration method provided in this application embodiment;

[0070] Figure 5 The third flowchart illustrating the service configuration method provided in this application embodiment;

[0071] Figure 6 A schematic diagram of the general service orchestration and scheduling layer provided in the embodiments of this application;

[0072] Figure 7 The general orchestration and scheduling process provided in the embodiments of this application;

[0073] Figure 8 This is a schematic diagram of the structure of the service configuration device provided in the embodiments of this application;

[0074] Figure 9 This is a schematic diagram of the structure of the service configuration device provided in the embodiments of this application.

[0075] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0076] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0077] First, the terms used in this application will be explained.

[0078] Network services refer to the services that an SDN controller can manage, and these services can be configured in network devices. Examples of network services include Access Control List (ACL) services, Quality of Service (QoS) services, Forward Error Correction (FEC) services, and Virtual Access Gateway (VAG) services.

[0079] Network devices are devices capable of operating based on network services. Examples of network devices include routers, switches, optical modems, and firewalls.

[0080] Preset basic functions refer to the necessary functions corresponding to network services. Preset basic functions include, for example, adding, modifying, deleting, querying, or sending services.

[0081] Preset general functions refer to functions that are built upon preset basic functions and have additional calling strategies. Examples of preset general functions include immediate sending, scheduled sending, periodic sending, or retrying sending after a failure.

[0082] The invocation strategy refers to the method used to invoke a pre-defined basic function. Invocation strategies include immediate invocation, timed invocation, delayed invocation, periodic invocation, or retrying invocation after failure. For example, if the pre-defined basic function is a sending function (also known as a delivery function), and the invocation strategy is timed invocation, then if the timer expires, the sending function will be invoked to execute the sending operation.

[0083] Other terms used in the embodiments of the present application are described below.

[0084] In the embodiments of the present application, the terms "first", "second" and the like are used to distinguish identical or similar items with substantially the same functions and effects. For example, a first numerical value and a second numerical value are only used to distinguish different numerical values, and do not limit the order thereof. Those skilled in the art can understand that the terms "first", "second" and the like do not limit the quantity or execution order, and do not limit that "first" and "second" items are definitely different.

[0085] In the embodiments of the present application, words such as "exemplarily" or "for example" are used to serve as examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the present application shall not be interpreted as being more preferred or advantageous than other embodiments or designs. To be precise, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete manner.

[0086] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent the following three cases: A exists alone, both A and B exist, and B exists alone, where A and B may be singular or plural. The character " / " generally indicates that the preceding and following associated objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refers to any combination of these items, including any combination of single item(s) or plural item(s). For example, at least one of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b and c may be single or plural.

[0087] The following combines Figure 1 to describe the infrastructure of an SDN controller provided in the related art.

[0088] Figure 1 is a schematic diagram of an infrastructure of an SDN controller provided in the related art. As shown in Figure 1 , it includes: an external presentation layer, a network application layer and a network platform layer.

[0089] The external presentation layer is configured to acquire service parameters of a network service through a webpage (in English: webpage, abbreviated as: WEB), and transmit the service parameters to the network application layer; or acquire service parameters of a network service through a northbound interface, and transmit the service parameters to the network application layer.

[0090] The network application layer includes network services managed by the SDN controller. These services include, for example, ACL (Access Control List), QoS (Quality of Service), and FEC (Fuel Equivalent to Network Execution Framework). Functional components of these network services generate configuration information based on service parameters.

[0091] The network platform layer includes multiple services and a southbound channel sublayer. These services include, for example, device management services, port management services, topology management services, and general services. The southbound channel sublayer includes channels such as Network Configuration Protocol (NETCONF), Border Gateway Protocol (BGP), Simple Network Management Protocol (SNMP), and Google Remote Procedure Call Protocol (gRPC). Configuration information from the network application layer can be sent to network devices through the corresponding services and channels in the network platform layer, and the network devices configure the corresponding network services based on this configuration information.

[0092] based on Figure 1 The infrastructure shown has the following problems in enabling network services to support business scenarios during development:

[0093] 1. When developing network services to support new service scenarios or new network services to support existing service scenarios, all network services managed by the SDN controller must have functions that match the specific service scenario. For example, in a cloud-based SDN controller scenario, the network is unstable, requiring network services to periodically retry sending configuration information when it fails. This necessitates developing and implementing functions that support this specific service scenario for each network service managed by the SDN controller. This results in a huge development workload, leading to low efficiency in developing network services that support new service scenarios or in developing new network services that support existing service scenarios on network devices. Consequently, the efficiency of the SDN controller configuring network services in network devices to support specific service scenarios is also low.

[0094] Second, in order for the SDN controller to manage new network services, developers usually need to develop many functions of the new network service according to the requirements. These functions are supported by existing network services and are matched with the business scenario. This repetitive development leads to long development cycles, large workload, and unstable development quality.

[0095] Third, in the process of configuring network services in network devices, it is necessary to allocate corresponding service resources to support the configuration of network services in network devices. Since each network service is independent of the others and lacks unified orchestration and management, the network services will compete for service resources, which will lead to the failure of the network services configured in the network devices.

[0096] In view of this, embodiments of this application provide a novel architecture for an SDN controller to address the aforementioned problems. The following, in conjunction with... Figure 2 The architecture provided in the embodiments of this application will be described. It should be noted that, in the following text of this application, the new business scenario will be referred to as the first business scenario.

[0097] Figure 2 This is a schematic diagram of an architecture for an SDN controller provided in an embodiment of this application. Figure 1 On the basis of, such as Figure 2 As shown, it also includes a general service orchestration and scheduling layer. The general service orchestration and scheduling layer is located between the external presentation layer and the network application layer.

[0098] When the SDN controller supports the first service scenario, a preset general function matching the first service scenario is developed in the general service orchestration and scheduling layer. This enables all network services in the network application layer below the general service orchestration and scheduling layer to support the preset general function. There is no need to develop a separate function matching the first service scenario for each network device. The network services of the network devices can be configured in the first service scenario. This achieves the goal of reusing the preset general function for all network services managed by the SDN controller, improves code reusability, reduces development workload, shortens development cycle, improves development efficiency, and thus improves the development efficiency of configuring new network services (e.g., the first network service) to support the first service scenario in network devices.

[0099] The general service orchestration and scheduling layer can manage the service resources corresponding to network services, thereby preventing competition between the service resources corresponding to various network services managed by the SDN controller and avoiding the problem of network service configuration failure in network devices due to competition for service resources.

[0100] A general service interface is defined in the general service orchestration and scheduling layer. This general service interface is implemented for each network service in the network application layer. Through this general service interface, each network service in the network application layer can be registered to the general service orchestration and scheduling layer, so that each network service in the network application layer can support the preset general functions that match the first service scenario.

[0101] In some embodiments, the defined general business interface includes one or more of the following methods:

[0102] Methods for adding data to the database corresponding to the SDN controller's business;

[0103] Methods for modifying data in the database corresponding to the SDN controller's services;

[0104] Methods for deleting data from the database of the corresponding service of the SDN controller;

[0105] Methods for querying data in the database corresponding to the SDN controller's business;

[0106] Methods for adding configuration information to network devices;

[0107] Methods for modifying network device configuration information;

[0108] Methods for deleting configuration information of network devices;

[0109] Methods for querying network device configuration information.

[0110] When adding a new network service, it is only necessary to re-implement the defined general service interface for the new network service. Through the implemented general service interface, the new network service and at least one preset basic function of the new network service are registered to the general service orchestration and scheduling layer. This enables the new network service to support the preset general functions that match the first service scenario. As a result, when adding a new network service, it can improve the stability of development, reduce the workload of development, shorten the development cycle, improve development efficiency, and save the manpower required in the development process.

[0111] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0112] Figure 3 This is one of the flowcharts illustrating the service configuration method provided in this application embodiment. Figure 3 As shown, the method includes:

[0113] S301. Obtain the service parameters of the first network service and the device identifier of the network device. The first network service is to be configured in the network device.

[0114] Optionally, the execution entity in this application embodiment is a service configuration device, or it can be a service configuration apparatus within the service configuration device. The service configuration apparatus can be implemented through software and / or hardware. For example, a service configuration apparatus may be... Figure 2The example shown is a general service orchestration and scheduling layer. The following description uses the general service orchestration and scheduling layer as the execution entity to illustrate the service configuration method provided in this application embodiment.

[0115] Service configuration devices can be, for example, SDN controllers.

[0116] The primary network service can be a network service managed by the SDN controller. Examples of primary network services include ACL services, QoS services, FEC services, or VAG services.

[0117] The service parameters of the first network service are used by the SDN controller to configure the first network service in the network device.

[0118] For example, the first network service is an ACL service, and the service parameters of the first network service include, for example, an Access Control Entry (ACE), a source address, a destination address, a protocol type, a source port, a destination port, and an action.

[0119] For example, the first network service is a QoS service, and the service parameters of the first network service include, for example, traffic shaping, traffic policing, service level agreement (SLA), queue management, classification, and priority.

[0120] Network devices can be managed by the SDN controller through the device management service. The number of network devices can be one or more.

[0121] The general service orchestration and scheduling layer obtains the service parameters of the first network service from the display device, as well as the device identifier of the network device, through the external presentation layer.

[0122] The display device can visualize the webpage corresponding to the first network service. When the display device obtains the service parameters of the first network service and the device identifier of the network device entered by the user in the first webpage through the webpage, the display device sends the service parameters of the first network service and the device identifier of the network device to the external presentation layer. The external presentation layer sends the service parameters of the first network service and the device identifier of the network device to the general orchestration and scheduling layer of the service, so that the general orchestration and scheduling layer of the service can obtain the service parameters of the first network service and the device identifier of the network device.

[0123] S303. Determine at least one preset basic function of the first network service.

[0124] In some implementations, at least one basic function identifier corresponding to the service identifier of the first network service is determined in a preset association relationship, and the preset basic function corresponding to the at least one basic function identifier is determined as at least one preset basic function of the first network service; wherein, the preset association relationship includes service identifiers of multiple network services and basic function identifiers of multiple preset basic functions.

[0125] For example, the preset association relationships are shown in Table 1 below.

[0126] Table 1

[0127]

[0128] For example, when the service identifier of the first network service is AG2, at least one preset basic function is the preset basic function corresponding to NA3.

[0129] S302. Determine the configuration information of the first network service based on the service parameters.

[0130] Specifically, the configuration information of the first network service is obtained by converting the service parameters through at least one preset basic function of the first network service.

[0131] S304. Through at least one preset basic function, configuration information is sent to the network device indicated by the device identifier, wherein the configuration information is used to configure a first network service in the network device.

[0132] Specifically, network devices configured with the first network service can perform relevant processing based on the first network service.

[0133] For example, the first network service is the ACL service. The network device can filter data packets passing through the network device based on the ACL service, so as to discard the data packets or allow the data packets to pass through the network device.

[0134] For example, the first network service is the FEC service, and the network device can add redundancy information and perform error correction on the data packets passing through the network device based on the FEC service.

[0135] In a service configuration method provided in this application embodiment, service parameters of a first network service and device identifier of a network device are obtained; configuration information of the first network service is determined based on the service parameters; at least one preset basic function of the first network service is determined; and configuration information is sent to the network device indicated by the device identifier through at least one preset basic function, so as to realize the configuration of the first network service in the network device. This eliminates the need for one or more separate functions for each network service, reduces development workload, and improves the efficiency of configuring the first network service in the network device.

[0136] Figure 4 This is a second flowchart illustrating the service configuration method provided in an embodiment of this application. Figure 4 As shown, the method includes:

[0137] S401. Obtain the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device. The first network service supports the first service scenario and the first network service is to be configured in the network device.

[0138] Optionally, the first business scenario includes scenarios such as deploying the SDN controller on a cloud server (i.e., the SDN controller cloud scenario), multi-tenant SDN controller scenarios, enterprise service scenarios, and financial services.

[0139] When the service configuration device is an SDN controller, the first service scenario is the service scenario supported by the SDN controller.

[0140] For example, the general business orchestration and scheduling layer obtains a WEB business operation request from the display device. The WEB business operation request includes at least the scenario type, the business parameters, and the device identifier.

[0141] The general business orchestration and scheduling layer obtains scene type, business parameters, and device identifier from the display device through the external presentation layer.

[0142] The display device can visualize the webpage corresponding to the first network service. When the display device obtains the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device from the first webpage, the display device sends the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device to the external presentation layer. The external presentation layer sends the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device to the general service orchestration and scheduling layer, so that the general service orchestration and scheduling layer can obtain the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device.

[0143] S402. Determine the general functions corresponding to this scenario type.

[0144] The default general functions are those that have been developed once and support the first business scenario supported by the SDN controller.

[0145] For example, the business general orchestration and scheduling layer includes the association between multiple preset scenario types and multiple preset general function identifiers; after obtaining the scenario type, the business general orchestration and scheduling layer determines whether there is a type with the same scenario type among the multiple preset scenario types; if so, it determines the general function identifier corresponding to the scenario type in the association, and determines the preset general function corresponding to the general function identifier as the general function corresponding to the scenario type.

[0146] For example, the association between the types of multiple preset scenarios and the identifiers of multiple preset general functions can be stored in a preset list.

[0147] When the association between multiple preset scenario types and multiple preset general function identifiers can be stored in a preset list, the business general orchestration and scheduling layer determines the general function identifier corresponding to the scenario type in the preset list; and determines the preset general function corresponding to the general function identifier as the general function corresponding to the scenario type.

[0148] S403. Determine at least one preset basic function included in the general functions corresponding to the scenario type as at least one preset basic function of the first network service.

[0149] S404. Determine the configuration information of the first network service based on at least one preset basic function and service parameter of the first network service.

[0150] The configuration information for the first network service is obtained by converting the service parameters using at least one preset basic function of the first network service.

[0151] S405. Through at least one preset basic function of the first network service, configuration information is sent to the network device indicated by the device identifier. The configuration information is used to configure the first network service in the network device. The first network service in the network device supports the first service scenario.

[0152] Optionally, the preset general functions may also include a calling strategy for at least one preset basic function; at least one preset basic function of the first network service may be called according to the calling strategy of at least one preset basic function of the first network service, and configuration information may be sent to the network device indicated by the device identifier through at least one preset basic function of the first network service.

[0153] For example, the invocation strategy is a timed invocation. If the timer expires, at least one preset basic function of the first network service is invoked. The timer duration can be a first preset duration or a duration set by the user on the page.

[0154] For example, the invocation strategy is periodic invocation, in which at least one preset basic function of the first network service is invoked within each period. The number of periods and the duration of each period can be obtained through a page; the number of periods can be a preset number or a number set by the user on the page; and the duration of each period can be a second preset duration or a duration set by the user on the page.

[0155] In this application embodiment, a service configuration method is provided, in which a general function corresponding to a scenario type is determined, wherein the preset general function includes at least one preset basic function; the at least one preset basic function included in the general function corresponding to the scenario type is determined as at least one preset basic function of a first network service, and through the at least one preset basic function of the first network service, configuration information determined according to service parameters is sent to the network device indicated by the device identifier. This eliminates the need to develop functions matching the first service scenario separately for each network device, and enables all network services managed by the SDN controller to reuse preset general functions, thereby reducing development workload, shortening development cycle, and improving the configuration efficiency of the first network service in the network device to support the first service scenario.

[0156] Based on the above embodiments, the following is combined with Figure 5 The embodiments hereby provide a detailed description of the service configuration method provided in the embodiments of this application.

[0157] Figure 5 This is the third flowchart illustrating the service configuration method provided in this application's embodiments. Figure 5 As shown, the method includes:

[0158] S501. A general business interface is predefined in the registrar, and the general business interface is implemented. Through the implemented general business interface, multiple network services and multiple preset basic functions are registered in the registrar.

[0159] In some embodiments, the registrar can be a registrar in an SDN controller.

[0160] A network service can correspond to at least one preset basic function.

[0161] In some embodiments, the association between a network service and at least one preset basic function can be represented by the association between the service identifier of a network service and the basic function identifier of at least one preset basic function.

[0162] The multiple preset basic functions include at least one preset basic function corresponding to each network service. Alternatively, the multiple preset basic functions include at least one preset basic function included in the preset general functions corresponding to each of the multiple preset scenario types.

[0163] In some embodiments, the association between a network service and at least one preset basic function can be represented by the association between the service identifier of the network service and the basic function identifier of at least one preset basic function. Multiple preset basic functions and multiple network services are all basic functions registered in the registrar through a common service interface, which is a common service interface defined in the registrar.

[0164] For example, the general service orchestration and scheduling layer can send service identifiers of multiple network services and basic function identifiers of multiple preset basic functions to the registrar through a preset communication protocol, so as to store the service identifiers of multiple network services and basic function identifiers of multiple preset basic functions in the registrar, thereby realizing the registration of multiple network services and multiple preset basic functions in the registrar.

[0165] Optionally, the preset communication protocol may be gRPC, Hypertext Transfer Protocol (HTTP) / Hypertext Transfer Protocol Secure (HTTPS), Transmission Control Protocol (TCP), etc.

[0166] In some embodiments, the service identifier of the first network service is stored in the registrar to enable the registration of the first network service in the registrar.

[0167] In some embodiments, the registrar stores a basic function identifier for at least one preset basic function, which is used to register at least one preset basic function in the registrar.

[0168] The basic function identifier of the default basic function includes at least one of the following: IP address, port number, and Uniform Resource Locator (URL).

[0169] S502. Obtain the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device.

[0170] S503. Determine the general functions corresponding to the scene type. The general functions include at least one preset basic function and at least one preset basic function calling strategy.

[0171] S504. Determine at least one preset basic function included in the general functions corresponding to the scenario type as at least one preset basic function of the first network service.

[0172] S505. Determine whether the registration device has registered the first network service and the at least one preset basic function.

[0173] In some implementations, determining whether a registrar has registered the first network service may include: determining whether the first network service is included among the multiple network services registered in the registrar.

[0174] In some embodiments, a service identifier of a first network service is obtained; if the service identifier of the first network service is included among the service identifiers of multiple network services registered in the registrar, it is determined that the multiple network services registered in the registrar include the first network service.

[0175] In some embodiments, the service identifier of the first network service may be included in the service parameters of the first network service. When the service identifier of the first network service is included in the service parameters, the service identifier of the first network service can be obtained from the service parameters.

[0176] In some implementations, determining whether a registrar has registered the first network service may include at least one preset basic function, including: determining whether at least one preset basic function is included among the multiple preset basic functions registered in the registrar.

[0177] In some embodiments, when the basic function identifiers of the plurality of preset basic functions registered in the registrar include the basic function identifier of at least one preset basic function, it is determined that the plurality of preset basic functions registered in the registrar include at least one preset basic function.

[0178] It is worth noting that when the first network service and at least one preset basic function are registered in the registration tool, the first network service will have general functions that support the first service scenario.

[0179] S506. When determining the registration of the first network service and at least one preset basic function, the at least one preset basic function of the first network service is invoked according to the invocation strategy of the at least one preset basic function.

[0180] S507. Through at least one preset basic function of the first network service, the service parameters are converted into configuration information, and the configuration information is the configuration information converted from the service parameters through at least one preset basic function of the first network service.

[0181] In some embodiments, the service parameter includes at least one service resource corresponding to the first network service;

[0182] In some embodiments, at least one service resource includes, for example, at least one of the following: IP address, port information, etc., configured by the network device.

[0183] In some embodiments, the configuration information also includes at least one business resource.

[0184] In some embodiments, S507 may include: determining whether at least one service resource is occupied;

[0185] When at least one service resource is not occupied, the service parameters are transmitted to at least one preset basic function of the first network service in the registrar; the service parameters are converted into configuration information through at least one preset basic function of the first network service.

[0186] If at least one business resource is occupied, the orchestration task will be marked as failed.

[0187] In some embodiments, at least one of the above-mentioned service resources can be searched in the list of occupied resources; if at least one service resource is found, it is determined that at least one service resource is occupied; if at least one service resource is not found, it is determined that at least one service resource is not occupied.

[0188] In some embodiments, if there is a conflict in the service parameters of the first network service, the orchestration task is marked as failed.

[0189] Conflicts may occur in business parameters, such as invalid business parameters.

[0190] In some embodiments, a possible reason for a business parameter to be invalid is that the business parameter is not a predefined parameter.

[0191] In this embodiment of the application, before generating the configuration information of the first network service, it is determined whether at least one service resource corresponding to the first network service is occupied. Therefore, it can prevent the problem of service configuration failure caused by competition for service resources among multiple network services, and improve the success rate of configuring the first network service in the network device.

[0192] S508. Through at least one preset basic function of the first network service, configuration information is sent to the network device indicated by the device identifier. The configuration information is used to configure the first network service in the network device. The first network service in the network device supports the first service scenario.

[0193] In some embodiments, through at least one preset basic function of the first network service, and after... Figure 2 The network platform layer shown sends configuration information to the network device indicated by the device identifier.

[0194] In some embodiments, the status of the network device is obtained, which is either an idle state or a service configuration state; when the status is idle, configuration information is sent to the network device.

[0195] For example, the state of a network device can be the state recorded by the network platform layer.

[0196] The idle state indicates that no network services are currently being configured on the network device.

[0197] Service configuration status indicates the network service configuration currently being performed on the network device.

[0198] In this embodiment, multiple network services and multiple preset basic functions are pre-registered in the registrar. During use, the scenario type of the first service scenario, the service parameters of the first network service, and the device identifier of the network device are obtained. A general function corresponding to the scenario type is determined, including at least one preset basic function and a calling strategy for at least one preset basic function. The at least one preset basic function included in the general function corresponding to the scenario type is identified as at least one preset basic function of the first network service. When determining the registration of the first network service and at least one preset basic function in the registrar, the at least one preset basic function of the first network service is called according to the calling strategy of the at least one preset basic function, and the configuration information obtained based on the service parameters is sent to the network device indicated by the device identifier. This enables the first network service to support the preset general functions corresponding to the scenario type of the first service scenario, improving code reusability and the reusability of preset general functions. It eliminates the need to redevelop functions supporting the first service scenario when adding a new network service, shortening the development cycle and workload when adding a new network service, and improving the stability of development quality.

[0199] In some embodiments, the general service orchestration and scheduling layer can also perform the following operations:

[0200] Generate the orchestration task corresponding to the first network service;

[0201] If the first condition is met, the orchestration task is marked as failed;

[0202] When the second condition is met, the orchestration task is marked as successful.

[0203] In some embodiments, the first condition includes one or more of the following: the first network service is not registered in the registrar, at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device fails.

[0204] In some embodiments, the second condition includes: successfully configuring the first network service in the network device.

[0205] In some embodiments, after an orchestration task is marked as failed, the service configuration method provided in this application embodiment can be executed again.

[0206] In some embodiments, an orchestration task is marked as successful, indicating that the orchestration task has ended.

[0207] In some embodiments, when an orchestration task is marked as failed, the reason for the failure may also be recorded. For example, the reasons for failure may include one or more: the first network service is not registered in the registrar, at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device has failed.

[0208] In this embodiment of the application, for example, the general service orchestration and scheduling layer can also display the orchestration task through a display device, so that users can understand the configuration status of the first network service in a timely manner.

[0209] In some embodiments, the method provided in this application may further include: when configuring a first network service fails but configuring at least one second service succeeds, calling the deletion function corresponding to the first network service to delete the configuration information in the network device, wherein the deletion function is a preset basic function of the first network service; detecting whether the configuration information in the network device has been successfully deleted; and when the configuration information in the network device has not been successfully deleted, calling the deletion function corresponding to the first network service to delete the configuration information obtained by converting the service parameters.

[0210] In some embodiments, the general service orchestration and scheduling layer can also detect whether the configuration information in the network device has been successfully deleted.

[0211] In some embodiments, configuration information is stored in the general service orchestration and scheduling layer.

[0212] In some embodiments, deleting the configuration information obtained from the conversion of business parameters means deleting the configuration information generated in the general orchestration and scheduling layer of the business.

[0213] In some embodiments, configuration information generated in the general orchestration and scheduling layer of a service is deleted based on a deletion request. The deletion request is a request obtained through a deletion operation retrieved from the webpage corresponding to the first network service, and this deletion operation is performed by the user on that webpage.

[0214] In this embodiment of the application, since the configuration information includes at least one service resource, deleting the configuration information in the network device can enable the service resource to be recycled and reused, thus saving service resources.

[0215] In this embodiment of the application, when the configuration information in the network device is not successfully deleted, the deletion function corresponding to the first network service is called to delete the configuration information obtained by converting the service parameters. This can release at least one service resource of the SDN controller, save the storage space of the SDN controller, and ensure the consistency of network services between the network device and the SDN controller.

[0216] The following describes the specific contents of the general orchestration and scheduling layer for business applications.

[0217] Figure 6 This is a schematic diagram of the general orchestration and scheduling layer for services provided in the embodiments of this application. For example... Figure 6 As shown, it includes: a business orchestrator, a business registrar, and a business orchestration manager. The business orchestrator includes a business orchestration task management module and a general capability processing module.

[0218] The service orchestrator can display multiple preset general capabilities and / or multiple preset basic functions registered in the registry through the capability interface in the external presentation layer. It can also obtain WEB service operation requests through the external presentation layer and orchestrate and schedule network services registered in the registry based on these requests. Furthermore, it can manage and control service resources. The functions of the service orchestrator can be implemented through the service orchestration task management module and the general capability processing module.

[0219] The service orchestration task management module can be used to produce orchestration tasks corresponding to network services and display the orchestration tasks through an external presentation layer. The orchestration task contains indicators of whether the network service is successful. Users can understand the configuration status of the network service by checking whether the network service is successful in the orchestration task. If the configuration of the network service fails in the network device, the network service can be reconfigured in the network device based on the orchestration task.

[0220] The general capability processing module defines several preset general functions, such as immediate transmission, timed transmission, delayed transmission, periodic transmission, and immediate retry upon failure. These are general capability processing functions for network services. If the SDN controller needs to support more new service scenarios, preset general functions matching these new service scenarios can be defined in this model. This eliminates the need to develop functions in the network application layer that match the new service scenarios, thus saving development workload, improving development efficiency, and shortening the development cycle. Network services in the network application layer do not require development.

[0221] The business registrar is used to register network services and their default basic functions. Network services registered in the business registrar support default general functions matched to the business scenario. The business registrar defines general business interfaces. When adding a new network service, simply implementing the defined general business interfaces will enable the new network service to also support the default general functions matched to the business scenario, shortening the development cycle and workload when adding new network services, and improving the stability of development quality.

[0222] The service orchestration manager can be used to manage network services that have been registered in the registry (such as enabling or disabling them) to uniformly control the network services provided by the SDN controller. When certain network services are abnormal, they can be urgently disabled to ensure that users can restrict any operation on abnormal network services without affecting the use of other network services.

[0223] The service orchestration manager can also be used to combine network services already registered in the registrar to obtain a new network service, define the service identifier of the new network service, and register the new network service in the registrar for use by the general service orchestration and scheduling layer. The service orchestration manager can obtain service orchestration requests through the external presentation layer. These requests include the service identifiers of at least two network services and their specified order. The at least two network services are those already registered in the registrar. The service identifiers and their specified order can be selected by the user on the visualization page or a specified order.

[0224] The business orchestration manager can also be used to combine at least two preset basic capabilities that have been registered by the registrar to obtain new preset basic capabilities, generate a basic capability identifier for the new preset basic capabilities, and then register the new preset basic capabilities in the registrar based on the identifier.

[0225] In the application embodiments, the general service orchestration and scheduling layer can be scaled vertically or horizontally. When scaled vertically, pre-defined general functions matching new service scenarios are developed in the general capability processing module, enabling all network services managed by the SDN controller to support these pre-defined general functions. When scaled horizontally, new network services can be registered in the service registry by implementing the general service interfaces already defined in the service registry, thus enabling these new network services to support all pre-defined general functions in the general capability processing module. This shortens the development cycle for new service scenarios and new network services, improves code reusability, and enhances development stability.

[0226] The following uses multiple network devices as examples, combined with... Figure 7 ,illustrate Figure 6 The business orchestrator can execute general business orchestration and scheduling processes (i.e., business configuration methods).

[0227] Figure 7 This application provides a general service orchestration and scheduling process for its embodiments. For example... Figure 7 As shown, the process includes:

[0228] S701. Obtain a WEB service operation request. The WEB service operation request includes the scenario type of the first service scenario, the service parameters of the first network service, the service identifier of the first network service, and the device identifiers of multiple network devices. The service parameters include at least one service resource corresponding to the first network service.

[0229] In one implementation, S401 may be included before S701. Details will not be elaborated here.

[0230] S702. Generate the orchestration task corresponding to the first network service.

[0231] Optionally, when configuring, updating, or deleting the first network service in a network device, a corresponding orchestration task can be generated.

[0232] S703. Determine whether the first network service is registered in the registration tool.

[0233] If not, execute S704; otherwise, execute S705.

[0234] S704. Mark the orchestration task as failed.

[0235] In some implementations, the reason for the failure can also be recorded when the orchestration task is marked as a failure.

[0236] In some implementations, based on the above S703, the reason for failure is that the first network service is not registered in the registrar.

[0237] In some implementations, based on the following S705, the reason for failure is that at least one service resource corresponding to the first network service is occupied.

[0238] In some implementations, based on the following S707, the reason for failure is that at least one preset basic function is not registered in the registrar.

[0239] S705. Determine whether at least one service resource corresponding to the first network service is occupied.

[0240] If yes, then execute S704; otherwise, execute S706.

[0241] In some embodiments, before S705, the process may include: performing a business authorization judgment; and after the business authorization judgment is performed and the business authorization is determined, executing S705.

[0242] S706. Determine the general functions corresponding to the scene type. The preset general functions include at least one preset basic function and at least one preset basic function calling strategy.

[0243] S707. Determine whether at least one preset basic function is registered in the registration tool.

[0244] If not, execute S704; otherwise, execute S708.

[0245] S708. Invoke at least one preset basic function of the first network service according to the calling strategy of at least one preset basic function.

[0246] Specifically, the execution method of S708 is the same as that of S406, which calls at least one preset basic function of the first network service according to the calling strategy of at least one preset basic function, and will not be repeated here.

[0247] S709. Determine the configuration information of the first network service based on at least one preset basic function and service parameter of the first network service.

[0248] S710: Obtain the status of multiple network devices, which can be either idle or service configuration status.

[0249] In one implementation, the SDN controller can record the status of multiple network devices. For example, when a network device is being configured with a first network service, its status can be recorded as idle; when a network device is not being configured with a first network service, its status can be recorded as service configuration. Furthermore, during the execution of S710, the recorded status of each of the multiple network devices can be obtained.

[0250] S711. Based on the status of each of the multiple network devices, determine the idle device among the multiple network devices.

[0251] In one implementation, for each network device, it is determined whether the network device is in an idle state. If the network device is in an idle state, the network device is identified as an idle device.

[0252] In another implementation, network devices that are in an idle state among multiple network devices are identified as idle devices.

[0253] S712. Based on the device identifier of the idle device, configuration information is sent to the idle device through at least one preset basic function of the first network service.

[0254] S713. Determine whether the feedback method of the service processing result is synchronous. The service processing result is used to indicate whether the configuration information was successfully sent to the corresponding network device.

[0255] If yes, then execute S714. Otherwise, execute S715. That is, when the feedback method of the business processing result is synchronous, execute S714; when the feedback method of the business processing result is asynchronous, execute S715.

[0256] In one implementation, the feedback method for business processing results is associated with the channel used to send configuration information to idle devices.

[0257] For example, the channel used to send configuration information to idle devices is the NETCONF channel, and the feedback method for service processing results can be synchronous.

[0258] For example, the channel used to send configuration information to idle devices is the gRPC channel, and the feedback method for the service processing results can be asynchronous.

[0259] S714. After synchronously obtaining the respective service processing results of multiple network devices, update the orchestration task according to the respective service processing results of multiple network devices.

[0260] S715. After asynchronously obtaining the respective business processing results of multiple network devices through the Socket communication protocol, update the orchestration task according to the respective business processing results of multiple network devices.

[0261] For example, updating the orchestration task based on the respective service processing results of multiple network devices includes: marking the orchestration task as successful when the respective service processing results of multiple network devices indicate that the configuration information was successfully sent to the corresponding network device; and marking the orchestration task as successful when the self-service processing result of one of the multiple network devices indicates that the configuration information was failed to be sent to that network device.

[0262] It should be noted that the execution order of the steps in each of the foregoing method embodiments can be adjusted, split, or combined to obtain new method embodiments. It should also be noted that multiple foregoing method embodiments can be split or combined to obtain new method embodiments. These new method embodiments also belong to the technical solutions of this application.

[0263] Figure 8 This is a schematic diagram of the service configuration device provided in an embodiment of this application. The service configuration device is software and / or hardware in an SDN controller, which supports a first service scenario. Figure 8 As shown, the service configuration device 80 includes:

[0264] The acquisition module 801 is used to acquire the service parameters of the first network service and the device identifier of the network device. The first network service is to be configured in the network device.

[0265] Processing module 802 is used to determine at least one preset basic function of the first network service;

[0266] The processing module 802 is also used to determine the configuration information of the first network service based on the service parameters;

[0267] The distribution module 803 is used to distribute configuration information to the network device indicated by the device identifier through at least one preset basic function, wherein the configuration information is used to configure a first network service in the network device.

[0268] It is worth noting that the service configuration device 80 can execute the methods provided in the above method embodiments, and its implementation principle and technical effect are similar, so it will not be described in detail here.

[0269] In one possible implementation, the processing module 802 is specifically used for:

[0270] Obtain the scenario type of the first business scenario; the first network service supports the first business scenario.

[0271] Determine the common functions corresponding to the scene type;

[0272] At least one preset basic function included in the general functions corresponding to the scenario type shall be identified as at least one preset basic function of the first network service.

[0273] In one possible implementation, the processing module 802 is specifically used for:

[0274] In the preset list, the general function identifier corresponding to the scene type is determined. The preset list includes the correspondence between multiple preset scene types and multiple preset general function identifiers. The multiple preset scene types include scene types, and the multiple preset general function identifiers include general function identifiers.

[0275] The preset general functions corresponding to the general function identifiers are identified as the general functions corresponding to the scene types.

[0276] In one possible implementation, the sending module 803 is specifically used for:

[0277] Invoke at least one preset basic function of the first network service according to the invocation strategy of at least one preset basic function;

[0278] Configuration information is sent to the network device indicated by the device identifier through at least one preset basic function.

[0279] In one possible implementation, the sending module 803 is specifically used for:

[0280] Determine whether the first network service and at least one preset basic function are registered in the registration tool;

[0281] When registering the first network service and at least one preset basic function in the registration tool, the first network service's at least one preset basic function is invoked according to the invocation strategy of at least one preset basic function.

[0282] In one possible implementation, before determining whether the first network service and at least one preset basic function are registered in the registrar, the processing module 802 is further configured to:

[0283] Implement the general business interface based on the general business interface defined in the registry;

[0284] Register the first network service and / or at least one preset basic function in the registrar through the implemented general business interface.

[0285] In one possible implementation, the processing module 802 is further configured to:

[0286] Generate the orchestration task corresponding to the first network service;

[0287] When the first condition is met, the orchestration task is marked as failed. The first condition includes one or more of the following: the first network service is not registered in the registrar, at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device fails.

[0288] The orchestration task will be marked as successful when the second condition is met, which includes: successfully configuring the first network service in the network device.

[0289] In one possible implementation, the service parameters include at least one service resource corresponding to the first network service;

[0290] Processing module 802 is specifically used for:

[0291] Determine whether at least one business resource is occupied;

[0292] When at least one business resource is not occupied, the business parameters are transmitted to at least one preset basic function of the first network service in the registrar.

[0293] By using at least one preset basic function of the first network service, service parameters are converted into configuration information.

[0294] In one possible implementation, the processing module 802 is further configured to:

[0295] When configuring the first network service on a network device fails, but configuring at least one second service succeeds, the deletion function corresponding to the first network service is invoked to delete the configuration information in the network device. The deletion function is a preset basic function of the first network service.

[0296] Check if the configuration information in the network device was successfully deleted;

[0297] If the configuration information in the network device is not successfully deleted, the deletion function corresponding to the first network service is invoked to delete the configuration information obtained by converting the service parameters.

[0298] The service configuration device 80 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0299] Figure 9 This is a schematic diagram of the structure of the service configuration device provided in an embodiment of this application. Figure 9 As shown, the service configuration device 90 provided in this embodiment includes at least one processor 901 and a memory 902.

[0300] Optionally, the service configuration device 90 also includes a communication component 903. The processor 901, memory 902, and communication component 903 are connected via a bus 904.

[0301] In the specific implementation process, at least one processor 901 executes computer execution instructions stored in memory 902, causing at least one processor 901 to execute the above-mentioned business configuration method.

[0302] The specific implementation process of processor 901 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0303] In the above embodiments, it should be understood that the processor can be a CPU (Central Processing Unit), or other general-purpose processors, DSPs (Digital Signal Processors), ASICs (Application Specific Integrated Circuits), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0304] The memory may include RAM (Random Access Memory) and may also include NVM (Non-volatile Memory), such as at least one disk storage device.

[0305] The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0306] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described business configuration method.

[0307] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the aforementioned business configuration method.

[0308] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random-Access Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0309] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an ASIC (Application Specific Integrated Circuit). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0310] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0311] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0312] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0313] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM (Read-Only Memory), RAM (Random Access Memory), magnetic disks, or optical disks.

[0314] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0315] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A business configuration method, characterized in that, Applied to a software-defined networking (SDN) controller, the method includes: Obtain the service parameters of the first network service and the device identifier of the network device, wherein the first network service is to be configured in the network device; Determine at least one preset basic function of the first network service; Based on the service parameters, determine the configuration information of the first network service; The configuration information is sent to the network device indicated by the device identifier through the at least one preset basic function, wherein the configuration information is used to configure the first network service in the network device.

2. The method according to claim 1, characterized in that, The determination of at least one preset basic function of the first network service includes: Obtain the scenario type of the first service scenario, and the first network service supports the first service scenario; Determine the general functions corresponding to the aforementioned scenario type; At least one preset basic function included in the general functions corresponding to the scenario type is determined as at least one preset basic function of the first network service.

3. The method according to claim 2, characterized in that, The general function for determining the scene type includes: In a preset list, a general function identifier corresponding to the scene type is determined. The preset list includes the correspondence between multiple preset scene types and multiple preset general function identifiers. The multiple preset scene types include the scene type, and the multiple preset general function identifiers include the general function identifier. The preset general function corresponding to the general function identifier is determined as the general function corresponding to the scenario type.

4. The method according to claim 1, characterized in that, The configuration information is sent to the network device indicated by the device identifier through at least one preset basic function, including: Invoke at least one preset basic function of the first network service according to the invocation strategy of the at least one preset basic function; The configuration information is sent to the network device indicated by the device identifier through at least one preset basic function.

5. The method according to claim 4, characterized in that, The step of invoking at least one preset basic function of the first network service according to the invocation strategy of the at least one preset basic function includes: Determine whether the first network service and the at least one preset basic function are registered in the registration device; When registering the first network service and the at least one preset basic function in the registrar, the at least one preset basic function of the first network service is invoked according to the invocation strategy of the at least one preset basic function.

6. The method according to claim 5, characterized in that, Before determining whether the first network service and the at least one preset basic function are registered in the registration unit, the method further includes: Implement the general business interface according to the general business interface defined in the registrar; The first network service and / or at least one preset basic function are registered in the registrar through the implemented general service interface.

7. The method according to claim 5, characterized in that, The method further includes: Generate the orchestration task corresponding to the first network service; When a first condition is met, the orchestration task is marked as failed. The first condition includes one or more of the following: the first network service is not registered in the registrar, the at least one preset basic function is not registered in the registrar, or the configuration of the first network service in the network device fails. When a second condition is met, the orchestration task is marked as successful, the second condition including: the first network service is successfully configured in the network device.

8. The method according to any one of claims 1 to 7, characterized in that, The service parameters include at least one service resource corresponding to the first network service. Determining the configuration information of the first network service based on the service parameters includes: Determine whether the at least one business resource is occupied; When none of the at least one service resource is occupied, the service parameters are transmitted to at least one preset basic function of the first network service in the registrar; The service parameters are converted into the configuration information through at least one preset basic function of the first network service.

9. The method according to any one of claims 1 to 7, characterized in that, The method further includes: When the configuration of the first network service fails and the configuration of at least one second service succeeds, the deletion function corresponding to the first network service is invoked to delete the configuration information in the network device. The deletion function is a preset basic function of the first network service. Check whether the configuration information in the network device has been successfully deleted; If the configuration information in the network device is not successfully deleted, the deletion function corresponding to the first network service is invoked to delete the configuration information obtained by converting the service parameters.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method of any one of claims 1 to 9.