A method provides differentiated quality of service (QoS) by providing adaptive
updates to media access control (MAC) layer parameters on a distributed basis.
The method includes calculating a failure probability for a transmission over the
network, determining a target value for determining a contention window according
to a mapped function of the failure probability, and altering the contention window
according to a scaling function of the target value. The mapped function and the
scaling can provide QoS differentiation. A wireless device ensures fairness in
a wireless time slotted network and includes a network interface card (NIC), a
network driver interface, a network monitor, a statistics engine, and an adaptive
parameter engine for determining a target value for determining a contention window
according to a mapped function of the one or more probabilities to enable an alteration
of the contention window and provide new parameters for the MAC layer.