Data transmission method and device

By optimizing disk mapping data transmission in remote connection scenarios, using the file request receiving module and the temporary file management module, the problem of excessive network requests during large files is solved, and the transmission rate and user experience are significantly improved.

CN119788661APending Publication Date: 2025-04-08XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411764318.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the remote connection scenario, when large files are transmitted through disk mapping, the number of network requests and responses is too high, resulting in a decrease in the transmission rate.

Method used

The file request receiving module determines whether the request for data to be transmitted requires support for large file transmission, and optimizes the data transmission process and reduces unnecessary requests and responses through the temporary file management module and the one-way control transmission channel management module.

Benefits of technology

It significantly improves the transmission rate of disk mapping in remote connection scenarios and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788661A_ABST
    Figure CN119788661A_ABST
Patent Text Reader

Abstract

The present disclosure provides a data transmission method and device, which relates to the field of data processing and can improve the transmission rate of disk mapping in a remote connection scenario. The specific technical solution is: determine whether the request for the data to be transmitted requires the support of large file transmission through a file request receiving module; when the request for the data to be transmitted requires the support of large file transmission, determine whether the request for the data to be transmitted is a request for the first package of data through a file request receiving module; when the request for the data to be transmitted is a request for the first package of data, obtain the first package of data through a first unidirectional control transmission channel and a second unidirectional control transmission channel through a file request receiving module; obtain the data to be transmitted through at least one data transmission channel through a temporary file management module; and receive the nth package of data from the temporary file management module through a file request receiving module. The present disclosure completes large data transmission for the disk mapping function, which can significantly improve the transmission rate and enhance the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a data transmission method and device. Background Art

[0002] Currently, in the cloud era, more and more desktops and applications are running in the cloud environment. Local PCs are connected to the cloud through remote desktops to enjoy the high-speed and secure operating environment of the cloud environment. There are many ways to share data between the remote environment and the local environment, and transferring data through disk mapping is one of the most convenient ways.

[0003] However, when the file to be transferred is very large, there will be too many network requests and responses, each packet of response data will need to be accompanied by additional header information, and the disk mapping drive letter and the only connection channel of the remote desktop will be occupied, resulting in additional time consumption and reducing the remote transmission rate of the entire file content. Summary of the invention

[0004] The embodiments of the present disclosure provide a data transmission method and device, which can improve the transmission rate of disk mapping in remote connection scenarios and enhance user experience. The technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided, the method comprising: determining, by a file request receiving module, whether a request for data to be transmitted requires support for large file transmission; when the request for data to be transmitted requires support for large file transmission, determining, by the file request receiving module, whether the request for data to be transmitted is a request for a first package of data; when the request for data to be transmitted is a request for the first package of data, obtaining, by the file request receiving module, the first package of data through a first unidirectional control transmission channel and a second unidirectional control transmission channel; obtaining, by a temporary file management module, the data to be transmitted through at least one data transmission channel; receiving, by the file request receiving module, the nth package of data from the temporary file management module, the first package of data and the nth package of data belonging to the data to be transmitted, n≥2.

[0006] For example, the file request receiving module can determine whether the request for data to be transferred requires support for large file transfer, that is, whether the file to be pasted supports large file transfer. Specifically, the condition for large file transfer can be set by the paste user to set a file size threshold, or automatically set by default according to the system file request unit size.

[0007] If the request for the data to be transmitted requires support for large file transmission, it is necessary to further determine through the file request receiving module whether the request for the data to be transmitted is a request for the first packet of data.

[0008] The other end can continuously and orderly send the entire file content (i.e., the data to be transmitted) to the pasting end in packets through a dedicated "data transmission channel" (i.e., at least one data transmission channel) for the data to be transmitted; then, it is transferred to the temporary file management module.

[0009] After the temporary file management module receives the packetized data to be transmitted, the nth packet of data may be forwarded to the file request receiving module.

[0010] Based on the above scheme, two unidirectional control transmission channels are created through the above control channel management module, and the data channel management module creates a data transmission channel for a large file. It supports completing the first package data request through the unidirectional control transmission channel, and the remaining package data requests are obtained directly from the temporary file management module. For the scenario where the transmission of large data such as file content is completed through the disk mapping function, the transmission rate of disk mapping in the remote connection scenario can be significantly improved, thereby improving the user experience.

[0011] In some embodiments, the method further includes: establishing a first unidirectional control transmission channel and a second unidirectional control transmission channel through a control channel management module.

[0012] In some embodiments, obtaining a first packet of data through a first unidirectional control transmission channel and a second unidirectional control transmission channel through a file request receiving module includes: sending a request for obtaining the first packet of data through the first unidirectional control transmission channel through the file request receiving module, the request for the first packet of data including a request to establish at least one data transmission channel; receiving the first packet of data through the second unidirectional control transmission channel through the file request receiving module.

[0013] For example, if the request for the data to be transmitted is a request for the first package of data, the request for obtaining the first package of data is first sent to the peer end through the first unidirectional control transmission channel, wherein the request carries "create dedicated data transmission channel application" information, that is, information of a request to establish at least one data transmission channel; thereafter, after receiving the request for the first package of data, the local (that is, the peer end) collects the first package of data (that is, the first package content) and sends the first package of data to the requesting end (that is, the paste end) through the second unidirectional control transmission channel; finally, the first package of data is returned to the file request receiving module.

[0014] In some embodiments, the method further includes: establishing at least one data transmission channel through a temporary file management module in response to a request to establish at least one data transmission channel.

[0015] For example, after receiving the request for the first packet of data, the local end (i.e., the peer end) confirms the request for establishing at least one data transmission channel carried in the request (i.e., an application to create a dedicated data transmission channel), and responds to the request from the remote end (i.e., the paste end) to establish at least one data transmission channel, and establishes at least one data transmission channel through the temporary file management module.

[0016] In some embodiments, when the request for data to be transmitted is a request for the nth package of data, the method also includes: reading the nth package of data in the temporary file management module through the file request receiving module; when the read is successful, receiving the nth package of data from the temporary file management module through the file request receiving module; when the read fails, sending a request to obtain the nth package of data through the first unidirectional control transmission channel through the file request receiving module; receiving the nth package of data through the second unidirectional control transmission channel through the file request receiving module.

[0017] For example, if the request for the data to be transmitted is not a request for the first packet of data, but a request for the nth packet of data, then the file request receiving module attempts to read the temporary file from the temporary file management module to obtain the contents of the packet (i.e., the nth packet of data). For example, attempts may be made to obtain the contents five times in a row, each time with a certain interval, such as 10ms.

[0018] On the one hand, if the reading is successful, the package content is transferred to the file request receiving module through the temporary file management module, and the process ends.

[0019] On the other hand, if the reading fails, the package request (i.e., the request to obtain the nth package data) is sent to the other end through the first unidirectional control transmission channel. After waiting for the other end to collect the relevant file content, the package file content is returned through the second unidirectional control transmission channel so that the file request receiving module can obtain it and the process ends.

[0020] In some embodiments, when the request for data to be transmitted does not require support for large file transmission, the method also includes: sending a request to obtain data to be transmitted through a first unidirectional control transmission channel through a file request receiving module; receiving the data to be transmitted through a second unidirectional control transmission channel through a file request receiving module.

[0021] For example, if the request for the data to be transmitted does not need to support large file transmission, then both the first package file content and the nth package file content request (i.e., the request to obtain the data to be transmitted) in the data to be transmitted are transmitted through the first unidirectional control transmission channel (i.e., Figure 2 The unidirectional control channel 1 in the embodiment sends the packet request to the peer end (i.e., the replica end); after the peer end receives the request for the above file content, it collects the relevant file content and transmits it through the second unidirectional control transmission channel (i.e., Figure 2The one-way control channel 2) in the package returns the package file content to the request end. Finally, the package content is transferred to the file request receiving module, and the process ends.

[0022] In some embodiments, the method further includes: saving the data to be transmitted by a temporary file management module.

[0023] For example, after the data to be transmitted is transferred to the temporary file management module, the data to be transmitted can be saved by the temporary file management module.

[0024] According to a second aspect of an embodiment of the present disclosure, a data transmission device is provided, comprising a memory and a processor. The memory stores a program. When the program is executed in the processor, the processor is used to execute the method of the first aspect and any embodiment of the first aspect.

[0025] Based on the above-mentioned device, two unidirectional control transmission channels are created through the above-mentioned control channel management module, and the data channel management module creates a data transmission channel for a large file. It supports completing the first package data request through the unidirectional control transmission channel, and the remaining package data requests are obtained directly from the temporary file management module. For the scenario where the transmission of large data such as file content is completed through the disk mapping function, the transmission rate of disk mapping in the remote connection scenario can be significantly improved, thereby improving the user experience.

[0026] According to a third aspect of an embodiment of the present disclosure, a data transmission device is provided, including: a judgment module, used to judge whether a request for data to be transmitted requires support for large file transmission through a file request receiving module; the judgment module is also used to judge whether the request for data to be transmitted is a request for a first packet of data through the file request receiving module when the request for data to be transmitted requires support for large file transmission; an acquisition module is used to acquire the first packet of data through the file request receiving module through a first unidirectional control transmission channel and a second unidirectional control transmission channel when the request for data to be transmitted is a request for the first packet of data; the acquisition module is also used to acquire the data to be transmitted through at least one data transmission channel through a temporary file management module; a first receiving module is used to receive the nth packet of data from the temporary file management module through the file request receiving module, the first packet of data and the nth packet of data belong to the data to be transmitted, and n≥2.

[0027] In some embodiments, the data transmission device further includes: a first establishing module, configured to establish a first unidirectional control transmission channel and a second unidirectional control transmission channel through a control channel management module.

[0028] In some embodiments, the acquisition module specifically includes: a sending submodule, used to send a request for acquiring a first package of data through a file request receiving module via a first unidirectional control transmission channel, the request for the first package of data includes a request to establish at least one data transmission channel; a receiving submodule, used to receive the first package of data through a second unidirectional control transmission channel through the file request receiving module.

[0029] In some embodiments, the data transmission device further includes: a second establishing module, configured to establish at least one data transmission channel through a temporary file management module according to a request to establish at least one data transmission channel.

[0030] In some embodiments, when the request for data to be transmitted is a request for the nth package of data, the data transmission device also includes: a reading module, which is used to read the nth package of data in the temporary file management module through the file request receiving module; a second receiving module, which is used to receive the nth package of data from the temporary file management module through the file request receiving module when the reading is successful; a first sending module, which is used to send a request for obtaining the nth package of data through the file request receiving module through the first unidirectional control transmission channel when the reading fails; the second receiving module is also used to receive the nth package of data through the file request receiving module through the second unidirectional control transmission channel.

[0031] In some embodiments, when the request for data to be transmitted does not require support for large file transmission, the data transmission device also includes: a second sending module, used to send a request for obtaining data to be transmitted through the file request receiving module via the first unidirectional control transmission channel; a third receiving module, used to receive the data to be transmitted through the file request receiving module via the second unidirectional control transmission channel.

[0032] In some embodiments, the data transmission device further includes: a saving module, configured to save the data to be transmitted through a temporary file management module.

[0033] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, characterized in that the computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect and any embodiment of the first aspect.

[0034] According to the fifth aspect of the embodiments of the present disclosure, a chip system is provided, characterized in that the chip system includes at least one processor, and when program instructions are executed in the at least one processor, the at least one processor executes the method of the first aspect and any embodiment of the first aspect.

[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0037] Figure 1 is a flow chart of a method 100 for responding to a data request by disk mapping;

[0038] Figure 2 is a schematic diagram of a system overall framework 200 provided by an embodiment of the present disclosure;

[0039] Figure 3 is a schematic diagram of a data transmission method 300 provided in an embodiment of the present disclosure;

[0040] Figure 4 is a flowchart of a method 400 for initializing a control transmission channel provided by an embodiment of the present disclosure;

[0041] Figure 5 It is a trend diagram of a large file request and response method 500 provided by an embodiment of the present disclosure;

[0042] Figure 6 is a flow chart of a large file transmission method 600 provided in an embodiment of the present disclosure;

[0043] Figure 7 is a structural diagram of a data transmission device 700 provided in an embodiment of the present disclosure;

[0044] Figure 8 is a structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0045] Fig. 9 is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0046] Fig.10 is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0047] Fig.11 is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0048] Fig.12 is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0049] Fig.13 is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure;

[0050] Fig.14 It is another structural diagram of a data transmission device 800 provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0051] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0052] Currently, in the cloud era, more and more desktops and applications are running in the cloud environment. Local PCs are connected to the cloud through remote desktops and enjoy the high-speed and secure operating environment of the cloud environment.

[0053] There are many ways to share data between remote environments and local environments, and transferring data through disk mapping is one of the most convenient ways. According to the obtained disk mapping file operation action, the pre-read file information is determined; the pre-read file information is sent to the target end, and the target end reads the corresponding target disk mapping file according to the pre-read file information.

[0054] However, the above method has many problems. For example, the pasted data content may be very large, with a file size of several GB to tens of GB. In this case, when triggering the paste on the remote desktop, such as the file manager, the file content request of several GB to tens of GB is not sent all at once, but the file content is requested in a uniform and orderly manner through the disk mapping function, one package at a time.

[0055] Figure 1 is a flow chart of a method 100 for responding to a data request by disk mapping. Figure 1 As shown in the figure, after performing a paste operation on the remote desktop, the file manager on the remote desktop requests the content of a file of a certain size, such as 4K, through Figure 1 In step 1, the request is sent to the disk mapping drive letter through the disk mapping channel. After receiving the command, the disk mapping drive letter collects the 4K file content and then returns the 4K file content data to the data request end of the remote desktop through the disk mapping channel. After receiving the 4K file content, the second 4K file content request is actively triggered.

[0056] When the file content is very large, it is necessary to repeat steps 2, 3, ..., and step n through step 1, and repeat the same process back and forth until the file content request is processed.

[0057] However, there are three very obvious characteristics in the above process:

[0058] (1) There are too many network requests and responses, and two-way data transmission and requests need to be completed 2n times in total.

[0059] (2) For each packet of response data, additional header information needs to be added to record the uniqueness of the data, such as data format flag, data size, etc.; corresponding unpacking processing must also be performed at the receiving end.

[0060] (3) All requests and responses sent are completed in the unique connection channel between the disk mapping drive letter and the remote desktop. The two-way data is ordered and the channel is the only one occupied on the time axis.

[0061] These three features will cause additional time consumption and reduce the remote transmission rate of the entire file content.

[0062] In view of this, the present disclosure provides a data transmission method, which can improve the above problems and enhance the user experience.

[0063] In order to better understand the method provided by the embodiment of the present disclosure, the system framework involved in the method is first introduced.

[0064] Figure 2 2 is a schematic diagram of a system overall framework 200 provided by an embodiment of the present disclosure. Figure 2 As shown in the figure, the overall framework of the system introduces a file request receiving module, a control channel management module, a data channel management module, and a temporary file management module. The above modules are introduced in detail below:

[0065] 1. File request receiving module

[0066] The file request receiving module is used to receive the request for the file content from the file manager, and can support the judgment of whether the request content is the first package request or other package request. If it is the request for the first package, the request is sent to the peer through the unidirectional control channel 1, and the peer is waited for to respond to the first package file content through the unidirectional control channel 2. If it is a request for other packages, the request is no longer sent to the peer through the control channel 1, but directly attempts to read the content of other packages from the temporary file management module.

[0067] 2. Control channel management module

[0068] The control channel management module can support the application of connecting a unidirectional control transmission channel and destroying the control transmission channel. For example, the channel can be Figure 2 The one-way control channel 1 and the one-way control channel 2. At the same time, the control channel management module is used to transmit the disk mapping drive letter copy format list, the file content first packet data request and response data.

[0069] 3. Data channel management module

[0070] The data channel management module can support the application of connecting a unidirectional data transmission channel and destroying the data transmission channel. For example, the channel can be Figure 2 The data transmission channel 3 in the embodiment. In addition, multiple data transmission channels can exist at the same time.

[0071] This data transmission channel is not only a one-way data transmission channel, but also has a particularly important feature: it is only responsible for transmitting the content of a certain large file. The content of a certain file is continuously sent to the receiving end through the designated data transmission channel, and after receiving the data, it is handed over to the temporary file management module to save as a temporary file. Due to this particularity, the transmitted data does not need to be packaged, and the other end does not need to unpack it after receiving it. It can be directly handed over to the temporary file management module to save as a temporary file.

[0072] 4. Temporary file management module

[0073] The temporary file management module is responsible for receiving data from the data transmission channel and saving it as a specified temporary file. In addition, it is also responsible for receiving requests for other package contents from the file request receiving module, reading the contents of the specified package from the temporary file and returning it to the file request receiving module. At the same time, it also supports deleting temporary files.

[0074] It should be understood that the following method provided in this embodiment is applicable to Figure 2 The overall system framework is shown, as well as an introduction to each module in the framework.

[0075] The present disclosure provides a data transmission method 300, such as Figure 3 As shown, the data transmission method 300 includes the following steps:

[0076] S310: Determine, through a file request receiving module, whether the request for data to be transmitted requires support for large file transmission.

[0077] For example, the file request receiving module can determine whether the request for data to be transferred requires support for large file transfer, that is, whether the file to be pasted supports large file transfer. Specifically, the condition for large file transfer can be set by the paste user to set a file size threshold, or automatically set by default according to the system file request unit size.

[0078] Optionally, before this step, the method 300 may further include:

[0079] The paste operation is performed through the remote desktop file manager, and then the request is forwarded to the file request receiving module through the system, and then the file request receiving module can be used to determine whether the request for the data to be transmitted requires support for large file transmission.

[0080] S320: When the request for the data to be transmitted requires support for large file transmission, the file request receiving module determines whether the request for the data to be transmitted is a request for the first packet of data.

[0081] For example, if the request for the data to be transmitted requires support for large file transmission, it is necessary to further determine, through the file request receiving module, whether the request for the data to be transmitted is a request for the first packet of data.

[0082] As another example, when the request for data to be transmitted does not require support for large file transmission, the method 300 may further include:

[0083] Sending a request for obtaining data to be transmitted through a first unidirectional control transmission channel by a file request receiving module;

[0084] The data to be transmitted is received by the file request receiving module through the second unidirectional control transmission channel.

[0085] For example, if the request for the data to be transmitted does not need to support large file transmission, then both the first package file content and the nth package file content request (i.e., the request to obtain the data to be transmitted) in the data to be transmitted are transmitted through the first unidirectional control transmission channel (i.e., Figure 2 The unidirectional control channel 1 in the embodiment sends the packet request to the peer end (i.e., the replica end); after the peer end receives the request for the above file content, it collects the relevant file content and transmits it through the second unidirectional control transmission channel (i.e., Figure 2 The one-way control channel 2) in the package returns the package file content to the request end. Finally, the package content is transferred to the file request receiving module, and the process ends.

[0086] Optionally, the method 300 may further include:

[0087] A first unidirectional control transmission channel and a second unidirectional control transmission channel are established through a control channel management module.

[0088] For example, Figure 4 FIG. 4 is a flow chart of a method 400 for initializing a control transmission channel provided by an embodiment of the present disclosure. Figure 4 As shown, establishing the first unidirectional control transmission channel and the second unidirectional control transmission channel through the control channel management module can be achieved through the following steps:

[0089] Step 1: The local connection module connects to the remote desktop;

[0090] Step 2: After the local and remote connections are established, the remote connection module starts the disk mapping management server module;

[0091] Step 3: The local connection module starts the disk mapping management Client module;

[0092] Step 4: The disk mapping management server module starts the control channel management module;

[0093] Step 5: The disk mapping management Client module starts the control channel management module;

[0094] Step 6: The disk mapping management Client module applies to the control channel management module for a second unidirectional control transmission channel from the local to the remote end, such as Figure 2 As shown in the unidirectional control channel 2;

[0095] Step 7: The disk mapping management Client module sends the "control channel establishment application" information to the remote disk mapping management Server module;

[0096] Step 8: The disk mapping management server module forwards the "control channel establishment application" information to the control channel management module;

[0097] Step 9: The control channel management module "confirms" the control channel establishment application;

[0098] Step 10: The disk mapping management server module applies to the control channel management module for the first unidirectional control transmission channel from the remote end to the local end, such as Figure 2 As shown in the unidirectional control channel 1;

[0099] Step 11: The disk mapping management Server module sends the "control channel establishment application" information to the local disk mapping management Client module;

[0100] Step 12: The disk mapping management Client module forwards the "control channel establishment application" information to the control channel management module;

[0101] Step 13: The control channel management module "confirms" the control channel establishment application.

[0102] S330: When the request for the data to be transmitted is a request for the first packet of data, the file request receiving module obtains the first packet of data through the first unidirectional control transmission channel and the second unidirectional control transmission channel.

[0103] Specifically, the above steps can be implemented by the following steps:

[0104] Sending a request for obtaining a first packet of data through a first unidirectional control transmission channel by a file request receiving module, wherein the request for the first packet of data includes a request for establishing at least one data transmission channel;

[0105] The first data packet is received through the file request receiving module via the second unidirectional control transmission channel.

[0106] For example, if the request for the data to be transmitted is a request for the first package of data, the request for obtaining the first package of data is first sent to the peer end through the first unidirectional control transmission channel, wherein the request carries "create dedicated data transmission channel application" information, that is, information of a request to establish at least one data transmission channel; thereafter, after receiving the request for the first package of data, the local (that is, the peer end) collects the first package of data (that is, the first package content) and sends the first package of data to the requesting end (that is, the paste end) through the second unidirectional control transmission channel; finally, the first package of data is returned to the file request receiving module.

[0107] Optionally, the method 300 may further include:

[0108] At least one data transmission channel is established through a temporary file management module according to a request to establish at least one data transmission channel.

[0109] For example, after receiving the request for the first data packet, the local end (i.e., the peer end) confirms the request for establishing at least one data transmission channel (i.e., the application for creating a dedicated data transmission channel) carried in the request, and responds to the request for establishing at least one data transmission channel by the remote end (i.e., the pasting end), and establishes at least one data transmission channel (i.e., the application for creating a dedicated data transmission channel) through the temporary file management module. Figure 2 Data transmission channel in 3).

[0110] As another example, when the request for data to be transmitted is a request for an nth packet of data (n≥2), the method 300 may further include:

[0111] Read the nth packet of data in the temporary file management module through the file request receiving module;

[0112] When the reading is successful, the nth packet of data from the temporary file management module is received through the file request receiving module;

[0113] When the reading fails, a request for obtaining the nth packet of data is sent through the first unidirectional control transmission channel by the file request receiving module;

[0114] The nth data packet is received through the file request receiving module via the second unidirectional control transmission channel.

[0115] For example, if the request for the data to be transmitted is not a request for the first packet of data, but a request for the nth packet of data, then the file request receiving module attempts to read the temporary file from the temporary file management module to obtain the contents of the packet (i.e., the nth packet of data). For example, attempts may be made to obtain the contents five times in a row, each time with a certain interval, such as 10ms.

[0116] On the one hand, if the reading is successful, the package content is transferred to the file request receiving module through the temporary file management module, and the process ends.

[0117] On the other hand, if the reading fails, the package request (i.e., the request to obtain the nth package data) is sent to the other end through the first unidirectional control transmission channel. After waiting for the other end to collect the relevant file content, the package file content is returned through the second unidirectional control transmission channel so that the file request receiving module can obtain it and the process ends.

[0118] S340: Acquire data to be transmitted through at least one data transmission channel by means of a temporary file management module.

[0119] For example, the other end can continuously and orderly send the entire file content (i.e., the data to be transmitted) to the paste end in packets through a dedicated "data transmission channel" (i.e., at least one data transmission channel) for the data to be transmitted; then, transfer it to the temporary file management module.

[0120] Optionally, the method 300 may further include:

[0121] The data to be transmitted is saved through the temporary file management module.

[0122] For example, after the data to be transmitted is transferred to the temporary file management module, the data to be transmitted can be saved by the temporary file management module.

[0123] S350, receiving the nth package of data from the temporary file management module through the file request receiving module.

[0124] The first data packet and the nth data packet are data to be transmitted, where n≥2.

[0125] Specifically, after the temporary file management module receives the packetized data to be transmitted, the nth packet of data may be forwarded to the file request receiving module.

[0126] As an example, Figure 5 FIG. 5 is a flow chart of a large file request and response method 500 provided by an embodiment of the present disclosure. Figure 5As shown, in short, the request for the first package of file content (i.e., the request for the first package of file content) is completed through the one-way control channel 1 (i.e., the first one-way control transmission channel); the one-way data transmission channel (i.e., at least one data transmission channel) is a fast transmission channel for a specific large file, and the direction of the channel is from the local to the remote. After collecting the file content (i.e., the data to be transmitted) at the local end, the file content is sent to the temporary file management module of the opposite end in an orderly and continuous manner through the data transmission channel to be saved as a temporary file; the request for the second to nth package of file content (i.e., the nth package of data) is no longer sent to the opposite end through the one-way control channel 1, but is directly sent to the temporary file management module to read the data of each package from the temporary file.

[0127] As an example, Figure 6 It is a flowchart of a large file transmission method 600 provided in an embodiment of the present disclosure, which is applicable to the above-mentioned embodiment.

[0128] Based on the above scheme, the method provided by the embodiment of the present disclosure creates two unidirectional control transmission channels through the above control channel management module, and the data channel management module creates a data transmission channel for a large file, supports completing the first packet data request through the unidirectional control transmission channel, and the remaining packet data requests are directly obtained from the temporary file management module, which has the following technical effects:

[0129] (1) The bidirectional single channel is expanded into a unidirectional dual control channel. The client and server control data go through different channels respectively, supporting parallel transmission of control data.

[0130] (2) Based on the original single channel, a data transmission channel dedicated to large file content transmission is added. The file content transmitted through this channel is not added with a header or packaged. The receiving end does not need to unpack the file and directly sends it to the temporary file management module for storage;

[0131] (3) File content request: except for the request and content response of the first data packet, which are transmitted through the control channel, the requests for the content of the remaining data packets are no longer sent and responded through the control channel, but are directly obtained from the temporary file management module.

[0132] (4) The number of times the control channel is used to send and respond to requests is reduced from 2n times in the prior art to n times.

[0133] Through the above technical solution, for the scenario where the disk mapping function is used to complete the transmission of large data such as file content, the transmission rate of disk mapping in the remote connection scenario can be significantly improved, thereby improving the user experience.

[0134] Based on the above Figure 3The data transmission method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.

[0135] The present disclosure provides a data transmission device 700, such as Figure 7 The data transmission device 700 includes a memory 701 and a processor 702 .

[0136] The memory 701 is used to store programs.

[0137] When the program is executed in the processor 702, the processor 702 is used to execute the above data transmission method.

[0138] Processor 702 is used to: determine whether the request for data to be transmitted requires support for large file transmission through a file request receiving module; when the request for data to be transmitted requires support for large file transmission, determine whether the request for data to be transmitted is a request for the first package of data through the file request receiving module; when the request for data to be transmitted is a request for the first package of data, obtain the first package of data through the first unidirectional control transmission channel and the second unidirectional control transmission channel through the file request receiving module; obtain the data to be transmitted through at least one data transmission channel through the temporary file management module; receive the nth package of data from the temporary file management module through the file request receiving module, the first package of data and the nth package of data belong to the data to be transmitted, and n≥2.

[0139] Optionally, the processor 702 is further configured to: establish a first unidirectional control transmission channel and a second unidirectional control transmission channel through a control channel management module.

[0140] Optionally, the processor 702 is specifically used to: send a request for obtaining a first package of data through a first unidirectional control transmission channel through a file request receiving module, wherein the request for the first package of data includes a request to establish at least one data transmission channel; and receive the first package of data through a second unidirectional control transmission channel through a file request receiving module.

[0141] Optionally, the processor 702 is further configured to establish at least one data transmission channel through the temporary file management module according to a request to establish at least one data transmission channel.

[0142] Optionally, when the request for data to be transmitted is a request for the nth package of data, the processor 702 is also used to read the nth package of data in the temporary file management module through the file request receiving module; when the read is successful, receive the nth package of data from the temporary file management module through the file request receiving module; when the read fails, send a request to obtain the nth package of data through the first unidirectional control transmission channel through the file request receiving module; and receive the nth package of data through the second unidirectional control transmission channel through the file request receiving module.

[0143] Optionally, when the request for data to be transmitted does not require support for large file transmission, the processor 702 is also used to send a request to obtain data to be transmitted through a first unidirectional control transmission channel through a file request receiving module; and receive the data to be transmitted through a second unidirectional control transmission channel through a file request receiving module.

[0144] Optionally, the processor 702 is further configured to save the data to be transmitted through a temporary file management module.

[0145] The data transmission device provided by the embodiment of the present disclosure creates two unidirectional control transmission channels through the above control channel management module, and the data channel management module creates a data transmission channel for a large file, supports completing the first packet data request through the unidirectional control transmission channel, and the remaining packet data requests are obtained by directly requesting the temporary file management module. For the scenario where the transmission of large data such as file content is completed through the disk mapping function, the transmission rate of the disk mapping in the remote connection scenario can be significantly improved, thereby improving the user experience.

[0146] Based on the above Figure 3 The data transmission method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.

[0147] Based on the above Figure 3 Corresponding to the data transmission method described in the embodiment, the embodiment of the present disclosure also provides a data transmission device 800, such as Figure 8 shown.

[0148] The data transmission device 800 comprises:

[0149] A determination module 801, configured to determine whether a request for data to be transmitted requires support for large file transmission through a file request receiving module;

[0150] The judging module 801 is further used to judge whether the request for the data to be transmitted is a request for the first packet of data through the file request receiving module when the request for the data to be transmitted requires support for large file transmission;

[0151] An acquisition module 802, configured to acquire the first packet of data through the first unidirectional control transmission channel and the second unidirectional control transmission channel by means of a file request receiving module when the request for the data to be transmitted is a request for the first packet of data;

[0152] The acquisition module 802 is further used to acquire the data to be transmitted through the temporary file management module via at least one data transmission channel;

[0153] The first receiving module 803 is used to receive the nth package data from the temporary file management module through the file request receiving module, the first package data and the nth package data are data to be transmitted, and n≥2.

[0154] Alternatively, if Fig. 9 As shown, the data transmission device 800 also includes:

[0155] The first establishing module 804 is used to establish a first unidirectional control transmission channel and a second unidirectional control transmission channel through the control channel management module.

[0156] Alternatively, if Fig.10 As shown, the acquisition module 802 specifically includes:

[0157] A sending submodule 8021, configured to send a request for obtaining a first packet of data through a first unidirectional control transmission channel via a file request receiving module, wherein the request for the first packet of data includes a request for establishing at least one data transmission channel;

[0158] The receiving submodule 8022 is configured to receive a first data packet through a second unidirectional control transmission channel via a file request receiving module.

[0159] Alternatively, if Fig.11 As shown, the data transmission device 800 also includes:

[0160] The second establishing module 805 is used to establish at least one data transmission channel through the temporary file management module according to the request to establish at least one data transmission channel.

[0161] Alternatively, if Fig.12 As shown, when the request for the data to be transmitted is a request for the nth packet of data, the data transmission device 800 further includes:

[0162] Reading module 806: used for reading the nth package of data in the temporary file management module through the file request receiving module;

[0163] The second receiving module 807 is used to receive the nth package data from the temporary file management module through the file request receiving module when the reading is successful;

[0164] A first sending module 808, configured to send a request for obtaining the nth packet of data through the file request receiving module via the first unidirectional control transmission channel when reading fails;

[0165] The second receiving module 807 is further configured to receive the nth data packet through the second unidirectional control transmission channel via the file request receiving module.

[0166] Alternatively, if Fig.13 As shown, when the request for data to be transmitted does not require support for large file transmission, the data transmission device 800 further includes:

[0167] The second sending module 809 is used to send a request for obtaining data to be transmitted through the first unidirectional control transmission channel via the file request receiving module;

[0168] The third receiving module 810 is configured to receive data to be transmitted through the second unidirectional control transmission channel via the file request receiving module.

[0169] Alternatively, if Fig.14 As shown, the data transmission device 800 also includes:

[0170] The saving module 811 is used to save the data to be transmitted through the temporary file management module.

[0171] Based on the above Figure 3 Corresponding to the data transmission method described in the embodiment, the embodiment of the present disclosure also provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores computer instructions for executing the above Figure 3 The data transmission method described in the corresponding embodiment will not be repeated here.

[0172] Based on the above Figure 3 Corresponding to the data transmission method described in the embodiment, the embodiment of the present disclosure also provides a chip system, the chip system includes at least one processor, when the program instruction is executed in the at least one processor, the at least one processor performs the above Figure 3 The data transmission method described in the corresponding embodiment will not be repeated here.

[0173] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0174] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data transmission method, characterized in that: The method comprises: Determine, through the file request receiving module, whether the request for the data to be transmitted requires support for large file transmission; When the request for the data to be transmitted requires support for the large file transmission, determining, by the file request receiving module, whether the request for the data to be transmitted is a request for the first packet of data; When the request for the data to be transmitted is a request for the first package of data, the first package of data is obtained by the file request receiving module through the first unidirectional control transmission channel and the second unidirectional control transmission channel; Acquiring the data to be transmitted through at least one data transmission channel by a temporary file management module; The nth package of data from the temporary file management module is received through the file request receiving module, the first package of data and the nth package of data belong to the data to be transmitted, and n≥2.

2. The method according to claim 1, characterized in that The method further comprises: The first unidirectional control transmission channel and the second unidirectional control transmission channel are established through the control channel management module.

3. The method according to claim 1, characterized in that The step of obtaining the first packet of data through the first unidirectional control transmission channel and the second unidirectional control transmission channel by the file request receiving module includes: Sending, by the file request receiving module, a request for acquiring the first package of data through the first unidirectional control transmission channel, wherein the request for the first package of data includes a request for establishing the at least one data transmission channel; The first packet of data is received by the file request receiving module through the second unidirectional control transmission channel.

4. The method according to claim 3, characterized in that The method further comprises: According to the request for establishing the at least one data transmission channel, the at least one data transmission channel is established through the temporary file management module.

5. The method according to claim 1, characterized in that When the request for the data to be transmitted is a request for the nth packet of data, the method further includes: Reading the nth package of data in the temporary file management module through the file request receiving module; When the reading is successful, receiving the nth package of data from the temporary file management module through the file request receiving module; When the reading fails, sending a request for acquiring the nth packet of data through the first unidirectional control transmission channel by the file request receiving module; The nth data packet is received by the file request receiving module through the second unidirectional control transmission channel.

6. The method according to claim 1, characterized in that When the request for the data to be transmitted does not require support for the large file transmission, the method further includes: Sending a request for acquiring the data to be transmitted through the first unidirectional control transmission channel by the file request receiving module; The data to be transmitted is received by the file request receiving module through the second unidirectional control transmission channel.

7. The method according to claim 1, characterized in that The method further comprises: The data to be transmitted is saved by the temporary file management module.

8. A data transmission device, characterized in that: include: A determination module, used for determining whether a request for data to be transmitted requires support for large file transmission through a file request receiving module; The judging module is further configured to judge, through the file request receiving module, whether the request for the data to be transmitted is a request for the first packet of data when the request for the data to be transmitted requires support for the large file transmission; an acquisition module, configured to acquire the first package of data through the first unidirectional control transmission channel and the second unidirectional control transmission channel by means of the file request receiving module when the request for the data to be transmitted is a request for the first package of data; The acquisition module is further used to acquire the data to be transmitted through the temporary file management module via at least one data transmission channel; The first receiving module is used to receive the nth package data from the temporary file management module through the file request receiving module, the first package data and the nth package data belong to the data to be transmitted, and n≥2.

9. A data transmission device, characterized in that: including memory and processor; The memory has a stored program; When the program is executed in the processor, the processor is configured to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 7.