Architecture Design And Performance Optimization Of Wireless Mesh Networks