When data is transferred over a network, a process called routing determines the path each data packet takes as efficiently as possible. Routes are determined using a routing table.
Routing tables are constructed in memory of routers, switches, bridges, firewalls and gateways.