关于TCP/IP Illustrated vol.1 2.10节中一句话的理解

本文解释了当线路速度为9600比特/秒时,使用SLIP连接进行数据传输的具体情况。对于1024字节的数据包,传输所需时间为1066毫秒。在交互式应用与FTP等应用共用此连接时,平均等待时间为533毫秒。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

If the line speed is 9600 bits/sec, with 8 bits per byte, plus 1 start bit and 1 stop bit, the line speed is 960 bytes/sec. Transferring a 1024-byte packet at this speed takes 1066 ms. If we're using the SLIP link for an interactive application, along with an application such as FTP that sends or receives 1024-byte packets, we have to wait, on the average, half of this time (533 ms) to send our interactive packet.

 

为什么我们平均需要等待533ms呢?

答案是根据假设,我们在使用SLIP连接,因为SLIP的数据帧没有协议信息,因此,发送某一个协议的数据时,就不能发送另一种协议的数据。所以使用SLIP时,我们的交互程序要么可以发送interactive packet(等待0ms),要么不能(要发送FTP数据,等待1066ms),因此平均下来就是要等待533ms了。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值