Port numbers flashcards and drill
Port numbers are memory work, so the fastest way to learn them is retrieval, not rereading. Choose a mode, answer, and the drill tells you at once whether you were right. The reference list under the drill groups the ports by purpose.
Reference list
Patterns that make them easier
- Most secure variants sit next to or near the plain port: 80 and 443, 389 and 636, 110 and 995, 143 and 993.
- SSH, SFTP and SCP all share port 22; FTP uses 21 for control and 20 for data in active mode.
- Mail has three jobs: SMTP sends (25 between servers, 587 or 465 for clients), POP3 and IMAP fetch.
How the three modes work
- Service to port number. You are given a service name and type its number. Services with two ports, such as SNMP (161 and 162) or RADIUS (1812 and 1813), accept either one.
- Port number to service. You are given a number and choose the service from four options. This is the format that most resembles a multiple-choice exam item.
- Secure twin of a protocol. You are given a clear-text protocol and type the port of its encrypted replacement. The pairs are HTTP to HTTPS (80 to 443), Telnet to SSH (23 to 22), LDAP to LDAPS (389 to 636), POP3 to POP3S (110 to 995), IMAP to IMAPS (143 to 993), SIP to SIP over TLS (5060 to 5061), syslog to syslog over TLS (514 to 6514) and DNS to DNS over TLS (53 to 853).
The reference list under the drill is split into four groups: remote access and file transfer, web, names and time, mail, and directory and management. Each row says whether the protocol is encrypted. Open one group, read it once, then close it and drill.
A study routine that works
Port numbers fade quickly, so short and frequent beats long and rare. Ten minutes a day for two weeks outperforms one long session. Start with the services in the first column below, drill until they are automatic, then add the next group.
| Start with | Then add |
|---|---|
| 22 SSH, 23 Telnet, 25 SMTP, 53 DNS | 67/68 DHCP, 69 TFTP, 123 NTP |
| 80 HTTP, 443 HTTPS | 110 POP3, 143 IMAP, 161/162 SNMP |
| 21 FTP, 3389 RDP | 389 LDAP, 445 SMB, 514 syslog |
| 993 IMAPS, 995 POP3S, 636 LDAPS | 1433 SQL Server, 3306 MySQL, 5060 SIP |
Use the twin mode last. It is the quickest way to test whether you understand the secure replacements rather than only the plain numbers.
Common mistakes
- SFTP versus FTPS. SFTP runs inside an SSH session on port 22. FTPS is FTP wrapped in TLS and uses 989 and 990 in implicit mode. The word SSH in a question points to 22.
- 587 versus 465. Both carry mail submission from a client. 587 starts in clear text and upgrades with STARTTLS, while 465 is encrypted from the first byte. The drill follows that split.
- 161 versus 162. SNMP queries go to 161 and traps are sent to 162.
- 67 versus 68. The DHCP server listens on 67 and the client uses 68.
- TCP versus UDP. DNS normally answers over UDP and falls back to TCP for large answers and zone transfers. The drill only asks for the number, but exam items may ask for the transport as well.
- Clear text versus secure. When a question mentions encrypted, secure or compliant, the answer is the twin, not the plain port.
Which exams test ports
The CompTIA Network+ N10-009 outline lists the ports and protocols you must know, including the secure pairs, so it rewards pure recall; see its networking concepts guide and cheat sheet. Cisco CCNA 200-301 names protocols such as SSH, Telnet, SNMP and syslog rather than listing numbers, but you need the numbers to read access lists, as covered in the network services and security guide and ACLs explained. Security+ SY0-801 has no port list; there the knowledge shows up in firewall and secure-communication scenarios, see security architecture. Azure candidates meet the same numbers when writing rules, see NSG rule evaluation.
The annotated list is in the common ports cheat sheet. Ports are tested in Network+ N10-009 and Security+ SY0-801; try the port practice questions for scenario wording.