Ports & Protocols Reference
A single master table of the well-known and registered ports the CCNA exam expects you to know, plus the TCP-versus-UDP contrast and a twelve-question self-test. Port numbers are memorisation — practise until they are automatic.
Master port table
Well-known ports are 0–1023; registered ports are 1024–49151. Where a service uses both transports, both are listed.
| Port | Protocol / service | Transport | Purpose |
|---|---|---|---|
| 20 | FTP data | TCP | Active-mode data transfer for File Transfer Protocol. |
| 21 | FTP control | TCP | FTP command and control channel. |
| 22 | SSH (and SFTP, SCP) | TCP | Encrypted remote login and secure file copy. |
| 23 | Telnet | TCP | Unencrypted remote login; avoid in production. |
| 25 | SMTP | TCP | Sending and relaying email. |
| 49 | TACACS+ | TCP | Cisco AAA for device administration. |
| 53 | DNS | UDP (queries) / TCP (zone transfer, large replies) | Name resolution. |
| 67 | DHCP server | UDP | Server side of DHCPv4 address assignment. |
| 68 | DHCP client | UDP | Client side of DHCPv4 address assignment. |
| 69 | TFTP | UDP | Simple file transfer for configs and IOS images. |
| 80 | HTTP | TCP | Unencrypted web traffic. |
| 110 | POP3 | TCP | Downloading email (typically deletes from server). |
| 123 | NTP | UDP | Clock synchronisation. |
| 143 | IMAP | TCP | Accessing email while leaving it on the server. |
| 161 | SNMP agent | UDP | Manager polls/gets and sets on the agent. |
| 162 | SNMP trap | UDP | Agent sends unsolicited traps to the manager. |
| 389 | LDAP | TCP / UDP | Directory services (often secured by LDAPS 636). |
| 443 | HTTPS | TCP | HTTP over TLS. |
| 514 | Syslog | UDP | Logging messages to a collector. |
| 546 | DHCPv6 client | UDP | Client side of DHCPv6. |
| 547 | DHCPv6 server | UDP | Server side of DHCPv6. |
| 1812 | RADIUS authentication | UDP | AAA authentication and authorisation. |
| 1813 | RADIUS accounting | UDP | AAA accounting records. |
| 5246 | CAPWAP control | UDP | Controller-to-AP control channel. |
| 5247 | CAPWAP data | UDP | Controller-to-AP data tunnel. |
Protocol notes & pairings
- FTP 20/21 — port 21 is always the control channel; port 20 carries data in active mode. Passive mode uses a negotiated high port instead.
- SSH 22 — also carries SFTP and SCP. Replacing Telnet 23 is a baseline hardening step.
- DNS 53 — UDP for normal queries, TCP for zone transfers (AXFR/IXFR) and responses too large for UDP.
- DHCP 67/68 — server listens on 67, client on 68. DHCP relay
(
ip helper-address) forwards client broadcasts to a remote server. - SNMP 161/162 — the manager polls 161; traps go to 162. SNMPv3 adds authentication and privacy.
- RADIUS 1812/1813 vs TACACS+ 49 — RADIUS is open, uses UDP, and combines authentication and authorisation; TACACS+ is Cisco proprietary, uses TCP, and separates AAA.
- CAPWAP 5246/5247 — control and data channels between a WLC and lightweight access points.
TCP vs UDP
| Aspect | TCP | UDP |
|---|---|---|
| Connection | Connection-oriented (three-way handshake) | Connectionless |
| Reliability | Reliable: sequence numbers, acknowledgements, retransmission | Best-effort, no acknowledgement |
| Ordering | Reassembles data in order | No guaranteed ordering |
| Overhead | Larger header (20 bytes minimum) | Smaller header (8 bytes) |
| Flow / congestion control | Window-based flow and congestion control | None built in |
| Typical uses | Web, email, file transfer, SSH, DNS zone transfer | Voice, video, DNS queries, DHCP, TFTP, SNMP, NTP |
Ports and sockets
A host identifies an application conversation by the pairing of an IP address and a port, called a socket. The source port is chosen by the originating host (often a high ephemeral port) and the destination port identifies the service being contacted. A connection is uniquely described by the four-tuple of source IP, source port, destination IP, and destination port.
Self-test (12 questions)
-
Which port does SSH use?
- 23
- 22
- 443
- 21
SSH uses TCP 22. Telnet is 23, HTTPS is 443, and FTP control is 21.
-
Which two ports belong to FTP control and data?
- 22 and 23
- 80 and 443
- 21 and 20
- 161 and 162
FTP control is TCP 21 and active-mode data is TCP 20. Passage mode negotiates a different high port for data.
-
Which transport and port does DNS typically use for a normal name query?
- UDP 53
- TCP 53 only
- UDP 67
- TCP 110
DNS uses UDP 53 for normal queries and TCP 53 for zone transfers and large responses.
-
Which ports does DHCPv4 use for server and client?
- 68 server, 67 client
- 546 server, 547 client
- 67 and 68 both servers
- 67 server, 68 client
DHCPv4 servers listen on UDP 67 and clients on UDP 68. DHCPv6 uses 546 (client) and 547 (server).
-
Which port does SMTP use?
- 110
- 25
- 143
- 443
SMTP uses TCP 25. POP3 is 110 and IMAP is 143 for retrieving mail.
-
Which ports does SNMP use?
- 161 for traps, 162 for polls
- 514 for both
- 161 for polls, 162 for traps
- 123 for both
The manager queries the agent on UDP 161; the agent sends traps to UDP 162.
-
Which port does TFTP use?
- UDP 69
- TCP 69
- UDP 21
- TCP 22
TFTP is a simple UDP 69 file transfer service, commonly used to back up IOS configs and images.
-
Which ports does RADIUS use?
- TCP 49
- UDP 49
- TCP 1812/1813
- UDP 1812/1813
RADIUS uses UDP 1812 for authentication and 1813 for accounting. TACACS+ uses TCP 49.
-
Which protocol uses TCP 49?
- RADIUS
- TACACS+
- LDAP
- Kerberos
TACACS+ is Cisco proprietary and uses TCP 49, encrypting the entire packet and separating AAA functions.
-
Which ports does CAPWAP use?
- 80 and 443
- 161 and 162
- 5246 and 5247
- 546 and 547
CAPWAP control is UDP 5246 and data is UDP 5247. It connects lightweight APs to a WLC.
-
Why does voice prefer UDP over TCP?
- UDP has lower latency and no retransmission delay, which matters more than perfect delivery for real-time media.
- UDP is encrypted by default.
- UDP guarantees delivery.
- UDP uses larger headers.
Real-time voice cannot wait for retransmissions, so UDP's best-effort, low-overhead delivery is preferable. Lost voice packets are simply dropped.
-
A conversation is uniquely identified by which four values?
- Two MAC addresses and two VLANs
- Two IP addresses only
- Two port numbers only
- Source IP, source port, destination IP, destination port
The four-tuple of source IP, source port, destination IP, and destination port uniquely identifies a TCP connection and lets a host multiplex many sessions.
Sources & references
- IANA. Service Name and Transport Protocol Port Number Registry. iana.org.
- Cisco. CCNA (200-301) Exam Topics, IP Services and Security Fundamentals. cisco.com.
- Postel, J. & Reynolds, J. RFC 1700: Assigned Numbers (1994). rfc-editor.org/rfc/rfc1700.
- IETF. RFC 5415: Control And Provisioning of Wireless Access Points (CAPWAP) (2009). rfc-editor.org/rfc/rfc5415.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.