Protocol design and optimization for QoS provisioning in wireless mesh networks