CN115361290A - Configuration comparison method and device, electronic equipment and storage medium - Google Patents

Configuration comparison method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115361290A
CN115361290A CN202210775417.XA CN202210775417A CN115361290A CN 115361290 A CN115361290 A CN 115361290A CN 202210775417 A CN202210775417 A CN 202210775417A CN 115361290 A CN115361290 A CN 115361290A
Authority
CN
China
Prior art keywords
configuration
row
comparison result
configuration row
original
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
CN202210775417.XA
Other languages
Chinese (zh)
Other versions
CN115361290B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210775417.XA priority Critical patent/CN115361290B/en
Publication of CN115361290A publication Critical patent/CN115361290A/en
Application granted granted Critical
Publication of CN115361290B publication Critical patent/CN115361290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0869Validating the configuration within one network element
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a configuration comparison method, a configuration comparison device, electronic equipment and a storage medium, and relates to the field of artificial intelligence such as data processing and cloud computing, wherein the method comprises the following steps: respectively obtaining authority configuration rows corresponding to all modules in authority configuration; respectively acquiring current network configuration rows corresponding to all modules in current network configuration, wherein the authoritative configuration row and the current network configuration row are both configuration rows comprising complete information; and comparing each current network configuration row with the corresponding authority configuration row to obtain a comparison result. By applying the scheme disclosed by the disclosure, the accuracy of the comparison result can be improved.

Description

Configuration comparison method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of artificial intelligence technologies, and in particular, to a configuration comparison method and apparatus, an electronic device, and a storage medium in the fields of data processing and cloud computing.
Background
At present, many networks still adopt the traditional routing protocol, the normal operation of the network is realized by configuring the device, and in many cases, the existing network configuration and the authoritative configuration need to be compared to determine the difference between the two configurations, and the influence of the difference is analyzed, so as to correct the existing network configuration or the authoritative configuration, and the like.
Disclosure of Invention
The disclosure provides a configuration comparison method, a configuration comparison device, an electronic device and a storage medium.
A configuration alignment method, comprising:
respectively obtaining authority configuration rows corresponding to all modules in authority configuration;
respectively acquiring an existing network configuration row corresponding to each module in the existing network configuration, wherein the authority configuration row and the existing network configuration row are both configuration rows comprising complete information;
and comparing each current network configuration row with the corresponding authority configuration row to obtain a comparison result.
A configuration alignment apparatus comprising: the device comprises a first acquisition module, a second acquisition module and a comparison module;
the first acquisition module is used for respectively acquiring authority configuration rows corresponding to all the modules in the authority configuration;
the second obtaining module is configured to obtain an existing network configuration row corresponding to each module in an existing network configuration, where the authority configuration row and the existing network configuration row are both configuration rows including complete information;
and the comparison module is used for comparing each current network configuration row with the corresponding authority configuration row to obtain a comparison result.
An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as described above.
A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method as described above.
A computer program product comprising computer programs/instructions which, when executed by a processor, implement a method as described above.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of an embodiment of a configuration comparison method according to the present disclosure;
fig. 2 is a timing control flowchart of the inspection platform-based configuration comparison method according to the present disclosure;
fig. 3 is a schematic view of an interaction manner between the inspection platform and the configuration comparison service according to the present disclosure;
FIG. 4 is a schematic diagram of a configuration comparison apparatus 400 according to an embodiment of the present disclosure;
FIG. 5 shows a schematic block diagram of an electronic device 500 that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In addition, it should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
Fig. 1 is a flowchart of an embodiment of a configuration comparison method according to the present disclosure. As shown in fig. 1, the following detailed implementation is included.
In step 101, authority configuration rows corresponding to modules in authority configuration are obtained respectively.
In step 102, an existing network configuration row corresponding to each module in the existing network configuration is obtained, and both the authoritative configuration row and the existing network configuration row include configuration rows with complete information.
In step 103, each current network configuration row is compared with the corresponding authority configuration row to obtain a comparison result.
The current network configuration refers to actual configuration of each device, and the authoritative configuration refers to standard configuration which is referred to when a network is built or changed. Whether the current network configuration or the authority configuration is adopted, each module corresponds to one or more configuration rows, wherein the configuration row corresponding to each module in the current network configuration and including the complete information is called a current network configuration row, the configuration row corresponding to each module in the authority configuration and including the complete information is called an authority configuration row, and the complete configuration comprises all required information.
In the prior art, the current network configuration and the authority configuration can be compared in a manual checking mode to determine the difference between the current network configuration and the authority configuration, but the mode needs to consume large labor and time cost.
Therefore, it is desirable to implement automatic configuration comparison to save labor and time cost, and in the solution of the above method embodiment, the authoritative configuration row and the current network configuration row can be obtained respectively, and the corresponding configuration rows can be compared, thereby implementing automatic configuration comparison, and moreover, a modular configuration comparison manner is adopted to ensure the accuracy of the comparison result.
In practical applications, the authoritative configuration is usually non-full, i.e. does not include parameter value information, only modules similar to the framework/architecture exist, etc. While existing network configurations are typically full. The parameter value refers to the specific parameter content.
According to the authority configuration, authority configuration rows corresponding to all the modules can be obtained respectively. In an embodiment of the present disclosure, the authoritative configuration may be analyzed to obtain configuration rows corresponding to each module therein, that is, original configuration rows, and then the following processes may be performed for any original configuration row, respectively: and in response to determining that the original configuration row has no corresponding parameter, the original configuration row can be considered to be complete, and accordingly, the original configuration row can be used as an authority configuration row, otherwise, the parameter value of the parameter corresponding to the original configuration row can be obtained, and the authority configuration row corresponding to the original configuration row can be obtained through rendering based on the obtained parameter value and the original configuration row, namely, the authority configuration row including complete information is obtained.
A module may correspond to one or more raw configuration rows, and a raw configuration row may correspond to zero, one, or more parameters.
That is, not all configuration rows have corresponding parameters, and some configuration rows are pure configuration commands without parameters, and accordingly, the original configuration row can be directly used as an authoritative configuration row.
How the authority configuration is resolved is not limiting. For example, the authoritative configurations may be resolved using a configuration comparison service tool, such as a bat fish (Batfish).
Through the processing, the required authority configuration rows can be efficiently and accurately acquired, so that a good foundation is laid for subsequent processing.
Assuming that the authoritative configuration includes M modules, each module corresponds to N original configuration rows, and assuming that each original configuration row corresponds to P parameters, the parameter value of the corresponding parameter can be obtained for each original configuration row in the M × N original configuration rows. M, N and P can all be positive integers. In addition, the number of original configuration rows corresponding to different modules may be the same or different, and similarly, the number of parameters corresponding to different original configuration rows may be the same or different, which is merely an example.
In an embodiment of the present disclosure, for any original configuration row, a parameter value of a parameter corresponding to the original configuration row may be obtained through topology information query, or a parameter value of a parameter corresponding to the original configuration row may be obtained from a parameter center. Which kind of acquisition mode of specifically adopting can be according to actual need and decide, very nimble convenience. In addition, the manner of obtaining the parameter value is merely an example, and is not intended to limit the technical solution of the present disclosure, and other feasible obtaining manners may be adopted.
For example, if a certain original configuration row a corresponds to 6 parameters, the parameter values of the 6 parameters can be obtained by querying topology information or querying a parameter center, respectively. If necessary, the acquired parameter values can be manually checked, namely whether the parameter values are correct or not is manually confirmed, and if the parameter values are incorrect, correction can be carried out.
Then, an authority configuration row corresponding to the original configuration row a may be obtained through rendering based on the obtained parameter values and the original configuration row a, specifically, the original configuration row a may be analyzed to obtain positions of the parameters in the original configuration row a, and then the obtained parameter values may be respectively filled into the corresponding positions, so as to obtain the authority configuration row filled with the parameter values.
In addition, the current network configuration rows corresponding to the modules in the current network configuration can be respectively obtained, and each current network configuration row is a configuration row including parameter value information.
In an embodiment of the present disclosure, an existing network configuration row corresponding to each module in the existing network configuration row may be obtained by analyzing the existing network configuration. How to resolve the existing network configuration is not limited. For example, the existing network configuration may be parsed by using a Batfish or syntax parse tree.
Because the existing network configuration is full, the existing network configuration rows corresponding to the modules can be directly obtained through analysis, and parameter values do not need to be acquired, rendering is not needed, and the processing efficiency is improved.
After the authority configuration rows corresponding to the modules in the authority configuration and the existing network configuration rows corresponding to the modules in the existing network configuration are respectively obtained, the existing network configuration rows can be respectively compared with the corresponding authority configuration rows, for example, the comparison is performed through Batmesh, so that the comparison result is obtained.
For example, the correspondence between the modules in the presence network configuration and the modules in the authority configuration may be determined first, and then the correspondence between the configuration rows of the corresponding modules may be determined.
If the current network configuration row b corresponds to the authority configuration row b, the two configuration rows can be compared to obtain a comparison result, so that the difference between the two configuration rows, including the difference between the parameters and the parameter values, can be clearly obtained. The parameter and the parameter value may be compared in a key-value (key-value) form, and may be converted into a predetermined form, such as an open configuration (OpenConfig) format, to facilitate peer-to-peer comparison.
In an embodiment of the present disclosure, for the authority configuration row obtained by rendering, the original configuration row before rendering may be compared with the current network configuration row to obtain a comparison result. That is, for the original configuration row with the corresponding parameter, the results before and after rendering can be compared respectively, thereby enriching the content of the comparison result.
In addition, in an embodiment of the present disclosure, after the comparison result is obtained, the comparison result may be further verified, and the verified comparison result is used as a final comparison result, and/or comparison result display information in a predetermined form is generated based on the obtained comparison result.
For example, after the comparison result is obtained in a certain comparison manner for the current network configuration row b and the corresponding authority configuration row b, whether the comparison result is correct or not may be checked in another comparison manner, and if the comparison result is correct, the comparison result may be used as the final required comparison result.
In addition, the specific form of the predetermined form is not limited. For example, the comparison result between each current network configuration row and the corresponding authoritative configuration row may be included, the comparison result between the original configuration row and the corresponding current network configuration row may be included, for example, the comparison result may include a key-value (i.e., a parameter and a parameter value) in an OpenConfig format, the comparison result may also include a key-value format defined in advance, and for example, each comparison result may be summarized and sorted, so that more intuitive and comprehensive comparison result information and the like may be obtained.
Through the processing, the accuracy of the obtained comparison result can be further improved, the display effect can be further improved, and the like.
For the difference obtained by comparison, the influence of the difference can be manually analyzed or automatically analyzed subsequently, and the current network configuration or the authority configuration can be corrected accordingly, and the like.
In practical application, a construction platform, a change platform, a routing inspection platform and the like can call the configuration comparison method disclosed by the disclosure to realize configuration comparison.
Taking an inspection platform as an example, fig. 2 is a timing control flowchart of the inspection platform-based configuration comparison method according to the present disclosure. Wherein, patrol and examine the platform and divide into and patrol and examine the platform front end and patrol and examine the platform rear end.
In step 201, the front end of the inspection platform obtains a configuration comparison task and a task execution period created by a user, and sends the task and the task execution period to the rear end of the inspection platform.
The configuration comparison task may include task parameters, such as identification information of the object to be compared (i.e., the current network configuration and the authoritative configuration to be compared).
A task execution cycle may refer to when the configuration alignment task is executed, such as 24 points per day.
In steps 202 to 203, when it is determined that the task execution period is reached, the rear end of the inspection platform executes configuration comparison service, and sends the task parameters to the configuration comparison service.
Optionally, the configuration comparison service may send a parameter acquisition request to the inspection platform backend, and accordingly, the inspection platform backend may send the task parameters to the configuration comparison service.
For example, the configuration comparison service may send a parameter obtaining request to the inspection platform backend through a parameter obtaining (Get _ control _ Params ()) function.
In step 204, the configuration comparison service generates a comparison result and returns the comparison result to the back end of the inspection platform.
That is, the configuration comparison service may generate a comparison result according to the configuration comparison method of the present disclosure, and may return the comparison result to the back end of the inspection platform.
For example, the configuration comparison service may return the comparison Result to the backend of the inspection platform through a comparison Result push (Post _ Config _ Compare _ Result _ to _ control ()) function.
In step 205, the rear end of the inspection platform pushes the comparison result to the front end of the inspection platform for display.
Accordingly, by means of the front end of the patrol platform, a user can conveniently and intuitively check the comparison result so as to perform subsequent processing according to the comparison result.
Fig. 3 is a schematic view of an interaction mode between the inspection platform and the configuration comparison service according to the present disclosure. As shown in fig. 3, the inspection platform may execute a configuration comparison service according to a configuration comparison task created by a user, a task execution period, and the like, and accordingly, the configuration comparison service may analyze an authoritative configuration to obtain original configuration rows corresponding to each module therein, may obtain parameter values of parameters corresponding to the original configuration rows, respectively, and obtain the authoritative configuration rows corresponding to the original configuration rows by rendering, based on the obtained parameter values and the original configuration rows, and may analyze an existing network configuration to obtain existing network configuration rows corresponding to each module therein, and may further compare each existing network configuration row with a corresponding authoritative configuration row to obtain a comparison result, and may return the comparison result to the inspection platform for display.
It is noted that while for simplicity of explanation, the foregoing method embodiments are described as a series of acts, those skilled in the art will appreciate that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that acts and modules are not required for the present disclosure. In addition, for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions in other embodiments.
In a word, by adopting the method disclosed by the disclosure, automatic configuration comparison can be realized, and the accuracy of a comparison result and the like are ensured.
The above is a description of embodiments of the method, and the embodiments of the apparatus are further described below.
Fig. 4 is a schematic diagram of a configuration alignment apparatus 400 according to an embodiment of the disclosure. As shown in fig. 4, includes: a first obtaining module 401, a second obtaining module 402 and a comparing module 403.
The first obtaining module 401 is configured to obtain authority configuration rows corresponding to each module in the authority configuration.
A second obtaining module 402, configured to obtain an existing network configuration row corresponding to each module in an existing network configuration, where the authoritative configuration row and the existing network configuration row are both configuration rows including complete information.
The comparing module 403 is configured to compare each current network configuration row with the corresponding authoritative configuration row, so as to obtain a comparison result.
By adopting the scheme of the device embodiment, the authoritative configuration row and the current network configuration row can be respectively obtained, and the corresponding configuration rows can be compared, so that the automatic configuration comparison is realized, and the accuracy of the comparison result is ensured by adopting a modularized configuration comparison mode.
According to the authority configuration, the authority configuration rows corresponding to the modules can be respectively obtained. In an embodiment of the present disclosure, the first obtaining module 401 may analyze the authoritative configuration, so as to obtain original configuration rows corresponding to each module therein, and then may perform the following processing for any original configuration row: and in response to the determination that the original configuration row has no corresponding parameter, taking the original configuration row as an authority configuration row, otherwise, acquiring the parameter value of the parameter corresponding to the original configuration row, and rendering to obtain the authority configuration row corresponding to the original configuration row based on the acquired parameter value and the original configuration row.
In an embodiment of the present disclosure, for each original configuration row, the first obtaining module 401 may respectively obtain a parameter value of a parameter corresponding to the original configuration row through topology information query, or may also obtain the parameter value of the parameter corresponding to the original configuration row from a parameter center.
In addition, the second obtaining module 402 may further obtain a current network configuration row corresponding to each module in the current network configuration, where each current network configuration row is a configuration row including parameter value information.
In an embodiment of the disclosure, the second obtaining module 402 may obtain an existing network configuration row corresponding to each module by analyzing the existing network configuration.
After the authoritative configuration rows corresponding to the modules in the authoritative configuration and the current network configuration rows corresponding to the modules in the current network configuration are respectively obtained, the comparison module 403 may compare the current network configuration rows with the corresponding authoritative configuration rows, so as to obtain a comparison result.
In an embodiment of the present disclosure, the comparison module 403 may further compare the original configuration line before rendering with the current network configuration line to obtain a comparison result.
In an embodiment of the present disclosure, after obtaining the comparison result, the comparison module 403 may further check the comparison result, and use the checked comparison result as a final comparison result, and/or generate comparison result display information in a predetermined form based on the obtained comparison result.
The specific working flow of the embodiment of the apparatus shown in fig. 4 may refer to the related description in the foregoing method embodiment, and is not repeated.
In a word, by adopting the device disclosed by the disclosure, automatic configuration comparison can be realized, and the accuracy and the like of comparison results are ensured.
The scheme disclosed by the disclosure can be applied to the field of artificial intelligence, in particular to the fields of data processing, cloud computing and the like. Artificial intelligence is a subject for studying a computer to simulate some thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning and the like) of a human, and has a hardware technology and a software technology, the artificial intelligence hardware technology generally comprises technologies such as a sensor, a special artificial intelligence chip, cloud computing, distributed storage, big data processing and the like, and the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge graph technology and the like.
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 5 shows a schematic block diagram of an electronic device 500 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs various methods and processes described above, such as the methods described in this disclosure. For example, in some embodiments, the methods described in this disclosure may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the methods described in the present disclosure may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured in any other suitable manner (e.g., by way of firmware) to perform the methods described in this disclosure.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the protection scope of the present disclosure.

Claims (15)

1. A configuration comparison method comprises the following steps:
respectively obtaining authority configuration rows corresponding to all modules in authority configuration;
respectively acquiring an existing network configuration row corresponding to each module in the existing network configuration, wherein the authority configuration row and the existing network configuration row are both configuration rows comprising complete information;
and comparing each current network configuration row with the corresponding authority configuration row respectively to obtain a comparison result.
2. The method of claim 1, wherein the obtaining authority configuration rows corresponding to modules in the authority configuration respectively comprises:
analyzing the authoritative configuration to obtain original configuration rows corresponding to the modules respectively;
aiming at any original configuration row, the following processing is respectively carried out: and in response to determining that the original configuration row has no corresponding parameter, taking the original configuration row as the authoritative configuration row, otherwise, obtaining a parameter value of the parameter corresponding to the original configuration row, and rendering to obtain the authoritative configuration row corresponding to the original configuration row based on the obtained parameter value and the original configuration row.
3. The method of claim 2, further comprising:
and comparing the original configuration row before rendering with the corresponding current network configuration row to obtain a comparison result.
4. The method of claim 2, wherein the obtaining parameter values of the parameters corresponding to the original configuration row comprises:
acquiring parameter values of parameters corresponding to the original configuration lines through topology information query;
or, acquiring the parameter value of the parameter corresponding to the original configuration line from the parameter center.
5. The method of claim 1, wherein the respectively obtaining the existing network configuration row corresponding to each module in the existing network configuration comprises:
and analyzing the current network configuration to obtain the current network configuration rows corresponding to the modules respectively.
6. The method of any of claims 1-5, further comprising:
after the comparison result is obtained, verifying the comparison result, and taking the verified comparison result as a final comparison result;
and/or generating comparison result display information in a preset form based on the obtained comparison result.
7. A configuration alignment apparatus comprising: the device comprises a first acquisition module, a second acquisition module and a comparison module;
the first acquisition module is used for respectively acquiring authority configuration rows corresponding to all the modules in the authority configuration;
the second obtaining module is configured to obtain an existing network configuration row corresponding to each module in an existing network configuration, where the authority configuration row and the existing network configuration row are both configuration rows including complete information;
and the comparison module is used for comparing each current network configuration row with the corresponding authority configuration row to obtain a comparison result.
8. The apparatus of claim 7, wherein,
the first obtaining module analyzes the authority configuration to obtain original configuration rows corresponding to the modules, and the following processing is respectively carried out for any original configuration row: and in response to determining that the original configuration row has no corresponding parameter, taking the original configuration row as the authoritative configuration row, otherwise, obtaining a parameter value of the parameter corresponding to the original configuration row, and rendering to obtain the authoritative configuration row corresponding to the original configuration row based on the obtained parameter value and the original configuration row.
9. The apparatus of claim 8, wherein,
the comparison module is further used for comparing the original configuration row before rendering with the corresponding current network configuration row to obtain a comparison result.
10. The apparatus of claim 8, wherein,
the first obtaining module obtains the parameter value of the parameter corresponding to the original configuration row through topology information query, or obtains the parameter value of the parameter corresponding to the original configuration row from a parameter center.
11. The apparatus of claim 7, wherein,
and the second acquisition module analyzes the current network configuration to obtain the current network configuration rows corresponding to the modules respectively.
12. The apparatus according to any one of claims 7 to 11,
the comparison module is further used for verifying the comparison result and taking the verified comparison result as a final comparison result;
and/or the comparison module is further used for generating comparison result display information in a preset form based on the obtained comparison result.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-6.
15. A computer program product comprising a computer program/instructions which, when executed by a processor, implement the method of any one of claims 1-6.
CN202210775417.XA 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium Active CN115361290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210775417.XA CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210775417.XA CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115361290A true CN115361290A (en) 2022-11-18
CN115361290B CN115361290B (en) 2024-02-27

Family

ID=84030440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210775417.XA Active CN115361290B (en) 2022-07-01 2022-07-01 Configuration comparison method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115361290B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075927A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Security configuration method and system for wireless network equipment
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
US20180074935A1 (en) * 2016-09-14 2018-03-15 International Business Machines Corporation Standardizing run-time and historical customer and test environments and workloads comparisons using specific sets of key platform data points
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
WO2018214928A1 (en) * 2017-05-26 2018-11-29 贵州白山云科技有限公司 Method and apparatus for locating resolution fault, computer readable storage medium thereof, and computer device
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN113687858A (en) * 2021-08-05 2021-11-23 深圳集智数字科技有限公司 Configuration file checking method and device, electronic equipment and storage medium
CN113824717A (en) * 2021-09-18 2021-12-21 北京天融信网络安全技术有限公司 Configuration checking method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075927A (en) * 2011-01-11 2011-05-25 中国联合网络通信集团有限公司 Security configuration method and system for wireless network equipment
CN102752138A (en) * 2012-06-30 2012-10-24 华为技术有限公司 Asynchronous configuration management method and network device
US20180074935A1 (en) * 2016-09-14 2018-03-15 International Business Machines Corporation Standardizing run-time and historical customer and test environments and workloads comparisons using specific sets of key platform data points
WO2018214928A1 (en) * 2017-05-26 2018-11-29 贵州白山云科技有限公司 Method and apparatus for locating resolution fault, computer readable storage medium thereof, and computer device
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN110300017A (en) * 2019-05-22 2019-10-01 北京百度网讯科技有限公司 Standard configuration generating means and method and network equipments configuration error correction device and method
CN113687858A (en) * 2021-08-05 2021-11-23 深圳集智数字科技有限公司 Configuration file checking method and device, electronic equipment and storage medium
CN113824717A (en) * 2021-09-18 2021-12-21 北京天融信网络安全技术有限公司 Configuration checking method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VADTHYA JAGAN等: "Continuous Input Current Configurations of Enhanced-Boost Quasi-Z-Source Inverters", 《2019 IEEE 16TH INDIA COUNCIL INTERNATIONAL CONFERENCE (INDICON)》 *
王金贺;彭伯庄;陈佳捷;: "基于特征选择算法的电网基线配置合规性检测方法", 电子设计工程, no. 15 *

Also Published As

Publication number Publication date
CN115361290B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN114861059A (en) Resource recommendation method and device, electronic equipment and storage medium
CN113452760A (en) Verification code synchronization method and device, electronic equipment and storage medium
CN114330221B (en) Score board implementation method, score board, electronic device and storage medium
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115687717A (en) Method, device and equipment for acquiring hook expression and computer readable storage medium
CN115102850B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN115437663A (en) Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle
CN113590217A (en) Function management method and device based on engine, electronic equipment and storage medium
CN113691403A (en) Topological node configuration method, related device and computer program product
CN113033179A (en) Knowledge acquisition method and device, electronic equipment and readable storage medium
CN113901094B (en) Data processing method, device, equipment and storage medium
CN113835893B (en) Data processing method, device, equipment, storage medium and program product
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN115686304A (en) Information acquisition method and device, electronic equipment and storage medium
CN113641639A (en) Log reporting method and device, electronic equipment and storage medium
CN115237420A (en) Code generation method and device, electronic equipment and computer readable storage medium
CN116319716A (en) Information processing method, no-service system, electronic device, and storage medium
CN113961405A (en) State switching instruction verification method and device, electronic equipment and storage medium
CN115757928A (en) Data query method and device, electronic equipment and storage medium
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN115883326A (en) Method and device for carrying out alarm pressure measurement based on JMeter simulation moving ring equipment
CN117033234A (en) Interface testing method, device, equipment and medium
CN114416678A (en) Resource processing method, device, equipment and storage medium

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