Ports And Protocols Flashcards

(36 cards)

2
Q

What is a port in networking?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the port number ranges?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are ephemeral ports used for?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between TCP and UDP?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What port does HTTPS use?

A

443 (TCP) – HTTPS (Hypertext Transfer Protocol Secure) uses TLS/SSL to encrypt web traffic between a browser and a web server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What port does HTTP use?

A

80 (TCP) – HTTP (Hypertext Transfer Protocol) is used for unencrypted web traffic and is the foundation of data communication on the web.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What port does SSL VPN (OpenVPN) use?

A

1194 (UDP) – OpenVPN uses SSL/TLS encryption to provide secure remote access via a VPN tunnel over the internet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What port does SFTP use?

A

22 (TCP) – SFTP (Secure File Transfer Protocol) uses SSH (Secure Shell) to securely transfer files over a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What port does FTPS use?

A

990 (TCP) – FTPS (File Transfer Protocol Secure) adds SSL/TLS encryption to traditional FTP for secure file transfers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What port does SSH use?

A

22 (TCP) – SSH (Secure Shell) provides encrypted remote login and command-line access.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What port does Telnet use?

A

23 (TCP) – Telnet allows remote command-line access but lacks encryption, making it insecure for sensitive data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What ports does FTP use?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What port does TFTP use?

A

69 (UDP) – TFTP (Trivial File Transfer Protocol) is a lightweight protocol used for simple, unauthenticated file transfers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What port does SMB use?

A

445 (TCP) – SMB (Server Message Block) is used primarily for Windows file and printer sharing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What port does AFP use?

A

548 (TCP) – AFP (Apple Filing Protocol) enables file sharing between macOS systems over a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What port does NFS use?

A

2049 (TCP) – NFS (Network File System) allows file sharing over a network, mainly used in Unix/Linux environments.

18
Q

What ports does SMTP use?

A

25 (TCP) for basic mail sending, 587 (TCP) for mail submission with STARTTLS – SMTP (Simple Mail Transfer Protocol) is used to send emails.

19
Q

What port does POP3 use?

A

110 (TCP) – POP3 (Post Office Protocol version 3) is used to retrieve and download emails from a mail server.

20
Q

What port does POP3S use?

A

995 (TCP) – POP3S is the secure version of POP3 using SSL/TLS encryption.

21
Q

What port does IMAP use?

A

143 (TCP) – IMAP (Internet Message Access Protocol) enables users to access and manage email messages on the mail server.

22
Q

What port does IMAPS use?

A

993 (TCP) – IMAPS is the secure version of IMAP using SSL/TLS encryption for email access.

23
Q

What port does DNS use?

A

53 (UDP for queries, TCP for zone transfers) – DNS (Domain Name System) resolves domain names to IP addresses.

24
Q

What port does RDP use?

A

3389 (TCP/UDP) – RDP (Remote Desktop Protocol) allows remote graphical access to Windows machines.

25
Q

What ports does SNMP use?

A

161 (UDP) for polling, 162 (UDP) for traps – SNMP (Simple Network Management Protocol) is used to monitor and manage network devices.

26
What ports does NetBIOS use?
137-139 (TCP/UDP) – NetBIOS (Network Basic Input/Output System) supports file and printer sharing on legacy Windows networks.
27
What ports does SIP use?
5060 (UDP/TCP) for unencrypted, 5061 (TCP) for secure – SIP (Session Initiation Protocol) is used for initiating VoIP and multimedia sessions.
28
What port does L2TP use?
1701 (UDP) – L2TP (Layer 2 Tunneling Protocol) is used with IPsec for secure VPN connections.
29
What port does PPTP use?
1723 (TCP) – PPTP (Point-to-Point Tunneling Protocol) is an older VPN protocol with known vulnerabilities.
30
What port does IKEv2 use?
500 (UDP) – IKEv2 (Internet Key Exchange version 2) is used with IPsec to establish secure VPN tunnels.
31
What ports does DHCP use?
Ports 67 (server) & 68 (client) – DHCP (Dynamic Host Configuration Protocol) automatically assigns IP configurations like IP address, subnet mask, and gateway.
32
What port does NTP use?
Port 123 (UDP) – NTP (Network Time Protocol) synchronizes clocks across devices, critical for logs, security, and scheduling.
33
What port does SMTPS use?
Port 587 (TCP) – SMTP Secure with STARTTLS adds encryption to email submissions (TLS).
34
What port does LDAPS use?
Port 636 (TCP) – LDAPS (Lightweight Directory Access Protocol Secure) encrypts directory queries with SSL/TLS.
35
What port does Syslog use?
Port 514 (UDP) – Syslog standard in-band messaging for logging events from network devices to centralized servers.
36
What port does SQL Server use?
Port 1433 (TCP) – MS-SQL server communication, used for structured database queries.
37
What port does MySQL use?
Port 3306 (TCP) – Default port for MySQL database connections.