CN111723036A - Data processing method, related device and computer storage medium - Google Patents

Data processing method, related device and computer storage medium Download PDF

Info

Publication number
CN111723036A
CN111723036A CN201910230977.5A CN201910230977A CN111723036A CN 111723036 A CN111723036 A CN 111723036A CN 201910230977 A CN201910230977 A CN 201910230977A CN 111723036 A CN111723036 A CN 111723036A
Authority
CN
China
Prior art keywords
conversion
cli
interface
coi
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910230977.5A
Other languages
Chinese (zh)
Other versions
CN111723036B (en
Inventor
李宗标
王蓥
崔占亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910230977.5A priority Critical patent/CN111723036B/en
Publication of CN111723036A publication Critical patent/CN111723036A/en
Application granted granted Critical
Publication of CN111723036B publication Critical patent/CN111723036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a data processing method, which is applied to a communication system comprising network equipment, conversion equipment and an Operation Support System (OSS), and comprises the following steps: when detecting that the network equipment enters a communication system, the conversion equipment acquires a command type interface expression instance CLI of the network equipment, wherein the CLI records a configuration function of the network equipment which is supported and identified by a southbound interface, and the southbound interface is an interface used when the conversion equipment is communicated with the network equipment; according to a pre-stored first conversion rule, the CLI is converted into an object type interface expression instance COI, wherein the COI is recorded with a configuration function of a network device which is supported and identified by a northbound interface, the northbound interface is an interface used when the conversion device is communicated with the OSS, and the first conversion rule is used for realizing the mapping conversion from the CLI to the COI. By adopting the embodiment of the invention, the problems of complex operation, longer research and development period, low efficiency and the like in the conversion from CLI to COI in the prior art can be solved.

Description

Data processing method, related device and computer storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data processing method, a related apparatus, and a computer storage medium.
Background
In the field of operators, especially devices currently being served in networks, most network elements are configured functionally through a Command Line Interface (CLI), which may also be referred to as a command interface instance or command interface. With the development of Software Defined Network (SDN) technology, operators want to manage network elements through an SDN controller or an Element Management System (EMS).
In order to implement automatic function configuration and operation maintenance of a network element, an SDN controller or an EMS system needs to use a Command Object Interface (COI), which may also be referred to as an object interface instance or an object interface. Therefore, how to convert the command type interface expression of the network device into the object type interface expression which can be identified by the upper layer network element is one of the main problems to be solved by the SDN controller/EMS system.
To solve the above problems, the conversion from the command-type interface expression instance to the object-type interface expression instance is mainly realized by the research and development personnel manually developing codes one by one command. In practice, it is found that for different manufacturers and different network devices, if the above schemes are adopted, the labor cost is undoubtedly increased, the operation is complicated, the development cycle of the interface function is prolonged, and the research and development efficiency is reduced.
Disclosure of Invention
The embodiment of the invention discloses a data processing method, related equipment and a computer storage medium, which can solve the problems in the prior art: the development period from the command type interface expression instance to the object type interface expression instance is long, the efficiency is low, and the like.
In a first aspect, an embodiment of the present invention discloses a data processing method, which is applied to a communication system, where the communication system includes a network device, a conversion device, and an operation support system OSS, and the method includes: when the conversion equipment detects that the network equipment enters the communication system, the conversion equipment can obtain a command type interface expression instance CLI of the network equipment, wherein the CLI records the configuration function of the network equipment which is supported and identified by a southbound interface, and the southbound interface is a communication interface used when the conversion equipment and the network equipment communicate. The conversion equipment can convert the command type interface expression instance CLI into an object type interface expression instance COI according to a pre-stored first conversion rule, wherein the COI records the configuration function of the network equipment which is supported and identified by a northbound interface, the northbound interface is an interface used when the conversion equipment is communicated with an OSS system, and the first conversion rule is used for realizing the mapping conversion from the CLI to the COI.
With reference to the first aspect, in some implementations of the first aspect, the conversion device obtains, according to the first conversion rule and the imperative interface expression instance CLI, a second conversion rule, where the second conversion rule is used to implement a conversion of a mapping of COIs to CLIs.
With reference to the first aspect, in some embodiments of the first aspect, the first conversion rule and the second conversion rule are both stored in the conversion device in the form of a configuration file.
With reference to the first aspect, in some implementations of the first aspect, the conversion device receives a configuration command in a COI format issued by the OSS, where the configuration command is used to instruct to perform corresponding function configuration on the network device. The conversion device can convert the COI configuration command into the CLI configuration command according to the first conversion rule, and further the conversion device can forward the CLI configuration command to the network device, so that the network device can directly respond to the CLI configuration command to realize the relevant function configuration of the network device.
With reference to the first aspect, in some implementations of the first aspect, the conversion device may receive a query command in a COI format issued by an OSS, where the query command is used to instruct to query a configuration function of a network device, and further may obtain, in response to the query command, a function configuration file stored in a CLI format, where the function configuration file at least records a configuration function of the network device that needs to be queried by the query command. Further, the conversion device may convert the function configuration file in the CLI form into the function configuration file in the COI form according to the first conversion rule, and further send the function configuration file in the COI form to the OSS.
With reference to the first aspect, in some embodiments of the first aspect, the CLI-form function profile may be stored in the conversion device in advance, or may be obtained from the network device after receiving a CLI-form query command.
In a second aspect, embodiments of the present invention provide a conversion apparatus comprising functional modules or units for performing the methods as described in the first aspect or any possible implementation manner of the first aspect.
In a third aspect, an embodiment of the present invention provides a conversion apparatus, including: a processor, a memory, a communication interface and a bus; the processor, the communication interface and the memory are communicated with each other through a bus; a communication interface for receiving and transmitting data; a memory to store instructions; a processor for invoking instructions in a memory for performing the method described in the first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a communication system, where the communication system includes an operation support system OSS, a network device, and a conversion device, where the conversion device may specifically be the conversion device described in the second aspect or the third aspect.
In a fifth aspect, a computer non-transitory (non-transitory) storage medium storing program code for data processing is provided. The program code comprises instructions for performing the method described in the first aspect above or any possible implementation of the first aspect.
In a sixth aspect, there is provided a chip product for carrying out the method of the first aspect or any possible embodiment of the first aspect.
The invention can be further combined to provide more implementation modes on the basis of the implementation modes provided by the aspects.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a network framework of a communication system according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
Fig. 3 is a schematic view of a scenario provided in an embodiment of the present invention.
Fig. 4A and 4B are code diagrams of two examples of imperative interface expressions provided by the embodiment of the invention.
Fig. 5A and 5B are schematic diagrams of another two codes provided by the embodiment of the present invention.
Fig. 6 is a schematic diagram of a code of a configuration command in a COI form according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a CLI-form configuration command code according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a conversion device according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of another conversion apparatus provided in the embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described below with reference to the accompanying drawings.
First, some technical terms or technical concepts related to the present application are introduced.
Interface expression (interface expression), also known as syntax. Refers to the way in which both the provider and the user agree to define the interface. In general, the interface expression includes information such as an interface name, related parameters of the interface, and constraints. The same interface may use different interface expressions, which are different in format, to define or configure the functions of the interface. For example, IETF standards are typically expressed as interfaces via the YANG format using the Netconf protocol interface. Before the YANG interface expression, manufacturers mostly adopt XML schema as the interface expression of the Netconf protocol interface.
For example, the interface expression is implemented, for example, with the following code:
{ interface name: sendamassage;
parameter 1: AA name, type: string;
parameter 2: message, type: string }.
In other words, the present application may describe an interface expression in a textual manner.
Interface instance (interface instance) refers to a way to implement interface expression by program code, for example, referring to an interface expression example, and its corresponding interface instance is: sendAMessage { "AA 1" "Hello World! "}. This is an example of an interface in pseudo-code.
A Command Line (CLI), also called a command interface instance (command interface instance), may also be referred to as a command interface. It consists of several commands, different commands being used to implement different functions. Examples of imperative interfaces for sendamaessage are as follows:
sendAAMessage AA1 message“Hello World!”
the sendAMessage and the message are command words in the command, and the command words consist of English characters and numbers in a fixed sequence or English characters and part of special characters in the fixed sequence. AA1 and Hello World are parameters in the command.
A command interface expression (command interface expression) is used to describe an expression manner of a command interface, for example, a sendamaessage command interface is expressed by a command interface as follows:
sendAAMessage<AAname#STRING>
message<#STRING>
a Command Object Interface (COI), also called object interface instance, is called an object interface (object interface instance), which is simply called an object interface. It can define each thing in the interface as an object, and express the characteristics and behavior of the interface through the attributes and behavior of the object. For example, in sendamaessage, the object is "AA", the behavior is "message", and the object-based interface is aa1.sendmessage ("Hello World!")
An object expression (object expression) refers to an expression manner describing an object interface, for example, an object interface expression expressing an object interface aa1.sendmessage is as follows:
Figure BDA0002003594920000031
it should be noted that, for the convenience of description, the present application will collectively refer to "command interface, command interface expression, and command interface instance" as "command interface expression instance CLI". In some cases, "CLI" as referred to below in this application may refer to any of a imperative interface expression, imperative interface, or imperative interface instance. Similarly, for the convenience of description, the present application will collectively refer to "object-based interface, object-based interface expression, and object-based interface instance" as "object-based interface expression instance COI". In some cases, a "COI" referred to below in this application may refer to any of an object-wise interface expression, an object-wise interface, or an object-wise interface instance.
An SDN controller (SDN controller) refers to a software system capable of intelligently controlling and managing network traffic in a software-defined network.
Element Management System (EMS) refers to a system for managing and configuring network devices (also network elements) in an operator network.
A northbound interface (NBI) refers to an interface that is provided by a control device upwards to an Operation Support System (OSS) of another vendor or operator for access or management. The control device refers to a device for controlling and managing a network device, and may be, for example, an SDN controller, an EMS system, or other management device.
A southbound interface (SBI) refers to an interface for a control device to go down for managing network devices.
In order to solve the problems of complex operation, long research and development period, low efficiency and the like existing in the prior art for achieving object-type interface expression conversion from a command-type interface table, the application provides another data processing method, a network framework applicable to the method and related equipment. Fig. 1 is a schematic diagram of a network framework of a communication system according to an embodiment of the present invention. The communication system 100 shown in fig. 1 includes: an Operation Support System (OSS) 102, a control device 104, and a network device 106. Wherein the OSS102 may communicate with the network device 106 via the control device 104. For example, the OSS102 sends a configuration command to the network device 106 through the control device to configure the related functions of the network device. Alternatively, the OSS102 may send an inquiry command to the network device 106 via the control device to inquire about the related functions that the network device has. Illustratively, taking a network device as a router as an example, the OSS may configure a routing path or a routing function of the router by a configuration command, and the like.
The control device 104 is configured to communicate with the OSS102 and the network device 106, respectively. In particular, the control device 104 communicates with the OSS102 via a northbound interface. The control device 104 communicates with the network device 106 via a southbound interface. Optionally, the northbound interface supports object-based interface expressions and the southbound interface supports command-based interface expressions.
In the present application, the control device 104 is also used to implement data conversion between the southbound interface and the northbound interface. Because the south interface and the north interface respectively support different data formats (or data expression forms) for transmission; or the respective supported and identified data formats of the OSS and the network device are different, and the control device 104 needs to perform data conversion in order to implement normal communication of data. For example, the control device 104 receives a configuration command sent by the OSS102 in the form of an object-based interface expression over the northbound interface, and only supports the form of an object-based interface expression instance because the network device 106 does not support identifying the configuration command in the form of an object-based interface expression instance. Therefore, the control device 104 needs to convert the configuration command in the form of the object-type interface expression instance into the configuration command in the form of the command-type interface expression instance, so as to send the converted configuration command to the network device 106, thereby implementing the function configuration at the network device 106 side.
It should be noted that, in the following, the present application takes as an example a conversion device, which is specifically used for implementing data conversion between the south-oriented interface and the north-oriented interface. In practical applications, the conversion device may specifically be a software device or a hardware device deployed in the control device 102, or may also be the control device 102 itself, which is not limited in this application.
The network device 106 is a physical entity connected to the network, and in practical applications, the network device 106 may specifically include, but is not limited to, a switch, a router, a gateway, a bridge, and a network card.
Fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present invention. The method as shown in fig. 2 comprises the following implementation steps:
step S201, the conversion device obtains a command type interface expression instance CLI of the network device, where the CLI records a configuration function of the network device that the southbound interface supports identification, and the southbound interface refers to an interface used when the conversion device communicates with the network device.
In the present application, when the network device is used for the first time or the configuration function of the network device is updated, the conversion device needs to obtain the CLI of the network device. Taking the network device for the first time as an example, when detecting that the network device enters the network or enters the communication system, the conversion device may obtain a CLI of the network device, where the CLI is provided by a device vendor of the network device and is used to describe all or part of configuration functions supported by the network device, and the configuration functions are described by specifically using an example of command type interface expression.
The CLI describes an object expressed by a imperative interface, the attributes of the object, and the relationship between any two objects. The number of objects included in the CLI is not limited, and may include one or more. Relationships between objects, hereinafter referred to simply as object relationships, refer to relationships that exist between two objects, including but not limited to containment and association relationships, and there may be differences in the definition or representation in the CLI for different object relationships. Exemplarily, a relation between two objects can be defined as an inclusion relation by a keyword @ include in the CLI; the relationship between two objects is defined as an association relationship by defining the attribute type of an object as the REF type, and so on.
In the present application, the object relationship is used to indicate the configuration order of the command lines related to the object, that is, the configuration order of the functions configuring the object. Taking the object relationship as the inclusion relationship as an example, the present application needs to define the included object as a child object of the included object, and the included object needs to be issued before the included object. If the object relationship is taken as the association relationship, the application needs to add the attribute information of the associated object to the attribute information of the associated object, and the associated object needs to be issued before the associated object.
Step S202, the conversion equipment converts the CLI into an object type interface expression instance COI according to a pre-stored first conversion rule, wherein the COI records the configuration function of the network equipment supported and identified by the northbound interface, and the northbound interface refers to the interface supported and communicated with the OSS in the conversion equipment. The first conversion rule is pre-stored in the conversion equipment and is used for realizing mapping conversion from the command type interface expression instance CLI to the object type interface expression instance COI.
Wherein, the first conversion rule is presented in the form of configuration file, and at this time, it can also be referred to as B description file. The first conversion rule is used for implementing the mapping conversion from the CLI to the COI, and may specifically include, but is not limited to, at least one of the following information: the corresponding relation between the command key and the object, the attribute information of the object, the relation between the object and the like. The attribute information of the object refers to information for describing the attribute of the object, such as an object name, an object number, and the like. In practical applications, the attribute information of an object is further divided into a primary key attribute and a non-primary key attribute, where the primary key attribute refers to information for describing a key attribute of the object, such as a constraint condition of the object, an object identifier of the object, or other custom-set key attribute information. Non-primary key attributes refer to information that describes the non-important, secondary attributes of an object, such as the number of rows of the command line occupied by the object.
The first conversion rule may be specifically provided by a device provider of the network device, or customized by an operator development team, and may be stored in the conversion device in advance. In practical applications, the first transformation rule and the imperative interface expression instance CLI may be merged and exist in the form of a configuration file, which is specifically exemplified in the following of the present application.
Please refer to fig. 3, which illustrates a schematic view of a scenario. In the scenario shown in fig. 3, for example, the conversion device is deployed in an SDN controller, the SDN controller includes a south interface and a north interface, where the south interface refers to a communication interface used when the conversion device communicates with an upper-layer OSS system, and the north interface refers to a communication interface used when the conversion device communicates with a network device. As shown in the figure, the conversion device includes a grammar recognition module and an interface conversion module. The grammar recognition module is used for defining the stage of designing the interface expression example, the input of the grammar recognition module can be a command type interface expression example CLI and a B description file (a first conversion rule), and the output is an object type interface expression example COI. Alternatively, the grammar recognition module may support multiple object-based interface expression languages, i.e., support different grammar conversions. For example, an object-based interface expression of a YANG model, a YAML model, or a java API is supported, where object semantics of respective expression instances of the YANG model, the YAML model, and the java API are the same, but syntax is different, and a format of an object-based interface expression instance generated by output is also different. Therefore, for the object-type interface expression examples with different formats, the grammar recognition module needs to design or use different interface expression example conversion algorithms (or conversion rules).
Specifically, after the conversion device obtains the CLI and B description files, the syntax recognition module may perform syntax recognition on the input CLI and B description files according to a preset syntax rule to obtain object information included therein, where the object information includes, but is not limited to, at least one object, attribute information of each object, object relationship, and the like. Further, the conversion device generates the COI based on the obtained object information, and optionally may also obtain a second conversion rule, where the second conversion rule is used to implement mapping conversion of the COI to the CLI. In practical application, the second conversion rule may also be presented in the form of a configuration file or a mapping table, that is, the second conversion rule may be loaded in the configuration file or the mapping table, and the second conversion rule at least includes information such as a correspondence between an object and a command keyword, an attribute of the object, and an object relationship.
Alternatively, the first conversion rule and the second conversion rule related to the present application may be separately presented in the form of a configuration file, or may be presented in the form of one configuration file. When they are presented in the form of a configuration file, the conversion device may implement interconversion between the COI and the CLI based on the configuration file including the first conversion rule and the second conversion rule, which is not limited in this application.
The interface conversion module is used for realizing the conversion from the object type interface expression instance COI to the command type interface expression instance CLI, and optionally also used for realizing the conversion from the CLI to the COI. Namely, the interface conversion module is used for realizing the conversion between the CLI and the COI.
In an alternative embodiment, the OSS system supports the identification and issuing of commands in the form of object-based interface expression instances, COIs. For example, the OSS system may issue configuration commands in the form of object-based interface expression instances COI to the translation device. Correspondingly, the conversion equipment receives the COI configuration command issued by the OSS, and further converts the COI configuration command according to the first conversion rule to obtain the CLI configuration command. The configuration command is used to instruct the configuration of the function of the network device, such as the configuration of the functions of the routing load, routing path, and the like. The translation device then forwards the CLI-form configuration command to the network device. Correspondingly, the network equipment receives the configuration command in the form of CLI, and completes the function configuration indicated by the configuration command to the network equipment according to the configuration command in the form of CLI.
As another example, a query command is taken as an example. The OSS system may issue a query command in the form of a COI to the translation device, where the query command is used to query the configuration function of the network device. Accordingly, the translation device receives the query command in the form of the COI. Further, the translation device may respond to the query command in the COI format to obtain the configuration function of the network device requested to be queried by the query command. Specifically, since the network device cannot support the query command in the COI format, the conversion device needs to convert the query command in the COI format into the query command in the CLI format according to the first conversion rule, and then issues the query command to the network device. Accordingly, the network device receives and responds to the query command in the form of the CLI, and obtains the configuration function related to the network device requested by the query command. Similarly, the network device returns a response message in the form of CLI to the translation device, where the response message carries the relevant configuration function of the network device requested by the query command. After receiving the CLI-form response message, the conversion device may convert the CLI-form response message into a COI-form response message for direct return to the OSS system. In practical application, the response message in the form of the COI may be presented in the form of a configuration file, where the configuration file includes information such as an object, an attribute of the object, and an object relationship, and the application is not limited in this application.
Optionally, to save latency and improve data processing efficiency, the conversion device may obtain all or part of configuration functions supported by the network device from the network device in advance, and these configuration functions are all fed back to the conversion device in the form of CLI. Optionally, in order to improve the efficiency of information reporting, the conversion device may convert the obtained configuration function of the network device in the CLI form into a configuration function in the COI form (specifically, information such as an object and an attribute of the object), so as to store the configuration function in the conversion device. Correspondingly, when the conversion device receives a query command in the COI form issued by the OSS, the conversion device can directly obtain the configuration function of the network device in the COI form related to the query command from the local database, and then return the configuration function to the OSS system to complete the related query of the query command.
In practical applications, after receiving the CLI-form configuration function sent by the network device, the conversion device may store a CLI-form function configuration file in a local database, where all or part of the configuration functions supported by the network device are recorded in the function configuration file. Correspondingly, after receiving the query command in the COI form, the conversion device may obtain the function configuration file in the CLI form related to the query command, and further convert the function configuration file in the CLI form into the function configuration file in the COI form to send to the OSS system.
Optionally, to save data processing delay, the conversion device may also convert the CLI-form configuration function file into a COI-form configuration function file to be stored in its local database. Accordingly, after receiving the query command in the COI form, the conversion device can acquire the functional configuration file in the COI form related to the query command from the local database so as to directly send the functional configuration file to the OSS system, thereby improving the data processing efficiency.
It should be noted that, in the present application, the network device side may use the same expression example to describe the configuration functions supported by each of the configuration command and the query command. For example, as shown in fig. 4A and 4B, a command-based interface representation instance CLI is used to display or describe configuration functions corresponding to configuration commands and query commands supported by the router device. Fig. 4A specifically shows a configuration command in the form of CLI to implement the relevant functional configuration of the router device. The display result of the query configuration command is specifically shown in fig. 4B. As can be seen from fig. 4A and 4B, the functional configurations in the display results of the configuration command in the CLI form and the query configuration command are both described by CLI.
For a better understanding of the present invention, the following description is given by way of example. Specifically, the transformation device may receive a command type interface expression instance CLI provided by a network device provider, receive a B description file (i.e., a first transformation rule) provided by the network device provider or an operator northbound interface development team. The B description file at least comprises the mapping conversion relation between the CIL and the COI. In practical applications, the original CLI and B profiles are usually unified, for example, unified is defined as profile x. After the conversion equipment obtains the X.beyond file, the syntax recognition module carries out syntax recognition on the X.beyond file according to a preset syntax rule so as to obtain object information in the file, wherein the object information comprises but is not limited to an object, attributes of the object, object relations and other information.
Exemplarily, a code diagram of an x.beyond file is shown in fig. 5A. As shown in fig. 5A, the conversion device identifies a command keyword in an x.beyond file according to a preset grammar rule, and determines an object, an attribute of the object, an object relationship, and other information included in the file. For example, in fig. 5A, the conversion apparatus may recognize @ mo as a command keyword as one object. Likewise, the relevant command line referred to by @ mo is attributed to the relevant configuration command for the object. The attribute of the main key of the object is represented by @ key, the attribute in the other command line related to the command key is identified as the other attribute of the object, and information such as the corresponding relation between the object and the command key and the attribute of the object is recorded.
In the recognition process, the conversion apparatus may also obtain the object relationship in the x. Specifically, the conversion device may identify the object relationship as an inclusion relationship by the keyword @ includeby, for example, another object B is associated by @ includeby in the object a, which indicates that a and B are inclusion relationships, a is an included object, B is an included object, and a included object is a child object containing the object B. The conversion apparatus may identify the object relationship as the association relationship by the attribute type of the object being the REF type, for example, if the type of the attribute (i.e., command parameter) included in one object a is defined as the REF type, and the attribute of another object B is defined in the REF type, the object a and the object B are the association relationship, the object a is the association object, and the object B is the associated object, and at this time, the attribute defined in the REF of the associated object B may be added in the object a as the association attribute of the object a. Optionally, after obtaining the object relationship, the conversion device may record a configuration sequence of the command line indicated by the object relationship, that is, a sequence of configuring a configuration function of the network device, where a specific associated object needs to be issued before an associated object, and a containing object needs to be issued before an contained object.
Accordingly, after obtaining the object information in the x.beyond file, the conversion apparatus may obtain a second conversion rule, where the second conversion rule at least includes a mapping conversion relationship between the COI to the CLI. Further, after the conversion device obtains the object information, an object-based interface expression instance COI corresponding to the CLI may be generated, and a syntax format of the COI is not limited, for example, a YANG model syntax or a java API syntax. For example, referring to the example of fig. 5A, the conversion apparatus generates the object-based interface expression instance COI expressed in YANG format as shown in fig. 5B from the x.beyond file shown in fig. 5A. As shown in fig. 5A and 5B, the bold-faced keywords are in one-to-one correspondence, and the code bold-faced keywords in fig. 5B are generated according to the corresponding keyword codes in the x.beyond file shown in fig. 5A, for example, the @ mo system in fig. 5A corresponds to the binder system in fig. 5B, and the system is an object.
In the actual operation process of the conversion device, the conversion device receives a configuration command in the form of an object-oriented interface expression instance COI issued by the OSS system through a northbound interface, and specifically shows a configuration command code for creating an l3vpn interface expression instance with reference to fig. 6. After the conversion device receives the configuration command in the form of COI, referring to the second conversion rule obtained in the x.beyond file in fig. 5A, the two objects included in fig. 6 and the command line to which each object relates can be obtained, where there are a first object ip vpn-instance @ mo (l3vpn) and the command line therebelow, a second object interface @ mo (l3vpn-sap) and the command line therebelow, respectively. Referring to fig. 5A, it can be known that the object relationship between the first object and the second object is an inclusion relationship, the conversion device may determine that the command line related to the first object needs to be issued first, and then the command line related to the second object needs to be issued later. Further, the conversion device generates a configuration command in the form of a command type interface expression instance CIL according to the object obtained by identification and the command line of each object (the command line includes information such as the attribute of the object), specifically, as shown in fig. 7, configuration command codes in the form of CLI are provided, so that the network device can create an l3vpn interface directly according to the configuration command in the form of CLI.
By implementing the embodiment of the invention, the problems of longer research and development period, higher cost, lower efficiency and the like of the object type interface expression conversion from the command type interface table in the prior art can be solved, the object type interface expression examples in various formats can be automatically generated according to different grammar conversion and conversion rules aiming at the input of the same command type interface expression example, different program codes do not need to be manually designed aiming at different format grammars, the development cost and the development period are reduced, and the development efficiency is improved.
The following describes the relevant apparatus to which the present invention relates, in conjunction with the foregoing description of the embodiment described in connection with fig. 1-7. Fig. 8 is a schematic structural diagram of a conversion apparatus according to an embodiment of the present invention. Applied to a communication system including a network device, a conversion device and an operation support system OSS, the conversion device 800 shown in fig. 8 includes a communication module 802 and a processing module 804. Wherein the content of the first and second substances,
the communication module 802 is configured to, when it is detected that the network device enters the communication system, obtain a command-type interface expression instance CLI of the network device, where a configuration function of the network device that is identified by a southbound interface is recorded in the CLI, and the southbound interface is an interface used when the conversion device communicates with the network device;
the processing module 804 is configured to convert the CLI into an object-based interface expression instance COI according to a pre-stored first conversion rule, where a configuration function of the network device that a northbound interface supports to be identified is recorded in the COI, the northbound interface is an interface used when the conversion device communicates with the OSS, and the first conversion rule is used to implement conversion from the CLI to the COI.
In some possible embodiments, the processing module 804 is specifically configured to identify the first conversion rule and the CLI according to a preset syntax rule, so as to generate the COI.
In some possible embodiments, the processing module 804 is further configured to obtain a second conversion rule according to the first conversion rule and the CLI; wherein the second conversion rule is used for realizing the conversion from the COI to the CLI.
In some possible embodiments, the communication module 802 is further configured to receive a configuration command issued by the OSS in a COI form, where the configuration command is used to instruct to perform function configuration on the network device; the processing module 804 is further configured to convert the COI-form configuration command into a CLI-form configuration command according to the first conversion rule; the communication module 802 is further configured to forward the CLI-form configuration command to the network device, so as to implement the functional configuration of the network device.
In some possible embodiments, the communication module 802 is further configured to receive a query command issued by the OSS in a COI form, where the query command is used to instruct to query a configuration function of the network device; the processing module 804 is further configured to respond to the query command, acquire a function configuration file stored in a CLI form, where a configuration function of the network device is recorded in the function configuration file; converting the function configuration file in the CLI form into a function configuration file in the COI form according to the first conversion rule; the communication module 802 is further configured to send the functional configuration file in the COI form to the OSS.
Optionally, the conversion apparatus 800 further includes a storage module 806 storing program code for implementing operations associated with the conversion apparatus 800. In practical applications, each module or unit involved in the conversion device in the embodiment of the present invention may be specifically implemented by a software program or hardware. When implemented by a software program, each module or unit involved in the conversion device is a software module or a software unit, and when implemented by hardware, each module or unit involved in the device may be implemented by an application-specific integrated circuit (ASIC), or a Programmable Logic Device (PLD), where the PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof, and the present invention is not limited thereto.
It should be noted that fig. 8 is only one possible implementation manner of the embodiment of the present application, and in practical applications, the conversion device may further include more or less components, which is not limited herein. For the content that is not shown or described in the embodiment of the present invention, reference may be made to the relevant explanation in the foregoing method embodiment, which is not described herein again.
Fig. 9 is a schematic structural diagram of another conversion device according to an embodiment of the present invention. The conversion device 900 shown in fig. 9 includes one or more processors 901, a communication interface 902 and a memory 903, and the processors 901, the communication interface 902 and the memory 903 may be connected by a bus or may realize communication by other means such as wireless transmission. The embodiment of the present invention is exemplified by being connected through a bus 904, wherein the memory 903 is used for storing instructions, and the processor 901 is used for executing the instructions stored by the memory 903. The memory 903 stores program code, and the processor 901 may call the program code stored in the memory 903 to implement the translation device 800 as shown in fig. 8. In this application, the processor 901 may be formed by one or more general-purpose processors, such as a Central Processing Unit (CPU). The processor 901 can be used to run the programs of the following functional modules in the relevant program code. The functional modules may specifically include, but are not limited to, any one or combination of the communication module 802, the processing module 804, and the storage module 806 shown in fig. 8. That is, the processor 801 executes the functions of any one or more of the functional modules described above in the program code. For each functional module mentioned herein, reference may be specifically made to the related explanation in the foregoing embodiment of fig. 8, and details are not described here again.
It is to be understood that the communication interface 902 may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other modules or equipment devices. For example, in the embodiment of the present application, the communication interface 902 may be specifically configured to send a command in the form of CLI to a network device.
The Memory 903 may include a Volatile Memory (Volatile Memory), such as a Random Access Memory (RAM); the Memory may also include a Non-volatile Memory (Non-volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory may also comprise a combination of memories of the kind described above. The memory may be configured to store a set of program codes for facilitating the processor to call the program codes stored in the memory to implement the functions of the above-mentioned functional modules involved in the embodiments of the present invention.
It should be noted that fig. 9 is only one possible implementation manner of the embodiment of the present application, and in practical applications, the conversion apparatus may further include more or less components, which is not limited herein. For the content that is not shown or described in the embodiment of the present invention, reference may be made to the relevant explanation in the foregoing method embodiment, which is not described herein again.
Embodiments of the present invention further provide a computer non-transitory storage medium, in which instructions are stored, and when the computer non-transitory storage medium is run on a processor, a method flow shown in any one of fig. 1 to 7 is implemented.
Embodiments of the present invention further provide a computer program product, where when the computer program product runs on a processor, the method flow shown in any one of fig. 1 to 7 is implemented.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware or in software executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. Additionally, the ASIC may reside in a translation device. Of course, the processor and the storage medium may reside as discrete components in a device.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. And the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.

Claims (13)

1. A data processing method is applied to a communication system, wherein the communication system comprises a network device, a conversion device and an Operation Support System (OSS), and the method comprises the following steps:
when detecting that the network equipment enters the communication system, the conversion equipment acquires a command type interface expression instance CLI of the network equipment, wherein a south interface supports the identified configuration function of the network equipment and is an interface used when the conversion equipment communicates with the network equipment;
the conversion equipment converts the CLI into an object type interface expression instance COI according to a pre-stored first conversion rule, wherein a configuration function of the network equipment which is supported and identified by a northbound interface is recorded in the COI, the northbound interface is an interface used when the conversion equipment is communicated with the OSS, and the first conversion rule is used for realizing the conversion from the CLI to the COI.
2. The method according to claim 1, wherein the converting device converts the CLI into the objected expression instance COI according to a pre-stored first conversion rule comprising:
and the conversion equipment identifies the first conversion rule and the CLI according to a preset grammar rule to generate the COI.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the conversion equipment obtains a second conversion rule according to the first conversion rule and the CLI; wherein the second conversion rule is used for realizing the conversion from the COI to the CLI.
4. The method of claim 3, wherein the first transformation rule and the second transformation rule are carried in a configuration file.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
the conversion equipment receives a configuration command in a COI form issued by the OSS, wherein the configuration command is used for indicating the functional configuration of the network equipment;
the conversion equipment converts the COI configuration command into a CLI configuration command according to the second conversion rule;
and the conversion equipment forwards the configuration command in the form of CLI to the network equipment so as to realize the functional configuration of the network equipment.
6. The method according to any one of claims 1-5, further comprising:
the conversion equipment receives a query command in a COI form issued by the OSS, wherein the query command is used for indicating to query the configuration function of the network equipment;
the conversion equipment responds to the query command to acquire a function configuration file stored in a CLI form, and the configuration function of the network equipment is recorded in the function configuration file;
and the conversion equipment converts the function configuration file in the CLI form into a function configuration file in the COI form according to the first conversion rule and sends the function configuration file to the OSS.
7. A translation device comprising a communication module and a processing module, wherein,
the communication module is configured to, when it is detected that a network device enters a communication system, obtain a command-type interface expression instance CLI of the network device, where a south-direction interface supporting an identified configuration function of the network device is recorded in the CLI, and the south-direction interface is an interface used when the conversion device communicates with the network device;
the processing module is configured to convert the CLI into an object-based interface expression instance COI according to a pre-stored first conversion rule, where a configuration function of the network device that a northbound interface supports identification is recorded in the COI, the northbound interface is an interface used when the conversion device communicates with an operation support system OSS, and the first conversion rule is used to implement conversion from the CLI to the COI.
8. The apparatus of claim 7,
the processing module is specifically configured to identify the first conversion rule and the CLI according to a preset grammar rule to generate the COI.
9. The apparatus according to claim 7 or 8,
the processing module is further configured to obtain a second conversion rule according to the first conversion rule and the CLI; wherein the second conversion rule is used for realizing the conversion from the COI to the CLI.
10. The apparatus of claim 9,
the communication module is further configured to receive a configuration command in a COI format issued by the OSS, where the configuration command is used to instruct to perform function configuration on the network device;
the conversion module is further configured to convert the configuration command in the COI format into a configuration command in the CLI format according to the second conversion rule;
the communication module is further configured to forward the configuration command in the CLI form to the network device, so as to implement the functional configuration of the network device.
11. The apparatus according to any one of claims 7-10,
the communication module is further configured to receive a query command in a COI format issued by the OSS, where the query command is used to instruct to query a configuration function of the network device;
the processing module is further configured to respond to the query command, acquire a function configuration file stored in a CLI form, where a configuration function of the network device is recorded in the function configuration file;
the processing module is further configured to convert the CLI-form function configuration file into a COI-form function configuration file according to the first conversion rule, and send the COI-form function configuration file to the OSS.
12. A translation device comprising a processor, a memory and a bus, the processor and the memory being connected by the bus, the memory being for storing instructions, the processor being for invoking the instructions stored in the memory for performing the method of any of claims 1-6 above.
13. A computer storage medium storing a computer program, wherein the computer program, when executed by a computing device, implements the method of any of claims 1 to 6.
CN201910230977.5A 2019-03-22 2019-03-22 Data processing method, related device and computer storage medium Active CN111723036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910230977.5A CN111723036B (en) 2019-03-22 2019-03-22 Data processing method, related device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910230977.5A CN111723036B (en) 2019-03-22 2019-03-22 Data processing method, related device and computer storage medium

Publications (2)

Publication Number Publication Date
CN111723036A true CN111723036A (en) 2020-09-29
CN111723036B CN111723036B (en) 2023-04-04

Family

ID=72563787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910230977.5A Active CN111723036B (en) 2019-03-22 2019-03-22 Data processing method, related device and computer storage medium

Country Status (1)

Country Link
CN (1) CN111723036B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311607A (en) * 2020-11-18 2021-02-02 迈普通信技术股份有限公司 CLI configuration verification method, device, controller and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997199A (en) * 2007-01-12 2007-07-11 中国电信股份有限公司 An integrated testing system and method for 3G network management interface
CN101262470A (en) * 2007-06-20 2008-09-10 中兴通讯股份有限公司 A north interface for peeling the interface and its interaction method with users
EP2230798A1 (en) * 2009-03-17 2010-09-22 Alcatel Lucent Method and system for remote management of applications hosted on a device, and server for use in such a system
CN102684894A (en) * 2011-03-07 2012-09-19 中兴通讯股份有限公司 Method and device for realizing northboundbound interface
US20120239445A1 (en) * 2011-03-15 2012-09-20 Accenture Global Services Limited Analytics value assessment toolkit
CN105323082A (en) * 2014-06-30 2016-02-10 中兴通讯股份有限公司 Method and device supporting butt joint of centralized northbound interfaces
US20160301568A1 (en) * 2013-12-02 2016-10-13 Zte Corporation Method and Device for Implementing Seamless Switching Between Northbound Corba Interface Specifications
US20160350095A1 (en) * 2015-05-26 2016-12-01 Cisco Technology, Inc. Techniques for enabling dynamic update of device data models

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997199A (en) * 2007-01-12 2007-07-11 中国电信股份有限公司 An integrated testing system and method for 3G network management interface
CN101262470A (en) * 2007-06-20 2008-09-10 中兴通讯股份有限公司 A north interface for peeling the interface and its interaction method with users
EP2230798A1 (en) * 2009-03-17 2010-09-22 Alcatel Lucent Method and system for remote management of applications hosted on a device, and server for use in such a system
CN102684894A (en) * 2011-03-07 2012-09-19 中兴通讯股份有限公司 Method and device for realizing northboundbound interface
US20120239445A1 (en) * 2011-03-15 2012-09-20 Accenture Global Services Limited Analytics value assessment toolkit
US20160301568A1 (en) * 2013-12-02 2016-10-13 Zte Corporation Method and Device for Implementing Seamless Switching Between Northbound Corba Interface Specifications
CN105323082A (en) * 2014-06-30 2016-02-10 中兴通讯股份有限公司 Method and device supporting butt joint of centralized northbound interfaces
US20160350095A1 (en) * 2015-05-26 2016-12-01 Cisco Technology, Inc. Techniques for enabling dynamic update of device data models

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311607A (en) * 2020-11-18 2021-02-02 迈普通信技术股份有限公司 CLI configuration verification method, device, controller and readable storage medium

Also Published As

Publication number Publication date
CN111723036B (en) 2023-04-04

Similar Documents

Publication Publication Date Title
DK2914022T3 (en) Device management method, middleware and machine-to-machine communication platform, device and system
AU2008350306B2 (en) Targeted queries using an OMA DM protocol
US20100049837A1 (en) Network equipment configuration method, network equipment network system
CN113508403A (en) System and method for interoperable communication of automation system components with multiple information sources
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
US10495336B2 (en) Energy operations across domains
CN105049256A (en) Method and system for realizing universal custom interface message
CN101170436B (en) A method for managing template in network management system
CN111723036B (en) Data processing method, related device and computer storage medium
CN114554618A (en) Wireless access point device, equipment access method, equipment and storage medium
US20080126520A1 (en) Devices, systems and methods for network device conversion
CN101179444B (en) Configuration take-effective method, configuration system and configuration gateway
CN101562633B (en) Visual service network user interactive system
CN103139806B (en) Method and base station of the webmaster with base station configuration data decoupling
CN115333943A (en) Deterministic network resource configuration system, method, device and storage medium
US10764152B1 (en) Methods and apparatus for centralized configuration management of heterogenous network devices through software-based node unification
EP3873032A1 (en) Server to support client data models from heterogeneous data sources
CN112182305A (en) XML (extensive markup language) analysis module and method based on XML rules and management method of configuration data
US20230367785A1 (en) System, method for improving efficiency of yang data model-based network devices
CN115250236B (en) Network element instruction adaptation method, device, system, electronic equipment and storage medium
WO2021103801A1 (en) Information processing method and related device
CN115065594B (en) Data configuration method, device, apparatus, readable storage medium and program product
CN105592489A (en) Transmission data management method and apparatus
WO2024016726A1 (en) Device configuration method, network device, chip and computer readable storage medium
WO2020192903A1 (en) Methods and devices for service capability discovery provided by management function providers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant