David C. wrote:
> Bob Harris <nospam.RemoveThis@sorry.I.have.been.harvested.before> writes:
>
>>I have experienced this only when remotely connected to work (never
>>local) so I also assume it is network related, like maybe a message
>>has been dropped (missed), and until it times out and a retry is
>>done, everything is stalled.
>
>
> Definitely rsh or network related.
>
>
>>I am also suspecting that maybe it is related to activities that
>>cause Terminal.app to do a screen clear. For example, if I am
>>working in Vim on the remote system, and I execute a shell command,
>>when the shell command finishes, and Vim repaints the screen, I am
>>more likely to have the stall. Other terminal windows connected to
>>the same remote host are still working fine.
>
>
> These kinds of activities transmit much more data over your link than
> you may think. And with every TCP/IP packet being encrypted, any
> delays (due to a slow network or a slow computer) will be magnified.
>
> -- David
Much, much more than you may think.
Vi (vim) sets the transmission to "raw mode" (at least
it used to do so many years ago). This essentially
translates to one packet (and one TCP ack) per character
transmitted under certain circumstances.
One character of payload, 40 (give or take) bytes of
headers, in a 128 byte packet. Then the ACK into
yet another small packet. That's maybe 256 bytes to
place a character on your screen. If one of those
ACKS gets lost in the network, it may take several seconds
(or sometimes minutes) to force a retransmit.
"Vim" is not a good thing to be running across
a network because of this.
[Obligatory War Story]
Many years ago, I did an X.25 driver for a client.
In this case, they wanted to run X.25 over TCP/IP.
The driver worked fine, but my client then got a
complaint from one user that their networking bills
were outrageous.
It seems that, at the time (maybe still, I dunno),
the carriers in Europe were charging by the packet.
Since each character typed into Vi/Vim was essentially
two packets (one transmit, one recieve- to paint the
character on the screen), those folks using vi/vim
across the network were paying a very high premium!
[End obligatory War Story]
NPL
--
"It is impossible to make anything foolproof
because fools are so ingenious"
- A. Bloch<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: terminal.app