In a communications network, or multiple interconnected networks, a device or software which determines where packets, messages, or other signals travel to next A gateway, using resources such as header information, algorithms, and router tables, establishes the best availablepath from source to destination. Within the OSI Reference Model, a gateway operates at the network layer. Also called router, or network router.