Comparison of routing metrics for wireless mesh networks