Router
A router is a networking device that connects multiple computer networks and forwards data packets between them. It acts as a gateway, directing internet traffic to the correct devices on a local network by using a routing table to find the most efficient path for each packet. In a home or office, a modem brings the internet into the building, and the router distributes that connection to all the devices, either wirelessly (via Wi-Fi) or through Ethernet cables.
Key functions:
Data forwarding: A router reads the destination address on a data packet and consults its internal routing table to determine the best next "hop" to send it on its way to the final destination.
Network creation: It connects different networks, such as a home local area network (LAN) to the internet.
IP address management: Routers assign local IP addresses to devices on the network, allowing them to communicate with each other and with the internet.
Wireless access: Many modern routers are wireless, creating a Wi-Fi network that allows devices to connect without a physical cable.