CN110134467B - Parameter configuration processing method and device, storage medium and processor - Google Patents

Parameter configuration processing method and device, storage medium and processor Download PDF

Info

Publication number
CN110134467B
CN110134467B CN201810129569.6A CN201810129569A CN110134467B CN 110134467 B CN110134467 B CN 110134467B CN 201810129569 A CN201810129569 A CN 201810129569A CN 110134467 B CN110134467 B CN 110134467B
Authority
CN
China
Prior art keywords
data
document
instance
data document
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.)
Active
Application number
CN201810129569.6A
Other languages
Chinese (zh)
Other versions
CN110134467A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810129569.6A priority Critical patent/CN110134467B/en
Priority to PCT/CN2019/073150 priority patent/WO2019154121A1/en
Publication of CN110134467A publication Critical patent/CN110134467A/en
Application granted granted Critical
Publication of CN110134467B publication Critical patent/CN110134467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a parameter configuration processing method, a device, a storage medium and a processor, wherein the method comprises the following steps: acquiring first instance data with parameters configured in a controller and second instance data in equipment according to the determined universal data model, wherein the parameter configuration is used for managing corresponding services in the controller and the equipment; respectively converting the first instance data and the second instance data into a first data document and a second data document by using a determined structure document of parameter configuration, wherein the structure document defines the attribute of the parameter configuration; and comparing the first data document with the second data document, and generating an audit report of parameter configuration according to the comparison result. The invention solves the problem that the parameter configuration condition can not be known in the prior art, thereby achieving the effect of conveniently knowing the parameter configuration condition.

Description

Parameter configuration processing method and device, storage medium and processor
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a storage medium, and a processor for parameter configuration processing.
Background
A common structure of a Software Defined Network (SDN) is shown in fig. 1, where Application software (APP) issues a configuration (corresponding to parameter configuration) edited by a User on a Graphical User Interface (GUI) to a controller, and the controller stores the configuration locally and issues the configuration to each device. If the user maintains the configuration through the APP, the configuration saved on the controller and the configuration in the device should always be consistent. However, in an actual operation environment, there are often cases where the configuration stored in the controller and the configuration in the device are inconsistent, because there are various reasons, such as a failure of the system itself, an erroneous operation of a maintenance person, and the like, and there is no way to absolutely ensure the consistency desired by the user. However, in the related art, how to know the inconsistent configuration does not exist, so that a user cannot clearly know which configuration is inconsistent, which causes complexity of configuration maintenance.
In view of the above-mentioned problem that the parameter configuration cannot be known, no effective solution has been proposed in the related art.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a storage medium, and a processor for processing parameter configuration, so as to at least solve the problem in the related art that the parameter configuration cannot be obtained.
According to an embodiment of the present invention, there is provided a method for processing parameter configuration, including: acquiring first instance data configured in a controller and second instance data configured in equipment according to a determined universal data model, wherein the parameter configuration is used for managing corresponding services in the controller and the equipment; converting the first instance data and the second instance data into a first data document and a second data document respectively by using a structure document of the determined parameter configuration, wherein the structure document defines the attribute of the parameter configuration; and comparing the first data document with the second data document, and generating an audit report of the parameter configuration according to the comparison result.
Optionally, converting the first instance data and the second instance data into the first data document and the second data document, respectively, by using the structure document includes: and converting the first instance data and the second instance data into the first data document and the second data document according to the attribute hierarchical relationship defined by the structural document and configured by the parameters.
Optionally, comparing the first data document with the second data document, and generating the audit report of the parameter configuration according to the comparison result includes: traversing instance data of the parameter configuration in the first data document and instance data of the parameter configuration in the second data document; comparing attribute values of instance data in the first data document to attribute values of instance data in the second data document; adding the first data document and the second data document to an instance pair list in the case that the attribute value of the instance data in the first data document is the same as the attribute value of the instance data in the second data document; in the case that the attribute value of the instance data in the first data document is different from the attribute value of the instance data in the second data document, adding the first data document to a first instance list and the second data document to a second instance list; populating the first instance list into a determined first single-configuration audit report data document; populating the second instance list into a determined second single-configuration audit report data document; filling the example pair list into a determined audit report data document according to the attribute hierarchical relation configured by the parameters; and forming the determined first single-configuration audit report data document, the second single-configuration audit report data document and the audit report data document into the audit report of the parameter configuration.
Optionally, populating the first instance list into the determined first single-configuration audit report data document includes: and filling the node attribute values in the first example list into the left node attribute values in the first single-configuration audit report data document, setting the right node attribute values in the first single-configuration audit report data document to be null, and setting whether the attribute values are equal to each other to be negative.
Optionally, populating the second instance list into the determined second single-configuration audit report data document includes: and filling the node attribute values in the second example list into the right node attribute values in the second single-configuration audit report data document, setting the left node attribute values in the first single-configuration audit report data document to be null, and setting whether the attribute values are equal to each other to be negative.
Optionally, the filling the instance pair list into the determined audit report data document according to the attribute hierarchical relationship configured by the parameter includes: and filling the attribute value of the first data document in the example pair list into the left node attribute value in the audit report data document, and filling the attribute value of the second data document into the right node attribute value in the audit report data document.
Optionally, the method further comprises: comparing child nodes in the first data document to child nodes in the second data document when there are no attribute values in the first data document and the second data document; in the case that the child node of the first data document is the same as the child node of the second data document, setting an attribute of whether the attributes in the instance pair list are equal to each other as yes; and under the condition that the child node of the first data document is the same as the child node of the second data document, setting the attribute of whether the instance pair list is equal to the attribute of no.
Optionally, the configuration document of the parameter configuration includes at least one of: a structure document comprising a single attribute of the parameter configuration; a structure document comprising composite properties of the parameter configuration.
According to another embodiment of the present invention, there is also provided a parameter configuration processing apparatus, including: a determining module, configured to determine a structure document of parameter configuration according to the determined general structure model, where an attribute of the parameter configuration is defined in the structure document, and the parameter configuration is used to manage corresponding services in a controller and a device; the acquisition module is used for acquiring first instance data of the parameter configuration in the controller and second instance data of the parameter configuration in the equipment according to the determined universal data model; a conversion module, configured to convert the first instance data and the second instance data into a first data document and a second data document, respectively, using the structure document; and the generating module is used for comparing the first data document with the second data document and generating an audit report of the parameter configuration according to the comparison result.
Optionally, the conversion module comprises: a conversion unit, configured to convert the first instance data and the second instance data into the first data document and the second data document, respectively, according to the attribute hierarchical relationship defined by the structural document and configured by the parameter.
Optionally, the obtaining module includes: and the acquisition unit is used for acquiring the first instance data of the parameter configuration in the controller and the second instance data of the parameter configuration in the equipment according to the determined universal data model.
Optionally, the structural document is determined by at least one of: constructing the structure document based on the attribute hierarchical relationship of the nodes configured by the parameters and the attribute structure of the nodes; and presetting the structural document by using the general structural model.
Optionally, the type of the attribute of the parameter configuration includes one of: attributes of a single configuration type; attributes of a composite configuration type.
According to yet another embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program performs any one of the above methods when executed.
According to yet another embodiment of the present invention, there is also provided a processor for executing a program, wherein the program executes to perform the method of any one of the above.
According to the invention, after the APP obtains the first instance data with the parameter configuration in the controller and the second instance data in the device, the parameter configuration is used for managing the corresponding services in the controller and the device; and comparing the first example data with the second example data, and generating an audit report of the parameter configuration according to the comparison result. The parameter configuration in the controller and the equipment is compared, and a user can definitely find whether the parameter configuration is consistent in the controller and the equipment by using the generated comparison result. Therefore, the problem that the parameter configuration condition cannot be known can be solved, and the effect of conveniently knowing the parameter configuration condition is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an SDN network in the related art;
fig. 2 is a block diagram of a hardware structure of a mobile terminal of a parameter configuration processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of processing parameter configuration according to an embodiment of the invention;
FIG. 4 is a schematic illustration of an audit report generated in an embodiment of the present invention;
fig. 5 is a block diagram of a parameter configuration processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of being operated on a mobile terminal, fig. 2 is a block diagram of a hardware structure of the mobile terminal of a processing method for parameter configuration according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 20 may include one or more (only one shown in fig. 2) processors 202 (the processors 202 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 204 for storing data, and a transmission device 206 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 2 is only an illustration and is not intended to limit the structure of the electronic device. For example, the mobile terminal 20 may also include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2.
The memory 204 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the processing method of parameter configuration in the embodiment of the present invention, and the processor 202 executes various functional applications and data processing by running the software programs and modules stored in the memory 204, so as to implement the above-mentioned method. Memory 204 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 204 may further include memory located remotely from the processor 202, which may be connected to the mobile terminal 20 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 206 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 20. In one example, the transmission device 206 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for processing parameter configuration is provided, and fig. 3 is a flowchart of a method for processing parameter configuration according to an embodiment of the present invention, as shown in fig. 3, the flowchart includes the following steps:
step S302, acquiring first instance data in a controller and second instance data in equipment configured with parameters according to a determined general data model, wherein the parameter configuration is used for managing corresponding services in the controller and the equipment;
step S304, converting the first instance data and the second instance data into a first data document and a second data document respectively by using a determined structure document of parameter configuration, wherein the structure document defines the attribute of the parameter configuration;
step S306, comparing the first data document with the second data document, and generating an audit report of the parameter configuration according to the comparison result.
Through the steps, after the APP obtains first instance data with parameters configured in the controller and second instance data in the device, the parameters are configured to manage corresponding services in the controller and the device; and comparing the first example data with the second example data, and generating an audit report of the parameter configuration according to the comparison result. The parameter configuration in the controller and the equipment is compared, and a user can definitely find whether the parameter configuration is consistent in the controller and the equipment by using the generated comparison result. Therefore, the problem that the parameter configuration condition cannot be known can be solved, and the effect of conveniently knowing the parameter configuration condition is achieved.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
In this embodiment, the common structural model may be a structural model in a unified format through preset, that is, all parameter configurations may be used, and the structural document of the parameter configuration is a relatively detailed description of the common structural model. The structure document contains various attribute nodes of parameter configuration. All parameter configurations can be unified into the same format through a universal structural model, and subsequent comparison is facilitated. The common data mode has the same function as the common structural model, namely, the example data is unified into the same format, so that the comparison of the data is convenient. The first implementation data and the second instance data are converted into a unified format (the first data file and the second data file) for comparison, and the comparison efficiency is improved.
In an alternative embodiment, the structural document of the parameter configuration includes at least one of: a structure document including a single attribute of the parameter configuration; a structure document comprising the composite properties of the parameter configuration. In this embodiment, the configuration document of the parameter configuration may include a plurality of single attributes and a plurality of composite attributes, and the number of attributes included in the composite attributes may be determined by actual configuration data on the controller or the device, so as to increase the diversity of the parameter configuration.
In an alternative embodiment, converting the first instance data and the second instance data into the first data document and the second data document, respectively, using the structure document includes: and converting the first instance data and the second instance data into a first data document and a second data document according to the attribute hierarchical relationship defined by the structural document and configured by the parameters. In this embodiment, the operation of converting the instance data according to the attribute hierarchical relationship configured by the parameters increases the accuracy of the conversion.
In an optional embodiment, comparing the first data document with the second data document, and generating the audit report of the parameter configuration according to the comparison result includes: traversing instance data of the parameter configuration in a first data document and instance data of the parameter configuration in a second data document; comparing the attribute value of the instance data in the first data document with the attribute value of the instance data in the second data document; in the case that the attribute value of the instance data in the first data document is the same as the attribute value of the instance data in the second data document, adding the first data document and the second data document to the instance pair list; in the case that the attribute value of the instance data in the first data document is different from the attribute value of the instance data in the second data document, adding the first data document to the first instance list and the second data document to the second instance list; populating the first instance list into the determined first single-configuration audit report data document; populating a second instance list into the determined second single-configuration audit report data document; filling the example pair list into a determined audit report data document according to the attribute hierarchical relationship configured by the parameters; and forming the audit report of the parameter configuration by the determined first single configuration audit report data document, the second single configuration audit report data document and the audit report data document. In the embodiment, different example lists are generated according to different comparison results, and the audit report is composed of the different example lists, so that different possibilities are covered in the audit report, and convenience in later-stage searching is improved.
In an alternative embodiment, populating the first instance list into the determined first single-configuration audit report data document includes: and filling the node attribute values in the first example list into the left node attribute values in the first single-configuration audit report data document, setting the right node attribute values in the first single-configuration audit report data document to be null, and setting the attribute values which are equal to each other to be negative.
In an alternative embodiment, populating the second instance list into the determined second single-configuration audit report data document includes: and filling the node attribute values in the second example list into the right node attribute values in the second single-configuration audit report data document, setting the left node attribute values in the first single-configuration audit report data document to be null, and setting the attribute values which are equal to each other to be negative.
In an optional embodiment, the filling the list of the pair of instances into the determined audit report data document according to the attribute hierarchical relationship configured by the parameters includes: and filling the attribute value of the first data document in the example pair list into the left node attribute value in the audit report data document, and filling the attribute value of the second data document into the right node attribute value in the audit report data document.
In an optional embodiment, the method further includes: when the attribute values do not exist in the first data document and the second data document, comparing child nodes in the first data document with child nodes in the second data document; in the case that the child node of the first data document is the same as the child node of the second data document, setting the attribute of whether the attributes in the instance pair list are equal to yes; in the case where the child node of the first data document is the same as the child node of the second data document, the attribute of whether the above-described example pair list is equal is set to no. In this embodiment, when there is no attribute value in the first data document and the second data document, the attribute value may be added to the instance pair list, and whether the attributes are equal needs to be filled in according to the condition of the child node in the data document.
In an alternative embodiment, the structured document is determined by at least one of: constructing the structure document based on the attribute hierarchical relationship of the nodes configured by the parameters and the attribute structure of the nodes; and presetting the structure document by using the general structure model.
In an optional embodiment, the type of the attribute of the parameter configuration includes one of: attributes of a single configuration type; attributes of a composite configuration type.
The present invention will be described in detail with reference to the following specific examples:
specific example 1:
the embodiment provides a method for auditing the configuration saved in the controller and the configuration in the equipment and outputting an audit report. The method enables a user to timely and clearly know the consistency conditions of the configuration in the controller (corresponding to the parameter configuration) and the configuration in the equipment, and provides a basis for solving the inconsistency problem for the user.
The embodiment first defines a common configuration definition model (corresponding to the common structural model in the above) and a configuration instance data model (corresponding to the common data model in the above) for different types of configurations; according to the general configuration definition model, each type of configuration needs to provide a configuration definition structure document (a structure document corresponding to the parameter configuration in the above) to accurately describe the structure of the data model of the configuration; according to the configuration definition structure document, the APP converts the configuration acquired from the controller or the controller from the equipment into a corresponding configuration data document (corresponding to the first data document and the second data document), and finally the APP compares the two documents and outputs an audit report.
SDN network: compared with the traditional network, the switch or the router based on the SDN network only has the logic of a forwarding plane (data plane), the forwarding is mainly completed according to the logic of the controller, and the intercommunication with the SDN controller is realized through an Openflow protocol (or other protocols).
A controller: and the software system is used for realizing forwarding logic in the SDN and sending a forwarding instruction to the SDN network equipment. An SDN Controller (Controller) implements interworking with an SDN network device through an Openflow protocol (or other protocol).
Configuration: parameter settings for controlling and managing various resources or services of the controller (corresponding to the parameter configurations in the above for managing the corresponding services in the controller and the device);
APP: the APP described in this embodiment is implemented based on WEB, and calls a control and management interface provided by the controller through an application layer protocol (for example, restful interface, etc.).
The present embodiment illustrates the relevant data model:
table 1 defines the structure (ConfDef) of a configuration type definition document, which defines the attribute composition of the configuration type definition document and the hierarchical relationship between the attributes, each configuration type may have a plurality of attributes, and the key attribute is used to determine whether the configuration instances from the controller and the device, respectively, are a pair of instances having a mapping relationship.
TABLE 1
Figure BDA0001574503670000101
Table 2 defines a structure (AttrNodeDef) of an attribute node in a document for a configuration type, for defining an attribute node; the attribute nodes can be defined as simple types or composite types; a multi-instance schema compliant type attribute node can hold an indeterminate number of sub-configuration instances.
TABLE 2
Figure BDA0001574503670000102
Figure BDA0001574503670000111
Table 3 defines a general data structure for storing data documents of a single configuration instance for the structure (Conf) of a configuration instance data document, and the specific attribute hierarchical relationship is described by the corresponding "configuration type definition document".
TABLE 3
Name of field Type of field Description of the invention
instanceName STRING Example name
attrNodeList List of AttrNode Attribute node list
Table 4 is the structure of the attribute node (AttrNode) in the configuration instance data document;
TABLE 4
Figure BDA0001574503670000112
Figure BDA0001574503670000121
Table 5 defines a general data structure for storing a plurality of configuration instance data, for the structure of the configuration instance list data document (ConfList).
TABLE 5
Name of field Type of field Description of the invention
confTypeID STRING Configuration type numbering
confList List of Conf Attribute node list
Table 6 defines a general data structure for storing configuration audit report data for the structure of the configuration audit report data document (audioconflist).
TABLE 6
Figure BDA0001574503670000122
Table 7 is the structure (audioconf) of the audit report data document of a single configuration instance, and defines a general data structure for storing audit report data of a single configuration instance; the attributes and the hierarchical relationship among the attributes are described by the corresponding configuration type definition document.
TABLE 7
Figure BDA0001574503670000131
Table 8 configures the structure of attribute node pairs (attrndepair).
TABLE 8
Figure BDA0001574503670000132
Specific example 2:
the basic steps of auditing the processing flow of a single configuration type configuration instance of a single node in the embodiment are as follows:
the APP obtains a "configuration type definition document" (a structure document corresponding to the parameter configuration in the above) that has written this configuration type in advance. One example of a configuration type definition document (ConfDef) is shown in the following code:
type of configuration
XX service
Configuration type number: conf1
Configuration type internationalized name: xx service
Key attributes are as follows:
properties
Attribute 1
Node attribute name: attr1
Node attribute internationalization name: attribute 1
Node mode: SIMPLE
Attribute 2
Node attribute name: attr2
Node attribute internationalization name: attribute 2
Node mode: SIMPLE
Attribute 3
Node attribute name: attr3
Node attribute internationalization name: attribute 3
Node mode: SIMPLE
Attribute 4
Node attribute name: attr4
Node attribute internationalization name: sub-configuration A
Node mode: COMPLEX
Example size of the sub-configuration: SIMPLE
The sub-configuration type: sub-configuration A
Attribute 5
Node attribute name: attr5
Node attribute internationalization name: sub-configuration B
Node mode: COMPLEX
Example size of the sub-configuration: multiplele
The sub-configuration type: sub-configuration B
Three general types of attributes of 'attribute 1', 'attribute 2' and 'attribute 3' (corresponding to the structure document with single attribute in the above) and two compound types of 'sub-configuration A' and 'sub-configuration B' (corresponding to the structure document with compound attribute in the above) are contained; the attribute 'sub-configuration A' is in a singleton mode, and an instance which can only have one sub-configuration A is required to be owned; the attribute "sub-configuration a" is a multi-instance mode, and the number of instances of owned self-sub-configuration B depends on the actual configuration data on the controller or the device, and is specified by the following code:
type of configuration
Sub-configuration A
Configuration type number: subbconfa
Configuration type internationalized name: sub-configuration A
Key attributes are as follows:
properties
Attribute A1
Node attribute name: attra1
Node attribute internationalization name: attribute A1
Node mode: SIMPLE
Attribute A2
Node attribute name: attra2
Node attribute internationalization name: attribute A2
Node mode: SIMPLE
Attribute A3
Node attribute name: attra3
Node attribute internationalization name: attribute A3
Node mode: SIMPLE
Type of configuration
Sub-configuration B
Configuration type number: ubconfb
Configuration type internationalized name: sub-configuration B
Key attributes are as follows:
properties
Attribute B1
Node attribute name: attrb1
Node attribute internationalization name: attribute B1
Node mode: SIMPLE
Attribute B2
Node attribute name: attrb2
Node attribute internationalization name: attribute B2
Node mode: SIMPLE
Attribute B3
Node attribute name: attrb3
Node attribute internationalization name: attribute B3
Node mode: SIMPLE
The APP acquires all instance data (corresponding to the first instance data and the second instance data) of the configuration type from the controller and the device respectively, and constructs the instance data into a "configuration instance list data document" according to the attribute hierarchical relationship defined by the acquired "configuration type definition document", wherein the two data documents are called a left instance list and a right instance list (corresponding to the first instance data document and the second instance document respectively) for simplifying the description; the codes shown below are examples of the left and right example lists, respectively;
Figure BDA0001574503670000151
Figure BDA0001574503670000161
Figure BDA0001574503670000171
Figure BDA0001574503670000181
Figure BDA0001574503670000191
the APP traverses the examples in the left example list, compares the key attribute values with each right example through the left example, and if the right examples with the equal key attribute values can be found, the right examples are considered as a left-right example pair (corresponding to the example pair list in the above); if no such right instance can be found, it is called "drop left instance"; similarly, the right instance list, which does not find the corresponding left instance, is called "drop list right instance".
The APP groups all the drop left instances into a "drop left instance list" (corresponding to the first instance list in the above), all the drop right instances into a "drop right instance list" (corresponding to the second instance list in the above), and all the left and right instance pairs into a "left and right instance pair list".
The APP fills the left falling bill instances into audit report data documents with the structure of the audit report data documents according to the number, each left falling bill instance fills a data document which accords with the structure of the audit report data documents of the single configuration instance, the node attribute of the left falling bill instance is filled into the attribute value of the left node, all the attribute values of the right node are set to be null, and whether the attribute values are equal or not is set to be negative;
then, the APP fills the left and right instance pairs into an audit report data document according to an attribute hierarchical relationship, each left and right instance pair is filled into a single configuration instance audit report data document, the attribute value of the left instance is filled into a left node attribute value, the attribute value of the right instance is filled into a right node attribute value, and the attribute values of the nodes are filled into the right node attribute value by comparing the left and right node attribute values to determine whether the attribute values are equal; if the current node has no attribute value, it needs to judge whether all the child nodes of the current node are equal, and if there is an inequality, the current node must be set to be inequality;
then, the APP adds the drop right instances to the data document of the audit report according to the attribute hierarchical relationship, each drop right instance is filled in a data document which accords with the structure of the audit report data document of the single configuration instance, the node attribute is filled in the right node attribute value, all the corresponding left node attribute values are set to be null, and whether the left node attribute values are equal or not is set to be negative;
finally obtaining a configuration audit report data document shown by the following codes;
Figure BDA0001574503670000201
Figure BDA0001574503670000211
Figure BDA0001574503670000221
Figure BDA0001574503670000231
the APP combines the obtained audit report data with the information of the configuration type international name, the attribute international name, and the like in the "configuration type definition document" obtained in step 1, and can render the audit report required by the user as shown in fig. 4 conveniently, and nodes with difference left and right in the report are marked by grey.
In summary, the present invention provides a general auditing configuration method, which is used to complete configuration auditing between a controller and a device and provide detailed configuration auditing reports to managers of an SDN network. The auditing function of data between various systems can also be completed by using the scheme.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a parameter configuration processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a parameter configuration processing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a determination module 52, a conversion module 54 and a generation module 56, which are described in detail below:
a determining module 52, configured to obtain first instance data configured in a controller and second instance data configured in a device according to a determined general data model, where the parameter configuration is used to manage corresponding services in the controller and the device; a conversion module 54, connected to the determination module 52, for converting the first instance data and the second instance data into a first data document and a second data document, respectively, by using a structure document of a determined parameter configuration, wherein the structure document defines attributes of the parameter configuration; and a generating module 56, connected to the converting module 54, for comparing the first data document with the second data document, and generating an audit report of the parameter configuration according to the comparison result.
In an alternative embodiment, the conversion module includes: a conversion unit, configured to convert the first instance data and the second instance data into the first data document and the second data document, respectively, according to the attribute hierarchical relationship defined by the structural document and configured by the parameter.
In an alternative embodiment, the structural document of the parameter configuration includes at least one of: a structure document including a single attribute of the parameter configuration; a structure document comprising the composite properties of the parameter configuration.
In an alternative embodiment, the apparatus compares the first data document with the second data document, and generates an audit report of the parameter configuration according to the comparison result by: traversing instance data of the parameter configuration in a first data document and instance data of the parameter configuration in a second data document; comparing the attribute values of the instance data in the first data document with the attribute values of the instance data in the second data document; in the case that the attribute value of the instance data in the first data document is the same as the attribute value of the instance data in the second data document, adding the first data document and the second data document to the instance pair list; in the case that the attribute value of the instance data in the first data document is different from the attribute value of the instance data in the second data document, adding the first data document to the first instance list and the second data document to the second instance list; filling the first example list into a determined first single-configuration audit report data document; filling the second example list into a determined second single-configuration audit report data document; filling the example pair list into a determined audit report data document according to the attribute hierarchical relationship configured by the parameters; and forming the audit report of the parameter configuration by the determined first single configuration audit report data document, the second single configuration audit report data document and the audit report data document.
In an alternative embodiment, the apparatus populates the first instance list into the determined first single-configuration audit report data document by: and filling the node attribute values in the first example list into the left node attribute values in the first single configuration audit report data document, setting the right node attribute values in the first single configuration audit report data document to be null, and setting the attribute values which are equal to each other to be negative.
In an alternative embodiment, the apparatus populates the determined second single-configuration audit report data document with a second list of instances by: and filling the node attribute values in the second example list into the right node attribute values in the second single configuration audit report data document, setting the left node attribute values in the first single configuration audit report data document to be null, and setting the attribute values which are equal to each other to be negative.
In an optional embodiment, the apparatus fills the example pair list into the determined audit report data document according to the attribute hierarchical relationship configured by the parameters by: and filling the attribute value of the first data document in the example pair list into the left node attribute value in the audit report data document, and filling the attribute value of the second data document into the right node attribute value in the audit report data document.
In an optional embodiment, the apparatus further comprises: a comparison module, configured to compare child nodes in the first data document with child nodes in the second data document when there is no attribute value in the first data document and the second data document; in the case that the child node of the first data document is the same as the child node of the second data document, setting the attribute of whether the attributes in the example pair list are equal to be yes; in the case where the child node of the first data document is the same as the child node of the second data document, the attribute of whether the above-described example pair list is equal is set to no.
In an alternative embodiment, the structured document is determined by at least one of: constructing the structure document based on the attribute hierarchical relationship of the nodes configured by the parameters and the attribute structure of the nodes; and presetting the structure document by using the general structure model.
In an optional embodiment, the type of the attribute of the parameter configuration includes one of: attributes of a single configuration type; attributes of a composite configuration type.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
An embodiment of the present invention further provides a storage medium including a stored program, where the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for executing the above steps.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide a processor configured to execute a program, where the program executes to perform any of the steps in the method.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method for processing parameter configuration, comprising:
acquiring first instance data configured in a controller and second instance data configured in equipment according to a determined universal data model, wherein the parameter configuration is used for managing corresponding services in the controller and the equipment;
converting the first instance data and the second instance data into a first data document and a second data document respectively by using a structure document of the determined parameter configuration, wherein the structure document defines the attribute of the parameter configuration; the configuration document of the parameter configuration comprises at least one of the following: a structure document comprising a single attribute of the parameter configuration; a structure document comprising composite properties of the parameter configuration;
and comparing the first data document with the second data document, and generating an audit report of the parameter configuration according to the comparison result.
2. The method of claim 1, wherein converting the first instance data and the second instance data into the first data document and the second data document, respectively, using the structure document comprises:
and converting the first instance data and the second instance data into the first data document and the second data document according to the attribute hierarchical relationship defined by the structural document and configured by the parameters.
3. The method of claim 1, wherein comparing the first data document to the second data document and generating an audit report of the parameter configuration from the comparison comprises:
traversing instance data of the parameter configuration in the first data document and instance data of the parameter configuration in the second data document;
comparing attribute values of instance data in the first data document to attribute values of instance data in the second data document;
adding the first data document and the second data document to an instance pair list in the case that the attribute value of the instance data in the first data document is the same as the attribute value of the instance data in the second data document;
in the case that the attribute value of the instance data in the first data document is different from the attribute value of the instance data in the second data document, adding the first data document to a first instance list and the second data document to a second instance list;
populating the first instance list into a determined first single-configuration audit report data document;
populating the second instance list into a determined second single-configuration audit report data document;
filling the example pair list into a determined audit report data document according to the attribute hierarchical relation configured by the parameters;
and forming the determined first single-configuration audit report data document, the second single-configuration audit report data document and the audit report data document into the audit report of the parameter configuration.
4. The method of claim 3, wherein populating the determined first single-configuration audit report data document with the first instance list comprises:
and filling the node attribute values in the first example list into the left node attribute values in the first single-configuration audit report data document, setting the right node attribute values in the first single-configuration audit report data document to be null, and setting whether the attribute values are equal to each other to be negative.
5. The method of claim 3, wherein populating the determined second single-configuration audit report data document with the second instance list comprises:
and filling the node attribute values in the second example list into the right node attribute values in the second single-configuration audit report data document, setting the left node attribute values in the first single-configuration audit report data document to be null, and setting whether the attribute values are equal to each other to be negative.
6. The method of claim 3, wherein populating the list of instance pairs into the determined audit report data document according to the attribute hierarchy of the parameter configuration comprises:
and filling the attribute value of the first data document in the example pair list into the left node attribute value in the audit report data document, and filling the attribute value of the second data document into the right node attribute value in the audit report data document.
7. The method of claim 6, further comprising:
comparing child nodes in the first data document to child nodes in the second data document when there are no attribute values in the first data document and the second data document;
in the case that the child node of the first data document is the same as the child node of the second data document, setting an attribute of whether the attributes in the instance pair list are equal to each other as yes;
and under the condition that the child node of the first data document is the same as the child node of the second data document, setting the attribute of whether the instance pair list is equal to the attribute of no.
8. The method of claim 1, wherein the structured document is determined by at least one of:
constructing the structure document based on the attribute hierarchical relationship of the nodes configured by the parameters and the attribute structure of the nodes;
and presetting the structural document by using a general structural model.
9. The method of claim 1, wherein the type of the attribute of the parameter configuration comprises one of:
attributes of a single configuration type;
attributes of a composite configuration type.
10. A storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 9.
11. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 9.
CN201810129569.6A 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor Active CN110134467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810129569.6A CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor
PCT/CN2019/073150 WO2019154121A1 (en) 2018-02-08 2019-01-25 Processing method and device for parameter configuration, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810129569.6A CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN110134467A CN110134467A (en) 2019-08-16
CN110134467B true CN110134467B (en) 2021-11-02

Family

ID=67549220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810129569.6A Active CN110134467B (en) 2018-02-08 2018-02-08 Parameter configuration processing method and device, storage medium and processor

Country Status (2)

Country Link
CN (1) CN110134467B (en)
WO (1) WO2019154121A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168144A (en) * 2014-08-22 2014-11-26 国都兴业信息审计系统技术(北京)有限公司 Method for auditing SDN
CN104767841A (en) * 2015-04-30 2015-07-08 杭州华三通信技术有限公司 Method for updating address resolution protocol table item in software-defined network and gateway equipment
WO2016153713A1 (en) * 2015-03-23 2016-09-29 Brocade Communications Systems, Inc. Flow-specific failure detection in sdn networks
CN106130802A (en) * 2016-08-30 2016-11-16 杭州华三通信技术有限公司 A kind of configuration smoothing method and device
CN106254447A (en) * 2016-07-29 2016-12-21 北京华为数字技术有限公司 Load-balancing method, BRAS equipment and SDN controller
WO2017051315A1 (en) * 2015-09-25 2017-03-30 Telefonaktiebolaget Lm Ericsson (Publ) Sdn controller logic-inference network troubleshooter (sdn-lint) tool
CN106888110A (en) * 2016-12-16 2017-06-23 新华三技术有限公司 A kind of configuration data synchronization method and device
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN
CN107395380A (en) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 A kind of method for processing business and system
CN107517121A (en) * 2016-06-17 2017-12-26 华为技术有限公司 Equipment configuration method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050060643A1 (en) * 2003-08-25 2005-03-17 Miavia, Inc. Document similarity detection and classification system
CN102111215A (en) * 2010-12-23 2011-06-29 中兴通讯股份有限公司 Method and device for synchronizing configuration data
CN106372040B (en) * 2016-08-24 2019-03-12 长园深瑞继保自动化有限公司 Intelligent substation configuration file otherness comparison system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168144A (en) * 2014-08-22 2014-11-26 国都兴业信息审计系统技术(北京)有限公司 Method for auditing SDN
WO2016153713A1 (en) * 2015-03-23 2016-09-29 Brocade Communications Systems, Inc. Flow-specific failure detection in sdn networks
CN104767841A (en) * 2015-04-30 2015-07-08 杭州华三通信技术有限公司 Method for updating address resolution protocol table item in software-defined network and gateway equipment
WO2017051315A1 (en) * 2015-09-25 2017-03-30 Telefonaktiebolaget Lm Ericsson (Publ) Sdn controller logic-inference network troubleshooter (sdn-lint) tool
CN107395380A (en) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 A kind of method for processing business and system
CN107517121A (en) * 2016-06-17 2017-12-26 华为技术有限公司 Equipment configuration method and device
CN106254447A (en) * 2016-07-29 2016-12-21 北京华为数字技术有限公司 Load-balancing method, BRAS equipment and SDN controller
CN106130802A (en) * 2016-08-30 2016-11-16 杭州华三通信技术有限公司 A kind of configuration smoothing method and device
CN106888110A (en) * 2016-12-16 2017-06-23 新华三技术有限公司 A kind of configuration data synchronization method and device
CN107104819A (en) * 2017-03-23 2017-08-29 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN

Also Published As

Publication number Publication date
WO2019154121A1 (en) 2019-08-15
CN110134467A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
EP3748908B1 (en) Method, system, network device, storage medium for creating a network slice
US10834013B2 (en) Network slice management
CN109218047B (en) Network slice processing method and device, communication system and storage medium
CN1992635B (en) Method of simulating SNMP network element and performing network management system test with the network element
CN113300877B (en) Network slice management method and equipment
CN102447585B (en) Method and device for converting network configuration protocol response message into command line
CN105052076B (en) Network element management system and network element management method based on cloud computing
WO2018090191A1 (en) Management method, management unit and system for network function
CN114501469A (en) Method, device and system for configuring network slice
EP3742786A1 (en) Network alarm method, device, system and terminal
WO2019056954A1 (en) Network slice management method and device
CN102457390A (en) Fault location method and system based on quality of experience (QoE)
CN101854343A (en) Method for providing node information, and method and device for acquiring node information
WO2021098824A1 (en) Network slice creation method, basic network controller, system, and storage medium
CN104243198B (en) A kind of network management and system based on network configuration protocol
US11838176B1 (en) Provisioning and deploying RAN applications in a RAN system
CN109150583A (en) A kind of management method and device of northbound interface
Nguyen et al. Toward a programmable software-defined IoT architecture for sensor service provision on demand
CN109600769A (en) Communication means and device
CN108171640B (en) Data storage system and statistical method for ship communication system
EP2887581A1 (en) Data updating method, system and device
CN109194519B (en) Configuration method and device of network equipment, controller and computer storage medium
CN110134467B (en) Parameter configuration processing method and device, storage medium and processor
JP6893568B2 (en) Data interaction methods, equipment and devices
CN107784006B (en) Data processing method and device

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