TCP-拥塞窗口和接收窗口之间的区别 [英] TCP - difference between Congestion window and Receive window

查看:864
本文介绍了TCP-拥塞窗口和接收窗口之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解拥塞"窗口和接收"窗口之间的区别.

据我了解,接收方窗口是缓冲区,接收方可以在其中获取数据包.拥塞窗口也是如此,它告诉我们接收方的能力范围,并根据丢失的数据包等进行更改.

那么它们之间的区别是什么?

解决方案

举一个简短的答案:接收窗口由接收方管理,接收方将窗口大小发送给发送方.窗口大小会宣布接收方缓冲区中仍可用的字节数,即发送方在无需接收方确认的情况下仍可以发送的字节数.

拥塞窗口是发件人强加的窗口,其实施是为了避免超出网络路径中间的某些路由器.发送方在发送每个段时会稍微增加拥塞窗口,即发送方将允许自己发送更多未完成的数据.但是,如果发送方检测到数据包丢失,它将把窗口切成两半.其背后的基本原理是,发送方假定由于某处的缓冲区溢出而发生了数据包丢失(这几乎总是正确的),因此,发送方希望保持传输中"的数据较少,以避免将来进一步丢失数据包. /p>

有关更多信息,请从此处开始: http://en.wikipedia.org/wiki/Slow-start

I try to understand the difference between Congestion window and Receive window.

As I understand, the receiver window is a buffer where the receiver can get the packets. The same is with the Congestion window which tell us the bound of the Receiver's abilities, and change according to lost packets, etc.

So what is the diffrence between them?

解决方案

To give a short answer: the receive window is managed by the receiver, who sends out window sizes to the sender. The window sizes announce the number of bytes still free in the receiver buffer, i.e. the number of bytes the sender can still send without needing an acknowledgement from the receiver.

The congestion window is a sender imposed window that was implemented to avoid overrunning some routers in the middle of the network path. The sender, with each segment sent, increases the congestion window slightly, i.e. the sender will allow itself more outstanding sent data. But if the sender detects packet loss, it will cut the window in half. The rationale behind this is that the sender assumes that packet loss has occurred because of a buffer overflow somewhere (which is almost always true), so the sender wants to keep less data "in flight" to avoid further packet loss in the future.

For more, start here: http://en.wikipedia.org/wiki/Slow-start

这篇关于TCP-拥塞窗口和接收窗口之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆