Dual-channel dual-link file transmission method and system

Through the dual-channel dual-link file transmission method, the dual-link and heartbeat mechanism is used to solve the reliability and real-time problems of file transmission in unstable network environments in the existing technology, and achieve efficient and reliable file transmission, which is suitable for Large file transfer scenarios.

CN118631799APending Publication Date: 2024-09-10浪潮智能终端有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410656952.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing file transfer technology cannot simultaneously ensure the reliability and real-time performance of file transfer in an unstable network environment. Especially when transferring large files, it is easily affected by network bandwidth, delay and link stability, resulting in low transmission efficiency or failure. .

Method used

Using the dual-channel dual-link file transmission method, two sending queues and two receiving queues are created between the sending node and the receiving node, and file messages are transmitted on the two links respectively, and the heartbeat mechanism is used to monitor the link status. Automatically switch to another link to ensure transmission continuity, and set queue weights based on link bandwidth to optimize transmission efficiency.

Benefits of technology

It achieves efficient, reliable and real-time file transmission, can automatically switch when a link fails, ensures the continuity of file transmission, and improves transmission performance and available bandwidth. It is suitable for high-bandwidth multi-link fast file transfer scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631799A
    Figure CN118631799A
Patent Text Reader

Abstract

The invention belongs to the technical field of file transmission, and particularly provides a dual-channel dual-link file transmission method and system, the method is applied to file transmission between a sending node and a receiving node, and the sending node and the receiving node are in dual-link communication connection. The method comprises the following steps: creating a first sending queue and a second sending queue at a sending node, and creating a corresponding first receiving queue and a corresponding second receiving queue at a receiving node; detecting a to-be-sent file from the sending directory, and when the to-be-sent file is detected, converting the to-be-sent file into a file message and respectively storing the file message into a first sending queue and a second sending queue; establishing a first channel to orderly send file messages in a first sending queue of the sending node to a first receiving queue of the receiving node, and establishing a second channel to orderly send file messages in a second sending queue of the sending node to a second receiving queue of the receiving node; wherein one channel uses one link. And the file transmission performance and reliability are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Existing file transfer technologies such as FTP protocol and HTTP-based file upload and download can complete file transfer under good network conditions. However, in unstable network environments (such as mobile networks), file transfer is often interrupted due to high latency, packet loss, etc. Although the application layer can retransmit files through mechanisms such as retransmission, the reliability and real-time performance of the entire file transfer process are not satisfactory. File transfer needs to take into account two different types of communication requirements: file transfer status control and file data transmission. The message data used for file transfer status control is generally short, and because it is necessary to coordinate the status consistency of the file sender and receiver, the reliability and real-time performance of communication are very high. The transmission of file data has a large amount of data. In an unstable network environment, if the reliability of file data transmission is pursued, retrying to send file data when network packet loss or long-term no response occurs will often result in invalid retries or repeated data transmission, which wastes network bandwidth resources and reduces the real-time performance of file transfer. Existing file transfer technologies often use single-channel communication, which cannot well balance the two different communication requirements of file transfer status control and file data transmission. Generally, either real-time performance is sacrificed to ensure the reliability of file transfer, or reliability is lost in pursuit of real-time performance of file transfer.

[0003] The related technology uses dual-channel file transfer control to effectively balance the two different types of communication requirements: file transfer status control and file data transmission. While ensuring high reliability of file transfer, it also has high real-time performance. In fact, the dual-channel file transfer control technology only transmits the status control message and file data on different channels, while the file data is still transmitted on one channel. In addition, the channel is only a logical concept. The channel is attached to the physical link where it is located. If the physical link where the channel is located is very unstable or disconnected, the performance and real-time performance are also difficult to guarantee.

[0004] As mentioned above, in traditional technologies, file data itself is transmitted on one channel. Under normal network conditions, if the amount of file data to be transmitted is large (such as live broadcast and rebroadcast of large-scale events, high-definition video file transmission, etc.), it is easily affected by factors such as network bandwidth, transmission delay and link stability, resulting in low transmission efficiency or even transmission failure. Even if the server where the file is located has two or more transmission links, traditional technology cannot use two links for transmission at the same time, and the performance and real-time nature of file transmission cannot be guaranteed. Summary of the invention

[0005] In view of the problem in the related art that two links cannot be used for transmission at the same time and the performance and real-time performance of file transmission cannot be guaranteed, the present invention provides a dual-channel dual-link file transmission method and system.

[0006] In a first aspect, the technical solution of the present invention provides a dual-channel dual-link file transmission method, which is applied to file transmission between a sending node and a receiving node, and the sending node and the receiving node are connected by a dual link; the method comprises the following steps: Create a first sending queue and a second sending queue at the sending node, and create a corresponding first receiving queue and a second receiving queue at the receiving node; Detect files to be sent from the sending directory; When a file to be sent is detected, the file to be sent is converted into a file message and stored in the first sending queue and the second sending queue respectively; A first channel is established to orderly send file messages in a first sending queue of a sending node to a first receiving queue of a receiving node, and a second channel is established to orderly send file messages in a second sending queue of a sending node to a second receiving queue of a receiving node; wherein one channel uses one link.

[0007] The dual-channel dual-link transmission method can fully utilize network resources and improve the efficiency and speed of file transmission. Even if one of the channels or links fails, it can automatically switch to another channel or link to continue transmission, ensuring the continuity of file transmission.

[0008] As a further limitation of the technical solution of the present invention, after the steps of creating a first sending queue and a second sending queue at a sending node and creating a corresponding first receiving queue and a second receiving queue at a receiving node include: The weights of the first sending queue and the second sending queue are set according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue.

[0009] As a further limitation of the technical solution of the present invention, the step of setting the weights of the first sending queue and the second sending queue according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue includes: Obtaining the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; The weights of the first sending queue and the second sending queue are set according to the ratio of the available bandwidth; wherein, the larger the value of the available bandwidth is, the higher the weight is, and the stronger the sending capability of the queue is.

[0010] As a further limitation of the technical solution of the present invention, when a file to be sent is detected, the step of converting the file to be sent into a file message and storing it in the first sending queue and the second sending queue respectively includes: When a file to be sent is detected, the file to be sent is converted into a file message; The file messages are divided according to the amount of the file messages based on the set weights, and are stored in the first sending queue and the second sending queue respectively.

[0011] As a further limitation of the technical solution of the present invention, the method further includes: during the transmission process, when one of the two links fails, transferring the channel established on the failed link to another normal link; When the failed link is restored, the channel is re-established on the restored link.

[0012] During the file transfer process, the transmission status of the channel and link is monitored in real time to promptly detect and handle transmission failures and ensure the reliability of file transmission.

[0013] Specifically, a heartbeat mechanism is established between the sending node and the receiving node to detect the link connection status. When a link disconnection is detected, the channel established on the faulty link is transferred to another normal link; after the fault is recovered, the channel is restored and the file transfer is resumed.

[0014] The link connection status is detected through the heartbeat mechanism. When the link is detected to be disconnected, the channel is automatically transferred and the file transfer is resumed, making the method highly adaptive and robust. Even in the case of an unstable network environment, the file transfer can be ensured to proceed smoothly.

[0015] As a further limitation of the technical solution of the present invention, the method further includes: setting the two established channels to use the same transmission algorithm or different transmission algorithms.

[0016] During the file transfer process, different links can process file messages in different ways to ensure the security of file transfer.

[0017] As a further limitation of the technical solution of the present invention, the steps of establishing a first channel to orderly send file messages in a first sending queue of a sending node to a first receiving queue of a receiving node, and establishing a second channel to orderly send file messages in a second sending queue of a sending node to a second receiving queue of a receiving node include: The file messages are obtained from the first receiving queue and the second receiving queue and reassembled into files in the receiving directory and stored in the receiving node.

[0018] After receiving the file message, the receiving node verifies the file message to ensure the integrity of the file message.

[0019] In a second aspect, the technical solution of the present invention provides a dual-channel dual-link file transmission system, including a sending node and a receiving node, the sending node and the receiving node are dual-link connected; the sending node and the receiving node are respectively installed with a communication middleware having a message queue service function; a dual-channel dual-link file sending service module and a dual-channel dual-link file transmission service module are installed on the sending node; Creating a first sending queue and a second sending queue at the sending node through the communication middleware of the sending node, and creating a corresponding first receiving queue and a second receiving queue at the receiving node through the communication middleware of the receiving node; A dual-channel dual-link file sending service module detects files to be sent from a sending directory, and when a file to be sent is detected, converts the file to be sent into a file message and stores it in a first sending queue and a second sending queue respectively; The dual-channel dual-link file transfer service module establishes a first channel according to the configuration to send the file messages in the first sending queue of the sending node to the first receiving queue of the receiving node in an orderly manner, and establishes a second channel to send the file messages in the second sending queue of the sending node to the second receiving queue of the receiving node in an orderly manner; wherein one channel uses one link.

[0020] As a further limitation of the technical solution of the present invention, a dual-channel dual-link file receiving service module is also installed on the receiving node; The dual-channel dual-link file receiving service module obtains file messages from the first receiving queue and the second receiving queue and reassembles them into files in the receiving directory.

[0021] As a further limitation of the technical solution of the present invention, the system also includes a weight setting module, which sets the weights of the first sending queue and the second sending queue according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; When the dual-channel dual-link file sending service module detects a file to be sent, it converts the file to be sent into a file message; divides the file message according to the amount of the file message based on the set weight, and stores them in the first sending queue and the second sending queue respectively.

[0022] As a further limitation of the technical solution of the present invention, the weight setting module is specifically used to obtain the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; the weights of the first sending queue and the second sending queue are set according to the ratio of the available bandwidth; wherein, the larger the value of the available bandwidth, the higher the weight, and the stronger the sending capability of the queue.

[0023] As a further limitation of the technical solution of the present invention, the dual-channel dual-link file transfer service module is used to transfer the channel established on the faulty link to another normal link when it is detected that one of the two links is faulty during the transmission process; when the faulty link is restored, the channel is re-established on the restored link; and the two established channels are set to use the same transmission algorithm or different transmission algorithms.

[0024] From the above technical solutions, it can be seen that the present invention has the following advantages: using the IROS message queue for data caching and using dual-channel dual-link for file data transmission, the file transmission performance is improved several times, and even if one link is disconnected, the file can be reliably transmitted. The available bandwidth for file transmission is higher, the transmission performance and real-time performance are better, and the performance and reliability of file transmission can be better guaranteed, which is very suitable for scenarios that require high-bandwidth multi-link fast file transmission.

[0025] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.

[0026] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0028] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0029] Figure 2 is a schematic flow chart of a method according to another embodiment of the present invention.

[0030] Figure 3 is a schematic block diagram of a system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The present invention utilizes the message queue of IROS for data caching and utilizes dual-channel dual-link for file data transmission, so that the file transmission performance is improved several times, and even if one link is disconnected, the file can be reliably transmitted. The provided system includes a sending node and a receiving node. IROS, a dual-channel dual-link file sending service module and a dual-channel dual-link file transmission service module are installed on the sending node to provide a file sending service, which is to send the files to be sent in the sending directory to the receiving node in the form of file messages. IROS and a dual-channel dual-link file receiving service module are installed on the receiving node to provide a file receiving service, which is to reassemble the file messages sent by the sending node into the original file format and store them in the designated receiving directory. In the present invention, each channel of the dual channel can use different links, such as one channel using a dedicated line link and the other channel using an Internet link, or one channel using a China Unicom dedicated line link and the other using a China Mobile dedicated line link, etc. If both links are normal, the two links can be used simultaneously for transmission. If one of the links fails, the remaining link can also complete the transmission task alone. In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that IROS stands for Intelligent Robot Operating System, which is similar in function to the open source ROS and can support the development and operation of intelligent robots. Its core is a set of communication middleware with similar functions to ROS, but with higher performance, reliability and security than ROS.

[0033] Channel: This is a logical concept in data transmission. A channel is established between two nodes. Files and other data can be transmitted in this channel. The channel can be based on TCP, UDP protocols, etc.

[0034] Link: This is a physical concept in data transmission. Link is the actual transmission medium between two nodes, such as two servers transmitting through two network cables or one network cable plus wireless transmission, or transmission between different locations through dedicated lines and the Internet.

[0035] like Figure 1 As shown, the technical solution of the present invention provides a dual-channel dual-link file transmission method, which is applied to file transmission between a sending node and a receiving node, and the sending node and the receiving node are connected by a dual link; the method comprises the following steps: Step 1: Create a first sending queue and a second sending queue at the sending node, and create a corresponding first receiving queue and a second receiving queue at the receiving node; It should be noted that in this step, the sending node creates two IROS persistent storage queues - the first sending queue and the second sending queue - at the sending node by installing a communication middleware with message queue service function, which are used to cache file messages to be sent; and creates two IROS persistent storage queues - the first receiving queue and the second receiving queue - at the receiving node, which are used to cache received file messages.

[0036] Step 2: Detecting files to be sent from the sending directory, and when files to be sent are detected, converting the files to be sent into file messages and storing them in the first sending queue and the second sending queue respectively; Step 3: Establish a first channel to send the file messages in the first sending queue of the sending node to the first receiving queue of the receiving node in order, and establish a second channel to send the file messages in the second sending queue of the sending node to the second receiving queue of the receiving node in order; one channel uses one link.

[0037] The dual-channel dual-link transmission method can fully utilize network resources and improve the efficiency and speed of file transmission. Even if one of the channels or links fails, it can automatically switch to another channel or link to continue transmission, ensuring the continuity of file transmission.

[0038] In the present invention, each channel of the dual channel can use a different link, such as one channel uses a dedicated link and the other channel uses an Internet link, or one channel uses a China Unicom dedicated link and the other uses a China Mobile dedicated link, etc. If both links are normal, the two links can be used for transmission at the same time. If one of the links fails, the remaining link can also complete the transmission task alone.

[0039] In some embodiments, Figure 2 As shown, after the steps of creating a first sending queue and a second sending queue at a sending node and creating a corresponding first receiving queue and a second receiving queue at a receiving node, the following steps are included: S1-2: weights of the first sending queue and the second sending queue are set according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue. Specifically, the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue are obtained; the weights of the first sending queue and the second sending queue are set according to the ratio of the available bandwidth; wherein the larger the value of the available bandwidth, the higher the weight, and the stronger the sending capability of the queue.

[0040] Correspondingly, the steps of detecting a file to be sent from the sending directory, and when a file to be sent is detected, converting the file to be sent into a file message and storing the message in the first sending queue and the second sending queue respectively include: Detect files to be sent from the sending directory, and when files to be sent are detected, convert the files to be sent into file messages; divide the file messages according to the amount of the file messages based on the set weights, and store them in the first sending queue and the second sending queue respectively.

[0041] Specifically, different weights can be set for the first sending queue and the second sending queue. The weight value is a positive integer, and the default value is 1. The larger the value, the stronger the sending capability of the queue. For example, the first sending queue uses a 100Mb main link for transmission, and the second sending queue uses a 20Mb backup link for transmission. If these two links are fully used for file transfer, the weight of the first sending queue can be set to 10, and the weight of the second sending queue can be set to 2. If there are 12 file messages to be transmitted, the first sending queue will cache and transmit 10 file messages, and the second sending queue will cache and transmit 2 file messages. If the main link can only use 40% of the bandwidth for file transfer, the weight of the first sending queue can be set to 2, and the weight of the second sending queue can be set to 1. If there are 12 file messages to be transmitted, the first sending queue will cache and transmit 8 file messages, and the second sending queue will cache and transmit 4 file messages. The file message in the embodiment of the present invention is a data slice with a set size range.

[0042] In some embodiments, the method further includes: during the transmission process, when one of the two links fails, transferring the channel established on the failed link to another normal link; When the failed link is restored, the channel is re-established on the restored link.

[0043] During the file transfer process, the transmission status of the channel and link is monitored in real time to promptly detect and handle transmission failures and ensure the reliability of file transmission.

[0044] Specifically, a heartbeat mechanism is established between the sending node and the receiving node to detect the link connection status. When a link disconnection is detected, the channel established on the faulty link is transferred to another normal link; after the fault is recovered, the channel is restored and the file transfer is resumed.

[0045] The link connection status is detected through the heartbeat mechanism. When the link is detected to be disconnected, the channel is automatically transferred and the file transfer is resumed, making the method highly adaptive and robust. Even in the case of an unstable network environment, the file transfer can be ensured to proceed smoothly.

[0046] The two established channels can also use the same physical link. If one of the two physical links fails, the channel previously established on the failed link will be transferred to the other physical link. When the failed link is restored, the channel will be reestablished. The two physical links are used in parallel when they are normal and serve as backup for each other when they fail.

[0047] In some embodiments, the method further includes: setting the two established channels to use the same transmission algorithm or different transmission algorithms.

[0048] During the file transfer process, different links can process file messages in different ways to ensure the security of file transfer.

[0049] The two established channels can use the same transmission algorithm or different transmission algorithms. For example, the channel on the dedicated line uses an efficient asynchronous transmission mode, while the channel on the public network uses a national encryption algorithm for encrypted transmission for security reasons.

[0050] In some embodiments, the steps of establishing a first channel to orderly send file messages in a first sending queue of a sending node to a first receiving queue of a receiving node, and establishing a second channel to orderly send file messages in a second sending queue of a sending node to a second receiving queue of a receiving node include: Step 4: Obtain file messages from the first receiving queue and the second receiving queue and reassemble them into files in the receiving directory and store them in the receiving node.

[0051] The ordered characteristics of the IROS message queue are utilized, and a merge-sort-like algorithm is used to quickly merge the first and second receiving queues into the target file. This process does not require new caching or message sorting, so the performance is excellent. After the receiving node receives the file message, it verifies the file message to ensure the integrity of the file message.

[0052] In the case where file messages sent by different channels may arrive later, the file messages that were sent later but arrived earlier are cached in the first receiving queue or the second receiving queue of the IROS message queue.

[0053] The method provided by the present invention can be extended to multi-channel and multi-link. The number of channels and the number of links can be equal or unequal. Generally, the number of channels is greater than or equal to the number of links.

[0054] In some embodiments, the method described in the present application is based on a transmission system, the system includes a sending node and a receiving node, the sending node and the receiving node are dual-link connected; the sending node and the receiving node are respectively installed with a communication middleware with a message queue service function; the sending node is installed with a dual-channel dual-link file sending service module and a dual-channel dual-link file transfer service module; the dual-channel dual-link file sending service module and the dual-channel dual-link file transfer service module provide file sending services, the function of which is to send the files to be sent in the sending directory to the receiving node in the form of file messages. The dual-channel dual-link file receiving service module provides file receiving services, the function of which is to reassemble the file messages sent by the sending node into the original file format and store them in the specified receiving directory.

[0055] like Figure 3 As shown, an embodiment of the present invention provides a dual-channel dual-link file transmission system, including a sending node and a receiving node, the sending node and the receiving node are dual-link connected; the sending node and the receiving node are respectively installed with a communication middleware with a message queue service function; the sending node is installed with a dual-channel dual-link file sending service module and a dual-channel dual-link file transmission service module; the communication middleware with a message queue service function in the embodiment of the present invention includes IROS; Creating a first sending queue and a second sending queue at the sending node through the communication middleware of the sending node, and creating a corresponding first receiving queue and a second receiving queue at the receiving node through the communication middleware of the receiving node; A dual-channel dual-link file sending service module detects files to be sent from a sending directory, and when a file to be sent is detected, converts the file to be sent into a file message and stores it in a first sending queue and a second sending queue respectively; The dual-channel dual-link file transfer service module establishes a first channel according to the configuration to send the file messages in the first sending queue of the sending node to the first receiving queue of the receiving node in an orderly manner, and establishes a second channel to send the file messages in the second sending queue of the sending node to the second receiving queue of the receiving node in an orderly manner; wherein one channel uses one link.

[0056] In an embodiment of the present invention, the communication middleware with the message queue service function may be IROS. IROS itself has the message queue service function. Two IROS persistent storage queues are created at the sending node - the first sending queue and the second sending queue, which are used to cache the file messages to be sent; two IROS persistent storage queues are created at the receiving node - the first receiving queue and the second receiving queue, which are used to cache the received file messages. The first sending queue and the second sending queue can be set with different weights. The weight value is a positive integer. The default value is 1. The larger the value, the stronger the sending capability of the queue.

[0057] In some embodiments, the system further includes a weight setting module, which sets the weights of the first sending queue and the second sending queue according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; When the dual-channel dual-link file sending service module detects a file to be sent, it converts the file to be sent into a file message; divides the file message according to the amount of the file message based on the set weight, and stores them in the first sending queue and the second sending queue respectively.

[0058] The weight setting module is specifically used to obtain the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; the weights of the first sending queue and the second sending queue are set according to the ratio of the available bandwidth; wherein, the larger the value of the available bandwidth, the higher the weight, and the stronger the sending capability of the queue.

[0059] The two channels established by the dual-channel dual-link file transfer service module can also use the same physical link. If one of the two physical links fails, the channel previously established by the dual-channel dual-link file transfer service module on the failed link will be transferred to the other physical link. When the failed link is restored, the channel will be reestablished. The two physical links are used in parallel when they are normal, and they serve as backup for each other when they fail.

[0060] The two channels established by the dual-channel dual-link file transfer service module can use the same transmission algorithm or different transmission algorithms. For example, the channel on the dedicated line uses an efficient asynchronous transmission mode, while the channel on the public network uses a national encryption algorithm for encrypted transmission for security reasons.

[0061] In the embodiment of the present invention, a dual-channel dual-link file receiving service module is also installed on the receiving node; The dual-channel dual-link file receiving service module obtains file messages from the first receiving queue and the second receiving queue and reassembles them into files in the receiving directory. The dual-channel dual-link file receiving service module utilizes the ordered characteristics of the IROS message queue and uses a merge-sort-like algorithm to quickly merge the first receiving queue and the second receiving queue into a target file. This process does not require new caching or message sorting, so the performance is excellent. When the dual-channel dual-link file receiving service module encounters a situation where file messages sent by different channels may arrive later, the dual-channel dual-link file receiving service module will wait, and the file messages that were sent later but arrived first will be cached in the first receiving queue or the second receiving queue of the IROS message queue.

[0062] The dual-channel dual-link file transfer service module is used to transfer the channel established on the faulty link to another normal link when one of the two links is detected to be faulty during the transmission process; when the faulty link is restored, the channel is re-established on the restored link; and the two established channels are set to use the same transmission algorithm or different transmission algorithms.

[0063] The dual-channel dual-link file receiving service module in the present invention provides a file receiving service, and its function is to reassemble the file message sent by the sending node into the original file format and store it in a designated receiving directory. Each channel of the dual channel in the present invention can use a different link, such as one channel using a dedicated link and the other channel using an Internet link, or one channel using a China Unicom dedicated link and the other using a China Mobile dedicated link, etc. If both links are normal, the two links can be used for transmission at the same time. If one of the links fails, the remaining link can also complete the transmission task alone.

[0064] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0065] The system embodiments provided by the embodiments of the present invention and the method embodiments of the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the system embodiments, reference can be made to the above-mentioned method embodiments.

[0066] The system is a unit and algorithm step of each example described in combination with the embodiments disclosed herein, and can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0067] Those skilled in the art will appreciate that various aspects of the method may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0068] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A dual-channel dual-link file transmission method, It is characterized in that Applied to file transmission between a sending node and a receiving node, a dual-link communication connection is established between the sending node and the receiving node; the method comprises the following steps: Create a first sending queue and a second sending queue at the sending node, and create a corresponding first receiving queue and a second receiving queue at the receiving node; Detecting files to be sent from the sending directory, and when files to be sent are detected, converting the files to be sent into file messages and storing them in the first sending queue and the second sending queue respectively; A first channel is established to orderly send file messages in a first sending queue of a sending node to a first receiving queue of a receiving node, and a second channel is established to orderly send file messages in a second sending queue of a sending node to a second receiving queue of a receiving node; wherein one channel uses one link.

2. The dual-channel dual-link file transmission method according to claim 1, It is characterized in that After the steps of creating a first sending queue and a second sending queue at a sending node and creating a corresponding first receiving queue and a second receiving queue at a receiving node, the following steps are included: The weights of the first sending queue and the second sending queue are set according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue.

3. The dual-channel dual-link file transmission method according to claim 2, It is characterized in that The step of setting the weights of the first sending queue and the second sending queue according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue includes: Obtaining the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; The weights of the first sending queue and the second sending queue are set according to the ratio of the available bandwidth; wherein, the larger the value of the available bandwidth is, the higher the weight is, and the stronger the sending capability of the queue is.

4. The dual-channel dual-link file transmission method according to claim 2 or 3, It is characterized in that The steps of detecting a file to be sent from a sending directory, and when a file to be sent is detected, converting the file to be sent into a file message and storing the message in a first sending queue and a second sending queue respectively include: Detect files to be sent from the sending directory, and when files to be sent are detected, convert the files to be sent into file messages; The file messages are divided according to the amount of the file messages based on the set weights, and are stored in the first sending queue and the second sending queue respectively.

5. The dual-channel dual-link file transmission method according to claim 4, It is characterized in that The method further includes: during the transmission process, when one of the two links fails, transferring the channel established on the failed link to another normal link; When the failed link is restored, the channel is re-established on the restored link.

6. The dual-channel dual-link file transmission method according to claim 5, It is characterized in that The method also includes: setting the two established channels to use the same transmission algorithm or different transmission algorithms.

7. The dual-channel dual-link file transmission method according to claim 1, It is characterized in that The steps of establishing a first channel to orderly send file messages in a first sending queue of a sending node to a first receiving queue of a receiving node, and establishing a second channel to orderly send file messages in a second sending queue of a sending node to a second receiving queue of a receiving node include: The file messages are obtained from the first receiving queue and the second receiving queue and reassembled into files in the receiving directory and stored in the receiving node.

8. A dual-channel dual-link file transfer system, It is characterized in that It includes a sending node and a receiving node, the sending node and the receiving node are connected with dual links; the sending node and the receiving node are respectively installed with communication middleware with message queue service function; the sending node is installed with a dual-channel dual-link file sending service module and a dual-channel dual-link file transfer service module; Creating a first sending queue and a second sending queue at the sending node through the communication middleware of the sending node, and creating a corresponding first receiving queue and a second receiving queue at the receiving node through the communication middleware of the receiving node; A dual-channel dual-link file sending service module detects files to be sent from a sending directory, and when a file to be sent is detected, converts the file to be sent into a file message and stores it in a first sending queue and a second sending queue respectively; The dual-channel dual-link file transfer service module establishes a first channel according to the configuration to send the file messages in the first sending queue of the sending node to the first receiving queue of the receiving node in an orderly manner, and establishes a second channel to send the file messages in the second sending queue of the sending node to the second receiving queue of the receiving node in an orderly manner; wherein one channel uses one link.

9. The dual-channel dual-link file transmission system according to claim 8, It is characterized in that A dual-channel dual-link file receiving service module is also installed on the receiving node; The dual-channel dual-link file receiving service module obtains file messages from the first receiving queue and the second receiving queue and reassembles them into files in the receiving directory.

10. The dual-channel dual-link file transmission system according to claim 8 or 9, It is characterized in that The system also includes a weight setting module, which sets the weights of the first sending queue and the second sending queue according to the available bandwidth of the link used by the first sending queue and the available bandwidth of the link used by the second sending queue; When the dual-channel dual-link file sending service module detects a file to be sent, it converts the file to be sent into a file message; The file messages are divided according to the amount of the file messages based on the set weights, and are stored in the first sending queue and the second sending queue respectively.

Citation Information

Patent Citations

  • Data transmission method, device and equipment and computer readable storage medium

    CN111586098A

  • File transmission system based on peer-to-peer network

    CN116566973A

  • Ultra-large file transmission system and method based on IROS

    CN116980405A

  • File transfer system and method

    US6850962B1

  • Data transmission method and apparatus

    WO2021179970A1