Sub topic 6
Core 1 domain: Networking
Networking is worth 23% of the Core 1 (220-1201) exam. Only Hardware and Hardware and Network Troubleshooting carry more weight. This chapter assumes you know what an IP address is and can describe a router and a switch in a sentence. It covers the working model the exam tests, then the errors candidates most often make.
What the domain covers
The Networking domain asks you to recognize, configure, and explain. The main areas are:
- Ports and protocols
- Networking hardware
- Wireless standards and configuration
- IP addressing
- Network services such as DHCP and DNS
- Network types and cabling
- Tools for building and testing connections
The domain tells you how a network should work. The Hardware and Network Troubleshooting domain, covered in a later chapter, asks what to do when it does not.
Ports and protocols
A protocol is a set of rules for a type of communication. A port is a number that identifies which service on a host should receive the traffic. Most protocols run over one of two transport protocols:
- TCP sets up a connection, confirms delivery, and resends lost data. Web pages and email use it.
- UDP sends data with no connection and no delivery check. It is faster and suits voice, video, and DNS lookups.
You should memorize these ports:
| Port | Protocol | Transport | Purpose |
|---|---|---|---|
| 20/21 | FTP | TCP | File transfer (data/control), unencrypted |
| 22 | SSH | TCP | Encrypted remote shell, also SFTP |
| 23 | Telnet | TCP | Unencrypted remote shell |
| 25 | SMTP | TCP | Sending email |
| 53 | DNS | UDP (TCP for large replies) | Name resolution |
| 67/68 | DHCP | UDP | Automatic IP configuration (server/client) |
| 80 | HTTP | TCP | Web, unencrypted |
| 110 | POP3 | TCP | Downloading email |
| 143 | IMAP | TCP | Syncing email on a server |
| 161/162 | SNMP | UDP | Device monitoring |
| 389 | LDAP | TCP | Directory queries |
| 443 | HTTPS | TCP | Web, encrypted |
| 445 | SMB | TCP | Windows file and printer sharing |
| 3389 | RDP | TCP | Windows Remote Desktop |
Networking hardware
Each device works at a different level of the network:
- Switch: forwards frames to the right port using MAC addresses. A managed switch adds VLANs, which split one physical switch into separate logical networks. It can also supply Power over Ethernet (PoE) to devices such as access points and cameras.
- Router: connects different networks and forwards packets using IP addresses. A home router also performs NAT, which lets many private addresses share one public address.
- Access point (AP): connects wireless clients to the wired network.
- Firewall: allows or blocks traffic according to rules.
- Patch panel: a termination point that connects wall jacks to switch ports through short patch cables.
- Modem or ONT: connects your network to the ISP over cable, DSL, or fiber.
A hub repeats traffic to every port. It is obsolete, but old questions still use it as a contrast with a switch.
Wireless standards
Wi-Fi standards differ in frequency band and speed, and the exam expects you to match them:
| Standard | Marketing name | Bands |
|---|---|---|
| 802.11n | Wi-Fi 4 | 2.4 and 5 GHz |
| 802.11ac | Wi-Fi 5 | 5 GHz |
| 802.11ax | Wi-Fi 6 | 2.4 and 5 GHz (Wi-Fi 6E adds 6 GHz) |
The 2.4 GHz band reaches farther and passes through walls better. It is also crowded, and it has only three non-overlapping channels (1, 6, and 11). The 5 GHz band is faster and less crowded, but its range is shorter.
For security, use WPA3 where available and WPA2 with AES otherwise. Do not use WEP or WPA with TKIP. Turning off SSID broadcast hides a network name but does not secure it.
Other wireless technologies you may see are Bluetooth (short-range personal devices), NFC (a few centimeters, used for payments), and long-range fixed wireless.
IP addressing
Every host needs an address, a subnet mask, and a default gateway. The gateway is the router that leads off the local network. You need to recognize these special ranges:
- Private IPv4: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. These are not routed on the internet.
- Loopback: 127.0.0.1 always points to the local machine.
- APIPA: 169.254.x.x is self-assigned when a DHCP server cannot be reached. A host with this address can talk only to its local segment.
- IPv6 link-local: addresses beginning with fe80:: work only on the local link.
IPv4 addresses are 32 bits, written in four decimal groups. IPv6 addresses are 128 bits, written in hexadecimal. In IPv6 you can compress one run of zero groups with ::, once per address.
A static address is set by hand. A dynamic address comes from DHCP. Servers, printers, and routers usually get static addresses or DHCP reservations, which bind an address to a device's MAC address.
Network services
Several services run in the background of nearly every network:
- DHCP hands out addresses, masks, gateways, and DNS servers.
- DNS turns names such as example.com into IP addresses.
- VPN creates an encrypted tunnel across an untrusted network.
- Proxy forwards requests on a client's behalf and can filter or cache them.
- Syslog and authentication servers collect logs and verify users.
Network types and cabling
Network types are classified by size: a PAN covers a person's devices, a LAN a building, a MAN a city, and a WAN spans large distances. The internet is the largest WAN.
Cable choice depends on speed, distance, and interference:
- Twisted pair (Cat 5e, 6, 6a): copper cable with RJ45 connectors, limited to 100 m per segment. Cat 5e and Cat 6 support 1 Gbps. Cat 6 supports 10 Gbps only over short runs, and Cat 6a supports it over the full 100 m. STP adds shielding for noisy environments.
- Fiber: glass carries light, so it is immune to electrical interference and reaches much farther. Single-mode fiber suits long distances. Multimode fiber suits shorter runs inside buildings.
- Coaxial: used for cable internet and TV, with F-type connectors.
The two wiring standards for RJ45 ends are T568A and T568B. Use the same standard on both ends of a straight-through cable.
Using the command line to inspect a network
The exam expects you to read the output of basic commands. This sequence works from the host outward, so each step tests one more layer:
ipconfig /all
ping 127.0.0.1
ping 8.8.8.8
nslookup example.comipconfig /all shows the address, mask, gateway, DNS servers, MAC address, and whether DHCP is in use. Pinging 127.0.0.1 tests the local TCP/IP stack. Pinging 8.8.8.8 tests routing to the internet without involving DNS. nslookup tests name resolution.
If the second ping succeeds but nslookup fails, the connection works and DNS is the problem. This reasoning is the basis of the troubleshooting chapter that follows.
Common errors
- Confusing the default gateway (the local router) with the DNS server (the name resolver).
- Treating a 169.254.x.x address as valid. It means DHCP failed.
- Choosing a hub when the question needs a switch, or a switch when it needs a router. A switch moves traffic within a network, and a router moves it between networks.
- Assuming 5 GHz is always better. Range, walls, and device support can favor 2.4 GHz.
- Mixing up POP3 (downloads and usually removes mail) with IMAP (leaves mail on the server and syncs it).
Exercise
A laptop shows the address 169.254.12.80. It can reach a printer on the same switch but cannot open any website. Which service has most likely failed, which command would confirm the configuration, and what would you check next?
Show answer
DHCP has most likely failed, so the laptop assigned itself an APIPA address. Run ipconfig /all to confirm the address and see whether DHCP is enabled. Then check the physical link and the DHCP server or router, and renew the lease with ipconfig /release followed by ipconfig /renew.
Exercise
Which port and protocol would you allow through a firewall to let an administrator manage a Linux server over an encrypted command line, and which older protocol should you block instead?
Show answer
Allow SSH on TCP port 22. Block Telnet on TCP port 23, because it sends everything, including passwords, in clear text.