Automated switching wouldn't even be needed, router could have been a job title.
Plus, it would be pretty simple to adapt internet routing architecture to the tube sorting machines. As long as you can embed a destination (node and endpoint) address in a barcode or NFC tag on tube ingress to act as your "packet header" you can leave the routing decisions to the tube sorting machines much like existing interior gateway protocols.