161/162 – SNMP: SNMP uses UDP to monitor and manage network devices.
389 – LDAP: LDAP uses TCP to access and manage directory information.
443 – HTTPS: HTTPS uses TCP to transmit encrypted web page data between web servers and clients.
445 – SMB/CIFS: SMB and CIFS use TCP to provide file and print sharing services on a network.
3389 – RDP: RDP uses TCP to allow remote access and control of a computer or server.
In general, TCP is more reliable than UDP, as it ensures delivery of packets and guarantees their order. UDP is faster and more lightweight, making it a better choice for real-time communication and applications that prioritize speed over reliability. However, UDP does not guarantee delivery, and packets may be lost or arrive out of order.
TCP vs. UDP
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are both transport layer protocols used in computer networking. Here's how TCP and UDP differ in terms of their connectionless/connection-oriented nature and their use in specific protocols:
Connectionless: UDP is a connectionless protocol, meaning that it does not establish a dedicated end-to-end connection before sending data. Instead, UDP sends packets to the destination address without checking whether it is online or available to receive packets. TCP, on the other hand, is a connection-oriented protocol, which establishes a dedicated end-to-end connection before sending data.
DHCP: DHCP (Dynamic Host Configuration Protocol) is a protocol used to dynamically assign IP addresses to devices on a network. It can use both TCP and UDP. DHCP clients typically use UDP to send a broadcast request for an IP address, and the DHCP server responds with an offer using UDP. Once the client accepts the offer, it uses TCP to establish a connection with the server for configuration.
TFTP: TFTP (Trivial File Transfer Protocol) is a simple file transfer protocol that uses UDP. It is often used for booting diskless workstations, and for transferring configuration files and firmware to network devices.
Connection-oriented: TCP is a connection-oriented protocol, meaning that it establishes a dedicated end-to-end connection before sending data. This ensures reliable data transmission, as TCP uses sequence numbers and acknowledgments to ensure that all data is transmitted and received in the correct order.
HTTPS: HTTPS (Hypertext Transfer Protocol Secure) is the secure version of HTTP used for secure communication over the internet. It uses TCP as the underlying transport protocol to ensure reliable delivery of encrypted data.
SSH: SSH (Secure Shell) is a protocol used for secure remote access to a computer or network. It uses TCP to establish a secure connection between the client and server, and then encrypts all data sent over the connection to ensure confidentiality and integrity.