Router
What Is a Router?
A router is a networking device that forwards packets between distinct network segments, choosing an outgoing interface for each packet based on its destination address and a table of known routes. Routers operate at the network layer of the OSI model and are the core building block of the internet, joining local networks into the global reachable space that carries nearly all modern data traffic. A router is distinct from a switch or bridge, which forward frames within a single broadcast domain, because it terminates network-layer adjacencies and decrements a hop count on every packet it relays.
The behavior of an IPv4 router is defined by IETF RFC 1812, Requirements for IP Version 4 Routers, and its IPv6 counterpart is defined across RFC 8200 and related documents. These standards cover the forwarding algorithm, handling of IP options and fragmentation, management of time-to-live fields, and the generation of error messages through the Internet Control Message Protocol. Modern routers implement the forwarding path in specialized hardware while running control-plane protocols on a general-purpose processor.
Forwarding and the Routing Table
Packet forwarding is the fast-path operation a router performs millions of times per second. The destination address of an incoming packet is looked up in a forwarding information base using longest prefix match, which finds the most specific route that covers the address. The router rewrites the layer-2 header for the chosen next hop, decrements the TTL or hop limit, recomputes any required checksum, and transmits the packet on the outgoing interface. High-end platforms implement this pipeline in merchant silicon or custom ASICs capable of processing tens of terabits per second.
Control-Plane Protocols
The routing table used by the forwarding plane is built by control-plane protocols that exchange reachability information with neighboring routers. Interior gateway protocols such as OSPF as specified in RFC 2328 and IS-IS flood link-state information within an autonomous system, while the Border Gateway Protocol carries routes between autonomous systems and anchors the global internet. Routers also run protocols for neighbor discovery, bidirectional forwarding detection, and multicast distribution, and they integrate with management planes based on SNMP, NETCONF, and streaming telemetry.
Architectures and Deployment Scales
Routers range from small residential gateways that combine NAT, DHCP, and wireless access to service-provider core systems with hundreds of 400 gigabit ports. Enterprise edge routers add firewalling, IPsec tunneling, and quality-of-service scheduling, while data-center routers emphasize leaf-and-spine fabrics, equal-cost multipath load balancing, and EVPN-VXLAN overlays. Software routers built on Linux or on frameworks such as the DPDK data plane development kit now rival purpose-built hardware at moderate speeds and make routing a portable software function, feeding trends such as network functions virtualization and segment routing over IPv6.
Applications
Routers have applications in a wide range of networks and industries, including:
- Internet service provider backbones and peering exchanges
- Enterprise and campus networks connecting branch sites to data centers
- Home and small office gateways providing broadband access and Wi-Fi
- Cloud data-center fabrics using spine-and-leaf topologies for east-west traffic
- Mobile operator transport networks carrying LTE and 5G backhaul
- Industrial and utility networks using ruggedized routers for SCADA and substation automation
- Satellite and maritime networks using routers adapted for intermittent high-latency links