Summary
Highlights
Understanding TCP and UDP port numbers is crucial for troubleshooting communication issues and configuring firewalls. While memorizing them can be tedious, practical application makes them second nature. For A+ studies, it's important to know not just the port number and protocol, but also its purpose and how it's used on the network.
FTP uses TCP port 20 for active data transfer and TCP port 21 for control. It's a versatile protocol for transferring files between different operating systems, supporting authentication (username/password) or anonymous access. FTP allows for full file management, including listing, adding, deleting, and renaming files.
SSH is used for secure command-line administration of remote devices, providing an encrypted communication link over TCP port 22. It's the secure alternative to Telnet, which lacks encryption.
Telnet is an older protocol using TCP port 23 for remote command-line access. While functionally similar to SSH, Telnet transmits all communication in cleartext, making it insecure and generally avoided by modern organizations in favor of SSH.
SMTP uses TCP port 25 for sending email messages between mail servers and for devices to initially send information to an email server. It's a fundamental protocol for email communication.
DNS translates human-readable domain names (e.g., professormesser.com) into IP addresses for network communication, commonly using UDP port 53. Due to its criticality for remembering website names, multiple DNS servers are often used for redundancy.
DHCP automatically assigns IP addresses and configuration parameters (subnet masks, default gateways, DNS servers) to devices on a network, making setup seamless. It uses UDP ports 67 and 68. DHCP servers manage a pool of IP addresses, leasing them to devices and allowing for renewals or static reservations for specific devices.
HTTP facilitates web browsing, sending data over TCP port 80 without encryption. HTTPS (secure) encrypts web communication over TCP port 443, making it the preferred and more prevalent protocol for secure web interactions today.
POP3 (Post Office Protocol version 3) uses TCP port 110 to download emails to a client, typically removing them from the server. IMAP4 (Internet Message Access Protocol version 4) uses TCP port 143, offering more advanced features like managing inboxes across multiple clients and synchronizing folder structures on the server.
SMB/CIFS is a Windows protocol for file transfers, printer queue communication, and inter-Windows device communication. Older Windows versions used NetBIOS over TCP/IP, with UDP port 137 for name service and TCP port 139 for session setup. Modern Windows uses direct SMB over TCP port 445 (NetBIOS-less communication).
LDAP/LDAPS accesses central directories containing information about network resources, users, and devices, using TCP port 389 (LDAP). It helps organize and locate network components, and can be used for authentication. Microsoft's Active Directory heavily utilizes LDAP.
RDP allows remote control and viewing of a desktop, primarily Windows devices, using TCP port 3389. It enables support staff to troubleshoot issues globally, controlling entire computers or launching specific applications from various operating systems like Mac OS, Linux, and mobile devices.