Common Ports
Importance of Port Numbers in Networking
Port numbers are crucial for TCP and UDP communication, especially while addressing services.
Knowledge of port numbers aids in troubleshooting communications issues.
Needed for firewall configuration, as firewalls use TCP and UDP port numbers to permit or deny network traffic.
Memorization of Port Numbers
Memorizing port numbers can be tedious, but becomes intuitive with usage in applications, firewall configurations, and troubleshooting.
Understanding both the port numbers and their associated protocols, as well as their significance in networking, is essential for A-plus studies.
FTP (File Transfer Protocol)
Port Numbers:
TCP Port 20: Active data transfer
TCP Port 21: Administration or control port
Functionality:
FTP is a generic file transfer protocol applicable across various operating systems.
Full-featured protocol allowing file transfers, directory listings, file management (addition, deletion, renaming), and administrative tasks.
Authentication:
Requires authentication via username/password or can permit anonymous login.
Secure Shell (SSH)
Port Number: TCP Port 22
Purpose:
Provides an encrypted communication link for secure remote command line access.
Similar functionality to Telnet but includes encryption, making it the preferred choice.
Telnet (Telecommunications Network):
Port Number: TCP Port 23
Deprecated due to lack of encryption; should only be used on legacy systems that don’t support SSH.
Email Protocols
SMTP (Simple Mail Transfer Protocol):
Port Number: TCP Port 25
Used primarily for sending emails between servers and configurations on local devices to send data to the mail server.
Receiving Emails:
Protocols: IMAP or POP3
DNS (Domain Name System)
Port Number: UDP Port 53
Functionality:
Translates fully qualified domain names (e.g., www.professormesser.com) into usable IP addresses (e.g., 162.159.246.164).
Essential for web browsing and inherently redundant via multiple DNS servers.
DHCP (Dynamic Host Configuration Protocol)
Port Numbers: UDP Port 67 (server), UDP Port 68 (client)
Functionality:
Automatically configures IP addresses, subnet masks, default gateways, and DNS servers.
Allocates a pool of IP addresses from which devices request and lease an IP.
Supports manual reservation of IP addresses for specific devices.
HTTP and HTTPS
HTTP (Hypertext Transfer Protocol):
Port Number: TCP Port 80
HTTPS (HTTP Secure):
Port Number: TCP Port 443
Comparison:
HTTP transmits data unencrypted, whereas HTTPS ensures encrypted web communication, increasingly employed on websites.
Email Retrieval Protocols
POP3 (Post Office Protocol version 3):
Port Number: TCP Port 110
Fetches emails from the server to a local client.
IMAP (Internet Message Access Protocol version 4):
Port Number: TCP Port 143
More advanced than POP3, allows management of the inbox across multiple clients, including folder management and synchronization.
SMB (Server Message Block)
Also referred to as CIFS (Common Internet File System).
Used for file transfers and communications between Windows devices.
Legacy Protocols - NetBIOS
Ports Used:
UDP Port 137: NetBIOS name service (similar to DNS)
TCP Port 139: Session establishment for file transfers
Modern Usage:
Many modern Windows systems use direct IP communication, bypassing NetBIOS (TCP Port 445).
LDAP and LDAPS (Lightweight Directory Access Protocol)
Port Number: TCP Port 389 (LDAP), secure version uses LDAPS.
Functionality:
Accesses directories containing user and device information, organized into categories (Organizational Units, Common Names).
Active Directory:
Common application of LDAP, provides a structured directory service.
RDP (Remote Desktop Protocol)
Port Number: TCP Port 3389
Functionality:
Allows remote access to Windows desktops, enabling control or single application operation from different operating systems (Windows, Mac OS, Linux, iPhone, etc).
Real-world Application:
Essential in troubleshooting and managing remote users without physical presence.