TCP and UDP are major protocols in the internet protocol suite. Internet is a network of devices communicating through protocols. Each device has a unique IP address
Port numbers identify specific messages when forwarded to servers. There are 65,535 ports for each IP address. Port numbers work alongside IP addresses to direct network traffic
TCP is connection-oriented, UDP is connectionless. TCP ensures reliable and ordered delivery, UDP doesn't. TCP requires three packets for socket connection, UDP is lightweight
Virtual ports manage network traffic and serve as dedicated lanes for specific applications. TCP and UDP are two main types of virtual ports based on IP protocol. Ports range from 0 to 65535 and are used for various protocols like FTP, SSH, and DNS
Nmap is a free computer scanner that scans network connections. Linux has 65535 ports starting from port 0. Different processes are assigned to specific ports by default
Well-known ports (0-1023) are used by system processes requiring superuser privileges. Registered ports (1024-49151) are assigned by IANA for specific services. Dynamic ports (49152-65535) are private and cannot be registered