← BYTES
Unix IPC·Starter·Ref: 15.1.37

Which of these is true about UDP compared to TCP regarding connection states like TIME_WAIT and CLOSE_WAIT?

Have a question about this video? Mention reference 15.1.37 when you contact us.

a.UDP is connectionless -- it has no handshake, no FIN-based close sequence, and therefore no TIME_WAIT or CLOSE_WAIT states at all
b.UDP has the exact same connection-state machine as TCP, including TIME_WAIT and CLOSE_WAIT
c.UDP has TIME_WAIT but not CLOSE_WAIT
d.UDP uses TIME_WAIT for every single packet sent
TIME_WAIT and CLOSE_WAIT are specifically TCP concepts, arising from TCP's connection-oriented design (handshake to open, FIN exchange to close). UDP is connectionless -- a UDP socket just sends/receives discrete datagrams with no handshake or orderly-close concept, so none of this state machine applies to it.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES15137#UnixIPC