Ports and Protocol Decision Table

Key Takeaways

  • Port knowledge is high yield only when tied to use case, transport (TCP/UDP), and the secure alternative.
  • TCP is connection-oriented (three-way handshake); UDP is connectionless, used for low-latency and query/response.
  • Secure protocols (SSH, SFTP, HTTPS, SNMPv3, LDAPS) replace cleartext management and transfer protocols.
  • Scenarios ask which port to allow on a firewall, which service failed, or which protocol fits a requirement.
  • Never memorize ports in isolation; attach each to a symptom and a design decision.
Last updated: June 2026

Ports Become Useful in Context

The N10-009 objectives explicitly list ports/protocols, and they appear in firewall-rule and "which service failed" items. You rarely get a bare "what port is X" question; instead you must pick a secure management protocol, identify a blocked service, or write the rule that satisfies a requirement. Learn the well-known range (0-1023), then connect each entry to a use case.

Ports exist because a single IP address must host many services at once. The combination of an IP address and a port is a socket, and the pair of sockets (source and destination) plus the protocol uniquely identifies a connection, which is how one web server fields thousands of simultaneous sessions on TCP 443. Servers listen on well-known destination ports; clients open an ephemeral source port (commonly 49152-65535) for the return traffic.

Understanding this is what lets you read a firewall log or a netstat output: an entry showing a local ephemeral port talking to a remote 443 is an outbound HTTPS session, while a listener bound to 0.0.0.0:3389 is an exposed RDP service that the exam would flag as a hardening risk to restrict or move behind a VPN.

ProtocolPort(s)TransportUseDecision clue
FTP (control/data)21/20TCPFile transferCleartext; prefer SFTP/FTPS
SSH / SFTP22TCPSecure shell, secure file transferSecure remote admin
Telnet23TCPRemote terminalInsecure cleartext, avoid
SMTP25TCPServer-to-server mailMail relay
DNS53UDP/TCPName resolutionUDP for queries, TCP for zone transfer
DHCP67/68UDPAddress leasingClient cannot get a lease
TFTP69UDPSimple file transferNo auth, network boot/configs
HTTP80TCPWebCleartext web
Kerberos88TCP/UDPAuthenticationTime-sensitive AD auth
POP3110TCPMail downloadRemoves mail from server
NTP123UDPTime syncDrift breaks logs, certs, Kerberos
IMAP143TCPMail accessMail stays on server
SNMP161/162UDPMonitoring/trapsPrefer SNMPv3
LDAP389TCP/UDPDirectoryCleartext directory queries
HTTPS443TCPEncrypted webTLS-secured web
SMB445TCPWindows file sharingFile shares, domain access
Syslog514UDP/TCPLog forwardingCentral logging
LDAPS636TCPEncrypted directorySecure LDAP
SQL Server1433TCPMS SQLDatabase access
RDP3389TCP/UDPRemote desktopGUI admin, restrict it
SIP5060/5061UDP/TCP/TLSVoIP signaling5061 = TLS-secured SIP

TCP vs. UDP and the Three-Way Handshake

TCP (Transmission Control Protocol) is connection-oriented and reliable: it opens a session with the SYN, SYN-ACK, ACK three-way handshake, numbers and acknowledges bytes, retransmits losses, and closes with FIN. UDP (User Datagram Protocol) is connectionless "fire and forget": no handshake, no acknowledgment, lower overhead. That trade-off drives protocol choice.

NeedUsually fits
Reliable, ordered delivery and session controlTCP
Low overhead, real-time, query/responseUDP
Name lookupDNS, UDP for queries, TCP for zone transfers
Address leaseDHCP over UDP
Time syncNTP over UDP
Web sessionHTTP/HTTPS over TCP

Secure Replacement Table

A recurring exam theme is swapping a cleartext protocol for its encrypted equivalent. If the requirement says "protect credentials in transit" or "encrypt management," pick the secure column.

Weaker choiceSecure replacementWhy
Telnet (23)SSH (22)Encrypts remote administration
FTP (21)SFTP (22) or FTPS (990)Protects credentials and data
HTTP (80)HTTPS (443)TLS confidentiality and integrity
SNMPv1/v2c (161)SNMPv3Adds authentication and encryption
LDAP (389)LDAPS (636) / StartTLSProtects directory queries

Worked Firewall and Failure Scenarios

ScenarioPort/protocol focus
Securely administer a switch CLISSH, TCP 22
Clients cannot obtain a DHCP lease across a routerUDP 67/68 plus a DHCP relay/IP helper
Monitoring system cannot poll interface counters securelySNMPv3, UDP 161
Internal portal must protect credentialsHTTPS, TCP 443
Directory bind exposes credentials in captureLDAPS, TCP 636, or StartTLS

If a firewall allows TCP 443 but a web app still fails, confirm DNS (53) and that the server is actually listening on 443; a missing rule and a stopped service look identical from the client. Anchor every port to an operational story, that is how they appear on the test.

A handful of dependencies between these protocols generate exam questions on their own. NTP (UDP 123) is foundational: if device clocks drift, Kerberos (88) authentication fails because tickets are time-stamped, TLS certificates appear invalid, and log correlation across devices becomes useless, so a wave of seemingly unrelated auth and certificate errors often traces back to a single bad time source. DNS (53) underpins almost everything by name, so a DNS outage masquerades as a total network failure even though IP connectivity is fine, a fast check is to ping by IP address versus by name.

DHCP (UDP 67/68) is broadcast-based and therefore subnet-local, so cross-subnet leasing depends on a relay. Building these cause-and-effect chains, rather than memorizing isolated numbers, is what carries you through the multi-step firewall and troubleshooting items that dominate this objective.

Test Your Knowledge

An administrator must remotely manage a router's command line while encrypting credentials in transit, replacing an insecure legacy protocol. Which protocol and port fit best?

A
B
C
D
Test Your Knowledge

Clients on a remote subnet cannot obtain IP addresses, while clients on the DHCP server's own subnet work fine. Besides UDP 67/68, what is most likely missing?

A
B
C
D
Test Your KnowledgeMulti-Select

Which protocol-and-port pairings are correct? Select all that apply.

Select all that apply

DNS uses port 53
HTTPS uses port 443
DHCP uses UDP ports 67 and 68
RDP uses port 25
SSH uses port 22
Test Your KnowledgeMatching

Match each requirement to the best protocol choice.

Match each item on the left with the correct item on the right

1
Encrypted web application access
2
Secure remote CLI administration
3
Dynamic IP address leasing
4
Clock synchronization across devices
5
Encrypted directory queries