Re: download peak control



"Markus P." <newsgroupsNOSPAM@xxxxxxxxxx> writes:
Bernhard Agthe wrote:
try looking for "Traffic Shaping" - afaik there is something like this
in the linux firewall. But this does apply to the sender side mostly.

thanks for your proposal. Today I was told that there is hardly
anything I can do in this matter because the router come before the
computer. Any software would be probably "too late".

For 'traffic shaping' based on limiting the number of independent IP
datagrams being able to 'cross' some link per time unit, this is true
(by the time the datagram reaches your 'point of control' the damage
is already done). But TCP has receiver-imposed flow control by means
of using a 'window', ie some amount of buffer space the sender may
assume to be available, so it may transmit new segments until their
aggregated size is as large as the announced window size (the window
is said to be 'filled' then) and afterwards, it must wait until the
receiver again announces the availabilty of 'some amount of buffer
space'.

Assuming a compliant implementation on the sending side, incoming TCP
traffic could be 'shaped' by means of suitably delayed window
announcements. This would even be easy to implement in userspace,
because it would be sufficient that the receiving application only
empties the socket receive buffer at a certain, predetermined
rate. The sender would then be forced to converge to the same rate.
.



Relevant Pages

  • Internal TCP/IP send buffer?
    ... sender has small blocks of data that need to be transmitted to the receiver ... In theory you can do this by disabling Nagle and setting SO_RCVBUF and so ... What is this buffer, and what can I do to work ...
    (microsoft.public.win32.programmer.networks)
  • Re: Flow Control In UDP/TCP
    ... the sender and the congestion window also at the sender. ... The send window decreases each time new data is sent from ... ACKs of previously sent data (acknowledged by the receiver). ...
    (microsoft.public.win32.programmer.networks)
  • Re: UARTs and interrupts
    ... >> if the buffer is full. ... The sender increments the counter that the receiver ... The receiver then reads the data and increments another counter. ... The sender will check that counter in order to verify that the ...
    (comp.arch.embedded)
  • Re: [9fans] telnet vs. godaddy whois
    ... A good example of how correct behaviour can get ... byte of data when it knows the receiver's window is closed? ... TCP provides a means for the receiver to govern the amount of data ... sent by the sender. ...
    (comp.os.plan9)
  • Re: sendto blocks for unix datagram socket
    ... it will block until the kernel buffer is not full. ... receiver. ... > We tried to send 70 messages from App A to App B, ... After 30 seconds, the sender will be blocked for a second, guaranteed. ...
    (comp.unix.programmer)