Search code examples
network-programmingtcpudpresponsedatagram

Does UDP provide a response message after receiving all packets?


UDP is unreliable on packet level. But, doesn't it provide one response message after recieving all(supposed) packets?

I understand that TCP provide ack for all packets whereas UDP provides one response message for all packets. Am I correct?


Solution

  • UDP is unreliable on packet level.

    The qualification is meaningless. UDP is unreliable, period.

    But, Doesn't is provide one response message after recieving all(supposed) packets?

    No.

    I understand that TCP provide ack for all packets

    No. It provides enough ACKs so the sender knows where the receiver is up to. This can be accomplished by selective ACKs.

    whereas UDP provides one response message for all packets.

    No.

    Am I correct?

    No.

    UDP doesn't send any responses at all. The application must do that if required.