home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / archives / msdos / d / 232 < prev    next >
Encoding:
Text File  |  1992-12-29  |  3.8 KB  |  75 lines

  1. Newsgroups: comp.archives.msdos.d
  2. Path: sparky!uunet!pipex!ibmpcug!exnet!dcs.ed.ac.uk!sct
  3. From: sct@dcs.ed.ac.uk (Stephen Tweedie)
  4. Subject: Re: *** WHAT'S THE BEST COMM PROTOCOL ***
  5. In-Reply-To: olevnmr@chem.ualberta.ca's message of 22 Dec 92 18:24:01 GMT
  6. Message-ID: <SCT.92Dec29135439@ascrib.dcs.ed.ac.uk>
  7. Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
  8. Organization: University of Edinburgh Dept. of Computer Science, Scotland
  9. References: <1992Dec21.181829.4391@porthos.cc.bellcore.com> <olevnmr.725048641@sunfun>
  10. Date: Tue, 29 Dec 1992 13:54:39 GMT
  11. Lines: 62
  12.  
  13. In article <olevnmr.725048641@sunfun>, olevnmr@chem.ualberta.ca (olevnmr) writes:
  14. > Just one thing to say here..
  15. > DON'T USE KERMIT!!!!!! 
  16.  
  17. > I recently was using kermit on my 1200 baud (gasp!) modem to load files
  18. > from a unix box to my PC. The actual data transfer rate with kermit was
  19. > about 30-35 cps. I found that it is about 2.5 times faster to uuencode
  20. > files, transfer them as text, and then decode them. (4 times faster data
  21. > transfer, but 1.37 times filesize increase by uuencoding) I would love to
  22. > use zmodem, but unfortunately none of our machines at work support it, 
  23. > and I don't know offhand of a free unix package that does. Of course, 
  24. > what I really want is a 14.4 kbps modem... :-)
  25.  
  26. The trouble with Kermit is that it is compatible with just about
  27. anything.  In particular, it will run on mainframes which basically
  28. run in half-duplex mode (no simultaneous transmit/receive; once they
  29. start inputing data, they are stuck there until they receive a CR).
  30. The original kermit, then, sent a (short) line of data and then waited
  31. for an acknowledgement before continuing, just to keep the other end
  32. happy.
  33.  
  34. Of course, even a short packet can experience long delays getting from
  35. point to point, so this idle time waiting for an acknowledgement hits
  36. your performance.  Modern computer systems may not be subject to the
  37. same restrictions as older mainframes, so there are two ways to
  38. improve things...
  39.  
  40. Bigger packets:the end-to-end delay is less significant if you keep
  41. the idle period constant but increase the busy period by sending more
  42. data at once.  Of course, there is a potential problem - if you have a
  43. noisy connection, then increasing the packet size also increases the
  44. amount of work that has to be done when a packet fails to get through,
  45. and also increases the likelyhood of a packet being corrupted.  So,
  46. bigger packets can't always be used on a poor line.
  47.  
  48. Sliding windows: don't wait for an acknowledgement after the first
  49. packet sent.  With a sliding window of two, you only wait after
  50. sending the second packet (actually, you wait whenever there are two
  51. unacknowledged packets outstanding).  The hope is that while you send
  52. the second packet, the other end will receive and acknowledge the
  53. first, so that once the second packet is out, the sender will have
  54. received the first acknowledgement and so can proceed with sending the
  55. next packet.  In other words, with a sufficiently large sliding
  56. window, the sender never has to wait for an acknowledgement.
  57.  
  58. The default with most kermits is 90 byte packets and 1 sliding window;
  59. increasing this to 1000-byte packets and 2 sliding windows (on a good
  60. line) or 200-byte packets and 4 sliding windows (on a poorer line)
  61. should allow you to saturate the modem line, for a massive boost to
  62. performance.
  63.  
  64. There should NEVER be any harm in setting the parameters this high,
  65. since the first thing two kermits do when talking to each other is
  66. negotiate a mutually acceptable set of parameters, effectively using
  67. the user-supplied values as an upper limit.  So, it should be safe to
  68. set these higher parameters as a default for your kermit (in an
  69. initialisation file, for example).
  70.  
  71. Hope this helps.
  72. ---
  73. Stephen Tweedie <sct@uk.ac.ed.dcs>   (Internet: <sct@dcs.ed.ac.uk>)
  74. Department of Computer Science, Edinburgh University, Scotland.
  75.