sodcalculator

10 Tech How-To

Router Basics: How It Moves Data Between Networks

Guide 10-30160 · Updated · Step by step

A router is a networking device that forwards data packets between computer networks, directing traffic based on IP addresses. When you send a request online, your router examines the destination IP, checks its routing table, and chooses the best path to send the data, often through other routers, until it reaches its target. This article explains what a router does, how it moves data, and how to choose and troubleshoot one.

What Exactly Is a Router?

A router is a physical or virtual device that connects two or more networks and manages traffic between them. It operates at Layer 3 (the network layer) of the OSI model, meaning it works with IP addresses rather than MAC addresses (which are Layer 2). The primary job of a router is to read the destination IP address in each incoming data packet, consult its routing table, and forward the packet to the next hop—either another router or the final device.

Home routers are typically a combination of three devices: a router, a switch (for wired LAN connections), and a wireless access point (for Wi‑Fi). The router part handles the WAN (wide area network) connection to your internet service provider (ISP), while the switch and access point serve your local devices. In enterprise settings, these functions are often separate, dedicated devices.

How Routers Move Data: Step by Step

When you send a request (e.g., opening a website), the data is broken into packets. Each packet contains the source and destination IP addresses. The router uses a process called packet forwarding to move it along. Here’s the typical path:

  1. Receive: The router receives a packet on one of its interfaces (e.g., the LAN port from your computer).
  2. Inspect: It reads the destination IP address in the packet header.
  3. Lookup: It searches its routing table for the best matching route to that destination. The routing table can be built statically (manually) or dynamically using protocols like OSPF or BGP.
  4. Forward: It determines the next hop (the next router or the destination device) and the outgoing interface, then sends the packet out.
  5. Repeat: Each subsequent router along the path does the same until the packet reaches the destination network.

If the destination is on the same local network, the router does not forward the packet to the WAN; it uses ARP to find the MAC address and delivers it directly via the switch.

Routing Tables and Routing Protocols

A routing table is a set of rules that tells the router where to send packets. Each entry contains a destination network (e.g., 192.168.1.0/24), a subnet mask, a gateway (next hop), and an interface. The router chooses the most specific match—the one with the longest prefix length—for each packet.

Routing tables can be filled in two ways:

  • Static routing: An administrator manually enters routes. This is simple but doesn’t adapt to network changes.
  • Dynamic routing: Protocols automatically exchange information and update the table. Common ones include RIP (for small networks), OSPF (for enterprise), and BGP (for the internet backbone).

For example, if your home router has a default route (0.0.0.0/0) pointing to your ISP’s gateway, all traffic destined outside your LAN is sent there. The ISP’s routers then use BGP to decide the best path across the internet.

NAT, DHCP, and Other Router Functions

Beyond forwarding, routers perform several essential functions that make networking work in practice:

  • Network Address Translation (NAT): Allows multiple devices on a private LAN (e.g., 192.168.1.x) to share a single public IP address. The router rewrites the source IP in outgoing packets and keeps a table to map responses back to the correct device.
  • DHCP (Dynamic Host Configuration Protocol): Automatically assigns IP addresses, subnet masks, default gateways, and DNS servers to devices on the LAN. This eliminates manual configuration.
  • Firewall: Most routers include a basic firewall that blocks unsolicited incoming traffic, protecting LAN devices from external attacks.
  • Quality of Service (QoS): Prioritizes certain types of traffic (e.g., video calls) over others (e.g., file downloads) to improve performance.

How to Choose a Router

Selecting a router depends on your internet speed, home size, number of devices, and budget. Key specifications to consider:

  • Wi‑Fi standard: Look for Wi‑Fi 6 (802.11ax) or Wi‑Fi 6E for newer devices; older standards like 802.11ac are still adequate for basic use.
  • Speed rating: Routers are labeled like AC1200 or AX3000, indicating the maximum theoretical throughput. A higher number doesn’t always mean faster real‑world performance, but it helps with many devices.
  • Number of Ethernet ports: If you have wired devices (gaming consoles, PCs), ensure you have enough Gigabit ports.
  • Range: For larger homes, consider a mesh system (multiple units) or a router with external antennas and beamforming.
  • Security: Ensure the router supports WPA3 encryption and has automatic firmware updates.

Always match the router’s WAN speed capability to your ISP plan. If you have a 1 Gbps fiber connection, a router with only 100 Mbps ports will bottleneck your speed.

Common Router Problems and Fixes

Routers are reliable but can occasionally cause issues. Here are common problems and simple troubleshooting steps:

  • Slow internet: Restart the router (power cycle). Check for bandwidth‑heavy devices, and consider changing the Wi‑Fi channel to reduce interference.
  • Wi‑Fi dead zones: Reposition the router centrally and elevated. Use a Wi‑Fi extender or mesh system if needed.
  • Intermittent disconnections: Update the firmware, check for overheating, and ensure the router isn’t overloaded with too many connections.
  • Forgot Wi‑Fi password: Reset the router to factory defaults using the reset button (hold for 10 seconds) and reconfigure it.
  • Inability to access the admin interface: Try the default IP (often 192.168.1.1 or 192.168.0.1) and check if your device is connected to the router’s LAN.

If a factory reset doesn’t solve the problem, the router may be failing and might need replacement.

Router vs. Modem vs. Switch

These terms are often confused, but they serve different roles:

  • Modem: Converts the signal from your ISP (cable, fiber, DSL) into digital data that your network can use. It connects to the WAN port of your router.
  • Router: Connects multiple networks (your LAN to the internet) and routes traffic between them.
  • Switch: Connects multiple devices within the same network (LAN) and forwards data between them using MAC addresses.

In many homes, the modem and router are combined into one device (a gateway) provided by the ISP. If you have a separate modem and router, they are connected via an Ethernet cable.

Frequently Asked Questions

What is the difference between a router and a modem?

A modem connects your home to your ISP’s network and translates the signal (e.g., cable or fiber) into digital data. A router takes that internet connection and distributes it to multiple devices, creating a local network. Many ISPs provide a combined modem‑router unit, but they are separate functions.

Do I need a router if I only have one computer?

If you have a single device and your ISP provides a modem with a direct Ethernet connection, you technically don’t need a router. However, a router adds a firewall and allows you to connect more devices later. Most modems from ISPs include a basic router anyway.

How do I find my router’s IP address?

On Windows, open Command Prompt and type ipconfig; look for “Default Gateway.” On macOS, go to System Settings > Network > your connection > Details, and the router’s IP is listed as “Router.” It’s often 192.168.1.1 or 192.168.0.1.

What does “router not working” mean?

It usually means the router is not forwarding traffic correctly—either the internet connection is down, the router is misconfigured, or the hardware has failed. Restarting the router often fixes temporary glitches. If not, check cables, ISP status, and the router’s admin page for error messages.

Can I use a router without an internet connection?

Yes. A router can create a local network (LAN) even without internet. You can share files, print, and play LAN games. However, you cannot access external sites or services that require internet.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →