1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
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
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
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
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
|
Network Working Group E. Lear
Request for Comments: 4744 Cisco Systems
Category: Standards Track K. Crozier
December 2006
Using the NETCONF Protocol over
the Blocks Extensible Exchange Protocol (BEEP)
Status of This Memo
This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
Copyright Notice
Copyright (C) The IETF Trust (2006).
Abstract
This document specifies an application protocol mapping for the
Network Configuration Protocol (NETCONF) over the Blocks Extensible
Exchange Protocol (BEEP).
Table of Contents
1. Introduction ....................................................2
1.1. Why BEEP? ..................................................2
2. BEEP Transport Mapping ..........................................2
2.1. NETCONF Session Establishment ..............................2
2.2. Starting a Channel for NETCONF .............................4
2.3. NETCONF Session Usage ......................................5
2.4. NETCONF Session Teardown ...................................5
2.5. BEEP Profile for NETCONF ...................................6
3. Security Considerations .........................................6
4. IANA Considerations .............................................7
5. Acknowledgments .................................................7
6. References ......................................................8
6.1. Normative References .......................................8
6.2. Informative References .....................................8
Lear & Crozier Standards Track [Page 1]
^L
RFC 4744 NETCONF over BEEP December 2006
1. Introduction
The NETCONF protocol [1] defines a simple mechanism through which a
network device can be managed. NETCONF is designed to be usable over
a variety of application protocols. This document specifies an
application protocol mapping for NETCONF over the Blocks Extensible
Exchange Protocol (BEEP) [7].
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in RFC 2119 [2].
1.1. Why BEEP?
Use of BEEP is natural as an application protocol for transport of
XML. As a peer-to-peer protocol, BEEP provides an easy way to
implement NETCONF, no matter which side of the connection was the
initiator. This "bidirectionality" allows for either manager or
agent to initiate a connection. This is particularly important to
support large numbers of intermittently connected devices, as well as
those devices that must reverse the management connection in the face
of firewalls and network address translators (NATs).
BEEP makes use of the Simple Authentication and Security Layer (SASL)
[3]. The SASL profile used by BEEP allows for a simple and direct
mapping to the existing security model for command line interface
(CLI), while Transport Layer Security (TLS) [4] provides a strong,
well-tested encryption mechanism with either server or server and
client-side authentication.
2. BEEP Transport Mapping
All NETCONF over BEEP implementations MUST implement the profile and
functional mapping between NETCONF and BEEP as described below.
For purposes of this document, a manager is a NETCONF client, and an
agent is a NETCONF server. Use of client/server language in BEEP is
avoided because of the common notion that in networking clients
connect to servers.
2.1. NETCONF Session Establishment
Managers may be either BEEP listeners or initiators. Similarly,
agents may be either listeners or initiators. To establish a
connection, the initiator connects to the listener on TCP port 831.
Thus, the initial exchange takes place without regard to whether a
manager or the agent is the initiator. After the transport
connection is established, as greetings are exchanged, they SHOULD
Lear & Crozier Standards Track [Page 2]
^L
RFC 4744 NETCONF over BEEP December 2006
each announce their support for TLS and optionally SASL. Once BEEP
greeting messages are exchanged, if TLS is to be used and available
by both parties, the listener STARTs a channel with the TLS profile.
Once TLS has been started, a new BEEP greeting message is sent by
both initiator and listener, as required by the BEEP RFC.
After all BEEP greeting messages are exchanged in order for roles to
be clear, the agent MUST advertise the NETCONF profile. The manager
MUST NOT advertise the NETCONF profile. If the agent side of the
communication (either initiator or listener) receives a BEEP
<greeting> element that contains the NETCONF profile, it MUST close
the connection. Similarly, if neither side issues a NETCONF profile
it is equally an error, and the listener MUST close the connection.
At this point, if SASL is desired, the initiator starts a BEEP
channel to perform a SASL exchange to authenticate itself. Upon
completion of authentication the channel is closed. That is, the
channel is exclusively used to authenticate.
Examples of both TLS and SASL profiles can be found in [7].
It is anticipated that the SASL PLAIN mechanism will be heavily used
in conjunction with TLS [5]. In such cases, in accordance with RFC
2595 the PLAIN mechanism MUST NOT be advertised in the first BEEP
<greeting>, but only in the one following a successful TLS
negotiation. This applies only if TLS and SASL PLAIN mechanisms are
both to be used. To avoid risk of eavesdropping, the SASL PLAIN
mechanism MUST NOT be used over unencrypted channels. More specifics
about the use of SASL and TLS are mentioned in Security
Considerations below.
Once authentication has occurred, there is no need to distinguish
between initiator and listener. We now distinguish between manager
and agent, and it is assumed that each knows its role in the
conversation.
Lear & Crozier Standards Track [Page 3]
^L
RFC 4744 NETCONF over BEEP December 2006
2.2. Starting a Channel for NETCONF
The manager now establishes a new channel and specifies the single
NETCONF profile. For example:
(M = Manager; A = Agent)
M: MSG 0 1 . 10 48 118
M: Content-type: application/beep+xml
M:
M: <start number="1">
M: <profile uri="http://iana.org/beep/netconf" />
M: </start>
M: END
A: RPY 0 1 . 38 87
A: Content-Type: application/beep+xml
A:
A: <profile uri="http://iana.org/beep/netconf" />
A: END
At this point, we are ready to proceed on BEEP channel 1 with NETCONF
operations.
NETCONF messages are transmitted with a Content-type header set to
"text/xml".
Next the manager and the agent exchange NETCONF <hello> elements on
the new channel so that each side learns the other's capabilities.
This occurs through a MSG. Each side will then respond positively.
The following example is adapted from [1] Section 8.1:
A: MSG 1 0 . 0 457
A: Content-type: application/beep+xml
A:
A: <?xml version='1.0' encoding="UTF-8"?>
A: <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
A: <capabilities>
A: <capability>
A: urn:ietf:params:netconf:base:1.0
A: </capability>
A: <capability>
A: urn:ietf:params:netconf:capability:startup:1.0
A: </capability>
A: <capability>
A: http://example.net/router/2.3/core#myfeature
A: </capability>
A: </capabilities>
Lear & Crozier Standards Track [Page 4]
^L
RFC 4744 NETCONF over BEEP December 2006
A: <session-id>4</session-id>
A: </hello>
A: END
M: RPY 1 0 . 0 0
M: END
Future NETCONF capabilities may require additional BEEP channels.
When such capabilities are defined, a BEEP mapping must be defined as
well.
At this point, the NETCONF session is established, and capabilities
have been exchanged.
2.3. NETCONF Session Usage
Nearly all NETCONF operations are executed through the <rpc> element.
To issue a remote procedure call (RPC), the manager transmits on the
operational channel a BEEP MSG containing the RPC and its arguments.
In accordance with the BEEP standard, RPC requests may be split
across multiple BEEP frames.
Once received and processed, the agent responds with BEEP RPY
messages on the same channel with the response to the RPC. In
accordance with the BEEP standard, responses may be split across
multiple BEEP frames.
2.4. NETCONF Session Teardown
Upon receipt of <close-session> from the manager, once the agent has
completed all RPCs, it will close BEEP channel 0. When an agent
needs to initiate a close, it will do so by closing BEEP channel 0.
Although not required to do so, the agent should allow for a
reasonable period for a manager to release an existing lock prior to
initiating a close. Once the agent has closed channel 0, all locks
are released, and each side follows teardown procedures as specified
in [8]. Having received a BEEP close or having sent <close-session>,
a manager MUST NOT send further requests. If there are additional
activities due to expanded capabilities, they MUST cease in an
orderly manner and should be properly described in the capability
mapping.
Lear & Crozier Standards Track [Page 5]
^L
RFC 4744 NETCONF over BEEP December 2006
2.5. BEEP Profile for NETCONF
Profile Identification: http://iana.org/beep/netconf
Messages exchanged during Channel Creation: not applicable
Messages starting one-to-one exchanges: "hello", "rpc", "rpc-reply"
Messages in positive replies: "rpc-reply"
Messages in negative replies: "rpc-reply"
Messages in one-to-many exchanges: none
Message syntax: [1]
Message semantics: [1]
Contact Information: See the "Author's Address" section of this memo.
3. Security Considerations
Configuration information is by its very nature sensitive. Its
transmission in the clear and without integrity checking leaves
devices open to classic so-called "person-in-the-middle" attacks.
Configuration information often times contains passwords, user names,
service descriptions, and topological information, all of which are
sensitive. A NETCONF application protocol, therefore, must minimally
support options for both confidentiality and authentication.
The BEEP mapping described in this document addresses both
confidentiality and authentication in a flexible manner through the
use of TLS and SASL profiles. Confidentiality is provided via the
TLS profile and is used as discussed above. In addition, the server
certificate shall serve as the server's authentication to the client.
The client MUST be prepared to recognize and validate a server
certificate and SHOULD by default reject invalid certificates.
In order to validate a certificate, the client must be able to access
a trust anchor. While such validation methods are beyond the scope
of this document, they will depend on the type of device and
circumstance. Both the implementor and the administrator are
cautioned to be aware of any circular dependencies that various
methods may introduce. For instance, Online Certificate Status
Protocol (OCSP) servers may not be available in a network cold-start
scenario and would be ill-advised for core routers to depend on to
receive configuration at boot.
Lear & Crozier Standards Track [Page 6]
^L
RFC 4744 NETCONF over BEEP December 2006
For client-side authentication, there are several options. The
client MAY provide a certificate during the initiation phase of TLS,
in which case the subject of that certificate shall be considered
principle for authentication purposes. Once again, server
implementors should be aware of any interdependencies that could be
created through protocols used to validate trust anchors.
TLS endpoints may be authorized based on subject name or certificate
authority (CA), depending on circumstances. For instance, it would
be unwise for a core Internet router to allow a netconf agent
connection simply based on a valid certificate signed by a common CA,
but not unreasonable to allow a connection from an agent with a
particular distinguished name. On the other hand, it might be
desirable for enterprises to trust certificates signed by CAs of
their network operations team.
In the case where the client has not authenticated through TLS, the
server SHOULD advertise one or more SASL profiles, from which the
client will choose. In the singular case where TLS is established,
the minimum profile MAY be PLAIN. Otherwise, implementations MUST
support the DIGEST-MD5 profile as described in [6], and they MAY
support other profiles such as the One-Time Password (OTP) mechanism
[10].
Different environments may well allow different rights prior to and
then after authentication. An authorization model is not specified
in this document. When an operation is not properly authorized, then
a simple rpc-error containing "permission denied" is sufficient.
Note that authorization information may be exchanged in the form of
configuration information, which is all the more reason to ensure the
security of the connection.
4. IANA Considerations
IANA assigned TCP port (831) for NETCONF over BEEP.
5. Acknowledgments
This work is the product of the NETCONF IETF working group, and many
people have contributed to the NETCONF discussion. Most notably, Rob
Ens, Phil Schafer, Andy Bierman, Wes Hardiger, Ted Goddard, and
Margaret Wasserman all contributed in some fashion to this work,
which was originally to be found in the NETCONF base protocol
specification. Thanks also to Weijing Chen, Keith Allen, Juergen
Schoenwaelder, Marshall Rose, and Eamon O'Tuathail for their very
constructive participation. The authors would also like to thank
Elwyn Davies for his constructive review.
Lear & Crozier Standards Track [Page 7]
^L
RFC 4744 NETCONF over BEEP December 2006
6. References
6.1. Normative References
[1] Enns, R., Ed., "NETCONF Configuration Protocol", RFC 4741,
December 2006.
[2] Bradner, S., "Key words for use in RFCs to Indicate Requirement
Levels", BCP 14, RFC 2119, March 1997.
[3] Melnikov, A. and K. Zeilenga, "Simple Authentication and
Security Layer (SASL)", RFC 4422, June 2006.
[4] Dierks, T. and E. Rescorla, "The Transport Layer Security (TLS)
Protocol Version 1.1", RFC 4346, April 2006.
[5] Newman, C., "Using TLS with IMAP, POP3 and ACAP", RFC 2595,
June 1999.
[6] Leach, P. and C. Newman, "Using Digest Authentication as a SASL
Mechanism", RFC 2831, May 2000.
[7] Rose, M., "The Blocks Extensible Exchange Protocol Core",
RFC 3080, March 2001.
[8] Rose, M., "Mapping the BEEP Core onto TCP", RFC 3081,
March 2001.
6.2. Informative References
[9] Sperberg-McQueen, C., Paoli, J., Maler, E., and T. Bray,
"Extensible Markup Language (XML) 1.0 (Second Edition)", World
Wide Web Consortium, First Edition,
http://www.w3.org/TR/2000/REC-xml-20001006, October 2000.
[10] Newman, C., "The One-Time-Password SASL Mechanism", RFC 2444,
October 1998.
Lear & Crozier Standards Track [Page 8]
^L
RFC 4744 NETCONF over BEEP December 2006
Authors' Addresses
Eliot Lear
Cisco Systems
Glatt-com
CH-8301 Glattzentrum, Zurich
CH
EMail: lear@cisco.com
Ken Crozier
EMail: ken.crozier@gmail.com
Lear & Crozier Standards Track [Page 9]
^L
RFC 4744 NETCONF over BEEP December 2006
Full Copyright Statement
Copyright (C) The IETF Trust (2006).
This document is subject to the rights, licenses and restrictions
contained in BCP 78, and except as set forth therein, the authors
retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST,
AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT
THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Lear & Crozier Standards Track [Page 10]
^L
|