High-fault-tolerance two-wire bus control system based on hot backup and adaptive diagnosis

By using hot backup and adaptive diagnostic technology in the dual-wire bus control system, the incremental and global backup of single-quantity data is solved, and the problem that traditional systems cannot recover quickly when server failure is achieved is achieved, and high fault tolerance and efficient data recovery are achieved.

CN119621429AInactive Publication Date: 2025-03-14YANGZHOU POLYTECHNIC INST

Patent Information

Application Number
CN202411719530.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional dual-machine hot standby control system cannot meet the requirements of high fault tolerance, bus time certainty, multi-redundancy, high bandwidth and other indicators, especially when there is a problem with a server, it is impossible to quickly switch and restore the data processing process.

Method used

A high fault-tolerant dual-wire bus control system based on hot backup and adaptive diagnosis is adopted to simulate and analyze the single-quantity data in a sequence through the server one-to-server data, perform incremental and global backups, and automatically switch and restore backup data when there is a problem with server two.

Benefits of technology

It realizes that when there is a problem with the server, it quickly switches and restores the data processing process, while taking into account the recovery speed and the memory value occupied by the backup data to achieve a balanced effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621429A_ABST
    Figure CN119621429A_ABST
Patent Text Reader

Abstract

The invention discloses a high-fault-tolerance double-line bus control system based on hot backup and self-adaptive diagnosis, and relates to the technical field of double-line bus control, sequence simulation analysis is carried out on single data through a server I, so that incremental backup is carried out on part of the single data, global backup is carried out on the remaining part of the single data, and thus the reliability of the single data is improved. The backup data is stored in the distributed storage unit, the recovery speed and the size of the memory value occupied by the backup data can be considered in the backup mode, and a balance degree is taken from the recovery speed and the size of the memory value occupied by the backup data for operation; meanwhile, by means of analysis on the backup data, the size of the backup data can be further compressed, and the backup data can be recovered as soon as possible when needing to be recovered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of two-wire control, in particular to a high-fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis. Background Art

[0002] The traditional standard solution for dual-machine hot standby is dual-machine hot standby based on storage sharing. Two servers are used, and a shared storage device is used to ensure data continuity after state switching. Once the host fails, the backup machine immediately starts the relevant database service or user application.

[0003] For example, Chinese patent CN105863851A discloses a dual-machine hot backup electronic speed regulator dual-coil hot redundant actuator switching control method. A dual-machine hot backup electronic speed regulator dual-coil hot redundant actuator switching control method, including a dual-machine hot backup electronic speed regulator composed of: speed sensor 1, speed sensor 2, controller A, controller B, CAN1 and CAN2 communication buses, dual-coil proportional solenoid actuator, coil 1 drive and coil 2 drive, the controller A collects the speed through the speed sensor 1 and controls the drive coil 1, the controller B collects the speed through the speed sensor 2 and controls the drive coil 2; the CAN1 and CAN2 realize communication and data sharing between the two machines; coil 1 and coil 2 act independently to complete the control function. The dual-machine hot backup electronic speed regulator ensures that the diesel engine can run smoothly and continuously without stopping in the event of a single-machine system failure, thereby improving the reliability of the electronic speed regulator.

[0004] Moreover, the traditional control system architecture bus cannot meet the requirements of bus time determinism, multi-redundancy high fault tolerance, combinability, inheritability, high bandwidth and other indicators. For a high-fault-tolerant dual-bus control system, how to ensure that when a server has a problem, other servers can immediately replace it without delaying the normal data processing process? Based on this, a solution is now provided. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art; To this end, the present invention proposes a high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis, comprising: Server 1, the server that does the real-time work, Server 2, the backup replacement server; A self-checking unit synchronously monitors the status of the server one, and starts the server two to restore the backup data from the distributed storage module when the server one is abnormal. The backup data is obtained by analyzing the operation data of the server one. The operation data includes a number of single quantity data. The single quantity data is any data of the same type in the operation data. The operation data is the necessary operation data for the server one to work normally; The server will perform sequential simulation analysis on the single amount of data, thereby performing incremental backup on a part of the single amount of data and performing global backup on the remaining part, thereby obtaining backup data and storing the backup data in a distributed storage unit.

[0006] Furthermore, the operational data includes data files, archived log files, control files, transaction logs, incremental or global data, configuration files, program code, metadata, and user data.

[0007] Furthermore, the specific process of sequential simulation analysis is as follows: Perform incremental backup for each single amount of data in turn. When a single amount of data is selected for incremental backup, the remaining single amount of data is backed up globally. After the backup is performed, the time required for each backup is obtained and marked as the backup duration. At the same time, the memory size occupied after the backup is obtained and marked as the memory value. After the backup is completed, a recovery simulation will be performed to automatically obtain the time required for the second server to take over the backup data, which will be marked as the recovery time. After the simulated recovery, the size of the incremental backup data that has not been successfully restored will be automatically obtained and marked as a poor value. Get the backup duration, memory value, recovery duration, and error value corresponding to all single-volume data, remove the dimension of all values, and then calculate the specific value of the corresponding single-volume data with pure numerical value. The specific calculation formula is: Specific value = 0.21*backup duration + 0.14*memory value + 0.31*recovery duration + 0.34*difference value; Calculate the unique values ​​of all data, sort all single quantity data from small to large, mark the first 35% of single quantity data as difference data, and do not process the rest; Incremental backup is performed for differential data, and global backup is performed for the remaining single-volume data; Get all the backup data.

[0008] Further, it also includes a backup unit; The backup unit is used to simplify the backup data stored in the distributed storage module. The specific method of simplifying the service is as follows: First, all backup data are obtained, and after each word in the backup data is combined, the backup data is sliced ​​according to the number of times it appears in all backup data and the number of characters occupied, to obtain several core word groups; Obtain the memory percentage occupied by the core word group in the backup data, delete those that are lower than B1, B1 is a preset value, assign a unique identifier to each of the remaining core word groups, and the unique identifier and the core word group constitute a mapping data table; Then the backup unit is used to replace the core word group of the distributed storage module with the unique identifier for backup storage; and synchronously transmit the mapping data table to the independent storage unit.

[0009] Furthermore, the specific method of slicing is as follows: Select any backup data and start selecting from the first word in the data. The first word here can be a Chinese word or a string of English characters to express a fixed meaning. After selecting the first word, start selecting the second word, combine the first word and the second word to form a word group, and then automatically retrieve the number of times the corresponding word group appears in all backup data. When the number exceeds X1, continue to select the third word to form a new word group, and then obtain the number of times the word group appears in the backup data. If it still exceeds X1, continue to combine the fourth word with the previous word to form a word group, and then obtain its repetition number, and repeatedly select the next word until the repetition number does not exceed X1. At this time, the currently selected word will be deleted, and the remaining mark is the initial word group; X1 is a preset value; Then delete the last character of the initial character group, and the remaining character group is marked as the initial character group two; then delete the second to last character, and the remaining character group is marked as the initial character group three; Obtain the total number of characters in the first character group, the second first character group, and the third first character group that appear in all backup data, and mark the corresponding character group with the largest total number of characters as the core character group; After the first core word group is determined, the remaining words are processed in the same way to obtain all the core word groups.

[0010] Further, it also includes an independent storage unit; The independent storage unit exchanges data with server one and server two through the channel splitting unit. When the self-check unit detects a problem with server one, it connects the channel between server two and the independent storage unit and replaces the unique identifier in the backup data through the mapping data table.

[0011] Furthermore, the specific method of sequential simulation analysis is: Get each single amount of data and determine whether it is hot data or cold data. The specific method is as follows: Get its update frequency, call count and memory usage. The update frequency refers to how often the single quantity data changes, and then get the time interval between each change. Directly calculate the average of the time interval and mark it as the update frequency. The call count refers to the number of times the corresponding single quantity data has been called in the past T2 time, where T2 is a preset value. The memory usage refers to the memory size occupied by the single quantity data. Use the formula to calculate the heat value of all single quantity data. The specific calculation formula is: Heat value = 0.42 / update frequency + 0.38*number of calls + 0.2*occupied memory; Sort the order data by the heat value from large to small. After sorting, mark the top 60% of the order data as hot data, and mark the rest as cold data. Perform global backup of hot data and incremental backup of cold data.

[0012] Compared with the prior art, the present invention has the following beneficial effects: This application uses a server to perform sequential simulation analysis on a single amount of data, thereby performing incremental backup on a portion of the single amount of data and performing global backup on the remaining portion, thereby obtaining backup data, and storing the backup data in a distributed storage unit. This backup method can take into account both the recovery speed and the size of the memory value occupied by the backup data, and a balance is taken between the two to perform the operation; At the same time, by analyzing the backup data, the size of the backup data can be further compressed, and when recovery is needed, it can be recovered as soon as possible. The present invention is simple, effective, and easy to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a system block diagram of the present invention; Figure 2 This is a process diagram of the sequential simulation analysis of the present invention. DETAILED DESCRIPTION

[0014] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Embodiment 1

[0015] See also Figure 1 ,This application provides a high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis; As the first embodiment of the present application, this embodiment includes: Server 1, server 2 and self-test unit; Server 1 and Server 2 Any server is in normal working state, which may be Server 1 or Server 2. In this application, for the sake of distinction, Server 1 is identified as working in real time, and Server 2 is a backup replacement server when Server 1 has problems; The self-checking unit is used to monitor the status of server one in real time. When a problem occurs, it automatically switches to server two to work and automatically obtains backup data from the distributed storage module. The distributed storage module is used to back up the operating data of server one. The operating data includes data files, archive log files, control files, transaction logs, incremental or global data, configuration files, program codes, metadata and user data. The data files are the corresponding tablespace data files: when backing up, the tablespace will be set to backup status first, and then the data files will be backed up; these files contain the actual data in the database; the archive log files are archived redo log files; the control files are backed up by using the alter database backup controlfile command; the transaction log is used to restore the data to a certain point in time during recovery to keep the data consistent; this is crucial to ensure data consistency and minimize data loss; incremental data backup refers to backing up only the data that has changed since the last backup, reducing backup time and system burden, that is, incremental backup; global data refers to backing up all data, which can speed up recovery, that is, global backup; the configuration file is the server configuration file, backing up the server configuration file, such as the Init.ora file (optional), to ensure that the server configuration is consistent with the backup when recovery is needed; the program code refers to stored procedures and functions, backing up program codes such as stored procedures, functions, triggers and event schedulers to ensure that all logic and functions can work properly when the database is restored; metadata is used to describe the structure and organization of data; user data is the data generated by users when using applications; When backing up running data, the difference analysis method is used to determine the backup method of different data. For the convenience of description, each type of data is marked as single amount data. Server 1 is used to perform sequential simulation analysis on each single amount of data, such as Figure 2 As shown, the specific simulation analysis method is: Perform incremental backup for each single amount of data in turn. When a single amount of data is selected for incremental backup, the remaining single amount of data is backed up globally. After the backup is performed, the time required for each backup is obtained and marked as the backup duration. At the same time, the memory size occupied after the backup is obtained and marked as the memory value. After the backup is completed, a recovery simulation is performed to automatically obtain another server, which is the time required for server 2 to take over the backup data. It is marked as the recovery duration. After the simulated recovery, the size of the incremental backup data that has not been successfully restored is automatically obtained and marked as the difference value. Get the backup duration, memory value, recovery duration, and error value corresponding to all single-volume data, remove the dimension of all values, and then calculate the specific value of the corresponding single-volume data with pure numerical value. The specific calculation formula is: Specific value = 0.21*backup duration + 0.14*memory value + 0.31*recovery duration + 0.34*difference value; Calculate the unique values ​​of all data, sort all single quantity data from small to large, mark the first 35% of single quantity data as difference data, and do not process the rest; Incremental backup is performed for differential data, and global backup is performed for the remaining single-volume data; Get all backup data; Server 1 is used to transmit the backup data to the distributed storage module, and the distributed storage module uses distributed storage technology to store the backup data; this is a relatively mature technology in the prior art, so it will not be described in detail here; The self-check unit is used to monitor the server one. When a problem occurs on the server one, the self-check unit will automatically restore the data through the server two and replace the server one to work. Embodiment 2

[0016] Of course, as the second embodiment of the present application, this embodiment is implemented on the basis of the first embodiment, and the difference from the first embodiment is that the present application also includes Backup unit, independent storage unit, channel splitting unit; The backup unit is used to simplify the backup data stored in the distributed storage module. The specific method of simplifying the service is as follows: First, obtain all the backup data and slice the backup data. The slicing method is as follows: Select any backup data and start selecting from the first word in the data. The first word here can be a Chinese word or a string of English characters to express a fixed meaning. After selecting the first word, start selecting the second word, combine the first word and the second word to form a word group, and then automatically retrieve the number of times the corresponding word group appears in all backup data. When the number exceeds X1, continue to select the third word to form a new word group, and then obtain the number of times the word group appears in the backup data. If it still exceeds X1, continue to combine the fourth word with the previous word to form a word group, and then obtain its repetition number, and repeatedly select the next word until the repetition number does not exceed X1. At this time, the currently selected word will be deleted, and the remaining mark is the initial word group; X1 is a preset value; Then delete the last character of the initial character group, and the remaining character group is marked as the initial character group two; then delete the second to last character, and the remaining character group is marked as the initial character group three; Obtain the total number of characters in the first character group, the second first character group, and the third first character group that appear in all backup data, and mark the corresponding character group with the largest total number of characters as the core character group; After determining the first core word group, the remaining words are processed in the same way to obtain all the core word groups; Obtain the memory percentage occupied by the core word group in the backup data, delete those that are lower than B1, B1 is a preset value, assign a unique identifier to each of the remaining core word groups, and the unique identifier and the core word group constitute a mapping data table; Then the backup unit is used to replace the core word group of the distributed storage module with the unique identifier for backup storage; synchronously transmit the mapping data table to the independent storage unit; The independent storage unit exchanges data with server one and server two through the channel splitting unit. When the self-check unit detects a problem with server one, it connects the channel between server two and the independent storage unit, and replaces the unique identifier in the backup data through the mapping data table, thereby completing the backup data and facilitating the operation of server two. Embodiment 3

[0017] As the third embodiment of the present application, the present application is carried out on the basis of the first embodiment, and the difference from the first embodiment is that: The sequential simulation analysis method in this embodiment is different, and the specific method in this embodiment is: Get each single amount of data and determine whether it is hot data or cold data. The specific method is as follows: Get its update frequency, call count and memory usage. The update frequency refers to how often the corresponding order data is updated. It mainly observes how often the order data changes, then obtains the time interval between each change, directly calculates the average of the time interval, and marks it as the update frequency. The call count refers to the number of times the corresponding order data has been called in the past T2 time, where T2 is a preset value. The memory usage refers to the memory size occupied by the order data. Use the formula to calculate the heat value of all single quantity data. The specific calculation formula is: Heat value = 0.42 / update frequency + 0.38*number of calls + 0.2*occupied memory; In the formula, 0.42, 0.38 and 0.2 are preset weights used to highlight the different importance of different elements; Sort the order data by the heat value from large to small. After sorting, mark the top 60% of the order data as hot data, and mark the rest as cold data. Perform global backup of hot data and incremental backup of cold data. Embodiment 4

[0018] As the fourth embodiment of the present application, this embodiment is used to integrate the first embodiment, the second embodiment and the third embodiment for implementation.

[0019] Some of the data in the above formula are calculated by removing the dimensions and taking their numerical values. The formula is a formula that is closest to the actual situation obtained by software simulation of a large amount of collected data; the preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained through simulation of a large amount of data.

[0020] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis, characterized in that: include: Server 1, which is a server used to perform real-time work; Server 2, which is used to backup and replace the server; A self-checking unit, which is used to synchronously monitor the status of the server one and start the server two to restore the backup data from the distributed storage module when an abnormality occurs in the server one; The backup data is obtained by analyzing the operation data of the server 1, the operation data is the necessary operation data for the normal operation of the server 1, and the operation data includes a plurality of single quantity data, and the single quantity data is any data of the same type in the operation data; The server performs sequential simulation analysis on the single amount of data, performs incremental backup on a part of the single amount of data and performs global backup on the remaining part to form backup data, and stores the backup data in a distributed storage unit.

2. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 1, characterized in that: The operational data includes data files, archived log files, control files, transaction logs, incremental or global data, configuration files, program codes, metadata, and user data.

3. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 1, characterized in that: The process of the sequential simulation analysis is: Perform incremental backup for each single amount of data in turn. When a single amount of data is selected for incremental backup, the remaining single amount of data is backed up globally. After the backup is performed, the time required for each backup is obtained and marked as the backup duration. At the same time, the memory size occupied after the backup is obtained and marked as the memory value. After the backup is completed, a recovery simulation will be performed to automatically obtain the time required for the second server to take over the backup data, which will be marked as the recovery time. After the simulated recovery, the size of the incremental backup data that has not been successfully restored will be automatically obtained and marked as a poor value. Get the backup duration, memory value, recovery duration, and error value corresponding to all single-volume data. After removing the dimension of all values, calculate the specific value corresponding to the single-volume data with pure numerical value. The calculation formula of the specific value is: Specific value = 0.21*backup duration + 0.14*memory value + 0.31*recovery duration + 0.34*difference value; Calculate the unique values ​​of all single quantity data, sort all single quantity data in ascending order of unique values, mark the first 35% of single quantity data as difference data, and do not process the rest; Incremental backup is performed for differential data, and global backup is performed for the remaining single-volume data; Get all the backup data.

4. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 1, characterized in that: Also includes backup units; The backup unit is used to simplify the backup data stored in the distributed storage module. The specific method of simplifying the service is as follows: All backup data are obtained, and each word in the backup data is combined, and then sliced ​​according to the number of times it appears in all backup data and the number of characters occupied, to obtain several core word groups; Obtain the memory percentage occupied by the core word group in the backup data, delete those that are lower than B1, B1 is a preset value, and assign a unique identifier to each remaining core word group. The unique identifier and the core word group constitute a mapping data table; The backup unit is used to replace the core word group of the distributed storage module with a unique identifier for backup storage; Synchronously transfer the mapping data table to a separate storage unit.

5. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 4, characterized in that: The specific method of the slicing process is as follows: Select any backup data and start selecting from the first word in the backup data; After selecting the first word, select the second word, combine the first word and the second word to form a word group, and then automatically retrieve the number of times the corresponding word group appears in all backup data. When the number exceeds X1, continue to select the third word to form a new word group, and then obtain the number of times the word group appears in the backup data. If it still exceeds X1, continue to form a new word group with the next word, and then obtain the number of repetitions of the new word group in the backup data, until the number of repetitions of the new word group does not exceed X1. At this time, delete the selected word and mark the remaining as the initial word group; X1 is a preset value; Delete the last character of the initial character group, and mark the remaining character group as the initial character group two; then delete the second to last character, and mark the remaining character group as the initial character group three; Obtain the total number of characters in the first character group, the second first character group, and the third first character group that appear in all backup data, and mark the corresponding character group with the largest total number of characters as the core character group; After the first core word group is determined, the remaining words are processed in the same way to obtain all the core word groups.

6. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 4, characterized in that: Also included is a separate storage unit; The independent storage unit exchanges data with server one and server two through the channel splitting unit. When the self-checking unit detects a problem with server one, it connects the channel between server two and the independent storage unit and replaces the unique identifier in the backup data through the mapping data table.

7. The high fault-tolerant two-wire bus control system based on hot backup and adaptive diagnosis according to claim 1, characterized in that: The specific method of the sequential simulation analysis is: Get each single amount of data and determine whether it is hot data or cold data. The determination method is as follows: Get the update frequency, call count and memory usage of the corresponding single quantity data. The update frequency refers to how often the single quantity data changes, and then obtain the time interval between each change, calculate the average of the time interval, and mark it as the update frequency; the call count refers to the number of times the corresponding single quantity data has been called in the past T2 time, T2 is a preset value; the memory usage refers to the memory size occupied by the single quantity data; Use the formula to calculate the heat value of all single quantity data. The specific calculation formula is: Heat value = 0.42 / update frequency + 0.38*number of calls + 0.2*occupied memory; Sort the order data by popularity value from large to small. After sorting, mark the top 60% of the order data as hot data, and the rest as cold data. Perform global backup of hot data and incremental backup of cold data.

Citation Information

Patent Citations

  • Switching control device for double-coil hot-redundancy actuator of duplicated hot-redundancy electronic speed regulator

    CN105863851A

Cited By

  • File processing method and electronic equipment

    CN121255110A