home *** CD-ROM | disk | FTP | other *** search
/ Internet Access: To the Information Highway / InternetAccessToTheInformationHighway1994.disc1of1.iso / internet / rfc4 / rfc1332.txt < prev    next >
Text File  |  1994-06-03  |  18KB  |  788 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                        G. McGregor
  8. Request for Comments: 1332                                         Merit
  9. Obsoletes: RFC 1172                                             May 1992
  10.  
  11.  
  12.  
  13.            The PPP Internet Protocol Control Protocol (IPCP)
  14.  
  15.  
  16.  
  17. Status of this Memo
  18.  
  19.    This RFC specifies an IAB standards track protocol for the Internet
  20.    community, and requests discussion and suggestions for improvements.
  21.    Please refer to the current edition of the "IAB Official Protocol
  22.    Standards" for the standardization state and status of this protocol.
  23.    Distribution of this memo is unlimited.
  24.  
  25. Abstract
  26.  
  27.    The Point-to-Point Protocol (PPP) [1] provides a standard method of
  28.    encapsulating Network Layer protocol information over point-to-point
  29.    links.  PPP also defines an extensible Link Control Protocol, and
  30.    proposes a family of Network Control Protocols (NCPs) for
  31.    establishing and configuring different network-layer protocols.
  32.  
  33.    This document defines the NCP for establishing and configuring the
  34.    Internet Protocol [2] over PPP, and a method to negotiate and use Van
  35.    Jacobson TCP/IP header compression [3] with PPP.
  36.  
  37.    This RFC is a product of the Point-to-Point Protocol Working Group of
  38.    the Internet Engineering Task Force (IETF).
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. McGregor                                                        [Page i]
  59.  
  60. RFC 1332                        PPP IPCP                        May 1992
  61.  
  62.  
  63. Table of Contents
  64.  
  65.  
  66.      1.     Introduction ..........................................    1
  67.  
  68.      2.     A PPP Network Control Protocol (NCP) for IP ...........    2
  69.         2.1       Sending IP Datagrams ............................    2
  70.  
  71.      3.     IPCP Configuration Options ............................    4
  72.         3.1       IP-Addresses ....................................    5
  73.         3.2       IP-Compression-Protocol .........................    6
  74.         3.3       IP-Address ......................................    8
  75.  
  76.      4.     Van Jacobson TCP/IP header compression ................    9
  77.         4.1       Configuration Option Format .....................    9
  78.  
  79.      APPENDICES ...................................................   11
  80.  
  81.      A.     IPCP Recommended Options ..............................   11
  82.  
  83.      SECURITY CONSIDERATIONS ......................................   11
  84.  
  85.      REFERENCES ...................................................   11
  86.  
  87.      ACKNOWLEDGEMENTS .............................................   11
  88.  
  89.      CHAIR'S ADDRESS ..............................................   12
  90.  
  91.      AUTHOR'S ADDRESS .............................................   12
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. McGregor                                                       [Page ii]
  115.  
  116. RFC 1332                        PPP IPCP                        May 1992
  117.  
  118.  
  119. 1.  Introduction
  120.  
  121.    PPP has three main components:
  122.  
  123.       1. A method for encapsulating datagrams over serial links.
  124.  
  125.       2. A Link Control Protocol (LCP) for establishing, configuring,
  126.          and testing the data-link connection.
  127.  
  128.       3. A family of Network Control Protocols (NCPs) for establishing
  129.          and configuring different network-layer protocols.
  130.  
  131.    In order to establish communications over a point-to-point link, each
  132.    end of the PPP link must first send LCP packets to configure and test
  133.    the data link.  After the link has been established and optional
  134.    facilities have been negotiated as needed by the LCP, PPP must send
  135.    NCP packets to choose and configure one or more network-layer
  136.    protocols.  Once each of the chosen network-layer protocols has been
  137.    configured, datagrams from each network-layer protocol can be sent
  138.    over the link.
  139.  
  140.    The link will remain configured for communications until explicit LCP
  141.    or NCP packets close the link down, or until some external event
  142.    occurs (an inactivity timer expires or network administrator
  143.    intervention).
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. McGregor                                                        [Page 1]
  171.  
  172. RFC 1332                        PPP IPCP                        May 1992
  173.  
  174.  
  175. 2.  A PPP Network Control Protocol (NCP) for IP
  176.  
  177.    The IP Control Protocol (IPCP) is responsible for configuring,
  178.    enabling, and disabling the IP protocol modules on both ends of the
  179.    point-to-point link.  IPCP uses the same packet exchange machanism as
  180.    the Link Control Protocol (LCP).  IPCP packets may not be exchanged
  181.    until PPP has reached the Network-Layer Protocol phase.  IPCP packets
  182.    received before this phase is reached should be silently discarded.
  183.  
  184.    The IP Control Protocol is exactly the same as the Link Control
  185.    Protocol [1] with the following exceptions:
  186.  
  187.    Data Link Layer Protocol Field
  188.  
  189.       Exactly one IPCP packet is encapsulated in the Information field
  190.       of PPP Data Link Layer frames where the Protocol field indicates
  191.       type hex 8021 (IP Control Protocol).
  192.  
  193.    Code field
  194.  
  195.       Only Codes 1 through 7 (Configure-Request, Configure-Ack,
  196.       Configure-Nak, Configure-Reject, Terminate-Request, Terminate-Ack
  197.       and Code-Reject) are used.  Other Codes should be treated as
  198.       unrecognized and should result in Code-Rejects.
  199.  
  200.    Timeouts
  201.  
  202.       IPCP packets may not be exchanged until PPP has reached the
  203.       Network-Layer Protocol phase.  An implementation should be
  204.       prepared to wait for Authentication and Link Quality Determination
  205.       to finish before timing out waiting for a Configure-Ack or other
  206.       response.  It is suggested that an implementation give up only
  207.       after user intervention or a configurable amount of time.
  208.  
  209.    Configuration Option Types
  210.  
  211.       IPCP has a distinct set of Configuration Options, which are
  212.       defined below.
  213.  
  214. 2.1.  Sending IP Datagrams
  215.  
  216.    Before any IP packets may be communicated, PPP must reach the
  217.    Network-Layer Protocol phase, and the IP Control Protocol must reach
  218.    the Opened state.
  219.  
  220.    Exactly one IP packet is encapsulated in the Information field of PPP
  221.    Data Link Layer frames where the Protocol field indicates type hex
  222.    0021 (Internet Protocol).
  223.  
  224.  
  225.  
  226. McGregor                                                        [Page 2]
  227.  
  228. RFC 1332                        PPP IPCP                        May 1992
  229.  
  230.  
  231.    The maximum length of an IP packet transmitted over a PPP link is the
  232.    same as the maximum length of the Information field of a PPP data
  233.    link layer frame.  Larger IP datagrams must be fragmented as
  234.    necessary.  If a system wishes to avoid fragmentation and reassembly,
  235.    it should use the TCP Maximum Segment Size option [4], and MTU
  236.    discovery [5].
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. McGregor                                                        [Page 3]
  283.  
  284. RFC 1332                        PPP IPCP                        May 1992
  285.  
  286.  
  287. 3.  IPCP Configuration Options
  288.  
  289. IPCP Configuration Options allow negotiatiation of desirable Internet
  290. Protocol parameters.  IPCP uses the same Configuration Option format
  291. defined for LCP [1], with a separate set of Options.
  292.  
  293. The most up-to-date values of the IPCP Option Type field are specified
  294. in the most recent "Assigned Numbers" RFC [6].  Current values are
  295. assigned as follows:
  296.  
  297.    1       IP-Addresses
  298.    2       IP-Compression-Protocol
  299.    3       IP-Address
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. McGregor                                                        [Page 4]
  339.  
  340. RFC 1332                        PPP IPCP                        May 1992
  341.  
  342.  
  343. 3.1.  IP-Addresses
  344.  
  345.    Description
  346.  
  347.       The use of the Configuration Option IP-Addresses has been
  348.       deprecated.  It has been determined through implementation
  349.       experience that it is difficult to ensure negotiation convergence
  350.       in all cases using this option.  RFC 1172 [7] provides information
  351.       for implementations requiring backwards compatability.  The IP-
  352.       Address Configuration Option replaces this option, and its use is
  353.       preferred.
  354.  
  355.       This option SHOULD NOT be sent in a Configure-Request if a
  356.       Configure-Request has been received which includes either an IP-
  357.       Addresses or IP-Address option.  This option MAY be sent if a
  358.       Configure-Reject is received for the IP-Address option, or a
  359.       Configure-Nak is received with an IP-Addresses option as an
  360.       appended option.
  361.  
  362.       Support for this option MAY be removed after the IPCP protocol
  363.       status advances to Internet Draft Standard.
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. McGregor                                                        [Page 5]
  395.  
  396. RFC 1332                        PPP IPCP                        May 1992
  397.  
  398.  
  399. 3.2.  IP-Compression-Protocol
  400.  
  401.    Description
  402.  
  403.       This Configuration Option provides a way to negotiate the use of a
  404.       specific compression protocol.  By default, compression is not
  405.       enabled.
  406.  
  407.    A summary of the IP-Compression-Protocol Configuration Option format
  408.    is shown below.  The fields are transmitted from left to right.
  409.  
  410.     0                   1                   2                   3
  411.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  412.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  413.    |     Type      |    Length     |     IP-Compression-Protocol   |
  414.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  415.    |    Data ...
  416.    +-+-+-+-+
  417.  
  418.    Type
  419.  
  420.       2
  421.  
  422.    Length
  423.  
  424.       >= 4
  425.  
  426.    IP-Compression-Protocol
  427.  
  428.       The IP-Compression-Protocol field is two octets and indicates the
  429.       compression protocol desired.  Values for this field are always
  430.       the same as the PPP Data Link Layer Protocol field values for that
  431.       same compression protocol.
  432.  
  433.       The most up-to-date values of the IP-Compression-Protocol field
  434.       are specified in the most recent "Assigned Numbers" RFC [6].
  435.       Current values are assigned as follows:
  436.  
  437.          Value (in hex)          Protocol
  438.  
  439.          002d                    Van Jacobson Compressed TCP/IP
  440.  
  441.    Data
  442.  
  443.       The Data field is zero or more octets and contains additional data
  444.       as determined by the particular compression protocol.
  445.  
  446.  
  447.  
  448.  
  449.  
  450. McGregor                                                        [Page 6]
  451.  
  452. RFC 1332                        PPP IPCP                        May 1992
  453.  
  454.  
  455.    Default
  456.  
  457.       No compression protocol enabled.
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506. McGregor                                                        [Page 7]
  507.  
  508. RFC 1332                        PPP IPCP                        May 1992
  509.  
  510.  
  511. 3.3.  IP-Address
  512.  
  513.    Description
  514.  
  515.       This Configuration Option provides a way to negotiate the IP
  516.       address to be used on the local end of the link.  It allows the
  517.       sender of the Configure-Request to state which IP-address is
  518.       desired, or to request that the peer provide the information.  The
  519.       peer can provide this information by NAKing the option, and
  520.       returning a valid IP-address.
  521.  
  522.       If negotiation about the remote IP-address is required, and the
  523.       peer did not provide the option in its Configure-Request, the
  524.       option SHOULD be appended to a Configure-Nak.  The value of the
  525.       IP-address given must be acceptable as the remote IP-address, or
  526.       indicate a request that the peer provide the information.
  527.  
  528.       By default, no IP address is assigned.
  529.  
  530.    A summary of the IP-Address Configuration Option format is shown
  531.    below.  The fields are transmitted from left to right.
  532.  
  533.     0                   1                   2                   3
  534.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  535.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  536.    |     Type      |    Length     |           IP-Address
  537.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  538.            IP-Address (cont)       |
  539.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  540.  
  541.    Type
  542.  
  543.       3
  544.  
  545.    Length
  546.  
  547.       6
  548.  
  549.    IP-Address
  550.  
  551.       The four octet IP-Address is the desired local address of the
  552.       sender of a Configure-Request.  If all four octets are set to
  553.       zero, it indicates a request that the peer provide the IP-Address
  554.       information.
  555.  
  556.    Default
  557.  
  558.       No IP address is assigned.
  559.  
  560.  
  561.  
  562. McGregor                                                        [Page 8]
  563.  
  564. RFC 1332                        PPP IPCP                        May 1992
  565.  
  566.  
  567. 4.  Van Jacobson TCP/IP header compression
  568.  
  569. Van Jacobson TCP/IP header compression reduces the size of the TCP/IP
  570. headers to as few as three bytes.  This can be a significant improvement
  571. on slow serial lines, particularly for interactive traffic.
  572.  
  573. The IP-Compression-Protocol Configuration Option is used to indicate the
  574. ability to receive compressed packets.  Each end of the link must
  575. separately request this option if bi-directional compression is desired.
  576.  
  577. The PPP Protocol field is set to the following values when transmitting
  578. IP packets:
  579.  
  580.    Value (in hex)
  581.  
  582.    0021      Type IP.  The IP protocol is not TCP, or the packet is a
  583.              fragment, or cannot be compressed.
  584.  
  585.    002d      Compressed TCP.  The TCP/IP headers are replaced by the
  586.              compressed header.
  587.  
  588.    002f      Uncompressed TCP.  The IP protocol field is replaced by
  589.              the slot identifier.
  590.  
  591. 4.1.  Configuration Option Format
  592.  
  593.    A summary of the IP-Compression-Protocol Configuration Option format
  594.    to negotiate Van Jacobson TCP/IP header compression is shown below.
  595.    The fields are transmitted from left to right.
  596.  
  597.     0                   1                   2                   3
  598.     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  599.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  600.    |     Type      |    Length     |     IP-Compression-Protocol   |
  601.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  602.    |  Max-Slot-Id  | Comp-Slot-Id  |
  603.    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  604.  
  605.    Type
  606.  
  607.       2
  608.  
  609.    Length
  610.  
  611.       6
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. McGregor                                                        [Page 9]
  619.  
  620. RFC 1332                        PPP IPCP                        May 1992
  621.  
  622.  
  623.    IP-Compression-Protocol
  624.  
  625.       002d (hex) for Van Jacobson Compressed TCP/IP headers.
  626.  
  627.    Max-Slot-Id
  628.  
  629.       The Max-Slot-Id field is one octet and indicates the maximum slot
  630.       identifier.  This is one less than the actual number of slots; the
  631.       slot identifier has values from zero to Max-Slot-Id.
  632.  
  633.          Note: There may be implementations that have problems with only
  634.          one slot (Max-Slot-Id = 0).  See the discussion in reference
  635.          [3].  The example implementation in [3] will only work with 3
  636.          through 254 slots.
  637.  
  638.    Comp-Slot-Id
  639.  
  640.       The Comp-Slot-Id field is one octet and indicates whether the slot
  641.       identifier field may be compressed.
  642.  
  643.          0  The slot identifier must not be compressed.  All compressed
  644.             TCP packets must set the C bit in every change mask, and
  645.             must include the slot identifier.
  646.  
  647.          1  The slot identifer may be compressed.
  648.  
  649.       The slot identifier must not be compressed if there is no ability
  650.       for the PPP link level to indicate an error in reception to the
  651.       decompression module.  Synchronization after errors depends on
  652.       receiving a packet with the slot identifier.  See the discussion
  653.       in reference [3].
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674. McGregor                                                       [Page 10]
  675.  
  676. RFC 1332                        PPP IPCP                        May 1992
  677.  
  678.  
  679. A.  IPCP Recommended Options
  680.  
  681.    The following Configurations Options are recommended:
  682.  
  683.       IP-Compression-Protocol -- with at least 4 slots, usually 16
  684.       slots.
  685.  
  686.       IP-Address -- only on dial-up lines.
  687.  
  688.  
  689. Security Considerations
  690.  
  691.    Security issues are not discussed in this memo.
  692.  
  693.  
  694. References
  695.  
  696.    [1]   Simpson, W., "The Point-to-Point Protocol", RFC 1331, May 1992.
  697.  
  698.    [2]   Postel, J., "Internet Protocol", RFC 791, USC/Information
  699.          Sciences Institute, September 1981.
  700.  
  701.    [3]   Jacobson, V., "Compressing TCP/IP Headers", RFC 1144, January
  702.          1990.
  703.  
  704.    [4]   Postel, J., "The TCP Maximum Segment Size Option and Related
  705.          Topics", RFC 879, USC/Information Sciences Institute, November
  706.          1983.
  707.  
  708.    [5]   Mogul, J., and S. Deering, "Path MTU Discovery", RFC 1191,
  709.          November 1990.
  710.  
  711.    [6]   Reynolds, J., and J. Postel, "Assigned Numbers", RFC 1060,
  712.          USC/Information Sciences Institute, March 1990.
  713.  
  714.    [7]   Perkins, D., and R. Hobby, "Point-to-Point Protocol (PPP)
  715.          initial configuration options", RFC 1172, August 1990.
  716.  
  717.  
  718. Acknowledgments
  719.  
  720.    Some of the text in this document is taken from RFCs 1171 & 1172, by
  721.    Drew Perkins of Carnegie Mellon University, and by Russ Hobby of the
  722.    University of California at Davis.
  723.  
  724.    Information leading to the expanded IP-Compression option provided by
  725.    Van Jacobson at SIGCOMM '90.
  726.  
  727.  
  728.  
  729.  
  730. McGregor                                                       [Page 11]
  731.  
  732. RFC 1332                        PPP IPCP                        May 1992
  733.  
  734.  
  735.    Bill Simpson helped with the document formatting.
  736.  
  737.  
  738. Chair's Address
  739.  
  740.    The working group can be contacted via the current chair:
  741.  
  742.       Brian Lloyd
  743.       Lloyd & Associates
  744.       3420 Sudbury Road
  745.       Cameron Park, California 95682
  746.  
  747.       Phone: (916) 676-1147
  748.  
  749.       EMail: brian@ray.lloyd.com
  750.  
  751.  
  752.  
  753. Author's Address
  754.  
  755.    Questions about this memo can also be directed to:
  756.  
  757.       Glenn McGregor
  758.       Merit Network, Inc.
  759.       1071 Beal Avenue
  760.       Ann Arbor, MI 48109-2103
  761.  
  762.       Phone: (313) 763-1203
  763.  
  764.       EMail: Glenn.McGregor@Merit.edu
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. McGregor                                                       [Page 12]
  787.  
  788.