TCP slow-start和速率限制传入流量之间是否有任何链接?是否可以使用慢启动描述的方法人为地限制发送方的发送速率?
另外需要注意的是,我想要实现流量整形的服务器本身建立PPPoE连接,并充当网络其余部分的路由器.
更新:到目前为止的答案已经对我提出的问题进行了公平的概述,但我仍然不知道下载管理器如何能够限制传入流量,更具体地说,是否可以实现类似的策略. Linux网关盒.
解决方法
A process utilizing BSD sockets may perform its own rate limiting.
For upstream limiting,the application
can do this by simply limiting the
rate of data that is written to a
socket. Similarly,for downstream
limiting,an application may limit the
rate of data it reads from a socket.
However,the reason why this works is
not immediately obvIoUs. When the
application neglects to read some data
from a socket,its socket receive
buffers fill up. This in turn will
cause the receiving TCP to advertise a
smaller receiver window (rwnd),
creating back pressure on the
underlying TCP connection thus
limiting its data flow. Eventually
this “trickle-down” effect achieves
end-to-end rate limiting. Depending on
buffering in all layers of the network
stack,this effect may take some time
to propagate.
如果您偶尔需要对UNIX系统上的单个程序进行速率限制,那么简单的解决方案就是trickle.真正的流量整形就像您在网关上执行一样,可以使用tc完成.这在Linux Advanced Routing& Sons的Chapter 9. Queueing Disciplines for Bandwidth Management中有记载.交通管制HOWTO.