Achieving maximum throughput and service differentiation by enhancing the IEEE 802.11 MAC protocol