Routelearn.net
Course menu

Unit 2: Network DevicesLesson 2.5 (5 of 8 in this unit)9 of 84 in the Network Fundamentals course

Modems

A modem connects your home or office to your internet provider's network. It turns data into the kind of signal your provider's line can carry, and back again. This lesson explains modulation, the different kinds of modem, and how a modem differs from a router.

Beginner · 12 min read · Before this: Network interface cards (NICs), Types of networks

A modem (modulator-demodulator) is a device that converts digital data into signals suited to a provider’s access line, such as a telephone pair, coaxial cable, optical fibre or cellular radio link, and converts the signals it receives back into data.

In simple terms: A modem translates between your network and your internet provider’s line. It turns data into a signal the line can carry, and turns incoming signals back into data.

Modem is short for modulator / demodulator. A modem sits where your provider's line enters the building. On one side is the provider's cable, phone line, fibre or mobile network. On the other side is a normal Ethernet port that your router (or computer) plugs into.

💡 In simple terms: a modem is a translator at the border. Inside your home everyone speaks Ethernet. Out on the provider's line they speak a different language (DSL, cable, light, radio). The modem translates in both directions.

What modulation means

A telephone wire or TV cable was designed to carry a carrier wave: a steady, smooth signal at a set frequency. To send data, the modem changes (modulates) that wave in tiny ways that stand for 1s and 0s. It can change:

  • its strength (amplitude),
  • its frequency (how fast it wiggles), or
  • its phase (where in the wiggle it is).

Modern modems change several of these at once, so each tiny change carries many bits. The modem at the other end watches the wave and turns the changes back into bits: that is demodulation.

Bits from router
Ethernet frame
Modulate
change the carrier wave
Provider line
phone, coax, radio
Demodulate
at the provider's end
Provider network
on to the internet
Upload direction. Downloads go the same way in reverse: the modem demodulates the provider's signal back into Ethernet.

Why not just use Ethernet all the way? Ethernet over copper only reaches 100 metres. Provider lines run for kilometres over cables that were built for phones or TV. Modulation is how those existing cables were reused for data.

Where the modem sits

The modem is the last device that belongs to the provider's world and the first device in yours. In order, from the internet inwards:

coax / phone lineEthernetProvider network→ internetModemcable / DSLRouterWAN 203.0.113.45Laptop192.168.1.20PC192.168.1.21
  1. 1. The laptop sends a request. It goes to the router, its default gateway, with a private source IP address.
  2. 2. The router translates and forwards. NAT swaps the private address for the router's public WAN address. The packet leaves in an Ethernet frame.
  3. 3. The modem converts the signal. It turns the frame into the provider's line signal. It doesn't change the IP addresses.
  4. 4. The reply comes back. The modem demodulates it into Ethernet, the router translates the address back and delivers it to the laptop.
Modem (provider side) → router (your side) → your devices. Here the modem is drawn as a box; on the right is the router that shares the connection.

Notice the split of work. The modem only deals with the line. The router deals with IP addresses: it is the default gateway for your devices and does NAT between your private and public addresses.

Types of modem

Which modem you have depends on which kind of line reaches your building.

DSL modem

Telephone line (copper pair)

Sends data on high frequencies above the voice band, so the phone line can carry data and calls together. VDSL is the faster modern version.

Typical speed: Tens of Mb/s, falling with distance from the exchange

Cable modem

TV coaxial cable

Uses spare TV channels for data, following a standard called DOCSIS. Neighbours share the cable back to the provider.

Typical speed: Hundreds of Mb/s to over 1 Gb/s download

Fibre ONT

Optical fibre

An optical network terminal turns light pulses into Ethernet. Strictly it isn't a modem, but it plays exactly the same role.

Typical speed: Hundreds of Mb/s to several Gb/s, often the same both ways

Cellular modem

Radio to a 4G/5G mast

A SIM-card device (or your phone as a hotspot) talks to the mobile network by radio.

Typical speed: Varies a lot with signal and how busy the mast is

Satellite modem

Radio to a satellite dish

Used where there are no cables. Low-orbit satellite services have much lower delay than older systems.

Typical speed: Tens to hundreds of Mb/s

The very first home modems were dial-up modems. They made an ordinary phone call to the provider and turned data into sounds (the famous screeching noise). They topped out at 56 kb/s, thousands of times slower than today's connections.

For fibre, the box on the wall is an ONT (optical network terminal). Light carries the data, so there is no carrier wave to modulate in the old sense, but the job is the same: convert the provider's line into Ethernet. You can read about fibre in Fibre-optic cabling.

Important parts

PartWhat it does
Line portWhere the provider's line plugs in: a phone socket (RJ11), coax screw connector, fibre connector, or a SIM slot
Modulation chipTurns bits into line signals and back
Ethernet portConnects to your router, or to one computer
Status lightsPower, line sync (DSL) or downstream/upstream lock (cable), online
Provider settingsThe provider identifies or configures your modem remotely so it is allowed onto their network

How a modem gets you online, step by step

  1. Power on and sync. The modem talks to the provider's equipment on the line and agrees on frequencies and speed. On DSL this is called sync; the DSL light goes solid when it works.
  2. Get permission. The provider checks the modem is allowed. Cable providers recognise the modem; DSL and some fibre services ask the router to log in with a username and password (called PPPoE).
  3. The router gets a public address. Your router, behind the modem, asks the provider for an IP address, usually with DHCP. In this example it gets 203.0.113.45.
  4. Traffic flows. From now on the modem just converts frames into line signals and back, in both directions, all the time.

What the modem does to your packets

Very little. A pure modem does not route, does not do NAT and does not read IP addresses. It moves frames between your Ethernet and the provider's line, wrapping them in whatever the line needs. The IP packet that leaves your router comes out at the provider's end unchanged.

Point on the pathSource IPDestination IP
Laptop → router192.168.1.20198.51.100.10 (a web server)
Router → modem203.0.113.45 (after NAT)198.51.100.10
Modem → provider203.0.113.45 (unchanged)198.51.100.10 (unchanged)
OSI layerModemsignals + line framingRouterIP addresses
L7 Application––
L6 Presentation––
L5 Session––
L4 Transport––
L3 Network–✓
L2 Data Link✓✓
L1 Physical✓✓
A modem works at Layers 1 and 2: it converts signals and carries frames. The router above it works at Layer 3.

Modem vs. router

These two are mixed up all the time, partly because one box often does both. They are different jobs:

ModemRouter
Main jobConnects to the provider's lineConnects networks and chooses paths for packets
FacesThe providerBoth: the provider side (WAN) and your network (LAN)
Works withSignals and frames (Layers 1–2)IP addresses (Layer 3)
Gives your devices addressesNoYes, usually with DHCP
NAT and firewallNoYes, on home routers
Devices it servesOne (the router or a single PC)Many

The ISP box that does everything

Most providers send one box, often called a gateway or hub (not to be confused with an Ethernet hub). Inside one case it contains:

ModemRouterSwitch (LAN ports)Wi-Fi access pointDHCP serverNATFirewall
ProviderModemRouter + Wi-FiLaptopProviderISP all-in-one boxmodem + router + Wi-FiLaptop
  1. 1. Separate devices. Top: a stand-alone modem, then your own router with Wi-Fi.
  2. 2. One combined box. Bottom: the provider's box does the modem, router and Wi-Fi jobs inside one case.

Separate boxes in an office

Offices usually keep the jobs in separate boxes. The provider's modem or fibre ONT hands a plain Ethernet link to the business's own firewall (which also routes and does NAT). Some offices add a second line from a different provider, often a 4G/5G modem, as a backup.

fibreradioWAN 1WAN 2Provider AfibreProvider B5GFibre ONT5G modembackupFirewall / routerNATSwitchStaff PCs192.168.10.0/24
  1. 1. Normal day: traffic uses the fibre. The ONT converts Ethernet into light on the fibre. The firewall does the routing and NAT.
  2. 2. The fibre is cut: the 5G modem takes over. The firewall notices WAN 1 is down and sends traffic out through the cellular modem instead.
Each modem only handles its own line; the firewall/router chooses which line to use.

If you add your own router behind an all-in-one box, put the ISP box into bridge mode (or "modem mode") so it stops routing. Otherwise you get double NAT: two routers each translating addresses, which can break online gaming, video calls and remote access.

A real-world example: a new broadband line

Priya moves into a flat with a cable TV socket. Her provider sends a cable modem. She screws the coax into the modem and plugs her own Wi-Fi router into the modem's Ethernet port. The modem's downstream and upstream lights blink, then go solid: it has locked onto the provider's channels. The "online" light comes on when the provider accepts it. Her router then receives the public address 203.0.113.45 by DHCP and starts handing out 192.168.1.x addresses to her phone and laptop.

When the modem fails

SymptomLikely causeWhat to do
DSL/online light off or blinking foreverNo sync with the provider: line fault, loose cable, or provider outageCheck the line cable; check the provider's status page; call them
Wi-Fi works, devices have 192.168.1.x, but no internetThe router is fine; the modem or provider link is downLook at the modem lights; restart the modem, then the router
Router's WAN address is blank or 0.0.0.0The router got no address from the providerRestart modem then router; check PPPoE username/password
Internet drops out several times a dayNoisy line, bad splitter/filter (DSL), loose coaxCheck the modem's status page for errors; ask the provider to test the line
Some apps fail behind two routersDouble NATPut the ISP box in bridge mode

💡 Restart order: power off the router and modem. Start the modem first and wait until its online light is solid (a couple of minutes), then start the router. The router asks for its public address at start-up, so it needs a working modem in front of it.

Useful checks from a PC

tracert (Windows) or traceroute (Linux, macOS) shows each router on the path. If the first hop (your router) answers but nothing after it does, the problem is beyond your router: the modem or the provider.

Example output from a Windows PC with the modem's line down, written for this lesson
C:\>tracert -d 198.51.100.10
Tracing route to 198.51.100.10 over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms  192.168.1.1
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.

Hop 1 is the home router, so the LAN and Wi-Fi are fine. Nothing answers after it, which points at the modem or the provider. On a working line, hop 2 would be a router inside the provider's network. See Traceroute.

Many cable modems also have a status web page, often at 192.168.100.1, showing signal levels and error counts that your provider may ask you to read out.

Common mistakes

  • Calling the ISP box “the modem” and expecting only modem behaviour. It is usually a modem, router, switch and access point in one.
  • Plugging the router's LAN port into the modem. The modem must go into the router's WAN (internet) port.
  • Restarting the router but not the modem (or in the wrong order).
  • Running two routers without bridge mode, creating double NAT.
  • Blaming Wi-Fi for a line fault. If the modem's online light is off, no Wi-Fi setting will help.
✅ Key takeaways
  • A modem converts between your Ethernet and the provider's line signal (modulation and demodulation).
  • The type of modem depends on the line: DSL, cable, fibre (ONT), cellular or satellite.
  • A modem works at Layers 1 and 2; it doesn't route or change IP addresses.
  • The router behind the modem routes, does NAT, gives out addresses and protects the LAN.
  • Most ISP boxes combine modem, router, switch and Wi-Fi; bridge mode turns the router part off.

Knowledge check

Predict · scenario 1

Your laptop has 192.168.1.20 and can reach the router at 192.168.1.1, but no websites load. The modem's “online” light is off.

Predict · scenario 2

Which device swaps your private IP address (192.168.1.20) for the public one (203.0.113.45)?

Predict · scenario 3

You connect your own Wi-Fi router behind the ISP's all-in-one box without changing anything. Some games and video calls start failing.

Predict · scenario 4

A home has a fibre connection. Which box on the wall plays the modem's role?

Where to go next

The device right behind the modem is the router, and the one that protects your network from the internet is the firewall. To see why your devices have private addresses at all, read Why NAT exists.

FAQ

Do I need both a modem and a router?
You need both jobs done. The modem connects to the provider's line; the router shares that connection with your devices, gives them addresses and protects them. Most providers give you one box that does both, so you may only see one device.
Can I plug my computer straight into the modem?
With a pure modem, yes: one computer gets online, usually receiving a public IP address directly. But only that one device is connected, and nothing stands between it and the internet except its own firewall. A router is safer and lets many devices share the connection.
What is bridge mode?
A setting on an all-in-one ISP box that turns off its router features so it acts as a plain modem. People use it when they want their own router to do the routing, NAT and Wi-Fi, which avoids having two routers doing NAT in a row.
Why is my upload so much slower than my download?
Many DSL and cable services are asymmetric: the provider gives more of the line's capacity to downloads because most people download far more than they upload. Fibre services are often symmetric.