Computer Networks

Modem

Modulator-demodulator: analog carrier on, bits off, and the reverse.

Level: beginner

What is it?

A modem, or modulator-demodulator, converts digital information into a signal suitable for a communications medium and recovers digital information from the received signal. The exact function differs across DSL, cable, cellular, and other technologies.

Why does it matter?

Access links often use physical media and provider signaling that differ from Ethernet inside a home or office. The modem bridges the customer's equipment to that access technology.

Mental model

The router handles local IP forwarding; the modem handles the provider link's signaling and framing. A single consumer box may combine modem, router, switch, Wi-Fi access point, and firewall functions.

How it works

  • Modulation maps information onto a signal suited to the channel; demodulation recovers the transmitted information.
  • DSL and cable modems use technology-specific signaling and provider protocols.
  • A modem may present an Ethernet interface to a separate router, but integrated gateways combine multiple roles.
  • Link synchronization or signal quality problems may prevent connectivity even when Wi-Fi works locally.
  • The public IP assignment and routing arrangement depend on the provider and device mode.

Steps

  • The customer router sends traffic to the modem-facing interface.
  • The modem encodes/transmits data using the access network's physical signaling.
  • The provider equipment receives and transports the data toward its network.
  • Return traffic is decoded and delivered through the modem to the customer's gateway.

Real-world usage

  • Diagnosing ISP access problems versus internal Wi-Fi/LAN problems.
  • Explaining the separate roles inside an integrated home gateway.

Common mistakes

  • Calling every home network box just a modem without checking its functions.
  • Assuming modem link synchronization proves DNS or internet routing is working.
  • Treating modulation as the only function of every modern cable/DSL modem.

Interview questions

What does a modem's name describe?

Modulation and demodulation: mapping digital information to channel-appropriate signals and recovering information from them.

Can a modem and router be in the same device?

Yes. Consumer gateways often combine a modem, IP router, switch, Wi-Fi access point, DHCP service, and firewall.

Prerequisites

Related concepts

Continue learning

Browse the full computer science library