CN111984450A - Configuration fault positioning method and system based on mirror image binary comparison - Google Patents

Configuration fault positioning method and system based on mirror image binary comparison Download PDF

Info

Publication number
CN111984450A
CN111984450A CN202010827119.1A CN202010827119A CN111984450A CN 111984450 A CN111984450 A CN 111984450A CN 202010827119 A CN202010827119 A CN 202010827119A CN 111984450 A CN111984450 A CN 111984450A
Authority
CN
China
Prior art keywords
mirror image
configuration
natural language
knowledge base
binary 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.)
Pending
Application number
CN202010827119.1A
Other languages
Chinese (zh)
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.)
Chengdu DBAPPSecurity Co Ltd
Original Assignee
Chengdu DBAPPSecurity 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 Chengdu DBAPPSecurity Co Ltd filed Critical Chengdu DBAPPSecurity Co Ltd
Priority to CN202010827119.1A priority Critical patent/CN111984450A/en
Publication of CN111984450A publication Critical patent/CN111984450A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0769Readable error formats, e.g. cross-platform generic formats, human understandable formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a configuration fault positioning method and system based on binary comparison of mirror images. The invention sets up a configuration file knowledge base from a method of analyzing the difference of bottom layer mirror image data before and after a problem, decodes the difference data into human readable natural language, then compares and analyzes the natural language characters of the difference data with the natural language characters in the knowledge base, arranges the possibility according to the priority level, and an analyst gradually analyzes the possible configuration files according to the priority level, thereby quickly positioning configuration errors.

Description

Configuration fault positioning method and system based on mirror image binary comparison
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a configuration fault positioning method and system based on mirror image binary comparison.
Background
The usage scenarios of IT technologies become more and more complicated and large-scale, all IT application services involve the maintenance of a large number of configuration files, the configuration files are frequently written into different configuration parameters according to different usage scenarios, the parameters need to be used in cooperation with each other before a plurality of configuration files, if the parameters are modified by mistake to be not in line with the usage requirements of the whole scenario, the whole application service may be unavailable, and for a large-scale service used by a large number of people, serious economic loss may be brought.
At present, IT is very fast in development, various application services built based on IT are increasingly large and complex, hundreds of configuration files of an application need to be maintained and processed, the change of a configuration item in any one configuration file may cause a serious result that the whole application service is unavailable, and various problems such as misoperation/intentional destruction of personnel, io equipment hardware failure and the like may cause the problem that the configuration file is written into an incorrect configuration item.
At present, a relatively common method is to maintain information such as a configuration file to be maintained and a position path thereof, and directly maintain data characters used for natural language description, and compare the natural language characters of the configuration file before and after a problem occurs.
The main problems of the prior art are that a large amount of data such as the content and the position of the configuration file needs to be maintained, the maintenance logic is complex, and errors are easy to occur; and the confidence of the coverage of the file set itself, the files beyond the awareness of the maintenance personnel are easy to miss. Therefore, a general method for rapid localization and analysis of such problems is urgently needed to be proposed.
The invention provides a configuration fault positioning method and system based on mirror image binary comparison.
Disclosure of Invention
The invention aims to provide a configuration fault positioning method based on mirror image binary comparison, which only focuses on binary data of which the contents of a configuration file are mapped to a bottom layer and the differentiation of the binary data, data influencing configuration are inevitably stored in a disk, the data in the disk are inevitably involved in comparison as long as being stored, the possibility of missing does not exist, the logic for maintaining the processes is simple and effective, and the probability of errors hardly exists.
The invention also aims to provide a configuration fault positioning system based on the binary comparison of the mirror images, which is based on a method for analyzing the difference of bottom layer mirror image data before and after a problem, establishes a configuration file knowledge base, decodes the differential data into human readable natural language, then compares and analyzes the natural language characters of the secondary part of the differential data with the natural language characters in the knowledge base, arranges the possibility according to the priority level, and an analyst gradually analyzes possible configuration files according to the priority level, thereby quickly positioning configuration errors.
The invention is mainly realized by the following technical scheme: a configuration fault positioning method based on binary comparison of mirror images is characterized in that bottom layer mirror image data before and after a fault occurs are obtained, binary comparison is carried out to obtain a differential part, the differential part and upper and lower offset associated data of the differential part are decoded and restored into natural language symbols, and then fault positioning is achieved.
In order to better implement the invention, further, a configuration file knowledge base is established, and known configuration files are imported into the configuration file knowledge base; and sequencing the configuration files by taking the natural language symbols obtained by decoding as key words so as to accelerate fault matching and positioning.
In order to better realize the invention, further, after determining that the service is normally started and the core service can be used after checking, mirror image backup is immediately carried out and the time of mirror image creation is recorded; when the service is found to be abnormal, mirror image backup is immediately carried out and mirror image creation time is recorded.
The invention is mainly realized by the following technical scheme: a configuration fault positioning system based on mirror image binary comparison comprises a configuration file knowledge base, a data acquisition module, a data restoration module and a comparison module, wherein the data acquisition module is used for acquiring mirror image backups before and after a fault occurs; the restoration module is used for carrying out binary comparison on the mirror image file and decoding and restoring the differentiated part into a natural language symbol; the configuration file knowledge base is used for storing configuration files; the comparison module arranges the configuration files and the key field contents according to the priority, and accelerates the problem positioning based on natural language symbols.
The invention has the beneficial effects that:
(1) the invention does not need to care about the related maintenance information of the configuration file at all, only concerns about the binary data of which the content of the configuration file is mapped to the bottom layer and the differentiation of the binary data, the data influencing the configuration is necessarily stored in the disk, the data in the disk is necessarily involved in comparison as long as being stored, the possibility of missing does not exist, and the logic for maintaining the processes is simple and effective, and the chance of error hardly exists.
(2) The invention does not pay attention to how the upper file system organizes the configuration files, does not pay attention to information such as content and position of the files, directly compares binary data stored in disk images of the virtual machine before and after the problem, pays attention to a differentiated part firstly, and then restores the binary data into natural language characters, so that the problem is directly reached, and the production efficiency is improved.
(3) The method is based on the method of analyzing the difference of the bottom layer mirror image data before and after the problem, a configuration file knowledge base is established, the differential data is decoded into human readable natural language, then the natural language characters of the partial differential data are compared and analyzed with the natural language characters in the knowledge base, the possibility of the natural language characters is arranged according to the priority level, and an analyst gradually analyzes the possible configuration files according to the priority level, so that the configuration errors are quickly positioned.
Detailed Description
Example 1:
a configuration fault positioning method based on binary comparison of mirror images is characterized in that bottom layer mirror image data before and after a fault occurs are obtained, binary comparison is carried out to obtain a differential part, the differential part and upper and lower offset associated data of the differential part are decoded and restored into natural language symbols, and then fault positioning is achieved.
Establishing a configuration file knowledge base, and importing the known configuration files into the configuration file knowledge base; and sequencing the configuration files by taking the natural language symbols obtained by decoding as key words so as to accelerate fault matching and positioning.
Determining that the service is normally started each time, and immediately performing mirror image backup and recording the time of mirror image creation after checking that the core service can be used; when the service is found to be abnormal, mirror image backup is immediately carried out and mirror image creation time is recorded.
The invention deploys the application in the form of the virtual machine, thereby having the capability of acquiring the mirror image of the virtual machine at any time; and obtaining the virtual machine mirror image between the last time before and after the problem and carrying out binary comparison. And decoding the data of the differential part and the up-down deviation part to obtain the human scale natural language characters. And accumulating a configuration file knowledge base (natural language), comparing the keywords, arranging the possible problem configuration points according to the probability, and gradually checking from high to low.
The virtual machine and the physical machine are different in that a hypervisor capable of comprehensively controlling the virtual machine and various devices (including a disk) on the bottom layer virtualized by the virtual machine exists on the virtual machine, and the hypervisor can easily acquire the whole image information of the virtual machine, namely all relevant binary data of the virtual machine.
The so-called binary comparison is binary differentiation of data on disk images before and after a problem compared with the data on the disk images, and is also the most efficient comparison method for computers. All data stored/transmitted by a computer exist in a binary mode, and the data in the form conforms to the transmission and storage of magnetic/electric signals of computer hardware principles, but is not beneficial to human reading and understanding.
The computer can only process numbers, all information needs to be encoded into the digital information which can be processed by the computer before the computer processes, for example, a process of converting an English character string of pro = http into an ascii code number string of 11211411161104116116112 in a 'natural language symbol' can be simply understood as an encoding process, and a process of reducing the ascii code number string into the character string pro = http can be simply understood as decoding.
It should be noted here that english characters are few (as in the following ascii code table), so that 128 numbers in total can be covered by using a small number of codes (0-127), while chinese characters are many (3500 common chinese characters), and the coding mode is obviously different from english, but the principle is the same, so the details are not referred to here.
The natural language symbol refers to a language character symbol which can be understood by human, such as a common language of English/Chinese, for example, a configuration item of a certain configuration file has such a section: pro = http, pro is an abbreviation for protocol, pro = http, meaning that the communication protocol is configured as http protocol, at which point communication may fail if an attempt is made to communicate with the server using a non-http protocol.
For binary alignment:
taking the example of the character string pro = http, the storage of the character string in the disk is as follows:
01110000 01110010 01101111 00111101 01101000 01110100 01110100 01110000
then we introduce another string pro = htpp (e.g. a careless error-filled character) which is stored in disk as follows:
01110000 01110010 01101111 00111101 01101000 01110100 01110000 01110000
comparing the two strings of 01 codes according to bit bits, taking 1 if the same bit is the same, taking 0 if the same bit is different, and calculating the result as follows:
11111111 11111111 11111111 11111111 11111111 11111111 11111011 11111111
it can be seen that a 0 appears, indicating a change in the profile contents.
We see that the last but one byte (8 bits are one byte) is abnormal, then we decode the last but one byte of two bit strings participating in comparison first into natural language, they correspond to letter characters t and p respectively; only two letters of t and p are difficult to see the relevant semantic meaning of the associated configuration file, so that the bit strings before and after the two key points are further decoded until the two key points are restored to two natural language strings of pro = http and pro = htpp, and thus, a maintainer familiar with the configuration file can see the problem.
It can be seen that when a fine error trail is in hundreds of natural language characters, it is difficult to see at a glance in actual operation, and when we do not pay attention to how to encode in the upper layer, but only pay attention to bit difference and bit difference stored in the bottom layer, differentiation can be seen equally, and at this time, we pay attention to the natural language semantic meaning causing the error, and the efficiency is much higher.
We put pro's keyword into the knowledge base, and when finding the keyword during decoding, we will prompt the problem troubleshooting personnel, and the keyword exists in which configuration files, what the files have, how the keyword should be configured, and so on, thereby troubleshooting the problem more quickly and giving more physical activity to the computer to do.
The invention does not pay attention to how the upper file system organizes the configuration files, does not pay attention to information such as content and position of the files, directly compares binary data stored in disk images of the virtual machine before and after the problem, pays attention to a differentiated part firstly, and then restores the binary data into natural language characters, so that the problem is directly reached, and the production efficiency is improved.
Example 2:
a configuration fault positioning system based on mirror image binary comparison comprises a configuration file knowledge base, a data acquisition module, a data restoration module and a comparison module, wherein the data acquisition module is used for acquiring mirror image backups before and after a fault occurs; the restoration module is used for carrying out binary comparison on the mirror image file and decoding and restoring the differentiated part into a natural language symbol; the configuration file knowledge base is used for storing configuration files; the comparison module arranges the configuration files and the key field contents according to the priority, and accelerates the problem positioning based on natural language symbols.
The method is based on the method of analyzing the difference of the bottom layer mirror image data before and after the problem, a configuration file knowledge base is established, the differential data is decoded into human readable natural language, then the natural language characters of the partial differential data are compared and analyzed with the natural language characters in the knowledge base, the possibility of the natural language characters is arranged according to the priority level, and an analyst gradually analyzes the possible configuration files according to the priority level, so that the configuration errors are quickly positioned.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and all simple modifications and equivalent variations of the above embodiments according to the technical spirit of the present invention are included in the scope of the present invention.

Claims (4)

1. A configuration fault positioning method based on mirror image binary comparison is characterized in that bottom layer mirror image data before and after a fault occurs are obtained, binary comparison is carried out to obtain a differential part, the differential part and upper and lower offset associated data of the differential part are decoded and restored into natural language symbols, and then fault positioning is achieved.
2. The configuration fault positioning method based on the mirror image binary comparison as claimed in claim 1, wherein a configuration file knowledge base is established, and a known configuration file is imported into the configuration file knowledge base; and sequencing the configuration files by taking the natural language symbols obtained by decoding as key words so as to accelerate fault matching and positioning.
3. The configuration fault positioning method based on the binary comparison of the mirror image according to claim 1, wherein after the service is determined to be normally started and the core service is checked to be available, the mirror image backup is immediately performed and the time of creating the mirror image is recorded; when the service is found to be abnormal, mirror image backup is immediately carried out and mirror image creation time is recorded.
4. A configuration fault positioning system based on mirror image binary comparison is characterized by comprising a configuration file knowledge base, a data acquisition module, a data restoration module and a comparison module, wherein the data acquisition module is used for acquiring mirror image backups before and after a fault occurs; the restoration module is used for carrying out binary comparison on the mirror image file and decoding and restoring the differentiated part into a natural language symbol; the configuration file knowledge base is used for storing configuration files; the comparison module arranges the configuration files and the key field contents according to the priority, and accelerates the problem positioning based on natural language symbols.
CN202010827119.1A 2020-08-17 2020-08-17 Configuration fault positioning method and system based on mirror image binary comparison Pending CN111984450A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010827119.1A CN111984450A (en) 2020-08-17 2020-08-17 Configuration fault positioning method and system based on mirror image binary comparison

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010827119.1A CN111984450A (en) 2020-08-17 2020-08-17 Configuration fault positioning method and system based on mirror image binary comparison

Publications (1)

Publication Number Publication Date
CN111984450A true CN111984450A (en) 2020-11-24

Family

ID=73435660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010827119.1A Pending CN111984450A (en) 2020-08-17 2020-08-17 Configuration fault positioning method and system based on mirror image binary comparison

Country Status (1)

Country Link
CN (1) CN111984450A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529228A (en) * 2022-09-20 2022-12-27 浪潮思科网络科技有限公司 Fault positioning method, equipment and medium based on browser end

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529228A (en) * 2022-09-20 2022-12-27 浪潮思科网络科技有限公司 Fault positioning method, equipment and medium based on browser end

Similar Documents

Publication Publication Date Title
US20190171524A1 (en) Isolating the introduction of software defects in a dispersed storage network
US7743996B2 (en) System and method for data entry
EP2908254A1 (en) Data redundancy implementation method and device
CN110737806B (en) Global ID generation method and device for business entity
CN112100634A (en) Data information security protection method
CN110210228A (en) A kind of host equipment vulnerability scanning method and system
CN111708673A (en) Log data compression method, device, equipment and storage medium
CN111984450A (en) Configuration fault positioning method and system based on mirror image binary comparison
CN102567478A (en) Online fault verification in a file system
CN103797490A (en) Change-tolerant method of generating an identifier for a collection of assets in a computing environment using a secret sharing scheme
CN112988440A (en) System fault prediction method and device, electronic equipment and storage medium
CN107729172A (en) A kind of method for generating adjustment step by step daily record
CN112668023A (en) Database operation security detection method and device and operation system
CN117093475A (en) Test data generation method, system, server and computer readable storage medium
CN111475234B (en) Character string transmission method and device, computer and readable storage medium
JP2006099249A (en) Fault management device and fault management method
CN103902919A (en) Method and device for recovering login information
CN113779056A (en) Batch audit log processing method and device and computer equipment
CN110196793B (en) Log analysis method and device for plug-in database
CN108063742A (en) A kind of sensitive information provides and tracking and device
CN112527557A (en) Data recovery method, device and equipment and computer readable storage medium
CN115001833B (en) Login method and device
CN111259946A (en) Mnemonic word generating method, mnemonic word recovering method, equipment and storage medium
CN117520617B (en) Data information display method based on chart component
CN116841777A (en) Log record processing method, fault positioning method and related device

Legal Events

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