[forward] What's the minimum size of a TCP packet

// http://superuser.com/questions/243008/whats-the-minimum-size-of-a-tcp-packet

这里的图片不错,转一个

Lets assume you're sending 1 byte of data1 over the internet, on the TCP/IP model.

The data starts on the application level and needs to be wrapped up in headers for the lower levels so that it can be passed around.

First that data is wrapped in a TCP Segment, which adds a header of 20 bytes (min size now 21 bytes).
This puts us on the transport level.

This is then wrapped in an IP Packet, which adds another header of 20 bytes (min size now 41 bytes).
Now we're on internet level.
Note that this wrapping is changed each time a new router forwards your data to a new subnet.

This is wrapped in a link frame of some type - of which the header and footer size vary depending on the type of frame used, which depends on the type of link being used.
This is on link level.
This wrapping is changed each time the unit if transmitted between two entities.

Finally is the physical transmission (eg, electrical signals down a cable, radio waves, etc).

Here's some informative images available from the Wikipedia TCP/IP model page that hep to visually explain what is happening:




1. I guess you might be able to send 0 bytes... but haven't checked that. In fact I haven't checked if 1 byte is allowed either, but hey.

转载于:https://www.cnblogs.com/dtozg/articles/2467069.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值