A processing method and device based on SDN

By using an SDN controller to retrieve and standardize data models from distributed databases, the SDN network configuration method enables interoperability and reduces complexity across different vendor devices, improving network management and deployment efficiency.

CN115913935BActive Publication Date: 2025-07-15CHINA TELECOM CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211538538.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-07-15
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

In the SDN network, there is a lack of unified interface specifications between SDN controllers and SDN terminals of different manufacturers, which makes devices unable to be interconnected, increases network complexity and limits the diversity of terminal manufacturers.

Method used

Multiple data models are obtained from the distributed database through the SDN controller, target network configuration information is generated based on the call of the business system, and NETCONF protocol is used to communicate with the SDN terminal to realize centralized, unified management and flexible configuration of the data model.

Benefits of technology

It realizes decoupling between SDN controllers and SDN terminals, supports the interconnection of equipment from different manufacturers, improves the diversification of terminal manufacturers and reduces network complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115913935B_ABST
    Figure CN115913935B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a processing method and apparatus based on SDN. SDN has an SDN controller and an SDN terminal. The method includes: the SDN controller obtains multiple data models from a distributed database; wherein, the data models in the distributed database are obtained from a central database; the SDN controller determines a target data model from multiple distributed databases according to the invocation of a business system, and generates target network configuration information based on the target data model; the SDN controller sends the target network configuration information to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information. Through the embodiment of the present invention, the SDN controller can obtain data models on demand to perform network configuration on the SDN terminal, can centrally, uniformly and flexibly manage the data models, and decouples the SDN controller and the SDN terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of networks, and particularly to a processing method and apparatus based on SDN. Background Art

[0002] In SDN (Software Defined Network), the control and forwarding separation technology is usually adopted, and the SDN controller centrally controls network elements such as SDN terminals. Specifically, the network configuration protocol (NETCONF, Network Configuration Protocol) can be used.

[0003] For the network configuration protocol NETCONF, the data models between SDN controllers and network elements such as SDN terminals of different manufacturers are all private, and there is no unified interface specification. Therefore, the SDN controller and the SDN terminal must be devices of the same manufacturer, and devices of different manufacturers cannot communicate with each other.

[0004] Due to the tight coupling between the SDN terminal and the SDN controller, the diversification of terminal manufacturers is restricted. When there are SDN terminals of multiple manufacturers, multiple SDN controllers of multiple manufacturers must be used correspondingly, which greatly increases the network complexity and causes great difficulties in network planning, commissioning, and operation and maintenance. Summary of the Invention

[0005] In view of the above problems, a processing method and apparatus based on SDN are proposed to overcome or at least partially solve the above problems, including:

[0006] A processing method based on SDN, where the SDN has an SDN controller and an SDN terminal, and the SDN controller and the SDN terminal perform data communication using the network configuration protocol NETCONF. The method includes:

[0007] The SDN controller obtains multiple data models from a distributed database; wherein, the data models in the distributed database are obtained from a central database.

[0008] The SDN controller determines a target data model from the multiple distributed databases according to the call of the service system, and generates target network configuration information based on the target data model.

[0009] The SDN controller sends the target network configuration information to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information.

[0010] Optionally, generating the target network configuration information based on the target data model includes:

[0011] The SDN controller generates original network configuration information according to the work order of the service system;

[0012] The SDN controller performs format conversion on the original network configuration information based on the target data model to obtain target network configuration information in a specified format.

[0013] Optionally, the specified format is XML format.

[0014] Optionally, the SDN controller obtains multiple data models from a distributed database, including:

[0015] The SDN controller synchronizes data with the distributed database to obtain multiple data models in the distributed database.

[0016] Optionally, before the SDN controller obtains multiple data models from the distributed database, it further includes:

[0017] The SDN controller performs test verification and performs network access operation after completing the test verification.

[0018] Optionally, the central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller is used to manage a corresponding multiple SDN terminals.

[0019] Optionally, the data model is a data model based on the data modeling language Yang.

[0020] A processing device based on SDN, the SDN has an SDN controller and SDN terminals, and the SDN controller and the SDN terminals perform data communication using the network configuration protocol NETCONF. The device includes:

[0021] A data model acquisition module, configured to obtain multiple data models from a distributed database; wherein, the data models in the distributed database are obtained from a central database;

[0022] A target network configuration information generation module, configured to determine a target data model from the multiple distributed databases according to a call of a service system, and generate target network configuration information based on the target data model;

[0023] A network configuration module, configured to send the target network configuration information to the SDN terminals to perform network configuration on the SDN terminals according to the target network configuration information.

[0024] An electronic device includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the above-described SDN-based processing method is implemented.

[0025] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the above-described SDN-based processing method is implemented.

[0026] The embodiments of the present invention have the following advantages:

[0027] In the embodiments of the present invention, the SDN controller obtains multiple data models from the distributed database. The data models in the distributed database are obtained from the central database. Then, according to the invocation of the service system, the target data model is determined from the multiple distributed databases, and based on the target data model, the target network configuration information is generated and sent to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information. It realizes that the SDN controller obtains data models on demand to perform network configuration on the SDN terminal, can centrally, uniformly, and flexibly manage the data models, decouples the SDN controller and the SDN terminal, enables interconnection and interoperability of devices from different manufacturers, improves the diversity of terminal manufacturers, and reduces network complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for the description of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0029] Figure 1 is a flowchart of the steps of an SDN-based processing method provided by an embodiment of the present invention;

[0030] Figure 2 is a schematic diagram of a system architecture provided by an embodiment of the present invention;

[0031] Figure 3 is a flowchart of the steps of another SDN-based processing method provided by an embodiment of the present invention;

[0032] Figure 4 is a flowchart of the steps of another SDN-based processing method provided by an embodiment of the present invention;

[0033] Figure 5 is a flowchart of the steps of another SDN-based processing method provided by an embodiment of the present invention;

[0034] Figure 6 It is a structural block diagram of a processing device based on SDN provided by an embodiment of the present invention;

[0035] Figure 7 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0036] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0037] Referring to Figure 1 , a step flowchart of a processing method based on SDN provided by an embodiment of the present invention is shown. The SDN may have an SDN controller and an SDN terminal (physical terminal CPE or virtual terminal vCPE), and data communication may be performed between the SDN controller and the SDN terminal using the network configuration protocol NETCONF.

[0038] In the SDN, the SDN controller realizes command control of the SDN terminal through NETCONF. Nefconf is a C / S model protocol. It can use SSH or TLS as a secure channel and use Yang as metadata to complete the definition of command description. The SDN controller, as a Client, calls to convert the upper-layer REST (Representational State Transfer) into data based on XML-RPC (Remote Procedure Call) carried in NetConf according to the Yang model to configure the SDN terminal.

[0039] The configured SDN terminal, as a Server, converts it into the final configuration of the SDN terminal after verifying the legality of the RPC according to the PIN (Personal Identification Number).

[0040] Among them, NETCONF is an XML-based network management protocol that provides a programmable method for configuring and managing network devices. Users can set parameters, obtain parameter values, obtain statistical information, etc. through this protocol. NETCONF messages use the XML format, have powerful filtering capabilities, and each data item has a fixed element name and location. This enables different devices from the same manufacturer to have the same access method and result presentation method, and devices from different manufacturers can also achieve the same effect through XML mapping. This makes it very convenient for the development of third-party software and makes it easy to develop special customized network management software in an environment that mixes different manufacturers and different devices. With the assistance of such network management software, using the NETCONF function will make the configuration management of network devices simpler and more efficient.

[0041] The Yang model is a data modeling language used to model the configuration data and status data operated by the NETCONF protocol, NETCONF remote procedure calls (RPCs), and NETCONF notifications.

[0042] Specifically, it can include the following steps:

[0043] Step 101, the SDN controller obtains multiple data models from the distributed database; among them, the data models in the distributed database are obtained from the central database.

[0044] Among them, the central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller can be used to manage multiple corresponding SDN terminals.

[0045] Such as Figure 2 , different business platforms are set up for different regions under the group / headquarters, such as the business platforms from Province A to Province Z. Among the business platforms set up in different regions, a unified controller (i.e., the SDN controller) can be set up. The controller can manage devices of different manufacturers and different types. For example, the unified controller in Province A can manage manufacturer A + device type a, and manufacturer B + device type a.

[0046] In an embodiment of the present invention, the SDN controller obtaining multiple data models from the distributed database may include: the SDN controller synchronizes data with the distributed database to obtain multiple data models in the distributed database.

[0047] Among them, the data model can be a data model based on the data modeling language Yang.

[0048] In order to be compatible with the data models between SDN controllers and SDN terminals from different manufacturers and to enable non-interoperability between devices from different manufacturers, all required data models can be uniformly stored in a central database. For each distributed database, the data models can be synchronized from the central database, or according to the SDN terminals to be managed, only the data models required by the corresponding SDN controllers can be synchronized, and data model synchronization can be carried out using strategies such as regular push and real-time request.

[0049] Among them, the required data models can be determined through the terminal type and serial number (or MAC address) of the SDN terminal. Taking the Yang data model as an example, it can be as shown in Table 1 below:

[0050] Serial number Terminal type YANG model 1234567890 A8-C_VendorA TANG_A 8888888888 A8-C_VendorB TANG_B

[0051] Table 1

[0052] For the SDN controller, the data model can be synchronized from the distributed database associated with it regularly or in real time, and data model synchronization can be carried out using strategies such as regular push and real-time request.

[0053] Such as Figure 2 , in the group / headquarters, a group Yang / XML library (i.e., the central database) can be set up, which can store data models of various device types and various manufacturers. In the business platforms in different regions, Yang / XML libraries (i.e., distributed databases) for that region are set up, which can store the data models required by that region. For example, in Province A, for the unified controller to manage manufacturers A + device type a and manufacturer B + device type a, the Yang / XML library in Province A stores the data models of device type a + manufacturers A and B.

[0054] In an embodiment of the present invention, before the SDN controller obtains multiple data models from the distributed database, it may further include:

[0055] The SDN controller conducts test verification and performs network access operations after completing the test verification.

[0056] Before the SDN controller accesses the network, it is necessary to complete the test verification of the Yang model of the terminal type to be enabled, verify whether it is adaptable, and perform network access operations after completing the test verification.

[0057] Step 102, the SDN controller determines the target data model from the multiple distributed databases according to the call of the business system, and generates target network configuration information based on the target data model.

[0058] For different business systems, different parameters can be sent to the SDN controller, so that the SDN controller can select a target data model from its corresponding distributed database, and then generate target network configuration information for the SDN terminal based on the target data model.

[0059] In an embodiment of the present invention, the generating of the target network configuration information based on the target data model may include:

[0060] The SDN controller generates original network configuration information according to the work order of the business system; the SDN controller performs format conversion on the original network configuration information based on the target data model to obtain target network configuration information in a specified format.

[0061] In a specific implementation, the SDN controller can receive the work order of the business system, generate original network configuration information according to the work order of the business system, and then use the target data model to perform format conversion on the original network configuration information to obtain target network configuration information in a specified format. The specified format can be XML format, that is, in line with the format of the NETCONF message.

[0062] Step 103, the SDN controller sends the target network configuration information to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information.

[0063] After obtaining the target network configuration information, the SDN controller can call the southbound protocol interface to send the target network configuration information to the SDN terminal. After receiving the target network configuration information, the SDN terminal can perform network configuration according to the target network configuration information.

[0064] In an embodiment of the present invention, the SDN controller obtains multiple data models from the distributed database. The data models in the distributed database are obtained from the central database. Then, according to the call of the business system, the target data model is determined from the multiple distributed databases, and based on the target data model, target network configuration information is generated and sent to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information. It realizes that the SDN controller obtains data models on demand to perform network configuration on the SDN terminal, can centrally, uniformly and flexibly manage the data models, decouples the SDN controller and the SDN terminal, enables interoperability between different manufacturers' devices, improves the diversity of terminal manufacturers, and reduces network complexity.

[0065] Refer to Figure 3, showing a flowchart of steps of another SDN-based processing method provided by an embodiment of the present invention. The SDN may include an SDN controller and SDN terminals (physical terminal CPE or virtual terminal vCPE), and data communication may be performed between the SDN controller and the SDN terminals using the Network Configuration Protocol (NETCONF).

[0066] In the SDN, the SDN controller realizes command control over the SDN terminals through NETCONF. NETCONF is a C / S model protocol that can use SSH or TLS as a secure channel and use Yang as metadata to complete the definition of command descriptions. The SDN controller, as the Client, calls to convert the upper-layer REST (Representational State Transfer) into data carried in NetConf based on XML-RPC (Remote Procedure Call) according to the Yang model to configure the SDN terminals.

[0067] The configured SDN terminal, as the Server, converts the RPC into the final configuration of the SDN terminal after verifying the legality of the RPC according to the PIN (Personal Identification Number).

[0068] Among them, NETCONF is an XML-based network management protocol that provides a programmable method for configuring and managing network devices. Users can set parameters, obtain parameter values, obtain statistical information, etc. through this protocol. NETCONF messages use the XML format, have powerful filtering capabilities, and each data item has a fixed element name and position, which enables different devices of the same manufacturer to have the same access method and result presentation method, and devices between different manufacturers can also obtain the same effect through XML mapping, which makes it very convenient for the development of third-party software and is very easy to develop special customized network management software in an environment mixing different manufacturers and different devices. With the assistance of such network management software, using the NETCONF function will make the configuration management work of network devices simpler and more efficient.

[0069] The Yang model is a data modeling language used to model the configuration data and status data operated by the NETCONF protocol, NETCONF remote procedure calls (RPCs), and NETCONF notifications.

[0070] Specifically, it may include the following steps:

[0071] Step 301, the SDN controller obtains multiple data models from the distributed database; wherein, the data models in the distributed database are obtained from the central database.

[0072] Among them, the central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller can be used to manage multiple corresponding SDN terminals.

[0073] Such as Figure 2 , under the group / headquarters, different business platforms are set up for different regions, such as the business platforms from Province A to Province Z. Among the business platforms set up in different regions, a unified controller (i.e., SDN controller) can be set up. The controller can manage devices of different manufacturers and different types. For example, the unified controller in Province A can manage Manufacturer A + Device Type a, Manufacturer B + Device Type a.

[0074] In an embodiment of the present invention, the SDN controller obtaining multiple data models from the distributed database may include: the SDN controller synchronizes data with the distributed database to obtain multiple data models in the distributed database.

[0075] Among them, the data model can be a data model based on the data modeling language Yang.

[0076] In order to be compatible with data models between SDN controllers and SDN terminals of different manufacturers and other network elements, and to realize that devices of different manufacturers cannot communicate with each other, all required data models can be uniformly stored in the central database. For each distributed database, it can synchronize data models from the central database, or only synchronize the data models required by the corresponding SDN controller according to the SDN terminals to be managed. Data model synchronization can be carried out by means of strategies such as regular push and real-time request.

[0077] For the SDN controller, it can synchronize data models from the distributed database corresponding to it regularly or in real time. Data model synchronization can be carried out by means of strategies such as regular push and real-time request.

[0078] Such as Figure 2 , in the group / headquarters, a group Yang / XML library (i.e., central database) can be set up, which can store data models of various device types and various manufacturers. In the business platforms in different regions, a Yang / XML library (i.e., distributed database) for this region is set up, which can store the data models required by this region. For example, the unified controller in Province A manages Manufacturer A + Device Type a, Manufacturer B + Device Type a, and the Yang / XML library in Province A stores the data models of Device Type a + Manufacturers A and B.

[0079] Step 302: The SDN controller determines a target data model from the multiple distributed databases according to the invocation of the service system.

[0080] For different service systems, by sending different parameters to the SDN controller, the SDN controller can select a target data model from the corresponding distributed database.

[0081] Step 303: The SDN controller generates original network configuration information according to the work order of the service system.

[0082] Step 304: The SDN controller performs format conversion on the original network configuration information based on the target data model to obtain target network configuration information in a specified format.

[0083] In a specific implementation, the SDN controller can receive the work order of the service system, generate original network configuration information according to the work order of the service system, and then use the target data model to perform format conversion on the original network configuration information to obtain target network configuration information in a specified format. The specified format can be XML format, that is, the format conforming to the NETCONF message.

[0084] Step 305: The SDN controller sends the target network configuration information to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information.

[0085] After obtaining the target network configuration information, the SDN controller can call the southbound protocol interface to send the target network configuration information to the SDN terminal. After receiving the target network configuration information, the SDN terminal can perform network configuration according to the target network configuration information.

[0086] Refer to Figure 4 , which shows the flowchart of steps of another SDN-based processing method provided by an embodiment of the present invention. The SDN can have an SDN controller and an SDN terminal (physical terminal CPE or virtual terminal vCPE), and the SDN controller and the SDN terminal can perform data communication using the network configuration protocol NETCONF.

[0087] In SDN, the SDN controller realizes command control over SDN terminals through NETCONF. Netconf is a protocol with a C / S model. It can use SSH or TLS as a secure channel and use Yang as metadata to complete the definition of command descriptions. The SDN controller, as a Client, calls to convert the upper-layer REST (Representational State Transfer) based on the Yang model into data carried in NetConf based on XML-RPC (Remote Procedure Call) to configure the SDN terminals.

[0088] The configured SDN terminal, as a Server, converts it into the final configuration of the SDN terminal after verifying the legality of the RPC according to the PIN (Personal Identification Number).

[0089] Among them, NETCONF is an XML-based network management protocol that provides a programmable method for configuring and managing network devices. Users can set parameters, obtain parameter values, obtain statistical information, etc. through this protocol. NETCONF messages use the XML format and have powerful filtering capabilities. Moreover, each data item has a fixed element name and position, which enables different devices of the same manufacturer to have the same access method and result presentation method, and devices between different manufacturers can also obtain the same effect through XML mapping. This makes it very convenient in the development of third-party software and is very easy to develop special customized network management software in an environment mixing different manufacturers and different devices. With the assistance of such network management software, using the NETCONF function will make the configuration management of network devices simpler and more efficient.

[0090] The Yang model is a data modeling language used to model the configuration data and status data operated by the NETCONF protocol, NETCONF remote procedure calls (RPCs), and NETCONF notifications.

[0091] Specifically, it can include the following steps:

[0092] Step 401, the SDN controller performs test verification and performs network access operations after completing the test verification.

[0093] Before the SDN controller accesses the network, it is necessary to complete the test verification of the Yang model of the required terminal type to be enabled to verify whether it is adapted, and perform network access operations after completing the test verification.

[0094] Step 402, the SDN controller synchronizes data with the distributed database to obtain multiple data models in the distributed database; wherein, the data models in the distributed database are obtained from the central database.

[0095] Wherein, the central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller can be used to manage multiple corresponding SDN terminals.

[0096] Such as Figure 2 , under the group / headquarters, different business platforms are set up for different regions, such as the business platforms from Province A to Province Z. In the business platforms set up in different regions, a unified controller (i.e., SDN controller) can be set up. The controller can manage devices of different manufacturers and different types. For example, the unified controller in Province A can manage Manufacturer A + Device Type a and Manufacturer B + Device Type a.

[0097] In an embodiment of the present invention, the SDN controller obtaining multiple data models from the distributed database may include: the SDN controller synchronizes data with the distributed database to obtain multiple data models in the distributed database.

[0098] Wherein, the data model can be a data model based on the data modeling language Yang.

[0099] In order to be compatible with data models between network elements such as SDN controllers and SDN terminals of different manufacturers and to achieve non-interoperability of devices from different manufacturers, all required data models can be uniformly stored in the central database. For each distributed database, data models can be synchronized from the central database, or according to the SDN terminals to be managed, only the data models required by the corresponding SDN controller can be synchronized. Data model synchronization can be carried out by adopting strategies such as regular push and real-time request.

[0100] For the SDN controller, data models can be synchronized from the distributed database corresponding to it regularly or in real time, and data model synchronization can be carried out by adopting strategies such as regular push and real-time request.

[0101] Such as Figure 2 , in the group / headquarters, a group Yang / XML library (i.e., central database) can be set up, which can store data models of various device types and various manufacturers. In the business platforms in different regions, a Yang / XML library (i.e., distributed database) for that region is set up, which can store the data models required for that region. For example, the unified controller in Province A manages Manufacturer A + Device Type a and Manufacturer B + Device Type a, and the Yang / XML library in Province A stores the data models of Device Type a + Manufacturers A and B.

[0102] Step 403: The SDN controller determines a target data model from the multiple distributed databases according to the invocation of the service system, and generates target network configuration information based on the target data model.

[0103] For different service systems, different parameters can be sent to the SDN controller, so that the SDN controller can select a target data model from the corresponding distributed database, and then generate target network configuration information for the SDN terminal based on the target data model.

[0104] Step 404: The SDN controller sends the target network configuration information to the SDN terminal to configure the network of the SDN terminal according to the target network configuration information.

[0105] After obtaining the target network configuration information, the SDN controller can call the southbound protocol interface to send the target network configuration information to the SDN terminal. After receiving the target network configuration information, the SDN terminal can configure the network according to the target network configuration information.

[0106] The following is an exemplary description of the embodiments of the present invention in conjunction with Figure 5 For illustrative purposes:

[0107] S01: Establish a central Yang / XML database (i.e., the central database) to store various Yang models (i.e., data models);

[0108] S02: Deploy distributed Yang / XML databases (i.e., distributed databases) at branch locations to store Yang models as needed;

[0109] Among them, the Yang models include:

[0110] Full-scale Yang models of various specialties, various manufacturers, and various models.

[0111] S03: Synchronize data between the distributed Yang / XML database and the central Yang / XML database;

[0112] Among them, the distributed Yang / XML database synchronizes with the central Yang / XML database in real time or periodically according to the strategy of device type and configuration frequency.

[0113] S04: The distributed Yang / XML database is equipped with an SDN controller, and the SDN controller manages various network elements as needed according to the authorization;

[0114] Among them, the SDN controller is tested and verified through the Yang model of the terminal type before being officially connected to the network.

[0115] S05. The SDN controller accesses the network. According to the authorization of the service system, it synchronizes the Netconf / Yang configuration model from the distributed Yang / XML database.

[0116] S06. The SDN controller saves the synchronized Netconf / Yang configuration model.

[0117] S07. The SDN controller selects the corresponding Yang model according to the call of the service system.

[0118] S08. The SDN controller configures network devices according to the service work orders issued by the service system, and converts them into Netconf XML format configuration according to the definition of the Yang model (i.e., converts to the specified format).

[0119] S09. The SDN controller calls the southbound protocol interface to send the Netconf XML format configuration to the terminal.

[0120] S10: The SDN controller synchronizes with the distributed Yang / XML database according to the service system's activation instruction or regular synchronization instruction, and updates the database in the SDN controller.

[0121] The following Figure 2 exemplarily illustrates the embodiments of the present invention in combination with the

[0122] 1. Before the SDN network element accesses the network, it registers and saves the full Netconf / Yang configuration model (i.e., data model) in the group / headquarters Yang database (i.e., the central database).

[0123] The specific compilation content is as follows:

[0124] import chinaunicom-radius{prefix"Yang_A";}

[0125] import chinaunicom-tacacs{prefix"Yang_A";}

[0126] import ietf-yang-types{prefix"yang";}

[0127] import chinaunicom-datatype-common{prefix"co-type";}

[0128] 2. Each province from A to Z constructs its own Yang / XML database (i.e., distributed database) to save the Netconf / Yang configuration model (i.e., data model) required within the province.

[0129] When a new model appears, the Yang model library in the province is automatically updated.

[0130] 3. The headquarters database (i.e., the central database) and the provincial database (i.e., the distributed database) can synchronize Yang models according to policies, such as regular push and real-time request.

[0131] There are two types of updates for the Yang model library in the province: periodic update and automatic push when in use.

[0132] 4. Build an SDN controller in the province to manage various network elements as needed. Before the SDN controller is officially connected to the network, it is necessary to complete the test and verification of the Yang model for the required terminal types to be enabled.

[0133] 5. When the SDN controller is connected to the network, according to the authorization of the business system, it synchronizes the Netconf / yang configuration model from the provincial Yang database.

[0134] The specific compilation content is as follows. The following is the content of the SDN controller L3Vpn statement:

[0135] description

[0136] "This module contains a collection of YANG definitions

[0137] for l3vpn package configuration.

[0138] This module contains definitions

[0139] for the following management objects:

[0140] l3vpn:l3vpn configuration for all instances

[0141] This YANG module augments the

[0142] FH-chinaunicom-snmp-agent-cfg

[0143] module with configuration data.

[0144] description

[0145] "Yang_A";}

[0146] typedef apply-label-mode{

[0147] type enumeration{

[0148] enum per_vrf{

[0149] value 1;

[0150] description "apply label of per_vrf";}

[0151] 6. The SDN controller stores the synchronized Netconf / Yang configuration model;

[0152] 7. The SDN controller selects the corresponding YANG model (i.e., the target data model) according to the call of the business system;

[0153] 8. The SDN controller configures network devices according to the service work orders issued by the business system, and converts them into Netconf XML format configuration according to the definition of the YANG model (i.e., convert to the specified format);

[0154] 9. The SDN controller calls the southbound protocol interface to send the Netconf XML format configuration to the terminal;

[0155] The southbound format of the Yang model compilation is as follows:

[0156] description

[0157] "This revision adds the following new data types:

[0158] -ip-address-no-zone

[0159] -ipv4-address-no-zone

[0160] -ipv6-address-no-zone";

[0161] reference

[0162] "RFC 6991:Common YANG Data Types"

[0163] 10. The SDN controller synchronizes with the provincial Yang / XML database according to the service system activation instruction or regular synchronization instruction, and updates the database in the SDN controller.

[0164] In the embodiments of the present invention, a unified controller is used to achieve decoupling across manufacturers and specialties, and all controllers within the entire operation and management system can be iteratively upgraded uniformly and quickly. The specific effects are as follows:

[0165] 1. In the same operation and management system, centralized, unified, and flexible management of the Netconf / Yang model is achieved: The central database stores the Yang model data models of all manufacturer devices in full volume, and the distributed database can quickly replicate and synchronize the decoupled Netconf / Yang models and provide them to all required SDN controllers.

[0166] 2. The SDN controller only needs to synchronize with the distributed Yang / XML database as needed to obtain the Yang model, without the need for separate adaptation of each manufacturer's network element, which speeds up the network deployment in scenarios of cross-manufacturer networking.

[0167] 3. The SDN network element only needs to provide a required Yang / XML configuration model to the central database when accessing the network, and it can be shared by all SDN controllers within the system, reducing the workload of separate test verification.

[0168] 4. For the SDN controller, the Yang configuration model is synchronized according to the authorization of the upper-layer service system to achieve the goals of unified management and flexible invocation.

[0169] 5. The SDN controller pays more attention to processing performance and further realizes the concept of separation of forwarding and control advocated by SDN.

[0170] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0171] Refer to Figure 6 , which shows a schematic structural diagram of a processing device based on SDN provided by an embodiment of the present invention. The SDN can have an SDN controller and an SDN terminal (physical terminal CPE or virtual terminal vCPE), and the SDN controller and the SDN terminal can perform data communication using the network configuration protocol NETCONF.

[0172] In SDN, the SDN controller realizes command control over SDN terminals through NETCONF. NETCONF is a protocol with a C / S model. It can use SSH or TLS as a secure channel and use Yang as metadata to complete the definition of command descriptions. The SDN controller, as a Client, calls to convert the upper-layer REST (Representational State Transfer) into data carried in NetConf based on XML-RPC (Remote Procedure Call) according to the Yang model to configure the SDN terminals.

[0173] The configured SDN terminal, as a Server, converts it into the final configuration of the SDN terminal after verifying the legality of the RPC according to the PIN (Personal Identification Number).

[0174] Among them, NETCONF is an XML-based network management protocol that provides a programmable method for configuring and managing network devices. Users can set parameters, obtain parameter values, obtain statistical information, etc. through this protocol. NETCONF messages use the XML format and have powerful filtering capabilities. Moreover, each data item has a fixed element name and position, which enables different devices of the same manufacturer to have the same access method and result presentation method, and devices from different manufacturers can also obtain the same effect through XML mapping. This makes it very convenient in the development of third-party software and is very easy to develop special customized network management software in an environment that mixes different manufacturers and different devices. With the assistance of such network management software, using the NETCONF function will make the configuration management of network devices simpler and more efficient.

[0175] The Yang model is a data modeling language used to model the configuration data and status data of the NETCONF protocol, NETCONF remote procedure calls (RPCs), and NETCONF notification operations.

[0176] Specifically, it may include the following modules:

[0177] The data model acquisition module 601 is used to acquire multiple data models from the distributed database; among them, the data models in the distributed database are acquired from the central database.

[0178] The target network configuration information generation module 602 is used to determine a target data model from the multiple distributed databases according to the call of the service system, and generate target network configuration information based on the target data model.

[0179] The network configuration module 603 is used to send the target network configuration information to the SDN terminal, so as to perform network configuration on the SDN terminal according to the target network configuration information.

[0180] In an embodiment of the present invention, the target network configuration information generation module 602 includes:

[0181] The original network configuration information generation sub-module is used to generate original network configuration information according to the work order of the service system;

[0182] The format conversion sub-module is used to perform format conversion on the original network configuration information based on the target data model to obtain the target network configuration information in a specified format.

[0183] In an embodiment of the present invention, the specified format is XML format.

[0184] In an embodiment of the present invention, the data model acquisition module 601 includes:

[0185] The data synchronization sub-module is used to synchronize data with the distributed database to obtain multiple data models in the distributed database.

[0186] In an embodiment of the present invention, it further includes:

[0187] The test verification and network access module is used to perform test verification and perform network access operations after the test verification is completed.

[0188] In an embodiment of the present invention, the central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller is used to manage a corresponding multiple SDN terminals.

[0189] In an embodiment of the present invention, the data model is a data model based on the data modeling language Yang.

[0190] In an embodiment of the present invention, the SDN controller obtains multiple data models from the distributed database, and the data models in the distributed database are obtained from the central database. Then, according to the call of the service system, the target data model is determined from the multiple distributed databases, and based on the target data model, the target network configuration information is generated and sent to the SDN terminal to perform network configuration on the SDN terminal according to the target network configuration information, realizing that the SDN controller obtains the data model on demand to perform network configuration on the SDN terminal, being able to centrally, uniformly and flexibly manage the data model, decoupling the SDN controller and the SDN terminal, enabling interconnection and interoperability of devices from different manufacturers, enhancing the diversity of terminal manufacturers, and reducing network complexity.

[0191] As Figure 7 Figure 7 , an embodiment of the present invention further provides an electronic device 700, which may include a processor 701, a memory 702, and a computer program 703 stored on the memory 702 and capable of running on the processor 701. When the computer program 703 is executed by the processor, the above SDN-based processing method is implemented.

[0192] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above SDN-based processing method is implemented.

[0193] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant parts, refer to the partial description of the method embodiment.

[0194] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other.

[0195] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0196] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and the combination of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing terminal devices generate a device for implementing the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0197] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction device that implements the functions specified in one process Figure 1 or more processes and / or blocks Figure 1 or more blocks specified in one block or more blocks.

[0198] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, such that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one process Figure 1 or more processes and / or blocks Figure 1 or more blocks specified in one block or more blocks.

[0199] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0200] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article or terminal device comprising the above elements.

[0201] The above provides a detailed introduction to a processing method and device based on SDN. In this article, specific examples are used to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A processing method based on SDN, characterized in that, The SDN has an SDN controller and SDN terminals, and network configuration protocol NETCONF is used for data communication between the SDN controller and the SDN terminals. The method includes: The SDN controller obtains multiple data models from a distributed database; wherein, the data models in the distributed database are obtained from a central database; The SDN controller determines a target data model from the multiple data models according to the invocation of a service system, and generates target network configuration information based on the target data model; The SDN controller sends the target network configuration information to the SDN terminals to perform network configuration on the SDN terminals according to the target network configuration information; Wherein, generating the target network configuration information based on the target data model includes: The SDN controller generates original network configuration information according to a work order of the service system; The SDN controller performs format conversion on the original network configuration information based on the target data model to obtain target network configuration information in a specified format; The SDN controller obtaining multiple data models from a distributed database includes: The SDN controller performs data synchronization with the distributed database to obtain multiple data models in the distributed database; The central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller is used to manage a corresponding multiple SDN terminals; Wherein, the central database is located in a group or headquarters, the central database is used to store data models of all required various device types and various manufacturers, the multiple distributed databases and their respectively corresponding SDN controllers are located in business platforms in different regions, each distributed database stores the data models required for that region, and the SDN controller corresponding to each distributed database manages devices of different manufacturers and different types.

2. The method according to claim 1, wherein The specified format is XML format.

3. The method according to claim 1, wherein Before the SDN controller obtains multiple data models from a distributed database, it further includes: The SDN controller performs test verification and performs network access operation after completing the test verification.

4. The method according to claim 1, characterized in that, The data model is a data model based on the data modeling language Yang.

5. A processing device based on SDN, characterized in that, The SDN has an SDN controller and SDN terminals, and network configuration protocol NETCONF is used for data communication between the SDN controller and the SDN terminals. The device includes: A data model acquisition module, configured to obtain multiple data models from a distributed database; wherein, the data models in the distributed database are obtained from a central database; A target network configuration information generation module, configured to determine a target data model from the multiple distributed databases according to the invocation of a service system, and generate target network configuration information based on the target data model; A network configuration module, configured to send the target network configuration information to the SDN terminals to perform network configuration on the SDN terminals according to the target network configuration information; Among them, the target network configuration information generation module includes: The original network configuration information generation sub-module is used to generate the original network configuration information according to the work order of the service system; The format conversion sub-module is used to perform format conversion on the original network configuration information based on the target data model to obtain the target network configuration information in a specified format; The data synchronization sub-module is used to synchronize data with the distributed database to obtain multiple data models in the distributed database; The central database is connected to multiple distributed databases, each distributed database has a corresponding SDN controller, and each SDN controller is used to manage a corresponding multiple SDN terminals; Among them, the central database is located in the group or headquarters. The central database is used to store data models of various device types and various manufacturers required in total. The multiple distributed databases and their respective corresponding SDN controllers are located in business platforms in different regions. Each distributed database stores the data models required for that region, and the SDN controller corresponding to each distributed database manages devices of different manufacturers and different types.

6. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the SDN-based processing method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements the SDN-based processing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Equipment management method and device

    CN108989066A

  • Control method of data center heterogeneous network system

    CN112583641A

  • Data configuration method, device and equipment, readable storage medium and program product

    CN115065594A