Method, apparatus and computer program product for parallel transmission of data
The machine learning model is used to determine the concurrent number and data slice size of parallel data transmission, which solves the problem of poor transmission performance and achieves efficient data transmission that adapts to different scenarios and network conditions.
Patent Information
- Application Number
- CN201910657308.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-07-19
AI Technical Summary
The existing technology cannot accurately select the number of concurrencies and data slice size during parallel data transmission, resulting in poor transmission performance. Especially in specific scenarios, human experience methods are inaccurate and historical comparison similarity methods require a large amount of historical data.
By obtaining data attributes and network conditions, use machine learning models such as decision tree models to determine the appropriate number of concurrencies and data slice sizes, generate test data sets and conduct training, and support incremental online induction to adapt to new scenarios.
It improves the speed and efficiency of parallel data transmission, avoids the inaccuracy of traditional methods and the computational overhead when data is large, and adapts to various replication scenarios and network conditions.
Smart Images

Figure CN112241240B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate generally to the field of data storage, and more particularly to methods, devices, and computer program products for transmitting data in parallel. Background Art
[0002] A storage system is a system composed of various storage devices for storing programs and data, control components, hardware devices for managing information scheduling, and various software. It can usually store a large amount of data. In order to ensure the security of data storage, data backup technology is usually used in storage systems. Redundant array of independent disks is a data backup technology that can combine multiple independent physical disks in different ways to form an array of disks (i.e., logical disks), thereby providing higher storage performance and higher reliability than a single disk.
[0003] Data transmission is a key indicator of modern data protection solutions, especially in large-scale data sets. The efficiency of data transmission is an important factor in data backup, data replication, disaster recovery, etc. Generally, data replication and virtual synthesis technologies can be used to avoid transmitting duplicate data. In addition, the transmission speed can be increased by parallel data transmission, which means making full use of network bandwidth, dividing the data to be transmitted into several slices, and establishing multiple streams to transmit these slices in parallel. Summary of the invention
[0004] Embodiments of the present disclosure provide a method, device, and computer program product for parallel data transmission, which can select the appropriate number of concurrency and data slice size used during parallel data transmission according to the attributes of the data to be transmitted in an actual scenario and the actual network conditions, thereby increasing the speed of parallel data transmission.
[0005] In one aspect of the present disclosure, a method for parallel data transmission is provided. The method includes: obtaining properties of data to be transmitted from a first storage device to a second storage device and a network condition between the first storage device and the second storage device; determining a concurrency number and a data slice size used in parallel data transmission based on the properties of the data and the network condition; and transmitting data in parallel between the first storage device and the second storage device based on the concurrency number and the data slice size.
[0006] In another aspect of the present disclosure, a device for parallel transmission of data is provided. The device includes a processing unit and a memory, wherein the memory is coupled to the processing unit and stores instructions. When the instructions are executed by the processing unit, the following actions are performed: obtaining the attributes of data to be transmitted from a first storage device to a second storage device and the network status between the first storage device and the second storage device; based on the attributes of the data and the network status, determining the concurrency number and data slice size used in parallel transmission of the data; and based on the concurrency number and the data slice size, transmitting the data in parallel between the first storage device and the second storage device.
[0007] In yet another aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which, when executed, cause a computer to perform a method or process according to an embodiment of the present disclosure.
[0008] This summary is provided to introduce a selection of concepts in a simplified form, which are further described in the detailed description below. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to limit the scope of the various embodiments of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like elements throughout the exemplary embodiments of the present disclosure.
[0010] Figure 1 A schematic diagram showing an environment for transmitting data in parallel according to an embodiment of the present disclosure;
[0011] Figure 2 A flow chart of a method for transmitting data in parallel according to an embodiment of the present disclosure is shown;
[0012] Figure 3 A schematic diagram showing a process of using a test device to generate test data according to an embodiment of the present disclosure;
[0013] Figure 4 A flowchart of a method for training a decision tree model according to an embodiment of the present disclosure is shown;
[0014] Figure 5 A schematic diagram showing a portion of an example decision tree model according to an embodiment of the present disclosure; and
[0015] Figure 6 A schematic block diagram of a device that can be used to implement an embodiment of the present disclosure is shown. Specific embodiments
[0016] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some specific embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0017] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects, unless explicitly indicated to be different.
[0018] The inventor of the present application has found that two key factors affecting the speed of parallel data transmission are the number of concurrent parallel stream transmissions and the size of the data slices into which the data is divided. Different values selected for these two key factors may have a significant impact on transmission performance. However, there is currently no intelligent and accurate method to select the appropriate number of concurrent parallel streams and data slice size in a specific scenario.
[0019] Traditionally, there are two main methods to determine the number of concurrency and data slice size during parallel data transmission. One method is to use fixed rules, which set the number of concurrency and data slice size based on some human experience. However, human experience may be inaccurate in some scenarios and cannot cover all situations in actual scenarios. Another method is to compare the similarity between the current scenario and the historical scenario. However, this method requires a very large amount of historical data, which may lead to wrong conclusions for situations that have not occurred in history. Therefore, traditional methods cannot accurately determine the number of concurrency and data slice size used in parallel data transmission.
[0020] To this end, the embodiments of the present disclosure propose a new scheme for determining the number of concurrent connections and the size of data slices used in parallel data transmission. When transmitting data in parallel, the embodiments of the present disclosure can select an accurate and appropriate number of concurrent connections and the size of data slices according to the attributes of the data to be transmitted in the actual scenario and the actual network conditions, thereby increasing the speed of parallel transmission of data.
[0021] The following references Figures 1 to 6It should be understood that these exemplary embodiments are provided only to enable those skilled in the art to better understand and implement the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
[0022] Figure 1 FIG. 1 is a schematic diagram of an environment 100 for transmitting data in parallel according to an embodiment of the present disclosure. Figure 1 As shown, environment 100 includes two storage devices 110 and 120, and storage devices 110 and 120 can be connected via a network. For example, storage devices 110 and 120 can be two data storage systems or two backup servers. At a certain moment, for the purpose of data backup, data 115 in storage device 110 needs to be transferred to storage device 120, for example, as data 115'. In order to speed up the transmission of data 115 from storage device 110 to storage device 120, data 115 can be split into multiple data slices (for example, Figure 1 As shown, each data slice is labeled as 0, 1, 2...N), and data is transmitted in parallel through multiple concurrent channels, as shown by arrows 130. The embodiments of the present disclosure propose an intelligent method for selecting the number of concurrencies and the size of data slices for a parallel data protection solution. The embodiments of the present disclosure create a data generation tool to generate a test data set with different data attributes and network conditions, and make a decision tree based on the generated test data set. In addition, in some embodiments of the present disclosure, it also supports incremental online induction of the decision tree.
[0023] In general, data deduplication and virtual synthesis technologies can improve the efficiency of data transmission. With data deduplication technology, the original data is divided into fixed or variable blocks represented by hash values, and the block algorithm ensures that the same data block always generates the same hash value. If the same data block has been transmitted and stored, there is no need to transmit the data block, thus saving data transmitted over the network and reducing the capacity consumed by storage.
[0024] Data deduplication works in units of data blocks, which can be a small unit (for example, 24KB). However, data deduplication requires computing resources on the backup / replication client / server side, and the overhead can be high when the amount of data is large. This problem can be solved by introducing virtual synthesis. For files that have been backed up to the storage device, subsequent backup / replication sessions do not perform data deduplication at all; instead, the offsets and lengths of these files on the storage device are recorded in a certain cache, so only the content needs to be virtually synthesized from the previous backup to the new backup. In scenarios where some data has already been backed up to the storage device and the number of files is relatively large and the portion of the files that have been changed is relatively small, the virtual synthesis technology can reduce the computing overhead of deduplication on the backup / replication client / server side. In addition to data deduplication and virtual synthesis, selecting the appropriate number of concurrency and data slice size during parallel data transmission can also improve the efficiency of data transmission, as described in the following example implementation.
[0025] Figure 2 200 is a flowchart of a method 200 for transmitting data in parallel according to an embodiment of the present disclosure. Figure 1 The above-described operations may be performed by the storage device 110 , or may be performed by other devices except the storage devices 110 and 120 .
[0026] At 202, the properties of the data to be transmitted from the first storage device to the second storage device and the network conditions between the first storage device and the second storage device are obtained. For example, when preparing to transmit data 115 from storage device 110 to storage device 120 in parallel, the properties (such as size, etc.) of the transmitted data 115 are first obtained, and the network environment conditions between storage device 110 and storage device 120 are obtained.
[0027] In some embodiments, data attributes may include the size of the data, the number of files in the data, the incremental data ratio in the data, and the discreteness of the incremental data, wherein the discreteness includes the average region size, the minimum region size, the maximum region size, and the total number of regions of the incremental data. In some embodiments, network conditions may include network bandwidth and network latency, etc. In some embodiments, in addition to data attributes and network conditions, the hardware capabilities of the storage device may also be obtained, such as the size of the memory, the number of cores of the processor, etc.
[0028] At 204, based on the data attributes and network conditions, the concurrency number and data slice size used in parallel transmission of the data are determined. For example, a trained machine learning model (e.g., a decision tree model) according to an embodiment of the present disclosure can output an appropriate concurrency number and data slice size suitable for the current transmission scenario based on the obtained data attributes and network conditions.
[0029] At 206, data is transmitted in parallel between the first storage device and the second storage device based on the concurrency number and the data slice size. For example, the data may be divided into a plurality of data slices based on the data slice size, and then the data slices are backed up in parallel from the first storage device to the second storage device. Therefore, when transmitting data in parallel, the embodiments of the present disclosure can select an appropriate concurrency number and data slice size according to the attributes of the data to be transmitted in the actual scenario and the actual network conditions, thereby increasing the speed of parallel data transmission.
[0030] Figure 3 FIG. 3 is a schematic diagram of a process 300 for generating test data using test equipment in a laboratory according to an embodiment of the present disclosure. Figure 3 As shown, the laboratory includes at least two test devices 310 and 320, and different data attributes and network conditions can be used to perform a test of parallel transmission of data 315 between the test device 310 and the test device 320 (as shown by arrow 330) to simulate the generation of a test data set, and then use the generated test data set to train the machine learning model. Figure 3 As shown, the test data 340 may be a data item in a test data set, which includes artificially set data attributes, artificially set network conditions, and a preferred transmission mode determined through testing (which indicates a preferred number of concurrencies and slice size).
[0031] In some embodiments, a test data set related to parallel data transmission can be generated on a test device in a laboratory using different data attributes and network conditions. For example, a data replication scenario can be selected to generate test data, because the replication between backup servers involves a larger scale of data compared to the backup of a lightweight client, and thus it is suitable to use the two factors of the number of concurrent connections and the size of data slices to test the transmission performance. Two or more objects are involved during data replication, for example, there can be two physical servers, and data is directly transmitted from one server to another.
[0032] During the replication process, many factors may affect the performance of parallel data transmission. For modern data replication technology, factors that affect performance may include data type, device type, data structure and / or data size. For data storage systems that can perform incremental backup, the backup after the first backup will not process all data, but only send the modified new data to the storage system. The unmodified part will be linked to the current backup through synthesis technology. Therefore, new data is also an important factor when performing incremental backup replication. In addition, the network between the replication devices will also affect the replication. Therefore, in some embodiments of the present disclosure, the optimal number of concurrency and data slice size can be determined based on the following parameters: data size, incremental data ratio, average region size, minimum region size, maximum region size, total number of regions, number of backup files, network bandwidth, network latency (e.g., network round trip time (RTT)).
[0033] In order to generate a historical data set covering most replication situations, you can create a data generation tool. The data generation tool can perform multiple actual data replications using different parameter values. Before running the data generation tool, you need to specify the parameter value range and value increase interval, as shown in Table 1 below.
[0034] Table 1: Example of range of test data
[0035] parameter Value range interval Data size 20KB-12TB 100MB Incremental data ratio 1%-70% 2% Average region size 4KB-40MB 10KB Minimum region size 100B-40MB 10KB Maximum region size 100B-40MB 10KB Total number of regions <![CDATA[1-2 32 ]]> 10 Number of backup files <![CDATA[1-2 64 ]]> 100 Network bandwidth 10Mbps-10Gbps 100Mbps Network latency 1ms-200ms 20ms
[0036] Based on the preset test scope in Table 1, the data generation tool will traverse the parameter values one by one, and use the predefined {concurrency number, data slice size} pairs to perform actual data replication between the two test devices to obtain execution results, where the execution results include "execution time" and "sent network bytes". For each round, the execution results of different {concurrency number, data slice size} pairs are compared, and a {concurrency number, data slice size} pair with the minimum "running time" is selected as the best {concurrency number, data slice size} pair. For example, Table 2 shows a given test parameter.
[0037] Table 2: Examples of given test parameters
[0038] parameter interval Data size 200GB Incremental data ratio 1% Average region size 4KB Minimum region size 100B Maximum region size 4MB Total number of regions 547 Number of backup files 143 Network bandwidth 10Mbps Network latency 1ms
[0039] For the given test parameters in Table 2, multiple rounds of data replication tests can be performed using multiple {concurrency number, data slice size} pairs, and the test results are shown in Table 3 below. The fourth pair takes the least execution time, so the fourth pair can be identified as the appropriate data transmission mode for the given test parameters.
[0040] Table 3: Examples of test results for different pairs
[0041]
[0042] The data generation tool records the test results in Table 3 as prior knowledge for decision tree learning, which includes 9-dimensional input and 1-dimensional output, as shown in Table 4 below. The test data is used as prior knowledge to train the decision tree model.
[0043] Table 4: Examples of test datasets
[0044]
[0045] According to an embodiment of the present disclosure, after a test data set for parallel data transmission is generated, some machine learning algorithms can be used to train a machine learning model to determine the transmission mode in the actual scenario (including the number of concurrency and the size of the data slice). In order to build an attribute-based self-learning inductive knowledge acquisition system, a classification model can be dynamically created using machine learning related algorithms to represent prior knowledge and assist in classification when new data enters. According to some embodiments of the present disclosure, the machine learning model needs to meet the following two aspects: solve the multivariable system classification problem through supervised learning; support incremental learning for new training data to be obtained.
[0046] For example, to support the incremental induction of knowledge, the artificial neural network algorithm library Learn++ can be used to build a neural network structure and dynamically and incrementally update the weights of the neural network. Learn++ is an algorithm for incremental training of neural network pattern classifiers. The algorithm does not need to access previously used data during subsequent incremental learning sessions, but at the same time, it will not forget previously acquired knowledge. Alternatively, the incremental support vector machine (SVM) algorithm can also be used, which is an online recursive algorithm. The online incremental support vector machine algorithm focuses on the design and analysis of efficient incremental SVM learning, and can provide fast, stable and robust classification functions.
[0047] In some embodiments of the present disclosure, a decision tree model can be used as a machine learning model. A decision tree is a flowchart-like structure in which each internal node represents a "test" of an attribute, each branch represents the result of the test, and each leaf node represents a class label (a decision made after calculating all attributes). The path from the root to the leaf represents the classification rule. In decision analysis, decision trees and closely related influence diagrams are used as visual and analytical decision support tools. Decision trees are often used in decision analysis to help determine the strategy that is most likely to achieve a goal, and are also popular tools in machine learning.
[0048] The ID3 algorithm is a decision tree algorithm. Each training instance is described as a list of attribute-value pairs, which constitute a joint description of the instance. The instance is labeled with the name of the class to which it belongs. To simplify the discussion, assume that the instance belongs to one of two classes: a positive instance, which is an example of the concept to be learned (target concept); and a negative instance, which is a counterexample of the target concept. The ID3 algorithm can be applied to more than two classes in a direct way. In addition, it is assumed that the attributes have discrete values. ID3 is a useful concept learning algorithm because it can effectively construct a well-generalized decision tree. For non-incremental learning tasks, the ID3 algorithm is usually a good choice for building classification rules.
[0049] However, for incremental learning tasks, it is better to accept instances gradually without building a new decision tree each time, and the ID4 algorithm is a step-by-step learning decision tree that supports incremental learning. The mechanism in the ID4 algorithm for determining when to change the attribute test at a node is included in the new algorithm ID5R, which guarantees that the same decision tree is built as the ID3 algorithm for a given set of training instances. However, like the ID4 algorithm, ID5R cannot handle numeric attributes and more than two valued attributes.
[0050] Therefore, in some embodiments of the present disclosure, a fast decision tree (VFDT) can be used to build a decision tree. VFDT is a decision tree learning system based on the Hoeffding tree. The Hoeffding tree can be learned in constant time for each instance, and the storage limitations of traditional decision tree learners (such as ID3, C4.5 and SLIQ) are overcome by using the Hoeffding boundary. The word boundary is used to determine how many instances are required for each internal node of the decision tree in order to make statistically significant decisions on how to split the node. A good feature of the Hoeffding boundary is that it is independent of the probability distribution of the original data set, which in turn means that more observations are required to get the same conclusion as the distribution-dependent method. The key feature of the Hoeffding boundary is that it ensures that the selected attributes have a high probability, which is the same as the attributes selected using an infinite number of instances. VFDT is able to process tens of thousands of instances per second using off-the-shelf hardware. Therefore, the embodiments of the present disclosure use the VFDT algorithm to train the Hoeffding tree for use as a decision tree model. It should be understood that any known or future improved VFDT or Hoeffding tree-related algorithm can be used in conjunction with the embodiments of the present disclosure.
[0051] Figure 4 FIG. 4 is a flowchart of a method 400 for training a decision tree model according to an embodiment of the present disclosure. Figure 4As shown, at 402, a test data set is generated in a laboratory using different data attributes and network conditions, and then a decision tree model is trained using the test data set at 404. After the training of the decision tree is completed, the trained decision tree model is deployed at a customer of a storage device and / or storage system at 406, and then at 408, a suitable concurrency number and data slice size are recommended to the user during parallel data transmission of the storage system.
[0052] At 410, new training data is obtained. The test data set generated from the laboratory may not cover all actual scenarios due to the interval test. Although the decision tree model can generate an optimal solution for various scenarios due to its generalization ability, the recommended solution may not be the real optimal solution. Therefore, in the actual parallel data transmission process, if the user selects a solution different from the solution recommended by the decision tree model for some reason (different concurrent number and data slice size), and the solution selected by the user is better (for example, faster processing speed), the characteristics of the solution selected by the user (such as concurrent number and data slice size) can be collected and used as new training data. Then, at 404, the decision tree model is incrementally trained (without complete repeated training), that is, the solution data selected by the user is used as a learning sample to participate in the next round of decision tree model training. In some embodiments, the Hoeffding tree suitable for big data incremental learning can be used as the decision tree model in the embodiment of the present disclosure. In this way, the accuracy of the trained decision tree model can be further improved.
[0053] Figure 5 FIG. 5 is a schematic diagram showing a portion of an exemplary decision tree model 500 according to an embodiment of the present disclosure. For example, the decision tree model 500 is a classification model automatically learned and generated based on a test data set using a VFDT algorithm. Figure 5 In the example, the root node 510 is, for example, the data attribute "data size". If the size of the data to be transmitted in parallel is 100GB, it is necessary to further determine the total number of regions, as indicated by edge 511; if the data size is 200GB, directly select the third pair of concurrent number-data slice size 530, as indicated by edge 512; if the data size is 400GB, it is necessary to further determine the size of the network bandwidth, as indicated by edge 513.
[0054] At child node 520, if the total number of regions of incremental data to be transmitted in parallel is 1, the 4th pair of concurrent number-data slice size 550 is selected, as indicated by edge 521; if the total number of regions of incremental data to be transmitted in parallel is 4, the 2nd pair of concurrent number-data slice size 560 is selected, as indicated by edge 522. Similarly, at child node 540, if the current network bandwidth is 100MB, the 1st pair of concurrent number-data slice size 570 is selected, as indicated by edge 541; if the current network bandwidth is 200MB, the 3rd pair of concurrent number-data slice size 580 is selected, as indicated by edge 542; if the current network bandwidth is 2GB, the 3rd pair of concurrent number-data slice size 590 is selected, as indicated by edge 543.
[0055] It should be understood that Figure 5 Only a part of the example decision tree model is shown in FIG. 1 , and the actual decision tree model may include more nodes and edges or different nodes and edges. Figure 5 The judgment condition of the edge of the example decision tree model 500 is a fixed value, which can also be a range. For example, edge 512 can represent a range greater than 100 GB and less than or equal to 200 GB, etc.
[0056] After training and generating the decision tree model 500, for new parallel data transmission scenarios, according to the acquired data attributes and network conditions (even new data that has not appeared in the test data), the decision tree model 500 can automatically determine and recommend the appropriate number of concurrent connections and data slice size. Therefore, when transmitting data in parallel, the embodiments of the present disclosure can select the appropriate number of concurrent connections and data slice size according to the attributes of the data to be transmitted in the actual scenario and the actual network conditions, thereby increasing the speed of parallel transmission of data.
[0057] Figure 6 1 shows a schematic block diagram of a device 600 that can be used to implement an embodiment of the present disclosure. The device 600 may be a device or apparatus described in an embodiment of the present disclosure. Figure 6 As shown, the device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0058] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0059] The various methods or processes described above may be performed by the processing unit 601. For example, in some embodiments, the methods may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the CPU 601, one or more steps or actions in the methods or processes described above may be performed.
[0060] In some embodiments, the methods and processes described above may be implemented as a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0061] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0062] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0063] The computer program instructions for performing the disclosed operation may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, and conventional procedural programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In certain embodiments, by utilizing the state information of a computer-readable program instruction to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.
[0064] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0065] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0066] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the equipment, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the blocks can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous blocks can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flow chart, and the combination of the blocks in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0067] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for parallel transmission of data, comprising: Obtaining properties of data to be transmitted from a first storage device to a second storage device and a network status between the first storage device and the second storage device; Based on the attributes of the data and the network conditions, determining a concurrency number and a data slice size used in parallel transmission of the data; as well as Based on the concurrency number and the data slice size, transmitting the data in parallel between the first storage device and the second storage device; Wherein, based on the properties of the data and the network conditions, determining the concurrency number and the data slice size used in parallel transmission of the data includes: applying the properties of the data and the network conditions to a machine learning model, the machine learning model being trained using results of one or more test parallel data transmissions, the one or more test parallel data transmissions each using at least one of the following: a different concurrency number and a different data slice size.
2. The method according to claim 1, wherein obtaining the attribute of the data comprises: Obtain at least one of the following: the size of the data, the number of files in the data, the proportion of incremental data in the data, and the discreteness of the incremental data, wherein the discreteness includes the average region size, minimum region size, maximum region size, and total number of regions of the incremental data.
3. The method according to claim 1, wherein obtaining the network status comprises: Obtain at least one of the following: network bandwidth and network latency between the first storage device and the second storage device.
4. The method according to claim 1, wherein the determination of the concurrency number and the data slice size is performed by the machine learning model, and the method further comprises: performing parallel data transmission between a third storage device and a fourth storage device using different data attributes and network conditions, the third storage device and the fourth storage device being test devices; generating a test data set based on parallel data transmission between the third storage device and the fourth storage device; as well as The generated test dataset is used to train the machine learning model.
5. The method according to claim 4, wherein generating the test data comprises: For given data attributes and given network conditions, multiple pairs of concurrency number and data slice size are used to respectively perform multiple parallel data transmissions; Record the execution time used to complete the parallel data transmission using each pair of concurrency number-data slice size in the multiple pairs of concurrency number-data slice; Determine a pair of concurrency number-data slice size with the shortest execution time among the multiple pairs of concurrency number-data slice size as the optimal concurrency number and data slice size; as well as The optimal concurrency number and data slice size are associated with the given data attribute and the given network condition and stored in the test data set.
6. The method of claim 5, wherein using the generated test data set to train the machine learning model comprises: The generated test dataset is used to train a decision tree model for determining the number of concurrency and data slices in parallel transmission of data.
7. The method according to claim 6, further comprising: Deploying the trained decision tree model in a storage system; Collecting user selection solutions that are better than the recommended solutions of the decision tree model as new training data; as well as The decision tree model is incrementally trained using the new training data.
8. The method of claim 1, wherein transmitting the data in parallel between the first storage device and the second storage device comprises: Based on the size of the data slice, the data is divided into a plurality of data slices; as well as Based on the concurrency number, the multiple data slices are backed up from the first storage device to the second storage device.
9. A device for parallel transmission of data, comprising: Processing unit; as well as A memory coupled to the processing unit and storing instructions that, when executed by the processing unit, perform the following actions: Obtaining properties of data to be transmitted from a first storage device to a second storage device and a network status between the first storage device and the second storage device; Based on the attributes of the data and the network conditions, determining a concurrency number and a data slice size used in parallel transmission of the data; as well as Based on the concurrency number and the data slice size, transmitting the data in parallel between the first storage device and the second storage device; Wherein, based on the attribute of the data and the network condition, determining the concurrency number and the data slice size used in parallel transmission of the data comprises: The properties of the data and the network conditions are applied to a machine learning model, wherein the machine learning model is trained using results of one or more test parallel data transmissions, each of the one or more test parallel data transmissions using at least one of: a different number of concurrencies and a different data slice size.
10. The apparatus of claim 9, wherein obtaining the attribute of the data comprises: Obtain at least one of the following: the size of the data, the number of files in the data, the proportion of incremental data in the data, and the discreteness of the incremental data, wherein the discreteness includes the average region size, minimum region size, maximum region size, and total number of regions of the incremental data.
11. The device according to claim 9, wherein obtaining the network status comprises: Obtain at least one of the following: network bandwidth and network latency between the first storage device and the second storage device.
12. The device according to claim 9, wherein the determination of the concurrency number and the data slice size is performed by the machine learning model, and the action further comprises: performing parallel data transmission between a third storage device and a fourth storage device using different data attributes and network conditions, the third storage device and the fourth storage device being test devices; generating a test data set based on parallel data transmission between the third storage device and the fourth storage device; as well as The generated test dataset is used to train the machine learning model.
13. The apparatus of claim 12, wherein generating the test data comprises: For given data attributes and given network conditions, multiple pairs of concurrency number and data slice size are used to respectively perform multiple parallel data transmissions; Record the execution time used to complete the parallel data transmission using each pair of concurrency number-data slice size in the multiple pairs of concurrency number-data slice; Determine a pair of concurrency number-data slice size with the shortest execution time among the multiple pairs of concurrency number-data slice size as the optimal concurrency number and data slice size; as well as The optimal concurrency number and data slice size are associated with the given data attribute and the given network condition and stored in the test data set.
14. The apparatus of claim 13, wherein using the generated test data set to train the machine learning model comprises: The generated test dataset is used to train a decision tree model for determining the number of concurrency and data slices in parallel transmission of data.
15. The apparatus of claim 14, the actions further comprising: Deploying the trained decision tree model in a storage system; Collecting user selection solutions that are better than the recommended solutions of the decision tree model as new training data; as well as The decision tree model is incrementally trained using the new training data.
16. The device of claim 9, wherein transferring the data in parallel between the first storage device and the second storage device comprises: Based on the size of the data slice, the data is divided into a plurality of data slices; as well as Based on the concurrency number, the multiple data slices are backed up from the first storage device to the second storage device.
17. A computer program product tangibly stored on a non-transitory computer readable medium and comprising computer executable instructions which, when executed, cause a computer to perform the method according to any one of claims 1 to 8.
