What a Router Actually Does
Every device on your home network — laptop, phone, smart TV, game console — needs two things to communicate: a way to identify itself on the local network, and a way to reach the internet. A router provides both. It operates at Layer 3 of the networking model, meaning it works with IP addresses rather than just raw ethernet frames.
At its core, a router's job is to move packets between networks. In a home context that means two networks: your local area network (LAN) — all the devices in your house — and the wide area network (WAN), which is the internet connection coming in from your ISP via the modem. Every packet that leaves one of your devices and heads for the internet passes through the router's decision-making process, and every reply that arrives from the internet is routed back to the correct device.
WAN Port vs LAN Ports
A home router has two distinct sets of ports. The WAN port — sometimes labeled "Internet" — is a single ethernet port that connects to your modem. This port receives a single IP address from your ISP. The LAN ports — typically four on a home router — connect to wired devices inside your home. The router acts as a bridge between these two sides, translating between the ISP-assigned IP address on the WAN and the private addresses it assigns to each device on the LAN.
Most modern routers also include one or more integrated Wi-Fi radios, effectively adding a wireless LAN interface alongside the physical ports. Wireless clients connect to the same LAN segment as wired devices and receive IP addresses from the same DHCP pool.
How a Router Assigns IP Addresses — DHCP
The router runs a service called DHCP (Dynamic Host Configuration Protocol) that automatically hands out IP addresses to devices on the LAN. When a new device connects, it broadcasts a discovery message. The router's DHCP server responds with an available private IP address — typically in the 192.168.x.x or 10.x.x.x range — along with the subnet mask, the router's own address as the default gateway, and the DNS server address. The device stores these values for the duration of its lease, usually 24 hours, after which it may renew or receive a new address.
Network Address Translation (NAT)
Your ISP provides a single public IP address to your household. NAT is the mechanism that lets all your devices share that one address. When your laptop sends a request to a web server, the router replaces the laptop's private source IP with its own public IP, notes the original private IP and port in a translation table, and forwards the packet. When the reply arrives, the router consults its table and delivers the response to the correct device. Without NAT, each device would need its own public IP address — far more than the available supply would support for home use.
Routing Table and Default Gateway
A router maintains a routing table — a list of rules that map destination IP ranges to specific outbound interfaces. In a home router this table is simple: traffic destined for the local subnet stays on the LAN, and everything else is sent out the WAN port to the ISP's gateway. This catch-all rule is called the default route. Enterprise routers have far more complex tables, but the principle is the same — the routing table determines the path each packet takes.
DNS Forwarding
Most home routers also act as a DNS forwarder. When your devices need to resolve a domain name — converting example.com to an IP address — they send the query to the router. The router forwards the query to an upstream DNS server (typically provided by the ISP or configured manually to use a public resolver like 1.1.1.1 or 8.8.8.8), receives the answer, and returns it to the requesting device. This allows the router to cache frequently requested results, slightly speeding up repeat lookups.
Router vs Switch vs Modem
| Feature | Router | Switch | Modem |
|---|---|---|---|
| OSI layer | Layer 3 (IP) | Layer 2 (MAC) | Layer 1/2 (physical) |
| Connects | LAN to WAN | Devices within a LAN | Home to ISP |
| Assigns IP addresses | Yes (DHCP) | No | No |
| Runs NAT | Yes | No | No |
| Wi-Fi (typically) | Yes (in home routers) | No | No |
| Internet access | Required on LAN side | Not involved | Required on WAN side |
Router Specs That Actually Matter
When evaluating a router, the most meaningful specifications are the processor speed and RAM (which determine how many simultaneous connections can be handled without slowdown), the Wi-Fi standard (Wi-Fi 5, Wi-Fi 6, Wi-Fi 6E, or Wi-Fi 7, each offering higher throughput and better performance in dense environments), and the number of spatial streams and MU-MIMO support (which governs how many devices can transmit simultaneously rather than taking turns). The number and speed of LAN ports matters if you have wired devices — a router with only 100 Mbps LAN ports will bottleneck wired connections regardless of your internet plan speed.
Signs It Is Time to Replace Your Router
The clearest signal is that the manufacturer has stopped issuing firmware updates, which means security vulnerabilities will go unpatched. Other signals include consistent inability to maintain stable connections at the speeds your plan provides, Wi-Fi dead zones in areas that were previously covered, and a maximum Wi-Fi standard that is two or more generations behind current devices. Rebooting the router frequently just to restore normal operation is also a reliable indicator that the hardware is past its useful life.
Frequently Asked Questions
What is the difference between a router and a modem?
A modem connects your home to your ISP's network and handles the physical signal conversion. A router connects your devices to each other and to the modem, assigning private IP addresses and managing local traffic. The modem handles the WAN side; the router handles the LAN side.
Does a router need to be plugged into the modem?
Yes. The router's WAN port connects to the modem via an ethernet cable. The modem provides the router with a single public (or ISP-assigned) IP address, and the router then shares that connection among all your devices using NAT and DHCP.
What is NAT on a router?
NAT (Network Address Translation) is the process by which a router maps multiple private IP addresses on your LAN to the single public IP address provided by your ISP. When a device on your network makes a request, the router substitutes its own public IP in the outgoing packet and keeps a table to route the reply back to the correct device.
How does a router assign IP addresses?
A router runs a DHCP server that automatically assigns a private IP address to each device that connects. When a device joins the network it sends a DHCP Discover broadcast; the router replies with an IP address, subnet mask, gateway address, and DNS server information, all of which the device uses for the duration of its lease.
What is the WAN port on a router?
The WAN (Wide Area Network) port is the single ethernet port that connects the router to the modem or ISP-provided equipment. Traffic from your devices exits through the WAN port to reach the internet, and incoming internet traffic arrives on the WAN port before the router forwards it to the correct device on the LAN.
How long should a router last?
A well-built router typically operates reliably for five to seven years. Replacement is usually driven by Wi-Fi standard obsolescence, insufficient RAM or processor speed for modern traffic loads, or the end of the manufacturer's security update cycle — not hardware failure. If your router no longer receives firmware updates, it is worth replacing regardless of age.