Reference · 4 min read

TCP and UDP ports every network engineer should memorize

Network engineers spend their careers troubleshooting connectivity, configuring firewalls, and designing secure systems. A solid grasp of common TCP and UDP ports is foundational to all three. Whether you are preparing for CCNA, NSE, or managing production infrastructure, knowing which ports carry which traffic prevents costly misconfigurations and speeds diagnosis during incidents. This guide covers the ports you should recognize instantly.

The well-known ports: 0 to 1023

Well-known ports, reserved by IANA, handle core network and application services. These are the ones that appear in every certification exam and real-world deployment. Commit these to memory first.

Registered ports: 1024 to 49151

Registered ports are assigned to specific applications but are not restricted to privileged use. You will encounter these frequently in enterprise networks.

Dynamic and private ports: 49152 to 65535

Dynamic ports are used for ephemeral connections and are not assigned to specific services. However, certain ranges are commonly reserved for internal use. These ports are typically assigned by the operating system to client connections.

When you see traffic on ports above 49151, you are usually looking at client-side connections responding to server requests on well-known or registered ports. Firewall rules often permit return traffic on the entire dynamic range to simplify stateful inspection.

TCP versus UDP: when and why

TCP provides reliable, ordered delivery with connection setup and teardown. Use it when data integrity is critical: email, web, file transfer, remote access. UDP is connectionless and fast, accepting occasional packet loss. Use it for real-time traffic: DNS queries, VoIP, video streaming, SNMP queries.

Some services run on both. DNS, for example, uses UDP port 53 for standard queries but falls back to TCP port 53 for zone transfers and responses exceeding 512 bytes. LDAP similarly supports both TCP and UDP on port 389, though TCP is more common in practice.

Practical tips for memorization and troubleshooting

Mastering these ports accelerates your ability to design networks, diagnose faults, and configure security policies. Print a reference sheet, use it daily in your lab, and the numbers will become automatic. For a complete, searchable reference organized by port number, protocol, and service, use the Elematron Port Reference tool below.

The infrastructure ports network engineers hit most

General port lists lean towards application services. These are the ones that turn up in routing, VPN and device-management work, and they are worth knowing on sight.

Port Reference
Free searchable database of TCP and UDP ports by number, protocol, and service.
Open →
Practise this on today’s Daily Ops Drill — a free network task every day.
Open the app →
Free tools for this
More from the blog
Writing least-privilege firewall rules without breaking the appRead →Subnetting on the Fortinet NSE4 exam: what to expectRead →