Threshold Design for Dynamic Routing