2.1 Compare & contrast Transmission Control Protocol (TCP) & User Datagram Protocol (UDP) ports, protocols, & their purpose Flashcards

(97 cards)

1
Q

What protocols in the TCP/IP suite handle port assignment?

A

TCP & UDP

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

Meaning of UDP?

A

User Datagram Protocol

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

How many port numbers do hosts assign?

A

2

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

Explain the port assignment process

A

Each host assigns a destination & source port

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

In the port assignment process, what does the destination port map to?

A

The requested service

i.e. HTTP on port 80

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

What is the source port in the port assignment process?

A

Random port number chosen by the client

i.e. 47747

The server replies using the client’s source port as its destination port & its own app port as the source port

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

How does TCP differ from UDP?

A

Providing reliable data delivery

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

What is TCP known as?

A

Connection-oriented protocol

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

How does TCP establish a connection between sender & recipient?

A

via Handshake sequence

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

List TCP’s handshake sequence packets

A
  • SYN packet
  • SYN/ACK packet
  • ACK packet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does TCP assign to each packet?

A

A sequence number

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

Why does TCP assign sequence numbers to packets?

A

So they can be tracked

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

In TCP, why do clients send ACK packets?

A

To acknowledge that a packet has been received

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

In TCP, why do clients send NACK packets?

A

For retransmission of a missing or damaged packet

NACK basically means Negative Acknowledgement

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

Main drawback of TCP?

A

Connection info increases packet size due to multiple header fields

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

When is TCP used?

A

When application protocols can’t tolerate missing or damaged info.

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

2 application protocols that must use TCP?

A
  • HTTPS
  • SSH
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is UDP known as?

A

Connectionless protocol

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

How does UDP differ from TCP?

A

Faster & not guaranteeing packet delivery or packet sequence order

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

When is UDP used?

A

When application protocols can tolerate missing/out-of-order packets

It’s often used for time-sensitive data like voice or video, where missing data causes glitches, not errors or connection failures.

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

Why is UDP faster than TCP?

A

UDP has reduced overhead

Overhead is the extra data or processing needed for communication, beyond the essential payload.

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

What can be used to control delivery reliability when using UDP?

A

Application layer

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

2 protocols that use UDP?

A
  • DHCP
  • TFTP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Why must DHCP use UDP?

A

DHCP uses broacast transmissions, which TCP doesn’t support

Broadcast sends data to all network devices at once.

If a response packet isn’t received, the client just restarts the provess & tries again repeatedly, until timing out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Meaning of TFTP?
Trivial File Transfer Protocol
26
Purpose of TFTP?
For network devices to obtain a configuration file
27
Why doesnt TFTP require TCP?
It has it's own built-in mechanism for acknowledging messages
28
Meaning of FTP?
File Transfer Protocol
29
FTP--Data connection port? | This port handles actual file transfers
TCP/20
30
FTP--Control connection port? | This port manages commands & responses
TCP/21
31
# Identify port TCP/20
FTP-Data connection
32
# Identify port TCP/21
FTP-Control connection
33
Purpose of FTP?
Transfer files across a network
34
Meaning of SSH?
Secure Shell
35
Purpose of SSH protocol?
Make a secure connection to the command-line interface of a server
36
SSH protocol port?
TCP/22
37
# Identify port TCP/22
SSH
38
Purpose of Telnet protocol?
Make an unsecure connection to the command-line interface of a server
39
Telnet protocol port?
TCP/23
40
# Identify port TCP/23
Telnet
41
Meaning of SMTP?
Simple Mail Transfer Protocol
42
Purpose of SMTP?
Transfer emails across a network
43
SMTP port?
TCP/25
44
# Identify port TCP/25
SMTP
45
Meaning of DNS?
Domain Name System
46
Purpose of DNS protocol?
Allow hosts to be identified by name & IP addresses
47
DNS protocol port?
(TCP or UDP)/53
48
# Identify port (TCP or UDP)/53
DNS
49
Meaning of DHCP?
Dynamic Host Configuration Protocol
50
Purpose of DHCP Server?
Provision an IP address configuration to clients
51
DHCP Server port?
UDP/67
52
# Identify port UDP/67
DHCP Server
53
Purpose of DHCP Client?
Request a dynamic IP address configuration from a server
54
DHCP Client port?
UDP/68
55
# Identify port UDP/68
DHCP Client
56
Meaning of HTTP?
HyperText Transfer Protocol
57
Purpose of HTTP?
Provision unsecure websites & web services
58
HTTP port?
TCP/80
59
# Identify port TCP/80
HTTP
60
Meaning of POP?
Post Office Protocol
61
Purpose of POP? | Examples of POP clients are Microsoft Outlook & Mozilla Thunderbird
Retrieve emails from a server mailbox
62
POP port?
TCP/110
63
# Identify port TCP/110
POP
64
Purpose of NetBIOS over TCP/IP?
Support networking features of legacy Windows versions
65
NetBIOS over TCP/IP port?
(UDP or TCP)/137-139
66
# Identify port (UDP or TCP)/137-139
NetBIOS over TCP/IP
67
Meaning of IMAP?
Internet Mail Access Protocol
68
Purpose of IMAP?
Read & manage emails on a server mailbox
69
IMAP port?
TCP/143
70
# Identify port TCP/143
IMAP
71
SNMP meaning?
Simple Network Management Protocol
72
Purpose of SNMP?
Query status information from network devices ## Footnote SNMP enables remote monitoring and management of network devices, retrieving data for proactive troubleshooting and optimization.
73
SNMP port?
UDP/161
74
# Identify port UDP/161
SNMP
75
Purpose of SNMP trap operation?
Report status info. to a management server
76
SNMP trap operation port?
UDP/162
77
# Identify port UDP/162
SNMP trap operation
78
Meaning of LDAP?
Lightweight Directory Access Protocol
79
Purpose of LDAP?
Query info about network users & resources ## Footnote it allows systems to retrieve and search for data stored in a directory service, such as user accounts, groups, and network resources. This enables authentication, authorization, and information lookup across a network infrastructure.
80
LDAP port?
TCP/389
81
# Identify port TCP/389
LDAP
82
Meaning of HTTPS?
HTTP Secure
83
Purpose of HTTPS?
Provision secure websites & services
84
HTTPS port?
TCP/443
85
# Identify port TCP/443
HTTPS
86
Meaning of SMB?
Server Message Block
87
Purpose of SMB protocol?
Implement Windows-compatible file & printer sharing on a LAN ## Footnote SMB differs from FTP by being primarily used in Windows environments
88
What is the SMB protocol also referred to?
CIFS
89
Meaning of CIFS?
Common Internet File System
90
SMB port?
TCP/445
91
# Identify port TCP/445
SMB
92
Meaning of RDP?
Remote Desktop Protocol
93
Purpose of RDP?
Make a secure connection to the graphical desktop of a computer
94
RDP port?
TCP/3389
95
# Identify port TCP/3389
RDP
96
What are application protocols?
Rules & conventions used by software to communicate over a network ## Footnote i.e. HTTP for web browsing, SMTP for email, FTP for file transfer, etc.
97
Meaning of TCP?
Transmission Control Protocol