Achieving Optimal Performance by Using the IEEE 802.11 MAC Protocol With Service Differentiation Enhancements