0

I just implemented both tcp and udp for sending some datagrams. When sending 10mb of those datagrams, the sending on udp is finished in 1 seconds and it cost me 3 extra mb in resends for packet loss.

With tcp it took 30 seconds at about 5 mb overhead.

Is this expected behavior, or did I probably mess up the tcp implementation somewhere?

user3488765
  • 415
  • 3
  • 12
  • 1
    Possible duplicate of [UDP vs TCP, how much faster is it?](https://stackoverflow.com/questions/47903/udp-vs-tcp-how-much-faster-is-it) – Ken White Aug 13 '17 at 03:42
  • 30 seconds is alot. How does cwnd behave? What is the round-trip-time? Are you sending over wifi? – FormerNcp Aug 17 '17 at 20:03

0 Answers0