FTP Port and Wireshark Filtering
- 31Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What port number does FTP use for control connections?
What port number does FTP use for control connections?
31 questions
- 1
What port number does FTP use for control connections?
- A
Port 21
- B
Port 20
- C
Port 22
- D
Port 23
Correct answer
APort 21
Explanation
FTP uses port 21 for control connections. Data transfers may use port 20 or other dynamically assigned ports.
- A
- 2
In Wireshark, what is the difference between filtering with the protocol name (e.g., 'ftp') versus filtering with the port number (e.g., 'tcp.port == 21')?
- A
The protocol filter is faster because it bypasses the TCP layer.
- B
The protocol filter shows only packets that carry application data; the port filter shows all TCP packets involving that port, including handshakes.
- C
There is no difference; both filters return identical results.
- D
The protocol filter shows all packets belonging to that application, including handshakes; the port filter shows only packets with data payload.
Correct answer
BThe protocol filter shows only packets that carry application data; the port filter shows all TCP packets involving that port, including handshakes.
Explanation
Filtering by protocol name (e.g., 'ftp') shows only packets recognized as that protocol's payload. Filtering by port number (e.g., 'tcp.port == 21') shows all TCP packets on that port, including handshakes and acknowledgments.
- A
- 3
Which protocol is clear text and allows reading login credentials directly from captured packets?
- A
HTTPS
- B
SNMP
- C
SSH
- D
FTP
Correct answer
DFTP
Explanation
FTP transmits data, including usernames and passwords, in clear text, making it readable if captured.
- A
- 4
What port does SSH use?
- A
Port 3389
- B
Port 443
- C
Port 23
- D
Port 22
Correct answer
DPort 22
Explanation
SSH (Secure Shell) uses port 22 by default.
- A
- 5
Why is SSH preferred over Telnet for remote administration?
- A
SSH uses UDP which is more reliable.
- B
SSH is faster than Telnet.
- C
SSH encrypts all traffic, while Telnet sends everything in clear text.
- D
SSH is easier to configure on network devices.
Correct answer
CSSH encrypts all traffic, while Telnet sends everything in clear text.
Explanation
SSH provides encrypted communication, protecting against eavesdropping. Telnet transmits all data, including login credentials, in clear text, making it insecure.
- A
- 6
What port number is associated with Telnet?
- A
Port 23
- B
Port 21
- C
Port 25
- D
Port 22
Correct answer
APort 23
Explanation
Telnet operates on port 23.
- A
- 7
In the Telnet session shown in the trace, what is observed when a user types a character on the client?
- A
The character is sent only once and displayed locally.
- B
The character is echoed back by the server in a separate packet.
- C
The character is encrypted before transmission.
- D
The character is sent only after the user presses Enter.
Correct answer
BThe character is echoed back by the server in a separate packet.
Explanation
Telnet echoes each character from the server back to the client, so each keypress results in two packets: one from client to server and one from server to client echoing the character.
- A
- 8
What is the default port for SMTP?
- A
Port 143
- B
Port 25
- C
Port 587
- D
Port 110
Correct answer
BPort 25
Explanation
SMTP traditionally uses port 25 for sending email. Port 587 is used for secure submission (SMTP with TLS).
- A
- 9
Which email protocol is used to send email from a client to a mail server?
- A
POP3
- B
IMAP
- C
SMTP
- D
HTTP
Correct answer
CSMTP
Explanation
SMTP (Simple Mail Transfer Protocol) is used for sending email. POP3 and IMAP are used for retrieving email from a server.
- A
- 10
What are the ports for unencrypted and encrypted POP3?
- A
110 (unencrypted) and 995 (encrypted)
- B
25 (unencrypted) and 587 (encrypted)
- C
143 (unencrypted) and 993 (encrypted)
- D
110 (unencrypted) and 443 (encrypted)
Correct answer
A110 (unencrypted) and 995 (encrypted)
Explanation
POP3 uses port 110 for unencrypted traffic and port 995 for encrypted traffic with TLS.
- A
- 11
What are the ports for unencrypted and encrypted IMAP?
- A
143 (unencrypted) and 995 (encrypted)
- B
110 (unencrypted) and 995 (encrypted)
- C
143 (unencrypted) and 993 (encrypted)
- D
25 (unencrypted) and 587 (encrypted)
Correct answer
C143 (unencrypted) and 993 (encrypted)
Explanation
IMAP uses port 143 for unencrypted traffic and port 993 for encrypted traffic with TLS.
- A
- 12
In the trace file, what is observed when SMTP uses TLS on port 25?
- A
The traffic is fully encrypted from the very first packet.
- B
The initial SMTP handshake is clear text, but the email content is encrypted after STARTTLS.
- C
The connection is rejected because TLS is not allowed on port 25.
- D
The entire SMTP conversation remains clear text.
Correct answer
BThe initial SMTP handshake is clear text, but the email content is encrypted after STARTTLS.
Explanation
When SMTP uses TLS on port 25, the initial greeting and STARTTLS command are in clear text, then the session upgrades to encryption, making subsequent data unreadable.
- A
- 13
What port does DNS primarily use, and what transport protocol is typically used?
- A
Port 53, UDP
- B
Port 53, both UDP and TCP equally
- C
Port 53, TCP
- D
Port 5353, UDP
Correct answer
APort 53, UDP
Explanation
DNS primarily uses UDP port 53. It can also use TCP for zone transfers or large responses, but standard queries are UDP.
- A
- 14
What is the primary function of DNS?
- A
Assign IP addresses to devices on a network
- B
Provide secure remote access to servers
- C
Translate domain names to IP addresses
- D
Synchronize time across network devices
Correct answer
CTranslate domain names to IP addresses
Explanation
DNS (Domain Name System) resolves human-readable domain names (e.g., ) to IP addresses that computers use to communicate.
- A
- 15
What are the ports used by DHCP?
- A
Port 69 (server) and port 70 (client)
- B
Port 67 (server) and port 68 (client)
- C
Port 53 (server) and port 54 (client)
- D
Port 68 (server) and port 67 (client)
Correct answer
BPort 67 (server) and port 68 (client)
Explanation
DHCP uses UDP port 67 for the server and port 68 for the client.
- A
- 16
What are the four packets involved in a typical DHCP process?
- A
Hello, Offer, Request, Done
- B
Solicit, Advertise, Request, Confirm
- C
Discover, Offer, Accept, Verify
- D
Discover, Offer, Request, Acknowledge
Correct answer
DDiscover, Offer, Request, Acknowledge
Explanation
The standard DHCP handshake consists of four messages: Discover (client broadcasts), Offer (server replies), Request (client requests offered IP), and Acknowledge (server confirms).
- A
- 17
Which of the following can be provided by a DHCP server to a client?
- A
Domain name, time zone, and email server
- B
IP address, subnet mask, and only DNS server
- C
IP address, subnet mask, default gateway, and DNS server
- D
IP address, MAC address, and hostname
Correct answer
CIP address, subnet mask, default gateway, and DNS server
Explanation
DHCP typically provides an IP address, subnet mask, default gateway, DNS server, and lease time. It can also provide other options like domain name.
- A
- 18
What port does TFTP use?
- A
Port 21
- B
Port 69
- C
Port 161
- D
Port 80
Correct answer
BPort 69
Explanation
TFTP (Trivial File Transfer Protocol) uses UDP port 69 for its initial control connection.
- A
- 19
How does TFTP differ from FTP in terms of transport protocol?
- A
TFTP uses TCP, FTP uses UDP
- B
TFTP uses UDP, FTP uses TCP
- C
Both use TCP
- D
Both use UDP
Correct answer
BTFTP uses UDP, FTP uses TCP
Explanation
TFTP is built on UDP for simplicity, while FTP uses TCP for reliable, connection-oriented file transfer.
- A
- 20
What port does HTTP use by default?
- A
Port 80
- B
Port 443
- C
Port 4430
- D
Port 8080
Correct answer
APort 80
Explanation
HTTP (Hypertext Transfer Protocol) uses port 80 by default.
- A
- 21
What is true about HTTP traffic when captured with Wireshark?
- A
It is transmitted in clear text
- B
It is encrypted by default
- C
It uses UDP for faster transmission
- D
It automatically compresses all headers
Correct answer
AIt is transmitted in clear text
Explanation
HTTP sends data in clear text, meaning all requests, responses, and headers are readable in a packet capture unless encryption (HTTPS) is used.
- A
- 22
What are the default ports for HTTPS?
- A
TCP 443 and UDP 443 (for QUIC)
- B
TCP 80 and UDP 443
- C
TCP 443 only
- D
UDP 443 only
Correct answer
ATCP 443 and UDP 443 (for QUIC)
Explanation
HTTPS typically uses TCP port 443, but can also use UDP port 443 for HTTP/3 over QUIC.
- A
- 23
What protocol uses port 123?
- A
LDAP
- B
SMB
- C
SNMP
- D
NTP
Correct answer
DNTP
Explanation
NTP (Network Time Protocol) uses UDP port 123 for time synchronization.
- A
- 24
What is the purpose of NTP?
- A
To provide directory services
- B
To manage network devices remotely
- C
To synchronize clocks across network devices
- D
To assign IP addresses to devices
Correct answer
CTo synchronize clocks across network devices
Explanation
NTP allows devices to synchronize their clocks with a time source, ensuring consistent timestamps across the network.
- A
- 25
What port does SNMP use?
- A
Port 69
- B
Port 161
- C
Port 162
- D
Port 389
Correct answer
BPort 161
Explanation
SNMP (Simple Network Management Protocol) typically uses UDP port 161 for queries and traps (port 162 is used for traps).
- A
- 26
What is the primary use of SNMP?
- A
Resolving domain names
- B
Sending email
- C
Transferring files between systems
- D
Monitoring and managing network devices
Correct answer
DMonitoring and managing network devices
Explanation
SNMP is used to collect and organize information about managed devices on IP networks and to modify that information to change device behavior.
- A
- 27
What port does LDAP use?
- A
Port 389
- B
Port 636
- C
Port 443
- D
Port 110
Correct answer
APort 389
Explanation
LDAP (Lightweight Directory Access Protocol) uses port 389 for unencrypted traffic. Port 636 is used for LDAPS (encrypted with TLS).
- A
- 28
What is the function of LDAP?
- A
To synchronize time across devices
- B
To provide directory services and authentication
- C
To transfer files reliably
- D
To encapsulate other protocols for security
Correct answer
BTo provide directory services and authentication
Explanation
LDAP is used to access and maintain distributed directory information services over an IP network, often for authentication and authorization.
- A
- 29
What port does SMB use?
- A
Port 445
- B
Port 443
- C
Port 139
- D
Port 80
Correct answer
APort 445
Explanation
SMB (Server Message Block) typically uses port 445 for direct TCP communication. Older versions also used port 139 over NetBIOS.
- A
- 30
What is the primary purpose of SMB?
- A
To provide secure remote shell access
- B
To provide email retrieval services
- C
To manage network devices via SNMP
- D
To allow file sharing and printer sharing in Windows networks
Correct answer
DTo allow file sharing and printer sharing in Windows networks
Explanation
SMB is used for sharing files, printers, and other resources on a network, especially in Windows environments.
- A
- 31
In Wireshark, what does the 'Follow TCP Stream' feature do?
- A
It creates a new capture file containing only the selected stream.
- B
It filters out all packets except the selected TCP stream and shows only the raw bytes.
- C
It decrypts SSL/TLS traffic automatically.
- D
It reassembles and displays the application-layer data from a TCP conversation in a separate window.
Correct answer
DIt reassembles and displays the application-layer data from a TCP conversation in a separate window.
Explanation
'Follow TCP Stream' extracts the payload from all packets in a TCP conversation and presents it in order, allowing you to see the application data (e.g., clear text of HTTP, SMTP, etc.).
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.