An embodiment of the present invention is a technique to adaptively generate a
parameter value for data transmission. Queue entries in a queue are updated. The
queue is indexed by a parameter according to a transmission status of a current
packet in a data stream. The current packet is transmitted using a current value
of the parameter. A plurality of performance scores are calculated based on the
queue entries. A best value of the parameter that corresponds to a best score in
the plurality of performance scores is selected.