encyclopegia.org

YMODEM

YMODEM is a file transfer protocol used between microcomputers connected together using modems.[src] It was primarily used to transfer files to and from bulletin board systems.[src] YMODEM was developed by Chuck Forsberg as an expansion of XMODEM and was first implemented in his CP/M YAM program.[src] Initially also known as YAM, it was formally given the name "YMODEM" in 1985 by Ward Christensen, author of the original XMODEM.[src] YMODEM extended XMODEM in three ways, combining features found in other extended XMODEM varieties.[src] Like XMODEM-CRC, YMODEM replaced the 8-bit checksum with a 16-bit cyclic redundancy check (CRC), but made it the default form of correction instead of optional.[src] From TeLink it added the "block 0" header that sent the filename and size, which allowed batch transfers (multiple files in a single session) and eliminated the need to add padding at the end of the file.[src] Finally, YMODEM allowed the block size to be increased from the original 128 bytes of data to 1024, as in XMODEM-1k, which greatly improved throughput on faster modems.[src] Forsberg built the standard with all of these features as runtime options, allowing a single protocol driver to fall back to XMODEM-CRC or even XMODEM when connecting to non-YAM systems.[src] He believed that programmers would want to implement as many of these features as possible on any given platform.…[src]

YMODEM is a file transfer protocol used between microcomputers connected together using modems.[src] It was primarily used to transfer files to and from bulletin board systems.[src] YMODEM was developed by Chuck Forsberg as an expansion of XMODEM and was first implemented in his CP/M YAM program.[src] Initially also known as YAM, it was formally given the name "YMODEM" in 1985 by Ward Christensen, author of the original XMODEM.[src] YMODEM extended XMODEM in three ways, combining features found in other extended XMODEM varieties.[src] Like XMODEM-CRC, YMODEM replaced the 8-bit checksum with a 16-bit cyclic redundancy check (CRC), but made it the default form of correction instead of optional.[src] From TeLink it added the "block 0" header that sent the filename and size, which allowed batch transfers (multiple files in a single session) and eliminated the need to add padding at the end of the file.[src] Finally, YMODEM allowed the block size to be increased from the original 128 bytes of data to 1024, as in XMODEM-1k, which greatly improved throughput on faster modems.[src] Forsberg built the standard with all of these features as runtime options, allowing a single protocol driver to fall back to XMODEM-CRC or even XMODEM when connecting to non-YAM systems.[src] He believed that programmers would want to implement as many of these features as possible on any given platform.[src] He was dismayed to find that the majority of implementations were actually providing nothing more than 1k block size with CRC-16, failing to implement the "block 0" while continuing to use the YMODEM name.[src] The result was the release of many mutually incompatible YMODEM implementations, and the use of the name YMODEM Batch to clearly indicate those versions that did support the complete standard.[src] ==Features== ===XMODEM=== The original XMODEM was a very simple protocol and that is the reason for its success; it could be implemented on practically any machine of the era, even those with very limited processors and storage.[src] It worked by breaking up the data to be sent into 128-byte packets, adding a 3-byte header and 1-byte checksum footer, and sending the resulting 132-byte packets out in order.[src] The receiving computer recalculated the checksum from the 128 bytes of data, and if it matched the checksum sent in the footer it sent back an , and if it did not match, a .[src] When the sender received an it sent the next packet, while a caused it to re-send the last one.[src] There were a number of problems with the protocol.[src] The use of a simple checksum meant some common errors could go unnoticed.[src] The small packet size and requirement to wait for the or led to slow performance on higher speed links or ones with significant latency.[src] Finally, as the transfer contained no details of the file, every file had to be manually started, which could be a chore when many small files were being transferred.[src] Solutions to these problems were developed during the early 1980s.[src] XMODEM-CRC replaced the checksum with a 16-bit cyclic redundancy check (CRC), which was much more resistant to common errors.[src] XMODEM-1k expanded the packet size from 128 bytes to 1024, improving performance on higher-speed connections, while others, like WXMODEM and SEAlink instead introduced sliding window systems to combat both performance and latency, at the cost of some complexity.[src] Still others, like TeLink and MODEM7, added file information so that a single transfer could contain multiple files, allowing batches of files to be sent with a single command.[src] ===YMODEM=== Chuck Forsberg, author of the CP/M "Yet Another Modem program", or YAM, decided to write a single protocol driver that supported many features compared to XMODEM and called it YMODEM.[src] When the users started a transfer they could indicate which options they wanted on the command line, for instance, saying they wished to use CRC.[src] The protocol was written so that it would attempt this style, but gracefully fall-back to match whatever capabilities the remote software did implement.[src] ====Abort==== One problem with the original XMODEM was that there was no defined way to abort the transfer once started.[src] The normal solution was to send s to every subsequent packet if the user requested it.[src] Since the XMODEM protocol defined a limit of ten s to abort a send, and each packet might take a second to send, this meant there was a ten second delay where the sender continually sent data that was simply ignored.[src] Some implementations had added the ability to send a instead of or at the end of a received packet to indicate an abort.[src] Unfortunately, there was the possibility that a could be generated by line noise and trigger an abort.[src] YAM thus modified this slightly to require two s back-to-back, which would immediately perform a "graceful abort" on the sender end.[src] ====CRC==== CRC support had been introduced in XMODEM-CRC.[src] This was a very simple change to the original protocol; if requested, the receiver would attempt to trigger the transfer by sending an initial instead of a .[src] If the remote sender supported the CRC option, it would begin sending packets as normal, but with a 16-bit CRC in the footer rather than the 1-byte checksum.[src] YAM supported this option with no changes.[src] ====1k==== 1024-byte packets had been introduced in XMODEM-1k.[src] This version did not change the trigger character from the receiver, so there was no way for the sender to know whether the receiver supported larger packets.[src] Instead, XMODEM-1k was presented as a separate protocol on both ends of the connection.[src] When such a connection was started, the sender could choose to send either 1024 bytes in a packet or 128, indicating the larger with an character in the header rather than the normal .[src] Normally only the last few packets would use the smaller packets, to avoid sending large amounts of padding.[src] 1k also assumed CRC for all connections.[src] YAM supported 1k with no changes.[src] ====Zero packet==== In order to support automated transfers of FidoNet mail, MODEM7 introduced the ability to send the filename as plain text before sending the first block of data.[src] This was not reliable, and TeLink improved this by placing the filename, and optionally other data like the creation date and file length, in a complete 128-byte packet.[src] XMODEM started transfers with packet number one, so TeLink sent this packet as number zero.[src] This "zero packet" or "block zero" became common in other FidoNet systems like SEAlink and others.[src] YAM supported the zero packet format, but it was ignored by many 3rd party implementations of YMODEM.[src] When one implementation attempted to send the zero packet to a non-aware version, the receiver would naturally the packet, as packet zero is illegal.[src] The sender would then see the as a transmission error and try to send the packet again, attempting this ten times before failing.[src] For reasons that are not entirely clear, many implementations of YMODEM did not implement this feature.[src] Because they were unaware of it, they sent a , triggering a series of resend attempts before failing out.[src] This meant that if the user chose to use a compliant YMODEM with a non-compliant version, the transfers would fail.[src] Nevertheless, such non-compliant versions were common.[src] As a result, it was common to see both YMODEM and YMODEM Batch listed as two separate protocols.[src] Further confusion was created by the similarity between XMODEM-1k and these non-compliant YMODEMs, which were similar to the point that they were often incorrectly listed as the same.[src] ==Streaming support== YMODEM-G is a streaming variant used for error-free connections.[src] It does not wait for an ACK to be received before sending the next packet; XON/XOFF is used for flow control.[src] The protocol is faster than YMODEM because no latency is introduced between packets, but has no capability for correcting errors.[src] It is reliant on the underlying connection being error-free, which is the case for modems supporting MNP for instance.[src] Normally, a YMODEM transfer would be started by the receiver sending a to indicate it wants to use the 128-byte format with CRC, or if it wishes to use the original checksum system.[src] When g-protocol is desired, the transfer is instead triggered by sending a .[src] If the sender does not support the g-protocol, it considers this to be an error and ignores it, but if it does support g it begins sending packets in a continual stream.[src] It only expects a single after the final packet is received, which is indicated by the presence of an character in the data.[src] YMODEM-g assumes 1k packets are available.[src] However, despite this protocol potentially being faster than ZMODEM it was still rarely used.[src] This was partially due to the lack of other functionality, but also a more serious issue.[src] Before the emergence of the 16550 UART, there was a substantial risk of buffer overrun on the serial port.[src] Although this would be detected by YMODEM-g it could not be corrected since no block re-transmission is possible.[src] The receiver would have to cancel and restart the whole transmission from the beginning.[src] ZMODEM on the other hand has transfer resume capability which made it more appealing.[src] ==References== XMODEM / YMODEM Protocol Reference by Chuck Forsberg, October 10, 1985 XMODEM / YMODEM Protocol Reference by Chuck Forsberg, June 18, 1988 (document reformatted October 14, 1988) (HTML version with text issues)[src]

83 sentences · 83 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"YMODEM." encyclopegia.org, 2024, https://encyclopegia.org/wiki/ymodem. Accessed 25 November 2026.

Chicago

"YMODEM." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/ymodem.

APA

encyclopegia.org. (2024). YMODEM. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/ymodem

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1250153451 · 0.5 · snapshot enwiki-001250153451

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.