Compare Protocols and Ports Flashcards
Transmission Control Protocol
Any given packet could be damaged or fail to arrive due to faults or network congestion. TCP provides several mechanisms to overcome this lack of reliability. It is described as a “connection-oriented” protocol.
- Establishes a connection between the sender and recipient using a handshake sequence of SYN, SYN/ACK, and ACK packets.
-Assigns each packet a sequence number so that it can be tracked.
-Allows the receiver to acknowledge (ACK) that a packet has been received.
-Allows the receiver to send a negative acknowledgement (NACK) to force retransmission of a missing or damaged packet.
-Allows the graceful termination of a session using a FIN handshake.
TCP is used when the application protocol cannot tolerate missing or damaged information.
Two application protocols that use TCP
-HyperText Transfer Protocol (HTTP)
& HyperText Transfer Protocol Secure (HTTPS)
-Secure Shell (SSH)
User Datagram Protocol
Sometimes it is more important that communications be faster than they are reliable.
The User Datagram Protocol (UDP) is a connectionless , non-guaranteed method of communication with no sequencing or acknowledgements.
UDP is suitable for applications that do not require acknowledgement of receipt and can tolerate missing or out-of-order packets. It is often used by applications that transfer time-sensitive data but do not require complete reliability, such as voice or video.
Two examples of protocols that use UDP are:
- Dynamic Host Configuration Protocol (DHCP).
- Trivial File Transfer Protocol (TFTP).
PORT 20 TCP
File Transfer Protocol (FTP)—Data connection
Make files available for download across a network (data connection port)
PORT 21 TCP
File Transfer Protocol (FTP)—Control connection
Make files available for download across a network (control connection port)
PORT 22 TCP
Secure Shell (SSH)
Make a secure connection to the command-line interface of a server
PORT 23 TCP
Telnet
Make an unsecure connection to the command-line interface of a server
PORT 25 TCP
Simple Mail Transfer Protocol (SMTP)
Transfer email messages across a network
PORT 53 TCP/UDP
Domain Name System (DNS)
Facilitate identification of hosts by name alongside IP addressing
PORT 67 UDP
Dynamic Host Configuration Protocol (DHCP) Server
Provision an IP address configuration to clients
PORT 68 UDP
DHCP Client
Request a dynamic IP address configuration from a server
PORT 80 TCP
HyperText Transfer Protocol (HTTP)
Provision unsecure websites and web services
PORT 110 TCP
Post Office Protocol (POP)
Retrieve email messages from a server mailbox
PORT 137 - 139 UDP/TCP
NetBIOS over TCP/IP
Support networking features of legacy Windows versions
PORT 143 TCP
Internet Mail Access Protocol (IMAP)
Read and manage mail messages on a server mailbox
PORT 161 UDP
Simple Network Management Protocol (SNMP)
Query status information from network devices