A method and system for managing the transfer of message packets between
first and second nodes in a message queuing system utilizes a session
acknowledgment protocol to coordinate the two-way flow of packet
transmission. In a session initiation phase, each node specifies a session
acknowledgment timeout period and a transmission window size for
transmission of message packets thereto. During the session, the first
node transmits multiple message packets up to the window size set by the
second node and stops to wait for a session acknowledgment from the second
computer. The session acknowledgment may piggyback on a message packet
sent to the first node. A window-size field in the session acknowledgment
allows the receiving node to dynamically adjust the incoming data flow.