The unique "key" of the connected socket is called 5-tuple:
source_ip; source_port; destination_ip; destination_port; protocolUnder the hood, kernel stores TCP sockets and UDP sockets in different tables -> that's why they can live together, and kernel will dispatch them based on protocol on the packet
#network #kernel
