Ports And Protocols Flashcards
(36 cards)
What is a port in networking?
A port is a virtual endpoint used by devices to distinguish between multiple services or applications running on the same IP address. Ports ensure that data reaches the correct program.
What are the port number ranges?
0–1023 (Well-Known Ports): Used for common services like HTTP (80), HTTPS (443), and FTP (21).
1024–49151 (Registered Ports): Assigned to software vendors for specific applications.
49152–65535 (Dynamic or Ephemeral Ports): Used temporarily by client devices for outbound connections.
What are ephemeral ports used for?
Ephemeral ports are short-lived ports automatically assigned to client applications when they initiate a connection to a server. They’re essential for managing multiple simultaneous sessions, like browsing multiple websites.
What is the difference between TCP and UDP?
TCP (Transmission Control Protocol): Reliable, connection-oriented protocol that ensures all data is received in order and without error. Used for services like HTTPS, SSH, and FTP.
UDP (User Datagram Protocol): Faster, connectionless protocol that doesn’t guarantee delivery. Used for applications where speed matters more than reliability, such as DNS queries, VoIP, and video streaming.
What port does HTTPS use?
443 (TCP) – HTTPS (Hypertext Transfer Protocol Secure) uses TLS/SSL to encrypt web traffic between a browser and a web server.
What port does HTTP use?
80 (TCP) – HTTP (Hypertext Transfer Protocol) is used for unencrypted web traffic and is the foundation of data communication on the web.
What port does SSL VPN (OpenVPN) use?
1194 (UDP) – OpenVPN uses SSL/TLS encryption to provide secure remote access via a VPN tunnel over the internet.
What port does SFTP use?
22 (TCP) – SFTP (Secure File Transfer Protocol) uses SSH (Secure Shell) to securely transfer files over a network.
What port does FTPS use?
990 (TCP) – FTPS (File Transfer Protocol Secure) adds SSL/TLS encryption to traditional FTP for secure file transfers.
What port does SSH use?
22 (TCP) – SSH (Secure Shell) provides encrypted remote login and command-line access.
What port does Telnet use?
23 (TCP) – Telnet allows remote command-line access but lacks encryption, making it insecure for sensitive data.
What ports does FTP use?
21 (TCP) for control commands and 20 (TCP) for data transfer – FTP (File Transfer Protocol) is used to transfer files over a network without encryption.
What port does TFTP use?
69 (UDP) – TFTP (Trivial File Transfer Protocol) is a lightweight protocol used for simple, unauthenticated file transfers.
What port does SMB use?
445 (TCP) – SMB (Server Message Block) is used primarily for Windows file and printer sharing.
What port does AFP use?
548 (TCP) – AFP (Apple Filing Protocol) enables file sharing between macOS systems over a network.
What port does NFS use?
2049 (TCP) – NFS (Network File System) allows file sharing over a network, mainly used in Unix/Linux environments.
What ports does SMTP use?
25 (TCP) for basic mail sending, 587 (TCP) for mail submission with STARTTLS – SMTP (Simple Mail Transfer Protocol) is used to send emails.
What port does POP3 use?
110 (TCP) – POP3 (Post Office Protocol version 3) is used to retrieve and download emails from a mail server.
What port does POP3S use?
995 (TCP) – POP3S is the secure version of POP3 using SSL/TLS encryption.
What port does IMAP use?
143 (TCP) – IMAP (Internet Message Access Protocol) enables users to access and manage email messages on the mail server.
What port does IMAPS use?
993 (TCP) – IMAPS is the secure version of IMAP using SSL/TLS encryption for email access.
What port does DNS use?
53 (UDP for queries, TCP for zone transfers) – DNS (Domain Name System) resolves domain names to IP addresses.
What port does RDP use?
3389 (TCP/UDP) – RDP (Remote Desktop Protocol) allows remote graphical access to Windows machines.
What ports does SNMP use?
161 (UDP) for polling, 162 (UDP) for traps – SNMP (Simple Network Management Protocol) is used to monitor and manage network devices.