Broadcast data backup system and method
Through time period classification and master-slave device status detection, and identification and adjustment of backup strategies, the problems of abnormal connections and insufficient resources in the broadcast data backup system are solved, timely data transmission and resource optimization are realized, and the integrity of backup is ensured. efficiency.
Patent Information
- Application Number
- CN202410506137.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-04-25
AI Technical Summary
The existing broadcast data backup system cannot identify the master-support connection abnormalities in time when the main device is running abnormally, resulting in the backup data being unable to be transmitted in time, which may cause data loss. In addition, backup during non-peak periods can easily cause backup accumulation and insufficient resources, affecting the system's operation.
Through the time period classification module, network transmission quality inspection is carried out, backup requirements are evaluated, and connection abnormalities are identified and backup switching is performed to realize decentralized backup and resource optimization of data.
Ensure the timeliness and integrity of backup data, avoid backup interruptions and resource waste, improve backup efficiency and resource utilization, and reduce the risk of data loss.
Smart Images

Figure CN118316946B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of broadcast data backup management, and in particular relates to a broadcast data backup system and method. Background Art
[0002] As a traditional information dissemination medium, radio allows people to obtain information on news, current affairs, etc. through radio, and can also listen to a variety of entertainment programs. In order to meet the listening needs of different groups of people, radio stations usually produce various types of radio programs, which in turn generate massive amounts of broadcast data. In order to ensure that this data will not be permanently lost due to accidents or technical failures, it is very necessary to back it up.
[0003] It is well known that broadcast data is easily affected by network transmission during the backup process, which may cause the backup data to be unable to be transmitted normally, or even cause backup interruption. At present, in order to improve the real-time and reliability of broadcast data backup, most of them use master-slave devices for backup switching. There are also some solutions in the prior art that use master-slave devices for broadcast data backup. For example, a Chinese invention patent application with publication number CN115361269B discloses an emergency broadcast equipment hot backup method, which writes the operating parameters of each master device and backup device into the device management table, and then runs a preset number of master devices and backup devices during the broadcast data backup process, and monitors the operating status of the master device at the same time. When the main device runs abnormally, the backup device is designated to take over the operation based on the device management table. When the abnormality is restored, the operating status of the backup device that takes over is adjusted based on the device management table, which greatly improves the real-time backup of broadcast data. However, although the invention can allow the backup device to take over when the main device operates abnormally, it ignores the detection of the connection status between the main device and the backup device, resulting in the failure to timely identify the abnormality of the main-backup connection, which may easily cause the backup data to fail to be transmitted to the backup device in time when the main device operates abnormally, and all data since the last backup may be lost, resulting in permanent data loss, causing serious impact on business operations. At the same time, the abnormality of the main-backup connection may cause the backup task to be in a waiting state for a long time, consuming system resources and network bandwidth, thereby affecting the normal operation of the system.
[0004] In addition, since broadcast data backup requires network resources, in order to avoid affecting business operations during peak hours, backup operations are usually performed during non-peak hours. This backup method is only suitable for situations where the broadcast data backup task volume is small and the backup demand is not high. Since the backup window during non-peak hours is relatively short, when the broadcast data backup task volume is large, backing up only during non-peak hours is likely to cause backup accumulation, resulting in insufficient backup system resources, reduced backup efficiency, or even backup task failure. Moreover, once a failure or interruption occurs during non-peak hours, it may affect the continuity of the backup. Summary of the invention
[0005] To this end, an object of an embodiment of the present application is to provide a broadcast data backup system and method, which effectively solves the problems mentioned in the background technology.
[0006] The purpose of the present invention can be achieved through the following technical solutions: The first aspect of the present invention provides a broadcast data backup system, including the following modules: a time period division and classification module, which is used to select a classification period and count the number of collection days in the classification period, and at the same time divide the time interval of a single collection day into time periods according to a preset time interval to obtain a number of time periods corresponding to each collection day, and then perform network transmission quality detection in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and classifies the time periods into backup suitability levels accordingly.
[0007] The backup period planning module is used to extract the current broadcast data to be backed up from the backup plan, and evaluate the backup demand of each extracted broadcast data, and then plan the backup period of each broadcast data based on the evaluation results and the backup suitability level corresponding to each period.
[0008] In an optional method, the backup demand situation of each extracted broadcast data is evaluated according to the following process: content topics are extracted from each broadcast data, and matched with the content importance corresponding to each content topic stored in the cloud database, thereby matching the content importance corresponding to each broadcast data.
[0009] Obtain the formation time of each piece of broadcast data, compare it with the current time, and calculate the content timeliness of each piece of broadcast data
[0010] The backup requirement degree corresponding to each piece of broadcast data is obtained based on the content importance and content timeliness corresponding to each piece of broadcast data.
[0011] In a further optional manner, planning the backup period of each broadcast data is performed as follows: defining the backup requirement range corresponding to each backup suitability level according to the number of classified backup suitability levels and the arrangement result of each backup suitability level.
[0012] The backup requirement degree corresponding to each broadcast data is compared with the backup requirement range corresponding to each backup suitability level, thereby matching the backup suitability level corresponding to each broadcast data. At the same time, the backup time period corresponding to each broadcast data is obtained by combining the time period existing in the time period group corresponding to each backup suitability level.
[0013] The cloud database is used to store the content importance corresponding to various content topics, store the timeliness and completeness of standard transmission, and store high backup requirements.
[0014] The master-slave device backup monitoring module is used to detect the operating status of the master and slave devices and the connection status between the master and slave devices in real time during the backup operation of the corresponding broadcast data using the master and slave backup devices during the backup period corresponding to each broadcast data.
[0015] In one achievable method, the connection status detection process between the master and slave devices is as follows: during the operation of the master-slave backup device, the master backup device sends data packets to the slave backup device in real time, and the slave backup device receives the data packets, and the sending time, sending amount, receiving time and receiving amount are recorded at the same time.
[0016] Compare the sending time and receiving time corresponding to each data packet transmission to calculate the master-slave device transmission timeliness. The specific calculation formula is: Where t 发送 ,t 接收 They respectively represent the sending time and receiving time corresponding to each data packet sending, and Δt0 represents the normal transmission time corresponding to each data packet sending.
[0017] Compare the sending amount and receiving amount corresponding to each data packet transmission to calculate the transmission integrity of the master and slave devices. The specific calculation formula is: Where p 发送 、p 接收 Respectively represent the sending amount and receiving amount corresponding to each data packet sending.
[0018] In a further achievable method, the operation of identifying whether the master-slave connection is abnormal based on the connection status between the master and slave devices is as follows: the master-slave device transmission timeliness and the master-slave device transmission integrity corresponding to each data packet sending are respectively compared with the standard transmission timeliness and the standard transmission integrity stored in the cloud database; if the master-slave device transmission timeliness corresponding to a certain data packet sending is less than the standard transmission timeliness or the master-slave device transmission integrity is less than the standard transmission integrity, then it is identified that there is an abnormality in the master-slave connection.
[0019] The backup switching adjustment module is used to identify whether there is an operating abnormality based on the monitoring results of the operating status of the master and backup devices. If an operating abnormality is identified, it is used to identify whether the master-slave connection is abnormal based on the connection status between the master and slave devices at that moment. If the master-slave connection is abnormal, the backup switching adjustment is performed based on the backup requirements of the current broadcast data.
[0020] The second aspect of the present invention proposes a broadcast data backup method, comprising the following steps: S1, selecting a classification period, and counting the number of collection days in the classification period, and dividing the time interval of a single collection day into time periods according to preset time intervals to obtain a number of time periods corresponding to each collection day.
[0021] S2. Perform network transmission quality detection in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and classify the time period into backup suitability levels based on the detection.
[0022] S3. Extract the current broadcast data to be backed up from the backup plan, and evaluate the backup requirements of each extracted broadcast data.
[0023] S4. Plan the backup time period for each broadcast data by combining the evaluation result with the backup suitability level corresponding to each time period.
[0024] S5. In the backup period corresponding to each piece of broadcast data, the operation status of the master and backup devices and the connection status between the master and slave devices are detected in real time during the backup operation of the corresponding broadcast data using the master and slave backup devices.
[0025] S6. Identify whether there is an operation abnormality based on the monitoring results of the operation status of the master-backup device. If an operation abnormality is identified, identify whether the master-slave connection is abnormal based on the connection status between the master and slave devices at that moment. When it is identified that there is an operation abnormality in the master-backup device and there is an abnormality in the master-slave connection, execute S7. When it is identified that there is an operation abnormality in the master-backup device and there is no abnormality in the master-slave connection, execute S8.
[0026] S7. Adjust the backup method based on the backup requirements of the current broadcast data.
[0027] S8. Switching from the primary backup device to the secondary backup device to continue backing up the broadcast data.
[0028] In combination with all the above-mentioned technical solutions, the positive effects of the present invention are as follows: 1. The present invention periodically detects the network transmission quality in each time period divided into a single day, thereby classifying the time period into a backup suitability level, and at the same time evaluates the backup demand situation of the current broadcast data to be backed up, so as to plan the backup time period of each broadcast data based on the evaluation result and the backup suitability level corresponding to each time period, thereby realizing the decentralized backup of broadcast data in the time period, avoiding the backup limitation caused by the unified backup of broadcast data in non-peak time periods, on the one hand, being able to meet the backup needs while ensuring the timeliness and integrity of the backup data, and on the other hand, avoiding backup accumulation, which not only reduces the impact on the performance of the backup system, but also reduces the risk of backup interruption to a certain extent.
[0029] 2. The present invention not only can perform real-time detection of the operating status of the master and backup devices in the backup operation of the corresponding broadcast data by using the master and slave backup devices during the backup period of each broadcast data, but also adds the detection of the connection status between the master and slave devices. In this way, the abnormal connection between the master and slave devices can be identified in time, and then measures can be taken in time to repair it, avoiding data transmission interruption or data loss, thereby ensuring the integrity of the backup data. At the same time, it can avoid the backup task being in a waiting state for a long time due to the failure to take effective measures when the master-slave connection is abnormal, which affects the normal operation of the system, and is conducive to ensuring the normal backup of broadcast data.
[0030] 3. When identifying that the operation of the primary and backup devices is abnormal and the master-slave connection is also abnormal, the present invention obtains the backup demand situation of the current broadcast data, and adjusts the backup mode in combination with the master-slave connection abnormality. It can make targeted adjustments to the backup when the master-slave connection is abnormal, thereby not only reducing the risk of data loss, but also maximizing the use of the resources of the backup system by reasonably adjusting the backup mode, thereby improving backup efficiency and resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.
[0032] Figure 1 It is a schematic diagram of system module connection of the present invention.
[0033] Figure 2 The present invention is a flowchart of the steps for implementing the method. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not 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.
[0035] Example 1
[0036] See also Figure 1 As shown, the present invention provides a broadcast data backup system, including a time period classification module, a backup time period planning module, a cloud database, a master-slave device backup monitoring module and a backup switching adjustment module.
[0037] The above-mentioned time period division and classification module is connected to the backup time period planning module, the backup time period planning module is connected to the master-slave device backup monitoring module, the master-slave device backup monitoring module is connected to the backup switching adjustment module, and the cloud database is connected to the backup time period planning module and the backup switching adjustment module respectively.
[0038] The time period division and classification module is used to select a classification period. In particular, the selected duration of the classification period should not be too short to avoid too few collection days, thereby affecting the rationality of the time period classification. Exemplarily, the classification period can be 3 months, 6 months, etc., and the number of collection days in the classification period is counted. At the same time, the time interval of a single collection day is divided into time periods according to preset time intervals to obtain several time periods corresponding to each collection day, and then network transmission quality detection is performed in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and the time period is classified into a backup suitability level based on this.
[0039] Applied to the above embodiment, when dividing the time interval of a single collection day into time periods, taking into account that the duration of a single collection day is 24 hours, a moment can be selected as the starting moment of the time interval, and the moment 24 hours after the starting moment is used as the ending moment. The starting moment and the ending moment constitute the time interval. For example, the starting moment is 6:00, and the preset time interval is 2 hours. The divided time periods can be 6:00-8:00, 8:00-10:00, 10:00-12:00, 12:00-14:00, 14:00-16:00, etc.
[0040] Further preferably, the process of classifying the time periods into backup suitability levels is as follows: the network transmission quality detection results of each time period within each collection day are imported into the statistical expression Get the network transmission quality coefficient q corresponding to each time period on each collection day it , where i represents the number of the collection day in the classification period, i = 1, 2, ..., n, t represents the time period number divided by a single collection day, t = 1, 2, ..., x, V it 、nr it 、nl it They respectively represent the network transmission speed, network delay rate, and network packet loss rate in the tth period of the i-th collection day. V0, nr0, and nl0 respectively represent the normal network transmission speed, normal network delay rate, and normal network packet loss rate.
[0041] The normal network transmission speed, normal network delay rate, and normal network packet loss rate mentioned above are obtained based on the network bandwidth used by the backup terminal. In a specific embodiment, the normal network transmission speed corresponding to a network bandwidth of 10Mbps is approximately 1.25MB per second, the normal network delay rate corresponding to a network bandwidth of 10Mbps is 10ms, and the normal network packet loss rate corresponding to a network bandwidth of 10Mbps is 0.8%.
[0042] It is important to know that the selection of network transmission speed, network delay rate and network packet loss rate as indicators affecting network transmission quality in broadcast data backup is mainly based on the following reasons: Network transmission speed is the amount of data that can be transmitted per unit time. In broadcast data backup, backup data needs to be transmitted to the backup device through the network. The speed of network transmission directly affects the transmission efficiency and speed of backup data. A higher network transmission speed can speed up the transmission of backup data, ensure that the backup task can be completed within a reasonable time, reduce the occupation of network resources during the backup process, and improve backup efficiency and system response speed.
[0043] The network delay rate refers to the delay time experienced by network data during transmission. Broadcast data backup requires ensuring that the backup data can reach the backup device in a timely manner, and the network delay rate directly affects the arrival time of the data and the real-time performance of data transmission. A lower network delay rate can reduce the waiting time during data transmission, improve the real-time performance and accuracy of data, and reduce the risk of data loss or data inconsistency during the backup process.
[0044] The network packet loss rate refers to the proportion of data packets lost during network transmission. A high packet loss rate may lead to incomplete backup data transmission or data corruption, thus affecting the integrity and availability of backup data. By monitoring and controlling the network packet loss rate, data loss during backup data transmission can be reduced, ensuring that backup data can reach the backup device intact, and improving the reliability and stability of backup data.
[0045] Taking the above three factors into consideration, network transmission speed, network delay rate and network packet loss rate are important indicators affecting network transmission quality in broadcast data backup.
[0046] Furthermore, the selection of a classification period can periodically detect the network transmission quality, and then dynamically classify the time periods according to the detection results, thereby avoiding the fact that the time period classification is fixed and does not conform to the actual situation, thereby affecting the rationality of the classification.
[0047] The network transmission quality coefficients of the same period corresponding to each collection day are compared with each other, from which the median network transmission quality coefficient and the average network transmission quality coefficient corresponding to each period are obtained, and then the formula is used to
[0048] The network transmission differentiation corresponding to each time period is calculated, and e is expressed as a natural constant. The greater the difference between the median network transmission quality coefficient and the average network transmission quality coefficient, the greater the network transmission differentiation.
[0049] It is important to understand that when the median of a set of data differs more from the mean, it means that the distribution of the data may be more skewed or there may be outliers, that is, the data is more dispersed.
[0050] The network transmission differentiation degree corresponding to each time period is compared with the set limited network transmission differentiation degree. For example, the limited network transmission differentiation degree is 0.3, and then the prediction model is used. Get the network transmission quality coefficient Q corresponding to each time period t , σ t It is represented by the network transmission differentiation degree corresponding to the tth period, σ0 is represented by the set limited network transmission differentiation degree, (q t ) mid It is expressed as the median network transmission quality coefficient of the tth period on each collection day.
[0051] According to the order of each time period, each time period is extracted as the main time period, and the network transmission quality coefficient of the main time period is similarly calculated with the network transmission quality coefficient of other time periods to obtain the similarity, where the similarity calculation expression is: Q 主体 , Q 其他 They represent the trend network transmission quality coefficients of the main period and other periods, Q 主体 With Q 其他 The closer they are, the greater the similarity between the trend network transmission quality coefficient of the main period and the trend network transmission quality coefficient of other periods.
[0052] The network transmission similarity between each time period as the main time period and other time periods is compared with the similarity threshold set by the system. For example, the similarity threshold is 80%. Other time periods greater than or equal to the similarity threshold are selected from the main time period to form a time period group, and the trend network transmission quality coefficient corresponding to each time period in the corresponding time period group is averaged to obtain the representative network transmission quality coefficient corresponding to the corresponding time period group.
[0053] The number of time period groups formed is counted as the number of classified backup suitability levels, and each backup suitability level is arranged in descending order to obtain the arrangement result of the backup suitability level. At the same time, each time period group is arranged in the order representing the network transmission quality coefficient from large to small to obtain the arrangement result of the time period group. Thus, the arrangement result of the backup suitability level is paired with the arrangement result of the time period group to obtain the time period group set paired with the backup suitability level, so that the time periods in each time period group are classified into the corresponding backup suitability level.
[0054] In the specific implementation of the above scheme, assuming that the number of time period groups is 4, the number of classified backup suitability levels is 4, and the arrangement results of the backup suitability levels are the first backup suitability level, the second backup suitability level, the third backup suitability level, and the fourth backup suitability level. In matching the backup suitability levels and time period groups, the arrangement results of the backup suitability levels and the time period groups are extracted and the first-ranked backup suitability level is paired with the time period group. Similarly, the second-ranked backup suitability level is paired with the time period group, until the last-ranked backup suitability level is extracted and paired with the time period group.
[0055] The backup period planning module is used to extract the current broadcast data to be backed up from the backup plan, and evaluate the backup demand of each extracted broadcast data, and then plan the backup period of each broadcast data based on the evaluation result and the backup suitability level corresponding to each period.
[0056] As a further innovation of the present invention, the backup demand situation of each extracted broadcast data is evaluated by referring to the following process: content themes are extracted from each broadcast data, and they are matched with the content importance corresponding to each content theme stored in the cloud database, thereby matching the content importance corresponding to each broadcast data.
[0057] For example, the content themes of broadcast data include news and current affairs, entertainment and culture, education and academics, business and finance, health and medical care, etc. Different content themes have different social values. For example, news and current affairs have higher social value, so they are more important. Although some entertainment, culture and other themes have higher audience attention, their social value is relatively low, so they are less important.
[0058] Furthermore, the content importance corresponding to each content theme stored in the cloud database can be counted by the number of content themes, and the value of the content importance can be set between 0-1. For example, there are 5 types of content themes, and the content importance corresponding to each content theme can be 0.2, 0.4, 0.6, 0.8, and 1.
[0059] Obtain the formation time of each piece of broadcast data, compare it with the current time, and calculate the content timeliness of each piece of broadcast data Exemplarily, the reference duration may be 2 days.
[0060] It should be explained that the shorter the time when the broadcast data is formed, the more important it is to back up the data in time to maintain the real-time nature of the information, so the greater the requirement for backup timeliness.
[0061] The content importance and content timeliness of each broadcast data are evaluated by the Obtain the backup requirement corresponding to each piece of broadcast data.
[0062] In further innovative implementation, the backup period of each broadcast data is planned as follows: the backup requirement range corresponding to each backup suitability level is defined according to the number of classified backup suitability levels and the arrangement results of each backup suitability level.
[0063] Specifically, since the value of the backup requirement is between 0 and 1, in the example where the number of backup suitability levels is 4, the backup requirement ranges corresponding to each backup suitability level may be [0, 0.25], (0.25, 0.5], (0.5, 0.75], (0.75, 1].
[0064] The backup requirement degree corresponding to each broadcast data is compared with the backup requirement range corresponding to each backup suitability level, thereby matching the backup suitability level corresponding to each broadcast data. At the same time, the backup time period corresponding to each broadcast data is obtained by combining the time period existing in the time period group corresponding to each backup suitability level.
[0065] The present invention periodically detects the network transmission quality in each time period divided into a single day, thereby classifying the time periods into backup suitability levels, and at the same time evaluates the backup demand situation of the broadcast data currently to be backed up, so as to plan the backup time period of each broadcast data based on the evaluation result and the backup suitability level corresponding to each time period, thereby realizing the decentralized backup of broadcast data in the time period and avoiding the backup limitation caused by the centralized backup of broadcast data in non-peak time periods. On the one hand, it can ensure the timeliness and integrity of the backup data while meeting the backup demand, and on the other hand, it can avoid backup accumulation, which not only reduces the impact on the performance of the backup system, but also reduces the risk of backup interruption to a certain extent.
[0066] The cloud database is used to store the content importance corresponding to each content theme, store the timely degree of transmission meeting the standard and the completeness of transmission meeting the standard, and store the high backup requirement.
[0067] The master-slave device backup monitoring module is used to detect the operating status of the master and slave devices and the connection status between the master and slave devices in real time during the backup operation of the corresponding broadcast data using the master and slave backup devices during the backup period corresponding to each broadcast data.
[0068] The connection status detection process between the master and slave devices is as follows: during the operation of the master-slave backup device, the master backup device sends data packets to the slave backup device in real time, and the slave backup device receives the data packets, and records the sending time, sending amount, receiving time and receiving amount.
[0069] Compare the sending time and receiving time corresponding to each data packet transmission to calculate the master-slave device transmission timeliness. The specific calculation formula is: Where t 发送 ,t 接收 They represent the sending time and receiving time corresponding to each data packet sending, respectively, and Δt0 represents the normal transmission time corresponding to each data packet sending. The method of obtaining Δt0 is to detect the network transmission speed NS between the master and slave devices at the same time as each data packet is sent, and obtain the network connection distance L between the master and slave devices. Based on the sending amount corresponding to each data packet sending, the formula is used to obtain Get the normal transmission duration corresponding to each data packet sending.
[0070] Compare the sending amount and receiving amount corresponding to each data packet transmission to calculate the transmission integrity of the master and slave devices. The specific calculation formula is: Where p 发送 、p 接收 Respectively represent the sending amount and receiving amount corresponding to each data packet sending.
[0071] The backup switching adjustment module is used to identify whether there is an operation abnormality based on the monitoring results of the operation status of the master and backup devices. If an operation abnormality is identified, then at that moment, it is identified whether the master-slave connection is abnormal based on the connection status between the master and slave devices. If the master-slave connection is abnormal, the broadcast data to be backed up corresponding to the abnormal moment is recorded as the current broadcast data, thereby performing backup switching adjustment based on the backup demand situation of the current broadcast data.
[0072] In particular, the operation of identifying whether the master-slave connection is abnormal based on the connection status between the master and slave devices is as follows: the master-slave device transmission timeliness and master-slave device transmission integrity corresponding to each data packet sending are compared with the standard transmission timeliness and standard transmission integrity stored in the cloud database respectively. Exemplarily, the standard transmission timeliness is 85%, and the standard transmission integrity is 90%. If the master-slave device transmission timeliness corresponding to a certain data packet sending is less than the standard transmission timeliness or the master-slave device transmission integrity is less than the standard transmission integrity, then it is identified that there is an abnormality in the master-slave connection. If the master-slave device transmission timeliness corresponding to a certain data packet sending is less than the standard transmission timeliness, then the master-slave connection abnormality points to transmission delay. If the master-slave device transmission integrity corresponding to a certain data packet sending is less than the standard transmission integrity, then the master-slave connection abnormality points to transmission omission.
[0073] The present invention not only can perform real-time detection of the operating status of the master and backup devices in the backup operation of the corresponding broadcast data by using the master and slave backup devices during the backup period of each broadcast data, but also adds the detection of the connection status between the master and slave devices. In this way, the abnormal connection between the master and slave devices can be identified in time, and then measures can be taken in time to repair it, avoiding data transmission interruption or data loss, thereby ensuring the integrity of the backup data. At the same time, it can avoid the backup task being in a waiting state for a long time due to the failure to take effective measures when the master-slave connection is abnormal, which affects the normal operation of the system, and is conducive to ensuring the normal backup of broadcast data.
[0074] Furthermore, the backup switching adjustment is performed based on the backup demand of the current broadcast data as follows: the backup demand of the current broadcast data is compared with the high backup demand in the cloud database. For example, the high backup demand is 0.7. At the same time, the abnormal direction of the master-slave connection is determined, and then substituted into the backup adjustment model.
[0075] The adjusted adaptive backup mode U is obtained. In the model, D1, D2, and D3 all represent constraints, where D1 = backup requirement ≥ high backup requirement, D2 = (backup requirement < high backup requirement) ∧ (the master-slave connection anomaly points to transmission omission), D3 = (backup requirement < high backup requirement) ∧ (the master-slave connection anomaly points to transmission delay), and ∧ represents and.
[0076] It should be added that cache backup means pausing the backup operation and buffering the data to be backed up in local storage, and incremental backup means backing up only the changed data, not the entire data set.
[0077] It should be understood that if the backup requirement of the current broadcast data is greater than or equal to the high backup requirement, it means that the backup requirement of the current broadcast data is relatively high. When the master-slave connection is abnormal, whether the master-slave connection anomaly points to transmission omission or transmission delay, there will be a greater risk in backing up the broadcast data. Therefore, adopting a cache backup method can avoid backup operations when the network is unstable and minimize the risk of data transmission errors.
[0078] If the backup requirement of the current broadcast data is less than the high backup requirement but the master-slave connection abnormality points to transmission delay, it means that there is no abnormality in the connection integrity between the master and the slave. At this time, the size of the backup data can be reduced by compressing the backup, further reducing the transmission delay.
[0079] If the backup demand of the current broadcast data is less than the high backup demand but the master-slave connection abnormality points to transmission omission, it means that there is data transmission omission in the connection between the master and the slave. Since compressed backup usually uses compression algorithms to reduce the size of backup data, thereby saving storage space and transmission bandwidth, however, some compression algorithms may introduce the risk of data loss. In this case, if compressed backup is used, the incidence of data backup loss will be increased invisibly. Incremental backup is used to back up only the changed data, not the entire data set. This can minimize the backup data, and the backup time is shorter than that of full backup, which helps to reduce the possibility of data omission during the backup process, because a shorter backup time means rapid generation and transmission of backup data, reducing the risk of connection interruption or data loss due to long backup time.
[0080] Furthermore, when it is identified that the main backup device has an operational abnormality and the master-slave connection has no abnormality, the main backup device is switched to the slave backup device to continue the backup work of the broadcast data.
[0081] When identifying that the operation of the primary and backup devices is abnormal and the master-slave connection is also abnormal, the present invention obtains the backup demand situation of the current broadcast data, and adjusts the backup mode in combination with the master-slave connection abnormality. It can make targeted adjustments to the backup when the master-slave connection is abnormal, thereby not only reducing the risk of data loss, but also maximizing the use of the resources of the backup system by reasonably adjusting the backup mode, thereby improving backup efficiency and resource utilization.
[0082] Example 2
[0083] Reference Figure 2 As shown, the present invention proposes a broadcast data backup method, comprising the following steps: S1, selecting a classification period, and counting the number of collection days in the classification period, and at the same time dividing the time interval of a single collection day into time periods according to a preset time interval to obtain a number of time periods corresponding to each collection day.
[0084] S2. Perform network transmission quality detection in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and classify the time period into backup suitability levels based on the detection.
[0085] S3. Extract the current broadcast data to be backed up from the backup plan, and evaluate the backup requirements of each extracted broadcast data.
[0086] S4. Plan the backup time period for each broadcast data by combining the evaluation result with the backup suitability level corresponding to each time period.
[0087] S5. In the backup period corresponding to each piece of broadcast data, the operation status of the master and backup devices and the connection status between the master and slave devices are detected in real time during the backup operation of the corresponding broadcast data using the master and slave backup devices.
[0088] S6. Identify whether there is an operation abnormality based on the monitoring results of the operation status of the master-backup device. If an operation abnormality is identified, identify whether the master-slave connection is abnormal based on the connection status between the master and slave devices at that moment. When it is identified that there is an operation abnormality in the master-backup device and there is an abnormality in the master-slave connection, execute S7. When it is identified that there is an operation abnormality in the master-backup device and there is no abnormality in the master-slave connection, execute S8.
[0089] S7. Adjust the backup method based on the backup requirements of the current broadcast data.
[0090] S8. Switching from the primary backup device to the secondary backup device to continue backing up the broadcast data.
[0091] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the present invention, they should all fall within the protection scope of the present invention.
Claims
1. A broadcast data backup system, characterized in that: Includes the following modules: The time period division and classification module is used to select a classification period and count the number of collection days in the classification period. At the same time, the time interval of a single collection day is divided into time periods according to a preset time interval to obtain a number of time periods corresponding to each collection day, and then the network transmission quality detection is performed in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and the time period is classified into a backup suitability level according to this; The backup period planning module is used to extract the current broadcast data to be backed up from the backup plan, and evaluate the backup demand of each extracted broadcast data, and then plan the backup period of each broadcast data according to the evaluation results and the backup suitability level corresponding to each period; Cloud database, used to store the importance of content corresponding to various content topics, store the timeliness and completeness of standard transmission, and store high backup requirements; The master-slave device backup monitoring module is used to detect the operating status of the master and slave devices and the connection status between the master and slave devices in real time during the backup operation of the corresponding broadcast data using the master and slave backup devices during the backup period corresponding to each broadcast data; A backup switching adjustment module is used to identify whether there is an operation abnormality based on the monitoring results of the operation status of the master and backup devices. If an operation abnormality is identified, it identifies whether the master-slave connection is abnormal based on the connection status between the master and slave devices at the current moment. If the master-slave connection is abnormal, it performs backup switching adjustment based on the backup demand of the current broadcast data; The process of classifying the time periods into backup suitability levels is as follows: Import the network transmission quality test results of each time period within each collection day into the statistical expression Get the network transmission quality coefficient corresponding to each time period on each collection day , where It is represented as the collection day number within the classification period. , Indicates the time period number divided into a single collection day. , , , Respectively represent Collection day The network transmission speed, network delay rate, and network packet loss rate of the time period. , , They represent normal network transmission speed, normal network delay rate, and normal network packet loss rate respectively; The network transmission quality coefficients of the same period corresponding to each collection day are compared with each other, from which the median network transmission quality coefficient and the average network transmission quality coefficient corresponding to each period are obtained, and then the formula is used to , calculate the network transmission differentiation corresponding to each time period, Expressed as a natural constant; The network transmission differentiation degree corresponding to each time period is compared with the set limited network transmission differentiation degree, and then the prediction model is used , and obtain the trend network transmission quality coefficient corresponding to each time period , Expressed as The network transmission differentiation degree corresponding to the time period, It is expressed as the limited network transmission differentiation set, Expressed as The median network transmission quality coefficient of the time period on each collection day; Extract each time period as the main time period according to the order of each time period, and thus calculate the similarity between the network transmission quality coefficient of the main time period and the network transmission quality coefficient of other time periods; The network transmission similarity between each time period as the main time period and other time periods is compared with the similarity threshold set by the system, and other time periods greater than or equal to the similarity threshold are selected from them to form a time period group with the corresponding main time period, and the representative network transmission quality coefficient corresponding to the corresponding time period group is obtained; The number of time period groups formed is counted as the number of classified backup suitability levels, and each backup suitability level is arranged in descending order to obtain the arrangement result of the backup suitability level. At the same time, each time period group is arranged in descending order according to the coefficient representing the network transmission quality to obtain the arrangement result of the time period group. Thus, the arrangement result of the backup suitability level is paired with the arrangement result of the time period group to obtain the time period group set paired with the backup suitability level, so that the time periods existing in each time period group are classified into the corresponding backup suitability level; The backup requirement evaluation of each extracted broadcast data is as follows: Extracting content topics from each piece of broadcast data, and matching them with the content importances corresponding to various content topics stored in the cloud database, thereby matching the content importances corresponding to each piece of broadcast data; Obtain the formation time of each piece of broadcast data, compare it with the current time, and calculate the content timeliness of each piece of broadcast data. ; The backup requirement degree corresponding to each piece of broadcast data is obtained based on the content importance and content timeliness corresponding to each piece of broadcast data.
2. A broadcast data backup system as claimed in claim 1, characterized in that: The backup period of each broadcast data is planned as follows: Determine the backup requirement range corresponding to each backup suitability level according to the number of classified backup suitability levels and the arrangement results of each backup suitability level; The backup requirement degree corresponding to each broadcast data is compared with the backup requirement range corresponding to each backup suitability level, thereby matching the backup suitability level corresponding to each broadcast data. At the same time, the backup time period corresponding to each broadcast data is obtained by combining the time period existing in the time period group corresponding to each backup suitability level.
3. A broadcast data backup system as claimed in claim 1, characterized in that: The connection status detection process between the master and slave devices is as follows: During the operation of the master-slave backup device, the master backup device sends data packets to the slave backup device in real time, and the slave backup device receives data packets, and records the sending time, sending amount, receiving time and receiving amount at the same time; Compare the sending time and receiving time corresponding to each data packet transmission to calculate the master-slave device transmission timeliness. The specific calculation formula is: , where , Respectively represent the sending time and receiving time corresponding to each data packet sending, Indicates the normal transmission duration corresponding to each data packet sent; Compare the sending amount and receiving amount corresponding to each data packet transmission to calculate the transmission integrity of the master and slave devices. The specific calculation formula is: , where , Respectively represent the sending amount and receiving amount corresponding to each data packet sending.
4. A broadcast data backup system as claimed in claim 3, characterized in that: The normal transmission duration corresponding to each data packet transmission is obtained as follows: Detect the network transmission speed between the master and slave devices each time a data packet is sent , and obtain the network connection distance between the master and slave devices , thus combining the corresponding sending amount of each data packet sending and using the formula , get the normal transmission duration corresponding to each data packet sending.
5. A broadcast data backup system as claimed in claim 3, characterized in that: The operation of identifying whether the master-slave connection is abnormal based on the connection status between the master and slave devices is as follows: The master-slave device transmission timeliness and master-slave device transmission integrity corresponding to each data packet sending are compared with the standard transmission timeliness and standard transmission integrity stored in the cloud database respectively. If the master-slave device transmission timeliness corresponding to a certain data packet sending is less than the standard transmission timeliness or the master-slave device transmission integrity is less than the standard transmission integrity, it is identified that there is an abnormality in the master-slave connection.
6. A broadcast data backup system as claimed in claim 1, characterized in that: The backup switching adjustment based on the backup demand of the current broadcast data is as follows: Compare the backup demand of the current broadcast data with the high backup demand in the cloud database, determine the abnormal direction of the master-slave connection, and then substitute it into the backup adjustment model , get the adjusted adaptation backup mode , in the model , , All represent constraints, among which , , , Indicates and.
7. A broadcast data backup system as claimed in claim 1, characterized in that: The backup switching adjustment module also includes executing switching from the main backup device to the slave backup device to continue the backup work of the broadcast data when it is identified that the main backup device has an operating abnormality and the master-slave connection has no abnormality.
8. A broadcast data backup method, characterized in that: The following steps are involved: S1. Select a classification period, count the number of collection days in the classification period, and divide the time interval of a single collection day into time periods according to a preset time interval to obtain a number of time periods corresponding to each collection day; S2. Perform network transmission quality detection in each time period corresponding to each divided collection day, wherein the network transmission quality detection includes network transmission speed detection, network packet loss rate detection and network delay rate detection, and classify the time period into backup suitability level according to the detection; The process of classifying the time periods into backup suitability levels is as follows: Import the network transmission quality test results of each time period within each collection day into the statistical expression Get the network transmission quality coefficient corresponding to each time period on each collection day , where It is represented as the collection day number within the classification period. , Indicates the time period number divided into a single collection day. , , , Respectively represent Collection day The network transmission speed, network delay rate, and network packet loss rate of the time period. , , They represent normal network transmission speed, normal network delay rate, and normal network packet loss rate respectively; The network transmission quality coefficients of the same period corresponding to each collection day are compared with each other, from which the median network transmission quality coefficient and the average network transmission quality coefficient corresponding to each period are obtained, and then the formula is used to , calculate the network transmission differentiation corresponding to each time period, Expressed as a natural constant; The network transmission differentiation degree corresponding to each time period is compared with the set limited network transmission differentiation degree, and then the prediction model is used , and obtain the trend network transmission quality coefficient corresponding to each time period , Expressed as The network transmission differentiation degree corresponding to the time period, It is expressed as the limited network transmission differentiation set, Expressed as The median network transmission quality coefficient of the time period on each collection day; Extract each time period as the main time period according to the order of each time period, and thus calculate the similarity between the network transmission quality coefficient of the main time period and the network transmission quality coefficient of other time periods; The network transmission similarity between each time period as the main time period and other time periods is compared with the similarity threshold set by the system, and other time periods greater than or equal to the similarity threshold are selected from them to form a time period group with the corresponding main time period, and the representative network transmission quality coefficient corresponding to the corresponding time period group is obtained; The number of time period groups formed is counted as the number of classified backup suitability levels, and each backup suitability level is arranged in descending order to obtain the arrangement result of the backup suitability level. At the same time, each time period group is arranged in descending order according to the coefficient representing the network transmission quality to obtain the arrangement result of the time period group. Thus, the arrangement result of the backup suitability level is paired with the arrangement result of the time period group to obtain the time period group set paired with the backup suitability level, so that the time periods existing in each time period group are classified into the corresponding backup suitability level; S3, extracting the current broadcast data to be backed up from the backup plan, and evaluating the backup requirements of each extracted broadcast data; The backup requirement evaluation of each extracted broadcast data is as follows: Extracting content topics from each piece of broadcast data, and matching them with the content importances corresponding to various content topics stored in the cloud database, thereby matching the content importances corresponding to each piece of broadcast data; Obtain the formation time of each piece of broadcast data, compare it with the current time, and calculate the content timeliness of each piece of broadcast data. ; Based on the content importance and content timeliness of each piece of broadcast data, the backup requirement corresponding to each piece of broadcast data is obtained; S4, planning the backup time period for each broadcast data according to the evaluation results and the backup suitability level corresponding to each time period; S5, in the backup period corresponding to each piece of broadcast data, using the master and slave backup devices to perform the backup operation of the corresponding broadcast data, and detecting the operating status of the master and backup devices and the connection status between the master and slave devices in real time; S6, identifying whether there is an operation abnormality based on the monitoring result of the operation status of the master and backup devices, and if it is identified that there is an operation abnormality, identifying whether the master-slave connection is abnormal based on the connection status between the master and slave devices at the current moment, and executing S7 when it is identified that there is an operation abnormality of the master and backup devices and there is also an abnormality in the master-slave connection, and executing S8 when it is identified that there is an operation abnormality of the master and backup devices and there is no abnormality in the master-slave connection; S7, adjusting the backup mode based on the backup requirements of the current broadcast data; S8. Switching from the primary backup device to the secondary backup device to continue backing up the broadcast data.
Citation Information
Patent Citations
A method for hot backup of emergency broadcasting equipment
CN115361269B
Data backup method, device, and system
CN104137512A
Data transmission method and device and network camera
CN105227904A
