2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes Flashcards
TCP & UDP are transported inside…?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
IP packets
TCP or UDP may be referred to as operating at…
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
the transport layer of OSI model (OSI layer 4)
What is TCP/UDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Transport layer protocols used for data transmissions over networks
Ports are endpoints where communication occurs
What do connection-oriented sessions mean?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Every packet sent is checked for delivery.
Meaning of TCP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Transmission Control Protocol
Meaning of UDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
User Datagram Protocol
What type of protocol is TCP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Connection-oriented protocol
How does TCP provide reliable delivery?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
By making sure data sent has been verified as being received to the receiver
What type of protocol is UDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Connectionless protocol
Why is UDP unreliable?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
There’s no acknowledgement sent by receiver, making it unknown if the data sent was actually received by the receiver
Importance of UDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Being able to send data very quickly over the network
UDP is most associated with..?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Real time communication
(live communication, where you cant stop or retransmit info)
Protocols using UDP have no confirmation of data sent, so its up to the…
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
app to keep track of who has & hasn’t received data
Purpose of port numbers?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
To identify which service will receive data
How does TCP establish network connections?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
3-way handshake (aka TCP socket connection)
TCP
Process of three-way handshake?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
- SYN packet
- SYN-ACK packet
- ACK packet
- (Client sends it)
- (Server sends it)
- (Client sends it)
When is Connection-oriented TCP used?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
When data integrity is needed
Data integrity = data is unaltered & undamaged
When is Connectionless UDP used?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
When speed & efficiency is needed
What do protocols do?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Handle data transfer details
What does the internet run on?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: TCP vs UDP
Transmission Control Protocol/Internet Protocol (TCP/IP) suite
(Protocols & services that power & manage networks)
(its named that way because most TCP/IP protocols use TCP rather than UDP)
Meaning of FTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
File Transfer Protocol
Meaning of SFTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Secure File Transfer Protocol
Meaning of TFTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Trivial File Transfer Protocol
FTP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/20-21
TCP/20 (Active mode data) & TCP/21 (Control)
What is FTP TCP/20 for?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Data transfers
tcp/20 (acive mode data)
What is FTP TCP/21 for?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To control the data transfer
tcp/21 (control)
Purpose of FTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To transfer data/files between devices
What does FTP commonly require?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
authentication to log in to that remote device
i.e. username & password
Common protocol of:
TCP/20-21
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
FTP
What FTP option is NOT connection-oriented?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TFTP
Purpose of TFTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To transfer files between devices with limited functionality
(No authentication/encryption & only read/write operations)
Meaning of SSH?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Secure Shell
SSH port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/22
Common protocol of:
TCP/22
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
SSH
Purpose of SSH?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Encrypts communication channels
Network services like remote login & data transfers
SSH is a more secure replacement to…?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
FTP & Telnet
Protocol(s) that enables to remotely access devices via terminal/CLI?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
SSH & Telnet
What is required to use SSH on Windows?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Software
like puTTY
Meaning of Telnet?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: **Ports & Protocols
Telecommunication Network
Telnet port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/23
Common protocol of:
TCP/23
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Telnet
Purpose of Telnet?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To provide unencrypted remote terminal/CLI access to a device
over the Internet or local network
Meaning of SMTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Simple Mail Transfer Protocol
SMTP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/25
Purpose of SMTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
For email clients to send emails to an email server
Common protocol of:
TCP/25
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
SMTP
Meaning of DNS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Domain Name System
DNS port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
UDP/53
Common protocol of:
UDP/53
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
DNS
Purpose of DNS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To convert domain names into IP addresses
DNS
When connecting to a website by domain, the DNS server…?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
finds IP address of domain so the client & web server can communicate via IP
Meaning of DHCP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Dynamic Host Configuration Protocol
DHCP port(s) in IPv4 network?
(This is the MAIN DHCP port(s))
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
UDP/67-68
DHCPv6 uses UDP/546-547
Common protocol for:
UDP/67-68
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
DHCP
(The main DHCP (IPv4))
What is needed to automatically assign IP addresses to devices on a network?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
DHCP server
Where is the DHCP functionality commonly buit into?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Routers & Access Points
Purpose of DHCP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To assign network configuration parameters to devices on a network
Network configuration paramters like IP addresses, subnet masks, gateway addresses, & DNS servers
DHCP
Meaning of SOHO?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Small Office/Home Office
Most SOHO networks have a router that uses DHCP to…
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
assign IP addresses to client computers
How do ISPs use DHCP?
To assign an IP address to users by assigning them to routers/modems
What system does DHCP use to assign IP addresses?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Leasing system
(Assigned IP addresses are used for a certain amount of time)
DHCP
When is the IP address unassigned to a device?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
The lease expires & the device is no longer on the network
What ports do servers & clients use in DHCPv4 servers?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Server: 67
Client: 68
What is DHCP aka?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
BOOTP (Bootstrap Protocol)
HTTP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/80
HTTPS port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/443
Meaning of HTTP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Hypertext Transfer Protocol
Meaning of HTTPS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
HTTP Secure
Common protocol for:
TCP/80
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
HTTP
Common protocol for:
TCP/443
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
HTTPS
Purpose of HTTP/HTTPS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To communicate to web servers
Which HTTP version has encryption?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
HTTPS
Which HTTP version has no encryption?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
HTTP
Secure protocols
Meaning of SSL?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Secure Sockets Layer
Secure protocols
Meaning of TLS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Transport Layer Security
Secure protocol that HTTPS uses?
TLS
3 Email protocols?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
- SMTP
- POP3
- IMAP4
Meaning of POP3?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Post Office Protocol version 3
Meaning of IMAP4
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Internet Message Access Protocol version 4
POP3 port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/110
Secure POP3 port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/995
Purpose of POP3?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
For email clients to retrieve emails from a mail server
Purpose of IMAP4?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
For email clients to retrieve emails from a mail server
Common protocol for:
TCP/110
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
POP3
IMAP4 port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/143
Common protocol for:
TCP/143
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
IMAP4
How does IMAP4 differ from POP3?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
IMAP4 can synchronize emails to multiple email clients
i.e. the same email can be received on Gmail, Outlook, & Apple Mail
(it also supports folders)
What is POP3 limited to?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Can only retrieve emails to 1 email client
How does IMAP4 allow email syncrhonization?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Lets emails stay on the email server to be retrieved from any location
Meaning of SMB?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Server Message Block
SMB port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/445
Common protocol for:
TCP/445
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
SMB
Purpose of SMB?
(Server Message Block)
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To Provide file & printer sharing, network browsing, & IPC over a network
IPC is data exchange between programs.
What uses SMB?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Windows
What is SMB aka?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
CIFS
Meaning of CIFS?
Common Internet File System
NetBIOS/NetBT port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
- UDP/137
- (TCP & UDP)/139
Meaning of NetBT?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
NetBIOS over TCP/IP
Meaning of NetBIOS?
Network Basic Input/Output System
What does NetBIOS do?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
- Names devices
- Establishes reliable connections
- Facilitates data packet delivery
TCP/IP has replaced NetBIOS
How is NetBIOS functionality implemented over TCP/IP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
using NetBT
Common protocol for UDP/137-138 & TCP/139?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
NetBIOS
Meaning of SNMP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Simple Network Management Protocol
SNMP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
UDP/161
Common protocol for:
UDP/161
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
SNMP
Purpose of SNMP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To remotely monitor & manage network devices
Meaning of LDAP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Lightweight Directory Access Protocol
LDAP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/389
One popular LDAP implenentation?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Microsoft Active Directory
MAD allows to query the Active Directory server using LDAP
Common protocol for:
TCP/389
LDAP
Purpose of LDAP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To access & maintain distributed directories of info. services over an IP network
Meaning of RDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Remote Desktop Protocol
RDP port(s)?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
TCP/3389
Common protocol for:
TCP/3389
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
RDP
Purpose of RDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
To give remote access to a computer’s GUI & resources as if the user was there
RDP-based program that Microsoft uses?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes: Ports & Protocols
Remote Desktop Connection program
2 file transfer protocols?
Protocols that allow file transfers between devices
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
- FTP
- SMB/CIFS
What type of protocols are FTP & SMB/CIFS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
File transfer protocols
Protocols that allow file transfers between devices
3 remote access protocols?
Protocols that allows remote access to a device or network
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
- SSH
- Telnet
- RDP
What type of protocols are SSH, Telnet, & RDP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
Remote access protocols
Protocols that allows remote access to a device or network
1 Directory services protcol?
Manage/organize info about network resources/users in directory database
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
LDAP
What type of protocol is LDAP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
Directory services protocol
Manage/organize info about network resources/users in directory database
1 network management protocol?
Help manage & monitor the behavior & performance of a network
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
SNMP
What type of protocol is SNMP?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
network management protocol
Help manage & monitor the behavior & performance of a network
2 Web protocols?
allow communication & data transfers between web clients & servers
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
- HTTP
- HTTPS
What type of protocols are HTTP & HTTPS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
Web protocols
allow communication & data transfers between web clients & servers
1 network communication protocol?
Protocols that allow communication between devices on a network
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
NetBIOS
What type of protocol is NetBIOS?
2.1 - Compare & contrast TCP & UDP ports, protocols, & their purposes
Network communication protocol
Protocols that allow communication between devices on a network