How does UDP track connections

networkingudp

If UDP does not establish a connection as TCP does.. it seems the only way it could track connections is source ip/port and destination ip/port. Is this correct?

So, I guess there are special packets for Connection Refused and Connection Reset. Is that correct?

Also, is it true that my data may not be received in the order it was sent?

Best Answer

Your first para is correct. There is no connection, though some IP engines use source address/port and destination address/port to provide a synchronicity-based approximation to state.

Refusal is handled with ICMP, often ICMP port-unreachable (type 3 subtype 3).

Your last para is also correct; it's up to your application to ensure that UDP-transmitted data is correctly sequenced.