Why does UDP have a length field in the header and TCP does not?

前端 未结 4 1160
清酒与你
清酒与你 2021-02-01 04:21

Why does UDP have a length field in the header and TCP does not?

I am guessing that the length of the segment in TCP is inferred from the IP header but one should be abl

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 04:25

    According to TCP/IP Illustrated Volume 1, the length field is redundant. That's all Stevens says on the matter.

    I personally believe it was to make the UDP header length (in bits) divisible by 32 :)

提交回复
热议问题