Octet

Rattle off the well-known ports an interviewer expects you to know, with TCP or UDP for each.

Show the answer

Say this first

FTP 20 and 21, SSH 22, Telnet 23, SMTP 25, DNS 53 on UDP and TCP, DHCP 67 and 68 UDP, TFTP 69 UDP, HTTP 80, POP3 110, NTP 123 UDP, IMAP 143, SNMP 161 and 162 UDP, BGP 179 TCP, LDAP 389, HTTPS 443 on TCP and on UDP for QUIC, SMB 445, IKE 500 UDP, syslog 514 UDP, RDP 3389, RADIUS 1812 and 1813 UDP, TACACS+ 49 TCP.

Go deeper

Network engineer's list

PortProtoService
20, 21TCPFTP data, FTP control
22TCPSSH, SCP, SFTP
23TCPTelnet
25, 587, 465TCPSMTP relay, mail submission, submission over implicit TLS
49TCPTACACS+
53UDP, TCPDNS (853 TCP for DNS over TLS)
67, 68UDPDHCP server, DHCP client
69UDPTFTP
80, 443TCPHTTP, HTTPS
443UDPQUIC and HTTP/3
110, 995TCPPOP3, POP3S
123UDPNTP
143, 993TCPIMAP, IMAPS
161, 162UDPSNMP queries, SNMP traps and informs
179TCPBGP
389, 636TCPLDAP, LDAPS
445TCPSMB
500, 4500UDPIKE, IPsec NAT traversal
514UDPSyslog (6514 TCP for syslog over TLS)
520UDPRIP
646TCP, UDPLDP sessions, LDP discovery
830TCPNETCONF over SSH
1812, 1813UDPRADIUS authentication, accounting (old: 1645, 1646)
1985UDPHSRP
3389TCPRDP
3784UDPBFD single-hop control
4789UDPVXLAN
5060, 5061UDP, TCPSIP, SIP over TLS

Protocols that are not ports

These ride directly on IP and are matched by protocol number: ICMP 1, TCP 6, UDP 17, GRE 47, ESP 50, AH 51, EIGRP 88, OSPF 89, VRRP 112.

Traps

  • Giving a port number for OSPF, EIGRP, GRE or ESP. They are IP protocol numbers.
  • Saying SNMP traps go to 161. Agents listen on 161; managers receive traps and informs on 162.