A terminal adapter for guaranteeing the quality of service of both voice
and data packets is disclosed. When a data packet is received in a first
data input queue of a terminal adapter, a determination is made whether a
voice packet is present in a voice input queue. Another determination is
made as to whether the sum of the size of the data packet and the size of
all packets in a terminal adapter output queue would exceed a first size
threshold established for the output queue. If voice packets are present
in the voice input queue, or if the aforementioned sum exceeds the size
threshold, the data packet is not forwarded to the output queue. If no
voice packets are present in the voice input queue and if the
aforementioned sum is below the first size threshold, then the data
packet is forwarded to the output queue.