Data acceleration downloading method, device and equipment based on BitTorrent and medium

By compressing and transmitting block data during the data download process between BitTorrent terminals, the problem of insufficient transmission rate in BitTorrent downloads is solved, and efficient data transmission in a gigabit bandwidth environment is achieved, especially suitable for multi-terminal situations. Scenarios for sending large files.

CN118869679APending Publication Date: 2024-10-29TIANJIN ZHUOLANG KUNLUN CLOUD SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410894476.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In BitTorrent downloads, the maximum download rate of point-to-point block data transmission is difficult to increase in a gigabit bandwidth environment, making it difficult to adapt to scenarios where multiple terminals simultaneously deliver large files.

Method used

By sending bitfield messages and data download requests between BitTorrent terminals, the target block data is compressed based on the compression mark in the parsing parameters, and the compressed data and block identification information are carried in the block data message to achieve block data acceleration. transmission.

Benefits of technology

In a gigabit bandwidth environment, through the compression and transmission of data blocks, the maximum transmission rate can reach 160MB/s, which significantly improves the transmission rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869679A_ABST
    Figure CN118869679A_ABST
Patent Text Reader

Abstract

The invention provides a BitTorrent-based data acceleration downloading method and device, equipment and a medium, and relates to the technical field of data downloading, and the method comprises the following steps: a first BitTorrent terminal sends a bit field message to a second BitTorrent terminal, and notifies the second BitTorrent terminal of currently stored block data information; in response to a data downloading request sent by a second BitTorrent terminal, analyzing the data downloading request, and performing compression processing on the target block data based on a compression mark contained in an analysis parameter; a block data message is sent to a second BitTorrent terminal, so that the second BitTorrent terminal downloads the block data; wherein the block data message carries compressed target block data and corresponding block identification information. According to the invention, the data transmission efficiency is obviously improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data downloading, and in particular to a method, device, equipment and medium for accelerating data downloading based on BitTorrent. Background Art

[0002] At present, when downloading BitTorrent (abbreviation: BT), the main process includes: the seed publisher creates a seed file and indicates the seed information to the Tracker server. The downloader obtains the seed file, parses the seed file through the BT client, obtains the Tarcker address, initiates a request (HTTP request or UDP request) to the Tarcker server, and obtains the address of other peers. After receiving the request, the Tracker server goes to its own storage to find the IP:port of the peers who own the file in this seed, returns it to the downloader, and adds the IP:port of the current downloader to the server's storage. The downloader establishes a connection with other peers. Since a file is divided into several file blocks, the downloader can download different blocks with multiple peers. After the download is complete, the hash value of the block is verified and saved locally. When the entire file is downloaded, the hash value of the entire file is verified to be consistent, and the download is successful.

[0003] However, the block data currently transmitted in peer-to-peer (Peer to Peer) is raw data. In a gigabit bandwidth environment, the maximum download rate is about 100MB / s, which is difficult to improve significantly. Therefore, the current method is not suitable for scenarios where multiple terminals simultaneously send large files. Summary of the invention

[0004] The purpose of this application is to provide a method, device, equipment and medium for accelerating data downloading based on BitTorrent to alleviate the above-mentioned technical problems existing in the prior art.

[0005] In a first aspect, the present invention provides a method for accelerating data downloading based on BitTorrent, the method comprising:

[0006] The first BitTorrent terminal sends a bit-domain message to the second BitTorrent terminal to notify the second BitTorrent terminal of the block data information currently stored;

[0007] The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression mark included in the parsed parameters;

[0008] The first BitTorrent terminal sends a block data message to the second BitTorrent terminal so that the second BitTorrent terminal can download the block data; wherein the block data message carries compressed target block data and corresponding block identification information.

[0009] In an optional embodiment, the method further comprises:

[0010] During the process of adding the seed task, the second BitTorrent terminal determines whether to add a compression mark to the corresponding block data based on a pre-configured block data download strategy.

[0011] In an optional implementation, the first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression mark included in the parsed parameters, including:

[0012] The second BitTorrent terminal sends a status preparation message to the first BitTorrent terminal; wherein the status preparation message is used to indicate that the second BitTorrent terminal is ready to enter a message transmission state;

[0013] The second BitTorrent terminal sends a data download message to the first BitTorrent terminal; wherein the data download message is used to indicate that the second BitTorrent terminal is ready to download block data;

[0014] The second BitTorrent terminal sends a data download request to the first BitTorrent terminal; wherein the data download request includes block data information requested to be downloaded, and a compression mark added according to configuration requirements; wherein the block data information requested to be downloaded includes a block data sequence number, block data storage location information, and block data length information;

[0015] The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and determines whether the parsed parameters include a compression mark;

[0016] If yes, compress the target block data based on the compression mark and the preset compression strategy;

[0017] If not, the target block data is directly sent to the second BitTorrent terminal.

[0018] In an optional embodiment, the method further comprises:

[0019] After receiving the block data message, the second BitTorrent terminal parses the block data message according to the compression mark, and writes the parsed target block data into the hard disk.

[0020] In an optional implementation, the preset compression strategy includes gzip compression, lz4 compression or snappy compression.

[0021] In an optional implementation manner, the first BitTorrent terminal is a server; and the second BitTorrent terminal is a client.

[0022] In an optional embodiment, the second BitTorrent terminal includes one or more.

[0023] In a second aspect, the present invention provides a data acceleration download device based on BitTorrent, the device comprising:

[0024] A notification module, used for the first BitTorrent terminal to send a bit domain message to the second BitTorrent terminal to notify the second BitTorrent terminal of the block data information currently stored;

[0025] A download request module, used for the first BitTorrent terminal to respond to the data download request sent by the second BitTorrent terminal, parse the data download request, and compress the target block data based on the compression mark included in the parsing parameters;

[0026] The data sending module is used for the first BitTorrent terminal to send a block data message to the second BitTorrent terminal so that the second BitTorrent terminal can download the block data; wherein the block data message carries compressed target block data and corresponding block identification information.

[0027] In a third aspect, the present invention provides an electronic device including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the BitTorrent-based data acceleration download method of any of the aforementioned implementations.

[0028] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the BitTorrent-based data acceleration download method of any one of the aforementioned implementations.

[0029] The BitTorrent-based data accelerated download method, device, equipment and medium provided by the present application have the following beneficial effects:

[0030] By compressing the block data before transmission through the first BitTorrent terminal, the amount of transmitted data can be significantly reduced, and more data can be transmitted with the same bandwidth. After receiving the data, the second BitTorrent terminal decompresses the compressed data and then synchronizes the compressed data to the corresponding file. In a gigabit bandwidth environment, the maximum transmission rate can reach 160MB / s, and the transmission rate is significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 A flowchart of a method for accelerating data downloading based on BitTorrent provided in an embodiment of the present application;

[0033] Figure 2 A flowchart of a specific BitTorrent-based data acceleration download method provided in an embodiment of the present application;

[0034] Figure 3 A structural diagram of a BitTorrent-based data acceleration download device provided in an embodiment of the present application;

[0035] Figure 4 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0037] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0038] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0039] The present application embodiment provides a method for accelerating data download based on BitTorrent. Figure 1 As shown, the method mainly includes the following steps:

[0040] Step S110: The first BitTorrent terminal sends a bit-domain message to the second BitTorrent terminal to notify the second BitTorrent terminal of the block data information currently stored.

[0041] In one embodiment, a bitfield message refers to a Bitfield message under the BitTorrent protocol, which is used by a first BitTorrent terminal to inform a second BitTorrent terminal which blocks of data are currently stored in the first BitTorrent terminal, such as information such as the serial number, identifier, and label of the block data. That is, the first BitTorrent terminal notifies the second BitTorrent terminal of the currently stored block data information.

[0042] The first BitTorrent terminal may be a server, and the second BitTorrent terminal may be a client.

[0043] Optionally, the second BitTorrent terminal may be one or more. For a multi-terminal BT delivery scenario, the second BitTorrent terminal may be multiple.

[0044] Step S120: The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression tag included in the parsing parameters.

[0045] In one embodiment, before making a data download request, the second BitTorrent terminal determines whether to add a compression mark to the corresponding block data based on a pre-configured block data download strategy during the process of adding a seed task. The pre-configured block data download strategy can be configured according to actual download requirements. For some large block data, a compression mark can be added in advance, so that the download speed can be increased when downloading.

[0046] The above data download request includes the block data information requested to be downloaded and the compression mark added according to the configuration requirements; wherein the block data information requested to be downloaded includes the block data sequence number, the block data storage location information and the block data length information.

[0047] In a specific implementation, the first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression mark included in the parsed parameters, which may include the following steps 1-1 to 1-6:

[0048] Step 1-1, the second BitTorrent terminal sends a state preparation message to the first BitTorrent terminal; wherein the state preparation message is used to indicate that the second BitTorrent terminal is ready to enter a message transmission state; in one implementation manner, the state preparation message is a Unchoke message.

[0049] Step 1-2, the second BitTorrent terminal sends a data download message to the first BitTorrent terminal; wherein the data download message is used to indicate that the second BitTorrent terminal is ready to download block data; in one implementation, the data download message is an Interested message.

[0050] Step 1-3, the second BitTorrent terminal sends a data download request to the first BitTorrent terminal;

[0051] Step 1-4, the first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and determines whether the parsed parameters include a compression mark;

[0052] Step 1-5: if yes, compress the target block data based on the compression mark and the preset compression strategy;

[0053] Step 1-6: If not, directly send the target block data to the second BitTorrent terminal.

[0054] Step S130, the first BitTorrent terminal sends a block data message to the second BitTorrent terminal so that the second BitTorrent terminal can download the block data; wherein the block data message carries the compressed target block data and the corresponding block identification information. In one embodiment, the block data message can be a Piece message, wherein the Payload in the message contains a certain block compressed data and a block sequence number, which is used to indicate that the client can download the data.

[0055] Furthermore, after receiving the block data message, the second BitTorrent terminal parses the block data message according to the compression mark, and writes the parsed target block data into the hard disk.

[0056] The aforementioned preset compression strategies include gzip compression, lz4 compression or snappy compression. In an optional implementation, snappy compression can be used for compression processing, thereby achieving better compression performance.

[0057] Optionally, if a higher compression ratio is required, the aforementioned compression strategy may select gzip compression.

[0058] Optionally, if better decompression speed is required, the aforementioned compression strategy can select lz4 compression.

[0059] In actual applications, different compression methods can be selected according to business needs.

[0060] Figure 2 A specific processing method is shown, Peer1 refers to the second BitTorrent terminal, that is, the client, and Peer3 refers to the first BitTorrent terminal, that is, the server. The processing process includes the following steps S1 to S8:

[0061] Step S1: handshake phase between both parties.

[0062] Step S2, the server sends a Bitfield message to tell the client which block data it has.

[0063] Step S3: The client sends a Unchoke message, indicating that it is ready to transmit messages.

[0064] Step S4, sending an Interested message, indicating that the user wants to start downloading the file.

[0065] Step S5, sending a Request message, which carries the specific information of the requested block data, including the block number, start position and length information.

[0066] Step S6: the server performs snappy compression on the block data according to the compression flag in the parameter setting.

[0067] Step S7: The server sends a Piece message, in which Payload contains a block of compressed data and a block number, indicating that the client can save it.

[0068] Step S8, after receiving the block data, the client performs snappy decompression on the block data according to the compression mark in the parameter setting, and then writes it to the hard disk.

[0069] In summary, during the process of adding a seed task, the client (i.e., the data requesting end) sets the compression mark according to the policy. The server (i.e., the data sending end) compresses the requested block data before sending the data, and then sends the compressed data to the client. The client decompresses the received data according to the compression mark, and synchronizes the compressed data to the corresponding file. For multi-terminal BT delivery scenarios, this method can set whether the data is compressed for transmission according to the policy. During the data interaction process, the data block provider compresses the data block according to the compression mark (snappy_compress), and then sends it to the data requesting party. After receiving the data, the data requesting party decompresses the data according to the compression mark (snappy_uncompress), and then writes the decompressed data to the corresponding file. Since compressed data is transmitted, more data can be transmitted with the same bandwidth, thereby increasing the file download rate.

[0070] In one example, the platform sends a win10 template (three qcow2 files, each file size is about 10GB) to 30 terminals:

[0071] 1) The platform sets terminal policies for data compression and transmission;

[0072] 2) The platform generates three seed files for the win10 template, and each qcow2 file corresponds to a seed;

[0073] 3) After the platform adds the seed task according to the compression strategy, it sends a desktop command to the terminal;

[0074] 4) After receiving the instruction, the terminal requests the seed file from the platform;

[0075] 5) After the terminal downloads the seed file, add a seed task according to the compression strategy;

[0076] 6) The terminal obtains the data block content, decompresses it and writes it into the corresponding file, and provides the requested data block data to other terminals at the same time;

[0077] 7) The data blocks downloaded by 30 terminals can be shared. In a gigabit network environment, the download rate can reach up to 160MB / s. The download rate without compression strategy is generally 100MB / s.

[0078] The embodiment of the present application compresses block data and transmits compressed data, which significantly reduces the amount of transmitted data. More data can be transmitted with the same bandwidth. After the receiving end receives the data, it decompresses the compressed data and then synchronizes the compressed data to the corresponding file. In a gigabit bandwidth environment, the maximum transmission rate can reach 160MB / s, and the transmission rate is significantly improved.

[0079] Based on the above method embodiment, the present application embodiment also provides a data acceleration download device based on BitTorrent, see Figure 3 As shown, the device mainly includes the following steps:

[0080] Notification module 310, configured for the first BitTorrent terminal to send a bit-domain message to the second BitTorrent terminal, notifying the second BitTorrent terminal of the block data information currently stored;

[0081] A download request module 320, configured for the first BitTorrent terminal to respond to a data download request sent by a second BitTorrent terminal, parse the data download request, and compress the target block data based on a compression flag included in the parsing parameters;

[0082] The data sending module 330 is used for the first BitTorrent terminal to send a block data message to the second BitTorrent terminal so that the second BitTorrent terminal can download the block data; wherein the block data message carries compressed target block data and corresponding block identification information.

[0083] In a feasible implementation manner, the above device further includes: a compression mark configuration module, which is used to:

[0084] During the process of adding the seed task, the second BitTorrent terminal determines whether to add a compression mark to the corresponding block data based on a pre-configured block data download strategy.

[0085] In a feasible implementation manner, the download request module 320 is used to:

[0086] The second BitTorrent terminal sends a status preparation message to the first BitTorrent terminal; wherein the status preparation message is used to indicate that the second BitTorrent terminal is ready to enter a message transmission state;

[0087] The second BitTorrent terminal sends a data download message to the first BitTorrent terminal; wherein the data download message is used to indicate that the second BitTorrent terminal is ready to download block data;

[0088] The second BitTorrent terminal sends a data download request to the first BitTorrent terminal; wherein the data download request includes block data information requested to be downloaded, and a compression mark added according to configuration requirements; wherein the block data information requested to be downloaded includes a block data sequence number, block data storage location information, and block data length information;

[0089] The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and determines whether the parsed parameters include a compression mark;

[0090] If yes, compress the target block data based on the compression mark and the preset compression strategy;

[0091] If not, the target block data is directly sent to the second BitTorrent terminal.

[0092] In a feasible implementation manner, the above device further includes: a decompression module, configured to:

[0093] After receiving the block data message, the second BitTorrent terminal parses the block data message according to the compression mark, and writes the parsed target block data into the hard disk.

[0094] In a feasible implementation manner, the preset compression strategy includes gzip compression, lz4 compression or snappy compression.

[0095] In a feasible implementation manner, the first BitTorrent terminal is a server; the second BitTorrent terminal is a client.

[0096] The data acceleration download device based on BitTorrent provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the data acceleration download device based on BitTorrent, reference may be made to the corresponding contents in the aforementioned data acceleration download method embodiment based on BitTorrent.

[0097] The present application also provides an electronic device, such as Figure 4 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device 100 includes a processor 41 and a memory 40, the memory 40 stores computer executable instructions that can be executed by the processor 41, and the processor 41 executes the computer executable instructions to implement any of the above-mentioned BitTorrent-based data acceleration download methods.

[0098] exist Figure 4 In the illustrated embodiment, the electronic device further includes a bus 42 and a communication interface 43 , wherein the processor 41 , the communication interface 43 and the memory 40 are connected via the bus 42 .

[0099] Among them, the memory 40 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 43 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 42 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 42 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0100] The processor 41 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 41. The above processor 41 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 gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 41 reads the information in the memory and completes the steps of the BitTorrent-based data accelerated downloading method in the aforementioned embodiment in combination with its hardware.

[0101] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned BitTorrent-based data acceleration download method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.

[0102] The computer program product of the BitTorrent-based data acceleration download method, device, equipment and medium provided in the embodiments of the present application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.

[0103] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present application.

[0104] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0105] In the description of the present application, it should be noted that the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0106] In the description of this application, it should also be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for accelerating data downloading based on BitTorrent, It is characterized in that The method comprises: The first BitTorrent terminal sends a bit-domain message to the second BitTorrent terminal to notify the second BitTorrent terminal of the block data information currently stored; The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression flag included in the parsing parameters; The first BitTorrent terminal sends a block data message to the second BitTorrent terminal so that the second BitTorrent terminal downloads the block data; wherein the block data message carries compressed target block data and corresponding block identification information.

2. The method for accelerating data download based on BitTorrent according to claim 1, It is characterized in that The method further comprises: In the process of adding a seed task, the second BitTorrent terminal determines whether to add a compression mark to the corresponding block data based on a pre-configured block data download strategy.

3. The method for accelerating data download based on BitTorrent according to claim 1, It is characterized in that The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and compresses the target block data based on the compression mark included in the parsing parameters, including: The second BitTorrent terminal sends a state preparation message to the first BitTorrent terminal; wherein the state preparation message is used to indicate that the second BitTorrent terminal is ready to enter a message transmission state; The second BitTorrent terminal sends a data download message to the first BitTorrent terminal; wherein the data download message is used to indicate that the second BitTorrent terminal is ready to download block data; The second BitTorrent terminal sends a data download request to the first BitTorrent terminal; wherein the data download request includes block data information requested to be downloaded, and a compression mark added according to configuration requirements; wherein the block data information requested to be downloaded includes a block data sequence number, block data storage location information, and block data length information; The first BitTorrent terminal responds to the data download request sent by the second BitTorrent terminal, parses the data download request, and determines whether the parsed parameters include a compression mark; If yes, compressing the target block data based on the compression mark and the preset compression strategy; If not, the target block data is directly sent to the second BitTorrent terminal.

4. The method for accelerating data download based on BitTorrent according to claim 1, It is characterized in that The method further comprises: After receiving the block data message, the second BitTorrent terminal parses the block data message according to the compression mark, and writes the parsed target block data into the hard disk.

5. The method for accelerating data download based on BitTorrent according to claim 3, It is characterized in that The preset compression strategy includes gzip compression, lz4 compression or snappy compression.

6. The method for accelerating data download based on BitTorrent according to claim 1, It is characterized in that The first BitTorrent terminal is a server; the second BitTorrent terminal is a client.

7. The method for accelerating data download based on BitTorrent according to claim 6, It is characterized in that The second BitTorrent terminal includes one or more.

8. A data acceleration download device based on BitTorrent, It is characterized in that The device comprises: A notification module, configured for a first BitTorrent terminal to send a bit-domain message to a second BitTorrent terminal, to notify the second BitTorrent terminal of the block data information currently stored; A download request module, configured for the first BitTorrent terminal to respond to a data download request sent by the second BitTorrent terminal, parse the data download request, and compress the target block data based on a compression tag included in a parsed parameter; The data sending module is used for the first BitTorrent terminal to send a block data message to the second BitTorrent terminal so that the second BitTorrent terminal can download the block data; wherein the block data message carries compressed target block data and corresponding block identification information.

9. An electronic device, It is characterized in that It comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the BitTorrent-based data accelerated downloading method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the BitTorrent-based data acceleration download method as described in any one of claims 1 to 7.