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.
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:
- 1. The laptop sends a request. It goes to the router, its default gateway, with a private source IP address.
- 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. The modem converts the signal. It turns the frame into the provider's line signal. It doesn't change the IP addresses.
- 4. The reply comes back. The modem demodulates it into Ethernet, the router translates the address back and delivers it to the laptop.
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
| Part | What it does |
|---|---|
| Line port | Where the provider's line plugs in: a phone socket (RJ11), coax screw connector, fibre connector, or a SIM slot |
| Modulation chip | Turns bits into line signals and back |
| Ethernet port | Connects to your router, or to one computer |
| Status lights | Power, line sync (DSL) or downstream/upstream lock (cable), online |
| Provider settings | The provider identifies or configures your modem remotely so it is allowed onto their network |
How a modem gets you online, step by step
- 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.
- 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).
- 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. - 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 path | Source IP | Destination IP |
|---|---|---|
| Laptop → router | 192.168.1.20 | 198.51.100.10 (a web server) |
| Router → modem | 203.0.113.45 (after NAT) | 198.51.100.10 |
| Modem → provider | 203.0.113.45 (unchanged) | 198.51.100.10 (unchanged) |
| OSI layer | Modemsignals + line framing | RouterIP addresses |
|---|---|---|
| L7 ApplicationHTTP, DNS | – | – |
| L6 PresentationEncoding, encryption | – | – |
| L5 SessionSessions | – | – |
| L4 TransportTCP/UDP ports | – | – |
| L3 NetworkIP addresses | – | ✓ |
| L2 Data LinkFrames, MAC addresses | ✓ | ✓ |
| L1 PhysicalBits on cable or radio | ✓ | ✓ |
Modem vs. router
These two are mixed up all the time, partly because one box often does both. They are different jobs:
| Modem | Router | |
|---|---|---|
| Main job | Connects to the provider's line | Connects networks and chooses paths for packets |
| Faces | The provider | Both: the provider side (WAN) and your network (LAN) |
| Works with | Signals and frames (Layers 1–2) | IP addresses (Layer 3) |
| Gives your devices addresses | No | Yes, usually with DHCP |
| NAT and firewall | No | Yes, on home routers |
| Devices it serves | One (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:
- 1. Separate devices. Top: a stand-alone modem, then your own router with Wi-Fi.
- 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.
- 1. Normal day: traffic uses the fibre. The ONT converts Ethernet into light on the fibre. The firewall does the routing and NAT.
- 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.
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
| Symptom | Likely cause | What to do |
|---|---|---|
| DSL/online light off or blinking forever | No sync with the provider: line fault, loose cable, or provider outage | Check the line cable; check the provider's status page; call them |
Wi-Fi works, devices have 192.168.1.x, but no internet | The router is fine; the modem or provider link is down | Look at the modem lights; restart the modem, then the router |
Router's WAN address is blank or 0.0.0.0 | The router got no address from the provider | Restart modem then router; check PPPoE username/password |
| Internet drops out several times a day | Noisy line, bad splitter/filter (DSL), loose coax | Check the modem's status page for errors; ask the provider to test the line |
| Some apps fail behind two routers | Double NAT | Put 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.
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.
- 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
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.
Which device swaps your private IP address (192.168.1.20) for the public one (203.0.113.45)?
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.
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.