CN111193606A - Equipment configuration parameter comparison method and device, storage medium and computer equipment - Google Patents

Equipment configuration parameter comparison method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111193606A
CN111193606A CN201910875089.9A CN201910875089A CN111193606A CN 111193606 A CN111193606 A CN 111193606A CN 201910875089 A CN201910875089 A CN 201910875089A CN 111193606 A CN111193606 A CN 111193606A
Authority
CN
China
Prior art keywords
configuration parameter
configuration
equipment
information
comparison
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
CN201910875089.9A
Other languages
Chinese (zh)
Other versions
CN111193606B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910875089.9A priority Critical patent/CN111193606B/en
Publication of CN111193606A publication Critical patent/CN111193606A/en
Application granted granted Critical
Publication of CN111193606B publication Critical patent/CN111193606B/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
    • 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/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The application relates to a method, a device, a storage medium and a computer device for comparing device configuration parameters, wherein the method comprises the following steps: the method comprises the steps of obtaining configuration parameter information of equipment, extracting the configuration item information from the configuration parameter information, splitting the configuration parameter information according to the configuration item information to obtain candidate parameter sets corresponding to the equipment, respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment, respectively carrying out characteristic value operation on the configuration parameter sets corresponding to the equipment to obtain characteristic values of the configuration parameter sets corresponding to the equipment, and comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result. The scheme provided by the application can improve the configuration efficiency.

Description

Equipment configuration parameter comparison method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for comparing device configuration parameters, a storage medium, and a computer device.
Background
With the development of computer technology, a local area Network interconnection technology appears, and interconnection between different local area networks is generally realized by building a VPN (virtual private Network) channel. Currently, a commonly used local area network interconnection technology is an IPsec (Internet Protocol Security, Internet Security Protocol) VPN, which is a VPN technology that uses an IPsec Protocol to implement remote access, multiple algorithm parameters need to be configured for each device in the process of building the IPsec VPN, configuration parameter comparison is performed according to the multiple algorithm parameters, whether configuration is wrong or not is checked, and when the parameters of each device meet consistency, configuration can be completed to implement device interconnection. The traditional method for comparing configuration parameters according to multiple algorithm parameters needs to carry out human-computer interaction for multiple times, a computer displays the configuration parameters of equipment to a front-end display screen for a worker to check, the worker obtains a comparison result by checking and comparing the configuration parameters of the equipment, and the comparison result is uploaded to the computer.
However, different device interconnection implementation modes are very different, the configuration modes are many, and the conventional configuration parameter comparison mode takes a long time for comparison and inspection, so that the problem of low configuration efficiency exists.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a device configuration parameter comparison method, apparatus, storage medium, and computer device for solving the technical problem of low configuration efficiency.
A device configuration parameter comparison method comprises the following steps:
acquiring configuration parameter information of equipment;
extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment;
respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
respectively performing characteristic value operation on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment;
and comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result.
An apparatus for comparing device configuration parameters, comprising:
the acquisition module is used for acquiring the configuration parameter information of the equipment;
the splitting module is used for extracting configuration item information from the configuration parameter information, splitting the configuration parameter information according to the configuration item information and obtaining a candidate parameter set corresponding to the equipment;
the extraction module is used for respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
the characteristic value operation module is used for respectively performing characteristic value operation on the configuration parameter sets corresponding to the equipment to obtain the characteristic values of the configuration parameter sets corresponding to the equipment;
and the comparison module is used for comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of:
acquiring configuration parameter information of equipment;
extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment;
respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
respectively performing characteristic value operation on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment;
and comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result.
A computer device comprising a memory and a processor, the memory storing a computer program that when executed by the processor performs the steps of:
acquiring configuration parameter information of equipment;
extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment;
respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
respectively performing characteristic value operation on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment;
and comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result.
According to the equipment configuration parameter comparison method, the equipment configuration parameter comparison device, the storage medium and the computer equipment, the configuration parameter information is split and the field is extracted, the accurate configuration parameter set corresponding to the equipment can be obtained, the configuration parameter set corresponding to the equipment is subjected to characteristic value operation respectively, the characteristic value of the configuration parameter set corresponding to the equipment is obtained, the characteristic value of the configuration parameter set corresponding to the equipment is compared, the equipment parameter comparison result is obtained, the configuration parameter comparison of the equipment can be completed only by comparing the characteristic values of the configuration parameter set, the configuration parameter comparison process is simplified in the whole process, the configuration problem can be rapidly located according to the configuration parameter comparison result, and the configuration efficiency is improved.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of a method for comparing device configuration parameters;
FIG. 2 is a schematic flow chart diagram illustrating a method for device configuration parameter comparison in one embodiment;
FIG. 3 is a diagram illustrating device configuration parameters in one embodiment;
fig. 4 is a schematic flow chart illustrating a process of performing feature value operations on configuration parameter sets corresponding to devices in one embodiment;
FIG. 5 is a schematic flowchart of a device configuration parameter comparison method according to another embodiment;
FIG. 6 is a diagram of device configuration parameters in another embodiment;
FIG. 7 is a diagram illustrating device configuration parameters in yet another embodiment;
FIG. 8 is a diagram illustrating an exemplary embodiment of a method for comparing device configuration parameters;
FIG. 9 is a flowchart illustrating a method for comparing device configuration parameters according to yet another embodiment;
FIG. 10 is a block diagram showing the configuration of an apparatus configuration parameter comparison means in one embodiment;
FIG. 11 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a device configuration parameter comparison method in an embodiment. Referring to fig. 1, the device configuration parameter comparison method is applied to a device configuration parameter comparison system. The device configuration parameter comparison system includes a device 110 and a server 120. Device 110 and server 120 are connected via a network. The server 120 obtains configuration parameter information of the device 110, extracts configuration item information from the configuration parameter information, splits the configuration parameter information according to the configuration item information to obtain candidate parameter sets corresponding to the device 110, performs field extraction on the candidate parameter sets respectively according to a preset keyword library to obtain configuration parameter sets corresponding to the device 110, performs characteristic value operation on the configuration parameter sets corresponding to the device 110 to obtain characteristic values of the configuration parameter sets corresponding to the device, and compares the characteristic values of the configuration parameter sets corresponding to the device to obtain a device parameter comparison result. The device 110 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in FIG. 2, a device configuration parameter comparison method is provided. The embodiment is mainly illustrated by applying the method to the server 120 in fig. 1. Referring to fig. 2, the method for comparing device configuration parameters specifically includes the following steps S202 to S210.
Step S202, obtaining the configuration parameter information of the equipment.
The device refers to a device to be compared with configured parameters, and the configuration parameter information refers to parameter information for comparing whether the device to be compared is configured with errors. For example, when the device needs to perform the configuration parameter comparison, a configuration parameter comparison request carrying the configuration parameter information is sent to the server, and the server obtains the configuration parameter information of the device through the configuration parameter comparison request. For another example, as shown in fig. 3, the configuration parameter information may specifically be a configuration parameter screenshot, and the server may identify the required configuration parameter information from the configuration parameter screenshot through an image recognition algorithm. As another example, the image Recognition algorithm may specifically be an OCR (Optical Character Recognition) algorithm.
In one embodiment, obtaining configuration parameter information of a device includes:
receiving a configuration parameter comparison request sent by equipment, wherein the configuration parameter comparison request carries self configuration parameter information and equipment information of the comparison equipment;
and acquiring configuration parameter information of the comparison equipment according to the equipment information of the comparison equipment.
The configuration parameter comparison request is a request for requesting the server to compare the configuration parameters of the interconnected equipment. The configuration parameter comparison request carries the self configuration parameter information and the equipment information of the comparison equipment. The comparison device is a device which interconnects the device sending the configuration parameter comparison request. For example, after the parameter configuration is performed on the device and the comparison device, the configuration parameter comparison needs to be performed, and whether the configuration is wrong or not is detected, at this time, the device sends a configuration parameter comparison request to the server, and the server can obtain the configuration parameter information of the device itself and the device information of the comparison device from the configuration parameter comparison request, and obtain the configuration parameter information of the comparison device according to the device information of the comparison device. The device information refers to a device identifier of the comparison device. For example, the device information may specifically be an Identity Document (ID) of the comparison device.
Specifically, after receiving a configuration parameter comparison request sent by the device, the computer stores the configuration parameter information of the device in a preset database, queries the database according to the device information of the comparison device in the configuration parameter comparison request, obtains the configuration parameter information of the comparison device from the database when the configuration parameter information of the comparison device exists in the database, waits for the configuration parameter comparison request of the comparison device when the configuration parameter information of the comparison device does not exist in the database, and obtains the configuration parameter information of the comparison device according to the configuration parameter comparison request of the comparison device after receiving the configuration parameter comparison request of the comparison device. Because the device and the comparison device need to perform configuration parameter comparison to determine whether the configuration is wrong, a configuration parameter comparison request is sent to the computer.
The configuration parameter information of the configuration parameters is obtained by receiving the configuration parameter comparison request of the equipment, the comparison equipment is positioned according to the equipment information of the comparison equipment in the configuration parameter comparison request, the configuration parameter information of the comparison equipment is obtained, and the accurate obtaining of the configuration parameter information is realized.
And step S204, extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment.
The configuration item information refers to identification information corresponding to the configuration parameters, and is used for confirming which stage or category the configuration parameters belong to. For example, the configuration item information may specifically be a prefix, a suffix, and the like of the configuration parameter. For example, when device interconnection is implemented using Ipsec VPN, the configuration parameter assignable phases include an IKE (Internet Key Exchange) phase and an Ipsec phase, and the configuration parameter assignable class includes an IP parameter. For another example, in the configuration parameter information "encryption-algorithm 3 des-cbc", the configuration item information of the configuration parameter 3des-cbc is encryption-algorithm. For another example, in the configuration parameter information "encryption 3 des", the configuration item information of the configuration parameter 3des is encryption. The candidate parameter set refers to a set of configuration item information and configuration parameters corresponding thereto belonging to the same phase or category. For example, when device interconnection is implemented using Ipsec VPN, the candidate parameter set may specifically be a set of IKE phases, a set of Ipsec phases, an IP parameter set, and the like.
In one embodiment, extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the device includes:
acquiring a target configuration item information set corresponding to each candidate parameter set, and extracting configuration item information from the configuration parameter information according to each target configuration item information in the target configuration item information set;
and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment.
A target configuration item information set refers to a set that includes target configuration item information corresponding to a candidate parameter set. The target configuration item information is configuration item information corresponding to the candidate parameter set and belonging to a stage or category corresponding to the candidate parameter set. For example, when the phase corresponding to the candidate parameter set is an IKE phase, the target configuration item information may specifically be "encryption-algorithm", "authentication-algorithm", "dh", "sa duration", and the like.
Specifically, the server acquires a target configuration item information set corresponding to each candidate parameter set, matches configuration parameter information according to the target configuration item information in the target configuration item information set, extracts the configuration item information from the configuration parameter information, can accurately extract the configuration item information from the configuration parameter information in this way, and further splits the configuration parameter information according to the configuration item information, that is, the configuration parameter information belonging to the same stage or category is summarized together according to the configuration item information to obtain the candidate parameter set corresponding to the device.
And step S206, respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment.
The preset keyword library is a database comprising a plurality of keywords corresponding to the configuration parameters. The keywords refer to fields included in configuration parameters of the same configuration item of different devices. For example, if the configuration parameter information "encryption-algorithm 3 des-cbc" exists in the device a and the configuration parameter information "encryption 3 des" exists in the device B, the key of the configuration parameter of the same configuration item encryption of the device a and the device B is 3 des. The field extraction refers to matching the candidate parameter set according to keywords in a preset keyword library, obtaining configuration parameters corresponding to the keywords from the candidate parameter set, and obtaining a corresponding configuration parameter set of the equipment. The configuration parameter set is a set including a plurality of configuration parameters, the configuration parameter set corresponds to the candidate parameter sets, and the configuration parameter sets corresponding to the candidate parameter sets can be obtained by field extraction.
In one embodiment, the field extraction is respectively performed on the candidate parameter sets according to a preset keyword library, and obtaining the configuration parameter set corresponding to the device includes:
acquiring a target keyword set corresponding to each candidate parameter set from a preset keyword library;
and matching the corresponding candidate parameter set according to each target keyword in the target keyword set to obtain the configuration parameter set corresponding to the equipment.
The target keyword set refers to a keyword set corresponding to a stage or a type corresponding to the candidate parameter set, that is, a keyword set corresponding to a configuration item included in the corresponding stage or type. For example, when the candidate parameter set is an IP parameter set, the key may specifically be an IP address. When the candidate parameter set is the parameter set of the IKE phase, the key may specifically be 3des, etc. A set of configuration parameters refers to a set of configuration parameters of a device.
Specifically, the server matches the corresponding candidate parameter set according to each target keyword, and a manner of obtaining the configuration parameter set corresponding to the device is as follows: and the server matches the configuration parameter information in the corresponding candidate parameter set according to each target keyword, and screens out fields with the similarity of each target keyword being greater than a preset similarity threshold value from the configuration parameter information in the candidate parameter set to obtain the configuration parameter set corresponding to the equipment. For example, the target keywords correspond to configuration items, and different configuration items include different target keywords. During matching, the server determines the configuration item information in the configuration parameter information, and then matches the section of configuration parameter information directly according to the target keyword corresponding to the configuration item, so that rapid matching is realized.
In this way, the corresponding candidate parameter set is matched according to each target keyword in the target keyword set, and the configuration parameter set corresponding to the equipment can be accurately obtained, so that comparison can be performed according to the configuration parameter set, and a guarantee is provided for improving configuration efficiency.
Step S208, respectively performing characteristic value operation on the configuration parameter sets corresponding to the devices to obtain characteristic values of the configuration parameter sets corresponding to the devices.
The eigenvalue algorithm is an algorithm that can map a configuration parameter set to a fixed-length output value, and the eigenvalue of the configuration parameter set is an output value that maps a configuration parameter set to a fixed length. For example, the server may map the set of configuration parameters to a fixed length output value through a message digest algorithm. When the number of the configuration parameter sets corresponding to the device is multiple, the server performs characteristic value operation on each configuration parameter set respectively to obtain the characteristic value of each configuration parameter set.
In one embodiment, the performing the feature value operation on the configuration parameter sets corresponding to the devices respectively to obtain the feature values of the configuration parameter sets corresponding to the devices includes:
acquiring an IP configuration parameter set of equipment;
IP parameters of the same parameter types in the IP configuration parameter set are superposed to obtain an updated IP configuration parameter set corresponding to the equipment;
and performing characteristic value operation on the updated IP configuration parameter set according to a preset characteristic value algorithm to obtain a characteristic value corresponding to the IP configuration parameter set of the equipment.
The IP configuration parameter set refers to configuration parameters related to IP. For example, the IP configuration parameter set specifically includes a home IP, a remote IP, a home encryption network segment, a remote encryption network segment, and the like. The parameter category refers to a parameter type referred to by the IP parameter, for example, the parameter category may specifically be a device IP address, a network segment address, and the like. For example, the home IP and the remote IP belong to the same parameter category, and the home encryption network segment and the remote encryption network segment belong to the same parameter category. For another example, the IP parameters overlapping the same parameter types in each IP configuration parameter set may specifically be overlapping the home IP and the remote IP. For another example, the IP parameters overlapping the same parameter types in each IP configuration parameter set may specifically be overlapping a home encryption network segment and a remote encryption network segment. Updating the IP configuration parameter set refers to including the set of superimposed IP parameters. For example, the updated IP configuration parameter set includes an IP value obtained by superimposing the home IP and the remote IP, and a network segment value obtained by superimposing the home encryption network segment and the remote encryption network segment.
Because the local IP, the remote IP, the local encryption network segment, and the remote encryption network segment in the IP parameter set have directionality, they need to be added before feature value operation, so as to obtain accurate and comparable feature values, and then compare them according to the feature values. For another example, when it is necessary to interconnect the device a and the device B, the IP address of the a end is: 1.1.1.1, when the IP address of B terminal is 2.2.2.2, the IP configuration parameter for device a is AB, i.e. the IP of home terminal is 1.1.1.1 obtained at device a, the IP of far end is 2.2.2.2, and the IP configuration parameter for device B is BA, i.e. the IP of home terminal is 2.2.2.2 obtained at device B, the IP of far end is 1.1.1.1, and the IP address is digital, so that the same result can be obtained by adding the IP of home terminal and the IP of far end, i.e. the result of both device a and device B is 3.3.3.3. By the method, the comparison accuracy of the configuration parameters can be improved, so that the configuration efficiency is improved and the guarantee is improved.
In one embodiment, the performing the feature value operation on the configuration parameter sets corresponding to the devices respectively to obtain the feature values of the configuration parameter sets corresponding to the devices includes:
and respectively carrying out characteristic value operation on the configuration parameter set corresponding to the equipment according to a preset message digest algorithm to obtain the characteristic value of the configuration parameter set corresponding to the equipment.
The message digest algorithm is an encryption algorithm with a fixed output value length and has irreversibility. The method is mainly characterized in that a key is not needed in the encryption process, encrypted data cannot be decrypted, the same ciphertext can be obtained only by inputting the same plaintext data and using the same message digest algorithm, namely, as long as the input messages are different, digest messages generated after the input messages are digested are necessarily different, but the same input must generate the same output, only forward message digest can be performed, any message cannot be recovered from the digest, and even any information related to the original information cannot be found at all. For example, as shown in fig. 4, when the device interconnection is implemented by using Ipsec VPN, the server may calculate MD5 strings corresponding to a configuration parameter set in IKE phase, a configuration parameter set in Ipsec phase, and an IP parameter set according to MD5(Message Digest) algorithm.
By the method, the characteristic values of the parameter set can be accurately configured, and then comparison is performed according to the characteristic values, so that guarantee is provided for improving configuration efficiency.
Step S210, comparing the characteristic values of the configuration parameter sets corresponding to the devices to obtain a device parameter comparison result.
The characteristic value of the configuration parameter set corresponding to the comparison equipment refers to the characteristic value of the configuration parameter set of the comparison equipment. When there are multiple corresponding configuration parameter sets in two devices, the feature values of the corresponding configuration parameter sets need to be compared respectively. The device parameter comparison result comprises comparison passing and comparison failing. The comparison is passed, that is, the configuration of every two devices meets the requirement, so that interconnection can be realized, and the comparison is not passed, that is, the configuration of every two devices does not meet the requirement, so that interconnection cannot be realized.
Specifically, after the device parameter comparison result is obtained, the server can locate the configuration problem according to the configuration parameter comparison result, and push the configuration parameter comparison instruction information carrying the configuration problem to the device. The step of positioning the configuration problem according to the comparison result of the configuration parameters refers to a step of positioning the configuration error according to the comparison result of the configuration parameters. Since the configuration parameter set corresponds to the candidate parameter set, and the candidate parameter set is a set composed of the configuration item information belonging to the same stage or category and the configuration parameters corresponding to the configuration item information, the configuration parameter comparison result obtained according to the feature values of the configuration parameter set can be used for positioning the stage where the configuration error occurs. For example, when comparing the feature values of two devices, if the feature values of the three configuration parameter sets of the device a are X, Y, Z and the feature values of the three corresponding configuration parameter sets of the device B are X, Y, M, the result of the comparison between the device a and the device B is determined as a failure of the comparison, and the failure is determined as a parameter configuration error at the stage corresponding to the feature value Z and the feature value M.
In an embodiment, as shown in fig. 5, comparing the feature values of the configuration parameter sets corresponding to the devices to obtain the device parameter comparison result includes steps S502 to S504.
Step S502, comparing the characteristic values of the configuration parameter sets corresponding to every two devices;
step S504, when the feature values of the configuration parameter sets corresponding to every two devices are the same, the comparison result of the device configuration parameters is obtained and is passed.
The server randomly selects the characteristic values of the configuration parameter sets corresponding to the two devices from the plurality of devices to compare, and the device configuration parameter comparison results of the two devices can be obtained by comparing the characteristic values of the corresponding configuration parameter sets. When each pair of devices includes a plurality of corresponding configuration parameter sets, the feature values of the configuration parameter sets are compared respectively. And when the characteristic values of the configuration parameter sets corresponding to every two devices are the same, obtaining a comparison result of the device configuration parameters as a comparison pass. For example, when comparing the feature values of two devices, if the feature values of the three configuration parameter sets of the device a are X, Y, Z and the feature values of the three corresponding configuration parameter sets of the device B are X, Y, Z, the comparison result of the device a and the device B is passed through by comparing the feature values.
As shown in fig. 3, 6, and 7, the configuration diagrams of three different devices are shown, and it can be seen from fig. 3, 6, and 7 that the different devices are not much the same in interconnection implementation and have a plurality of configuration modes, so that the conventional configuration parameter comparison method takes a long time to perform comparison and check, and has a problem of low configuration efficiency. According to the equipment configuration parameter comparison method, the accurate configuration parameter set corresponding to the equipment can be obtained by splitting and extracting the field of the configuration parameter information, the characteristic value operation is respectively carried out on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment, the characteristic value of the configuration parameter set corresponding to the equipment is compared to obtain the equipment parameter comparison result, the configuration parameter comparison of the equipment can be completed only by comparing the characteristic values of the configuration parameter set, the configuration parameter comparison process is simplified in the whole process, the configuration problem can be rapidly located according to the configuration parameter comparison result, and the configuration efficiency is improved.
In an embodiment, the application scenario of fig. 8 is taken as an example to explain the device configuration parameter comparison method of the present application.
After the device 1, the device 2, the device 3, and the device 4 complete parameter configuration, first, the server obtains configuration parameter information of each device, obtains a target configuration item information set corresponding to a candidate parameter set at an IKE stage, a candidate parameter set at an IPSEC stage, and a candidate parameter set of other parameters, extracts configuration item information from the configuration parameter information of each device according to each target configuration item information in the target configuration item information set, and splits the configuration parameter information according to the configuration item information to obtain the candidate parameter set at the IKE stage, the candidate parameter set at the IPSEC stage, and the candidate parameter set of other parameters corresponding to each device. Then, the server obtains a target keyword set corresponding to each candidate parameter set from a preset keyword library, and matches the corresponding candidate parameter set with each target keyword in the target keyword set to obtain a configuration parameter set of an IKE stage, a configuration parameter set of an IPSEC stage, and configuration parameter sets of other parameters corresponding to the device. And finally, the server respectively performs characteristic value operation on each configuration parameter set corresponding to the equipment to obtain character strings of each configuration parameter set corresponding to the equipment, compares the characteristic values of each configuration parameter set corresponding to the equipment, and obtains the comparison result of the equipment configuration parameters of any two pieces of equipment as comparison pass when the characteristic values of each configuration parameter set corresponding to the two pieces of equipment are the same.
In one embodiment, as shown in fig. 9, the method for comparing configuration parameters of devices in the present application is described by a most specific embodiment. The method includes steps S902 to S916 as follows.
Step S902, obtaining configuration parameter information of the equipment;
step S904, acquiring a target configuration item information set corresponding to each candidate parameter set, and extracting configuration item information from the configuration parameter information according to each target configuration item information in the target configuration item information set;
step S906, according to the configuration project information, splitting the configuration parameter information to obtain a candidate parameter set corresponding to the equipment;
step 908, obtaining a target keyword set corresponding to each candidate parameter set from a preset keyword library;
step S910, matching the corresponding candidate parameter set according to each target keyword in the target keyword set to obtain a configuration parameter set corresponding to the equipment;
step S912, respectively performing characteristic value operation on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment;
step S914, comparing the characteristic values of the configuration parameter sets corresponding to the two devices;
in step S916, when the feature values of the configuration parameter sets corresponding to two devices are the same, the device configuration parameter comparison result is obtained as a pass comparison.
FIG. 9 is a flowchart illustrating a method for comparing device configuration parameters according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 9 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 10, in one embodiment, a device configuration parameter comparison apparatus is provided. The device configuration parameter comparison device comprises an acquisition module 1002, a splitting module 1004, an extraction module 1006, a characteristic value operation module 1008 and a comparison module 1010.
The obtaining module 1002 is configured to obtain configuration parameter information of a device.
In an embodiment, the obtaining module 1002 includes a receiving unit, where the receiving unit is configured to receive a configuration parameter comparison request sent by a device, where the configuration parameter comparison request carries self configuration parameter information and device information of a comparison device, and obtains the configuration parameter information of the comparison device according to the device information of the comparison device.
The splitting module 1004 is configured to extract configuration item information from the configuration parameter information, split the configuration parameter information according to the configuration item information, and obtain a candidate parameter set corresponding to the device.
In one embodiment, the splitting module 1004 includes an information splitting unit, and the information splitting unit is configured to obtain a target configuration item information set corresponding to each candidate parameter set, and extract configuration item information from the configuration parameter information according to each target configuration item information in the target configuration item information set. And splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment.
The extracting module 1006 is configured to perform field extraction on the candidate parameter sets according to a preset keyword library, so as to obtain configuration parameter sets corresponding to the devices.
In an embodiment, the extracting module 1006 includes a field extracting unit, where the field extracting unit is configured to obtain a target keyword set corresponding to each candidate parameter set from a preset keyword library, and obtain a configuration parameter set corresponding to the device according to matching of each target keyword in the target keyword set with the corresponding candidate parameter set.
The characteristic value operation module 1008 is configured to perform characteristic value operations on the configuration parameter sets corresponding to the devices, respectively, to obtain characteristic values of the configuration parameter sets corresponding to the devices.
In an embodiment, the eigenvalue calculation module 1008 comprises an IP configuration parameter calculation unit, and the IP configuration parameter calculation unit is configured to obtain an IP configuration parameter set of the device, superimpose IP parameters of the same parameter type in the IP configuration parameter set to obtain an updated IP configuration parameter set corresponding to the device, and perform eigenvalue calculation on the updated IP configuration parameter set according to a preset eigenvalue algorithm to obtain an eigenvalue corresponding to the IP configuration parameter set of the device.
In one embodiment, the eigenvalue calculation module 1008 comprises a message digest calculation unit, and the message digest calculation unit is configured to perform eigenvalue calculation on the configuration parameter sets corresponding to the devices according to a preset message digest algorithm, respectively, to obtain eigenvalues of the configuration parameter sets corresponding to the devices.
The comparison module 1010 is configured to compare the feature values of the configuration parameter sets corresponding to the devices to obtain a device parameter comparison result.
In an embodiment, the comparing module 1010 includes a comparing unit, and the comparing unit is configured to compare feature values of the configuration parameter sets corresponding to two devices, and when the feature values of the configuration parameter sets corresponding to two devices are the same, the device configuration parameter comparison result is obtained as a comparison pass.
According to the device configuration parameter comparison device, the configuration parameter set corresponding to the accurate device can be obtained by splitting and extracting the field of the configuration parameter information, the configuration parameter set corresponding to the device is subjected to characteristic value operation respectively to obtain the characteristic value of the configuration parameter set corresponding to the device, the characteristic value of the configuration parameter set corresponding to the device is compared to obtain the device parameter comparison result, the configuration parameter comparison of the device can be completed only by comparing the characteristic values of the configuration parameter set, the configuration parameter comparison process is simplified in the whole process, the configuration problem can be rapidly positioned according to the configuration parameter comparison result, and the configuration efficiency is improved.
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the server 120 in fig. 1. As shown in fig. 11, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program, which when executed by the processor, causes the processor to implement the device configuration parameter comparison method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the device configuration parameter comparison method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the device configuration parameter comparison apparatus provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 11. The memory of the computer device may store various program modules constituting the device configuration parameter comparison apparatus, such as an acquisition module, a splitting module, an extraction module, a feature value operation module, and a comparison module shown in fig. 10. The computer program constituted by the program modules causes the processor to execute the steps of the device configuration parameter comparison method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 11 may execute the step of acquiring the configuration parameter information of the device through an acquisition module in the device configuration parameter comparison apparatus shown in fig. 10. The computer equipment can extract the configuration item information from the configuration parameter information through the splitting module, and split the configuration parameter information according to the configuration item information to obtain the candidate parameter set corresponding to the equipment. The computer equipment can perform field extraction on the candidate parameter sets respectively according to the preset keyword library through the extraction module to obtain the configuration parameter sets corresponding to the equipment. The computer equipment can perform characteristic value operation on the configuration parameter set corresponding to the equipment through the characteristic value operation module to obtain the characteristic value of the configuration parameter set corresponding to the equipment. The computer equipment can execute the comparison of the characteristic values of the configuration parameter set corresponding to the equipment through the comparison module to obtain an equipment parameter comparison result.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, causing the processor to perform the steps of the device configuration parameter comparison method described above. Here, the steps of the device configuration parameter comparison method may be the steps of the device configuration parameter comparison methods of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to perform the steps of the above-described device configuration parameter comparison method. Here, the steps of the device configuration parameter comparison method may be the steps of the device configuration parameter comparison methods of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A device configuration parameter comparison method comprises the following steps:
acquiring configuration parameter information of equipment;
extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment;
respectively extracting fields of the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
respectively carrying out characteristic value operation on the configuration parameter set corresponding to the equipment to obtain the characteristic value of the configuration parameter set corresponding to the equipment;
and comparing the characteristic values of the configuration parameter set corresponding to the equipment to obtain an equipment parameter comparison result.
2. The method of claim 1, wherein the obtaining configuration parameter information of the device comprises:
receiving a configuration parameter comparison request sent by equipment, wherein the configuration parameter comparison request carries self configuration parameter information and equipment information of the comparison equipment;
and acquiring configuration parameter information of the comparison equipment according to the equipment information of the comparison equipment.
3. The method of claim 1, wherein the extracting configuration item information from the configuration parameter information, and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to a device comprises:
acquiring a target configuration item information set corresponding to each candidate parameter set, and extracting configuration item information from the configuration parameter information according to each target configuration item information in the target configuration item information set;
and splitting the configuration parameter information according to the configuration item information to obtain a candidate parameter set corresponding to the equipment.
4. The method of claim 1, wherein the performing field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to devices comprises:
acquiring a target keyword set corresponding to each candidate parameter set from a preset keyword library;
and matching the corresponding candidate parameter set according to each target keyword in the target keyword set to obtain a configuration parameter set corresponding to the equipment.
5. The method according to claim 1, wherein the performing the characteristic value operations on the configuration parameter sets corresponding to the devices respectively to obtain the characteristic values of the configuration parameter sets corresponding to the devices comprises:
acquiring an IP configuration parameter set of equipment;
superposing the IP parameters of the same parameter category in the IP configuration parameter set to obtain an updated IP configuration parameter set corresponding to the equipment;
and performing characteristic value operation on the updated IP configuration parameter set according to a preset characteristic value algorithm to obtain a characteristic value corresponding to the IP configuration parameter set of the equipment.
6. The method according to claim 1, wherein the performing the characteristic value operations on the configuration parameter sets corresponding to the devices respectively to obtain the characteristic values of the configuration parameter sets corresponding to the devices comprises:
and respectively carrying out characteristic value operation on the configuration parameter set corresponding to the equipment according to a preset message digest algorithm to obtain the characteristic value of the configuration parameter set corresponding to the equipment.
7. The method according to any one of claims 1 to 6, wherein obtaining the device parameter comparison result by comparing the feature values of the configuration parameter sets corresponding to the devices comprises:
comparing the characteristic values of the configuration parameter sets corresponding to every two devices;
and when the feature values of the configuration parameter sets corresponding to the two devices are the same, obtaining a comparison result of the device configuration parameters as a comparison pass.
8. An apparatus for comparing device configuration parameters, the apparatus comprising:
the acquisition module is used for acquiring the configuration parameter information of the equipment;
the splitting module is used for extracting configuration item information from the configuration parameter information, splitting the configuration parameter information according to the configuration item information and obtaining a candidate parameter set corresponding to the equipment;
the extraction module is used for respectively carrying out field extraction on the candidate parameter sets according to a preset keyword library to obtain configuration parameter sets corresponding to the equipment;
the characteristic value operation module is used for respectively performing characteristic value operation on the configuration parameter sets corresponding to the equipment to obtain characteristic values of the configuration parameter sets corresponding to the equipment;
and the comparison module is used for comparing the characteristic values of the configuration parameter sets corresponding to the equipment to obtain an equipment parameter comparison result.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN201910875089.9A 2019-09-17 2019-09-17 Equipment configuration parameter comparison method and device, storage medium and computer equipment Active CN111193606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910875089.9A CN111193606B (en) 2019-09-17 2019-09-17 Equipment configuration parameter comparison method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875089.9A CN111193606B (en) 2019-09-17 2019-09-17 Equipment configuration parameter comparison method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111193606A true CN111193606A (en) 2020-05-22
CN111193606B CN111193606B (en) 2021-12-07

Family

ID=70709054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875089.9A Active CN111193606B (en) 2019-09-17 2019-09-17 Equipment configuration parameter comparison method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111193606B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342562A (en) * 2021-06-22 2021-09-03 平安普惠企业管理有限公司 System configuration checking method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684814A (en) * 2012-09-04 2014-03-26 中兴通讯股份有限公司 Method and device for comparing data of communication system
CN105871869A (en) * 2016-04-28 2016-08-17 湖南科技学院 Anonymous bidirectional authentication method in mobile social network based on single hash function and false identity
CN109492197A (en) * 2018-09-18 2019-03-19 深圳壹账通智能科技有限公司 The file information comparison method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684814A (en) * 2012-09-04 2014-03-26 中兴通讯股份有限公司 Method and device for comparing data of communication system
CN105871869A (en) * 2016-04-28 2016-08-17 湖南科技学院 Anonymous bidirectional authentication method in mobile social network based on single hash function and false identity
CN109492197A (en) * 2018-09-18 2019-03-19 深圳壹账通智能科技有限公司 The file information comparison method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342562A (en) * 2021-06-22 2021-09-03 平安普惠企业管理有限公司 System configuration checking method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111193606B (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN109492983B (en) Electronic seal signing method, device, equipment and medium based on block chain intelligent contract
CN109788032B (en) Method and device for acquiring mirror image file, computer equipment and storage medium
CN110866198B (en) Static resource caching method, system, device, computer equipment and storage medium
CN111563365B (en) Method and device for processing modification information of test standard worksheet and computer equipment
CN110135129B (en) Code segment protection method and device, computer equipment and storage medium
CN110727949B (en) Data storage method and device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN110602168B (en) Data synchronization method and device, computer equipment and storage medium
CN111310195A (en) Security vulnerability management method, device, system, equipment and storage medium
CN110768784A (en) Password transmission method, device, computer equipment and storage medium
CN111193606B (en) Equipment configuration parameter comparison method and device, storage medium and computer equipment
CN110597820A (en) Block chain based information processing method and device, storage medium and equipment
CN110990410B (en) Information searching method and device in block chain, storage medium and computer equipment
CN108460116B (en) Search method, search device, computer equipment, storage medium and search system
CN112862455A (en) Test execution work order generation method and device, computer equipment and storage medium
CN110908801B (en) Data processing method and device based on block chain, computer equipment and storage medium
CN108848165B (en) Service request processing method and device, computer equipment and storage medium
CN114124469B (en) Data processing method, device and equipment
CN110460585B (en) Equipment identity identification method and device, computer equipment and storage medium
CN110580757B (en) Access control equipment opening method and device based on graphic code and storage medium
CN114239004A (en) Electronic signature generation method and device, computer equipment and storage medium
CN114745173A (en) Login verification method, login verification device, computer equipment, storage medium and program product
CN112632588A (en) Text encryption method and device
CN114928551B (en) System configuration method, device and storage medium
CN110598477A (en) Block chain based information processing method and device, storage medium and equipment

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