-
Notifications
You must be signed in to change notification settings - Fork 1
/
draft.txt
392 lines (194 loc) · 9.05 KB
/
draft.txt
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
Network Working Group M. Stucchi
Internet-Draft RIPE NCC
Obsoletes: 2622,4012 (if approved) S. Kostantaras
Intended status: Standards Track NLnet Labs
Expires: August 4, 2016 February 2016
The third generation of RPSL
draft-stucchi-rpsl3-00
Abstract
This memo presents some modifications to the Routing Policy
Specification Language (RPSL) discussed in [RFC2622] and subsequently
updated in [RFC4012], creating the third generation of the language.
It fixes some issues left from the previous standards, and enhances
the language. Enhancements include the addition of recommendations
for using RPSL to describe routing policies in Internet Exchange
environments running route servers and other minor corrections.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on August 4, 2016.
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
Stucchi & Kostantaras Expires August 4, 2016 [Page 1]
Internet-Draft RPSLv3 February 2016
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Basic objects . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1. aut-num objects . . . . . . . . . . . . . . . . . . . . . 3
2.2. as-set objects . . . . . . . . . . . . . . . . . . . . . 3
2.3. route objects . . . . . . . . . . . . . . . . . . . . . . 3
2.4. IXP objects . . . . . . . . . . . . . . . . . . . . . . . 3
2.4.1. Defining IXP members . . . . . . . . . . . . . . . . 3
2.4.2. Members using the route server . . . . . . . . . . . 3
3. Basic syntax . . . . . . . . . . . . . . . . . . . . . . . . 3
3.1. Keywords . . . . . . . . . . . . . . . . . . . . . . . . 3
3.2. Using brackets . . . . . . . . . . . . . . . . . . . . . 3
3.3. Defining a peer . . . . . . . . . . . . . . . . . . . . . 3
4. Defining a peer's routing policy . . . . . . . . . . . . . . 4
4.1. IPv4 . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.1.1. IPv4 Prefix lists . . . . . . . . . . . . . . . . . . 4
4.2. IPv6 . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.2.1. IPv6 Prefix lists . . . . . . . . . . . . . . . . . . 4
4.3. Local Preference . . . . . . . . . . . . . . . . . . . . 4
4.4. Prepending . . . . . . . . . . . . . . . . . . . . . . . 4
4.5. MED . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4.6. Communities . . . . . . . . . . . . . . . . . . . . . . . 4
5. Security Considerations . . . . . . . . . . . . . . . . . . . 4
6. RPKI . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
7. Generating RPSL from router configuration . . . . . . . . . . 5
8. Generating router configuration from RPSL . . . . . . . . . . 5
9. Normative References . . . . . . . . . . . . . . . . . . . . 5
Appendix A. Example Policy . . . . . . . . . . . . . . . . . . . 5
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 7
1. Introduction
This is the introductory section.
2. Basic objects
This section contains information about the objects involved in
defining a policy
Stucchi & Kostantaras Expires August 4, 2016 [Page 2]
Internet-Draft RPSLv3 February 2016
2.1. aut-num objects
This section contains information about the aut-num objects, and
their relationship with RPSL3
2.2. as-set objects
This section contains information about the as-set objects, and their
relationship with RPSL3
2.3. route objects
This section contains information about the route objects, and their
relationship with RPSL3
2.4. IXP objects
This section contains information about the IXP objects, and their
relationship with RPSL3
2.4.1. Defining IXP members
Listing members of an internet exchange
2.4.2. Members using the route server
The route-server attribute in the object
3. Basic syntax
This section describes the basic syntax of the language.
3.1. Keywords
Keywords used in the language
3.2. Using brackets
Brackets used in the language
3.3. Defining a peer
How a peer is defined, with all its attributes
Stucchi & Kostantaras Expires August 4, 2016 [Page 3]
Internet-Draft RPSLv3 February 2016
4. Defining a peer's routing policy
A peer and all its attributes
4.1. IPv4
IPv4
4.1.1. IPv4 Prefix lists
IPv4 Prefix lists
4.2. IPv6
IPv6
4.2.1. IPv6 Prefix lists
IPv6 Prefix lists
4.3. Local Preference
Local preference
4.4. Prepending
Prepending
4.5. MED
Multiple Exit Discriminator
4.6. Communities
Communities in action
5. Security Considerations
This memo raises no security issues;
6. RPKI
Here, we discuss RPKI in relationship with RPSL
Stucchi & Kostantaras Expires August 4, 2016 [Page 4]
Internet-Draft RPSLv3 February 2016
7. Generating RPSL from router configuration
How to generate RPSL from routers
8. Generating router configuration from RPSL
How to generate router configs from RPSL
9. Normative References
[RFC2622] Alaettinoglu, C., Villamizar, C., Gerich, E., Kessens, D.,
Meyer, D., Bates, T., Karrenberg, D., and M. Terpstra,
"Routing Policy Specification Language (RPSL)", RFC 2622,
DOI 10.17487/RFC2622, June 1999,
<http://www.rfc-editor.org/info/rfc2622>.
[RFC4012] Blunk, L., Damas, J., Parent, F., and A. Robachevsky,
"Routing Policy Specification Language next generation
(RPSLng)", RFC 4012, DOI 10.17487/RFC4012, March 2005,
<http://www.rfc-editor.org/info/rfc4012>.
Appendix A. Example Policy
This section contains an example policy for an Internet Service
Provider. This should serve as the basis for an operator to start
drafting their own set of rules.
Stucchi & Kostantaras Expires August 4, 2016 [Page 5]
Internet-Draft RPSLv3 February 2016
aut-num: AS1
remarks: ------
peer: AS2
community: in {add, remove, set} AS1:3240
filter: out AS1 0-24
filter: in 4 Any [192.168.0.0]0-24 {}
policy: in * ANY {%AS3333$%}
policy: prepend 3
community: null-routing {}
policy: out 4 med 1000 @10.20.30.40
policy: out 6 med 900 @2001:db8:999::fff
policy: in 6 localpref 200 [AS1:3240]
policy: in 4 prepend 3
peer: AS3
filter: {in, out} Any 0-48
filter: out -AS28929 0-128 {} 6
# Example Internet Exchange
IXP: AMS-IX
member: AS1
route-Server: Yes
filter:
policy:
aut-num: AS1
remarks: ------
peer: AS2
community: in {add, remove, set} AS1:3240
filters: out AS1 0-24 {} 4
filters: in Any [192.168.0.0]0-24 {} 4
policy: prepend 3
community: null-routing {}
policy: out med 1000 {10.20.30.40}4
policy: out med 900 {2001:db8:999::fff} 6
policy: in localpref 200 {} 6 [AS1:3240]
policy: in prepend 3 {} 4
peer: AS3
filter: {in, out} Any 0-48
filter: out -AS28929 0-128 {} 6
Stucchi & Kostantaras Expires August 4, 2016 [Page 6]
Internet-Draft RPSLv3 February 2016
Authors' Addresses
Massimiliano Stucchi
RIPE NCC
Email: [email protected]
Stavros Kostantaras
NLnet Labs
Email: [email protected]
Stucchi & Kostantaras Expires August 4, 2016 [Page 7]