Answer: A router
The purpose of a router is to forward data packets between networks. Typically, data packets are forwarded from one router to another router until the packet reaches its final destination.
Each data packet contains network address information that reveals the destination of the packet. The router uses information from its routing table (like a lookup table) to determine where to forward the data packet.