Optimal Routing in a Packet