Achieving collision avoidance and fairness in CSMA-based wireless mesh networks