Sub topic 3
Modems, routers, switches, access points, and extenders
This chapter covers the five devices that make up most SOHO networks. It assumes you know what an IP address is, can tell a wired connection from a wireless one, and have used a command prompt. Later chapters cover addressing, DHCP, and Wi-Fi standards in detail. Here the goal is to know what each device does, where it sits, and how to tell which one is failing.
Why the roles matter
A home "router" is usually one box that contains several devices. A typical consumer gateway holds a modem (sometimes), a router, a small switch, a firewall, and a wireless access point. The A+ exam separates these roles, and troubleshooting depends on knowing which role has failed.
| Device | Main job | OSI layer | Works with |
|---|---|---|---|
| Modem | Converts the ISP signal to Ethernet and back | 1 | Cable, DSL, fiber (ONT), cellular |
| Router | Forwards packets between networks | 3 | IP addresses |
| Switch | Forwards frames inside one network | 2 | MAC addresses |
| Access point (AP) | Bridges wireless clients to the wired LAN | 1–2 | Wi-Fi radios |
| Extender | Repeats a wireless signal to reach farther | 1–2 | Wi-Fi radios |
Modem
A modem converts between the signal type the ISP uses and standard Ethernet. A cable modem handles the coaxial signal. A DSL modem handles telephone-line signaling. Fiber service uses an optical network terminal (ONT), which does the same job for light signals. The modem has one connection to the ISP and one Ethernet port toward your network.
The modem does not share the connection among several devices. On its own it usually gives a public address to a single device. Sharing that address is the router's job (see the NAT chapter).
Router
A router connects two or more different networks and decides where to send each packet. In a SOHO network it connects your private LAN to the ISP's network. The router's LAN-side address is the default gateway that clients use to leave the local network.
A SOHO router normally provides these services:
- DHCP server, which hands out addresses to clients.
- NAT, which lets many private addresses share one public address.
- A basic firewall, which blocks unsolicited inbound traffic.
- Often a DNS forwarder, which passes name lookups to the ISP or another resolver.
The router has a WAN port (toward the modem) and one or more LAN ports. Plugging the modem into a LAN port is a common setup error. The router then never gets an internet address.
Switch
A switch connects wired devices inside one network. It learns the MAC address of each device on each port and sends a frame only to the port where the destination lives. A hub, by contrast, repeats every frame to every port, which wastes bandwidth and increases collisions. Hubs are obsolete.
Switch types you should recognize:
- Unmanaged: plug in and use. No configuration. Typical for homes.
- Managed: supports VLANs, port monitoring, and speed settings. Used in larger offices.
- PoE switch: supplies power over the Ethernet cable (see below).
A switch does not route between networks. If two switches connect to the same router, all devices still share one LAN and one IP range.
Access point
An access point (AP) is a device that connects wireless clients to a wired network. It does not assign addresses or route. It bridges wireless frames onto the Ethernet LAN, where the router's DHCP server serves them.
Using a separate AP is common in offices and large homes. You run a cable from the router or switch to the AP and place the AP where coverage is needed. All APs can use the same network name (SSID) and security settings, so a device can roam from one to another. This is better than relying on one router in a corner.
Do not confuse an AP with a wireless router. A wireless router includes the routing, DHCP, NAT, and firewall functions. If you add a second wireless router to a network and leave its routing on, you create double NAT, which breaks some games and port forwarding. To use a spare wireless router as an AP, you normally turn off its DHCP server, connect the cable to a LAN port (not WAN), and give it a static address on the existing LAN.
Extender
A wireless extender (or repeater) receives a Wi-Fi signal and retransmits it. It needs no cable, so it is easy to install. The cost is speed. If the extender uses one radio for both receiving and sending, throughput can drop by about half. Place it where it still gets a strong signal from the router. Putting it at the edge of coverage only repeats a weak signal.
A wired AP almost always performs better than an extender. Use an extender only when you cannot run a cable.
Power over Ethernet
Power over Ethernet (PoE) sends electric power over the same twisted-pair cable that carries data. It suits access points, IP cameras, and VoIP phones, which are often mounted where no outlet exists. Power comes from a PoE switch or a small device called a PoE injector placed between a non-PoE switch and the powered device.
| Standard | Name | Approximate power at the device |
|---|---|---|
| 802.3af | PoE | 12.95 W |
| 802.3at | PoE+ | 25.5 W |
| 802.3bt | PoE++ | 51 W (Type 3) to 71 W (Type 4) |
Check that the switch's power budget covers every connected device. A switch with a 60 W total budget cannot run four 25 W devices.
How the pieces connect
Common errors
- Modem in a LAN port. The router shows no WAN address. Move the cable to the WAN (internet) port.
- Two DHCP servers. A spare router acting as an AP with DHCP still on hands out conflicting addresses. Clients may get the wrong gateway. Disable DHCP on the second device.
- Double NAT. Two routers in a chain, each performing NAT. Put the first device in bridge mode or turn the second into an AP.
- Extender too far away. Clients show full signal bars on the extender but slow speeds, because the link back to the router is weak.
- PoE shortfall. An AP reboots repeatedly because the switch cannot supply enough power. Check the standard and the total budget.
- Wrong cable length. Twisted-pair Ethernet, including PoE runs, is limited to 100 meters (328 feet).
Checking the router from a client
On a Windows client, ipconfig shows the default gateway, which is the router's LAN address. Check that the address is in the expected range and that the gateway answers.
ipconfig
ping 192.168.1.1Replace 192.168.1.1 with the gateway address your own output shows. If the ping succeeds but websites fail, the problem lies beyond the router, in the modem, the ISP, or DNS.
Exercise
A technician adds a spare wireless router to extend coverage in a back office. The cable from the main router goes into the spare router's WAN port, and its DHCP server is still on. Users in the back office can browse, but a game console there cannot accept incoming connections, and port forwarding on the main router does not work for it. What is wrong, and how should the spare router be configured?
Show answer
The spare router is performing NAT, which creates double NAT. Devices behind it have private addresses on a second network that the main router cannot reach directly, so port forwarding fails. To make it an access point, disable its DHCP server and NAT/routing, give it a static address on the main LAN, and connect the cable to one of its LAN ports instead of the WAN port.
Exercise
Which device forwards traffic using MAC addresses, and which one forwards using IP addresses?
Show answer
A switch forwards frames using MAC addresses (layer 2). A router forwards packets using IP addresses (layer 3).