The most reliable and efficient udp packet size?

前端 未结 4 2010
谎友^
谎友^ 2020-12-08 07:16

Would sending lots a small packets by UDP take more resources (cpu, compression by zlib, etc...). I read here that sending one big packet of ~65kBYTEs by UDP would probably

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 08:11

    534 bytes. That is required to be transmitted without fragmentation. It can still be lost altogether of course. The overheads due to retransmission of lost packets and the network overheads themselves are several orders of magnitude more significant than any CPU cost.

提交回复
热议问题