Cheat Sheet

Network+ N10-009 Ports and Protocols Cheat Sheet

Every port on the Network+ N10-009 objectives in one table: protocol, port, TCP or UDP, purpose and secure alternative, plus IP and traffic types.

By CompCertQuiz Editorial · Published · Last reviewed · 7 min read

Part of the Network+ N10-009 study hub: CompTIA Network+ Study Guide (N10-009): 5 Domains

Objective 1.4 of CompTIA Network+ N10-009 lists twenty protocols and their port numbers, and you are expected to know them cold. This cheat sheet puts every port from that list in one table, with the transport protocol, what it does and the secure alternative to each clear-text protocol, then adds the IP protocol types and traffic types from the same objective.

The port list comes from the N10-009 exam objectives (version 6.0) on comptia.org. Transport columns and notes come from the protocol standards and the IANA port registry.

Network+ N10-009 ports and protocols

ProtocolPortTransportWhat it doesSecure alternative
FTP20/21TCPFile transfer. 21 carries commands, 20 carries data in active mode. Sends credentials in clear text.SFTP or FTPS
SFTP22TCPFile transfer over an SSH connection.Already secure
SSH22TCPEncrypted remote command line and tunnelling.Already secure
Telnet23TCPClear-text remote command line.SSH
SMTP25TCPMail transfer between mail servers.SMTPS or STARTTLS
DNS53UDP and TCPName resolution. UDP for normal queries, TCP for zone transfers and large responses.DNSSEC, DoH, DoT
DHCP67/68UDPAutomatic IP configuration. 67 is the server, 68 is the client.n/a
TFTP69UDPSimple file transfer with no authentication, used for boot images and device configs.SFTP
HTTP80TCPWeb traffic in clear text.HTTPS
NTP123UDPClock synchronization.NTS (Network Time Security)
SNMP161/162UDPMonitoring and management. 161 is polling of agents, 162 is traps sent to the manager.SNMPv3
LDAP389TCP and UDPDirectory queries, such as Active Directory lookups.LDAPS
HTTPS443TCPWeb traffic encrypted with TLS.Already secure
SMB445TCPWindows file and printer sharing.SMB with signing and encryption
Syslog514UDPLog messages sent to a collector. TCP is also used, usually on a configured port.Syslog over TLS (TCP 6514)
SMTPS587TCPMail submission, normally upgraded to TLS with STARTTLS. The N10-009 objectives list it as SMTPS.STARTTLS required, or implicit TLS on 465
LDAPS636TCPLDAP over TLS.Already secure
SQL Server1433TCPMicrosoft SQL Server database connections.Encrypted connections
RDP3389TCP (and UDP)Remote graphical desktop for Windows.RDP through a VPN or gateway
SIP5060/5061UDP and TCPVoIP call setup. 5060 is unencrypted, 5061 uses TLS.SIP over TLS (5061)

One detail to know: the exam objectives list SMTPS as port 587. In real networks, 587 is the mail submission port that normally upgrades to TLS with STARTTLS, and 465 is used for SMTP over implicit TLS. For the exam, answer 587 when the question says SMTPS.

Clear-text protocols and their secure replacements

A common question pattern gives you an insecure protocol and asks for the secure option. Memorize these pairs:

Clear textSecure replacement
Telnet (23)SSH (22)
HTTP (80)HTTPS (443)
FTP (20/21)SFTP (22) or FTPS
LDAP (389)LDAPS (636)
SNMPv1 and v2c (161/162)SNMPv3 (adds authentication and encryption)
SMTP (25)SMTPS or STARTTLS (587)
TFTP (69)SFTP (22)
Syslog over UDP (514)Syslog over TLS (TCP 6514)

IP protocol types

Objective 1.4 also lists IP types. These are identified by an IP protocol number, not a port, and several of them have no port at all.

ProtocolIP protocol numberNotes
ICMP1Error and diagnostic messages. Used by ping and traceroute. Has no ports.
TCP6Connection-oriented, reliable delivery with a three-way handshake.
UDP17Connectionless, no delivery guarantee, low overhead.
GRE47Generic Routing Encapsulation, a tunnelling protocol with no encryption of its own.
ESP50IPsec Encapsulating Security Payload: encrypts and authenticates the payload.
AH51IPsec Authentication Header: authenticates but does not encrypt.
IKENone (uses UDP 500)Internet Key Exchange: negotiates the IPsec security associations. Uses UDP port 500, or 4500 with NAT traversal.

TCP versus UDP in one minute

  • TCP sets up a session with a three-way handshake (SYN, SYN-ACK, ACK), numbers and acknowledges data, and retransmits what is lost. Choose it when every byte matters: web, email, file transfer, SSH.
  • UDP just sends. It has less overhead and no retransmission, so it suits traffic where speed matters more than completeness: DNS lookups, DHCP, NTP, voice and video.

Traffic types

TypeDelivered toExample
UnicastOne specific hostLoading a web page from a server
MulticastA group of subscribed hosts (224.0.0.0/4 in IPv4)Routing protocol updates, IPTV
AnycastThe nearest of several hosts sharing one addressDNS root servers and CDNs
BroadcastEvery host in the local broadcast domainARP requests, DHCP discovery

Port number ranges

  • 0 to 1023: well-known ports, used by standard services such as the table above.
  • 1024 to 49151: registered ports, assigned to specific applications such as SQL Server (1433) and RDP (3389).
  • 49152 to 65535: dynamic or ephemeral ports, assigned by the client operating system for the source side of a connection (49152 to 65535 by IANA convention; Linux defaults to 32768 to 60999).

These are not in objective 1.4, but they show up in A+ and in real troubleshooting, so they are worth knowing:

ProtocolPortNotes
POP3110Downloads mail from a server. POP3S is 995.
IMAP143Syncs mail with a server. IMAPS is 993.
NetBIOS137 to 139Legacy Windows name and session services.
RADIUS1812/1813Authentication and accounting for network access, UDP by default.
TACACS+49Device administration AAA from Cisco, TCP.

How to memorize the list

  1. Group by job. Remote access (22, 23, 3389), file transfer (20/21, 22, 69, 445), mail (25, 587), name and address services (53, 67/68, 123), management and logging (161/162, 514) and directory and database (389, 636, 1433).
  2. Learn the secure pairs first. If a question mentions encryption, the answer is often one of 22, 443, 587, 636 or 5061.
  3. Use flashcards in both directions. Port to protocol and protocol to port, because the exam asks both.
  4. Test yourself on real scenarios. The Network+ N10-009 practice questions include free items, and the free A+ Core 1 practice test has a ports matching exercise.

Next, read the Network+ N10-009 study guide for the other four domains, and practice IPv4 math with the free subnetting practice tool.

Frequently asked questions

What port does SSH use?

TCP 22. SFTP also uses 22, because it runs inside an SSH connection.

What is the difference between ports 67 and 68?

DHCP servers listen on UDP 67 and DHCP clients use UDP 68.

Which ports does DNS use?

Port 53. Normal queries use UDP, and TCP is used for zone transfers and responses too large for UDP.

Do I need to memorize every port for Network+?

You need the ports in objective 1.4, which is the table at the top of this page. The exam can ask you to match a port to a protocol, choose the secure alternative or pick the right service for a scenario.

Related reading

CompCertQuiz is an independent practice-exam site and is not affiliated with, endorsed by, or sponsored by CompTIA. Our practice questions are original material written for exam preparation. CompTIA and its certification names are trademarks of CompTIA, Inc. Always confirm exam details on comptia.org.

More from the blog