What Is a Router?
A router is a networking device that forwards data packets between two or more computer networks. A router reads the destination IP address inside each packet and selects the path that moves the packet toward that address. A router operates at Layer 3, the network layer, of the OSI model defined by the ISO/IEC 7498-1 standard.
The most common router in a residence connects a private home network to the public internet through an internet service provider. This article defines what a router is, explains how routing works through routing tables and IP addresses, and describes the combined functions inside a home router.
The article also separates wired routers from wireless routers and compares home routers with enterprise routers. Each section answers one question about router operation, router hardware, and router placement inside a network.
What Is a Router?
A router is a device that forwards data packets between separate networks by reading destination IP addresses. A router connects networks that use different address ranges, such as a home LAN at 192.168.1.0/24 and the wider internet. The Internet Engineering Task Force defines packet forwarding behavior in RFC 1812, “Requirements for IP Version 4 Routers.”
A router differs from a switch because a switch forwards frames inside one network by MAC address, while a router moves packets between networks by IP address. A router maintains a routing table that lists known networks and the next device toward each one.
A router has at least two network interfaces. One interface faces the wide area network, and a second interface faces the local area network. Cisco documentation describes this two-side structure as the WAN port and the LAN ports on a home router.
How Does a Router Work?
A router works by examining the destination IP address in each incoming packet and matching that address against entries in a routing table. The routing table stores destination networks, subnet masks, and the next-hop address for each route. A router selects the most specific matching route, a process called longest prefix match defined in RFC 1812.
What Is a Routing Table?
A routing table is a data structure that maps destination networks to outgoing interfaces and next-hop addresses. A home router holds a small routing table with a default route that sends all unknown traffic to the internet service provider gateway. An enterprise router holds thousands of routes learned through routing protocols such as OSPF and BGP, which are standardized by the IETF.
How Does Packet Forwarding Happen?
Packet forwarding happens when a router receives a packet, decrements the Time To Live field, recalculates the header checksum, and transmits the packet through the chosen interface. The Time To Live field, defined in RFC 791, prevents packets from circulating endlessly. A router drops any packet whose Time To Live reaches zero and may return an ICMP Time Exceeded message.
A router uses IP addresses for forwarding decisions. The Internet Protocol address identifies both the source network and the destination network. A 32-bit address format defines IPv4, and a 128-bit format defines IPv6, both maintained by the IETF.
What Functions Does a Home Router Combine?
A home router combines four devices into one unit: a router, a network switch, a wireless access point, and a set of gateway services. The single chassis reduces cabling and configuration for a residential network. The combined functions are listed below.
- Routing forwards packets between the home network and the internet service provider, the core function that names the device.
- Switching connects the built-in LAN ports so wired devices exchange frames inside the home network. A separate network switch hardware expands these ports when more wired connections are required.
- Wireless access provides Wi-Fi by integrating an access point, which connects laptops and phones over IEEE 802.11 radio standards.
- Gateway services run NAT, DHCP, and a firewall so many devices share one public address and receive automatic local addresses.
What Is NAT in a Home Router?
NAT, Network Address Translation, is a function that maps many private IP addresses to one public IP address. NAT is defined in RFC 3022 by the IETF. A home router applies NAT so every device behind the router shares the single public address assigned by the internet service provider.
What Is DHCP in a Home Router?
DHCP, Dynamic Host Configuration Protocol, is a service that assigns IP addresses to devices automatically. DHCP is defined in RFC 2131. A home router runs a DHCP server that hands a private address, subnet mask, gateway, and DNS server to each connecting device.
What Is the Difference Between Wired and Wireless Routers?
A wired router forwards packets only through physical Ethernet ports, while a wireless router adds an integrated radio access point for Wi-Fi clients. A wired router suits installations where every device connects by cable, such as small server rooms. A wireless router suits residences and offices where phones, tablets, and laptops connect without cables.
The radio function follows IEEE 802.11 standards, and the wired ports follow the IEEE 802.3 Ethernet standard. A wireless router still includes physical ports, so a wireless router supports both connection types at once.
What Is the Difference Between Home and Enterprise Routers?
A home router serves a single network of fewer than 254 typical devices, while an enterprise router serves many networks and supports dynamic routing protocols. An enterprise router from vendors such as Cisco or Juniper processes routes through OSPF, BGP, and IS-IS, and forwards traffic at rates measured in gigabits to terabits per second.

A home router relies on a single static default route and integrates Wi-Fi, switching, and gateway services in one box. The table below separates the two categories.
| Attribute | Home Router | Enterprise Router |
|---|---|---|
| Networks served | One LAN plus one WAN link | Many VLANs and WAN links |
| Routing method | Static default route | OSPF, BGP, IS-IS dynamic routing |
| Throughput | Hundreds of Mbps to a few Gbps | Multiple Gbps to Tbps |
| Integrated Wi-Fi | Usually included | Rarely included |
| Integrated switch | Built-in LAN ports | External switches used |
Where Does a Router Sit in a Home Network?
A router sits between the modem and every internal device in a home network. The modem connects to the internet service provider, the router connects to the modem through its WAN port, and devices connect to the router through LAN ports or Wi-Fi.
A device that translates the carrier signal, the modem that reaches the ISP, must sit ahead of the router. The full split of duties appears in the comparison of how a modem and a router divide the work.
What Routing Protocols Do Routers Use?
A router uses routing protocols to learn paths to networks it does not directly connect. A static route is configured by hand and never changes on its own.
A dynamic routing protocol exchanges route information with other routers and updates the routing table automatically. The main protocols are listed below.
- RIP, Routing Information Protocol, advertises routes by hop count and is defined in RFC 2453, with a 15-hop maximum that limits its scope to small networks.
- OSPF, Open Shortest Path First, is a link-state protocol defined in RFC 2328 that computes the shortest path using Dijkstra’s algorithm across an autonomous system.
- IS-IS, Intermediate System to Intermediate System, is a link-state protocol from ISO/IEC 10589 used in large service-provider networks.
- BGP, Border Gateway Protocol, is the path-vector protocol defined in RFC 4271 that exchanges routes between autonomous systems and forms the routing backbone of the internet.
A home router runs none of these protocols in most cases, because a single static default route sends all external traffic to the internet service provider gateway.
What Is the Difference Between a Router and a Default Gateway?
A default gateway is the IP address of the router interface that a device uses to reach any network outside its own subnet. A router is the physical device, while the default gateway is the address that device presents to local clients. A host with IP 192.168.1.50 and gateway 192.168.1.1 sends every off-subnet packet to 192.168.1.1, the router LAN interface.
The DHCP service on a router supplies the default gateway address to each client, alongside an IP address and DNS server, under RFC 2131. A device with no default gateway reaches only hosts inside its own subnet.
What Security Functions Does a Router Provide?
A router provides several security functions that protect the devices behind it from the public internet. The main functions are listed below.

- Stateful packet inspection tracks active connections and blocks inbound packets that do not match an existing session, which the firewall in a home router enforces by default.
- NAT masking hides internal private addresses behind one public address, so external hosts cannot address internal devices directly.
- Port forwarding maps a chosen external port to an internal device, which exposes a single service while keeping other devices shielded.
- Access control lists permit or deny traffic by source address, destination address, or port, a feature standard on enterprise routers and present on many home routers.
A router applies these functions at the network boundary, so traffic from the internet passes the firewall before reaching any internal device. A connected home network built behind a router inherits this protection from the single boundary device.
Key Takeaways
- A router forwards packets between networks by reading destination IP addresses at Layer 3.
- Routing tables and longest prefix match, defined in RFC 1812, determine the path of each packet.
- A home router combines routing, switching, a wireless access point, NAT, DHCP, and a firewall.
- A wired router uses only Ethernet ports, while a wireless router adds IEEE 802.11 radio access.
- An enterprise router runs dynamic protocols such as OSPF and BGP at far higher throughput than a home router.
What does a router do?
A router forwards data packets between separate networks by reading the destination IP address in each packet and selecting the next hop from its routing table.
Is a router the same as a modem?
No. A modem connects a home to the internet service provider, while a router forwards packets between the home network and the internet and shares the connection.
Does a router create Wi-Fi?
A wireless router creates Wi-Fi because it integrates an IEEE 802.11 access point. A wired-only router has no radio and provides Ethernet ports instead.
What layer does a router operate on?
A router operates at Layer 3, the network layer of the OSI model, where forwarding decisions use IP addresses rather than MAC addresses.
What is NAT on a router?
NAT, Network Address Translation defined in RFC 3022, maps many private device addresses to one public IP address so devices share a single internet connection.
How many devices can a home router handle?
A home router on a 192.168.1.0/24 subnet addresses up to 254 hosts, though practical Wi-Fi performance limits active devices well below that count.
Last Thoughts on Routers
A router defines the boundary between a local network and every other network, including the internet. Routing tables, IP addressing, and packet forwarding give a router the ability to move data toward the correct destination across many hops. A home router folds routing, switching, wireless access, and gateway services into one device, while an enterprise router separates these roles and runs dynamic routing protocols.
Correct router placement after the modem and ahead of internal devices keeps a network reachable. Readers configuring a new connection can follow the steps to configure a wireless router for the first time, and readers extending coverage can review how Wi-Fi radio links carry data alongside router setup.


