This application claims the benefit of Taiwan application Serial No. 108129659, filed Aug. 20, 2019, the subject matter of which is incorporated herein by reference.
The invention relates in general to an electronic system, an electronic device and a control method, and more particularly to a transmission system, a transmission device and a transmission path allocation method.
Along with the development in the network technology, various communication technologies are provided one after another. Communication equipment can transmit data packets through various transmission paths.
Different transmission paths have different advantages and adaptable scenario. The user switch to a most suitable transmission path according to the needs.
However, the transmission speed of the transmission path often varies with the usage rate, the external environment or the state of the transmission equipment. If the data packets are transmitted through the same transmission path, the transmission efficiency may be greatly affected.
The invention is directed to a transmission system, a transmission device and a transmission path allocation method, in which the data packets are transmitted through a plurality of transmission paths. Each of the data packets is adaptably allocated to a suitable transmission path to achieve the optimization of the transmission efficiency.
According to a first aspect embodiment of the present invention, a transmission path allocation method is provided. The transmission path allocation method is configured to transmit a plurality of data packets through at least two transmission paths. Each of the transmission paths has a send buffer. The transmission path allocation method includes the following steps. A transmission time length for each of the transmission paths is analyzed according to an output data variation of each of the send buffers. Each of the data packets is allocated to the transmission paths according to each of the transmission time lengths. A sequential code is attached to each of the data packets. Each of the data packets is transmitted.
According to a second aspect embodiment of the present invention, a transmission system including a transmission device and a reception device is provided. The transmission device includes a data transmission unit, a transmission analysis unit, an allocation unit and an encoding unit. The data transmission unit is configured to transmit a plurality of data packets through at least two transmission paths. Each of the transmission paths has a send buffer. The transmission analysis unit is configured to analyze a transmission time length for each of the transmission paths according to an output data variation of each of the send buffers. The allocation unit is configured to allocate each of the data packets to the transmission paths according to each of the transmission time lengths. The encoding unit is configured to attach a sequential code to each of the data packets. The reception device includes a data reception unit configured to receive the data packets.
According to a third aspect embodiment of the present invention, a transmission device including a data transmission unit, a transmission analysis unit, an allocation unit and an encoding unit is provided. The data transmission unit is configured to transmit a plurality of data packets through at least two transmission paths. Each of the transmission paths has a send buffer. The transmission analysis unit is configured to analyze a transmission time length for each of the transmission paths according to an output data variation of each of the send buffers. The allocation unit is configured to allocate each of the data packets to the transmission paths according to each of the transmission time lengths. The encoding unit is configured to encode each of the data packets.
According to a fourth aspect embodiment of the present invention, when the output data variation of the send buffer cannot be directly measured, the packet quantity inputted to the send buffer at a particular (or designated) time interval can be measured first. Since the packet quantity at the send buffer can be measured (or directly read) at any time point, the output data variation of the send buffer can be obtained according to the following formula: 0=I−l1i+l1i−1.
Wherein l1i represents a packet quantity at the next send buffer; l1i−1 represents a packet quantity at the original send buffer; 0 represents an output data variation, I represents a packet quantity inputted to the send buffer during this time interval. The instant output speed over this time period can be obtained according to the following formula:
Wherein tint represents time interval, S1i represents an instant output speed at this time interval. After taking the instant output speed at each historical time point into consideration, a weighted average output speed can be obtained according to the following formula:
Wherein,
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
According to the embodiment of the present disclosure, data packets are transmitted through a plurality of transmission paths, wherein each of the data packets can be adaptably allocated to a suitable transmission path, such that the transmission efficiency can be optimized.
Referring to
Referring to
The reception device 200 includes a data reception unit 210, a re-sorting unit 220, a process quantity analysis unit 230 and a control unit 240. Detailed descriptions of each element of the reception device 200 are disclosed below. The data reception unit 210 is configured to transmit data, and can be realized by such as a network connection port, a radio frequency module, or an optical signal receiving module. The re-sorting unit 220 is configured to sort the packets. The process quantity analysis unit 230 is configured to analyze the packet re-sorting process quantity. The control unit 240 is configured to sends a control instruction. The re-sorting unit 220, the process quantity analysis unit 230 and the control unit 240 can be realized by such as a circuit, a chip, a circuit board, a storage device storing a number of programming codes. The re-sorting unit 220, the process quantity analysis unit 230 and the control unit 240 can be realized by separate elements or can be integrated into one element.
Refer to
In step S110, the transmission time lengths T1 and T2 of the transmission paths PH1 and PH2 (refer to
q1i=Σj=1Md1j−l1i+l1i−1 (1)
S1i=q1i/tint (2)
S1i=α×
The estimation of the data output speed SP2 is similar to formulas (1) to (4), and the similarities are not repeated here.
In step S110, the transmission time lengths T1 and T2 required for completely transmitting the data packets PK1, PK2, PK3 . . . and so on are calculated by the transmission time length estimator 122 of the transmission analysis unit 120 according to the to-be-transmitted data volumes L1 and L2 (refer to
The transmission time length T2 required for transmitting the data packets PK1 through the transmission path PH2 can be obtained according to formula (6) below:
Then, the method proceeds to step S120, the data packets PK1, PK2, PK3 . . . and so on are allocated to the transmission paths PH1 and PH2 by the allocation unit 130 of the transmission device 100 according to the transmission time lengths T1 and T2. In the present step, each of the data packets PK1, PK2, PK3 . . . and so on will be adaptably allocated to a suitable one of the transmission paths PH1 and PH2. For example, the data packet PK1 is allocated to the transmission path PH1, the data packet PK2 is allocated to the transmission path PH2, the data packet PK3 is allocated to the transmission path PH1.
Then, the method proceeds to step S130, a sequential code is attached to each of the data packets PK1, PK2, PK3 . . . by the encoding unit 140 of the transmission device 100. Referring to
Then, the method proceeds to step S140, the data packets PK1, PK2, PK3 . . . and so on are transmitted by the data transmission unit 110 of the transmission device 100.
Through the above steps, each of the data packets PK1, PK2, PK3 . . . and so on will be adaptably allocated to a suitable one of the transmission paths PH1 and PH2 to achieve the optimization of the transmission efficiency.
Then, the method proceeds to step S150, the data packets PK1, PK2, PK3 . . . and so on are received by the data reception unit 210 of the reception device 200. As indicated in
Then, the method proceeds to step S160, the data packets PK1 to PK12 are re-sorted by the re-sorting unit 220 of the reception device 200 according to the full-range sequential codes C1 to C12. In an embodiment, the data packets PK1 to PK12 are re-sorted according to the full-range sequential codes. The 4-th row of
Thus, even when the data packets PK1 to PK12 are alternately transmitted through the transmission paths PH1 and PH2, the data packets PK1 to PK12 still can be re-sorted through the use of the full-range sequential codes C1 to C12.
The above sorting can be implemented by the sliding window method and the sliding window receiving register.
In the receiving register, the sorted packets are provided to the processor of a higher level and the data are erased.
In the receiving register, a re-sorting process quantity PQ is defined to calculate the re-sorting quantity for the packets having not been completely sorted. Although the network transmits data using an alternate method, as long as the network transmission is not congested, the alternate transmission of packets will not cause a huge increase in the re-sorting process quantity PQ unless one of the multipath intermediate nodes is congested.
In step S170, a re-sorting process quantity PQ (refer to
In step S180, a notification message MS is outputted by the control unit 240 of the reception device 200 for enabling the allocation unit 130 of the transmission device 100 to constantly allocate the subsequent data packets to one of the transmission paths PH1 and PH2 in step S190. That is, when the re-sorting process quantity PQ is too large, the allocation unit 130 of the transmission device 100 will switch to a constant transmission mode according to the notification message MS to avoid the reception device 200 performing re-sorting.
In the above embodiment, each of the data packets PK1 to PK12 is allocated to one of the transmission path PH1 to PH2. In another embodiment, one portion of the data packets PK1 can be allocated to one of the transmission paths PH1 and PH2, and another portion of the data packets PK1 can be allocated to the other one of the transmission paths PH1 and PH2. Referring to
The sub-packet PK1a has the packet data volume d1a (refer to
The transmission time length T1b for transmitting the sub-packet PK1b through the transmission path PH2 can be obtained according to formula (8) below:
The maximum of the transmission time length T1a and the transmission time length T1 (that is,
is the transmission time length required for completely transmitting the data packets PK1. The transmission analysis unit 120 calculates the transmission time length T1 for minimizing
according to formula (9) below:
Referring to
Thus, when the sub-packets PK1a and PK1b are concurrently transmitted through the transmission paths PH1 and PH2, the transmission efficiency can be optimized.
According to the embodiment disclosed above, each of the data packets can be adaptably allocated to a suitable transmission path. Even when the usage rate, the external environment or the state of the transmission equipment changes, data transmission still can be adaptably adjusted to achieve the optimization of the transmission efficiency.
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
108129659 | Aug 2019 | TW | national |