08 - Common Ports - CompTIA A+ 220-1201 - 2.1

Understanding TCP and UDP Port Numbers

  • Importance of Port Numbers

    • Essential for service communication and troubleshooting.

    • Vital for firewall configurations as they determine allowed or blocked traffic.

    • Port numbers are crucial knowledge for A+ studies.

  • Memorization of Port Numbers

    • Can be tedious but becomes easier with practical use in applications and system configurations.

    • Important to not only memorize the port number and protocol but also to understand their importance and usage in the network.

Key TCP and UDP Port Numbers and Protocols

  • FTP (File Transfer Protocol)

    • TCP Port 20: Active data transfer port.

    • TCP Port 21: Administration or control port.

    • Functionality:

    • Used to transfer files between different operating systems.

    • Can also list files in directories, and perform file operations (add, delete, rename).

    • Requires authentication (username, password) but can allow anonymous login.

  • SSH (Secure Shell)

    • TCP Port 22: Port for Secure Shell, which encrypts data transmission for secure remote administration.

    • Compared to Telnet, SSH provides encryption for safety.

  • Telnet

    • TCP Port 23: Used for non-encrypted remote command line access.

    • Major disadvantages:

    • All communications are in plaintext, no encryption.

    • Considered outdated and not recommended compared to SSH.

  • SMTP (Simple Mail Transfer Protocol)

    • TCP Port 25: Utilized for sending email messages from one email server to another.

    • Can also be used for device configuration to send information to email servers.

  • DNS (Domain Name System)

    • UDP Port 53: Handles translation of domain names into IP addresses.

    • Importance:

    • Allows users to remember domain names instead of numerical IP addresses.

    • Requires multiple DNS servers for redundancy.

  • DHCP (Dynamic Host Configuration Protocol)

    • UDP Port 67: For server communication as a DHCP server.

    • UDP Port 68: For client communication back to the DHCP server.

    • Process:

    • Automatically configures devices with IP addresses, subnet masks, default gateways, and DNS servers.

    • Uses a lease mechanism for assigning IP addresses—can renew or release an IP address.

  • HTTP (Hypertext Transfer Protocol)

    • TCP Port 80: Standard port for web traffic without encryption.

    • Used for serving web pages for browsing and communication.

  • HTTPS (Hypertext Transfer Protocol Secure)

    • TCP Port 443: Secure version of HTTP—transmits data encrypted via SSL/TLS.

    • Increasingly common in web communication to protect user data.

  • POP3 (Post Office Protocol Version 3)

    • TCP Port 110: Used for downloading emails from the server to a local email client.

  • IMAP (Internet Message Access Protocol Version 4)

    • TCP Port 143: Provides more advanced features than POP3 for managing email from multiple devices.

    • Allows folder management and synchronization across devices.

  • SMB (Server Message Block)

    • Also known as CIFS (Common Internet File System).

    • Used extensively for file transfers, printer queue handling, and other communication within Windows environments.

  • NetBIOS

    • UDP Port 137: Utilized for NetBIOS name service, similar to DNS.

    • TCP Port 139: Used for setting up sessions for file transfers.

    • TCP Port 445: Modern Windows communications often bypass NetBIOS.

  • LDAP (Lightweight Directory Access Protocol)

    • TCP Port 389: Access protocol for directories on a network.

    • Typical applications include Microsoft Active Directory.

  • RDP (Remote Desktop Protocol)

    • TCP Port 3389: Used for remote access to Windows desktops.

    • Enables viewing and control of remote devices, supports multiple operating systems connecting as clients.