home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Standards 1993 July / Disc.iso / inet / rfc / rfc9xx / rfc935. < prev    next >
Encoding:
Text File  |  1985-01-30  |  30.9 KB  |  742 lines

  1.  
  2.  
  3. Network Working Group                                        J. Robinson
  4. Request for Comments: 935                                            BBN
  5.                                                             January 1985
  6.  
  7.                      RELIABLE LINK LAYER PROTOCOLS
  8.  
  9.  
  10. Status of This Memo
  11.  
  12.    This RFC discusses protocols proposed recently in RFCs 914 and 916,
  13.    and suggests a proposed protocol that could meet the same needs
  14.    addressed in those memos.  The stated need is reliable communication
  15.    between two programs over a full-duplex, point-to-point communication
  16.    link, and in particular the RFCs address the need for such
  17.    communication over an asynchronous link at relatively low speeds.
  18.    The suggested protocol uses the methods of existing national and
  19.    international data link layer standards.  This RFC suggests a
  20.    proposed protocol for the ARPA-Internet community, and requests
  21.    discussion and suggestions for improvements.  Distribution of this
  22.    memo is unlimited.
  23.  
  24. Introduction
  25.  
  26.    This RFC is motivated by recent RFCs 914 and 916, which propose new
  27.    standards for protocols that transfer serial data reliably over
  28.    asynchronous communication lines.  In this note, I summarize
  29.    widely-used standards that have been in existence for some time that
  30.    might be appropriate for this environment.  I hope that the existing
  31.    standards will be found to meet the needs the new proposals seek to
  32.    address.
  33.  
  34.    In both the US and international standards areas, there are two major
  35.    categories of serial data communication standards for the link layer.
  36.    These categories are character-oriented and bit-oriented.  The first
  37.    is the older class; it is standardized in the US standard ANSI
  38.    X3.28-1976 (which superseded the original version of 1971), and in
  39.    the ISO standards IS 1745, IS 2111, IS 2628 and IS 2629.  Although
  40.    frequently used in synchronous environments, wherein the name binary
  41.    synchronous (or bisynch) is used, these standards use the term "basic
  42.    mode" to describe their procedures.  The latter class is standardized
  43.    in the US standard ADCCP (Advanced Data Communication Control
  44.    Procedures), ANSI X3.66- 1979, and in the ISO standard HDLC
  45.    (High-level Data Link Control procedures), in IS 3309, IS 4335 and IS
  46.    7809.
  47.  
  48.    Other international standards, draft standards and vendor standards
  49.    follow the ADCCP/HDLC procedures.  Among these are SDLC (IBM), X.25
  50.    LAPB (CCITT), IEEE 802.2/ISO 8802.2 LLC (LAN Logical Link Control)
  51.    and ISDN LAPD (CCITT).  Many vendors have built equipment which meets
  52.  
  53.  
  54.  
  55.  
  56. Robinson                                                        [Page 1]
  57.  
  58.  
  59.  
  60. RFC 935                                                     January 1985
  61. Reliable Link Layer Protocols
  62.  
  63.  
  64.    the character-oriented standards, in both synchronous and
  65.    asynchronous environments, including all the major US mainframe
  66.    manufacturers.
  67.  
  68.    The only other serial link layer protocol known to the author in as
  69.    wide use as these is DEC's DDCMP (Digital Data Communications Message
  70.    Protocol).  This protocol uses a character count instead of framing
  71.    characters, but is in other respects a character-oriented protocol.
  72.  
  73.    The next sections of this note will compare the three protocols above
  74.    on several bases, paying particular attention to the characteristics
  75.    that make particular aspects of the protocol appropriate to the
  76.    low-speed, asynchronous, serial environment.
  77.  
  78. Frame Structure
  79.  
  80.    All serial protocols divide the data to be transmitted into units
  81.    known as frames.  A frame is typically one to several hundred
  82.    characters in length.  The frame structure is the major difference
  83.    used above to divide the protocols into three classes.
  84.  
  85. Character-Oriented Framing
  86.  
  87.    Character-oriented protocols use two techniques for defining a frame.
  88.    First, it is necessary to determine where characters start and stop.
  89.    The technique used for this purpose is to transmit a number of unique
  90.    characters prior to the start of a frame.  The character generally
  91.    used for this is the SYN character.
  92.  
  93.    Note that this is not required when using asynchronous transmission.
  94.    Since each character is itself framed by start and stop bits, there
  95.    is never a question of where characters begin and end.
  96.  
  97.    The main technique for structuring a frame is the use of special
  98.    framing characters to delineate the start and end of a frame, and to
  99.    delineate portions of the frame (such as header and text).  Some uses
  100.    of character-oriented protocols require that these characters never
  101.    appear in the header or text of the frame, while others allow
  102.    "transparent" transmission.  Transparency is obtained by preceding
  103.    each framing character by a unique control character, typically DLE.
  104.    In this way, all characters may be sent as header or text, except for
  105.    DLE.  In order to allow DLE to be sent in the header or text, the DLE
  106.    is doubled.
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Robinson                                                        [Page 2]
  114.  
  115.  
  116.  
  117. RFC 935                                                     January 1985
  118. Reliable Link Layer Protocols
  119.  
  120.  
  121. Bit-Oriented Framing
  122.  
  123.    Bit-oriented protocols also use a unique character (technically, it
  124.    is just an arbitrary bit-string) for frame delineation, which is the
  125.    FLAG.  This character provides frame synchronization.  All bits
  126.    between two occurrences of FLAGs constitute a frame.  The FLAG is a 0
  127.    bit, followed by six 1 bits, followed by another 0 bit.  In order
  128.    that the FLAG character not appear mistakenly in the data of the
  129.    message, the sender inserts (and the receiver removes) an extra 0 bit
  130.    after any five successive 1 bits in the data stream.
  131.  
  132.    Because this insertion of bits ("stuffing") results in arbitrary
  133.    frame bit-lengths, bit-oriented protocols are generally useful only
  134.    in synchronous transmission environments.  Although it has never been
  135.    attempted, however, one could imagine an asynchronous environment
  136.    where each FLAG character that appears in the data is translated into
  137.    a two- character sequence that avoids FLAGs, and at least one other
  138.    character is similarly translated.  For example, one could frame data
  139.    with FLAGS, and send DLE-F to mean FLAG and DLE-DLE to mean DLE when
  140.    these characters occur within the frame.
  141.  
  142.    Note that bit-oriented procedures do not require that the number of
  143.    bits between FLAGs be an exact number of 8-bit characters, in
  144.    distinction to character-oriented protocols and DDCMP.  The necessity
  145.    for character-alignment may be imposed at higher layers, as it is,
  146.    for example, in X.25 Network Layer.
  147.  
  148. Frame Structure in DDCMP
  149.  
  150.    DDCMP uses a third approach to frame structure.  Like
  151.    character-oriented protocols, it uses a SYN character to achieve
  152.    character synchronization prior to starting a frame, but one cannot
  153.    dispense with this over asynchronous lines (see below).  Contained
  154.    within the fixed-length header portion of the frame is a count field,
  155.    which reports how many characters are contained in the
  156.    variable-length text portion.  Since no framing characters are
  157.    required at all, transparency is not a problem.  However, because the
  158.    count must be received properly for the sender and receiver to stay
  159.    in frame synchronization, the header is protected with a separate
  160.    error control checksum, which is typically two characters long (see
  161.    below). Also, once a header error has been detected, the count field
  162.    must be assumed to be invalid, and so there must be a unique
  163.    character sequence that introduces the next header in order that the
  164.    receiver can regain synchronization with the sender.
  165.  
  166.    Therefore, the SYN characters preceding a frame are required even on
  167.    asynch lines.
  168.  
  169.  
  170. Robinson                                                        [Page 3]
  171.  
  172.  
  173.  
  174. RFC 935                                                     January 1985
  175. Reliable Link Layer Protocols
  176.  
  177.  
  178. Error Detection
  179.  
  180.    Several types of error control may be used, and the various protocols
  181.    above are similar.  Most synchronous uses require a cyclic redundancy
  182.    check sequence be attached to each frame.  This is a 16-bit sequence
  183.    which can be easily generated and checked in hardware using a shift
  184.    register, and can be somewhat more tediously done in software with
  185.    about 5-6 instructions per character sent or received, and a 256 by
  186.    16-bit lookup table.  DDCMP and Bit-oriented protocols all require
  187.    use of such a sequence.  As noted above, DDCMP uses a check sequence
  188.    twice, once for the header and once for the data.
  189.  
  190.    In some environments, weaker checks are used on character-oriented
  191.    links.  These take two forms.  If the the number of significant bits
  192.    per character is only 7, then the parity bit can be set to achieve
  193.    either odd or even parity.  ANSI standard X3.16-1976 specifies that
  194.    odd parity should be used on synchronous links and even parity on
  195.    asynchronous links.  The second type of check is "longitudinal
  196.    parity", wherein one character is added to the frame so that the
  197.    number of 1 bits in each bit position summed over all the characters
  198.    of the message and the check character is even.  In other words, the
  199.    exclusive-or of all the characters is 0.  Character parity and
  200.    longitudinal parity may be used together.
  201.  
  202.    Note also that most character-oriented control messages, such as
  203.    those that poll, select, and acknowledge, are sent with only parity
  204.    for error control.
  205.  
  206. Sequence Control
  207.  
  208.    All these protocol provide reliable transmission by sequencing the
  209.    frames and providing positive and (in some cases) negative
  210.    acknowledgments.  Senders can ask the receiver for status if a reply
  211.    is late.
  212.  
  213.    In character-oriented protocols, frames are implicitly numbered
  214.    (typically) and only one may be outstanding at a time.
  215.    Acknowledgments are explicitly numbered.  One variant allows each
  216.    block (frame) to be explicitly numbered as well; in this case up to 7
  217.    may be outstanding.
  218.  
  219.    In bit-oriented protocols, frames are explicitly numbered and up to 7
  220.    may be outstanding at a time.  Optional control field extension
  221.    allows for up to 127 outstanding.  An alternate procedure that has
  222.    been defined for use both in the ISDN LAPD environment and in IEEE
  223.  
  224.  
  225.  
  226.  
  227. Robinson                                                        [Page 4]
  228.  
  229.  
  230.  
  231. RFC 935                                                     January 1985
  232. Reliable Link Layer Protocols
  233.  
  234.  
  235.    802 LAN environments uses, in effect, a one-bit sequence number and
  236.    one outstanding frame.  Also, unsequenced, unacknowledged information
  237.    frames can be used when frames need not be sent reliably.
  238.  
  239.    In DDCMP, the frames are explicitly numbered and up to 255 may be
  240.    outstanding.
  241.  
  242. Addressing
  243.  
  244.    All of these protocols allow for addressing stations on a multipoint
  245.    link separately.  In LAN environments, both a sending and receiving
  246.    address are required, whereas multipoint environments use a single
  247.    address and assume one master station communicating with multiple
  248.    addressed slave stations.  In bit-oriented protocols, the address
  249.    provides extra information in that frames can be categorized as
  250.    commands or responses; in this sense, the address provides another
  251.    control bit per frame.  However, it is possible to operate without
  252.    needing this distinction.
  253.  
  254.    Addresses are typically one character long; bit-oriented protocols
  255.    allow for extension of this field to arbitrary length.
  256.    Character-oriented protocols use two-character (controller and
  257.    terminal) addresses.
  258.  
  259.    For point-point operation, the address is clearly superfluous (except
  260.    to distinguish commands and replies in bit-oriented protocols); one
  261.    might imagine dispensing with it.
  262.  
  263. The Asynchronous Environment
  264.  
  265.    Which of these protocols is best for the asynchronous environment?
  266.    This depends on the definition of "best", of course.  One means of
  267.    judging is to compare the amount of overhead that each protocol would
  268.    add to each frame sent.
  269.  
  270.    We will examine the overhead costs in two groups:
  271.  
  272.       framing/transparency/error checking,
  273.  
  274.       and addressing/control.
  275.  
  276.    The two groups of functions are independent of each other, even
  277.    though the protocols mentioned above use specific combinations of
  278.    techniques from these two groups.  Also, hardware available on
  279.    minicomputer-class and larger machines today supports the first group
  280.    of functions completely for these standard protocols; this fact
  281.    should allow for far greater performance from the gateway machine.
  282.  
  283.  
  284. Robinson                                                        [Page 5]
  285.  
  286.  
  287.  
  288. RFC 935                                                     January 1985
  289. Reliable Link Layer Protocols
  290.  
  291.  
  292.    To the extent that such hardware becomes available for personal
  293.    computers, it can also be used there to reduce the protocol
  294.    processing overhead.  Here's a breakdown of framing costs in
  295.    characters.  RATP is also included for comparison.
  296.  
  297.       Protocol   Frame   Check  Transp.  Total    F+C
  298.  
  299.       char-or.     4       2       2       8       6
  300.       bit-or.      1       2       2       5       3
  301.       DDCMP        4       4       0       8       8
  302.       RATP         2       3       0       5       5
  303.  
  304.    The transparency column indicates the anticipated cost in inserted
  305.    characters to achieve transparency across a 256-byte frame.  The
  306.    figure for bit-oriented protocols is a pessimistic guess, because I
  307.    don't know the exact answer; it is between 0 and 8 characters, with
  308.    the worst case occurring when the data is all one bits.  For
  309.    character-oriented protocols, we would expect on average one DLE
  310.    character in a 256-byte frame; the worst case overhead (256 DLEs) is
  311.    256 bytes.
  312.  
  313.    Because transparency is so much a function of the user data, and
  314.    because we have ignored the cost of loss of frame synchronization in
  315.    the counting protocols (DDCMP and RATP), I argue that we should base
  316.    the comparison on the frame and checksum costs only.  For these two
  317.    columns, character-oriented framing costs one more character per
  318.    frame than RATP. This, plus its wide use and hardware chip support,
  319.    create a strong case for its use in preference to RATP for framing.
  320.  
  321.    Bit-oriented framing, as noted previously, is appropriate only on
  322.    synchronous links.  The character oriented variant I postulated above
  323.    would have the same costs, but as it is not a standard, it is not
  324.    proposed here.  So we now have constructed the following frame
  325.    format:
  326.  
  327.       DLE STX <control and data ...> DLE ETX CRC CRC
  328.  
  329.    One objection to using character-oriented protocols as opposed to
  330.    character-count protocols is that it is necessary to examine every
  331.    character as it arrives.  I respond to this objection as follows:
  332.  
  333.       1.  Under some circumstances, such as when a header has been hit
  334.       with an error, it will be necessary for the receiver to look at
  335.       every character anyway.
  336.  
  337.       2.  The environment for this protocol is a 1200 baud link; thus
  338.  
  339.  
  340.  
  341. Robinson                                                        [Page 6]
  342.  
  343.  
  344.  
  345. RFC 935                                                     January 1985
  346. Reliable Link Layer Protocols
  347.  
  348.  
  349.       120 characters per second need to be examined at a maximum.  Even
  350.       on a relatively slow personal computer, this should not present a
  351.       problem.
  352.  
  353.    We now turn our attention to the content and format of the control
  354.    information preceding each link frame.  There are three components to
  355.    this cost, control, address, and acknowledgment.  The address field
  356.    allows multipoint configurations and is superfluous for the
  357.    point-to-point environment proposed, but it is present in the public
  358.    standards and we restrict ourselves to those.
  359.  
  360.    Acknowledgments are shown if they are required explicitly by the
  361.    protocol.  A "0" indicates that the acknowledgments may be included
  362.    in the control information for traffic in the opposite direction, and
  363.    only need be sent explicitly when no reverse traffic is present (and
  364.    thus are assumed to take no required overhead).  Only
  365.    character-oriented protocols have required acknowledgments.
  366.  
  367.                  Cont.   Addr.    Ack    Total
  368.       char-or.     0       3       2       5
  369.       bit-or.      1       1       0       2
  370.       DDCMP        3       1       0       4
  371.       RATP         1       0       0       1
  372.  
  373.    Again, the bit-oriented procedures provide the lowest overhead among
  374.    the public standards, but in this case there is no conflict in using
  375.    them in the asynchronous environment.  In fact, even if all the other
  376.    aspects of RATP were to be adopted, I believe the control field
  377.    codings of the bit- oriented procedures represent a more efficient
  378.    use of the channel, are widely implemented, and allow for addition of
  379.    more functions later if desired.  As stated above, there are several
  380.    protocols in the bit-oriented family.  I would recommend use of LAPB,
  381.    since this is the most widely known of the family.
  382.  
  383.    For those not familiar with bit-oriented control procedures, I have
  384.    included a quick summary of these procedures in Appendix A.  Refer to
  385.    the standards listed at the end of this note for more detail.
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398. Robinson                                                        [Page 7]
  399.  
  400.  
  401.  
  402. RFC 935                                                     January 1985
  403. Reliable Link Layer Protocols
  404.  
  405.  
  406. RATP Compared to Public Protocols
  407.  
  408.    As can be seen from the above tables, RATP does not represent a
  409.    significant savings compared to other widely-used protocols.
  410.  
  411.    Given frame lengths of 13 bytes, which appears to be the minimum for
  412.    Thinwire II (RFC 914), 8 characters' overhead using the public
  413.    standards represents 61% versus 46% for RATP's 6 characters.  On a
  414.    1200 baud line, the bandwidth available assuming only such short
  415.    frames is thus 74 versus 82 characters per second, respectively.
  416.    Since 1/13 of these are actually user data, the typing rates
  417.    supported by these protocols using TCP/IP are pretty low, like 5.6
  418.    versus 6.3 characters per second.  Clearly a bigger cost is still
  419.    found in the 12 characters overhead in Thinwire II (or 40 for TCP/IP
  420.    with no compression).
  421.  
  422.    The costs improve dramatically when the number of user characters per
  423.    frame increases.  Thus, file transfer, or even line-blocked typing,
  424.    should perform adequately.  As frame size grows, the cost of the
  425.    extra 2 characters per frame to use standard protocols rapidly drops
  426.    to a few percent or less.
  427.  
  428.    RATP does allow one optimization which cannot be achieved in the
  429.    standard protocols - the use of a one-character format that reduces
  430.    the per-frame overhead to 3 characters (or 4 if a 16-bit CRC is
  431.    used).  However, in the scenario wherein single-character messages
  432.    make sense, a user typing characters (with no higher layer
  433.    protocols), the extra overhead is probably not a problem since the
  434.    link is still lightly enough loaded that the extra overhead is still
  435.    a small percentage of the available bandwidth.  Also, allowing
  436.    multiple frames in flight helps reduce the bottleneck caused by
  437.    having one frame at a time outstanding.
  438.  
  439. On Check Sequences
  440.  
  441.    Both RFCs 914 and 916 propose to use relatively simple check
  442.    sequences, which can be easily computed in a general-purpose
  443.    processor.  In one case, this is an additive check and in the other
  444.    it is an exclusive-or (or parity) check.  Although the additive check
  445.    is slightly more powerful than the exclusive-or, both are relatively
  446.    weak compared to CRC techniques.
  447.  
  448.    Since the intended network-layer protocol (IP) provides for similar
  449.    checks on its header, and the transport layer (TCP) checksums its
  450.    header and data, one might question whether the protection should
  451.    also be provided at the link layer at all, or if it should, then are
  452.    these checks good enough?  Providing for recovery at the TCP layer
  453.  
  454.  
  455. Robinson                                                        [Page 8]
  456.  
  457.  
  458.  
  459. RFC 935                                                     January 1985
  460. Reliable Link Layer Protocols
  461.  
  462.  
  463.    leads to slow recovery times, so this approach will probably yield
  464.    too poor a level of service for noisy links.  More importantly, the
  465.    link layer control field needs a certain degree of protection to
  466.    prevent needless loss or duplication of frames in the face of line
  467.    errors.
  468.  
  469.    A CRC check, in combination with the additive checks provided by IP
  470.    and TCP, yield an error-protection that is greater than that afforded
  471.    by either check by itself.  This is because the two techniques
  472.    address fundamentally different characteristics of the possible
  473.    errors.  The degree of increase is substantial compared to that of
  474.    two additive checks.  That is, if two additive checks are cascaded,
  475.    there are many types of two-bit failures that will pass both the link
  476.    layer and TCP/IP checking.
  477.  
  478.    Although I don't wish to include a detailed error analysis in this
  479.    note, I would support the use of a CRC type of error check because of
  480.    the far greater level of protection it affords.  As I pointed out,
  481.    the cost per character is roughly 5-6 instructions, assuming the use
  482.    of a 256 by 16-bit lookup table.  Again, at 120 characters per
  483.    second, the increased cost is not deemed to be too great.
  484.  
  485.    Moreover, use of a standard CRC allows for the possibility that the
  486.    serial line chip's own CRC generation and checking hardware may be
  487.    used.  Although such chips may not be present in the PCs in the
  488.    environment envisioned, they are likely to be available in the
  489.    gateway machine to which the PCs talk.
  490.  
  491. Data Compression: An Aside
  492.  
  493.    I find the proposed methods of data compression of RFC 914
  494.    particularly interesting.  I see these as independent of the choice
  495.    of the underlying link layer protocol, as it is in RFC 914.  I am
  496.    aware of no such character-oriented compression that is in common use
  497.    in the communication world.  The only techniques that come close are
  498.    in statistical multiplexing devices, which sometimes also include an
  499.    adaptive Huffman-coding to reduce link bandwidth.  Since the Thinwire
  500.    II approach can recognize much longer repeated sequences than a
  501.    Huffman code, I expect that the potential savings are correspondingly
  502.    greater.
  503.  
  504.    I would like to see a version of the Thinwire protocols which allows
  505.    for the template idea, but which keeps it independent of the higher
  506.    layer protocols in use.  One way to achieve this is to allow
  507.    templates to be encoded and exchanged between the communicating
  508.    parties when they start up, and perhaps adaptively as conditions
  509.    warrant.  I would anticipate that this sort of approach might well
  510.  
  511.  
  512. Robinson                                                        [Page 9]
  513.  
  514.  
  515.  
  516. RFC 935                                                     January 1985
  517. Reliable Link Layer Protocols
  518.  
  519.  
  520.    have widespread applicability beyond the TCP/IP environment addressed
  521.    in RFC 914.  The most important gain for this environment is removal
  522.    of the apparent exorbitant overhead that IP and TCP seem to present
  523.    for use over slow links.
  524.  
  525. Summary
  526.  
  527.    The link layer protocol I would advocate for asynchronous, dialup
  528.    communication between PCs would use transparent, character-oriented
  529.    framing, a 16-bit CRC error check, and the control procedures of
  530.    LAPB.  The CRC should be either CRC-16 or the CCITT CRC used in X.25,
  531.    with the latter probably being preferred; modern link chips tend to
  532.    support both of these if they support either.
  533.  
  534.    Evolution of integrated circuits that directly implement all of the
  535.    public standards will dramatically drop the cost and raise the
  536.    reliability of new implementations of standard protocols.  Chip
  537.    manufacturers have little motivation to address standards that are
  538.    not widely used.
  539.  
  540.    Overhead for the suggested protocol is 8 characters per frame.  Up to
  541.    7 frames may be outstanding at a time in either direction of
  542.    transfer.  Choice of an appropriate maximum frame size is
  543.    application-dependent, and would certainly be influenced by the
  544.    quality of the physical connection; however, I believe that IP
  545.    datagrams are acceptable frames for dialup 1200 baud service.
  546.  
  547.    Non-standard modifications that would save a little link overhead
  548.    would be to dispense with the one-character address field, and to use
  549.    the RATP count-oriented frame structure.  These are not recommended,
  550.    because they depart from common practice and yield modest
  551.    improvements at best.
  552.  
  553. Postscript
  554.  
  555.    Those familiar with the early history of the Telenet Public Data
  556.    Network should recognize that this proposal is essentially the same
  557.    as the original link layer protocol specification for that network,
  558.    circa 1976, except that the control procedures used at that time,
  559.    known as LAP, have now been superseded by the more powerful and
  560.    efficient LAPB, and their access links, as all X.25 access links, are
  561.    synchronous rather than asynchronous.  I did not set out to achieve
  562.    this result, but just note it in passing.
  563.  
  564.    My personal view of where the world of personal computer access to
  565.    data networks is heading is that X.25 will rapidly become the
  566.    protocol of choice.  One already sees third-party (for IBM PC) and
  567.  
  568.  
  569. Robinson                                                       [Page 10]
  570.  
  571.  
  572.  
  573. RFC 935                                                     January 1985
  574. Reliable Link Layer Protocols
  575.  
  576.  
  577.    vendor (for Wang PC) implementations of X.25. CCITT is circulating a
  578.    proposal for accessing an X.25 data network using a dial-up X.25
  579.    connection, as recommendation X.32.  Thus, I feel that the type of
  580.    communication proposed in this RFC and RFCs 914 and 916 will be used
  581.    for a relatively short period of time.  The future holds, I believe,
  582.    LAN or X.25/X.32 data link layer and access, X.25 and/or ISO IP
  583.    network layer, and TCP and/or ISO TP4 transport layer.
  584.  
  585. References
  586.  
  587.    RFC 914, "Thinwire Protocol", Farber, Delp and Conte, 1984.
  588.  
  589.    RFC 916, "Reliable Asynchronous Transfer Protocol", Finn, 1984.
  590.  
  591.    "Technical Aspects of Data Communication", McNamara, Digital Press,
  592.    1977.
  593.  
  594.    ANSI X3.4-1968, "American National Standard Code for Information
  595.    Interchange (ASCII)", American National Standards Institute, Inc.,
  596.    1968.
  597.  
  598.    ANSI X3.16-1976, "American National Standard Character Structure and
  599.    Character Parity Sense for Serial-by-Bit Data Communication in the
  600.    American National Standard Code for Information Interchange",
  601.    American National Standards Institute, Inc., 1976.
  602.  
  603.    ANSI X3.28-1976, "American National Standard Procedures for the Use
  604.    of the Communication Control Characters of American National Standard
  605.    Code for Information Interchange in Specified Data Communication
  606.    Links", American National Standards Institute, Inc., 1976.
  607.  
  608.    ANSI X3.66-1979, "American National Standard for Advanced Data
  609.    Communication Procedures (ADCCP)", American National Standards
  610.    Institute, Inc., 1979.
  611.  
  612.    International Standard 1745, "Information Processing - Basic mode
  613.    control procedures for data communication systems", International
  614.    Organization for Standardization (ISO), 1975.
  615.  
  616.    International Standard 2111, "Data Communication - Basic mode control
  617.    procedures - Code independent information transfer", ISO, 1973.
  618.  
  619.    International Standard 2628, "Basic mode control procedures -
  620.    Complements", ISO, 1973.
  621.  
  622.    International Standard 2629, "Basic mode control procedures -
  623.    Conversational information message transfer", ISO, 1973.
  624.  
  625.  
  626. Robinson                                                       [Page 11]
  627.  
  628.  
  629.  
  630. RFC 935                                                     January 1985
  631. Reliable Link Layer Protocols
  632.  
  633.  
  634.    International Standard 3309, "Data Communication - High-level data
  635.    link control procedures - Frame structure", ISO, 1982.
  636.  
  637.    International Standard 4335, "Data Communication - High-level data
  638.    link control procedures - Consolidation of elements of procedures",
  639.    ISO, 1982.
  640.  
  641.    International Standard 7809, "Data Communication - High-level data
  642.    link control procedures - Consolidation of classes of procedures",
  643.    ISO, 1984.
  644.  
  645.    Recommendation X.25, "Interface between Data Terminal Equipment (DTE)
  646.    and Data Circuit Terminating Equipment (DCE) for Terminals Operating
  647.    in the Packet Mode and Connected to Public Data Networks by Dedicated
  648.    Circuit", The International Telegraph and Telephone Consultative
  649.    Committee (CCITT), 1980 (to be revised, 1984).
  650.  
  651.    Recommendation Q.920, "ISDN User-network Interface Data Link Layer -
  652.    General Aspects", CCITT, 1984 (draft E).
  653.  
  654.    Recommendation Q.921, "ISDN User-network Interface Data Link Layer
  655.    Specification", CCITT, 1984 (draft E).
  656.  
  657.    Draft International Standard 8802.2, "Local Area Network Standards,
  658.    Logical Link Control", ISO, 1984 (draft).
  659.  
  660.    Draft Proposed Addendum to DIS 8802.2, "Single Frame Service", IEEE,
  661.    1984 (Eighth Draft).
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683. Robinson                                                       [Page 12]
  684.  
  685.  
  686.  
  687. RFC 935                                                     January 1985
  688. Reliable Link Layer Protocols
  689.  
  690.  
  691. Appendix A - Bit-Oriented Control Field Contents
  692.  
  693.    There are three control field formats.  The primary one is used for
  694.    data frames (called "information frames" in the standards), and is
  695.    coded as follows:
  696.  
  697.       8  7  6  5  4  3  2  1  <- bit number,  1 sent first
  698.                            0     (signifies data frame)
  699.                   S  S  S        send seq , bit 2 low-order
  700.               P/F                poll/final bit, for recovery
  701.       R  R  R                    receive seq  (ACK)
  702.  
  703.    Acknowledgments are cumulative.  Recovery is typically to back up and
  704.    continue from the lost frame.  Use of the poll/final bit is beyond
  705.    the scope of this note.
  706.  
  707.    Acknowledgments may also be sent in supervisory frames, coded as
  708.    follows:
  709.  
  710.       8  7  6  5  4  3  2  1  <- bit number,  1 sent first
  711.                         0  1     (signifies supervisory frame)
  712.                   T  T           frame type (see below)
  713.               P/F                poll/final bit, for recovery
  714.       R  R  R                    receive seq  (ACK)
  715.  
  716.    Up to four frame types are possible; only two are required.  The
  717.    first is called RR, for "receive ready", and indicates acknowledgment
  718.    and that the receiver is prepared to process more frames.  The other,
  719.    RNR for "receive not ready", is used for flow control of the sender.
  720.    If flow control is not necessary, I suppose even this frame could be
  721.    dispensed with.
  722.  
  723.    The other supervisory frames, "reject" and "selective reject", are
  724.    varieties of negative acknowledgement that ask for retransmission of
  725.    all and one (respectively) of previously transmitted frames.
  726.    Positive acknowledgment and retransmission are the only really
  727.    necessary procedures, however.
  728.  
  729.    The third frame format is called Unnumbered.  Many possible functions
  730.    are specified in the various standards for these frames, including
  731.    initializing the link, reset sequence numbers, etc.  The basic format
  732.    is:
  733.  
  734.       8  7  6  5  4  3  2  1  <- bit number,  1 sent first
  735.                         1  1     (signifies unnumbered frame)
  736.             T  T  T     T  T           frame type
  737.                     P/F                poll/final bit, for recovery
  738.  
  739.  
  740. Robinson                                                       [Page 13]
  741.  
  742.