Experiment 02
Identification and Demonstration of Modem, Router and Switch Hardware
Explore what a modem, a router and a network switch look like, what each one does, and how they work together to connect computers to each other and to the Internet.
Aim
To identify a modem, a router and a network switch, and to demonstrate the function of each device in connecting computers to a local network and to the Internet.
Learning objectives
- Identify a modem, a router and a switch from their appearance, ports and indicator LEDs.
- State the OSI layer at which each device works and the address it uses (none, IP or MAC).
- Explain modulation and demodulation in a modem.
- Explain how a switch learns MAC addresses and forwards or floods frames.
- Explain how a router uses its routing table and NAT to forward packets between networks.
- Trace the path of data from a PC to the Internet through these devices.
Brief theory
- Modem (modulator–demodulator) works at the physical layer. It converts the digital data from your network into a signal that can travel on the service provider’s line (telephone pair for DSL, coaxial cable, or fibre), and converts the received signal back into bits.
- Switch works at the data link layer. It connects devices inside one LAN. It learns which MAC address is connected to which port and stores this in its MAC address table. A frame for a known MAC goes out of one port only; a frame for an unknown MAC (or a broadcast) is flooded to all other ports.
- Router works at the network layer. It connects different networks and forwards packets using the destination IP address and its routing table. A home router also does NAT (many private addresses share one public address), DHCP and often Wi-Fi.
- A typical home or lab network is: Internet → modem → router → switch → PCs and printers. Many home units combine the modem, router, switch and Wi-Fi access point in one box.
Instructions for students
Expected learning outcome
You will be able to identify a modem, router and switch by their features, state the layer and addressing each uses, and explain how they work together to carry data between a PC and the Internet.
Device explorer
Click a device above or in the network diagram to see its name, layer, purpose, functions and how to identify it.
Identification activity
Look at the picture and the clue, then choose the device. 5 rounds.
How each device works
For clarity the line signal is drawn as simple FSK (1 = higher frequency, 0 = lower frequency). Real DSL and cable modems use many carriers with QAM, but the idea of modulating and demodulating is the same.
MAC address table
| Port | MAC address | Device |
|---|---|---|
| Empty: the switch has not learned any address yet. | ||
Routing table
| Network | Interface | Type |
|---|---|---|
| 192.168.1.0/24 | Gi0/0 | connected |
| 192.168.2.0/24 | Gi0/1 | connected |
| 0.0.0.0/0 | WAN | default route (to ISP) |
Observations
Readings fill in by themselves when you complete the guided steps in the simulation. They also appear under My observations beside the steps as you work. You can click any reading below and type your own.
| No. | What to observe | Expected result | Your observation | Status |
|---|
Result
The modem, router and switch were identified and their functions demonstrated: the modem converts between digital data and line signals, the switch forwards frames inside a LAN using MAC addresses, and the router forwards packets between networks using IP addresses.
Quiz
Choose one answer for each question, then press Check answers. Your score is also recorded in the Observations tab.