2.1 Compare & contrast Transmission Control Protocol (TCP) & User Datagram Protocol (UDP) ports, protocols, & their purpose Flashcards
What protocols in the TCP/IP suite handle port assignment?
TCP & UDP
Meaning of UDP?
User Datagram Protocol
How many port numbers do hosts assign?
2
Explain the port assignment process
Each host assigns a destination & source port
In the port assignment process, what does the destination port map to?
The requested service
i.e. HTTP on port 80
What is the source port in the port assignment process?
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 does TCP differ from UDP?
Providing reliable data delivery
What is TCP known as?
Connection-oriented protocol
How does TCP establish a connection between sender & recipient?
via Handshake sequence
List TCP’s handshake sequence packets
- SYN packet
- SYN/ACK packet
- ACK packet
What does TCP assign to each packet?
A sequence number
Why does TCP assign sequence numbers to packets?
So they can be tracked
In TCP, why do clients send ACK packets?
To acknowledge that a packet has been received
In TCP, why do clients send NACK packets?
For retransmission of a missing or damaged packet
NACK basically means Negative Acknowledgement
Main drawback of TCP?
Connection info increases packet size due to multiple header fields
When is TCP used?
When application protocols can’t tolerate missing or damaged info.
2 application protocols that must use TCP?
- HTTPS
- SSH
What is UDP known as?
Connectionless protocol
How does UDP differ from TCP?
Faster & not guaranteeing packet delivery or packet sequence order
When is UDP used?
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.
Why is UDP faster than TCP?
UDP has reduced overhead
Overhead is the extra data or processing needed for communication, beyond the essential payload.
What can be used to control delivery reliability when using UDP?
Application layer
2 protocols that use UDP?
- DHCP
- TFTP
Why must DHCP use UDP?
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
Meaning of TFTP?
Trivial File Transfer Protocol
Purpose of TFTP?
For network devices to obtain a configuration file
Why doesnt TFTP require TCP?
It has it’s own built-in mechanism for acknowledging messages
Meaning of FTP?
File Transfer Protocol
FTP–Data connection port?
This port handles actual file transfers
TCP/20
FTP–Control connection port?
This port manages commands & responses
TCP/21
Identify port
TCP/20
FTP-Data connection
Identify port
TCP/21
FTP-Control connection
Purpose of FTP?
Transfer files across a network
Meaning of SSH?
Secure Shell
Purpose of SSH protocol?
Make a secure connection to the command-line interface of a server
SSH protocol port?
TCP/22
Identify port
TCP/22
SSH
Purpose of Telnet protocol?
Make an unsecure connection to the command-line interface of a server
Telnet protocol port?
TCP/23
Identify port
TCP/23
Telnet
Meaning of SMTP?
Simple Mail Transfer Protocol
Purpose of SMTP?
Transfer emails across a network
SMTP port?
TCP/25
Identify port
TCP/25
SMTP
Meaning of DNS?
Domain Name System
Purpose of DNS protocol?
Allow hosts to be identified by name & IP addresses
DNS protocol port?
(TCP or UDP)/53
Identify port
(TCP or UDP)/53
DNS
Meaning of DHCP?
Dynamic Host Configuration Protocol
Purpose of DHCP Server?
Provision an IP address configuration to clients
DHCP Server port?
UDP/67
Identify port
UDP/67
DHCP Server
Purpose of DHCP Client?
Request a dynamic IP address configuration from a server
DHCP Client port?
UDP/68
Identify port
UDP/68
DHCP Client
Meaning of HTTP?
HyperText Transfer Protocol
Purpose of HTTP?
Provision unsecure websites & web services
HTTP port?
TCP/80
Identify port
TCP/80
HTTP
Meaning of POP?
Post Office Protocol
Purpose of POP?
Examples of POP clients are Microsoft Outlook & Mozilla Thunderbird
Retrieve emails from a server mailbox
POP port?
TCP/110
Identify port
TCP/110
POP
Purpose of NetBIOS over TCP/IP?
Support networking features of legacy Windows versions
NetBIOS over TCP/IP port?
(UDP or TCP)/137-139
Identify port
(UDP or TCP)/137-139
NetBIOS over TCP/IP
Meaning of IMAP?
Internet Mail Access Protocol
Purpose of IMAP?
Read & manage emails on a server mailbox
IMAP port?
TCP/143
Identify port
TCP/143
IMAP
SNMP meaning?
Simple Network Management Protocol
Purpose of SNMP?
Query status information from network devices
SNMP enables remote monitoring and management of network devices, retrieving data for proactive troubleshooting and optimization.
SNMP port?
UDP/161
Identify port
UDP/161
SNMP
Purpose of SNMP trap operation?
Report status info. to a management server
SNMP trap operation port?
UDP/162
Identify port
UDP/162
SNMP trap operation
Meaning of LDAP?
Lightweight Directory Access Protocol
Purpose of LDAP?
Query info about network users & resources
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.
LDAP port?
TCP/389
Identify port
TCP/389
LDAP
Meaning of HTTPS?
HTTP Secure
Purpose of HTTPS?
Provision secure websites & services
HTTPS port?
TCP/443
Identify port
TCP/443
HTTPS
Meaning of SMB?
Server Message Block
Purpose of SMB protocol?
Implement Windows-compatible file & printer sharing on a LAN
SMB differs from FTP by being primarily used in Windows environments
What is the SMB protocol also referred to?
CIFS
Meaning of CIFS?
Common Internet File System
SMB port?
TCP/445
Identify port
TCP/445
SMB
Meaning of RDP?
Remote Desktop Protocol
Purpose of RDP?
Make a secure connection to the graphical desktop of a computer
RDP port?
TCP/3389
Identify port
TCP/3389
RDP
What are application protocols?
Rules & conventions used by software to communicate over a network
i.e. HTTP for web browsing, SMTP for email, FTP for file transfer, etc.
Meaning of TCP?
Transmission Control Protocol