File transmission method, system, device and electronic equipment

By dynamically setting the acceleration algorithm of the storage device to adapt to the file category, the problem of low efficiency of the acceleration algorithm for multi-category file transmission in the existing technology is solved, and more efficient file transmission is achieved.

CN112104735BActive Publication Date: 2024-10-15HANGZHOU HIKSTORAGE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010973025.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2024-10-15
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

The fixed-configuration acceleration algorithm of existing storage devices can only effectively improve the writing speed of one type of file, resulting in low file transfer efficiency.

Method used

By sending algorithm setting information to the storage device, the target acceleration algorithm is dynamically set to adapt to the category of files to be transferred, ensuring that the acceleration algorithm is in working condition to improve file transfer efficiency.

Benefits of technology

Improved file transfer efficiency, especially for target category files, avoiding acceleration algorithm conflicts and firmware crashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112104735B_ABST
    Figure CN112104735B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a file transfer method, system, device and electronic device, which relate to the field of computer technology, and include: sending first algorithm setting information to a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements; and when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. It can be seen that the solution provided by the embodiments of the present application can improve the efficiency of file transfer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a file transmission method, system, device and electronic equipment. Background Art

[0002] With the rapid development of hardware technology, storage devices are becoming more and more diverse and widely used. In the application process, files can be transferred to the storage device, so that the files are stored in the storage device.

[0003] Storage devices are often configured with a fixed acceleration algorithm to increase the storage device's write speed for received files, thereby accelerating the file transfer process. However, the storage device's fixed acceleration algorithm can often only have a significant effect on the write speed of one type of file, thus easily leading to low efficiency when transferring files to the storage device. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a file transmission method, system, device and electronic device to improve the efficiency of file transmission. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a file transmission method, which is applied to a client, and the method includes:

[0006] Sending first algorithm setting information to a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets a preset requirement;

[0007] In the case where the first algorithm setting information is successfully sent to the storage device, a file is transferred to the storage device.

[0008] In one embodiment of the present application, the target category is: a category of files to be transferred to the storage device predicted based on distribution information of categories of historical files that have been transferred to the storage device, wherein the distribution information represents: a quantity distribution of historical files of each category;

[0009] In one embodiment of the present application, the target category is determined by:

[0010] Obtaining categories of historical files that have been transferred to a storage device;

[0011] Obtaining distribution information characterizing the quantity distribution of historical documents of each category;

[0012] According to the distribution information, the category of the file to be transferred to the storage device is predicted as the target category.

[0013] In one embodiment of the present application, after the step of transferring the file to the storage device, the method further includes:

[0014] The obtained distribution information is updated according to the category of the transmitted file, and the category of the file to be transmitted to the storage device next time is predicted according to the updated distribution information.

[0015] In one embodiment of the present application, when the first algorithm setting information is successfully sent to the storage device, transferring the file to the storage device includes:

[0016] In case of receiving the setting success information fed back by the storage device, the file is transmitted to the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state.

[0017] In one embodiment of the present application, the method further includes:

[0018] When the file transfer to the storage device is completed, second algorithm setting information is sent to the storage device, wherein the second algorithm setting information is used to instruct the storage device to set the target acceleration algorithm to a non-working state.

[0019] In a second aspect, an embodiment of the present application provides a file transfer method, which is applied to a storage device, wherein the storage device is configured with multiple acceleration algorithms, and the method includes:

[0020] Receiving first algorithm setting information sent by the client;

[0021] According to the first algorithm setting information, a target acceleration algorithm among the multiple acceleration algorithms is set to be in a working state, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets a preset requirement;

[0022] The file transmitted by the client is received, and the transmission process of the received file is accelerated based on the target acceleration algorithm.

[0023] In one embodiment of the present application, the method further comprises:

[0024] Receiving second algorithm setting information sent by the client when the file transfer is completed;

[0025] The target acceleration algorithm is set to a non-working state according to the second algorithm setting information.

[0026] In one embodiment of the present application, after the step of setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, the method further includes:

[0027] Sending a setting success message to the client, wherein the setting success message indicates that the target algorithm is successfully set to a working state.

[0028] In a third aspect, an embodiment of the present application provides a file transfer system, the system comprising a client and a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, wherein:

[0029] The client is used to send first algorithm setting information to the storage device;

[0030] The storage device is used to receive the first algorithm setting information, and set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, wherein the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements;

[0031] The client is used to transfer files to the storage device when the first algorithm setting information is successfully sent to the storage device;

[0032] The storage device is used to receive the file transmitted by the client and accelerate the transmission process of the received file based on the target acceleration algorithm.

[0033] In one embodiment of the present application, the target category is: the category of files to be transferred to the storage device predicted based on the distribution information of the categories of historical files that have been transferred to the storage device, wherein the distribution information represents: the quantity distribution of historical files of each category.

[0034] In one embodiment of the present application, the client is also used to determine the target category in the following manner: obtain the category of historical files that have been transferred to the storage device; obtain distribution information characterizing the quantity distribution of historical files of each category; and predict the category of files to be transferred to the storage device as the target category based on the distribution information.

[0035] In one embodiment of the present application, the client is also used to: after transferring the file to the storage device, update the obtained distribution information according to the category of the transferred file, and predict the category of the file to be transferred to the storage device next time according to the updated distribution information.

[0036] In one embodiment of the present application, the storage device is further used to: after setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, send setting success information to the client;

[0037] The client is specifically configured to: upon receiving the setting success information, transfer the file to the storage device.

[0038] In one embodiment of the present application, the client is further used to: send second algorithm setting information to the storage device when the file transfer to the storage device is completed;

[0039] The storage device is further used to: receive the second algorithm setting information, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information.

[0040] In a fourth aspect, an embodiment of the present application provides a file transmission device, which is arranged on a client, and the device includes:

[0041] A first information sending module is used to send first algorithm setting information to a storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements;

[0042] The file transmission module is used to transmit files to the storage device when the first algorithm setting information is successfully sent to the storage device.

[0043] In one embodiment of the present application, the target category is: the category of files to be transferred to the storage device predicted based on the distribution information of the categories of historical files that have been transferred to the storage device, wherein the distribution information represents: the quantity distribution of historical files of each category.

[0044] In one embodiment of the present application, the device further includes a category determination module, configured to determine the target category in the following manner:

[0045] Obtaining categories of historical files that have been transferred to a storage device;

[0046] Obtaining distribution information characterizing the quantity distribution of historical documents of each category;

[0047] According to the distribution information, the category of the file to be transferred to the storage device is predicted as the target category.

[0048] In one embodiment of the present application, the device also includes a category prediction module, which is used to: after transferring the file to the storage device, update the obtained distribution information according to the category of the transferred file, and predict the category of the file to be transferred to the storage device next time based on the updated distribution information.

[0049] In one embodiment of the present application, the file transfer module is specifically used to: transfer files to the storage device when receiving the setting success information fed back by the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state.

[0050] In one embodiment of the present application, the device also includes a second information sending module, which is used to: send second algorithm setting information to the storage device when the file transfer to the storage device is completed, wherein the second algorithm setting information is used to: instruct the storage device to set the target acceleration algorithm to a non-working state.

[0051] In a fifth aspect, an embodiment of the present application provides a file transmission device, which is arranged in a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the device comprises:

[0052] A first information receiving module, used to receive first algorithm setting information sent by a client;

[0053] an algorithm setting module, configured to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state according to the first algorithm setting information, wherein the effect of the target acceleration algorithm on accelerating the transmission process of files of the target category meets a preset requirement;

[0054] The file receiving module is used to receive the file transmitted by the client and accelerate the transmission process of the received file based on the target acceleration algorithm.

[0055] In one embodiment of the present application, the device also includes a second information receiving module, which is used to: receive second algorithm setting information sent by the client when completing file transfer, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information.

[0056] In one embodiment of the present application, the device also includes a third information sending module, which is used to: after setting the target acceleration algorithm among the multiple acceleration algorithms in a working state according to the first algorithm setting information, send a setting success message to the client, wherein the setting success message indicates that the target algorithm is successfully set to a working state.

[0057] In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0058] Memory, used to store computer programs;

[0059] The processor is used to implement the method steps described in any one of the first aspect or the second aspect when executing the program stored in the memory.

[0060] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of the first aspect or the second aspect are implemented.

[0061] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned file transfer methods.

[0062] Beneficial effects of the embodiments of the present application:

[0063] When the file transfer scheme provided by the embodiment of the present application is used for file transfer, the client sends first algorithm setting information to the storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm in a working state among the plurality of acceleration algorithms, and the effect of the target acceleration algorithm in accelerating the transmission process of the target category of files meets the preset requirements; when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. When the client transfers files to the storage device, it can flexibly instruct the storage device to set the target acceleration algorithm in a working state, and the target acceleration algorithm has a better effect of accelerating the transmission process of the target category of files, so that during the file transfer process, especially when the target category is the category of the file to be transferred, the target acceleration algorithm in the storage device in a working state can accelerate the file transfer process. It can be seen that the application of the scheme provided by the embodiment of the present application can improve the efficiency of file transfer. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 A schematic diagram of the structure of a file transmission system provided in an embodiment of the present application;

[0066] Figure 2 A signaling interaction diagram of a file transfer process provided in an embodiment of the present application;

[0067] Figure 3 A flowchart of a method for determining a target category provided in an embodiment of the present application;

[0068] Figure 4 A flowchart of a file transmission method provided in an embodiment of the present application;

[0069] Figure 5 A flowchart of another file transmission method provided in an embodiment of the present application;

[0070] Figure 6 A schematic diagram of the structure of a file transmission device provided in an embodiment of the present application;

[0071] Figure 7 A schematic diagram of the structure of another file transmission device provided in an embodiment of the present application;

[0072] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0074] To improve the efficiency of file transmission, the embodiments of the present application provide a file transmission method, system, device and electronic device, which are described in detail below.

[0075] See also Figure 1 , Figure 1 A structural diagram of a file transfer system provided in an embodiment of the present application, the system includes a client 101 and a storage device 102.

[0076] The client 101 may be an electronic device such as a laptop computer, a desktop computer, a tablet computer, etc., or may be an application program running in the electronic device and used for file transfer.

[0077] The above-mentioned storage device 102 is: a device for storing files, which can be a storage device 102 built into the above-mentioned electronic device, such as SSD (Solid State Disk), HDD (Hard Disk Drive), etc., or a device connected to the client 101 network, such as a storage server, etc., or a mobile storage device 102, such as a USB flash disk (USB flash disk), PSSD (Portable Solid State Disk), PHDD (Portable Hard Disk Drive), etc.

[0078] A variety of acceleration algorithms can be configured in the storage device to accelerate the file transfer process. Different acceleration algorithms have different effects on accelerating the transfer process of different categories of files. For example, assume that the acceleration algorithms configured by the storage device 102 include a large file acceleration algorithm that is better than accelerating the transfer process of large file categories, and a small file acceleration algorithm that is better than accelerating the transfer process of small file categories. Among them, the large file acceleration algorithm has a better effect of accelerating the transfer process of large file categories, and a poorer effect of accelerating the transfer process of small file categories; the small file acceleration algorithm has a better effect of accelerating the transfer process of small file categories, and a poorer effect of accelerating the transfer process of large file categories.

[0079] In the file transmission system, the client 101 is used to send first algorithm setting information to the storage device 102;

[0080] The storage device 102 is used to receive the first algorithm setting information, and according to the first algorithm setting information, set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets the preset requirements;

[0081] The client 101 is used to transfer a file to the storage device 102 when the first algorithm setting information is successfully sent to the storage device 102;

[0082] The storage device 102 is used to receive files transmitted by the client 101 and accelerate the transmission process of the received files based on a target acceleration algorithm.

[0083] The target category may be a category of files to be transferred from the client 101 to the storage device 102 .

[0084] When files are divided from different perspectives, the resulting file categories are different. For example, according to the file size, the file categories may include small files, large files, and super large files. Specifically, a file size threshold may be pre-set, and files whose sizes exceed the file size threshold belong to the large file category, and files whose sizes do not exceed the above file size threshold belong to the small file category. For example, assuming that the preset file size threshold is 10M, if the file size is 16M, the file category is a large file.

[0085] According to the file format, the file category may include video, image, text, audio, etc. Specifically, the file format may be obtained, and the file category may be determined according to the file format. For example, if the file format is txt (text file), the file category may be determined to be text; if the file format is FLV (Flash Video, streaming media format), the file category may be determined to be video.

[0086] The file category can also be divided in combination with the file size and format, so that the file category can include large video files, small video files, large image files, small image files, large text files, small text files, etc. For example, assuming that the file size threshold is 80M, the file format is JPEG (Joint Photographic Experts Group), and the file size is 20M, then it can be determined that the file category is a small image file.

[0087] The first algorithm setting information is used to instruct the storage device 102 to set a target acceleration algorithm among multiple acceleration algorithms to be in working state, and the effect of the target acceleration algorithm on accelerating the transmission process of files of the target category meets the preset requirements.

[0088] The preset requirement may be that after the acceleration algorithm accelerates the file transfer process, the file transfer speed reaches a preset speed. The preset speed may be 125M / s, 150M / s, 250M / s, etc.

[0089] The preset requirement may also be that the acceleration ratio of the acceleration algorithm to accelerate the file transfer process reaches a preset ratio, and the acceleration ratio is the ratio of the increase in the file transfer speed after acceleration to the file transfer speed before acceleration. For example, assuming that the file transfer speed before acceleration is 100M / s and the file transfer speed after acceleration is 160M / s, it can be calculated that the increase in the transfer speed is 60M / s and the acceleration ratio is 60%.

[0090] The target acceleration algorithm may be: the algorithm that has the best effect of accelerating the transmission process of the target category of files among the acceleration algorithms configured by the storage device 102. For example, assuming that the storage device 102 is configured with three acceleration algorithms A, B, and C, and acceleration algorithm A can accelerate the transmission process of the target category of files by 50%, acceleration algorithm B can accelerate by 100%, and acceleration algorithm C can accelerate by 200%, then acceleration algorithm C can be selected as the target acceleration algorithm.

[0091] The target acceleration algorithm may also be an algorithm whose effect of accelerating the transmission process of target category files meets the preset requirements. Taking the above embodiment as an example, assuming that the preset requirement is to accelerate the transmission process of target category files by 80%, and the acceleration algorithms that meet the above preset requirement are B and C, then B or C can be selected as the target acceleration algorithm.

[0092] The acceleration algorithm configured by the storage device 102 has two states: working state and non-working state. When the acceleration algorithm is in the working state, it can be considered that the algorithm is activated, so that the acceleration algorithm can accelerate the writing speed of the files received by the storage device 102; when the acceleration algorithm is in the non-working state, it can be considered that the algorithm is not activated, and it is difficult for the acceleration algorithm to accelerate the writing speed of the files received by the storage device 102. In one embodiment of the present application, among the multiple acceleration algorithms configured by the storage device 102, when any acceleration algorithm is in the working state, the other acceleration algorithms are in the non-working state. That is, only one acceleration algorithm in the storage device 102 is in the working state at the same time. This can avoid algorithm conflicts and firmware crashes caused by multiple acceleration algorithms being in the working state at the same time.

[0093] In one embodiment of the present application, the initial state of the acceleration algorithms configured in the storage device 102 may be all non-working states, that is, in the initial state, all acceleration algorithms in the storage device 102 are not activated. In this way, when the storage device 102 does not receive the first algorithm setting information, the acceleration algorithm in the storage device 102 will not accelerate the file transfer process. The initial state of the acceleration algorithm configured in the storage device 102 may also be: an acceleration algorithm is preset to be in a working state, so that in the initial state, there is an acceleration algorithm activated in the storage device 102. In this way, when the storage device 102 receives the first algorithm setting information, the storage device 102 can adjust its own acceleration algorithm in a working state so that the target acceleration algorithm is in a working state, so that the target acceleration algorithm accelerates the file transfer process; when the storage device 102 does not receive the first algorithm setting information, the storage device 102 can accelerate the file transfer process based on the acceleration algorithm in a working state in the initial state.

[0094] See also Figure 2 , Figure 2 A signaling interaction diagram of a file transfer process provided by an embodiment of the present application. Specifically, the client 101 can first determine the category of the file to be transferred to the storage device 102 as the target category. When performing file transfer, the client 101 can generate the first algorithm setting information according to the above target category, and send the generated information to the storage device 102. After receiving the first algorithm setting information, the storage device 102 can set the target acceleration algorithm in the acceleration algorithm configured by itself to a working state. When the client 101 successfully sends the first algorithm setting information to the storage device 102, it can be considered that the storage device 102 successfully sets the target acceleration algorithm to a working state, so the file is transferred to the storage device 102, so that the storage device 102 can receive the file and accelerate the file transfer process based on the target acceleration algorithm in the working state. The target acceleration algorithm has a good effect of accelerating the transmission process of the target category file, so when the client 101 transfers the file to the storage device 102, the target acceleration algorithm can better accelerate the file transmission process, thereby improving the file transfer efficiency.

[0095] The first algorithm setting information sent by the client 101 may carry a variety of information, which will be described below respectively.

[0096] In one embodiment of the present application, the first algorithm setting information may be information carrying the identifier of the target category. Specifically, after determining the target category, the client 101 may generate information carrying the identifier of the target category and send it to the storage device 102. After receiving the information, the storage device 102 obtains the identifier of the target category carried in the information, and then may select from the acceleration algorithms configured by itself an algorithm that accelerates the transmission process of the target category file and meets the preset requirements, as the target acceleration algorithm, and sets the selected target acceleration algorithm to the working state.

[0097] In one embodiment of the present application, the first algorithm setting information may also be information carrying the identification of a target acceleration algorithm. Specifically, after determining the target category, the client 101 may also obtain information about the algorithms configured by the storage device 102, and select an algorithm that meets preset requirements for accelerating the transmission process of files of the target category as the target acceleration algorithm. The client 101 may then generate information carrying the identification of the target acceleration algorithm, and send the generated information to the storage device 102. After receiving the information, the storage device 102 may obtain the identification of the target acceleration algorithm, and then set the target acceleration algorithm in its own configured algorithm to a working state.

[0098] In one embodiment of the present application, the correspondence between the category of the file and the acceleration algorithm that meets the preset requirements can be preset, and each category can correspond to one or more acceleration algorithms. In this way, after determining the target category, the acceleration algorithm corresponding to the target category can be searched in the above correspondence, and the acceleration algorithm found can be used as the target acceleration algorithm. The above correspondence can be stored in the client 101 and / or the storage device 102, so that the client 101 and / or the storage device 102 can search for the target acceleration algorithm corresponding to the target category according to the correspondence.

[0099] In one embodiment of the present application, the client 101 can also detect the current acceleration algorithm of the storage device 102 that is currently in working state, and determine whether the effect of the current acceleration algorithm on accelerating the transmission process of files of the target category meets the preset requirements. If so, the first algorithm setting information is not sent to the storage device 102, and the storage device 102 is kept accelerating the file transmission process based on the current acceleration algorithm.

[0100] Alternatively, the client 101 may also determine the target acceleration algorithm, and determine whether the current acceleration algorithm is the same as the determined target acceleration algorithm. If not, the first algorithm setting information may be sent to the storage device 102; if yes, the first algorithm setting information is not sent to the storage device 102. Specifically, the client 101 may send an algorithm detection request to the storage device 102. After receiving the request, the storage device 102 may send information representing the current acceleration algorithm currently in working state to the client 101. The client 101 determines the current acceleration algorithm currently in working state of the storage device 102 based on the received information, and makes a determination on the current acceleration algorithm.

[0101] In one embodiment of the present application, after sending the first algorithm setting information to the storage device 102, the client 101 can detect whether the acceleration algorithm in a working state in the storage device 102 is the target acceleration algorithm. If so, start transferring files to the storage device 102; if not, send the first algorithm setting information to the storage device 102 again until it is detected that the acceleration algorithm in a working state in the storage device 102 is the target acceleration algorithm.

[0102] In one embodiment of the present application, after the client 101 sends the first algorithm setting information to the storage device 102, it can also transfer files to the storage device 102 after a preset time interval. After the preset time interval of sending information, it can be considered that the storage device 102 has successfully set the target acceleration algorithm to the working state, so it can start to transfer files to the storage device 102. The above preset time length can be 50 milliseconds, 100 milliseconds, 1 second, etc., which can be determined according to the time required for the storage device 102 to receive information and set the acceleration algorithm state.

[0103] In another embodiment of the present application, the storage device 102 is further used to: after setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, send a setting success message to the client 101;

[0104] The client 101 is specifically used to transfer files to the storage device 102 when receiving the setting success information.

[0105] Specifically, after receiving the first algorithm setting information, the storage device 102 can set the target algorithm to the working state according to the first algorithm setting information, and after the setting is successful, feedback the setting success information to the client 101. After receiving the setting success information, the client 101 can start sending files to the storage device 102.

[0106] In one embodiment of the present application, if the client 101 does not receive the setting success information within a preset time interval after sending the first algorithm setting information, the client 101 may send the first algorithm setting information to the storage device 102 again.

[0107] The preset time interval may be 1 second, 2 seconds, 5 seconds, etc.

[0108] Specifically, when the client 101 does not receive the setting success information within the preset time interval, it can be considered that the storage device 102 has failed to successfully set the target algorithm to the working state, and thus the storage device 102 can be instructed to perform the setting again.

[0109] In one embodiment of the present application, when transferring files to the storage device 102, multiple files may be transferred in parallel or in series, and the present application does not limit this.

[0110] The files to be transferred may be files in different folders, or some files in the same folder, or all files in the same folder. In one embodiment of the present application, the files to be transferred may be moved to the same folder, which only contains the files to be transferred, and then the folder may be selected to transfer all the files in the folder.

[0111] The above target category determination method can be implemented in different ways, which are described below respectively.

[0112] In one embodiment of the present application, the target category may be: the category of the file to be transmitted to the storage device 102 predicted based on the distribution information of the categories of the historical files that have been transmitted to the storage device 102 .

[0113] The distribution information represents: the quantity distribution of historical files in each category.

[0114] The above historical files are files that the client 101 has transferred to the storage device 102. It should be noted that the above storage device 102 does not necessarily refer to a specific storage device 102, but includes various storage devices 102 to which the client 101 has transferred files. For example, assuming that the client 101 has transferred 10 files to the storage device 102C1 and 20 files to the storage device 102C2, the above 30 files in total can be used as historical files.

[0115] Specifically, the client 101 may obtain distribution information of categories of historical files, determine the categories of files that the client 101 is accustomed to transferring based on the distribution information, and predict the categories of files to be transferred to the storage device 102 based on the categories as target categories.

[0116] See also Figure 3 , Figure 3 A flowchart of a method for determining a target category provided in an embodiment of the present application is provided. The method includes the following steps 301 to 303.

[0117] Step 301: Obtain the category of the historical files that have been transmitted to the storage device.

[0118] Specifically, the client 101 may obtain the attributes of each historical file, and determine the category of each historical file according to the attributes of each historical file, wherein the attributes of the file may include information such as the size and format of the file.

[0119] In one embodiment of the present application, a correspondence between the attributes of a file and the category of the file may be preset, and after the attributes of the file are obtained, the category of the file is determined according to the above correspondence.

[0120] Specifically, when the attributes of a file include the size of the file, and the categories of the file include small files, large files, etc., a file size threshold may be pre-set to determine that files with a size exceeding the file size threshold belong to the large file category, and files with a size not exceeding the file size threshold belong to the small file category. For example, assuming that the preset file size threshold is 20M, if the file size is 8M, the category of the file is determined to be a small file.

[0121] When the attributes of a file include the format of the file, and the category of the file includes video, image, text, audio, etc., the category of the file can be determined according to the format of the file. For example, if the format of the file is MP3 (Moving Picture Experts Group Audio Layer III), the category of the file can be determined to be audio; if the format of the file is JPG (Joint Photographic Experts Group), the category of the file can be determined to be image.

[0122] The file category can also be divided in combination with the file size and format, so that the file category can include large video files, small video files, large image files, small image files, large text files, small text files, etc. For example, assuming that the file size threshold is 80M, the file format is JPEG (Joint Photographic Experts Group), and the file size is 160M, then it can be determined that the file category is a large image file.

[0123] In one embodiment of the present application, when the client 101 transfers a file to the storage device 102, it can obtain the attributes of the transferred file and record the obtained attributes, so that the client 101 can obtain the attributes of each historical file according to the records later.

[0124] In one embodiment of the present application, the above historical files may be: all files that the client 101 has transmitted to the storage device 102, or may be: files that the client 101 has transmitted to the storage device 102 in a preset time period before the current moment. The above preset time period may be: 7 days, 30 days, 180 days, etc. In this way, based on the attributes of the files transmitted by the client 101 to the storage device 102 in the recent period of time, the category of the file that the client 101 will transmit to the storage device 102 next time can be predicted, and the obtained prediction result is more consistent with the category of the file recently transmitted by the client 101, thereby improving the accuracy of the prediction result.

[0125] Step 302: Obtain distribution information representing the quantity distribution of historical files of each category.

[0126] Specifically, the number of historical files of different categories can be counted to obtain distribution information representing the number distribution of historical files of each category. For example, assuming that the total number of historical files is 100, of which the number of historical files of the large file category is 35 and the number of historical files of the small file category is 65, then distribution information representing that there are 35 historical files of the large file category and 65 historical files of the small file category can be obtained.

[0127] In one embodiment of the present application, the above distribution information can also be represented by the probability that the number of historical files of each category accounts for the total number of historical files. For example, assuming that the total number of historical files is 200, of which the number of historical files of the video category is 80 and the number of historical files of the image category is 120, then the distribution information representing that the historical files of the video category account for 40% and the historical files of the image category account for 60% can be obtained.

[0128] Step 303: predict the category of the file to be transferred to the storage device according to the distribution information as the target category.

[0129] Specifically, since the distribution information represents the quantity distribution of historical files in each category, the category with the largest number of historical files can be selected as the category of files to be transmitted to the storage device 102, that is, the target category.

[0130] When the scheme provided by the above embodiment is applied to determine the target category, the category of historical files that the client 101 has transferred to the storage device 102 can be obtained, and the category of files that the user is accustomed to transferring using the client 101 can be determined based on the obtained category, and the category of files that the user is accustomed to transferring using the client 101 can be used as the category of files that the client 101 transfers to the storage device 102 next time, that is, the target category. Then, the target acceleration algorithm for accelerating the file transfer process in the storage device 102 can be determined based on the target category, and the file transfer process can be accelerated based on the target acceleration algorithm, thereby improving the file transfer efficiency.

[0131] In one embodiment of the present application, when a file needs to be transferred to the storage device 102, the above-mentioned Figure 2 The scheme shown in the embodiment is used to predict the category of the file that the client 101 is about to transfer to the storage device 102 as the target category. It can also be performed when transferring files to the storage device 102 before. Figure 2 The scheme shown in the embodiment stores the predicted target category. When a file needs to be transferred to the storage device 102 next time, the stored target category is obtained as the category of the file to be transferred next time.

[0132] The client 101 may store the pre-predicted target categories in the form of tags. In this case, when a file needs to be transferred to the storage device 102, the client 101 may obtain the locally stored tags and determine the category of the file to be transferred to the storage device 102 according to the tags as the target category.

[0133] In one embodiment of the present application, the client 101 is also used to: after transferring a file to the storage device 102, update the obtained distribution information according to the category of the transferred file, and predict the category of the file to be transferred to the storage device 102 next time according to the updated distribution information.

[0134] Specifically, each time the client 101 transfers a file to the storage device 102, it can obtain the attributes of each file being transferred, determine the category of each file according to the attributes of each file, and then update the obtained distribution information representing the quantity distribution of historical files of each category based on the category of each file transferred this time, obtain the latest distribution information, and predict the category of the file to be transferred to the storage device 102 next time based on the latest distribution information. Among them, the number of files of different categories in the historical files and the files to be transferred can be re-counted to obtain new distribution information. The method of predicting the category of the file to be transferred to the storage device 102 next time based on the new distribution information is similar to the prediction method in the above step 203, and will not be repeated here.

[0135] In one embodiment of the present application, after predicting the category of the file to be transmitted to the storage device 102 next time, the predicted category can be saved. In this way, when the file is transmitted to the storage device 102 next time, the saved category can be directly determined as the target category. In this way, there is no need to temporarily determine the category of the file to be transmitted, thereby saving time in determining the target category and further improving the efficiency of file transmission.

[0136] In one embodiment of the present application, the category of the file to be transmitted to the storage device 102 next time can be predicted after the file to be transmitted this time is transmitted; the category of the file to be transmitted next time can also be predicted during the transmission process; or the category of the file to be transmitted next time can be predicted before the file is transmitted. In this way, the latest prediction result can be used as the category of the file to be transmitted this time, that is, the target category.

[0137] In one embodiment of the present application, when obtaining the attributes of each file, the source path of the file can be obtained, and the file can be accessed according to the source path to obtain at least one of the information such as the size, format, suffix name, creation time, etc. of the file as the attribute of the file.

[0138] In one embodiment of the present application, when obtaining distribution information representing the number distribution of files in each category, the attributes of each file can be first obtained, and the obtained attributes are input into a pre-trained category distribution model, and the category distribution model outputs the probability of each category of files based on the input attributes, thereby obtaining the probability distribution of each category. The category with the largest probability can be selected as the target probability.

[0139] Among them, during the training process of the above-mentioned category distribution model, the attributes of the sample file can be used as the sample input data, and the sample input data can be labeled based on the category of the sample file, the initial category distribution model can be input, the probability distribution of different categories can be output, and the parameters of the model can be adjusted based on the output results until the model converges.

[0140] In one embodiment of the present application, when the distribution information is updated based on the attributes of the file to be transmitted, the attributes of the file to be transmitted can also be input into the above-mentioned category distribution model. The model can combine the distribution information obtained based on the attributes of the historical files and the attributes of the file input this time to obtain a new probability distribution of different categories, and then predict the category of the file to be transmitted next time based on the new probability distribution.

[0141] In one embodiment of the present application, when determining the category of the file to be transferred to the storage device 102, the client 101 may also receive the category of the file input by the user as the target category. Specifically, when the user transfers the file using the client 101, the user may determine the category of the file to be transferred according to the attribute of the file, and then input the determined category into the client 101 through the input device. After receiving the category of the file input by the user, the client 101 may use the received category as the target category of the file to be transferred to the storage device 102.

[0142] In one embodiment of the present application, the client 101 may also obtain the attributes of the file to be transmitted, and determine the category of the file to be transmitted according to the obtained attributes as the target category. Specifically, the user may select a file in the client 101 through an input device, and the client 101 uses the file selected by the user as the file to be transmitted, and obtains the attributes of the above file, determines the category of the file according to the attributes of the file, and uses the determined category as the target category. The attributes of the file may include at least one of the following information: the name, suffix, format, size, creation time, creator, etc. of the file.

[0143] In one embodiment of the present application, when the client 101 transfers a file to the storage device 102, it can obtain the source path of each file to be transferred, and obtain the target path where the file is to be stored in the storage device 102, add the path record containing the source path and the target path of the file to the serial transmission queue, and for each path record in the serial transmission queue, obtain the file to be transferred from the source path contained in the path record according to the queue order of the path record in the serial transmission queue, and transfer the obtained file to the target path contained in the path record.

[0144] The source path of each file is: the path where the file is located on the client 101. For example, assuming that the file is stored in a desktop folder of the C drive in the computer, the source path of the file may be "C:\Desktop".

[0145] The target path of each file is: the path where the file is to be stored in the storage device 102. For example, assuming that the file is to be stored in the backup folder of the storage device 102F, the target path of the file may be "F:\backup folder".

[0146] The above source path and / or target path may be expressed in the form of an absolute address.

[0147] Specifically, after determining the files to be transferred to the storage device 102, each file to be transferred can be traversed to obtain the source path of each file, and the target path of each file to be stored in the storage device 102 can be obtained, and the source path and target path of each file can be recorded to obtain the path record of the file, and each file corresponds to a path record. Then, the path record of each file can be added to the serial transmission queue, and the files corresponding to each path record can be transmitted according to the queue order of each path record in the queue. Specifically, each path record can be read in sequence according to the queue order to obtain the source path and target path contained in the path record, and the file can be obtained from the source path as the file to be transferred, and then the obtained file can be transferred to the target path.

[0148] In one embodiment of the present application, when adding a path record to a serial transmission queue, the path record can be added to the end of the serial transmission queue in sequence, so that the client 101 can sequentially transmit the files corresponding to each path record in the order from the beginning to the end of the serial transmission queue. Wherein, for each path record, when adding the path record to the serial transmission queue, if the queue is empty, it means that the client 101 has transmitted the file corresponding to the previously added path record to the storage device 102, or the file corresponding to the path record is the first file to be transmitted, so the file corresponding to the path record can be directly transmitted; if the queue is not empty, the path record is added to the end of the serial transmission queue.

[0149] In one embodiment of the present application, when obtaining the path record of each file, the file information of each file can also be obtained, such as file size, creation time, format, suffix name, creator and other information. When predicting the category of the next file to be transmitted to the storage device 102 based on the attributes of the file to be transmitted, the information reflecting the attributes of the file can be selected from the obtained file information to obtain the attributes of the file.

[0150] In one embodiment of the present application, the client 101 is further configured to: upon completing the file transfer to the storage device 102, send the second algorithm setting information to the storage device 102;

[0151] The storage device 102 is further used to: receive second algorithm setting information, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information.

[0152] The second algorithm setting information is used to instruct the storage device 102 to set the target acceleration algorithm to be in a non-working state.

[0153] Specifically, when the client 101 determines that the file transfer to the storage device 102 is completed, it can generate second algorithm setting information and send the generated information to the storage device 102. After receiving the second algorithm setting information, the storage device 102 can set its currently working acceleration algorithm to a non-working state, that is, it can set the target acceleration algorithm to a non-working state.

[0154] In one embodiment of the present application, when the file is transferred to the storage device 102, the second algorithm setting information may not be sent to the storage device 102. In this way, the storage device 102 can keep the target acceleration algorithm in a working state. In this way, when the file is transferred to the storage device 102 next time, the file transfer process can be accelerated based on the same acceleration algorithm.

[0155] In one embodiment of the present application, the client 101 may consider that the file transfer to the storage device 102 is completed after sending each file to be transferred to the storage device 102. The storage device 102 may also be detected, and when it is detected that the storage device 102 writes each file to be transferred into the storage space, the file transfer to the storage device 102 is considered to be completed.

[0156] When the file transfer scheme provided by the above embodiment is applied to perform file transfer, the client sends first algorithm setting information to the storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm in a working state among the multiple acceleration algorithms, and the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets the preset requirements; when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. When the client transfers files to the storage device, it can flexibly instruct the storage device to set the target acceleration algorithm in a working state, and the target acceleration algorithm has a better effect of accelerating the transmission process of the target category of files, so that during the file transfer process, the target acceleration algorithm in the storage device that is in a working state can accelerate the file transfer process. It can be seen that the application of the scheme provided by the above embodiment can improve the efficiency of file transfer.

[0157] See also Figure 4 , Figure 4 A flowchart of a file transmission method provided in an embodiment of the present application is provided. The method is applied to a client and includes the following steps 401 to 402.

[0158] Step 401, sending first algorithm setting information to a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements;

[0159] Step 402: When the first algorithm setting information is successfully sent to the storage device, transfer a file to the storage device.

[0160] In one embodiment of the present application, the target category is: the category of files to be transferred to the storage device predicted based on the distribution information of the categories of historical files that have been transferred to the storage device, wherein the distribution information represents: the quantity distribution of historical files of each category.

[0161] In one embodiment of the present application, the target category is determined by:

[0162] Obtaining categories of historical files that have been transferred to a storage device;

[0163] Obtaining distribution information characterizing the quantity distribution of historical documents of each category;

[0164] According to the distribution information, the category of the file to be transferred to the storage device is predicted as the target category.

[0165] In one embodiment of the present application, after the step of transferring the file to the storage device, the method further includes:

[0166] The obtained distribution information is updated according to the category of the transmitted file, and the category of the file to be transmitted to the storage device next time is predicted according to the updated distribution information.

[0167] In one embodiment of the present application, when the first algorithm setting information is successfully sent to the storage device, transferring the file to the storage device includes:

[0168] In case of receiving the setting success information fed back by the storage device, the file is transmitted to the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state.

[0169] In one embodiment of the present application, the method further includes:

[0170] When the file transfer to the storage device is completed, second algorithm setting information is sent to the storage device, wherein the second algorithm setting information is used to instruct the storage device to set the target acceleration algorithm to a non-working state.

[0171] See also Figure 5 , Figure 5 A flow chart of another file transfer method provided in an embodiment of the present application, the method is applied to a storage device, wherein the storage device is configured with multiple acceleration algorithms, and the method includes the following steps 501 to 503.

[0172] Step 501, receiving first algorithm setting information sent by the client;

[0173] Step 502: according to the first algorithm setting information, setting a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets a preset requirement;

[0174] Step 503: Receive the file transmitted by the client, and accelerate the transmission process of the received file based on the target acceleration algorithm.

[0175] In one embodiment of the present application, the method further comprises:

[0176] Receiving second algorithm setting information sent by the client when the file transfer is completed;

[0177] The target acceleration algorithm is set to a non-working state according to the second algorithm setting information.

[0178] In one embodiment of the present application, after the step of setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, the method further includes:

[0179] Sending a setting success message to the client, wherein the setting success message indicates that the target algorithm is successfully set to a working state.

[0180] When the file transfer scheme provided by the above embodiment is applied to perform file transfer, the client sends first algorithm setting information to the storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm in a working state among the multiple acceleration algorithms, and the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets the preset requirements; when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. When the client transfers files to the storage device, it can flexibly instruct the storage device to set the target acceleration algorithm in a working state, and the target acceleration algorithm has a better effect of accelerating the transmission process of the target category of files, so that during the file transfer process, the target acceleration algorithm in the storage device that is in a working state can accelerate the file transfer process. It can be seen that the application of the scheme provided by the above embodiment can improve the efficiency of file transfer.

[0181] See also Figure 6 , Figure 6 A schematic diagram of the structure of a file transmission device provided in an embodiment of the present application, which is arranged on a client, includes:

[0182] A first information sending module 601 is used to send first algorithm setting information to a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets a preset requirement;

[0183] The file transmission module 602 is used to transmit a file to the storage device when the first algorithm setting information is successfully sent to the storage device.

[0184] In one embodiment of the present application, the target category is: the category of files to be transferred to the storage device predicted based on the distribution information of the categories of historical files that have been transferred to the storage device, wherein the distribution information represents: the quantity distribution of historical files of each category.

[0185] In one embodiment of the present application, the device further includes a category determination module, configured to determine the target category in the following manner:

[0186] Obtaining categories of historical files that have been transferred to a storage device;

[0187] Obtaining distribution information characterizing the quantity distribution of historical documents of each category;

[0188] According to the distribution information, the category of the file to be transferred to the storage device is predicted as the target category.

[0189] In one embodiment of the present application, the device also includes a category prediction module, which is used to: after transferring the file to the storage device, update the obtained distribution information according to the category of the transferred file, and predict the category of the file to be transferred to the storage device next time based on the updated distribution information.

[0190] In one embodiment of the present application, the file transfer module 602 is specifically used to: transfer files to the storage device when receiving the setting success information fed back by the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state.

[0191] In one embodiment of the present application, the device also includes a second information sending module, which is used to: send second algorithm setting information to the storage device when the file transfer to the storage device is completed, wherein the second algorithm setting information is used to: instruct the storage device to set the target acceleration algorithm to a non-working state.

[0192] See also Figure 7 , Figure 7 A schematic diagram of the structure of another file transfer device provided in an embodiment of the present application is provided in a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the device comprises:

[0193] The first information receiving module 701 is used to receive the first algorithm setting information sent by the client;

[0194] An algorithm setting module 702, configured to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state according to the first algorithm setting information, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets a preset requirement;

[0195] The file receiving module 703 is used to receive the file transmitted by the client and accelerate the transmission process of the received file based on the target acceleration algorithm.

[0196] In one embodiment of the present application, the device also includes a second information receiving module, which is used to: receive second algorithm setting information sent by the client when completing file transfer, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information.

[0197] In one embodiment of the present application, the device also includes a third information sending module, which is used to: after setting the target acceleration algorithm among the multiple acceleration algorithms in a working state according to the first algorithm setting information, send a setting success message to the client, wherein the setting success message indicates that the target algorithm is successfully set to a working state.

[0198] When the file transfer scheme provided by the above embodiment is applied to perform file transfer, the client sends first algorithm setting information to the storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm in a working state among the multiple acceleration algorithms, and the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets the preset requirements; when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. When the client transfers files to the storage device, it can flexibly instruct the storage device to set the target acceleration algorithm in a working state, and the target acceleration algorithm has a better effect of accelerating the transmission process of the target category of files, so that during the file transfer process, the target acceleration algorithm in the storage device that is in a working state can accelerate the file transfer process. It can be seen that the application of the scheme provided by the above embodiment can improve the efficiency of file transfer.

[0199] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0200] Memory 803, used for storing computer programs;

[0201] The processor 801 is used to implement the steps of any of the above-mentioned file transmission methods when executing the program stored in the memory 803.

[0202] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0203] The communication interface is used for communication between the above electronic device and other devices.

[0204] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0205] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0206] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned file transfer methods are implemented.

[0207] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any file transfer method in the above embodiments.

[0208] When the file transfer scheme provided by the above embodiment is applied to perform file transfer, the client sends first algorithm setting information to the storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to: instruct the storage device to set a target acceleration algorithm in a working state among the multiple acceleration algorithms, and the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets the preset requirements; when the first algorithm setting information is successfully sent to the storage device, the file is transferred to the storage device. When the client transfers files to the storage device, it can flexibly instruct the storage device to set the target acceleration algorithm in a working state, and the target acceleration algorithm has a better effect of accelerating the transmission process of the target category of files, so that during the file transfer process, the target acceleration algorithm in the storage device that is in a working state can accelerate the file transfer process. It can be seen that the application of the scheme provided by the above embodiment can improve the efficiency of file transfer.

[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0210] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0211] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for method embodiments, device embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments, since they are basically similar to system embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0212] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A file transfer method, It is characterized in that Applied to a client, the method comprises: Sending first algorithm setting information to a storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements, and only one acceleration algorithm in the storage device is in a working state at the same time; In the case where the first algorithm setting information is successfully sent to the storage device, transmitting the file to the storage device, so that the storage device accelerates the transmission process of the received file based on the target acceleration algorithm; The target category is determined in the following manner: obtaining attributes of files that the user has transferred to the storage device using the client, inputting the obtained attributes into a pre-trained category distribution model, and having the category distribution model output the probability of files in each category and the probability distribution of each category according to the input attributes, and selecting the category with the largest probability as the target category of files that the user is accustomed to transferring using the client; the attributes include size, format, suffix name, and creation time; The training process of the category distribution model is as follows: taking the attributes of the sample file as sample input data, labeling the sample input data based on the category of the sample file, inputting the initial category distribution model, outputting the probability distribution of different categories, and adjusting the parameters of the model based on the output results until the model converges.

2. The method according to claim 1, It is characterized in that After the step of transferring the file to the storage device, the method further comprises: The obtained distribution information is updated according to the category of the transmitted file, and the category of the file to be transmitted to the storage device next time is predicted according to the updated distribution information.

3. The method according to any one of claims 1 to 2, It is characterized in that The step of transmitting a file to the storage device in the case where the first algorithm setting information is successfully sent to the storage device comprises: In case of receiving the setting success information fed back by the storage device, the file is transmitted to the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state.

4. The method according to any one of claims 1 to 2, It is characterized in that The method further comprises: When the file transfer to the storage device is completed, second algorithm setting information is sent to the storage device, wherein the second algorithm setting information is used to instruct the storage device to set the target acceleration algorithm to a non-working state.

5. A file transfer method, It is characterized in that Applied to a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, the method comprising: Receiving first algorithm setting information sent by the client; According to the first algorithm setting information, a target acceleration algorithm among the multiple acceleration algorithms is set to be in a working state, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets a preset requirement, and only one acceleration algorithm in the storage device is in a working state at the same time; Receiving a file transmitted by the client, and accelerating the transmission process of the received file based on the target acceleration algorithm; The target category is determined in the following manner: the client obtains the attributes of the files that the user has transferred to the storage device using the client, inputs the obtained attributes into a pre-trained category distribution model, and the category distribution model outputs the probability of each category of files and the probability distribution of each category according to the input attributes, and selects the category with the largest probability as the target category of the files that the user is accustomed to transferring using the client; the attributes include size, format, suffix name, and creation time; The training process of the category distribution model is as follows: taking the attributes of the sample file as sample input data, labeling the sample input data based on the category of the sample file, inputting the initial category distribution model, outputting the probability distribution of different categories, and adjusting the parameters of the model based on the output results until the model converges.

6. The method according to claim 5, It is characterized in that The method further comprises: Receiving second algorithm setting information sent by the client when the file transfer is completed; The target acceleration algorithm is set to a non-working state according to the second algorithm setting information.

7. The method according to claim 5 or 6, It is characterized in that After the step of setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, the method further includes: Sending a setting success message to the client, wherein the setting success message indicates that the target algorithm is successfully set to a working state.

8. A file transfer system, It is characterized in that The system includes a client and a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, wherein: The client is used to send first algorithm setting information to the storage device; The storage device is used to receive the first algorithm setting information, and according to the first algorithm setting information, set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, wherein the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements, and only one acceleration algorithm in the storage device is in a working state at the same time; The client is used to transmit files of a target category to the storage device when the first algorithm setting information is successfully sent to the storage device, so that the storage device accelerates the transmission process of the received files based on the target acceleration algorithm; The storage device is used to receive the file transmitted by the client, and accelerate the transmission process of the received file based on the target acceleration algorithm; The target category is determined in the following manner: the client obtains the attributes of the files that the user has transferred to the storage device using the client, inputs the obtained attributes into a pre-trained category distribution model, and the category distribution model outputs the probability of each category of files and the probability distribution of each category according to the input attributes, and selects the category with the largest probability as the target category of the files that the user is accustomed to transferring using the client; the attributes include size, format, suffix name, and creation time; The training process of the category distribution model is as follows: taking the attributes of the sample file as sample input data, labeling the sample input data based on the category of the sample file, inputting the initial category distribution model, outputting the probability distribution of different categories, and adjusting the parameters of the model based on the output results until the model converges.

9. The system according to claim 8, It is characterized in that The client is also used to: after transmitting the file to the storage device, update the obtained distribution information according to the category of the transmitted file, and predict the category of the file to be transmitted to the storage device next time according to the updated distribution information.

10. The system according to claim 8, It is characterized in that The storage device is further used for: after setting the target acceleration algorithm among the multiple acceleration algorithms to be in a working state according to the first algorithm setting information, sending setting success information to the client; The client is specifically configured to: upon receiving the setting success information, transfer the file to the storage device.

11. The system according to any one of claims 8 to 10, It is characterized in that The client is further used to: send second algorithm setting information to the storage device when the file transfer to the storage device is completed; The storage device is further used to: receive the second algorithm setting information, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information.

12. A file transmission device, It is characterized in that Set on the client, the device includes: A first information sending module is used to send first algorithm setting information to a storage device, wherein the storage device is configured with multiple acceleration algorithms, and the first algorithm setting information is used to instruct the storage device to set a target acceleration algorithm among the multiple acceleration algorithms to be in a working state, and the effect of the target acceleration algorithm on the transmission process of the target category of files meets the preset requirements, and only one acceleration algorithm in the storage device is in a working state at the same time; A file transmission module, configured to transmit a file to the storage device when the first algorithm setting information is successfully sent to the storage device, so that the storage device accelerates the transmission process of the received file based on the target acceleration algorithm; The first information sending module is further used to determine the target category by: obtaining attributes of files that the user has transferred to the storage device using the client, inputting the obtained attributes into a pre-trained category distribution model, and having the category distribution model output the probability of files in each category and the probability distribution of each category according to the input attributes, and selecting the category with the largest probability as the target category of files that the user is accustomed to transferring using the client; the attributes include size, format, suffix name, and creation time; The training process of the category distribution model is as follows: taking the attributes of the sample file as sample input data, labeling the sample input data based on the category of the sample file, inputting the initial category distribution model, outputting the probability distribution of different categories, and adjusting the parameters of the model based on the output results until the model converges.

13. The device according to claim 12, It is characterized in that The device further comprises a category prediction module, which is used to: after transmitting the file to the storage device, update the obtained distribution information according to the category of the transmitted file, and predict the category of the file to be transmitted to the storage device next time according to the updated distribution information; or The file transfer module is specifically used to: transfer a file to the storage device when receiving the setting success information fed back by the storage device, wherein the setting success information indicates that the storage device successfully sets the target algorithm to a working state; or The apparatus also includes a second information sending module, which is used to send second algorithm setting information to the storage device when the file transfer to the storage device is completed, wherein the second algorithm setting information is used to instruct the storage device to set the target acceleration algorithm to a non-working state.

14. A file transmission device, It is characterized in that The device is configured in a storage device, wherein the storage device is configured with a plurality of acceleration algorithms, and the device comprises: A first information receiving module, used to receive first algorithm setting information sent by a client; an algorithm setting module, configured to set a target acceleration algorithm among the plurality of acceleration algorithms to be in a working state according to the first algorithm setting information, wherein the effect of the target acceleration algorithm on accelerating the transmission process of the target category of files meets a preset requirement, and only one acceleration algorithm in the storage device is in a working state at the same time; A file receiving module, used for receiving the file transmitted by the client, and accelerating the transmission process of the received file based on the target acceleration algorithm; The target category is determined in the following manner: the client obtains the attributes of the files that the user has transferred to the storage device using the client, inputs the obtained attributes into a pre-trained category distribution model, and the category distribution model outputs the probability of each category of files and the probability distribution of each category according to the input attributes, and selects the category with the largest probability as the target category of the files that the user is accustomed to transferring using the client; the attributes include size, format, suffix name, and creation time; The training process of the category distribution model is as follows: taking the attributes of the sample file as sample input data, labeling the sample input data based on the category of the sample file, inputting the initial category distribution model, outputting the probability distribution of different categories, and adjusting the parameters of the model based on the output results until the model converges.

15. The device according to claim 14, It is characterized in that The device further includes a second information receiving module, which is used to: receive second algorithm setting information sent by the client when the file transfer is completed, and set the target acceleration algorithm to a non-working state according to the second algorithm setting information; or The device also includes a third information sending module, which is used to: after setting the target acceleration algorithm among the multiple acceleration algorithms in the working state according to the first algorithm setting information, send setting success information to the client, wherein the setting success information indicates that the target algorithm is successfully set to the working state.

16. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1-4 or 5-7 when executing a program stored in a memory.