CN113986620B - Multi-region information backup verification recovery method and device suitable for middle station - Google Patents

Multi-region information backup verification recovery method and device suitable for middle station Download PDF

Info

Publication number
CN113986620B
CN113986620B CN202111615353.9A CN202111615353A CN113986620B CN 113986620 B CN113986620 B CN 113986620B CN 202111615353 A CN202111615353 A CN 202111615353A CN 113986620 B CN113986620 B CN 113986620B
Authority
CN
China
Prior art keywords
backup
terminal
information
identification number
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111615353.9A
Other languages
Chinese (zh)
Other versions
CN113986620A (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.)
State Grid Zhejiang Electric Power Co Ltd
Zhejiang Huayun Information Technology Co Ltd
Original Assignee
State Grid Zhejiang Electric Power Co Ltd
Zhejiang Huayun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Zhejiang Electric Power Co Ltd, Zhejiang Huayun Information Technology Co Ltd filed Critical State Grid Zhejiang Electric Power Co Ltd
Priority to CN202111615353.9A priority Critical patent/CN113986620B/en
Publication of CN113986620A publication Critical patent/CN113986620A/en
Application granted granted Critical
Publication of CN113986620B publication Critical patent/CN113986620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a multi-region information backup verification recovery method and a device suitable for a middle station, which comprise the following steps: receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes; acquiring a first uplink rate and a second uplink rate of a first backup terminal and a second backup terminal in a first transmission channel and a second transmission channel; acquiring the total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel; determining a first transmission proportion in a first backup terminal and a second transmission proportion in a second backup terminal based on the first uplink rate, the second uplink rate and the total downlink rate; the first backup terminal selects first backup information data and sends the first backup information data to the recovery request terminal, and the recovery request terminal recovers the first backup information data; the second backup terminal selects second backup information data to be sent to the backup receiving terminal through the second transmission channel, and the recovery request terminal recovers the second backup information data.

Description

Multi-region information backup verification recovery method and device suitable for middle station
Technical Field
The invention relates to the technical field of data processing, in particular to a multi-region information backup verification recovery method and device suitable for a middle station.
Background
Backup is a disaster-tolerant basis, and refers to a process of copying all or part of a data set from a hard disk or an array of an application host to another storage medium in order to prevent data loss caused by misoperation of a system or system failure. The traditional data backup mainly adopts a built-in or external tape unit for cold backup. However, this method can only prevent human failures such as misoperation, and the recovery time is long. With the continuous development of the technology, the amount of data is increased, and a large number of enterprises begin to adopt network backup. Network backups are typically implemented by specialized data storage management software in conjunction with corresponding hardware and storage devices.
The power data is sensitive and important data of the country, and the production and activity conditions of the whole country and local regions can be intuitively reflected through the power data. In order to enable stable storage of power data, effective encryption backup of the power data based on a network is required, and when the backup power data needs to be restored, effective verification is required to prevent others from stealing the backup power data. After verification, the backed-up data is sent to the requesting end that requests the data, but the data transmission is slow due to the large amount of data.
Disclosure of Invention
The embodiment of the invention provides a multi-region information backup verification and recovery method and device suitable for a middle station, which can verify the identity of backup data needing to be recovered through the middle station, and enable a plurality of different regions to simultaneously send data to a terminal for recovering the backup data, thereby increasing the data transmission speed and ensuring the transmission rate of information and data.
In a first aspect of the embodiments of the present invention, a method for multi-region information backup, verification and recovery suitable for a middlebox is provided, including a first backup terminal disposed in a first region, a second backup terminal disposed in a second region, and a recovery request end disposed in a third region, where the first backup terminal and the second backup terminal respectively store the same backup data, and the middlebox performs backup, verification and recovery by the following steps, including:
receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes, determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal;
establishing a first transmission channel between the backup address and the first address, establishing a second transmission channel between the backup address and the second address, acquiring a first uplink rate of the first backup terminal in the first transmission channel, and acquiring a second uplink rate of the second backup terminal in the second transmission channel;
acquiring the total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel;
determining a first transmission proportion in a first backup terminal and a second transmission proportion in a second backup terminal based on the first uplink rate, the second uplink rate and the total downlink rate, and selecting a first identification number segment and a second identification number segment according to the first transmission proportion and the second transmission proportion;
sending the first identification number segment to the first backup terminal, wherein the first backup terminal selects first backup information data based on the first identification number segment and sends the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal restores the first backup information data;
and sending the second identification number segment to the second backup terminal, wherein the second backup terminal selects second backup information data based on the second identification number segment and sends the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal restores the second backup information data.
Optionally, in a possible implementation manner of the first aspect, receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes, determining a backup address of the backup receiving end information, a first address of a first backup terminal, and a second address of a second backup terminal includes:
comparing the verification information in the verification recovery request with preset information, and if the verification information is consistent with the preset information, the verification recovery request passes;
and determining the backup address of the backup receiving terminal information, the first address of the first backup terminal and the second address of the second backup terminal.
Optionally, in a possible implementation manner of the first aspect, the obtaining a first uplink rate and a second uplink rate of the first backup terminal and the second backup terminal in the first transmission channel and the second transmission channel includes:
presetting a rate acquisition time period, obtaining a first suspension time based on the obtained first current time and the rate acquisition time period, obtaining each first time point from the first current time to the first suspension time and the uplink rate of the first transmission channel at each first time point, and obtaining the average uplink rate of the first transmission channel, wherein the average uplink rate of the first transmission channel is the first uplink rate;
and obtaining a second stopping time based on the obtained second current time and the rate acquisition time period, and obtaining each second time point from the second current time to the second stopping time and the uplink rate of the second transmission channel at each second time point to obtain the average uplink rate of the second transmission channel, wherein the average uplink rate of the second transmission channel is the second uplink rate.
Optionally, in a possible implementation manner of the first aspect, determining a first transmission ratio in a first backup terminal and a second transmission ratio in a second backup terminal based on the first uplink rate, the second uplink rate, and the total downlink rate, and selecting the first identification number segment and the second identification number segment according to the first transmission ratio and the second transmission ratio includes:
judging that the total downlink rate is greater than or equal to the sum of the first uplink rate and the second uplink rate;
acquiring first processing speed information of the first backup terminal and second processing speed information of a second backup terminal;
and obtaining a first transmission proportion and a second transmission proportion based on the first processing speed information, the second processing speed information, the first uplink rate and the second uplink rate.
Optionally, in a possible implementation manner of the first aspect, the obtaining a first transmission ratio and a second transmission ratio based on the first processing speed information, the second processing speed information, the first uplink rate, and the second uplink rate includes:
the first transmission ratio and the second transmission ratio are calculated by the following formulas,
Figure 100002_DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 259971DEST_PATH_IMAGE002
as a value of the total downlink rate,
Figure 148292DEST_PATH_IMAGE003
is the value of the first uplink rate,
Figure 702901DEST_PATH_IMAGE004
is the value of the second uplink rate,
Figure 993068DEST_PATH_IMAGE005
is a numerical value of the first processing speed information,
Figure 873300DEST_PATH_IMAGE006
is the value of the second processing speed information,
Figure 45655DEST_PATH_IMAGE007
Is the value of the first transmission ratio,
Figure 138376DEST_PATH_IMAGE008
is the value of the second transmission ratio.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
acquiring first cache available space information and first CPU occupancy rate information of the first backup terminal;
generating first processing speed information based on the first cache available space information and the first CPU occupancy rate information, calculating a value of the first processing speed information by the following formula,
Figure 569137DEST_PATH_IMAGE009
wherein the content of the first and second substances,
Figure 620269DEST_PATH_IMAGE010
in order to cache the weight values of the data,
Figure 748762DEST_PATH_IMAGE011
for the first cache value of the available space information,
Figure 910753DEST_PATH_IMAGE012
is a weight value of the CPU,
Figure 378775DEST_PATH_IMAGE013
is the value of the first CPU occupancy information.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
acquiring second cache available space information and second CPU occupancy rate information of the second backup terminal;
generating second processing speed information based on the second cache available space information and the second CPU occupancy rate information, calculating the value of the second processing speed information by the following formula,
Figure 286295DEST_PATH_IMAGE014
wherein the content of the first and second substances,
Figure 636504DEST_PATH_IMAGE010
in order to cache the weight values of the data,
Figure DEST_PATH_IMAGE015
to second cache the value of the available spatial information,
Figure 274290DEST_PATH_IMAGE016
is a weight value of the CPU,
Figure 393556DEST_PATH_IMAGE017
is the value of the second CPU occupancy information.
Optionally, in a possible implementation manner of the first aspect, selecting the first identification number segment and the second identification number segment according to the first transmission ratio and the second transmission ratio includes:
acquiring a data recovery directory in the verification recovery request, selecting all time tags of a plurality of sub-data to be recovered based on the data recovery directory, counting the number of all the time tags, and sequencing all the time tags according to the time of the time tags to obtain a tag sequencing queue, wherein each time tag in the tag sequencing queue has a number corresponding to the time tag;
obtaining a first identification number based on the number of all the time labels and the first transmission proportion, and obtaining a second identification number based on the number of all the time labels and the second transmission proportion;
and generating a first identification number segment and a second identification number segment based on the first identification number and the second identification number.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
screening the missing time labels if the sum of the first identification number and the second identification number is not equal to the number of all the time labels;
if the first transmission proportion is larger than or equal to the second transmission proportion, adding the missing time labels into a first identification number, and updating the first identification number segment to enable the first identification number segment to comprise the missing time labels;
and if the first transmission proportion is smaller than the second transmission proportion, adding the missed time labels into a second identification number, and updating the second identification number segment to enable the second identification number segment to include the missed time labels.
In a second aspect of the embodiments of the present invention, there is provided a multi-region information backup verification recovery apparatus for a middlebox, including a first backup terminal disposed in a first region, a second backup terminal disposed in a second region, and a recovery request end disposed in a third region, where the first backup terminal and the second backup terminal respectively store the same backup data, and the middlebox performs backup verification recovery through the following modules, including:
the receiving module is used for receiving a verification recovery request and backup receiving end information sent by a recovery request end, and determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal if the verification recovery request passes;
a channel establishing module, configured to establish a first transmission channel between the backup address and the first address, establish a second transmission channel between the backup address and the second address, obtain a first uplink rate of the first backup terminal in the first transmission channel, and obtain a second uplink rate of the second backup terminal in the second transmission channel;
a rate obtaining module, configured to obtain a total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel;
a transmission ratio determining module, configured to determine a first transmission ratio in a first backup terminal and a second transmission ratio in a second backup terminal based on the first uplink rate, the second uplink rate, and the total downlink rate, and select a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio;
the first transmission module is used for transmitting the first identification number segment to the first backup terminal, the first backup terminal selects first backup information data based on the first identification number segment and transmits the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal restores the first backup information data;
and the second transmission module is used for transmitting the second identification number segment to the second backup terminal, the second backup terminal selects second backup information data based on the second identification number segment and transmits the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal restores the second backup information data. In a third aspect of the embodiments of the present invention, a readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method according to the first aspect of the present invention and various possible designs of the first aspect of the present invention.
The invention provides a multi-region information backup verification recovery method and device suitable for a middle station, which can backup information and data in a plurality of different regions when the information and the data are backed up. When a recovery request end needs to recover partial information and data, the invention can enable the first backup terminal and the second backup terminal in a plurality of areas to respectively send the information and the data which are backed up in advance to the corresponding recovery request end. And when the first backup terminal and the second backup terminal respectively send backup information and data, different data transmission tasks are allocated to the first backup terminal and the second backup terminal according to a first uplink rate, a second uplink rate and a total downlink rate between the first backup terminal and the second backup terminal and the recovery request terminal. The invention labels the backed up data and determines different first identification number segments and second identification number segments according to the difference of the first uplink rate, the second uplink rate and the total downlink rate. Through the mode, the first backup terminal and the second backup terminal can be controlled to send corresponding backup information and data to the backup receiving terminal, and the transmission efficiency of the backup information and the data is improved.
When the first transmission proportion and the second transmission proportion are calculated, the uplink rates, the cache available space information and the CPU occupancy rate information of the first backup terminal and the second backup terminal are fully considered, and the quantity values of the first backup terminal and the second backup terminal for transmitting the backup information data are determined according to different conditions of the uplink rates, the cache available space information and the CPU occupancy rate information of the first backup terminal and the second backup terminal, so that the first backup terminal and the second backup terminal can transmit the data at the highest speed, and the speed of downloading the backup data to the backup receiving terminal is further increased.
According to the technical scheme provided by the invention, when information and data are distributed to the first backup terminal and the second backup terminal, the whole part of all the data needing to be recovered is processed into zero, namely all the data needing to be distributed is divided into a plurality of sub-data to be recovered, and the sub-data to be recovered transmitted by the first backup terminal and the second backup terminal, and the corresponding first identification number segment and the second identification number segment are determined according to the first transmission proportion and the second transmission proportion. In an actual transmission scene, the data may have a transmission missing situation, and the missing sub-data to be restored is checked again by the method, and the missing time tags of the sub-data to be restored are added to the corresponding identification number sections, so that the situation of the missing transmission of the sub-data to be restored can not occur when the first backup terminal and the second backup terminal distribute the information and the data, and the accuracy and the stability of the data restoration can be guaranteed.
Drawings
Fig. 1 is a schematic view of an application scenario of a multi-region information backup verification recovery method applied to a middle station;
FIG. 2 is a flowchart illustrating a multi-zone information backup verification recovery method for a middlebox;
fig. 3 is a schematic structural diagram of a multi-zone information backup verification recovery device suitable for a middlebox.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that, in the present invention, "a plurality" means two or more. "and/or" is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "comprises A, B and C" and "comprises A, B, C" means that all three of A, B, C comprise, "comprises A, B or C" means that one of A, B, C comprises, "comprises A, B and/or C" means that any 1 or any 2 or 3 of A, B, C comprises.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, and B can be determined from a. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information. And the matching of A and B means that the similarity of A and B is greater than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The invention provides a multi-zone information backup verification recovery method suitable for a middlebox, which is applicable to a scene shown in figure 1 and comprises a first backup terminal arranged in a first zone, a second backup terminal arranged in a second zone and a recovery request end arranged in a third zone, wherein the first backup terminal and the second backup terminal respectively store the same backup data.
In an actual data backup and storage scenario, at least two different areas are generally set to backup and store the same information and data. When the backup recovery is needed, the recovery request end sends a verification recovery request and the backup receiving end information to the middle station. The backup receiving end may be the same terminal as the restoration requesting end, or the backup receiving end may not be the same terminal as the restoration requesting end. The backup receiving end may be in the third area or the fourth area, and the present invention is not limited thereto.
The recovery request terminal may be a terminal with an identity acquisition function. The first backup terminal, the second backup terminal and the recovery request terminal can be mobile terminals such as a database, a server and a mobile phone.
The inventor needs to say that, the data sending speed and the data receiving speed of a data end with transceiving function are not the same, that is, the uplink rate and the downlink rate of a data end are different. Generally, the uplink rate and the downlink rate of the data end are normal at a ratio of 1:7 or more, so it can be understood that if the configurations of the first backup terminal, the second backup terminal and the backup receiving end are the same, the backup receiving end can simultaneously receive information and data sent by a plurality of first backup terminals and second backup terminals. Therefore, when the backup receiving terminal in a certain area needs to restore the backed-up information and data, the information and the data are simultaneously sent to the backup receiving terminal through the first backup terminal and the second backup terminal in other areas.
The recovery request end can only collect the identity information and appoint the backup receiving end, and the recovery request end has special purpose by the way, namely when the backup information and data need to be recovered, the corresponding verification recovery request and the backup receiving end information can be sent by the recovery request end. The backup receiving end information is a backup receiving end for specifying the receiving information and the data.
As shown in fig. 2, the middle station performs backup verification recovery by the following steps:
step S110, receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes, determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal.
In the technical solution provided by the present invention, step S110 specifically includes:
and comparing the verification information in the verification recovery request with the preset information, and if the verification information is consistent with the preset information, the verification recovery request passes. The authentication information in the present invention may be current fingerprint information, current login account-password information, current face information, and the like. The preset information may be preset fingerprint information, preset login account-password information, and preset face information.
And determining the backup address of the backup receiving terminal information, the first address of the first backup terminal and the second address of the second backup terminal. The backup address, the first address, and the second address may be IP addresses.
If the current fingerprint information is consistent with the preset fingerprint information, the current login account-password information is consistent with the preset login account-password information, or the current face information is consistent with any one of the preset face information, the verification information is compared with the preset information to be consistent, and the verification recovery request passes.
Step S120, a first transmission channel is established between the backup address and the first address, a second transmission channel is established between the backup address and the second address, a first uplink rate of the first backup terminal in the first transmission channel is obtained, and a second uplink rate of the second backup terminal in the second transmission channel is obtained.
The invention can obtain the first IP address of the first address, the second IP address of the second address and the backup IP address of the backup address. And a first transmission channel is established according to the first IP address and the backup IP address, a second transmission channel is established according to the second IP address and the backup IP address, and backup information and data which are pre-stored in the first backup terminal and the second backup terminal are sent and transmitted through the first transmission channel and the second transmission channel. The first uplink rate and the second uplink rate are transmission rates of information and data sent by the first backup terminal and the second backup terminal to the backup receiving terminal. The first uplink rate, the second uplink rate, and the transmission rate are, for example, 1kb/s, 1000kb/s, and so on.
In the technical solution provided by the present invention, step S120 specifically includes:
the method comprises the steps of presetting a rate acquisition time period, obtaining a first suspension time based on the obtained first current time and the rate acquisition time period, obtaining each first time point from the first current time to the first suspension time and the uplink rate of a first transmission channel of each first time point, and obtaining a plurality of first time point average uplink rates, wherein the average uplink rate of the first transmission channel is the first uplink rate.
According to the technical scheme provided by the invention, when the first uplink rate is obtained, the data transmission rates of a plurality of time points are comprehensively considered, so that the obtained first uplink rate is not the uplink rate at a certain time point and a certain moment.
The rate acquisition time period may be 5 seconds, the first current time may be 16:29:25, the first suspension time may be 16:29:30, and the first time points may include 16:29:25, 16:29:26, 16:29:27, 16:29:28, 16:29:29, and 16:29: 30. Each first time point will have an uplink rate corresponding to it, say 975 kb/s. The invention calculates the average of the uplink rates of the 5 first time points to obtain the average uplink rate, and the average uplink rate of the first transmission channel is the first uplink rate.
And obtaining a second stopping time based on the obtained second current time and the rate acquisition time period, and obtaining each second time point from the second current time to the second stopping time and the uplink rate of the second transmission channel at each second time point to obtain a plurality of second time point average uplink rates, wherein the average uplink rate of the second transmission channel is the second uplink rate.
According to the technical scheme provided by the invention, when the second uplink rate is obtained, the data transmission rates of a plurality of time points are comprehensively considered, so that the obtained second uplink rate is not the uplink rate at a certain time point and a certain moment.
The rate acquisition time period may be 5 seconds, the second current time may be 16:29:25, the second suspension time may be 16:29:30, and the second time points may include 16:29:25, 16:29:26, 16:29:27, 16:29:28, 16:29:29, and 16:29: 30. Each second time point will have an uplink rate corresponding to it, say 975 kb/s. The present invention calculates the average of the uplink rates of the above 5 second time points to obtain the average uplink rate, and the average uplink rate of the second transmission channel is the second uplink rate.
Step S130, obtaining the total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel. The backup receiving terminal is respectively connected with the first backup terminal and the second backup terminal, and sends information and data to the first backup terminal and the second backup terminal. The total downlink rate is the transmission rate at which the backup receiving end receives information and data through the first transmission channel and the second transmission channel. The total downlink rate and the transmission rate are, for example, 1kb/s, 1000kb/s, and so on.
Step S140, determining a first transmission ratio in the first backup terminal and a second transmission ratio in the second backup terminal based on the first uplink rate, the second uplink rate and the total downlink rate, and selecting a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio.
According to the technical scheme provided by the invention, the first transmission proportion in the first backup terminal and the second transmission proportion in the second backup terminal can be determined according to the first uplink rate, the second uplink rate and the total downlink rate, and the first backup terminal and the second backup terminal can have different working conditions and use states at the current moment, so that the invention can judge the data suitable for transmission of the first backup terminal and the second backup terminal according to the first uplink rate and the second uplink rate, and further ensure that a backup receiving terminal receives the backup information and data in a most efficient and shortest time manner.
In the technical solution provided by the present invention, step S140 specifically includes:
and judging that the total downlink rate is greater than or equal to the sum of the first uplink rate and the second uplink rate. When the total downlink rate is greater than or equal to the sum of the first uplink rate and the second uplink rate, it is proved that the backup receiving terminal can normally receive the information and the data sent by the first backup terminal and the second backup terminal at the first uplink rate and the second uplink rate respectively.
And acquiring first processing speed information of the first backup terminal and second processing speed information of the second backup terminal. Since the working conditions of the first backup terminal and the second backup terminal may be different, the first backup terminal and the second backup terminal may have different first processing speed information and second processing speed information in the current scene and situation. The first processing speed information and the second processing speed information can reflect the processing and sending efficiency of the information and data stored by the first backup terminal and the second backup terminal respectively. Because the first backup terminal and the second backup terminal may perform processing operations such as compression and encryption on data, the processing speed of the first backup terminal and the second backup terminal may also affect the efficiency of sending information and data to the backup receiving end. Therefore, the present invention obtains the first processing speed information and the second processing speed information before calculating the first transmission ratio and the second transmission ratio.
And obtaining a first transmission proportion and a second transmission proportion based on the first processing speed information, the second processing speed information, the first uplink rate and the second uplink rate. The processing efficiency of the first backup terminal and the processing efficiency of the second backup terminal can be reflected through the first processing speed information and the second processing speed information, and the first uplink rate and the second uplink rate can reflect the data sending efficiency of a communication network and a data transmission module where the first backup terminal and the second backup terminal are located. Furthermore, the invention can comprehensively consider the conditions of the first backup terminal, the second backup terminal, the communication network and the like, and determine that the first backup terminal and the second backup terminal obtain the first transmission proportion and the second transmission proportion.
In the technical solution of the present invention, obtaining the first transmission ratio and the second transmission ratio based on the first processing speed information, the second processing speed information, the first uplink rate, and the second uplink rate includes:
the first transmission ratio and the second transmission ratio are calculated by the following formulas,
Figure 317650DEST_PATH_IMAGE018
wherein the content of the first and second substances,
Figure 886647DEST_PATH_IMAGE019
as a value of the total downlink rate,
Figure 390440DEST_PATH_IMAGE003
is the value of the first uplink rate,
Figure 426530DEST_PATH_IMAGE004
is the value of the second uplink rate,
Figure DEST_PATH_IMAGE020
is a numerical value of the first processing speed information,
Figure 396891DEST_PATH_IMAGE021
is a numerical value of the second processing speed information,
Figure 721693DEST_PATH_IMAGE022
is the value of the first transmission ratio,
Figure 825915DEST_PATH_IMAGE023
is the value of the second transmission ratio.
Figure 388615DEST_PATH_IMAGE024
Is a limit value, i.e. the first transmission ratio and the second transmission ratio are obtained according to the above formula only when the total downlink rate is greater than or equal to the sum of the values of the first uplink rate and the second uplink rate.
In a general scenario, the total downlink rate is greater than or equal to the sum of the first uplink rate and the second uplink rate. By passing
Figure 123352DEST_PATH_IMAGE025
And
Figure 466609DEST_PATH_IMAGE026
the processing efficiency of the first backup terminal and the second backup terminal can be reflected,
Figure 933711DEST_PATH_IMAGE025
and
Figure 85338DEST_PATH_IMAGE026
the larger the value of (a), the higher the processing efficiency of the first backup terminal and the second backup terminal. So the present invention needs to be combined
Figure 928660DEST_PATH_IMAGE027
And
Figure 162808DEST_PATH_IMAGE028
and calculating the numerical value of the first transmission proportion and the numerical value of the second transmission proportion, wherein the first transmission proportion and the second transmission proportion are respectively the numerical values which are more than 0 and less than 1.
Figure 665290DEST_PATH_IMAGE029
I.e. the value of the first transmission ratio.
When the total downlink rate is less than the sum of the first uplink rate and the second uplink rate, it is proved that the backup receiving end cannot receive the information and the data sent by the first backup terminal and the second backup terminal at the same time, and in order to avoid the situation that the backup receiving end has abnormal processing, the backup receiving end first receives the information and the data sent by the first backup terminal and then receives the information and the data sent by the second backup terminal.
When the total downlink rate is changed from being less than the sum of the first uplink rate and the second uplink rate to being more than or equal to the sum of the first uplink rate and the second uplink rate, the backup receiving end is controlled to simultaneously receive the information and the data sent by the first backup terminal and the second backup terminal.
Through the technical scheme, the transmission mode of the information and the data can be dynamically adjusted according to the first uplink rate, the second uplink rate and the total downlink rate, so that the transmission efficiency of the backup information and the data is improved while the first backup terminal, the second backup terminal and the backup receiving terminal are ensured to stably work. The information and data can be power information and data.
The technical scheme provided by the invention further comprises the following steps:
acquiring first cache available space information and first CPU occupancy rate information of the first backup terminal;
generating first processing speed information based on the first cache available space information and the first CPU occupancy rate information, calculating the first processing speed information by the following formula,
Figure 285407DEST_PATH_IMAGE030
wherein the content of the first and second substances,
Figure 361947DEST_PATH_IMAGE010
in order to cache the weight values of the data,
Figure 883058DEST_PATH_IMAGE031
for the first cache value of the available space information,
Figure 804878DEST_PATH_IMAGE032
is a weight value of the CPU,
Figure 524572DEST_PATH_IMAGE013
is the value of the first CPU occupancy information.
When the first processing speed information is calculated, the first cache available space information and the first CPU occupancy rate information of the first backup terminal are fully considered, and when the first cache available space information is larger and the first CPU occupancy rate is smaller, the fact that the first processing speed information is larger at the moment is proved to be higher, and the speed and the efficiency of data processing performed by the first backup terminal are higher.
The technical scheme provided by the invention further comprises the following steps:
acquiring second cache available space information and second CPU occupancy rate information of the second backup terminal;
generating second processing speed information based on the second cache available space information and the second CPU occupancy rate information, calculating the second processing speed information by the following formula,
Figure 772014DEST_PATH_IMAGE033
wherein the content of the first and second substances,
Figure 514842DEST_PATH_IMAGE010
in order to cache the weight values of the data,
Figure 302669DEST_PATH_IMAGE034
to second cache the value of the available spatial information,
Figure 80132DEST_PATH_IMAGE035
is a weight value of the CPU,
Figure DEST_PATH_IMAGE036
is the value of the second CPU occupancy information.
When the second processing speed information is calculated, the second cache available space information and the second CPU occupancy rate information of the second backup terminal are fully considered, and when the second cache available space information is larger and the second CPU occupancy rate is smaller, the larger the second processing speed information is, the higher the speed and the efficiency of data processing performed by the second backup terminal are.
Through the mode, the processing conditions of the first backup terminal and the second backup terminal can be objectively obtained, and further the distribution proportion of the data is more balanced when the distribution proportion of the data is determined, so that the first backup terminal and the second backup terminal can process the information and the data in the corresponding ranges and transmit the information and the data.
The technical scheme provided by the invention comprises the following steps of selecting a first identification number segment and a second identification number segment according to the first transmission proportion and the second transmission proportion:
and acquiring a data recovery directory in the verification recovery request, selecting all time tags of a plurality of sub-data to be recovered based on the data recovery directory, counting the number of all the time tags, and sequencing all the time tags according to the time of the time tags to obtain a tag sequencing queue, wherein each time tag in the tag sequencing queue has a number corresponding to the time tag.
In a possible embodiment, when the recovery requesting end wishes to recover certain data, the data recovery directory is sent, where the data recovery directory has a plurality of corresponding times, for example, the recovery requesting end wishes to recover all pre-stored power data from 2019 year 1 month 1 day to 2019 year 1 month 5 days, and the data recovery directory includes the times of 2019 year 1 month 1 day, 2019 year 1 month 2 day, 2019 year 1 month 3 day, 2019 year 1 month 4 day, and 2019 year 1 month 5 day. The first backup terminal and the second backup terminal have previously stored the power data of 2019 year 1 month 1 day to 2019 year 1 month 5 day, respectively. The subdata to be restored is data respectively corresponding to 1/2019 to 1/5/2019, each subdata to be restored corresponds to one day, for example, the first subdata to be restored may be power data corresponding to 1/2019, the second subdata to be restored may be power data corresponding to 1/2/2019, and so on. The time tag of the first subdata to be restored is 1/2019, the time tag of the second subdata to be restored is 1/2/2019, and the like.
In the above embodiment, the number of all the time tags is 5, including 1/2019, 1/2/2019, 1/3/2019, 1/4/2019, and 1/5/2019. At this time, the time tags are sorted to obtain a sorting queue, and each time tag in the tag sorting queue has a number corresponding to the time tag, where the number may be 1, 2, 3, 4, or 5. If 1/2019 can be the time tag 1, the number corresponding to the time tag 1 is 1, and so on, and if 5/1/5/2019 can be the time tag 5, the number corresponding to the time tag 5 is 5.
According to the technical scheme provided by the invention, when the data recovery catalog is obtained, the data corresponding to the data recovery catalog is counted, and the time label and the number of the data are determined according to the objective time of generation, storage or collection of the data. During actual data collection and storage, the data quantity values collected every day are similar or the same, so that the data distribution method can not split and confirm according to the data quantity required to be recovered in the data recovery directory during data distribution, but split and confirm according to the number of the subdata to be recovered.
The tag sorting queue sorts all the time tags in a time sequence, so that every two adjacent tags in the tag sorting queue are adjacent and similar in time. The first backup terminal and the second backup terminal can select the backed-up information and data conveniently.
And obtaining a first identification number based on the number of all the time labels and the first transmission proportion, and obtaining a second identification number based on the number of all the time labels and the second transmission proportion. After obtaining the number of all the time tags, the invention multiplies the number of the time tags by the first transmission ratio and the second transmission ratio to obtain the first identifier number and the second identifier number, for example, the first transmission ratio is 0.6, the first transmission ratio is 0.4, then the first identifier number is 5 times 0.6 and is equal to 3, the second identifier number is 5 times 0.4 and is equal to 2, the first identifier number is 3, and the second identifier data is 2.
And generating a first identification number segment and a second identification number segment based on the first identification number and the second identification number. When a first identification number segment is determined, a first identification number is selected, at the moment, the first identification number is 3, numbers corresponding to the first identification number at the front part of a label sequencing queue are selected, the selected first identification number segment comprises 1, 2 and 3, corresponding time labels are 2019 month 1, 2019 month 2 and 2019 month 1, 2019 month 3, and corresponding to-be-recovered subdata is power data of 2019 month 1, 2019 month 2 and 2019 month 3. It will be appreciated that the determination of the first identification number segment is determined from the front to the back of the tag ordering queue.
When a second identification number segment is determined, the number corresponding to the second identification number is selected from the rear part of the label sorting queue, the number corresponding to the second identification number is selected from the second identification number segment which is 2, the selected first identification number segment comprises 4 and 5, the corresponding time label is 2019, 1, 4 and 4 days, 2019, 1, 5 days, and the corresponding subdata to be recovered is the electric power data of 2019, 1, 4 days and 2019, 1, 5 days. It will be appreciated that the determination of the second identification number segment is determined from the rear to the front of the tag ordering queue.
The tag sort queue is arranged in the form of 1/2019, 2/2019/1/2019, 3/2019/1/2019, 4/2019/1/2019, and 5/2019/1/month. Day 1 of 2019 was the first in the front, and day 5 of 2019 was the first in the back. The front part and the rear part of the invention are opposite, namely, the first identification number section is determined according to the time from far to near acquired by the power data when being determined, and the second identification number section is determined according to the time from near to far acquired by the power data when being determined.
The technical scheme provided by the invention further comprises the following steps:
and screening the missing time labels if the sum of the first identification number and the second identification number is not equal to the number of all the time labels. According to the invention, after the first identification number and the second identification number are obtained, the first identification number and the second identification number are summed, if the sum of the first identification number and the second identification number is equal to the number of all time tags, at least one time tag is proved to be omitted, and the first identification number and the second identification number respectively correspond to the number of the corresponding time tags. At this point, the present invention will screen for missing time tags.
For example, the number of the first identifiers is 2, the number of the second identifiers is 2, the number of all the time tags is 5, the first identifier section includes 1/2019 and 1/2/2019, the second identifier section includes 1/3/2019 and 1/4/2019, and the missing time tags are 1/3/2019.
And if the first transmission proportion is greater than or equal to the second transmission proportion, adding the missing time labels into the first identification number, and updating the first identification number segment to enable the first identification number segment to include the missing time labels. For example, if the first transmission ratio is 0.6, the second transmission ratio is 0.4, and the first transmission ratio is greater than the second transmission ratio, the information and data corresponding to the missing time stamp 2019, 1 month, 3 days are allocated and added to the first identifier number. And updating the first identification number segment according to the first identification number, so that the updated first identification number segment comprises 1/2019, 1/2/2019 and 1/3/2019.
And if the first transmission proportion is smaller than the second transmission proportion, adding the missed time labels into a second identification number, and updating the second identification number segment to enable the second identification number segment to include the missed time labels. For example, if the first transmission ratio is 0.4, the second transmission ratio is 0.6, and the first transmission ratio is smaller than the second transmission ratio, the information and data corresponding to the missing time stamp 2019, 1 month, 3 days are allocated and added to the second identifier number. And updating the second identification number segment according to the second identification number, so that the updated second identification number segment comprises 1 and 3 days in 2019, 1 and 4 days in 2019, 1 and 5 days in 2019.
Through the technical scheme, the first identification number and the second identification number can be verified, the situation that information and data are omitted when the first backup terminal and the second backup terminal send the information and the data to the backup receiving terminal is avoided, and the stability and the accuracy of transmission of the backup information and the data are guaranteed.
Step S150, sending the first identification number segment to the first backup terminal, where the first backup terminal selects first backup information data based on the first identification number segment and sends the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal performs recovery processing on the first backup information data.
The first backup terminal stores all the power data according to the time dimension, wherein the time dimension can be every day, namely the power data corresponding to 1, 3 and 2019 is the to-be-restored sub-data corresponding to 1, 3 and 2019. Each of the sub-data to be recovered may have a unique time tag. The first identification number segment comprises a time tag of corresponding sub-data to be restored, the first backup terminal selects corresponding sub-data to be restored based on the first identification number segment, all the sub-data to be restored form first backup information data, the first backup terminal sends the first backup information data to a backup receiving terminal after selecting all the sub-data to be restored to form the first backup information data, the backup receiving terminal carries out corresponding decompression and decryption, the decompression and decryption can be means of the prior art, and the method is not repeated.
Step S160, sending the second identification number segment to the second backup terminal, where the second backup terminal selects second backup information data based on the second identification number segment and sends the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal performs recovery processing on the second backup information data.
The second backup terminal stores all the power data according to the time dimension, wherein the time dimension can be every day, namely the power data corresponding to 1, month and 4 days in 2019 is the to-be-restored sub-data corresponding to 1, month and 4 days in 2019. The second identification number segment comprises a time tag corresponding to the sub-data to be restored, the second backup terminal selects corresponding sub-data to be restored based on the second identification number segment, all the sub-data to be restored form second backup information data, the second backup terminal sends the second backup information data to the backup receiving terminal after selecting all the sub-data to be restored to form the second backup information data, the backup receiving terminal carries out corresponding decompression and decryption, the decompression and decryption can be means of the prior art, and the method is not repeated.
Through the technical scheme, the first backup terminal and the second backup terminal can select the corresponding subdata to be restored according to the time tags.
According to the technical scheme, the first backup terminal and the second backup terminal can respectively send different sub-data to be recovered to the backup receiving terminal, so that the plurality of backup terminals simultaneously and parallelly send data to the backup receiving terminal, the data receiving efficiency of the backup receiving terminal is improved, and when the backup information and the data are sent to the backup receiving terminal, the data transmission of the first backup terminal and the second backup terminal is dynamically controlled according to the first uplink rate, the second uplink rate and the total downlink rate, so that the stability of the information and data transmission is ensured, and the transmission efficiency of the information and the data is improved.
The technical solution provided by the present invention is, as shown in fig. 3, further providing a multi-region information backup verification recovery device suitable for a middlebox, including a first backup terminal disposed in a first region, a second backup terminal disposed in a second region, and a recovery request terminal disposed in a third region, where the first backup terminal and the second backup terminal respectively store the same backup data, and the middlebox performs backup verification recovery through the following modules, including:
the receiving module is used for receiving a verification recovery request and backup receiving end information sent by a recovery request end, and determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal if the verification recovery request passes;
a channel establishing module, configured to establish a first transmission channel between the backup address and the first address, establish a second transmission channel between the backup address and the second address, obtain a first uplink rate of the first backup terminal in the first transmission channel, and obtain a second uplink rate of the second backup terminal in the second transmission channel;
a rate obtaining module, configured to obtain a total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel;
a transmission ratio determining module, configured to determine a first transmission ratio in a first backup terminal and a second transmission ratio in a second backup terminal based on the first uplink rate, the second uplink rate, and the total downlink rate, and select a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio;
the first transmission module is used for transmitting the first identification number segment to the first backup terminal, the first backup terminal selects first backup information data based on the first identification number segment and transmits the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal restores the first backup information data;
and the second transmission module is used for transmitting the second identification number segment to the second backup terminal, the second backup terminal selects second backup information data based on the second identification number segment and transmits the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal restores the second backup information data.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and the execution of the execution instructions by the at least one processor causes the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. The method for multi-region information backup verification and recovery of the middle station is characterized by comprising a first backup terminal arranged in a first region, a second backup terminal arranged in a second region and a recovery request end arranged in a third region, wherein the first backup terminal and the second backup terminal respectively store the same backup data, and the middle station performs backup verification and recovery through the following steps of:
receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes, determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal;
establishing a first transmission channel between the backup address and the first address, establishing a second transmission channel between the backup address and the second address, acquiring a first uplink rate of the first backup terminal in the first transmission channel, and acquiring a second uplink rate of the second backup terminal in the second transmission channel;
acquiring the total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel;
determining a first transmission proportion in a first backup terminal and a second transmission proportion in a second backup terminal based on the first uplink rate, the second uplink rate and the total downlink rate, and selecting a first identification number segment and a second identification number segment according to the first transmission proportion and the second transmission proportion;
sending the first identification number segment to the first backup terminal, wherein the first backup terminal selects first backup information data based on the first identification number segment and sends the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal restores the first backup information data;
sending the second identification number segment to the second backup terminal, wherein the second backup terminal selects second backup information data based on the second identification number segment and sends the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal restores the second backup information data;
selecting a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio comprises:
acquiring a data recovery directory in the verification recovery request, selecting all time tags of a plurality of sub-data to be recovered based on the data recovery directory, counting the number of all the time tags, and sequencing all the time tags according to the time of the time tags to obtain a tag sequencing queue, wherein each time tag in the tag sequencing queue has a number corresponding to the time tag;
obtaining a first identification number based on the number of all the time labels and the first transmission proportion, and obtaining a second identification number based on the number of all the time labels and the second transmission proportion;
generating a first identification number segment and a second identification number segment based on the first identification number and the second identification number;
the first identification number segment comprises a time tag of corresponding sub-data to be restored, the first backup terminal selects the corresponding sub-data to be restored based on the first identification number segment, and the first backup terminal can send the first backup information data to the backup receiving terminal after selecting all the sub-data to be restored to form the first backup information data;
the second identification number segment comprises a time label corresponding to the subdata to be restored, the second backup terminal selects corresponding subdata to be restored based on the second identification number segment, and the second backup terminal can send the second backup information data to the backup receiving terminal after selecting all the subdata to be restored to form second backup information data.
2. The multi-region information backup verification recovery method for a middlebox of claim 1,
receiving a verification recovery request and backup receiving end information sent by a recovery request end, and if the verification recovery request passes, determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal, wherein the determining comprises the following steps:
comparing the verification information in the verification recovery request with preset information, and if the verification information is consistent with the preset information, the verification recovery request passes;
and determining the backup address of the backup receiving terminal information, the first address of the first backup terminal and the second address of the second backup terminal.
3. The multi-region information backup verification recovery method for a middlebox of claim 1,
the acquiring a first uplink rate and a second uplink rate of the first backup terminal and the second backup terminal in the first transmission channel and the second transmission channel comprises:
presetting a rate acquisition time period, obtaining a first suspension time based on the obtained first current time and the rate acquisition time period, obtaining each first time point from the first current time to the first suspension time and the uplink rate of the first transmission channel at each first time point, and obtaining the average uplink rate of the first transmission channel, wherein the average uplink rate of the first transmission channel is the first uplink rate;
and obtaining a second stopping time based on the obtained second current time and the rate acquisition time period, and obtaining each second time point from the second current time to the second stopping time and the uplink rate of the second transmission channel at each second time point to obtain the average uplink rate of the second transmission channel, wherein the average uplink rate of the second transmission channel is the second uplink rate.
4. The multi-region information backup verification recovery method for a middlebox of claim 1,
determining a first transmission proportion in a first backup terminal and a second transmission proportion in a second backup terminal based on the first uplink rate, the second uplink rate and the total downlink rate, wherein selecting a first identification number segment and a second identification number segment according to the first transmission proportion and the second transmission proportion comprises:
judging that the total downlink rate is greater than or equal to the sum of the first uplink rate and the second uplink rate;
acquiring first processing speed information of the first backup terminal and second processing speed information of a second backup terminal;
and obtaining a first transmission proportion and a second transmission proportion based on the first processing speed information, the second processing speed information, the first uplink rate and the second uplink rate.
5. The multi-region information backup verification recovery method for a middlebox of claim 4,
obtaining a first transmission ratio and a second transmission ratio based on the first processing speed information, the second processing speed information, the first uplink rate, and the second uplink rate includes:
the first transmission ratio and the second transmission ratio are calculated by the following formulas,
Figure DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 158727DEST_PATH_IMAGE002
as a value of the total downlink rate,
Figure DEST_PATH_IMAGE003
is the value of the first uplink rate,
Figure 426373DEST_PATH_IMAGE004
is the value of the second uplink rate,
Figure 912849DEST_PATH_IMAGE005
is a numerical value of the first processing speed information,
Figure DEST_PATH_IMAGE007
is a numerical value of the second processing speed information,
Figure 610678DEST_PATH_IMAGE008
is the value of the first transmission ratio,
Figure 549815DEST_PATH_IMAGE009
is the value of the second transmission ratio.
6. The method for multi-region information backup verification recovery applicable to middleboxes of claim 5, further comprising:
acquiring first cache available space information and first CPU occupancy rate information of the first backup terminal;
generating first processing speed information based on the first cache available space information and the first CPU occupancy rate information, calculating a value of the first processing speed information by the following formula,
Figure DEST_PATH_IMAGE010
wherein the content of the first and second substances,
Figure 355572DEST_PATH_IMAGE011
in order to cache the weight values of the data,
Figure DEST_PATH_IMAGE012
for the first cache value of the available space information,
Figure 430976DEST_PATH_IMAGE013
is a weight value of the CPU,
Figure DEST_PATH_IMAGE014
is the value of the first CPU occupancy information.
7. The method for multi-region information backup verification recovery applicable to middleboxes of claim 5, further comprising:
acquiring second cache available space information and second CPU occupancy rate information of the second backup terminal;
generating second processing speed information based on the second cache available space information and the second CPU occupancy rate information, calculating the value of the second processing speed information by the following formula,
Figure 96443DEST_PATH_IMAGE015
wherein the content of the first and second substances,
Figure 788456DEST_PATH_IMAGE011
in order to cache the weight values of the data,
Figure 197572DEST_PATH_IMAGE016
to second cache the value of the available spatial information,
Figure DEST_PATH_IMAGE017
is a weight value of the CPU,
Figure 393061DEST_PATH_IMAGE018
is the value of the second CPU occupancy information.
8. The method for multi-region information backup verification recovery applicable to middleboxes of claim 1, further comprising:
screening the missing time labels if the sum of the first identification number and the second identification number is not equal to the number of all the time labels;
if the first transmission proportion is larger than or equal to the second transmission proportion, adding the missing time labels into a first identification number, and updating the first identification number segment to enable the first identification number segment to comprise the missing time labels;
and if the first transmission proportion is smaller than the second transmission proportion, adding the missed time labels into a second identification number, and updating the second identification number segment to enable the second identification number segment to include the missed time labels.
9. The multi-zone information backup verification and recovery device applicable to the middle station is characterized by comprising a first backup terminal arranged in a first zone, a second backup terminal arranged in a second zone and a recovery request end arranged in a third zone, wherein the first backup terminal and the second backup terminal respectively store the same backup data, and the middle station performs backup verification and recovery through the following modules, comprising:
the receiving module is used for receiving a verification recovery request and backup receiving end information sent by a recovery request end, and determining a backup address of the backup receiving end information, a first address of a first backup terminal and a second address of a second backup terminal if the verification recovery request passes;
a channel establishing module, configured to establish a first transmission channel between the backup address and the first address, establish a second transmission channel between the backup address and the second address, obtain a first uplink rate of the first backup terminal in the first transmission channel, and obtain a second uplink rate of the second backup terminal in the second transmission channel;
a rate obtaining module, configured to obtain a total downlink rate of the backup receiving end in the first transmission channel and the second transmission channel;
a transmission ratio determining module, configured to determine a first transmission ratio in a first backup terminal and a second transmission ratio in a second backup terminal based on the first uplink rate, the second uplink rate, and the total downlink rate, and select a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio;
the first transmission module is used for transmitting the first identification number segment to the first backup terminal, the first backup terminal selects first backup information data based on the first identification number segment and transmits the first backup information data to a backup receiving terminal through the first transmission channel, and the backup receiving terminal restores the first backup information data;
the second transmission module is used for transmitting the second identification number segment to the second backup terminal, the second backup terminal selects second backup information data based on the second identification number segment and transmits the second backup information data to a backup receiving terminal through the second transmission channel, and the backup receiving terminal restores the second backup information data;
selecting a first identification number segment and a second identification number segment according to the first transmission ratio and the second transmission ratio comprises:
acquiring a data recovery directory in the verification recovery request, selecting all time tags of a plurality of sub-data to be recovered based on the data recovery directory, counting the number of all the time tags, and sequencing all the time tags according to the time of the time tags to obtain a tag sequencing queue, wherein each time tag in the tag sequencing queue has a number corresponding to the time tag;
obtaining a first identification number based on the number of all the time labels and the first transmission proportion, and obtaining a second identification number based on the number of all the time labels and the second transmission proportion;
generating a first identification number segment and a second identification number segment based on the first identification number and the second identification number;
the first identification number segment comprises a time tag of corresponding sub-data to be restored, the first backup terminal selects the corresponding sub-data to be restored based on the first identification number segment, and the first backup terminal can send the first backup information data to the backup receiving terminal after selecting all the sub-data to be restored to form the first backup information data;
the second identification number segment comprises a time label corresponding to the subdata to be restored, the second backup terminal selects corresponding subdata to be restored based on the second identification number segment, and the second backup terminal can send the second backup information data to the backup receiving terminal after selecting all the subdata to be restored to form second backup information data.
CN202111615353.9A 2021-12-28 2021-12-28 Multi-region information backup verification recovery method and device suitable for middle station Active CN113986620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111615353.9A CN113986620B (en) 2021-12-28 2021-12-28 Multi-region information backup verification recovery method and device suitable for middle station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111615353.9A CN113986620B (en) 2021-12-28 2021-12-28 Multi-region information backup verification recovery method and device suitable for middle station

Publications (2)

Publication Number Publication Date
CN113986620A CN113986620A (en) 2022-01-28
CN113986620B true CN113986620B (en) 2022-04-12

Family

ID=79734598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111615353.9A Active CN113986620B (en) 2021-12-28 2021-12-28 Multi-region information backup verification recovery method and device suitable for middle station

Country Status (1)

Country Link
CN (1) CN113986620B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100359423B1 (en) * 2002-01-04 2002-11-07 Ncerti Co Ltd Very high speed high capacity backup system and backup method thereof
CN1873622A (en) * 2006-04-20 2006-12-06 北京艾德斯科技有限公司 Method and equipment for backing up, replicating and recovering data under environment
CN104010015A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 File transmission system, policy server, terminal and file transmission method
CN104836783B (en) * 2014-06-04 2018-10-30 腾讯科技(北京)有限公司 The method, apparatus and system of data transmission
CN104331345B (en) * 2014-11-21 2015-09-30 四川神琥科技有限公司 A kind of data reconstruction method
CN104572357A (en) * 2014-12-30 2015-04-29 清华大学 Backup and recovery method for HDFS (Hadoop distributed filesystem)
CN107819891B (en) * 2017-10-16 2020-01-24 平安科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111107630B (en) * 2018-10-26 2022-05-31 成都华为技术有限公司 Communication method and communication device
CN110795284B (en) * 2019-10-25 2022-03-22 浪潮电子信息产业股份有限公司 Data recovery method, device and equipment and readable storage medium
CN111831485B (en) * 2020-07-21 2023-01-13 平安科技(深圳)有限公司 Data recovery method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113986620A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
US8825849B2 (en) Distributed data collection and aggregation
US10268750B2 (en) Log event summarization for distributed server system
JP2012509520A (en) Information recovery method and apparatus using snapshot database
CN111641563B (en) Flow self-adaption method and system based on distributed scene
CN110968478B (en) Log acquisition method, server and computer storage medium
CN113157489B (en) Database data backup method and device and computer equipment
CN103064757A (en) Method and system for backing up data
CN111382008A (en) Virtual machine data backup method, device and system
CN110166529A (en) It keeps logging in state method, apparatus, equipment and storage medium
CN112422368A (en) Database cluster monitoring method and system based on clickhouse
CN113364852B (en) File transmission method and device and server
CN113986620B (en) Multi-region information backup verification recovery method and device suitable for middle station
CN106875184B (en) Abnormal scene simulation method, device and equipment
CN107730380B (en) Method, system and server for processing joint account
CN110995687A (en) Cat pool equipment identification method, device, equipment and storage medium
CN114625756A (en) Data query method and device and server
CN112035458B (en) Data isolation method, device and equipment
CN113778831A (en) Data application performance analysis method, device, equipment and medium
CN113553362A (en) Carbon energy consumption monitoring method and device based on consensus mechanism and storage medium
CN110738571A (en) transaction risk control method and related device
CN113449493A (en) Method, device and equipment for generating report based on historical data and storage medium
CN110362422A (en) A kind of data back up method, apparatus and system
CN111913732A (en) Service updating method and device, management server and storage medium
CN112308660A (en) Data processing method, device and system
CN114693182B (en) Service work order data processing method based on cloud fusion technology

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