Flow control for high speed networks

Abstract: A method and apparatus for dynamically adjusting the window size in a session between a sender and a receiver over a link of a packet transmission network. This invention discloses a dynamic window adjustment scheme to determine the optimum window size with a minimum number of iterations. This invention also covers a method and apparatus for sharing pacing credits among a number of sessions during which packets are transmitted over the network. With this invention sessions having no packets to transmit will send pacing credits to a shared credit pool (SCP) while pacing credits will be distributed to those session having packets to transmit.

Description: Technical Field This invention generally relates to a method of dynamically adjusting the window size in a session between a sender and a receiver over a link of a packet transmission network. More specifically this invention relates to a method of and to an apparatus for regulating data flow in a packet transmission network with a plurality of sessions. Description of the Prior Art Flow control is the function that controls the entry and delivery of packets across computer networks. Its goals are to achieve high utilization of network resources- link bandwidths and node intelligence, to prevent deadlock, and to be fair to users. Window pacing, between a sender of data and the corresponding receiver in the network, is often the key element in achieving these goals. A window is related to the number of outstanding packets that have been transmitted but not acknowledged yet. SNA uses a window pacing mechanism, referred to herein as the "basic PRQ/PRS" scheme, which will be improved upon by this disclosure. The "basic PRQ/PRS" scheme is shown in [ 1 ] to have comparable or better performance than other pacing mechanisms. In a PRQ/PRS scheme, the sender requests more pacing credits (permissions to transmit packets) at the beginning of every window, and the receiver grants a new window of pacing credits only after it has processed all packets preceding, including the packet containing the pacing request. This protocol is performed via the exchange of two control messages- the pacing request (PRQ) and the pacing response (PRS). The key property of a PRQ/PRS scheme is that, at any time, the sender never has more than two windows of pacing credits and the receiver never has more than two windows of packets to enqueue. Pacing can be done in two ways: one is the "end to end" way in which only the source and destination nodes are involved in pacing, and the other is the "hop by hop" way in which every node is involved in pacing of packets entering or leaving a node. Between the two, the hop by hop approach is more robust [ 2 ] in two aspects: In "hop by hop" flow control, nodes adjacent to a potential congested spot can react quickly and throttle transmissions to either eliminate or alleviate the problem. The throttling is much more responsive this way than in an "end to end" flow control scheme which requires a long delay (roughly proportional to end to end round trip delay) to react to "congestion" within a network. In hop by hop flow control, the idiosyncrasies of a link (such as the long propagation delay of a satellite link) can be isolated to the local hop. This "link isolation" property makes network design much easier. For example, we will see below that, in a network with hop by hop flow control, the buffer requirements of a node depend only on the attached links, not on the entire paths of the virtual circuits that pass through the node. There are two ways of dealing with deadlock problems. One way is to drop packets upon congestion and retransmit them at later times. This approach can solve the deadlock problem, but it is liable to "livelock," i.e., persistent repetitions of retransmissions. Also, with this approach packet drops may occur in such a way that effective throughput becomes zero [ 2 ]. Although possible, tuning a drop-packet pacing mechanism to meet certain livelock probability criterion is a major effort. Therefore, from our view, a drop-packet pacing scheme is not desirable because it is too environment dependent and not robust enough. The other approach is to pre-allocate buffers when pacing credits are granted. Since there is a receiving buffer pre-allocated for each legitimately transmitted packet, packets need never be dropped. A specific class of schemes that adopt this policy are the buffer class (BC) schemes [ 3 ]. In a BC scheme, packets and buffers are grouped into classes. Packets of the same class share a pool of buffers. Several buffer classifications have been proposed: session based [ 4-5 ], path based [ 6 ], and hop count [ 7 ]. Buffer class schemes are very desirable because they probably can be deadlock and livelock free. To allow efficient use of buffer resources and to limit packet delays through a network, it is not desirable to fix the window sizes of a hop-by-hop buffer class pacing scheme. An adaptive window pacing scheme is presented in U. S. Patent 4,736,369 to Barzilai et al. for a session based (one type of buffer classification) hop-by-hop flow control mechanism. This adaptive window scheme is designed to reduce the windows of congested sessions and increase the windows of active and uncongested sessions. Statuses of sessions are based on the queue lengths at both the senders and the receivers. A congested session has a queue at its receiver that is longer than a certain threshold; an inactive session has an empty queue at its sender. During each adjustment, window sizes are either increased or decreased by one. The receiver is allowed to send an isolated control packet to the sender to claim excess pacing credits from a specified session. The throughput of the PRQ/PRS scheme depends critically on the proper setting of window sizes. The concept of "keeping the pipe full" is recognized in several queueing studies such as [ 8 ]. In [ 6 ] it is shown that window sizes need not be greater than W max which is given by W max = 3 + ((link speed in packets per second) x (round trip delay in seconds)). The range of window sizes, i.e., from 1 to W max increases with the product of link speed and link propagation time. Clearly, the larger the window range, the more difficult the window adjustment. For example, the adaptive scheme in U. S. Patent 4,736,369 to Barzilai, which changes windows by fixed increments is effective in low speed environment, but not in high speed environments. It is not acceptable, for example, to wait for 50 iterations for a window size to converge from 100 to 50. The above scheme is shown to be effective when window ranges are small (1-10) such as in low speed environments. In high speed networks where window ranges are large (1-200), the scheme is inefficient because: a) the fixed value use for window size adjustment is not responsive enough, and b) there is much overhead in the process of claiming "excess" pacing credits- one packet per claim per session. U. S. Patent 4,727,537 to Nichols describes a scheme for handling flow control within a STARLAN type controller. The Nichols patent describes a jamming signal, which results in inhibiting the transmission of data from any associated transmitting and receiving devices. U. S. Patent 4,616,359 to Fontenot discloses a flow control scheme for data packets through a packet switching network by the use of an adaptive preferential permit packet. This permit packet is sent node to node prior to a transmission of a bulk of data packets. The node discards the permit packet if the number of packets awaiting transmission from that node exceeds a prescribed threshold. Fontenot also discloses a time-out mechanism wherein a permit packet is resent from an originating port if a permit return packet is not received within a predetermined time. U. S. Patent 4,677,616 to Franklin discloses a flow control scheme for bus-like local area networks, e.g., data kit. Franklin's scheme requires the existence of a central system controller which monitors buffer occupancy in every transmitting/receiving terminal and adjusts window sizes of calls. This window scheme is semi-fixed because the window size of a call remains the same until either there are new call setups of existing calls terminate. U.S. Patent 4,630,264 to Wah et al discloses a contention resolution protocol on a single shared bus with asynchronous time division multiplexing. If more than one station contends for, or if no station contends for, a window adjustment rule is applied at each station to change the window size. Contention is resolved by generating a random number for each contending station at the beginning of a contention period, and by successively modifying the window until exactly one station's number is isolated in the window, contention is resolved. Once contention is resolved a packet can be transmitted. U. S. Patent 4,839,891 to Kobayashi et al. discloses a method for controlling data flow between source and destination data terminals. Whenever a data packet arrives at the destination data terminal, it is stored in a receive buffer from which it is withdrawn at a rate which may differ from the rate of transmission of packets from the source terminal. Dependent on the storage level of the receiver buffer, a flow control variable is incremented or decremented by a unit value before being retransmitted to the source data terminal. In order to correctly adjust the flow control variable, several iterations are necessary. References 1. M. Schwartz, 'Performance analysis of SNY virtual route pacing control,' IEEE Trans. Commun., Jan. 1982 2. M-S. Chen and B. Kadaba, 'A Class of efficient flow control schemes for computer networks,' IBM Research Report, RC12091, August 1986. 3. A. Giessler, A. Jagemann, E. Maser, and J. Hanle, 'Flow control based on buffer classes,' IEEE Trans. on Commun., vol. COM-29, no. 4, 1981. 4. A. Baratz, J. Gray, P. Green, J. Jaffe, and D. Pozefsky, "SNA networks of small systems," IEEE JSAC, vol. SAC-3, No. 3, May 1985. 5. L. Tymes, "Routing and flow control in TYMNET," IEEE Trans. Commun., vol. COM-29, No. 4, April 1981. 6. M-S. Chen, B. Kadaba, and G. Grover, "Efficient hop by hop buffer class flow control schemes," in Proc. GLOBECOM'87, Tokyo, Japan, 1987. 7. A. Giessler, J. Haenle, A. Koenig, and E. Pade, "Packet networks with deadlock-free buffer allocation- An investigation by simulation," GMD reprt, Darmstadt, Germany, 1976. 8. K. Bharath-Kumar and J. Jaffe, "A new approach to performance oriented flow control," IEEE Trans. Commun., vol. COM-29, No. 4, April 1981. Summary of the Invention It is, therefore, an object of this invention to dynamically adjust the window size in a packet transmission network using a minimum number of iterations to arrive at the desired window size. It is also an object of this invention to provide a method and apparatus for sharing pacing credits among a plurality of sessions during which packets are transmitted over a packet transmission network. These objects are solved with the features of claims 1, 7, 12 and 17. Additional features are included in the dependent claims. Brief Description of the Drawings FIG. 1 schematically illustrates a packet with a RQS (request)/RSP (response) bit, a pacing bit and a WR (window received) bit. FIG. 2 is a flow chart of the algorithm used in this invention for the receiver. FIG. 3 is a flow chart for the algorithm used in this invention for the sender. FIG. 4 schematically illustrates the structure of a sender with the shared credit pool. FIG. 5 schematically illustrates the process whereby the sender either sends a packet or collects pacing counts. FIG. 6 is a flow chart illustrating the process of transition between the share and exclusive scheduling modes. FIG. 7 illustrates the setting of the idle bit and pacing count upon a reception of a pacing response by a sender. FIG. 8 is a flow chart illustrating the process of returning pacing credits from the shared credit pool when the pacing counts in the pool become too large. Description of the Preferred Embodiment Dynamic Window Adjustment First, the window adjustment process for an arbitrary hop of an arbitrary session within a network is described. This same process is to be applied at every hop of every session in the network. The term hop refers to two adjacent nodes and the facilities connecting these nodes. As shown in FIG. 1, a packet 10 that flows in the network is structured into two parts: an information data field 2 and a header 4. The header is used by the communication protocol to assist in packet processing. The header has various bits of which only the following are relevant for this invention. RQS/RSP bit - This bit is used to indicate whether the packet is a data request (RQS) or response (RSP) packet. The sender sets the RQS/RSP bit = ON for every packet that carries user information. When the RQS/RSP is ON, this bit shall be referred to as a request bit or an RQS bit. The receiver sets the RQS/RSP bit = OFF to indicate acknowledgment of having received the request. When the RQS/RSP bit is OFF, this bit shall be referred to as a pacing response bit or an RSP bit. Pacing bit - The sender will set the pacing bit = ON every time it starts a new window. The receiver sets the pacing bit = ON when it sends a RSP bit (response) back to the sender with a new window size. PRQ/PRS - These packets are identified by a combination of the RQS/RSP and pacing bits. PRQ - This is a request packet (also referred to as the pacing request) that uses the first packet of a window and therefore the pacing bit and the RQS/RSP bit are set to ON. PRS - This is a response packet that is used for the flow control algorithm, and therefore, the pacing bit is set. In the information field, the PRS packet has unique information containing the new window size to be used by the sender. WR (window received) is a bit in each packet's header which is set by the sender in the first packet following the arrival of a pacing response (PRS). This packet will carry the WR = on. In other words, a WR "acknowledges" the receipt of a PRS by the sender. The new dynamic window adjustment scheme of this invention is a unique way to find the best window size in one iteration for whatever the change in the window size should be. Windows are not reduced incrementally. Instead, the scheme accurately estimates the best window reduction amount and "converges" in one iteration. When increasing windows, the scheme may "overshoot," but this will be corrected in the next iteration. If a session receives a new window before it exhausts a previous window, the session must have had been too large a window because its packets are not being transmitted fast enough by the sender. Similarly, if packets of a later window catch up with the packets of a previous window at the receiver, the window size is too large because the receiver cannot forward the packets fast enough. Essentially, the desirable window size should be based on two quantities: a) the slower of the transmitting or receiving rates and b) the window turn around time (i.e., the elapsed time between a PRQ departing and a subsequent PRS arriving at the sender). In the receiver: CNT - Count is the number of packets that arrive at a node in the interval between a PRQ arrival and the WR packet arrival. CNT thus samples the packet arrival rate during the time of one "round trip delay". QL - Queue length is the number of packets in the transmission queue. At the receiver, CNT and QL are incremented for each arriving packet and QL is decremented for each departing forwarded packet. In the sender: WW - WW is the working window size, which is the number of packets that the sender is permitted to transmit. WW is reduced by one for every departure and will increase by the window size (WS) when receiving a PRS. NW - NW is the size of the next window permitted. NW will be updated by the new window value indicated in every new arrival of a PRS. The value of NW is the last value of WS which was calculated using equation 1 or 2, depending on whether QL is greater than or equal to zero and on whether the pacing bit is ON. LWR - LWR is a flag used to indicate that no data packet has been transmitted since the last pacing response (PRS) arrival. The Algorithm at the Receiver End The algorithm has two parts. The first part is processed before the packet is queued for the next hop, and the second is processed when the sender dequeues a packet in order to transmit on the next hop. FIG. 2 shows the flow diagram for the algorithm, and below is a detailed description of the various aspects of the scheme. Part 1 Referring to FIG. 2, the first part starts at box 201 and ends at box 209. Upon arrival of a packet at node (201), the receivers check the WR bit in the header. If this bit is not set, then there is no need to adjust the window size, and therefore, the packet goes directly to box 206 to update local parameters. However, if the WR bit is set, then the correct window size for the next request must be computed. It may happen that the result is the same value as for the previous window size. In box 202, QL is checked. If the QL is not zero, then the conclusion is that the previous window was too big. The receiver computes a new reduced window size (WS) in box 203 as follows: WS = max (W min , CNT-QL+B) where W min is a prespecified parameter representing the minimum window size and B is a design parameter representing a damping factor. W min is chosen so as to keep the flow control overhead within acceptable levels. Non-zero B is used to prevent possible over-reaction. Both of the values, W min and B, are tunable parameters and used for practical reasons. For example, W min and B can be 10 and 2, respectively, so that there is at most one control packet (e.g., PRS packet) for every 10 data packets. When the queue is empty (202) the pacing bit is checked (204). If no pacing request is indicated by the pacing bit, then the sender has a bigger window than it can handle, and the receiver again computes a new reduced window in box 203. So far, the method of decrementing the window size was described. The intent here is to provide a window size that matches the packet departure rate, but allows a certain number of packets B, to queue up at the receiving node. The following observations should help to clarify the schemes: If the subsequent hop is not a bottleneck then one would expect QL to be close to B and thus the window size (as indicated by CNT) nearly matches the round trip delay of the hop under consideration, thus keeping the "pipe full". When the subsequent hop becomes a bottleneck, QL grows large so that new_window is reduced towards W min . If the session is mostly inactive, the new_window need never increase beyond W min . Normally, the window oscillates somewhat, and parameter B determines a delay/throughput trade-off and affects buffer utilization in the node. In box 204, in the case where the queue is empty and the pacing bit is set, the receiver can afford to increase its transmission rate, and the sender indeed requests a larger window. In such case, the window size (WS) is increased to the following (205): WS = min (W max ,CNT+αW max ) where 0 ≤ α ≤ 1 is a design parameter between zero and one. Since the receiver has no information about the future traffic on the session, it must "guess" a new window that is between CNT and W max . But the scheme is not sensitive to an over-estimate because the window reduction in equation (1) will always quickly correct any over-reaction. Therefore, almost any heuristic that aggressively increments the window from size CNT towards size W max will quickly "converge". Equation (2) should be viewed only as an example. For any incoming packet, the receiver has to increase the queue size. However, the CNT is increased for every incoming packet until it is reset. It is reset when the pacing bit is set. Thus, for any incoming packet, if the pacing bit is ON, the CNT will be set to one (206, 207); however, if the pacing bit is OFF, the CNT will be incremented by one (206, 208). After either step 207 or 208 the incoming packet flows into the queue. Part 2 All the packets that are in the outgoing queue are under the responsibility of the sender protocol. However, the receiver makes sure that for every packet that leaves the queue, it updates QL (210) and checks for the pacing bit (211). If the pacing bit is set, then it is the responsibility of the receiver to create a PRS (pacing response) packet with the window size from WS and send it back to sender of his own hop (box 212). It may happen that the new_window size computed by the above procedure exceeds the number of available "uncommitted" packet buffers at the receiver. In this case, to avoid over commitment of receive packet buffers, the receiver transmits an extended pacing response (PRS) that contains two numbers: the number of available , "uncommitted" packet buffers (which is less than WS) and the "ideal" new_window size (WS) computed by the above procedure. The non-extended PRS packet has a data filed for only one number. When the sender obtains such an extended PRS, it can, of course, use the available, uncommitted number as the "next window" for the relevant session. But the sender can also increase the "next window" up to the value of the ideal new_window number by subtracting a like number of pacing credits from the Shared Credit Pool (SCP) which will be described below. The Algorithm at the Sender Referring to FIG. 3, the sender flow control algorithm can be triggered by two independent events. Either the queue has packets to send (301-307) or a PRS arrived from the receiver (308). The process of sending a packet requires permission from receiver in the form of a WW > 0. This permission is checked in box 301. If the WW is greater than zero, then the sender dequeues the packet and reduces the working window size by one (302). The reduced working window size is then compared with the value of the last window size received from the pacing response (303). If this working window size is one less than the last value of WS received from the pacing response, then the pacing bit is set to ON (304). Then, the LWR flag is checked (305). If this flag is set to ON, then the WR bit in the packet which was just dequeued is set to ON (306). As explained above, setting the LWR flag to ON indicates that no data packet has been transmitted since the last pacing response arrived at the sender. Finally, the dequeued packet (302) is transmitted to the receiver (307). Independent of the queue length or the window size, the sender may receive a PRS. Processing the PRS is shown in box 308. Resetting the NW means that the PRS has a new value for NW. It is part of the information as seen in FIG. 1. SHARED CREDIT POOL FIG. 4 shows the structure of a sender with the Shared Credit Pool (SCP). Each session maintains a send queue (404, 404', 404"), bits for indicating LWR, WW and NW (405, 405', 405"), and an IDLE bit (406, 406', 406"). Depicted in FIG. 7 are sessions 901, 902, ..., 9n. An ON IDLE bit of a session is used to indicate that the session was idle, i.e., had an empty send queue. There is one scheduler 401, which follows a certain discipline and decides the ordering of transmissions among sessions. There are two scheduling modes: exclusive and share. The scheduler also needs a register, Last-send 403, to set the scheduling modes. FIG. 5 shows the process that the sender either sends a packet for or collects pacing counts from a scheduler session. The process starts with a selected session, as in block 501. The process is conditioned on whether or not the session has an empty queue, as in block 502. If the queue is empty and the session's IDLE bit is not set (503), then the IDLE bit is set (504) and the session's pacing count in excess of W' is sent to shared credit pool (505 and 506). If the queue is not empty and the session has non-zero pacing count (507), a data packet is sent using one of the session's own pacing count (508 and 509). If the session has no private pacing count, it can use a pacing count from SCP if the scheduling is in share mode (510, 511, 512 and 513). W'is a system parameter and is recommended to have a value of W' = min { total receive buffers 2xno. of sessions } This process is repeated indefinitely on every session scheduled. FIG. 6 shows the process of changing the scheduling mode. There are two scheduling modes: share and exclusive. In exclusive mode, a session must use its own pacing count to send data packets. In share mode, sessions with IDLE = 1 can use pacing counts from the SCP to send data packets. The process starts with some initialization of Last-send (600) and a currently selected session (601), and is conditioned on the current scheduling mode (602). If the scheduling is in exclusive mode, the process is dependent on whether or not the selected session sends a data packet (603). If the session sends a data packet, the mode is not changed and Last-send is updated to record the selected session, as in 606. If the session does not send any data packet, the fact that Last-send = session (604) indicates that no session sends any data packet between two consecutive schedulings of the selected session. This is the situation where no session can use their own pacing counts to send data packets. The scheduling mode is then switched to share mode 605. The scheduling is switched from share mode to exclusive mode as soon as one session can send a data packet using its own pacing count. Hence, given the scheduling is in share mode, if the selected session has (1) non-empty send queue (607), (2) IDLE set of OFF (608), and (3) non-zero pacing counts (609), the scheduling is changed to exclusive mode (610). Sessions with IDLE = 0 use pacing counts from the SCP to send data packets in share scheduling mode until they get new windows, i.e., when they receive new PRS's. Hence, the IDLE bit is reset to 0 upon arrival of the PRS. FIG. 7 shows the process of resetting IDLE bit. The process is triggered when a session receives a PRS (701). Then, IDLE is set to OFF (702) and PC is set to the value specified in PRS (703). Pacing counts in the SCP should not get too large; otherwise, the receiver looses control of its receiving buffers. An isolated pacing message (IPM) called Return Credit (or simply RC) is devised for this procedure. The sender usually sends RC's at convenient time such as when the scheduling is in share mode. However, if the pacing count in the SCP exceeds a prespecified threshold, then the return of the pacing credits is expedited. With either way of returning pacing counts, it is desirable to maintain some amount of pacing counts in SCP. A recommended value is W max FIG. 8 shows this process, in which the convenient time is when the scheduling is in share mode. The process is conditioned on whether SCP has accumulated more pacing counts than the threshold or not (801). If yes, the return is expedited by sending RC with (SCP-W max pacing counts immediately (802) and resetting the SCP to W max (803). If the threshold is not exceeded, an RC with (SCP-W max ) pacing counts is sent only if (1) the SCP has more pacing counts than W max and (2) the time is convenient, i.e., scheduling is in share mode (805). Also, when the RC is sent under the latter two conditions, the SCP is reset to W max (see 807). This process is activated whenever pacing counts are added to to the SCP or the time is convenient such as in share scheduling mode.

Claims: A method of regulating data flow in a packet transmission network with a plurality of sessions, each session being established between a sender and a receiver exchanging windows of variable size, said method comprising: transmitting a pacing response to said sender (PRS) indicating the size of a subsequent window (WS) to be transmitted in a session between said sender and said receiver, said size of said subsequent window being a number of packets that said sender can transmit in a subsequent window, said subsequent window size (WS) being determined by decreasing a previous window size if when said window size is to be calculated, either QL ≠ 0, or QL = 0 and a pacing request was not received within a specified time interval, said window size thus being adjusted according to the following formula: WS = max (W min, CNT-QL+B) where CNT is the number of packets received by said receiver from said sender during a round trip delay which is the time needed for a first packet to be transmitted from said sender to said receiver plus the time needed for a second packet to be transmitted from said receiver to said sender after said first packet is received by said receiver, where QL is the number of packets stored in a queue of said receiver for future transmission to another node of said network, where W min is a prespecified parameter denoting a minimum window size, and where B is also a prespecified parameter, said subsequent window size (WS) being determined by increasing a previous window size if when said subsequent window size is to be calculated, QL = 0 and a pacing request was received in said specified time interval, said subsequent window size thus assuming a value between CNT and W max where W max is a prespecified parameter. A method as recited in claim 1, wherein a step of transmitting a pacing request (PRQ) to said receiver indicating a request for a window size for a subsequent window, said subsequent window size being a number of packets that said sender can transmit in said subsequent window of said session is preceding said step of transmitting, in response to said pacing request, a pacing response (PRS) to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver. A method as recited in claim 1, wherein said step of transmitting a pacing response (PRS) to said sender is executed while a first window is being transmitted, and wherein said pacing response is indicating the size of said subsequent window (WS), said subsequent window being the window transmitted in said session after the transmission of said first window in said session without any other window being transmitted in the time between the transmission of said first and said subsequent window. A method as recited in claim 1, wherein a step of transmitting, in a first window, a pacing request (PRQ) to said receiver indicating a request for a window size (WS) for a subsequent window, said window size being a number of packets that said sender can transmit in said second window of said session, is preceding said step of transmitting, in response to said pacing request, a pacing response (PRS) to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver, and wherein said step of transmitting a pacing response to said sender is executed while said first window is being transmitted, and wherein said subsequent window being the window transmitted in said session after the transmission of said first window in said session without my other window being transmitted in the time between the transmission of said first and said subsequent window. A method as recited in claim 4, wherein said pacing request is at least a bit in a packet (RQS) indicating a request for a window size (WS) for a respective window immediately following a window containing said pacing request, and wherein said pacing response is at least a bit in a packet (RSP) indicating a window size for a respective window immediately following a window containing said pacing request A method as recited in claims 4 or 5, wherein a step of transmitting an acknowledgment bit (WR) to said receiver from said sender, said acknowledgment bit being transmitted in the next packet immediately following the reception of said pacing response by said sender, said acknowledgment bit indicating the reception of said pacing response, is succeeding said step of transmitting, in response to said pacing request (PRQ), said pacing response to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver, said step of determining said subsequent window size (WS) being executed upon reception of said acknowledgment bit (WR), and said window size being included in said pacing response which is to be the next pacing response transmitted to said sender after the reception of said acknowledgment bit. An apparatus for regulating data flow in a packet transmission network with a plurality of sessions, each session being established between a sender and a receiver exchanging windows of variable size, said apparatus comprising: means for transmitting a pacing response (PRS) to said sender indicating the size of a subsequent window (WS) to be transmitted in a session between said sender and said receiver, said size of said subsequent window being a number of packets that said sender can transmit in a subsequent window; and means for determining said subsequent window size (WS) wherein said subsequent window size is determined by decreasing a previous window size if when said window size is to be calculated, either QL ≠ 0, or QL = 0 and a pacing request was not received in a specified time interval, then said subsequent window size being a size decreased from said previous window size according to the following formula: WS = Max (W min .CNT-QL+B) where CNT is the number of packets received by said receiver from said sender during a round trip delay which is the time needed for a first packet to be transmitted from said sender to said receiver plus the time needed for a second packet to be transmitted from said receiver to said sender after said first packet is received by said receiver, where QL is the number of packets stored in a queue of said receiver for future transmission to another node of said network, where W min is a prespecified parameter denoting a minimum window size, and where B is also a prespecified parameter, and wherein said subsequent window size is determined by increasing said previous window size if when said window size is to be calculated, QL = 0 and a pacing request was received in said specified time interval, said subsequent window size thus assuming a value between CNT and W max , where W max is a prespecified parameter. An apparatus as recited in claim 7, further comprising means for transmitting a pacing request (PRQ) to said receiver indicating a request for a window size (WS) for a subsequent window, said subsequent window size being a number of packets that said sender can transmit in said subsequent window of said session preceding said means for transmitting, in response to said pacing request, a pacing response (PRS) to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver. An apparatus as recited in claim 7, further comprising means for transmitting, in a first window, a pacing request (PRQ) to said receiver indicating a request for a window size (WS) for a subsequent window, said window size being a number of packets that said sender can transmit in said second window of said session, preceding said means for transmitting, in response to said pacing request, a pacing response (PRS) to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver, wherein said means for transmitting a pacing response to said sender are transmitting said pacing response to said sender while a first window is being transmitted, and wherein said subsequent window being the window transmitted in said session after the transmission of said first window in said session without any other window being transmitted in the time between the transmission of said first and said subsequent window. An apparatus as recited in claim 9, wherein said pacing request being at least a bit in a packet (RQS) indicating a request for a window size (WS) for a respective window immediately following a window containing said pacing request, and wherein said pacing response being at least a bit in a packet (RSP) indicating a window size for a respective window immediately following a window containing said pacing request. An apparatus as recited in claims 9 or 10, further comprising means for transmitting an acknowledgment bit (WR) to said receiver from said sender, said acknowledgment bit being transmitted in the next packet immediately following the reception of said pacing response (PRS) by said sender, said acknowledgment bit indicating the reception of said pacing response, succeeding said means for transmitting, in response to said pacing request (PRQ), said pacing response to said sender indicating the size of said subsequent window to be transmitted in said session between said sender and said receiver. A method of regulating data flow in a packet transmission network with a plurality of sessions, each session being established between a sender and a receiver exchanging windows of variable size, said method comprising: polling each of said sessions to determine if a send queue corresponding to said each session has packets stored therein for transmission; storing, for each of said selected sessions, at least one pacing credit in a shared credit pool (SCP) if a send queue corresponding to said each selected session has no packets stored therein for transmission when said each selected session is polled; and distributing pacing credits stored in said shared credit pool (SCP) to those of said selected sessions whose corresponding send queues have packets stored therein for transmission. A method as recited in claim 12 wherein, for each of said selected sessions, pacing credits are stored in said shared credit pool (SCP) only if the pacing count for each selected session is greater that W', a first selected value. A method as recited in claim 12 wherein, for each of said selected sessions, pacing credits stored in said shared credit pool (SCP) are distributed to said each selected session only if said each selected session has a pacing count which is less than a second selected value. A method as recited in claim 12, wherein each of said sessions may assume either of two modes, one of said modes being an exclusive scheduling mode in which pacing credits are neither distributed from nor sent to said shared credit pool (SCP), the other of said modes being a share scheduling mode in which pacing credits can be sent to or distributed from said shared credit pool (SCP), said method having at least one of said sessions in the share scheduling mode, said sessions in said share scheduling mode being said selected session. A method as recited in claim 15 wherein a first session of said sessions in said exclusive scheduling mode will change to said share scheduling mode when no one of said sessions transmits any packets during the time between two consecutive scheduling of said first session and during the time of the latter scheduling of said first session, and wherein any second session of said sessions will change from said share mode to said exclusive mode as soon as said second session can transmit a packet without receiving pacing credits distributed from the shared credit pool (SCP). An apparatus for regulating data flow in a packet transmission network with a plurality of sessions, each session being established between a sender and a receiver exchanging windows of variable size, said apparatus comprising: means for polling each of said sessions to determine if a send queue corresponding to said each session has packets stored therein for transmission; means for storing, for each of said selected sessions, at least one pacing credit in a shared credit pool (SCP) if a send queue corresponding to said each selected session has no packets stored therein for transmission when said each selected session is polled; and means for distributing pacing credits stored in said shared credit pool (SCP) to those of said selected sessions whose corresponding send queues have packets stored therein for transmission.

Inventors: BARZILAI TSIPORA PIRCHA, CHEN MON-SONG, KADABA BHARATH KUMAR, KAPLAN MARC ADAM, BARZILAI, TSIPORA PIRCHA, CHEN, MON-SONG, KADABA, BHARATH KUMAR, KAPLAN, MARC ADAM
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1991
Main classification: H04L12
IPC codes: H04L12