Video data concurrent storage method based on hierarchical write-in and punishment mechanism

Through the method of hierarchical writing and punishment mechanisms, the performance bottleneck of the video surveillance storage system in terms of high concurrent writing and large-capacity storage is solved, stable writing and efficient storage of video data are achieved, and the carrying capacity and resistance of the system are improved. Network capabilities.

CN118540428APending Publication Date: 2024-08-23CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410536103.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing video surveillance storage systems have performance bottlenecks in terms of high concurrent writing and large-capacity storage, making it difficult to effectively control concurrent writing and improve system carrying capacity, especially under the long-term storage requirements of video data.

Method used

Adopt a method based on hierarchical writing and penalty mechanisms, collect video quality and hardware index data in real time through hierarchical storage and penalty function models, calculate the number of concurrency, and adjust the video flow into the storage cluster according to the video quality and bit rate, using different compression algorithms to hierarchically input library to ensure maximum concurrency and storage efficiency.

Benefits of technology

Effectively control the maximum number of streams, improve system carrying capacity and network resistance, distinguish video data of different qualities, increase storage IOPS, reduce latency, and ensure stable writing performance of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540428A
    Figure CN118540428A
Patent Text Reader

Abstract

The invention discloses a video data concurrent storage method based on a hierarchical write-in and penalty mechanism, which comprises the following steps: an acquisition module collects data in real time, sends the collected data into a hierarchical storage and penalty function model for calculation to obtain a maximum concurrent number of a system, feeds back a result obtained by calculation to a video monitoring system, and sends the result to the video monitoring system; the maximum concurrency limitation is met by adjusting the video concurrency number or the video code rate, the video monitoring system pushes the data to the storage cluster, and the cluster stores the data in a grading manner by adopting different compression algorithms according to the quality code rate of the data, so that the method has the beneficial effects that the grading write-in and punishment mechanism can cope with various bandwidth environments; the bearing capacity and the network resistance of the system are improved to the greatest extent, the hierarchical write-in and punishment mechanism can distinguish video data with different qualities, the storage IOPS of the system is improved, the time delay is reduced, the video code rate can be adjusted in real time through the hierarchical write-in and punishment mechanism, and the stable write-in performance of the video data is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emerging information technology, and in particular to a video data concurrent storage method based on a hierarchical writing and penalty mechanism. Background Art

[0002] With the development of high-definition video and the continuous increase of video surveillance writing equipment, a city of a certain size can generate about PB-level data in one day. Video surveillance requires continuous operation throughout the day, which requires the video stream to flow to the storage system continuously and uninterruptedly. Any upgrade and maintenance operations cannot affect the storage of the input video stream and must be performed dynamically. At the same time, we require the video data storage cycle to be 30 to 90 days. The video surveillance storage system must meet the long-term and large-capacity storage requirements of video data. Compared with traditional data, the amount of video data is large, and the writing operation of video data almost accounts for 100% of the operation behavior. Video data is only read in specific scenarios such as playback and retrieval of videos. Compared with the random bit rate of traditional data, the bit rate of video data is relatively constant, and the resolution and format generally do not change.

[0003] Based on the above description, there are two most basic considerations in storage solution planning: performance and capacity. Current research mainly focuses on reducing data reading time, improving data reading efficiency, and improving storage efficiency. Not much research has been done on how to improve concurrency and control concurrent writing of large code streams. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] The present invention has been proposed in view of the above-mentioned problems.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a video data concurrent storage method based on hierarchical writing and penalty mechanism, comprising:

[0007] S1, deploys the hierarchical storage and penalty function model in the acquisition module. The acquisition module collects data on video quality parameters from the video surveillance system in real time, and also collects hardware indicators from the storage cluster disk;

[0008] S2, sends the collected data to the hierarchical storage and penalty function model for calculation to obtain the maximum concurrency of the system;

[0009] S3, feeding back the calculated result to the video surveillance system for adjustment, by adjusting the number of concurrent videos or the video bit rate to meet the maximum concurrency limit;

[0010] S4, the video surveillance system pushes the data to the storage cluster, and the cluster uses different compression algorithms to classify the data into the storage according to indicators such as data quality and bit rate.

[0011] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, the hierarchical storage and penalty function model is specifically as follows:

[0012] CN=min{max{n1+n2+n3},max{m1+m2+m3}}

[0013] Among them, CN represents the maximum concurrency of the cluster, n1 represents the number of important data support paths on the capacity side, n2 represents the number of general data support paths on the capacity side, n3 represents the number of unimportant data support paths on the capacity side, m1 represents the number of important data support paths on the I / O side, m2 represents the number of general data support paths on the I / O side, and m3 represents the number of unimportant data support paths on the I / O side.

[0014] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, the calculation model of n1, n2 and n3 is specifically as follows:

[0015]

[0016] Among them, CTQ represents the total capacity of the cluster, HP, MP and LP represent the capacity proportion of important, general and unimportant data respectively, HRC, MRC and LRC represent the bit rates of important, general and unimportant data respectively, DAY represents the number of storage days, and f(Lv) represents the penalty function.

[0017] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, the calculation models of m1, m2 and m3 are specifically as follows:

[0018]

[0019] IOPS represents the total number of I / O operations that the cluster can process per second, and f w (Lv) represents the write penalty function, WP and RP represent the percentage of written and read data, respectively.

[0020] As a preferred solution of the method for concurrent storage of video data based on hierarchical writing and penalty mechanism described in the present invention, the IOPS is specifically equal to the number of I / O operations that a single disk can process per second multiplied by the number of disks.

[0021] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, the calculation method of the number of I / O operations that a single disk can process per second is specifically as follows:

[0022] iops = 1 / IO Time

[0023] Among them, iops indicates the number of I / O operations that a single disk can process per second, and IO Time indicates the time required for one I / O operation.

[0024] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, the IO Time calculation method is specifically as follows:

[0025]

[0026] Among them, Seek Time represents the average seek time, Rotational Speed ​​represents the average rotational delay, IOChunk Size and TransferRate represent the single IO size and disk transfer speed respectively.

[0027] As a preferred solution of the method for concurrent storage of video data based on hierarchical writing and penalty mechanism described in the present invention, the CTQ is equal to the product of the number of cluster disks and the capacity of each disk.

[0028] As a preferred solution of the video data concurrent storage method based on hierarchical writing and penalty mechanism described in the present invention, wherein: the f(Lv) is determined according to different RAID levels of the cluster.

[0029] As a preferred solution of the method for concurrent storage of video data based on hierarchical writing and penalty mechanism described in the present invention, the number of storage days is specifically the number of storage days supported by the cluster, and the number of storage days supported by the cluster is 30 to 90 days.

[0030] Beneficial effects of the present invention:

[0031] 1. The hierarchical writing and penalty mechanism can cope with a variety of bandwidth environments. According to different bandwidths and network conditions, it can effectively control the maximum number of bit streams at the same time, and maximize the system's carrying capacity and anti-network capabilities.

[0032] 2. The hierarchical writing and penalty mechanism can distinguish video data of different qualities, improve the system's storage IOPS, reduce latency, and ensure stable system operation.

[0033] 3. Through the hierarchical writing and penalty mechanism, the system can adjust the video bit rate in real time to ensure the stable writing performance of video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0035] Figure 1 The present invention is a hierarchical writing and penalty mechanism flow chart of a video data concurrent storage method based on the hierarchical writing and penalty mechanism.

[0036] Figure 2 This is a hierarchical writing and penalty mechanism model diagram of a video data concurrent storage method based on the hierarchical writing and penalty mechanism of the present invention.

[0037] Figure 3 The present invention is a hierarchical writing and penalty mechanism calculation principle diagram of a video data concurrent storage method based on the hierarchical writing and penalty mechanism.

[0038] Figure 4 The invention discloses a penalty function for different RAID levels in a concurrent video data storage method based on hierarchical writing and penalty mechanism. DETAILED DESCRIPTION

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.

[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0041] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0042] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0043] Example 1

[0044] A video data concurrent storage method based on hierarchical writing and penalty mechanism, comprising:

[0045] S1, deploys the hierarchical storage and penalty function model in the acquisition module. The acquisition module collects data on video quality parameters from the video surveillance system in real time, and also collects hardware indicators from the storage cluster disk;

[0046] S2, sends the collected data to the hierarchical storage and penalty function model for calculation to obtain the maximum concurrency of the system;

[0047] S3, feeding back the calculated results to the video surveillance system for adjustment, by adjusting the number of concurrent videos or the video bit rate to meet the maximum concurrency limit and achieve stable system transmission;

[0048] S4, the video surveillance system pushes the data to the storage cluster. The cluster will use different compression algorithms to store the data in different levels according to indicators such as data quality and bit rate to ensure the effectiveness of transmission.

[0049] The hierarchical storage and penalty function model is as follows:

[0050] CN=min{max{n1+n2+n3},max{m1+m2+m3}}

[0051] Among them, CN represents the maximum concurrency of the cluster, n1 represents the number of important data support paths on the capacity side, n2 represents the number of general data support paths on the capacity side, n3 represents the number of unimportant data support paths on the capacity side, m1 represents the number of important data support paths on the I / O side, m2 represents the number of general data support paths on the I / O side, and m3 represents the number of unimportant data support paths on the I / O side.

[0052] Example 2

[0053] A method for concurrently storing video data based on hierarchical writing and penalty mechanism, based on Example 1, the calculation models of n1, n2 and n3 are specifically as follows:

[0054]

[0055] Among them, CTQ represents the total capacity of the cluster, which is equal to the product of the number of cluster disks and the capacity of each disk. HP, MP and LP represent the capacity ratio of important, general and unimportant data respectively. HRC, MRC and LRC represent the bit rates of important, general and unimportant data respectively. The more important the data is, the greater the bit rate is. DAY represents the number of storage days, which is specifically the number of storage days supported by the cluster. The number of storage days supported by the cluster is 30 to 90 days. f(Lv) represents the penalty function, which is determined according to the different RAID levels of the cluster, such as Figure 4 As shown in the figure, the last row of the table is the capacity penalty function.

[0056] The calculation models of m1, m2 and m3 are as follows:

[0057]

[0058] IOPS represents the total number of I / O operations that the cluster can process per second, and f w (Lv) represents the write penalty function, WP and RP represent the percentage of written and read data, respectively.

[0059] IOPS is specifically equal to the number of I / O operations that a single disk can process per second multiplied by the number of disks.

[0060] The number of I / O operations that a single disk can handle per second is calculated as follows:

[0061] iops = 1 / IO Time

[0062] Among them, iops indicates the number of I / O operations that a single disk can process per second, and IO Time indicates the time required for one I / O operation.

[0063] The specific calculation method of IO Time is:

[0064]

[0065] Among them, Seek Time indicates the average seek time, Rotational Speed ​​indicates the average rotational delay, IOChunk Size and Transfer Rate indicate the single IO size and disk transfer speed respectively. The ratio of the two is the time the disk spends on writing or reading data. The disk transfer speed is fixed when the disk leaves the factory. The size of a single IO will affect the IO time. The larger the single IO, the more time is spent on transmission. At this time, the single IO time is equivalent to a single concurrency.

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

Claims

1. A video data concurrent storage method based on hierarchical writing and penalty mechanism, characterized in that: include: S1, deploys the hierarchical storage and penalty function model in the acquisition module. The acquisition module collects data on video quality parameters from the video surveillance system in real time, and also collects hardware indicators from the storage cluster disk; S2, sends the collected data to the hierarchical storage and penalty function model for calculation to obtain the maximum concurrency of the system; S3, feeding back the calculated result to the video surveillance system for adjustment, by adjusting the number of concurrent videos or the video bit rate to meet the maximum concurrency limit; S4, the video surveillance system pushes the data to the storage cluster, and the cluster uses different compression algorithms to classify the data into the storage according to indicators such as data quality and bit rate.

2. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 1, characterized in that: The hierarchical storage and penalty function model is specifically as follows: CN=min{max{n1+n2+n3},max{m1+m2+m3}} Among them, CN represents the maximum concurrency of the cluster, n1 represents the number of important data support paths on the capacity side, n2 represents the number of general data support paths on the capacity side, n3 represents the number of unimportant data support paths on the capacity side, m1 represents the number of important data support paths on the I / O side, m2 represents the number of general data support paths on the I / O side, and m3 represents the number of unimportant data support paths on the I / O side.

3. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 2, characterized in that: The calculation model of n1, n2 and n3 is specifically: Among them, CTQ represents the total capacity of the cluster, HP, MP and LP represent the capacity proportion of important, general and unimportant data respectively, HRC, MRC and LRC represent the bit rates of important, general and unimportant data respectively, DAY represents the number of storage days, and f(Lv) represents the penalty function.

4. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 3, characterized in that: The calculation models of m1, m2 and m3 are specifically: IOPS represents the total number of I / O operations that the cluster can process per second, and f w (Lv) represents the write penalty function, WP and RP represent the percentage of written and read data, respectively.

5. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 4, characterized in that: The IOPS is specifically equal to the number of I / O operations that a single disk can process per second multiplied by the number of disks.

6. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 5, characterized in that: The number of I / O operations that a single disk can handle per second is calculated as follows: iops = 1 / IO Time Among them, iops indicates the number of I / O operations that a single disk can process per second, and IO Time indicates the time required for one I / O operation.

7. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 6, characterized in that: The IO Time calculation method is specifically as follows: Among them, Seek Time represents the average seek time, Rotational Speed ​​represents the average rotational delay, IO ChunkSize and Transfer Rate represent the single IO size and disk transfer speed respectively.

8. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 3, characterized in that: The CTQ is equal to the product of the number of cluster disks and the capacity of each disk.

9. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 3, characterized in that: The f(Lv) is determined according to different RAID levels of the cluster.

10. The method for concurrently storing video data based on hierarchical writing and penalty mechanism according to claim 3, characterized in that: The number of storage days is specifically the number of storage days supported by the cluster, and the number of storage days supported by the cluster is 30 to 90 days.