Protocols & Ports Flashcards

For fast review of Port Numbers and what respective Protocols use them.

1
Q

What is a Port?

Universally Relevant

A

A port is a virtual point where network connections start and end.

  • Ports are software-based and managed by a computer’s operating system.
  • Each port is associated with a specific process or service.
  • Ports allow computers to easily differentiate between an array of protocols/traffic.

Thank you baby Jesus for Ports!

Universally Relevant

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

Ports 20 and 21

A

File Transfer Protocol (FTP)
* FTP Control = Port 21: Establishes the connection between the FTP client and server¹, where user authentication takes place², as well as the port for exchanging commands between the client and server³.
* FTP Data = Port 20: Used for transferring the actual file data, exclusively.

~Pizza Analogy~ Port 21 would be the phone line where you place your order, ask questions, and get confirmation -|- Port 20 then is the delivery person who brings the actual food (data) to your door.

Both Over TCP

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

Port 22

A

Secure Shell (SSH) uses Port 22.
* SSH is one of many tunneling protocols that create secure network connections.

The opposite of a Blue Shell… You know if you Know.

Over TCP

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

What port does SMTP use?

A

Simple Mail Transfer Protocol = Port 25
* SMTP has been historically used for email via Port 25, and although still used today, has a sketchy reputation due to it’s affiliation with spam and lack of mandatory encryption.

Over TCP

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

Hypertext Transfer Protocol (HTTP)

A

Port 80

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

What uses Port 123 ?

A

Network Time Protocol ~NTP is designed to synchronize the clocks of computer systems over a network. A process that is essential for many applications in many use cases such as academia, finance, science, and cybersecurity.

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

Port 179

A

Border Gateway Protocol (BGP).
* BGP is essential for establishing efficient routes between the large networks that make up the Internet (aka autonomous systems). Autonomous systems use BGP to broadcast which IP addresses they control.

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

HTTPS

A

Port 443

Over TCP

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

What is HTTPS ?

A

HTTPS is the secure and encrypted version of HTTP (Hyper Text Transfer Protocol). All HTTPS web traffic goes to port 443.

Over TCP

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

Port for POP3 ?

A

110

(over TCP)

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

Port 3389

A

RDP uses this port. Remote Desktop Protocol is a proprietary Windows protocol.

Over TCP

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

Port 587

A

SMTPS via TLS specifically
* Port 587 is the preferred and most secure port for sending email from your mail client. It’s the modern standard for email submission, offering encryption and authentication for better protection.

Over TCP + TLS

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

Port 53

A

Domain Name System (DNS)
* This one is a bit more nuanced than other protocols; DNS can use both TCP and UDP on port 53.
○ UDP is typically used for smaller queries and responses.
○ TCP is used for larger queries, zone transfers (exchanging DNS data between servers), and when reliability is important.

TCP or UDP

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

Wait, another Protocol with the same port?! Whaaaaaa

Port 22 {⨧}

…relies on SSH…

A

SCP!
Secure Copy Protocol is used for securely copying files between a local host and a remote host or between two remote hosts.
* It relies on the secure SSH channel for encryption & authentication.
○ SSH is primarily for remote access and command execution.
○ SCP is specifically designed for secure file transfer.

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

What port does Telnet use?

A

Telnet uses Port 23
* Telnet is a client-server protocol that allows you to remotely access and control another host PC over a network.
* Telnet is a legacy protocol that predates more secure protocols that have since replaced it, such as SSH

Over TCP

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

Port 143

A

Used by IMAP = Internet Mail Access Protocol

Over TCP + UDP

17
Q

IMAPS uses what port number?

A

IMAP Secure uses Port 993

Over TCP + TLS

18
Q

Port 88 is used by…?

Hint: Not an Acronym

A

Kerberos

Over TCP or UDP

19
Q

Server Message Block (SMB) uses Port _ _ _?

A

445

Over TCP

20
Q

SNMP uses what two ports?

Hint: G -vs- P

A

1: Port 161 (Get)
2: Port 162 (Trap)

Over UDP Only

21
Q

Syslog uses what port?

A

Port 514

Over UDP

22
Q

Port 389 over TCP relates to what directory centric protocol?

A

LDAP (Lightweight Directory Access Protocol)