Optimal Decentralized Routing for a class of queueing networks