A wireless mesh network is a multi-hop wireless network consisting of a large number of wireless nodes, some of which are called gateway nodes and connected with a wired network. Using multiple channels instead of a single channel in multi hop wireless networks has been shown to be able to improve the network throughput dramatically. The throughput of a wireless mesh network can be dramatically increased by utilizing multiple channels instead of a single channel. However, there exists a tradeoff between throughput and delay, especially when dynamic channel allocation strategies are used. In this paper, the authors propose a dynamic channel allocation protocol, which tries to optimize for both network throughput and packet delay, while adapting to changing traffic.