Sub topic 8
Networking: Ports, Protocols, Wireless, and SOHO Setup
This chapter assumes you can describe what a router and an IP address do, and that you have used Wi-Fi at home. It covers the Networking domain of Core 1: what the domain tests, the ports and protocols to memorize, wireless standards and security, and small office/home office (SOHO) configuration. The weighting of this domain differs between exam versions, so check the current percentage in CompTIA's official exam objectives.
What the domain tests
Networking questions mix recall and application. Recall questions ask which port or standard fits a situation. Application questions give a symptom, such as "the user can reach 8.8.8.8 but not example.com", and ask for the cause or the next step. Performance-based questions (PBQs) often ask you to configure a SOHO router screen or match protocols to ports.
Ports and protocols
A port is a number that identifies a service on a host. An IP address finds the machine, and the port finds the application. TCP is connection-oriented and confirms delivery. UDP is connectionless and faster, so it suits streaming and DNS lookups.
| Port | Protocol | Transport | Purpose |
|---|---|---|---|
| 20/21 | FTP | TCP | File transfer, unencrypted |
| 22 | SSH | TCP | Encrypted remote shell, also SFTP |
| 23 | Telnet | TCP | Remote shell, unencrypted |
| 25 | SMTP | TCP | Sending email between servers |
| 53 | DNS | UDP/TCP | Name resolution |
| 67/68 | DHCP | UDP | Automatic IP addressing |
| 80 | HTTP | TCP | Web, unencrypted |
| 110 | POP3 | TCP | Email download |
| 143 | IMAP | TCP | Email sync |
| 161/162 | SNMP | UDP | Device monitoring |
| 389 | LDAP | TCP | Directory services |
| 443 | HTTPS | TCP | Web, encrypted |
| 445 | SMB | TCP | Windows file sharing |
| 3389 | RDP | TCP | Windows remote desktop |
Exam questions often pair an insecure protocol with its secure replacement: Telnet with SSH, HTTP with HTTPS, FTP with SFTP. If a scenario says "the admin needs an encrypted remote session", the answer is SSH on port 22.
Addressing essentials
Most home and office devices use private IPv4 addresses, which are not routed on the internet. The private ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. The router uses network address translation (NAT) to share one public address among all internal devices.
A device that cannot reach a DHCP server assigns itself an APIPA address in the 169.254.0.0/16 range. Seeing a 169.254.x.x address in a scenario points to a DHCP failure, not a DNS or internet problem.
IPv6 addresses are 128 bits, written in hexadecimal. Know that a link-local address begins with fe80 and that ::1 is the IPv6 loopback.
Network devices and types
- Router: forwards traffic between networks and usually runs NAT and DHCP at home.
- Switch: forwards frames inside one network using MAC addresses. A managed switch adds VLANs and monitoring.
- Access point (AP): extends a wired network over Wi-Fi.
- Modem: connects to the ISP's medium, such as cable, DSL, or fiber.
- Firewall: filters traffic by rules.
- Patch panel: terminates cable runs so they connect to switch ports through short patch cables.
Network types are named by size: PAN (personal), LAN (local), WLAN (wireless LAN), MAN (city), and WAN (wide area).
Wireless standards
Wi-Fi standards are defined by IEEE 802.11. The band, either 2.4 GHz or 5 GHz, affects range and speed. 2.4 GHz travels farther and passes through walls better, but it is slower and more crowded. 5 GHz is faster over a shorter range.
| Standard | Marketing name | Band | Note |
|---|---|---|---|
| 802.11b | 2.4 GHz | 11 Mbps maximum | |
| 802.11a | 5 GHz | 54 Mbps maximum | |
| 802.11g | 2.4 GHz | 54 Mbps maximum | |
| 802.11n | Wi-Fi 4 | 2.4 and 5 GHz | Introduced MIMO |
| 802.11ac | Wi-Fi 5 | 5 GHz | Faster, multi-user MIMO |
| 802.11ax | Wi-Fi 6 | 2.4 and 5 GHz | Better performance in crowded areas |
In the 2.4 GHz band, channels 1, 6, and 11 do not overlap in the United States. If neighboring networks interfere, move your AP to the least-used of these.
For security, know the order from weakest to strongest: WEP (broken), WPA (TKIP), WPA2 (AES), and WPA3 (the current best). Personal modes use a shared passphrase. Enterprise modes authenticate each user through a RADIUS server.
Related short-range technologies also appear: Bluetooth (about 10 m, personal devices), NFC (a few centimeters, contactless payment), and RFID.
SOHO router setup
A typical small router combines several functions. When you configure one, work through this checklist:
- Change the default administrator username and password.
- Update the firmware.
- Set a unique SSID and choose WPA2 or WPA3 with a strong passphrase.
- Disable WPS, which has known weaknesses.
- Confirm DHCP is on, and set a reservation for any device that needs a fixed address, such as a printer.
- Configure port forwarding only for services you must expose, and disable UPnP if you don't need it.
- Consider a guest network to isolate visitors.
Port forwarding sends inbound traffic on a chosen external port to a specific internal address and port. Port triggering opens a port only after outbound traffic on a trigger port. A DMZ places one host outside the NAT protections, which is risky. MAC filtering is weak security, because MAC addresses can be spoofed. QoS prioritizes traffic such as voice.
Verifying with command-line tools
The same commands help you answer troubleshooting questions and check your own network.
ipconfig /allThis lists each adapter's IP address, mask, gateway, DNS servers, and whether DHCP is enabled. Then test in layers, from nearest to farthest:
ping 127.0.0.1
ping <default-gateway-address>
ping 8.8.8.8
ping example.comReplace <default-gateway-address> with the gateway shown by ipconfig /all. Each step rules out one layer.
tracert example.com
nslookup example.comtracert shows each hop toward the destination and where the path stops. nslookup queries DNS directly.
Common errors in exam answers
- Choosing HTTP when the scenario requires encryption.
- Confusing POP3 (downloads mail) with IMAP (syncs mail on the server).
- Blaming DNS when the client has a 169.254.x.x address. That is a DHCP failure.
- Recommending MAC filtering or a hidden SSID as strong security.
- Picking 5 GHz when the scenario calls for the greatest range through walls.
Practice
Exercise
A user's laptop shows the address 169.254.17.5 and cannot reach any website. What is the most likely cause, and what is your first check?
Show answer
The laptop could not get an address from a DHCP server and assigned itself an APIPA address. Check whether the router's DHCP service is running and whether the laptop is connected to the network, then renew the lease.
Exercise
A user can ping 8.8.8.8 but cannot open example.com. Which tool confirms the fault, and which service is likely failing?
Show answer
Use nslookup example.com. DNS name resolution is likely failing, so check the configured DNS servers.
Exercise
A small office needs a remote-desktop connection to a Windows PC and an encrypted command shell to a Linux server. Which ports are involved?
Show answer
RDP uses TCP 3389 for the Windows desktop. SSH uses TCP 22 for the encrypted shell.