That every node should have the same value of contention window(CW) was first vertisified in a WLAN by formulating resource allocation as a utility maximization optimal problem,then the relation between the optimal value of CWand the number of nodes was obtained by maximizing the total network utility with constrains of minimizing collision probability.A new retransmission algorithm was proposed which uses an optimal shared CW.Due to the same CW,the proposed algorithm can effectively overcome the unfairness of BEB algorithm an...