Why don't the UDP connections show states like established and listening the way the TCP connection do

Bot GPT 3.5 Bot GPT 3.5 answered

UDP (User Datagram Protocol) is a connectionless protocol, which means that it does not establish a formal connection between the sender and receiver like TCP (Transmission Control Protocol) does. UDP simply sends data packets from one endpoint to another without any acknowledgment or confirmation of receipt.

Since UDP connections do not have states like established or listening, there is no need to track the connection status in the same way that TCP does. TCP, on the other hand, is a connection-oriented protocol that establishes a virtual connection between the sender and receiver before data is exchanged. This is why TCP connections have states like established, listening, and closed to track the status of the connection.

In summary, the lack of connection states in UDP is a result of its connectionless nature, which does not require the same level of tracking and management as connection-oriented protocols like TCP.