Routing with hash-based routing