Switches, routers, and access points
On this page
Three boxes with blinking lights sit in an office cupboard. Cables run between them, but their cases do not tell you their jobs. Follow the connections to identify the switch, access point, and router, then mark where the office network ends.
Connect devices within one network
Section titled “Connect devices within one network”Start with the office’s wired laptop and a machine supplying pages. Both belong to the same LAN. A switch connects devices within one network. Each device can have its own cable to that switch.
The switch lets those devices exchange messages within the office. Their local exchange does not need to leave for the provider’s network. Adding another wired device means giving it a connection to the switch; that alone does not create another network.
How a switch chooses which port to send a message out of comes later. The drawing below shows the switch as a separate box so you can distinguish its job from the others.
Let wireless devices join that network
Section titled “Let wireless devices join that network”The office phone has no cable to the switch. It joins by Wi-Fi through an access point, a device that lets wireless devices join a network. The access point connects to the switch by cable in this example.
The phone and wired laptop belong to the same office LAN. Changing the medium from copper to radio does not, by itself, put the phone in another network. Here, the access point supplies the wireless connection to the existing LAN.
Follow a local request from phone to intranet: radio to the access point, then cable through the switch to intranet. The access point is labeled AP in course diagrams. Read those letters as “access point.”
Find the connection leaving the LAN
Section titled “Find the connection leaving the LAN”The router joins the office LAN to another network. Its office-facing connection goes to the switch; its other connection leads beyond the marked boundary. This is the router’s job from LANs, WANs, and the Internet.
The router is needed when the office devices communicate beyond their LAN. The local request from phone to intranet stays inside the boundary. An outside request leaves through the router.
This drawing shows one LAN and one connection beyond it. The office has its own page server, called intranet.
Predict: if only the router’s outside connection fails, can phone still request a page from the office’s intranet?
Check your answer
Yes, if the shown local connections and service still work. The request uses the access point and switch within the office. It does not use the failed outside connection.
Read the course’s symbols
Section titled “Read the course’s symbols”The machine has a short base. The server has an inset vertical stroke. The router has two horizontal strokes inside its box. The switch has short port ticks along its bottom edge. The access point has antenna strokes above it.
The kit has eight parts. Solid links show cables; dotted links labeled Wi-Fi show radio connections. A dashed, named boundary groups the devices belonging to one network. Shapes identify the role being drawn; the text identifies the device. The server symbol still means a machine supplying a service, not a special size of computer.
The legend shows separate samples, not a connected network. In a network drawing, follow the links between named devices and check the boundary before deciding where a message travels.
Name the socket you mean
Section titled “Name the socket you mean”A physical port is a socket on a device where you connect a cable. “Port” here means a socket on a device; TCP, UDP, and Ports uses the same word for something else.
When describing a cable, name both ends: “the laptop’s physical port connects to a port on the switch.” That is more precise than saying the laptop connects “to the Internet.”
Mistakes to recognize
Section titled “Mistakes to recognize”“A switch and a router are the same box.” These are different jobs: connecting devices within the LAN and joining it to another network. One case can contain both jobs.
“An access point is a router.” In this office, the access point lets the phone join the LAN. A separate router supplies the connection beyond it.
Try it yourself
Section titled “Try it yourself”Goal: Choose connections for a small school with one LAN, one switch, one access point, and one router. This is a paper exercise.
- Six wired laptops need a cable connection each.
- Three phones need a wireless connection each.
- The access point needs its wired connection to the LAN.
- The router needs its school-facing connection.
- The provider’s connection needs to join the school router.
For these twelve connections, name the device each connects to. Say which three use radio rather than plugging in a cable.
Expected: Twelve choices, including three wireless joins, with the provider outside the school LAN.
Hint
Count six plus three plus one plus one plus one. The access point joins the switch; the provider does not join a laptop.
Solution
The six laptops connect to the switch. The three phones join the access point by radio. The access point and the router’s school-facing connection each connect to the switch. The provider’s connection joins the router’s outside-facing port.
Leave for later
Section titled “Leave for later”How switches learn in Ethernet and Local Delivery explains how a switch chooses a port. Reading routes and default routes in Reaching Another Device explains how a router chooses a path.
- A switch connects devices within one network.
- An access point lets wireless devices join that network.
- A router joins the LAN to another network.
- A physical port is a cable socket on a device.
Next, The combined home router puts several jobs inside one case.
Further reading
Section titled “Further reading”- Cisco: Switches and routers, for their separate roles.
- Cisco: How a switch works, for wired device connections and switch ports.
- Cisco: Wireless access points, for wireless clients joining a wired LAN.