Debian Codegraph @

rfc1663.html

raw
1 <pre>Network Working Group D. Rand
2 Request for Comments: 1663 Novell
3 Category: Standards Track July 1994
4
5
6 <span class="h1">PPP Reliable Transmission</span>
7
8 Status of this Memo
9
10 This document specifies an Internet standards track protocol for the
11 Internet community, and requests discussion and suggestions for
12 improvements. Please refer to the current edition of the "Internet
13 Official Protocol Standards" (STD 1) for the standardization state
14 and status of this protocol. Distribution of this memo is unlimited.
15
16 Abstract
17
18 The Point-to-Point Protocol (PPP) [<a href="#ref-1" title="&quot;The Point-to-Point Protocol (PPP)&quot;">1</a>] provides a standard method for
19 transporting multi-protocol datagrams over point-to-point links.
20
21 This document defines a method for negotiating and using Numbered-
22 Mode, as defined by ISO 7776 [<a href="#ref-2">2</a>], to provide a reliable serial link.
23
24 This document is the product of the Point-to-Point Protocol Working
25 Group of the Internet Engineering Task Force (IETF). Comments should
26 be submitted to the [email protected] mailing list.
27
28 Table of Contents
29
30 <a href="#section-1">1</a>. Introduction .......................................... <a href="#page-1">1</a>
31 <a href="#section-2">2</a>. Physical Layer Requirements ........................... <a href="#page-2">2</a>
32 <a href="#section-3">3</a>. The Data Link Layer ................................... <a href="#page-2">2</a>
33 <a href="#section-3.1">3.1</a> Frame Format ....................................... <a href="#page-2">2</a>
34 <a href="#section-4">4</a>. Configuration Option Format ........................... <a href="#page-4">4</a>
35 <a href="#section-5">5</a>. Numbered-Mode Operation ............................... <a href="#page-5">5</a>
36 <a href="#section-5.1">5.1</a> Single Link ........................................ <a href="#page-6">6</a>
37 <a href="#section-5.2">5.2</a> Inverse Multiplexing ............................... <a href="#page-6">6</a>
38 <a href="#section-5.3">5.3</a> Using Multi-Link Procedure... ...................... <a href="#page-7">7</a>
39 <a href="#section-5.4">5.4</a> LAPB Parameter defaults ............................ <a href="#page-8">8</a>
40 SECURITY CONSIDERATIONS ...................................... <a href="#page-9">9</a>
41 REFERENCES ................................................... <a href="#page-9">9</a>
42 ACKNOWLEDGEMENTS ............................................. <a href="#page-9">9</a>
43 CHAIR'S ADDRESS .............................................. <a href="#page-10">10</a>
44 AUTHOR'S ADDRESS ............................................. <a href="#page-10">10</a>
45
46
47
48
49
50
51
52 <span class="grey">Rand [Page 1]</span></pre>
53 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
54 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
55
56
57 <span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
58
59 By default, PPP packets over HDLC framed links consist of
60 "connectionless" datagrams. If reliable transmission over the HDLC
61 link is desired, the implementation MUST specify the Numbered-Mode
62 Configuration Option during Link Establishment phase.
63
64 Generally, serial link reliability is not a major issue. The
65 architecture of protocols used in datagram networking presume
66 best-effort non-sequential delivery. When errors are detected,
67 datagrams
68 are discarded.
69
70 However, in certain circumstances, it is advisable to provide a
71 reliable link, at least for a subset of the messages. The most
72 obvious case is when the link is compressed. Since the dictionary is
73 recovered from the compressed data stream, and a lost datagram
74 corrupts the dictionary, datagrams must not be lost. Not all
75 compression types will require a reliable data stream, since the cost
76 to detect and reset a corrupt dictionary is small.
77
78 The ISO 7776 LAPB can be used guarantee delivery. This is referred
79 to in this document as "Numbered Mode" to distinguish it from the use
80 of "Unnumbered Information", which is standard PPP framing practice.
81
82 Where multiple parallel links are used to emulate a single link of
83 higher speed, Bridged traffic, Source Routed traffic, and traffic
84 subjected to Van Jacobsen TCP/IP header compression must be delivered
85 to the higher layer in a certain sequence. However, the fact of the
86 links being relatively asynchronous makes traffic ordering uncertain.
87
88 The ISO 7776 Multi-Link Procedure MAY be used to restore order.
89 Implementation of the ISO Multi-Link Procedure is deprecated. It is
90 recommended that the PPP multilink procedure [<a href="#ref-4" title="&quot;PPP MultiLink Procedure&quot;">4</a>] be used instead.
91
92 <span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Physical Layer Requirements</span>
93
94 PPP Reliable Transmission imposes the same requirements that are
95 described in "PPP in HDLC Framing" [<a href="#ref-3" title="&quot;PPP in HDLC Framing&quot;">3</a>], with the following
96 exceptions.
97
98 Control Signals
99
100 While PPP does not normally require the use of control signals,
101 implementation of Numbered-Mode LAPB or LAPD requires the
102 provision of control signals, which indicate when the link has
103 become connected or disconnected. These in turn provide the Up
104 and Down events to the LCP state machine.
105
106
107
108 <span class="grey">Rand [Page 2]</span></pre>
109 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
110 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
111
112
113 <span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. The Data Link Layer</span>
114
115 Numbered-Mode affects only the Address and Control fields. The
116 remainder of the frame conforms to the framing in use for PPP.
117
118 The Address Field of the frame MUST take the value announced in the
119 Numbered-Mode Configuration Option, and the Control Field MAY take
120 any value valid in ISO 7776.
121
122 Once the link enters Numbered-Mode, Numbered-Mode MUST be used on all
123 frames, as some implementations do not support the use of the
124 Unnumbered-Information control field or the use of the All-Stations
125 address intermixed with Numbered-Mode frames.
126
127 <span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Frame Format</span>
128
129 The following frame format is valid under Numbered-Mode. The fields
130 are transmitted from left to right.
131
132 Numbered Mode
133 +----------+----------+----------+
134 | Flag | Address | Control |
135 | 01111110 |1-2 octets|1-2 octets|
136 +----------+----------+----------+
137 +----------+-------------+---------+
138 | Protocol | Information | Padding |
139 |1-2 octets| * | * |
140 +----------+-------------+---------+
141 +----------+----------+-----------------
142 | FCS | Flag | Inter-frame Fill
143 | 16 bits | 01111110 | or next Address
144 +----------+----------+-----------------
145
146 The Protocol, Information and Padding fields are described in the
147 Point-to-Point Protocol Encapsulation [<a href="#ref-1" title="&quot;The Point-to-Point Protocol (PPP)&quot;">1</a>]. The FCS and Flag Sequence
148 fields are described in "PPP in HDLC Framing" [<a href="#ref-3" title="&quot;PPP in HDLC Framing&quot;">3</a>].
149
150 <span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Configuration Option Format</span>
151
152 Description
153
154 The LCP Numbered-Mode Configuration Option negotiates the use of
155 Numbered-Mode on the link. By default or ultimate disagreement,
156 Unnumbered-Mode is used.
157
158 A summary of the Numbered-Mode Configuration Option format is shown
159 below. The fields are transmitted from left to right.
160
161
162
163
164 <span class="grey">Rand [Page 3]</span></pre>
165 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
166 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
167
168
169 0 1 2 3
170 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
171 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
172 | Type | Length | Window | Address...
173 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
174
175 Type
176
177 11
178
179 Length
180
181 &gt;= 4
182
183 Window
184
185 A value between 1 and 127. This indicates the number of frames
186 the receiver will buffer, which is the maximum number that the
187 sender should send without receiving an acknowledgement. If
188 window &lt; 8, then modulo 8 sequencing is used on the link.
189 Otherwise, modulo 128 sequencing is used.
190
191 It is conceivable and legal that differing window values might be
192 announced. However, it is not permitted for one system to use
193 modulo 8 sequencing and the other to use modulo 128. Therefore,
194 the rule is: a Configure-Nak may reduce the window but may not
195 increase it.
196
197 Address
198
199 An HDLC Address as specified in ISO 3309. ISO 7776 specifies four
200 of the possible values: 1 and 3 for single link operation, 7 and
201 15 for the Multi-Link Procedure. Other values consistent with ISO
202 3309 are considered legal.
203
204 Implementation of the Multi-Link Procedure is optional; A
205
206 Configure-Nak may therefore force a change from MLP to single link
207 mode, but not the reverse.
208
209 Should the address be zero upon receipt, the receiver MUST
210 Configure-Nak with an appropriate address. If both peers send
211 address zero, the system advertising the numerically smaller
212 window will select the smaller address. If both windows are the
213 same size, a random choice MUST be made; when good sources of
214 randomness are used, the link will converge in a reasonable time.
215
216
217
218
219
220 <span class="grey">Rand [Page 4]</span></pre>
221 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
222 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
223
224
225 If magic numbers have been negotiated on the link, the system with
226 the numerically smaller magic number SHOULD specify the smaller
227 address.
228
229 <span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Numbered-Mode Operation</span>
230
231 When using the Numbered-Mode, each link is established in the usual
232 manner for the type of link. The Numbered-Mode Configuration Option
233 is negotiated, the Magic-Number Configuration Option MUST also be
234 negotiated, and the Address-and-Control-Field-Compression
235 Configuration Option MUST NOT be negotiated.
236
237 Following the successful negotiation of the Numbered-Mode
238 Configuration Option during LCP Link Establishment phase, the system
239 with the numerically smaller Magic-Number will send a SABM or
240 SABM(E), and the other will respond with a UA. In the event that
241 either the SABM or UA is lost, this exchange may be repeated
242 according to the same parameters as the configuration exchange
243 itself, using the Restart Timer and counter values. Authentication,
244 Link Quality Determination, and NCP Configuration follow this step.
245
246 Once the link has been established with Numbered-Mode, when re-
247 negotiation of link configuration occurs, the entire re-negotiation
248 MUST be conducted in Numbered-Mode. If the Numbered-Mode
249 Configuration Option is not successfully re-negotiated, the link
250 reverts to Unnumbered-Information operation prior to Authentication,
251 Link Quality Determination, and NCP Configuration.
252
253 When an implementation which is capable of Numbered-Mode, and is not
254 currently configured for Numbered-Mode operation, detects a frame
255 which has a correct FCS but does not have a UI Control octet, the
256 implementation MUST send a DM message, immediately followed by a LCP
257 Configure-Request.
258
259 When an implementation which is currently configured for Numbered-
260 Mode operation receives a DM message, it MUST revert to Unnumbered-
261 Information operation, and immediately send a LCP Configure-Request.
262
263 <span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Single Link</span>
264
265 When Network-Layer packets are sent over a single link, the packets
266 are encapsulated in the following order:
267
268 +----------+ +----------+ +----------+
269 | | | | | Numbered |
270 | Header |--&gt;| Data |--&gt;| Mode |--&gt; link
271 | Compress | | Compress | | Header |
272 +----------+ +----------+ +----------+
273
274
275
276 <span class="grey">Rand [Page 5]</span></pre>
277 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
278 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
279
280
281 <span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Inverse Multiplexing</span>
282
283 Since sending several connections over a single link is often called
284 "multiplexing", sending packets from a single connection over
285 multiple parallel links is sometimes called "inverse-multiplexing".
286 By default, PPP performs no special processing for such links. Each
287 link is established and terminated independently, negotiates its own
288 configuration options, and may have different combinations of such
289 options as ACCM, Protocol Field Compression and IP-Address. This
290 facilitates using the links simultaneously over dissimilar media,
291 such as 56K sync with async backup.
292
293 Every link in a single machine MUST have different Magic Numbers, and
294 each end of every link between two peers SHOULD have Magic Numbers
295 which are unique to those peers. This protects against patch-panel
296 errors in addition to looped-back links.
297
298 The distribution to each link is controlled by higher level routing
299 mechanisms. When Network-Layer specific compression techniques (such
300 as Van Jacobsen Compression) rely on sequential delivery, without
301 Multi-Link Procedure support such compression MUST be applied on a
302 link by link basis.
303
304 +----------+ +----------+ +----------+
305 | | | | | Numbered |
306 +---&gt;| Header |--&gt;| Data |--&gt;| Mode |--&gt; link 1
307 | | Compress | | Compress | | Header |
308 +--------------+ +----------+ +----------+ +----------+
309 | Distribution |
310 +--------------+ +----------+ +----------+ +----------+
311 | | | | | | Numbered |
312 +---&gt;| Header |--&gt;| Data |--&gt;| Mode |--&gt; link 2
313 | Compress | | Compress | | Header |
314 +----------+ +----------+ +----------+
315
316 <span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Using Multi-Link Procedure</span>
317
318 This document does not offer a standard for ISO Multi-Link, but does
319 offer a method for agreeing on the addressing scheme usable with
320 Multi-Link. A sample implementation is shown below. Implementation
321 of Multi-Link is not required.
322
323 When using the ISO 7776 Multi-Link Procedure, each link is
324 established as described above. In addition, the Numbered-Mode
325 Configuration Option is negotiated with appropriate addresses for the
326 Multi-Link Procedure. The distribution to each link is controlled by
327 the Multi-Link Procedure, as is the recovery of sequence in the
328 receiving system.
329
330
331
332 <span class="grey">Rand [Page 6]</span></pre>
333 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
334 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
335
336
337 +---&gt; link 1
338 +----------+ +----------+ +----------+ |
339 | | | | | Multi | +--------------+
340 | Header |--&gt;| Data |--&gt;| Link |--&gt;| Distribution |
341 | Compress | | Compress | | Procedure| +--------------+
342 +----------+ +----------+ +----------+ |
343 +---&gt; link 2
344
345 <span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. LAPB Parameter defaults</span>
346
347 The following guidelines specify the default values of LAPB
348 configurable parameters.
349
350 Timer T1
351
352 Timer T1 is the maximum time permitted before a retransmission
353 is started, as a result of no response to a transmitted I
354 frame. This value must be greater than the time required for a
355 maximum sized frame to be received by the other side of the
356 link, and for a response to be generated for the frame. This
357 SHOULD be determined dynamically, based on the measured round
358 trip time delay of the link at the LAPB level. In the event
359 that the system cannot determine the round trip time of the
360 link, this value SHOULD be set to twice the bit rate of the
361 link, divided by the maximum number of bits per frame, plus 100
362 milliseconds processing time. For example, on a 14,400 bps
363 link, with a maximum frame size of 8000 bits (1000 octects),
364 the T1 value would be set to 3.7 seconds.
365
366 Timer T3
367
368 Timer T3 gives an indication of the idle state of the link.
369 Its value must be greater than the T1 value.
370
371 Maximum number of attempts to complete a transmission, N2
372
373 Parameter N2 gives the maximum number of retransmission
374 attempts for a given frame. If this value is exceeded, the
375 link SHOULD be terminated. The default value for parameter N2
376 SHOULD be 3.
377
378 Security Considerations
379
380 Security issues are not discussed in this memo.
381
382
383
384
385
386
387
388 <span class="grey">Rand [Page 7]</span></pre>
389 <hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
390 <span class="grey"><a href="./rfc1663">RFC 1663</a> PPP Reliable Transmission July 1994</span>
391
392
393 References
394
395 [<a id="ref-1">1</a>] Simpson, W., Editor, "The Point-to-Point Protocol (PPP)", STD 51,
396 <a href="./rfc1661">RFC 1661</a>, Daydreamer, July 1994.
397
398 [<a id="ref-2">2</a>] ISO 7776, Information Processing Systems - Data Communication -
399 High Level Data Link Control Procedures - Description of the X.25
400 LAPB-Compatible DTE Data Link Procedures
401
402 [<a id="ref-3">3</a>] Simpson, W., Editor, "PPP in HDLC Framing", STD 51, <a href="./rfc1662">RFC 1662</a>,
403 Daydreamer, July 1994.
404
405 [<a id="ref-4">4</a>] Sklower, K., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&amp;q=inurl:draft-+%22PPP+MultiLink+Procedure%22'>"PPP MultiLink Procedure"</a>, Work in Progress.
406
407 Acknowledgments
408
409 Fred Baker was the original author of this document.
410
411 Bill Simpson contributed materially to the document.
412
413 Chair's Address
414
415 The working group can be contacted via the current chair:
416
417 Fred Baker
418 Advanced Computer Communications
419 315 Bollay Drive
420 Santa Barbara, California 93117
421
422 EMail: [email protected]
423
424 Author's Address
425
426 Questions about this memo can also be directed to:
427
428 Dave Rand
429 2180 Fortune Drive
430 San Jose, CA 95131
431
432 Phone: +1 408 321-1259
433 EMail: [email protected]
434
435
436
437
438
439
440
441
442
443
444 Rand [Page 8]
445 </pre>