Transmission device, method, and program
The transmitting device calculates predicted delays and selects packets for transmission via the route with the largest delay with a margin, addressing the issue of increased delays and head-of-line blocking in load-balanced communication systems.
Patent Information
- Application Number
- JP2022045816
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2042-03-22
AI Technical Summary
Existing load balancing technologies across multiple communication routes can lead to increased delay differences, causing downstream transfer delays due to head-of-line blocking when a route with a small delay becomes faster than expected.
A transmitting device that calculates predicted delays for packets based on their data amount and the line speed of each communication path, selecting packets to be transmitted via the route with the largest delay with a margin to maintain arrival order, thereby reducing head-of-line blocking and transfer delays.
This approach ensures that packets are received in the correct order at the receiving device even if line speeds change, minimizing transfer delays and reducing the frequency of head-of-line blocking.
Smart Images

Figure 0007567843000001 
Figure 0007567843000002 
Figure 0007567843000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a transmitting device, a transmitting method, and a transmitting program. [Background technology]
[0002] Conventionally, there exists a technology that provides a large-capacity communication path that is difficult to realize with a single path by distributing the communication load among communication paths.
[0003] However, although multiplexing expands the bandwidth, the route with the longest delay among the multiple routes becomes the limiting factor for transmission, so there is a problem in that multiplexing routes with different delays can result in large delays.
[0004] In order to avoid the effect of load balancing being reduced due to an increase in the delay difference between such routes, for example, a technique described in Patent Document 1 has been disclosed. In the technique disclosed in Patent Document 1, the planned transmission route of each packet to be transmitted is determined based on the estimated delay and line speed of each route so that the order of the predicted arrival time at the receiving node is equal to the order of the arrival time at the transmitting node. Then, among the packets waiting to be transmitted, a packet that is not the first packet is transmitted on route 1, which has the largest maximum delay allowed for each route. This makes it possible to apply an appropriate load to each route while suppressing the delay difference between routes, optimizing communication efficiency. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 4488256 Summary of the Invention [Problem to be solved by the invention]
[0006] In the above conventional technology, the larger the allowable delay on path 1, the longer the time required for the last packet transmitted on path 1 to arrive, and the higher the possibility that the communication state of paths other than path 1 will change during that time. Therefore, if the line speed of paths other than path 1 is further increased, there is a problem that a delay in forwarding packets downstream from the receiving node occurs due to the waiting time for resolving the packet arrival order at the receiving node.
[0007] The present invention has been made in consideration of the above points, and aims to suppress transfer delays on the receiving side when packets are sent by load balancing over multiple communication paths, even if a path with less delay becomes faster than predicted. [Means for solving the problem]
[0008] In order to achieve the above object, a transmitting device according to the present invention is a transmitting device (10) that transmits a plurality of packets through a plurality of communication paths in a load-balanced manner, and includes: a calculation unit (12) that calculates a predicted delay, which is a time required for a packet to arrive at a receiving device (20) when transmitting the packet through each of the plurality of communication paths, based on the amount of packet data held in a holding unit that holds the plurality of packets arriving from a higher layer in order of arrival and the line speed of each of the plurality of communication paths; a selection unit (14) that, when selecting a communication path for transmitting each of the plurality of packets so that each of the plurality of packets is received by the receiving device in the order of arrival, selects a packet that arrives later in order of arrival than a packet selected based on the predicted delay as a packet to be transmitted from a communication path among the plurality of communication paths having the largest predicted delay when transmitting packets of the same amount of data; and a transmitting unit (16) that transmits each of the plurality of packets through each of the communication paths selected by the selection unit.
[0009] Further, a transmission method according to the present invention is a method in which a computer executes a process including a transmission device that transmits multiple packets in a load-balanced manner via multiple communication paths, a calculation unit that calculates a predicted delay, which is the time it takes for a packet to arrive at a receiving device when transmitting the packet via each of the multiple communication paths, based on the amount of packet data held in a holding unit that holds the multiple packets arriving from a higher layer in order of arrival and the line speed of each of the multiple communication paths, a selection unit that, when selecting a communication path to transmit each of the multiple packets so that each of the multiple packets is received by the receiving device in the order of arrival, selects a packet that arrives later in order of arrival than the packet selected based on the predicted delay as a packet to be transmitted from the communication path among the multiple communication paths having the largest predicted delay when transmitting packets of the same amount of data, and a transmission unit that transmits each of the multiple packets via each of the communication paths selected by the selection unit.
[0010] In addition, the transmission program of the present invention is a program for causing a computer to function as a transmitting device that transmits multiple packets in a load-balanced manner via multiple communication paths, the program including a calculation unit that calculates a predicted delay, which is the time it takes for a packet to arrive at a receiving device when transmitted via each of the multiple communication paths, based on the amount of packet data held in a holding unit that holds the multiple packets arriving from a higher layer in order of arrival and the line speed of each of the multiple communication paths; a selection unit that, when selecting a communication path for transmitting each of the multiple packets so that each of the multiple packets is received by the receiving device in the order of arrival, selects a packet that arrives later in order of arrival than the packet selected based on the predicted delay as a packet to be transmitted from the communication path among the multiple communication paths having the largest predicted delay when transmitting packets of the same amount of data; and a transmitting unit that transmits each of the multiple packets via each of the communication paths selected by the selection unit. Effect of the Invention
[0011] According to the transmitting device, transmitting method, and transmitting program of the present invention, when packets are transmitted by load balancing over multiple communication paths, transfer delays on the receiving side can be suppressed even if a path with less delay becomes faster than predicted. [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram showing a schematic configuration of a communication system. [Diagram 2] FIG. 2 is a block diagram showing a hardware configuration of a transmitting device. [Diagram 3] FIG. 2 is a functional block diagram of a transmitting device. [Figure 4] FIG. 1 is a diagram for explaining conventional transmission when a communication path is speeded up. [Diagram 5] 11 is a diagram for explaining transmission in this embodiment when the communication path is speeded up. FIG. [Figure 6] FIG. 11 is a diagram for explaining an example of a method for setting margin values. [Figure 7] 11A and 11B are diagrams for explaining an example of a method for setting a margin's numerical value when the margin is defined by an amount. [Figure 8] FIG. 13 is a diagram for explaining an example of a method for setting margin values when there are three or more communication paths. [Figure 9] FIG. 11 is a sequence diagram showing an example of transmission and reception timing. [Figure 10] 13 is a flowchart illustrating an example of a transmission process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings.
[0014] As shown in Fig. 1, a communication system 100 according to the present embodiment includes a transmitting device 10 and a receiving device 20. The transmitting device 10 and the receiving device 20 are connected via a communication line 30 and transmit and receive data to and from each other. The communication line 30 is configured by multiplexing a plurality of communication paths. Note that the number of each of the transmitting devices 10 and the receiving devices 20 included in the communication system 100 is not limited to the example in Fig. 1, and two or more transmitting devices 10 and two or more receiving devices 20 may be included.
[0015] Fig. 2 shows a hardware configuration of the transmission device 10. As shown in Fig. 2, the transmission device 10 has a CPU (Central Processing Unit) 42, a memory 44, a storage device 46, an input device 48, an output device 50, a storage medium reading device 52, and a communication I / F (Interface) 54. Each component is connected to each other via a bus 56 so as to be able to communicate with each other.
[0016] The storage device 46 stores a transmission program for executing a transmission process described below. The CPU 42 is a central processing unit, and executes various programs and controls each component. That is, the CPU 42 reads the program from the storage device 46 and executes the program using the memory 44 as a working area. The CPU 42 controls each of the components and performs various calculation processes according to the program stored in the storage device 46.
[0017] The memory 44 is made up of a RAM (Random Access Memory) and temporarily stores programs and data as a working area. A part of the memory 44 functions as a transmission queue (storage unit). The storage device 46 is made up of a ROM (Read Only Memory), HDD (Hard Disk Drive), SSD (Solid State Drive), etc., and stores various programs including an operating system, and various data.
[0018] The input device 48 is a device for performing various inputs, such as a keyboard, a mouse, etc. The output device 50 is a device for outputting various information, such as a display, a printer, etc. A touch panel display may be used as the output device 50 to function as the input device 48.
[0019] The storage medium reader 52 reads data stored in various storage media such as a CD (Compact Disc)-ROM, a DVD (Digital Versatile Disc)-ROM, a Blu-ray disc, and a USB (Universal Serial Bus) memory, and writes data to the storage media. The communication I / F 54 is an interface for communicating with other devices including the receiving device 20, and uses standards such as Ethernet (registered trademark), FDDI, or Wi-Fi (registered trademark).
[0020] The hardware configuration of the receiving device 20 is generally similar to that of the transmitting device 10 shown in Fig. 2, and therefore a description thereof will be omitted. Note that a receiving program for executing each process of the receiving device 20 is stored in the storage device 46 of the receiving device 20.
[0021] Next, a functional configuration of the transmission device 10 according to the present embodiment will be described with reference to Fig. 3. As shown in Fig. 3, the transmission device 10 includes a calculation unit 12, a selection unit 14, and a transmission unit 16. Each functional unit is realized by the CPU 42 shown in Fig. 2.
[0022] First, data waiting to be transmitted that arrives from a layer above the network layer is stored packet by packet in the transmission queue of the transmitting device 10. These multiple packets are held in the transmission queue in the order of arrival. The packets held in the transmission queue are assigned sequence numbers (hereinafter, represented as "[seq]") in the order of arrival. The transmission queue is an example of a holding unit of the present invention. A part of the memory 44 of the transmitting device 10 functions as the transmission queue.
[0023] The calculation unit 12 calculates an expected delay, which is the time required for a packet held in the transmission queue to arrive at the receiving device 20 after being transmitted from the transmitting device 10. The calculation unit 12 calculates the expected delay based on the amount of data of the packets held in the transmission queue and the line speed of each of a plurality of communication paths.
[0024] The selection unit 14 selects one of the multiple communication paths for transmitting each of the multiple packets held in the transmission queue so that each of the multiple packets is received in the order of arrival by the receiving device 20. In this case, if the communication path with the largest predicted delay value calculated by the calculation unit 12 (hereinafter referred to as the "communication path with large delay") is selected, the selection unit 14 selects a packet that arrives later than the packet selected for transmission based on the predicted delay calculated by the calculation unit 12.
[0025] Here, a packet selection method in a comparative example to this embodiment will be described with reference to Fig. 4. The comparative example is a method for selecting a communication path for transmitting each packet based only on a predicted delay so that the packets arrive at the receiving device in the order of their sequence numbers.
[0026] FIG. 4 shows an example of selecting sequence numbers of packets to be transmitted through multiple routes based on predicted delay. Here, t in the figure indicates time, and v indicates the line speed of the communication route. In the figure, time t increases to the left, and speed v increases upward. The left side of the paper is the transmitting side, and the right side is the receiving side. The three-dimensional blocks indicate packets that arrive at the transmission queue and are still arranged in sequence number order, and the flat blocks indicate packets after selection after being allocated to multiple routes. The horizontal width of the flat blocks indicates the time required to transmit the packets corresponding to that block, and the vertical width of the blocks indicates the speed at which the packets corresponding to that block are transmitted. These multiple flat blocks also indicate that the closer to the receiving side, the earlier the packets arrive. In the figure, route 1 indicates a communication route with a large delay, while route 2 indicates a communication route that is not a communication route with a large delay (hereinafter referred to as a "communication route with a small delay").
[0027] With reference to FIG. 4, selection of a communication path for transmitting each packet and transmission in the comparative example will be specifically described.
[0028] First, packets are stored in the transmission queue in the order of sequence numbers. Next, a route for transmitting the packets is selected from multiple routes. More specifically, as shown in FIG. 4(a), if the line speed of route 1, which is a route with a large delay, is v and the line speed of route 2, which is a route with a small delay, is 2v, and if the data amount of each packet is the same, the predicted delay for one packet in route 1 is 2t, and the predicted delay for one packet in route 2 is t. Based on the predicted delay of each route, for example, a packet of [seq1, seq2] is selected to be transmitted from route 2, and a packet of [seq3] is selected to be transmitted from route 1. Next, a packet of [seq4, seq5] is selected to be transmitted from route 2, and a packet of [seq6] is selected to be transmitted from route 1. As a result, a packet is transmitted so that transmission and reception of [seq3] is completed from route 1 at the timing when the transmission and reception of the packet of [seq1, seq2] is completed from route 2. Next, packets [seq4, seq5] are sent from route 2, and when reception is completed, a packet [seq6] is sent from route 1 so that transmission and reception is completed.
[0029] In this way, in the comparative example, a route for transmitting each packet is selected based on the calculated predicted delay so as to reduce wasted waiting time, i.e., so that the packets arrive at the receiving device in order of their sequence numbers.
[0030] However, as shown in FIG. 4(b), there are cases where the line speed of route 2 becomes faster than the time when the predicted delay was calculated at the time of actual packet transmission. FIG. 4(b) shows an example where the line speed of route 2 is increased from 2v to 4v. That is, the predicted delay for one packet becomes 1 / 2t on route 2. In this case, if packets selected in the same manner as in FIG. 4(a) are transmitted in the order of sequence numbers, a packet with a later sequence number than a packet that has not yet arrived on route 1 will arrive on route 2 before the packet that has arrived on route 2 before the packet that has arrived on route 2 before the packet that arrived on route 2 before the packet. This is called Head Of Line Blocking (hereinafter referred to as "HoLB"). As a result of HoLB, a transfer delay from the receiving device to the downstream side occurs due to the order resolution waiting time in the receiving device.
[0031] In the example of FIG. 4(b), by the time the transmission of the packet [seq3] is completed on the route 1, the packets [seq1, seq2, seq4, seq5] can be transmitted from the route 2. However, until the transmission of the packet [seq3] is completed on the route 1, the packets [seq4, seq5] transmitted on the route 2 must wait for transmission. In other words, HoLB occurs in the packets [seq4, seq5]. Similarly, HoLB occurs in the packets from [seq7] onward on the route 2. In this way, the comparative example has the problem that a downstream transmission delay occurs when the line speed of the route 2 is increased due to the frequent occurrence of HoLB and the increase in the waiting time due to HoLB. In other words, when only the arrival order based on the predicted delay is considered, a transmission delay occurs when the communication route with a small delay is increased in speed.
[0032] Therefore, when a communication path with a large delay is selected, the selection unit 14 of this embodiment selects a packet that arrives later in the order of arrival than the packet selected for transmission based on the predicted delay calculated by the calculation unit 12. Specifically, as shown in Fig. 5, the selection unit 14 selects a packet with a sequence number that has a margin with respect to the sequence number of the packet selected based on the predicted delay calculated by the calculation unit 12 on the path 1, which is a communication path with a large delay.
[0033] For example, in an example similar to that of Fig. 4(a), the selection unit 14 gives a margin of +2 to the packet of [seq6] selected based on the predicted delay as a packet to be transmitted from the path 1, as shown in Fig. 5(a). As a result, the selection unit 14 selects the packet of [seq8] as a packet to be transmitted from the path 1, whereas the packet of [seq6] would be selected in the selection based on the predicted delay. Similarly, the selection unit 14 gives a margin of +6 in Fig. 5(a) to the packet of [seq9] selected based on the predicted delay, thereby selecting the packet of [seq15] as a packet to be transmitted from the path 1.
[0034] In this way, the selection unit 14 selects packets with sequence numbers with a margin to be transmitted from a route with a large delay. With this selection method, even when route 2 is speeded up, as shown in Fig. 5(b), HoLB occurs initially, but the impact on subsequent packets on route 2 is small. As a result, downstream transfer delays caused by HoLB are mitigated compared to the comparative example shown in Fig. 4(b).
[0035] Next, a method for setting a margin in the selection unit 14 will be described.
[0036] A specific example of the margin defined by natural numbers will be described with reference to Fig. 6. In Fig. 6, packets transmitted from route 1 are represented as P1, P2, and P3 in order of earliest transmission.
[0037] First, for example, the following three types of variables are defined as variables used to set margins.
[0038] As the first type of variable, the predicted delay difference i will be described. The predicted delay difference i is the time calculated as the difference between the predicted delay t1 of each packet transmitted from a communication path with a large delay and the predicted delay t2 of the final packet transmitted from a communication path with a small delay, within the range of packets that can be transmitted within the allowable delay described later. In Fig. 6, the shaded blocks represent packets transmitted within the allowable delay of each communication path, and the dotted blocks represent packets transmitted after the transmission of the packets in the shaded blocks. The same applies to Figs. 4, 5, and 8. The timing of this transmission will be described later.
[0039] In the example of FIG. 6, the number of packets that can be transmitted within the allowable delay is three for both routes 1 and 2. The predicted delay of each packet corresponds to the time elapsed from the time when the packet is transmitted from the transmitting device 10 as delay 0 until the packet arrives at the receiving device 20. For example, the predicted delay (P3) for packet P3 corresponds to the width of the solid double-headed arrow in FIG. 6. In this case, the predicted delay difference (P3) for packet P3 is the time obtained by subtracting the predicted delay of three packets on route 2 from the predicted delay (P3) of packet P3 on route 1, as shown by the dotted double-headed arrow in FIG. 6. Similarly, the predicted delay difference (P2) for packet P2 corresponds to the width of the dashed double-headed arrow in FIG. 6. The predicted delay difference i is expressed by the following formula (1).
[0040] i[expected delay difference] = t1[expected delay for path 1] - t2 [expected delay of route 2] (1)
[0041] The second type of variable, offset j, will be explained. Offset j is the amount of data calculated by multiplying the predicted delay difference i by the line speed v2 of the communication path with small delay. Offset j is expressed by the following formula (2).
[0042] j[offset] = i[expected differential delay] × v2 [Line speed of route 2] (2)
[0043] The third type of variable k is the no-load offset k. The no-load offset k is the amount of data calculated by multiplying the predicted delay t1 of the long-delay communication path by the line speed v2 of the short-delay communication path. The no-load offset k is expressed by the following formula (3).
[0044] k[no-load offset] = t1[expected delay of path 1] × v2 [Line speed of route 2] (3)
[0045] Next, the calculation of the margin using the above variables i, j, and k will be described. Here, five calculation methods shown in the following formulas (4) to (8) will be illustrated.
[0046] In equations (4) to (8), the selection unit 14 calculates the variables i, j, and k using the above-mentioned equations (1) to (3), and sets an arbitrary value for the constant a. The selection unit 14 may set a different value for the constant a in each equation. The selection unit 14 may also dynamically set the constant a according to the number of packets held in the transmission queue, so that the sequence number with a margin added does not exceed the maximum value of the sequence numbers of packets held in the transmission queue.
[0047] m1 = v2 [Line speed of route 2] × a (4) m2 = k [no-load offset] × a (5) m3 = j[offset] × a (6) m4 = t1 [expected delay of route 1] × m2(7) m5 = i[expected delay difference] × m2(8)
[0048] Furthermore, the selection unit 14 may calculate the value of the margin m using any one of the formulas (4) to (8) when the predicted delay difference i is equal to or greater than a certain value, and may set the margin m to 0 when the predicted delay difference i is less than the certain value. When the deviation in the order of arrival of packets at the receiving device 20 is small enough to be negligible, reduction of the processing load and optimization of efficiency are prioritized. The selection unit 14 converts the value of the margin m calculated using any one of the formulas (4) to (8) into the number of packets, and defines the margin as a natural number.
[0049] Moreover, the effects of applying the margins calculated using the formulas (4) to (8) are as follows:
[0050] Equation (4): Mitigates the effect of delay reduction on path 2 (for example, the delay reduction from the time of delay 0 to the arrival of the first packet, as shown in FIG. 6(a1)). Equation (5): The effect of expanding the bandwidth of route 2 (for example, as shown in FIG. 6(a2), the line speed of route 2 becomes faster than when the predicted delay was calculated) is mitigated. Equation (6): Mitigates the effect of expanding the bandwidth of route 2 after receiving the final packet. Equation (7): Mitigates the effect of further bandwidth expansion of path 2 over time (Figure 6(a3)). Equation (8): Mitigates the effect of further bandwidth expansion of route 2 due to the passage of time after the reception of the final packet.
[0051] The example in Figure 5 is one in which the margin in formula (6) above is added to the sequence numbers of the second and third packets sent from route 1. Specifically, a margin is set between the difference between the predicted delay of each packet and the predicted delay of the final packet [seq4] sent from route 2, with a value that is twice the number of packets expected to arrive from route 2. This corresponds to a setting that prevents HoL blocking even if route 2 becomes twice as fast after the reception of the [seq4] packet.
[0052] Next, a case where the margin is defined by the amount of data will be described. The margin value itself can be calculated by any of the five formulas described above, but there are cases where the calculated value cannot be converted into the number of packets and the margin cannot be defined by a natural number. For example, as shown in FIG. 7, this is the case when the amount of data of each packet is not the same. Therefore, the selection unit 14 defines the margin by the amount of data and selects packets with sequence numbers based on the margin in the following manner.
[0053] Specifically, the selection unit 14 calculates the sum of the data amounts of each packet, starting from the packet next to the packet when no margin is applied that is selected to be transmitted over the long delay route, up to the specified packet, based on the predicted delay. In the example of Fig. 7, the packet when no margin is applied is [seq5], and the next packet is [seq6]. Next, the selection unit 14 selects the specified packet, when the difference between the data amount defined as the margin calculated by any of the five formulas described above and the sum described above is within a predetermined range, as the packet to be transmitted over the long delay route.
[0054] The selection unit 14 selects a predetermined packet when the difference is within a predetermined range in one of the following three patterns.
[0055] 1. Select the largest sequence number such that margin (amount of data) > sum of the amounts of data in each packet. 2. Select the smallest sequence number such that margin (amount of data) <= the sum of the data amounts of each packet. 3. Select the sequence number that makes the sum of the data amounts of each packet closest to the margin (amount of data).
[0056] For example, in the case of FIG. 7, the selection unit 14 selects the packet [seq9] in the case of pattern 1, the packet [seq10] in the case of pattern 2, and the packet [seq9] in the case of pattern 3.
[0057] Next, a method for setting a margin when there are two or more communication paths with small delay will be described.
[0058] When there are two or more communication paths with small delay, the selection unit 14 calculates the sum of the margins for each of the communication paths with small delay, and sets this value as the final margin.
[0059] 8, for example, assume that before the margin is applied, the first packet [seq7], the second packet [seq14], and the third packet [seq21] are selected as packets to be transmitted via route 1. Then, assume that the margin for the second packet on route 2 is calculated as +2, and the margin for route 3 is calculated as +6. In this case, the sum of the margins for the second packet on route 1 is 2+6=8, and the selection unit 14 selects the packet [seq22], which is obtained by adding 8 to [seq14], as the packet after the margin is applied.
[0060] The transmitter 16 transmits each of the multiple packets held in the transmission queue via each of the communication paths selected by the selector .
[0061] The transmitter 16 transmits no more than the number of packets that can be transmitted within the set allowable delay. The allowable delay is the maximum delay allowable for each path in order to balance the load distribution among multiple communication paths, and a larger allowable delay is set for a path with a larger delay.
[0062] Specifically, the transmitting unit 16 of the transmitting device 10 estimates the no-load delay and line speed (v in FIG. 9) at the start of transmission, and sets the maximum amount of data that falls within the allowable delay as the window size based on these. Then, the transmitting unit 16 transmits packets for the window size selected by reflecting the margin. The timing of starting transmission is the same for both the path 1 and the path 2. In FIG. 9(a) which is an example of the path 1, packets P1 to P5 are transmitted as packets for the window size. Note that, based on the sequence number after selection by the selecting unit 14, that is, the sequence number reflecting the margin, the packet transmitted first from each path is indicated as P1, the packet transmitted second is indicated as P2, etc. The transmitting unit 16 receives an ACK, which is an acknowledgment of the packet received by the receiving device 20, transmitted from the receiving device 20 at a predetermined timing. In the path 1 shown in FIG. 9(a), an example is shown in which the receiving device 20 transmits an ACK to the transmitting device 10 every time the receiving device 20 receives two packets, but the timing of transmitting the ACK can be set appropriately. When the transmitter 16 receives the ACK, it detects that transmission and reception up to P2 in FIG. 9(a) has been completed normally, and next transmits two packets (packets P6 to P7) that are available in the window size.
[0063] Similarly, in Fig. 9(b) which is an example of path 2, the transmitter 16 transmits packets at the timing of starting transmission and the timing after receiving an ACK. Fig. 9(b) shows an example in which the window size at the start of transmission is six packets, and the receiver 20 transmits an ACK to the transmitter 10 every time it receives three packets. Therefore, there are three packets of free space at the next and subsequent transmission timings, so the transmitter 16 transmits three packets at each of the next and subsequent transmission timings for path 2. Note that in Fig. 9, stars indicate the timing of packet transmission.
[0064] The transmitter 16 may select a packet preselected by the selector 14 from each path at each of the above-mentioned transmission timings, or may transmit a reselected packet at each transmission timing. In the latter case, specifically, the transmitter 16 notifies the selector 14 every time an ACK is received. The selector 14 reselects a packet to be transmitted on each path, reflecting a margin based on a predicted delay or the like at the time of receiving the notification. The transmitter 16 may also determine the transmittable amount at the transmission timing after receiving an ACK at each transmission timing by re-estimating the line speed or the like at the time of receiving an ACK, instead of the free amount of the window.
[0065] When the receiving device 20 receives a packet transmitted from the transmitting device 10, it transmits an ACK at a predetermined timing to the transmitting device 10. In addition, the receiving device 20 transfers the received packets downstream for each path in the order of sequence numbers.
[0066] Next, a description will be given of the operation of the communication system 100 according to this embodiment. In the transmitting device 10, a transmitting process shown in Fig. 10 is executed. Note that the transmitting process is an example of a transmitting method of the present invention.
[0067] The transmission process will be described with reference to FIG.
[0068] In step S10, when the calculation unit 12 detects arrival of packets in the transmission queue of the transmission device 10, it assigns consecutive sequence numbers starting from 1 to each packet in the order of arrival. Next, in step S12, the calculation unit 12 assigns 1 to a variable n for identifying the sequence number.
[0069] Next, in step S14, the calculation unit 12 determines whether or not a route for transmitting the packet with sequence number n has not yet been selected. If a route has been selected (step S14: NO), the calculation unit 12 proceeds to step S16, increments the variable n by 1, and returns to step S14. If a route has not yet been selected (step S14: YES), the calculation unit 12 proceeds to step S18.
[0070] In step S18, the calculation unit 12 calculates an expected delay for each path of the packet with sequence number n. The expected delay is calculated from the amount of data waiting to be sent stored in the transmission queue and an estimated line speed of the communication line 30.
[0071] Next, in step S20, the selection unit 14 determines whether the route with the earliest predicted arrival is the route with the largest delay among the multiple routes, based on the predicted delay calculated by the calculation unit 12. If it is not the route with the largest delay (step S20: NO), the process proceeds to step S26, where the selection unit 14 selects the route with the smallest delay as the route for the packet with sequence number n, and proceeds to step S28. On the other hand, if it is the route with the largest delay (step S20: YES), the process proceeds to step S22, where the selection unit 14 sets a margin m. Next, in step S24, the selection unit 14 selects the route with the largest delay as the route for the packet with sequence number n+m, and proceeds to step S28.
[0072] In step S28, the selection unit 14 determines whether or not the selection of routes for all packets in the transmission queue has been completed. If there are packets for which routes have not yet been selected (step S28: NO), the process returns to step S14. If the selection of routes for all packets has been completed (step S28: YES), the process proceeds to step S30, where the transmission unit 16 transmits each packet via the route selected by the selection unit 14, and the process returns to step S10.
[0073] In the above transmission process, a case has been described in which packets are transmitted when route selection has been completed for all packets in the transmission queue, but packets may also be transmitted when route selection has been completed for a predetermined number of packets.
[0074] As described above, according to the communication system of the present embodiment, a transmitting device that transmits a plurality of packets through a plurality of communication paths in a load-balanced manner holds a plurality of packets arriving from an upper layer in the order of arrival. Then, based on the data amount of the packets held in the transmission queue and the line speed of each of the plurality of communication paths, a predicted delay is calculated, which is a time required for a packet to arrive at a receiving device when the packet is transmitted through each of the plurality of communication paths. Also, the transmitting device selects a communication path for transmitting each of the plurality of packets so that each of the plurality of packets is received by the receiving device in the order of arrival at the transmission queue. At this time, the transmitting device selects a packet that arrives later in the order of arrival than the packet selected based on the predicted delay as a packet to be transmitted from a communication path with a large delay that has the largest predicted delay when transmitting packets of the same amount of data among the plurality of communication paths. Then, the transmitting device transmits each of the plurality of packets through each of the selected communication paths. As a result, even if the line speed of paths other than the communication path with a large delay is further increased, the frequency of head-of-line blocking can be reduced and the waiting time for resolving the packet arrival order at the receiving device can be reduced, thereby suppressing a transfer delay of packets downstream of the receiving device.
[0075] In addition, the transmission process executed by the CPU by reading the software (program) in the above embodiment may be executed by various processors other than the CPU. In this case, examples of the processor include a PLD (Programmable Logic Device) such as an FPGA (Field-Programmable Gate Array) whose circuit configuration can be changed after manufacture, and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) which is a processor having a circuit configuration designed exclusively for executing a specific process. The transmission process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, and a combination of a CPU and an FPGA). More specifically, the hardware structure of these various processors is an electric circuit that combines circuit elements such as semiconductor elements.
[0076] In the above embodiment, the transmission program is pre-stored (installed) in the storage device, but the present invention is not limited to this. The program may be provided in a form recorded on a recording medium such as a CD-ROM, a DVD-ROM (Digital Versatile Disc Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network. [Explanation of symbols]
[0077] 100 Communication Systems 10 Transmitting device 12 Calculation section 14 Selection section 16 Transmitter 20 Receiving device 30 Communication lines 42 CPU 44 Memory 46 Storage device 48 Input Devices 50 Output Device 52 Storage media reader 54 Communication I / F 56 Bus
Claims
1. A transmission device (10) that transmits a plurality of packets through a plurality of communication paths in a load-distributed manner, a calculation unit (12) that calculates a predicted delay, which is a time required for a packet to arrive at a receiving device when the packet is transmitted through each of the plurality of communication paths, based on a data amount of the packet held in a holding unit that holds the plurality of packets arriving from an upper layer in order of arrival and a line speed of each of the plurality of communication paths; a selection unit (14) that, when selecting a communication path for transmitting each of the plurality of packets so that each of the plurality of packets is received by the receiving device in the order of arrival, selects, from among the plurality of communication paths, a packet whose arrival order is later than that of a packet selected based on the predicted delay as a packet to be transmitted from a communication path having the largest predicted delay when transmitting packets of the same amount of data; a transmission unit (16) that transmits each of the plurality of packets via each of the communication paths selected by the selection unit; A transmitting device including:
2. The transmitting device described in claim 1, wherein the selection unit uses sequence numbers assigned to the packets held in the holding unit in the order of arrival to select a packet having a sequence number that has a margin with respect to the sequence number of the packet selected based on the predicted delay as the packet that will arrive later in the order of arrival.
3. The transmitting device according to claim 2 , wherein the selection unit sets the margin based on the predicted delay for a packet that can be transmitted within an allowable delay, which is a value set to balance load distribution among the plurality of communication paths.
4. The transmitting device of claim 2, wherein the selection unit sets the margin to a value corresponding to a predicted delay difference, which is the difference between the predicted delay of a packet transmitted from the large delay communication path and the predicted delay of a packet transmitted from a small delay communication path other than the large delay communication path.
5. The transmitting device according to claim 2 , wherein the selection unit sets the margin to a value corresponding to a line speed of a communication path with a small delay other than the communication path with a large delay among the plurality of communication paths.
6. The transmitting device according to claim 4 , wherein the selection unit sets the margin to a value corresponding to an offset calculated by multiplying the predicted delay difference by a line speed of the communication path with the small delay.
7. 7. The transmitting device according to claim 2, wherein the selection section defines the margin as a natural number.
8. A transmitting device as described in any one of claims 2 to 6, wherein when the data amount of each of the multiple packets is not the same, the selection unit defines the margin as a data amount, and selects the specified packet as the packet with the later arrival order when the difference between the sum of the data amounts of each packet from the packet next to the packet selected based on the predicted delay to the specified packet and the data amount defined as the margin is within a specified range.
9. A transmitting device as described in any one of claims 2 to 8, wherein the selection unit, when there are two or more low-delay communication paths other than the large-delay communication path, sets the sum of the margins for each of the low-delay communication paths as the final margin.
10. A transmitting device as described in any one of claims 1 to 9, wherein the transmitting unit transmits a number of packets whose transmission is completed within an allowable delay, which is a value set to balance the load distribution among the multiple communication paths.
11. A transmission device that transmits a plurality of packets through a plurality of communication paths in a load-distributed manner, a calculation unit calculates a predicted delay, which is a time required for a packet to arrive at a receiving device when the packet is transmitted through each of the plurality of communication paths, based on a data amount of the packet held in a holding unit that holds the plurality of packets arriving from a higher layer in order of arrival and a line speed of each of the plurality of communication paths; a selection unit, when selecting a communication path for transmitting each of the plurality of packets so that each of the plurality of packets is received by the receiving device in the order of arrival, selects, from among the plurality of communication paths, a packet having an arrival order later than that of a packet selected based on the predicted delay as a packet to be transmitted from a communication path having the largest predicted delay when transmitting packets of an identical amount of data; a transmission unit that transmits each of the plurality of packets via each of the communication paths selected by the selection unit; The transmission method includes a process performed by a computer.
12. Computer, A transmission device that transmits a plurality of packets through a plurality of communication paths in a load-distributed manner, a calculation unit that calculates a predicted delay, which is a time required for a packet to arrive at a receiving device when the packet is transmitted through each of the plurality of communication paths, based on a data amount of the packet held in a holding unit that holds the plurality of packets arriving from a higher layer in order of arrival and a line speed of each of the plurality of communication paths; a selection unit that, when selecting a communication path for transmitting each of the plurality of packets so that each of the plurality of packets is received by the receiving device in the order of arrival, selects, from among the plurality of communication paths, a packet whose arrival order is later than that of a packet selected based on the predicted delay as a packet to be transmitted from a communication path having the largest predicted delay when transmitting packets of the same amount of data; a transmission unit that transmits each of the plurality of packets via each of the communication paths selected by the selection unit; A sending program to act as a
Citation Information
Patent Citations
Communication system, and packet scheduling method thereof and transmission node
JP2008306321A
Communication method, node and control program
JP4488256B2
Communication method, node, and control program
WO2007111331A1
