Ensuring packet order in UDP

前端 未结 4 1216
陌清茗
陌清茗 2021-01-04 20:21

I\'m using 2 computers with an application to send and receive udp datagrams. There is no flow control and ICMP is disabled. Frequently when I send a file as UDP datagrams v

4条回答
  •  伪装坚强ぢ
    2021-01-04 20:33

    there is no flow control (ICMP disabled)

    You can implement your own flow control using UDP:

    • Send one or more UDP packets
    • Wait for acknowledgement (sent as another UDP packets from receiver to sender)
    • Repeat as above

    See Sliding window protocol for further details.

    [This would be in addition to having a sequence number in the packets which you send.]

提交回复
热议问题