CompTIA module 4 Flashcards

Network Protocols and Services

1
Q

What is a Port ?

A
  • logical connection point that allows devices to communicate with one another.
  • A port is a 16-bit number (0-65535) that identifies a specific process or service running on a network device.
  • Port 0 reserved and not used.
  • IANA assigns port numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 port ranges ?

A
  • Well-known ports (0-1023): Standardized ports for common services (e.g., HTTP:80, FTP:21)
  • Registered ports (1024-49151): Assigned by IANA for specific services
  • Private ports (49152-65535): Available for custom use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the functions of Ports ?

A
  • Service identification: Identifies the service or process running on a device
  • Connection establishment: Enables devices to establish connections
  • Data routing: Directs data to the correct process or service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Name the following TCP Ports: 80, 433, 21, 22

A
  • HTTP: 80 (Web servers)
  • HTTPS: 443 (Secure web servers)
  • FTP: 21 (File Transfer Protocol)
  • SSH: 22 (Secure Shell)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name the following TCP Ports: 25, 53, 161, 23.

A
  • SMTP: 25 (Simple Mail Transfer Protocol)
  • DNS: 53 (Domain Name System)
  • SNMP: 161 (Simple Network Management Protocol)
  • Telnet: 23 (Remote access)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name the following UDP Ports: 67-68, 161-162, 69, 123

A
  • DHCP: 67-68 (Dynamic Host Configuration Protocol)
  • SNMP: 161-162 (Simple Network Management Protocol)
  • TFTP: 69 (Trivial File Transfer Protocol)
  • NTP: 123 (Network Time Protocol)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name the following Ports: 500, 119, 3389, 389

A
  • Port 500:
    IPSec (Internet Protocol Security)
    IKE (Internet Key Exchange)
    ISAKMP (Internet Security Association and Key Management Protocol)
  • Port 119:
    NNTP (Network News Transfer Protocol)
    Usenet news
  • Port 3389:
    RDP (Remote Desktop Protocol)
    Microsoft Terminal Services
  • Port 389:
    LDAP (Lightweight Directory Access Protocol)
    Directory services (e.g., Active Directory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is File Transfer Protocol (FTP) ?

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

List 7 FTP commands.

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

List 4 FTP modes.

A
  • Binary mode: Transfers files in binary format.
  • ASCII mode: Transfers text files in ASCII format.
  • Active mode: FTP server initiates data transfer.
  • Passive mode: FTP client initiates data transfer.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

List 4 FTP types

A
  • FTP (File Transfer Protocol): Standard FTP.
  • SFTP (Secure File Transfer Protocol): Secure, encrypted FTP.
  • FTPS (FTP over SSL/TLS): FTP over secure socket layer.
  • TFTP (Trivial File Transfer Protocol): Simple, non-secure FTP.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the default FTP Port numbers ?

A
  • Command port: 21 (default)
  • Data port: 20 (default)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Simple Mail Transfer Protocol (SMTP) ?

A
  • Is a push protocol used for sending and receiving email messages between email servers and clients.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the key features of SMTP ?

A
  • Mail transfer: Sends and receives email messages.
  • Relaying: Forwards email messages to next-hop servers.
  • Mail routing: Routes email messages to destination servers.
  • Authentication: Optional authentication mechanisms.
  • Error handling: Returns error messages for undeliverable emails.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What ports do SMTP use ?

A
  • Default port: 25 (non-secure)
  • Secure port: 465 (SSL/TLS encrypted)
  • Submission port: 587 (authenticated submissions)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

List 3 SMTP response codes

A
  • 2xx: Success
  • 4xx: Temporary failure
  • 5xx: Permanent failure