SeattleTestbed / repy_v1

Seattle Testbed's original Repy version 1 sandbox
MIT License
1 stars 4 forks source link

Excessive TCP buffering may impact application level signaling #108

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

Albert Rafetseder reports that they are also having issues with TCP buffering. Apparently on some OSes there can be over two minutes of data buffered (given our default vessel read rate)! This clearly needs to be addressed.

One option is to simply set the TCP receive buffer size to the read rate. This would need to be tested.

A related question is what impact the TCP send buffer size has on this issue.

choksi81 commented 10 years ago

Author: justinc I'm not sure what to set this at. Probably the easiest from a coding perspective is to set it to a fixed value (10K) in repy v1. I could also set it to be whatever nanny's netrecv rate is set to.

choksi81 commented 10 years ago

Author: justinc I've done some testing on Linux and it seems that merely setting the RCVBUF is not enough. The SNDBUF must be set on the sender side too.

It's definitely not the smaller of the two (at least on Linux).

choksi81 commented 10 years ago

Author: justinc Fixed in r3948. The buffersize is set to 10K.