Exam Center · Ports & Protocols

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.

CCNA 200-301 v1.1 Domain 1.0 / 4.0 / 5.0 Verified 2026-10-11

Master port table

Well-known ports are 0–1023; registered ports are 1024–49151. Where a service uses both transports, both are listed.

PortProtocol / serviceTransportPurpose
20FTP dataTCPActive-mode data transfer for File Transfer Protocol.
21FTP controlTCPFTP command and control channel.
22SSH (and SFTP, SCP)TCPEncrypted remote login and secure file copy.
23TelnetTCPUnencrypted remote login; avoid in production.
25SMTPTCPSending and relaying email.
49TACACS+TCPCisco AAA for device administration.
53DNSUDP (queries) / TCP (zone transfer, large replies)Name resolution.
67DHCP serverUDPServer side of DHCPv4 address assignment.
68DHCP clientUDPClient side of DHCPv4 address assignment.
69TFTPUDPSimple file transfer for configs and IOS images.
80HTTPTCPUnencrypted web traffic.
110POP3TCPDownloading email (typically deletes from server).
123NTPUDPClock synchronisation.
143IMAPTCPAccessing email while leaving it on the server.
161SNMP agentUDPManager polls/gets and sets on the agent.
162SNMP trapUDPAgent sends unsolicited traps to the manager.
389LDAPTCP / UDPDirectory services (often secured by LDAPS 636).
443HTTPSTCPHTTP over TLS.
514SyslogUDPLogging messages to a collector.
546DHCPv6 clientUDPClient side of DHCPv6.
547DHCPv6 serverUDPServer side of DHCPv6.
1812RADIUS authenticationUDPAAA authentication and authorisation.
1813RADIUS accountingUDPAAA accounting records.
5246CAPWAP controlUDPController-to-AP control channel.
5247CAPWAP dataUDPController-to-AP data tunnel.
Exam tip The classic confusions are FTP 20/21, SNMP 161/162, DHCPv4 67/68 versus DHCPv6 546/547, and RADIUS 1812/1813 versus TACACS+ 49. Learn the pairs as pairs, and note that DNS, SNMP, NTP, TFTP, DHCP, and syslog are UDP while SSH, Telnet, SMTP, FTP, HTTP, HTTPS, and TACACS+ are TCP.

Protocol notes & pairings

TCP vs UDP

AspectTCPUDP
ConnectionConnection-oriented (three-way handshake)Connectionless
ReliabilityReliable: sequence numbers, acknowledgements, retransmissionBest-effort, no acknowledgement
OrderingReassembles data in orderNo guaranteed ordering
OverheadLarger header (20 bytes minimum)Smaller header (8 bytes)
Flow / congestion controlWindow-based flow and congestion controlNone built in
Typical usesWeb, email, file transfer, SSH, DNS zone transferVoice, 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.

Definition — socket An IP address and a transport-layer port number. A TCP connection is identified by four values: source IP, source port, destination IP, and destination port.

Self-test (12 questions)

Port and protocol recall
  1. Which port does SSH use?

    • 23
    • 22
    • 443
    • 21

    SSH uses TCP 22. Telnet is 23, HTTPS is 443, and FTP control is 21.

  2. 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.

  3. 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.

  4. 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).

  5. Which port does SMTP use?

    • 110
    • 25
    • 143
    • 443

    SMTP uses TCP 25. POP3 is 110 and IMAP is 143 for retrieving mail.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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

  1. IANA. Service Name and Transport Protocol Port Number Registry. iana.org.
  2. Cisco. CCNA (200-301) Exam Topics, IP Services and Security Fundamentals. cisco.com.
  3. Postel, J. & Reynolds, J. RFC 1700: Assigned Numbers (1994). rfc-editor.org/rfc/rfc1700.
  4. 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.