1. Home
  2. Explore
  3. Computer Science
  4. FTP Port and Wireshark Filtering

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

FTP Port and Wireshark Filtering

  • 31Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: FTP

What port number does FTP use for control connections?

31 questions

  1. 1

    What port number does FTP use for control connections?

    1. A

      Port 21

    2. B

      Port 20

    3. C

      Port 22

    4. D

      Port 23

    Correct answer
    A

    Port 21

    Explanation

    FTP uses port 21 for control connections. Data transfers may use port 20 or other dynamically assigned ports.

  2. 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')?

    1. A

      The protocol filter is faster because it bypasses the TCP layer.

    2. B

      The protocol filter shows only packets that carry application data; the port filter shows all TCP packets involving that port, including handshakes.

    3. C

      There is no difference; both filters return identical results.

    4. D

      The protocol filter shows all packets belonging to that application, including handshakes; the port filter shows only packets with data payload.

    Correct answer
    B

    The 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.

  3. 3

    Which protocol is clear text and allows reading login credentials directly from captured packets?

    1. A

      HTTPS

    2. B

      SNMP

    3. C

      SSH

    4. D

      FTP

    Correct answer
    D

    FTP

    Explanation

    FTP transmits data, including usernames and passwords, in clear text, making it readable if captured.

  4. 4

    What port does SSH use?

    1. A

      Port 3389

    2. B

      Port 443

    3. C

      Port 23

    4. D

      Port 22

    Correct answer
    D

    Port 22

    Explanation

    SSH (Secure Shell) uses port 22 by default.

  5. 5

    Why is SSH preferred over Telnet for remote administration?

    1. A

      SSH uses UDP which is more reliable.

    2. B

      SSH is faster than Telnet.

    3. C

      SSH encrypts all traffic, while Telnet sends everything in clear text.

    4. D

      SSH is easier to configure on network devices.

    Correct answer
    C

    SSH 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.

  6. 6

    What port number is associated with Telnet?

    1. A

      Port 23

    2. B

      Port 21

    3. C

      Port 25

    4. D

      Port 22

    Correct answer
    A

    Port 23

    Explanation

    Telnet operates on port 23.

  7. 7

    In the Telnet session shown in the trace, what is observed when a user types a character on the client?

    1. A

      The character is sent only once and displayed locally.

    2. B

      The character is echoed back by the server in a separate packet.

    3. C

      The character is encrypted before transmission.

    4. D

      The character is sent only after the user presses Enter.

    Correct answer
    B

    The 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.

  8. 8

    What is the default port for SMTP?

    1. A

      Port 143

    2. B

      Port 25

    3. C

      Port 587

    4. D

      Port 110

    Correct answer
    B

    Port 25

    Explanation

    SMTP traditionally uses port 25 for sending email. Port 587 is used for secure submission (SMTP with TLS).

  9. 9

    Which email protocol is used to send email from a client to a mail server?

    1. A

      POP3

    2. B

      IMAP

    3. C

      SMTP

    4. D

      HTTP

    Correct answer
    C

    SMTP

    Explanation

    SMTP (Simple Mail Transfer Protocol) is used for sending email. POP3 and IMAP are used for retrieving email from a server.

  10. 10

    What are the ports for unencrypted and encrypted POP3?

    1. A

      110 (unencrypted) and 995 (encrypted)

    2. B

      25 (unencrypted) and 587 (encrypted)

    3. C

      143 (unencrypted) and 993 (encrypted)

    4. D

      110 (unencrypted) and 443 (encrypted)

    Correct answer
    A

    110 (unencrypted) and 995 (encrypted)

    Explanation

    POP3 uses port 110 for unencrypted traffic and port 995 for encrypted traffic with TLS.

  11. 11

    What are the ports for unencrypted and encrypted IMAP?

    1. A

      143 (unencrypted) and 995 (encrypted)

    2. B

      110 (unencrypted) and 995 (encrypted)

    3. C

      143 (unencrypted) and 993 (encrypted)

    4. D

      25 (unencrypted) and 587 (encrypted)

    Correct answer
    C

    143 (unencrypted) and 993 (encrypted)

    Explanation

    IMAP uses port 143 for unencrypted traffic and port 993 for encrypted traffic with TLS.

  12. 12

    In the trace file, what is observed when SMTP uses TLS on port 25?

    1. A

      The traffic is fully encrypted from the very first packet.

    2. B

      The initial SMTP handshake is clear text, but the email content is encrypted after STARTTLS.

    3. C

      The connection is rejected because TLS is not allowed on port 25.

    4. D

      The entire SMTP conversation remains clear text.

    Correct answer
    B

    The 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.

  13. 13

    What port does DNS primarily use, and what transport protocol is typically used?

    1. A

      Port 53, UDP

    2. B

      Port 53, both UDP and TCP equally

    3. C

      Port 53, TCP

    4. D

      Port 5353, UDP

    Correct answer
    A

    Port 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.

  14. 14

    What is the primary function of DNS?

    1. A

      Assign IP addresses to devices on a network

    2. B

      Provide secure remote access to servers

    3. C

      Translate domain names to IP addresses

    4. D

      Synchronize time across network devices

    Correct answer
    C

    Translate 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.

  15. 15

    What are the ports used by DHCP?

    1. A

      Port 69 (server) and port 70 (client)

    2. B

      Port 67 (server) and port 68 (client)

    3. C

      Port 53 (server) and port 54 (client)

    4. D

      Port 68 (server) and port 67 (client)

    Correct answer
    B

    Port 67 (server) and port 68 (client)

    Explanation

    DHCP uses UDP port 67 for the server and port 68 for the client.

  16. 16

    What are the four packets involved in a typical DHCP process?

    1. A

      Hello, Offer, Request, Done

    2. B

      Solicit, Advertise, Request, Confirm

    3. C

      Discover, Offer, Accept, Verify

    4. D

      Discover, Offer, Request, Acknowledge

    Correct answer
    D

    Discover, 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).

  17. 17

    Which of the following can be provided by a DHCP server to a client?

    1. A

      Domain name, time zone, and email server

    2. B

      IP address, subnet mask, and only DNS server

    3. C

      IP address, subnet mask, default gateway, and DNS server

    4. D

      IP address, MAC address, and hostname

    Correct answer
    C

    IP 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.

  18. 18

    What port does TFTP use?

    1. A

      Port 21

    2. B

      Port 69

    3. C

      Port 161

    4. D

      Port 80

    Correct answer
    B

    Port 69

    Explanation

    TFTP (Trivial File Transfer Protocol) uses UDP port 69 for its initial control connection.

  19. 19

    How does TFTP differ from FTP in terms of transport protocol?

    1. A

      TFTP uses TCP, FTP uses UDP

    2. B

      TFTP uses UDP, FTP uses TCP

    3. C

      Both use TCP

    4. D

      Both use UDP

    Correct answer
    B

    TFTP uses UDP, FTP uses TCP

    Explanation

    TFTP is built on UDP for simplicity, while FTP uses TCP for reliable, connection-oriented file transfer.

  20. 20

    What port does HTTP use by default?

    1. A

      Port 80

    2. B

      Port 443

    3. C

      Port 4430

    4. D

      Port 8080

    Correct answer
    A

    Port 80

    Explanation

    HTTP (Hypertext Transfer Protocol) uses port 80 by default.

  21. 21

    What is true about HTTP traffic when captured with Wireshark?

    1. A

      It is transmitted in clear text

    2. B

      It is encrypted by default

    3. C

      It uses UDP for faster transmission

    4. D

      It automatically compresses all headers

    Correct answer
    A

    It 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.

  22. 22

    What are the default ports for HTTPS?

    1. A

      TCP 443 and UDP 443 (for QUIC)

    2. B

      TCP 80 and UDP 443

    3. C

      TCP 443 only

    4. D

      UDP 443 only

    Correct answer
    A

    TCP 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.

  23. 23

    What protocol uses port 123?

    1. A

      LDAP

    2. B

      SMB

    3. C

      SNMP

    4. D

      NTP

    Correct answer
    D

    NTP

    Explanation

    NTP (Network Time Protocol) uses UDP port 123 for time synchronization.

  24. 24

    What is the purpose of NTP?

    1. A

      To provide directory services

    2. B

      To manage network devices remotely

    3. C

      To synchronize clocks across network devices

    4. D

      To assign IP addresses to devices

    Correct answer
    C

    To synchronize clocks across network devices

    Explanation

    NTP allows devices to synchronize their clocks with a time source, ensuring consistent timestamps across the network.

  25. 25

    What port does SNMP use?

    1. A

      Port 69

    2. B

      Port 161

    3. C

      Port 162

    4. D

      Port 389

    Correct answer
    B

    Port 161

    Explanation

    SNMP (Simple Network Management Protocol) typically uses UDP port 161 for queries and traps (port 162 is used for traps).

  26. 26

    What is the primary use of SNMP?

    1. A

      Resolving domain names

    2. B

      Sending email

    3. C

      Transferring files between systems

    4. D

      Monitoring and managing network devices

    Correct answer
    D

    Monitoring 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.

  27. 27

    What port does LDAP use?

    1. A

      Port 389

    2. B

      Port 636

    3. C

      Port 443

    4. D

      Port 110

    Correct answer
    A

    Port 389

    Explanation

    LDAP (Lightweight Directory Access Protocol) uses port 389 for unencrypted traffic. Port 636 is used for LDAPS (encrypted with TLS).

  28. 28

    What is the function of LDAP?

    1. A

      To synchronize time across devices

    2. B

      To provide directory services and authentication

    3. C

      To transfer files reliably

    4. D

      To encapsulate other protocols for security

    Correct answer
    B

    To 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.

  29. 29

    What port does SMB use?

    1. A

      Port 445

    2. B

      Port 443

    3. C

      Port 139

    4. D

      Port 80

    Correct answer
    A

    Port 445

    Explanation

    SMB (Server Message Block) typically uses port 445 for direct TCP communication. Older versions also used port 139 over NetBIOS.

  30. 30

    What is the primary purpose of SMB?

    1. A

      To provide secure remote shell access

    2. B

      To provide email retrieval services

    3. C

      To manage network devices via SNMP

    4. D

      To allow file sharing and printer sharing in Windows networks

    Correct answer
    D

    To 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.

  31. 31

    In Wireshark, what does the 'Follow TCP Stream' feature do?

    1. A

      It creates a new capture file containing only the selected stream.

    2. B

      It filters out all packets except the selected TCP stream and shows only the raw bytes.

    3. C

      It decrypts SSL/TLS traffic automatically.

    4. D

      It reassembles and displays the application-layer data from a TCP conversation in a separate window.

    Correct answer
    D

    It 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.).

Question 1 of 31
Question 1 of 31

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent