Size of empty UDP and TCP packet?

后端 未结 4 992
萌比男神i
萌比男神i 2020-11-29 02:37

What is the size of an empty UDP datagram? And that of an empty TCP packet?

I can only find info about the MTU, but I want to know what is the \"base\" size of these

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 02:53

    See User Datagram Protocol. The UDP Header is 8 Bytes (64 bits) long.

    The mimimum size of the bare TCP header is 5 words (32bit word), while the maximum size of a TCP header is 15 words.

    Best wishes, Fabian

提交回复
热议问题