TCP and UDP ports

By | 30th June 2021

“Transport layer” [OSI Model].

TCP – Transmission Control Protocol is used for transport data between processes runs on 2 different devices. It works in the client-server mode. As opposed to UDP, the TCP guarantees the delivery of all data packets in sequence and without duplicates. We can distinguish 3 phases of this process: initiation connection – data transfer – termination.


TCP works in a three-way handshake during initiation connection. SYN (Synchronize) / SYN-ACK (Synchronize – Acknowledgment) / ACK (Acknowledgment)


Main features during data transfer: arranged in segments – avoid congestion – error-free transfer – retransmission of lost packets.


The connection termination uses a four-way handshake.


UDP – User Datagram Protocol has the same role to fulfil as TCP but in a different way. Data is sent in a stream without error correction can be sent to multi destinations at the same time (multicasting). The main advantage over the UDP is speed. Mainly used in online gaming, video streaming, VoIP, DHCP.




Port numberTCP / UDPNameDescription
13TCP & UDPdaytimeDaytime protocol
20TCPftp-dataFile Transfer Protocol. Data transfer.
21TCPftpFile Transfer Protocol. Command.
22TCPsshSecure Shell
23TCPtelnetTelnet. Unencrypted text communications
25TCPsmtpSimple Mail Transfer Protocol
53TCP & UDPdomainDomain Name System (DNS)
67UDPdhcpsDHCP Server
68UDPdhcpcDHCP Client
69 TCPTFTPTrivial File Transfer Protocol
80TCPhttpHypertext Transfer Protocol
110TCPpop3Post Office Protocol (e-mail communication)
123UDPntpNetwork Time Protocol. Time synchronization
137TCP & UDPnetbtNetBios Name Service
143TCPimapInternet Message Access Protocol (e-mail communication)
161UDPsnmpSimple Network Management Protocol
162UDPsnmp-trapSimple network management protocol trap
389TCPldapLightweight Directory Access Protocol
427TCP & UDPslpService Location Protocol
443TCP & UDPhttpsHypertext Transfer Protocol Secure
445TCPsmbServer Message Block. Microsoft-DS
548TCPafpApple Filing Protocol
587 TCPsmtpssecure Simple Mail Transfer Protocol
636TCPldapsLightweight Directory Access Protocol TLS/SSL
993TCPimapsInternet Message Access Protocol SSL/TLS
995TCPpop3sPost Office Protocol SSL/TLS
3306TCPmysqlMySQL Database
3389TCPrdpMicrosoft Remote Desktop Protocol
5060UDPsipVoIP
5061UDPsipVoIP
5938TCP & UDPteamviewTeam Viewer Remote Desktop Protocol
8200TCPgotoGoToAssist (LogMeIn)
23399TCP & UDPskypeSkype

One thought on “TCP and UDP ports

  1. Pingback: How DNS Works: A Simple Guide to Understanding Internet Addresses – pbwis.com

Comments are closed.