[mosh-devel] Lazy buffers?

Keith Winstein keithw at cs.stanford.edu
Tue Apr 21 03:22:09 EDT 2015


Hello Robert,

Thanks for your email! We do this to a degree, but with the goal of
_reducing_ latency -- please see Figure 3 of the Mosh paper (
https://mosh.mit.edu/mosh-paper.pdf).

With the constants tuned differently, we end up reducing the packets sent
as you suggest. This is in the "lowbandwidth" branch in the Git repository.

Cheers,
Keith

On Mon, Apr 20, 2015 at 6:00 PM, Robert Redelmeier <redelm at sbcglobal.net>
wrote:

>  First, thanks y'all for your work on mosh!
> Second, a suggestion for your consideration (_NOT_ a vile "feature
> request"):
>
> Have you considered allowing send buffers to fill a bit before
> sending?  Not sending ASAP, but often sending more than one char
> per packet?  Of course this increases latency, but reduces packet
> count _tremendously_ and data usage likewise since the payload is
> tiny compared to overhead (incl ACK)..
>
> Not sure how this would interact with SSP, but I hacked ssh to do
> this 10+ years ago.  To minimize the latency when it would most
> annoy, the buffer was released if a command was received or when
> typing stopped for 300-600ms.  Commands were considered to be any
> control-char or any duplicated char (likely to be cursor movement).
>
> Of course, latency is sometimes noticeable but that is the price
> of reduced transmission data.  Most of the time, I'm typing blind
> anyways -- I'm not going to focus on the screen unless needed.
> Sometimes the reductions were as large as 70%, more often 50%.
>
> -- Robert in Houston
>
>
> _______________________________________________
> mosh-devel mailing list
> mosh-devel at mit.edu
> http://mailman.mit.edu/mailman/listinfo/mosh-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mosh-devel/attachments/20150421/85307361/attachment.html


More information about the mosh-devel mailing list