Patent ID: 7548547

Claim:
At a computer system, a method for determining how to allocate bandwidth for transferring terminal server data, the method comprising: receiving a first request to transfer terminal server data for a first application layer module, the first application layer module associated with a first priority; determining that current bandwidth pressure has caused any buffers configured for transferring terminal server data to be in use; receiving a second request to transfer terminal server data for a second application layer module, the second application layer module associated with a second priority; determining that the first request and the second request are in contention for the next buffer that is freed up; a processor calculating the number of bytes charged for application layer modules having the first priority during at least the current bandwidth pressure; the processor calculating the number of bytes charged for application layer modules having the second priority during at least the current bandwidth pressure; detecting that a buffer has been freed up; the processor comparing the number of bytes charged for application layer modules having the first priority to the number of bytes charged for application layer modules having the second priority; and appropriately allocating the buffer to transfer terminal server data based on the results of the comparison.