Free study material

Common ports and protocols, explained one by one

The 22 port numbers CompTIA lists in the Network+ and A+ objectives, each on its own page: what the port is used for, TCP or UDP, the secure alternative, what it is confused with and a practice question.

The port list

PortProtocolTCP or UDPListed in
20 and 21FTPTCPNetwork+ · A+
22SSHTCPNetwork+ · A+
23TelnetTCPNetwork+ · A+
25SMTPTCPNetwork+ · A+
53DNSUDP and TCPNetwork+ · A+
67 and 68DHCPUDPNetwork+ · A+
69TFTPUDPNetwork+
80HTTPTCPNetwork+ · A+
110POP3TCPA+
123NTPUDPNetwork+
137-139NetBIOSUDP and TCPA+
143IMAPTCPA+
161 and 162SNMPUDPNetwork+
389LDAPTCPNetwork+ · A+
443HTTPSTCP and UDPNetwork+ · A+
445SMBTCPNetwork+ · A+
514SyslogUDPNetwork+
587SMTP submissionTCPNetwork+
636LDAPSTCPNetwork+
1433SQL ServerTCPNetwork+
3389RDPTCP and UDPNetwork+ · A+
5060 and 5061SIPUDP and TCPNetwork+

Network+ N10-009 lists its ports under objective 1.4 (Networking Concepts); A+ Core 1 220-1201 under objective 2.1 (Networking). Numbers checked against the IANA registry.

What are well-known ports?

Port numbers run from 0 to 65535 and IANA divides them into three ranges. System ports, also called well-known ports, are 0 to 1023 and are assigned to core services such as SSH (22), DNS (53) and HTTPS (443). User ports, also called registered ports, are 1024 to 49151, for example SQL Server (1433) and RDP (3389). Dynamic or private ports, 49152 to 65535, are never assigned: any application may use them, typically as temporary source ports for outgoing connections.

Source: RFC 6335: IANA Procedures for the Management of the Service Name and Transport Protocol Port Number Registry.