home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.dcom.modems:13218 comp.unix.sysv386:14299 comp.protocols.misc:689
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!smurf.sub.org!ppcnet!sks!mcd!mips.ruessel.sub.org!naddy
- Message-ID: <H.RRvhLAl&jVQ@mips.ruessel.sub.org>
- From: naddy@mips.ruessel.sub.org (Christian Weisgerber)
- Newsgroups: comp.dcom.modems,comp.unix.sysv386,comp.protocols.misc
- Subject: Re: uucico w/v32bis vs zmodem w/v32bis
- Organization: My Individual Private Site
- Date: Tue, 08 Sep 1992 13:16:12 CET
- References: <Bu40L8.47w@gator.rn.com> <5N6oqB3w165w@zswamp.UUCP>
- Lines: 46
- Reply-To: naddy@mips.ruessel.sub.org
-
- In <5N6oqB3w165w@zswamp.UUCP>, Geoffrey Welsh writes:
-
- > I believe that the difference in throughput is about 5%, resulting from
-
- YModem-g has a consistent overhead of 5 chars per 1k block, that's less
- than 0.5%. For ZModem, see below.
-
- > Perhaps, if Chuck is reading this, he could remind us of ZMODEM's subpacket
- > overhead... and of how many bytes are circumvented with escape codes in
- > vanilla ZMODEM.
-
- (I'm not Chuck, but according to his documentation:)
-
- Plain ZModem escapes <can>, <xon>, <xoff>, M-<can>, M-<xon>, M-<xoff>
- ("M-" means upper bit set) and the <cr>@<cr> sequence. Escaping is done
- by prefixing ZDLE (<can>) and XORing the character with 0x40.
-
- ZModem offers three types of headers/frames: hex, binary (CRC-16),
- binary (CRC-32). I assume the latter is used most when transferring
- binary data:
-
- ZPAD ; '*' 1
- ZDLE ; <can> 1
- 'C' 1
- <type> 1
- <flag/position> ; 32 bit value 4
- ... ; data max. 1024
- <CRC> ; 32 bit CRC 4
-
- Thus we have 12 characters basic overhead per block. Note that all of
- the data send, including header and CRC, is escaped if necessary. This
- makes calculating actual overhead a rather nasty affair.
-
- Considering that packed data should be pseudo-random, i.e. all byte
- values appear equally often, there are already (6 out of 256) * 4
- = 24 characters to escape. Total overhead should be close to 4%
- (estimate).
-
- Since Moby Turbo isn't in the public domain anymore I don't have any
- specs about it. I assume it simply doesn't escape any characters except
- ZDLE (<can>).
-
-
- bye
- --
- Christian "naddy" Weisgerber, Germany naddy@mips.ruessel.sub.org
-