Router
Networking device that forwards data packets between computer networks, choosing paths based on destination addresses and routing tables.
A router connects separate networks and forwards data between them. When a packet arrives, the router examines its destination IP address, consults a routing table and sends the packet toward the next hop on the best available path. Routers operate at the network layer of the internet protocol suite, unlike switches, which move traffic within a single local network. The internet is a mesh of networks joined by routers, from small boxes in homes to large carrier-grade systems that handle enormous volumes of traffic in internet exchanges and provider backbones.
The Interface Message Processors that linked the first ARPANET sites in 1969 were early packet routers. Routers learn paths through routing protocols: within an organization, protocols such as OSPF share information about local links, while the Border Gateway Protocol (BGP) exchanges reachability information between the independent networks that make up the internet. A typical home router is really several devices in one: a router, a network address translation (NAT) gateway that lets many devices share one public IPv4 address, a firewall, an Ethernet switch, a Wi-Fi access point and services that assign addresses and forward DNS queries.
Because every connection passes through it, the router is a critical point for security and privacy. Consumer routers have often shipped with weak default credentials and rarely updated firmware, and attackers have built large botnets from compromised routers. Good practice includes changing default passwords, applying updates and disabling remote administration when it is not needed. Open-source firmware such as OpenWrt and firewall distributions such as OPNsense let users run more transparent, configurable routing software. Errors in BGP configuration have occasionally caused large internet outages by misdirecting traffic.
Key points
- Routers forward packets between networks based on destination IP addresses.
- BGP connects the independent networks of the internet, while protocols such as OSPF work within them.
- Home routers combine routing, NAT, firewall, switching and Wi-Fi in one device.
- Outdated firmware and default passwords make routers frequent targets for attackers.
Related entries
TCP/IP
Suite of communication protocols, centered on the Transmission Control Protocol and Internet Protocol, that defines how data moves across the internet.
Firewall
Security control that monitors network traffic and allows or blocks connections according to a set of rules, separating trusted and untrusted networks.
Wi-Fi
Family of wireless networking technologies based on the IEEE 802.11 standards, used to connect devices to local networks and the internet by radio.
OPNsense
Open-source firewall and routing platform based on FreeBSD, forked from pfSense in 2015 and managed through a web interface.
Firmware
Software stored in a hardware device's non-volatile memory that provides low-level control of the device and often starts it up.
ARPANET
Pioneering packet-switched computer network funded by the US Department of Defense, first connected in 1969 and a direct forerunner of the internet.
Network Segmentation
Practice of dividing a computer network into smaller isolated zones with controlled connections, limiting how far an attacker or fault can spread.
Botnet
Network of internet-connected devices infected with malware and controlled remotely by an attacker, often used for spam, fraud and denial-of-service attacks.
Referenced by
Other entries that discuss or point to Router.