Hardware associative array
en.wikipedia.org
en.wikipedia.org
Apparently routers have a special memory called tcam, which is a hardware implementation of an associative array. Routing table entries can be looked up in a single operation, unlike traditional RAM.