home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / rfc / 3 / rfc2280.txt < prev    next >
Encoding:
Text File  |  2003-06-11  |  112.3 KB  |  2,972 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                     C. Alaettinoglu
  8. Request for Comments: 2280             USC/Information Sciences Institute
  9. Category: Standards Track                                        T. Bates
  10.                                                             Cisco Systems
  11.                                                                 E. Gerich
  12.                                                           At Home Network
  13.                                                             D. Karrenberg
  14.                                                                      RIPE
  15.                                                                  D. Meyer
  16.                                                      University of Oregon
  17.                                                               M. Terpstra
  18.                                                              Bay Networks
  19.                                                             C. Villamizar
  20.                                                                       ANS
  21.                                                              January 1998
  22.  
  23.               Routing Policy Specification Language (RPSL)
  24.  
  25. Status of this Memo
  26.  
  27.    This document specifies an Internet standards track protocol for the
  28.    Internet community, and requests discussion and suggestions for
  29.    improvements.  Please refer to the current edition of the "Internet
  30.    Official Protocol Standards" (STD 1) for the standardization state
  31.    and status of this protocol.  Distribution of this memo is unlimited.
  32.  
  33. Copyright Notice
  34.  
  35.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  36.  
  37.    Table of Contents
  38.  
  39.    1 Introduction                                                     2
  40.    2 RPSL Names, Reserved Words, and Representation                   3
  41.    3 Contact Information                                              6
  42.      3.1 mntner Class  . . . . . . . . . . . . . . . . . . . . . . .  6
  43.      3.2 person Class  . . . . . . . . . . . . . . . . . . . . . . .  8
  44.      3.3 role Class  . . . . . . . . . . . . . . . . . . . . . . . .  9
  45.    4 route Class                                                     10
  46.    5 Set Classes                                                     12
  47.      5.1 route-set Class . . . . . . . . . . . . . . . . . . . . . . 12
  48.      5.2 as-set Class  . . . . . . . . . . . . . . . . . . . . . . . 14
  49.      5.3 Predefined Set Objects  . . . . . . . . . . . . . . . . . . 15
  50.      5.4 Hierarchical Set Names  . . . . . . . . . . . . . . . . . . 15
  51.    6 aut-num Class                                                   16
  52.      6.1 import Attribute:  Import Policy Specification  . . . . . . 16
  53.        6.1.1 Peering Specification . . . . . . . . . . . . . . . . . 17
  54.        6.1.2 Action Specification  . . . . . . . . . . . . . . . . . 19
  55.  
  56.  
  57.  
  58. Alaettinoglu, et. al.       Standards Track                     [Page 1]
  59.  
  60. RFC 2280                          RPSL                      January 1998
  61.  
  62.  
  63.        6.1.3 Filter Specification  . . . . . . . . . . . . . . . . . 20
  64.        6.1.4 Example Policy Expressions  . . . . . . . . . . . . . . 24
  65.      6.2 export Attribute:  Export Policy Specification  . . . . . . 24
  66.       6.3 Other Routing  Protocols, Multi-Protocol Routing
  67.        Protocols, and Injecting Routes Between Protocols   . . . . . 25
  68.      6.4 Ambiguity Resolution  . . . . . . . . . . . . . . . . . . . 26
  69.      6.5 default Attribute:  Default Policy Specification  . . . . . 28
  70.      6.6 Structured Policy Specification . . . . . . . . . . . . . . 29
  71.    7 dictionary Class                                                33
  72.      7.1 Initial RPSL Dictionary and Example Policy Actions
  73.       and Filters  . . . . . . . . . . . . . . . . . . . . . . . . . 36
  74.    8 Advanced route Class                                            41
  75.      8.1 Specifying Aggregate Routes . . . . . . . . . . . . . . . . 41
  76.        8.1.1 Interaction with policies in aut-num class  . . . . . . 45
  77.        8.1.2 Ambiguity resolution with overlapping aggregates  . . . 46
  78.      8.2 Specifying Static Routes  . . . . . . . . . . . . . . . . . 47
  79.    9 inet-rtr Class                                                  48
  80.    10 Security Considerations                                        49
  81.    11 Acknowledgements                                               50
  82.    A Routing Registry Sites                                          51
  83.    B Authors' Addresses                                              52
  84.    C Full Copyright Statement                                        53
  85.  
  86. 1 Introduction
  87.  
  88.    This memo is the reference document for the Routing Policy
  89.    Specification Language (RPSL). RPSL allows a network operator to be
  90.    able to specify routing policies at various levels in the Internet
  91.    hierarchy; for example at the Autonomous System (AS) level.  At the
  92.    same time, policies can be specified with sufficient detail in RPSL
  93.    so that low level router configurations can be generated from them.
  94.    RPSL is extensible; new routing protocols and new protocol features
  95.    can be introduced at any time.
  96.  
  97.    RPSL is a replacement for the current Internet policy specification
  98.    language known as RIPE-181 [4] or RFC-1786 [5].  RIPE-81 [6] was the
  99.    first language deployed in the Internet for specifying routing
  100.    policies.  It was later replaced by RIPE-181 [4].  Through
  101.    operational use of RIPE-181 it has become apparent that certain
  102.    policies cannot be specified and a need for an enhanced and more
  103.    generalized language is needed.  RPSL addresses RIPE-181's
  104.    limitations.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Alaettinoglu, et. al.       Standards Track                     [Page 2]
  115.  
  116. RFC 2280                          RPSL                      January 1998
  117.  
  118.  
  119.    RPSL was designed so that a view of the global routing policy can be
  120.    contained in a single cooperatively maintained distributed database
  121.    to improve the integrity of Internet's routing.  RPSL is not designed
  122.    to be a router configuration language.  RPSL is designed so that
  123.    router configurations can be generated from the description of the
  124.    policy for one autonomous system (aut-num class) combined with the
  125.    description of a router (inet-rtr class), mainly providing router ID,
  126.    autonomous system number of the router, interfaces and peers of the
  127.    router, and combined with a global database mappings from AS sets to
  128.    ASes (as-set class), and from origin ASes and route sets to route
  129.    prefixes (route and route-set classes).  The accurate population of
  130.    the RPSL database can help contribute toward such goals as router
  131.    configurations that protect against accidental (or malicious)
  132.    distribution of inaccurate routing information, verification of
  133.    Internet's routing, and aggregation boundaries beyond a single AS.
  134.  
  135.    RPSL is object oriented; that is, objects contain pieces of policy
  136.    and administrative information.  These objects are registered in the
  137.    Internet Routing Registry (IRR) by the authorized organizations.  The
  138.    registration process is beyond the scope of this document.  Please
  139.    refer to [1, 15, 2] for more details on the IRR.
  140.  
  141.    In the following sections, we present the classes that are used to
  142.    define various policy and administrative objects.  The "mntner" class
  143.    defines entities authorized to add, delete and modify a set of
  144.    objects.  The "person" and "role" classes describes technical and
  145.    administrative contact personnel.  Autonomous systems (ASes) are
  146.    specified using the "aut-num" class.  Routes are specified using the
  147.    "route" class.  Sets of ASes and routes can be defined using the
  148.    "as-set" and "route-set" classes.  The "dictionary" class provides
  149.    the extensibility to the language.  The "inet-rtr" class is used to
  150.    specify routers.  Many of these classes were originally defined in
  151.    earlier documents [4, 11, 14, 10, 3] and have all been enhanced.
  152.  
  153.    This document is self-contained.  However, the reader is encouraged
  154.    to read RIPE-181 [5] and the associated documents [11, 14, 10, 3] as
  155.    they provide significant background as to the motivation and
  156.    underlying principles behind RIPE-181 and consequently, RPSL. For a
  157.    tutorial on RPSL, the reader should read the RPSL applications
  158.    document [2].
  159.  
  160. 2 RPSL Names, Reserved Words, and Representation
  161.  
  162.    Each class has a set of attributes which store a piece of information
  163.    about the objects of the class.  Attributes can be mandatory or
  164.    optional: A mandatory attribute has to be defined for all objects of
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Alaettinoglu, et. al.       Standards Track                     [Page 3]
  171.  
  172. RFC 2280                          RPSL                      January 1998
  173.  
  174.  
  175.    the class; optional attributes can be skipped.  Attributes can also
  176.    be single or multiple valued.  Each object is uniquely identified by
  177.    a set of attributes, referred to as the class "key".
  178.  
  179.    The value of an attribute has a type.  The following types are most
  180.    widely used.  Note that RPSL is case insensitive and only the
  181.    characters from the ASCII character set can be used.
  182.  
  183.    <object-name>Many objects in RPSL have a name.  An <object-name>
  184.        is made up of letters, digits, the character underscore "_", and
  185.        the character hyphen "-"; the first character of a name must be a
  186.        letter, and the last character of a name must be a letter or a
  187.        digit.  The following words are reserved by RPSL, and they can
  188.        not be used as names:
  189.  
  190.              any as-any rs-any peeras
  191.              and or not
  192.              atomic from to at action accept announce except refine
  193.              networks into inbound outbound
  194.  
  195.        Names starting with certain prefixes are reserved for certain
  196.        object types.  Names starting with "as-" are reserved for as set
  197.        names.  Names starting with "rs-" are reserved for route set
  198.        names.
  199.  
  200.    <as-number>An AS number x is represented as the string "ASx".  That
  201.        is, the AS 226 is represented as AS226.
  202.  
  203.    <ipv4-address>An IPv4 address is represented as a sequence of four
  204.        integers in the range from 0 to 255 separated by the character
  205.        dot ".".  For example, 128.9.128.5 represents a valid IPv4
  206.        address.  In the rest of this document, we may refer to IPv4
  207.        addresses as IP addresses.
  208.  
  209.    <address-prefix>An address prefix is represented as an IPv4
  210.        address followed by the character slash "/" followed by an
  211.        integer in the range from 0 to 32.  The following are valid
  212.        address prefixes: 128.9.128.5/32, 128.9.0.0/16, 0.0.0.0/0; and
  213.        the following address prefixes are invalid: 0/0, 128.9/16 since 0
  214.        or 128.9 are not strings containing four integers.
  215.  
  216.    <address-prefix-range>An address prefix range is an address
  217.        prefix followed by one of the following range operators:
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Alaettinoglu, et. al.       Standards Track                     [Page 4]
  227.  
  228. RFC 2280                          RPSL                      January 1998
  229.  
  230.  
  231.        ^- is the exclusive more specifics operator; it stands
  232.            for the more specifics of the address prefix excluding the
  233.            address prefix itself.  For example, 128.9.0.0/16^- contains
  234.            all the more specifics of 128.9.0.0/16 excluding
  235.            128.9.0.0/16.
  236.  
  237.        ^+ is the inclusive more specifics operator; it stands
  238.            for the more specifics of the address prefix including the
  239.            address prefix itself.  For example, 5.0.0.0/8^+ contains all
  240.            the more specifics of 5.0.0.0/8 including 5.0.0.0/8.
  241.  
  242.        ^n where n is an integer, stands for all the length n specifics
  243.            of the address prefix.  For example, 30.0.0.0/8^16 contains
  244.            all the more specifics of 30.0.0.0/8 which are of length 16
  245.            such as 30.9.0.0/16.
  246.  
  247.        ^n-m where n and m are integers, stands for all the length n to
  248.            length m specifics of the address prefix.  For example,
  249.            30.0.0.0/8^24-32 contains all the more specifics of
  250.            30.0.0.0/8 which are of length 24 to 32 such as 30.9.9.96/28.
  251.  
  252.        Range operators can also be applied to address prefix sets.  In
  253.        this case, they distribute over the members of the set.  For
  254.        example, for a route-set (defined later) rs-foo, rs-foo^+
  255.        contains all the inclusive more specifics of all the prefixes in
  256.        rs-foo.
  257.  
  258.    <date>A date is represented as an eight digit integer of the
  259.        form YYYYMMDD where YYYY represents the year, MM represents the
  260.        month of the year (01 through 12), and DD represents the day of
  261.        the month (01 through 31).  For example, June 24, 1996 is
  262.        represented as 19960624.
  263.  
  264.    <email-address>is as described in RFC-822[8].
  265.  
  266.    <dns-name>is as described in RFC-1034[16].
  267.  
  268.    <nic-handle>is a uniquely assigned identifier[13] used by routing,
  269.        address allocation, and other registries to unambiguously refer
  270.        to contact information.  person and role classes map NIC handles
  271.        to actual person names, and contact information.
  272.  
  273.    <free-form>is a sequence of ASCII characters.
  274.  
  275.    <X-name>is a name of an object of type X. That is <mntner-name>
  276.        is a name of a mntner object.
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Alaettinoglu, et. al.       Standards Track                     [Page 5]
  283.  
  284. RFC 2280                          RPSL                      January 1998
  285.  
  286.  
  287.    <registry-name>is a name of an IRR registry.  The routing
  288.        registries are listed in Appendix A.
  289.  
  290.    A value of an attribute may also be a list of one of these types.  A
  291.    list is represented by separating the list members by commas ",".
  292.    For example, "AS1, AS2, AS3, AS4" is a list of AS numbers.  Note that
  293.    being list valued and being multiple valued are orthogonal.  A
  294.    multiple valued attribute has more than one value, each of which may
  295.    or may not be a list.  On the other hand a single valued attribute
  296.    may have a list value.
  297.  
  298.    An RPSL object is textually represented as a list of attribute-value
  299.    pairs.  Each attribute-value pair is written on a separate line.  The
  300.    attribute name starts at column 0, followed by character ":" and
  301.    followed by the value of the attribute.  The object's representation
  302.    ends when a blank line is encountered.  An attribute's value can be
  303.    split over multiple lines, by starting the continuation lines with a
  304.    white-space (" " or tab) character.  The order of attribute-value
  305.    pairs is significant.
  306.  
  307.    An object's description may contain comments.  A comment can be
  308.    anywhere in an object's definition, it starts at the first "#"
  309.    character on a line and ends at the first end-of-line character.
  310.    White space characters can be used to improve readability.
  311.  
  312. 3 Contact Information
  313.  
  314.    The mntner, person and role classes, admin-c, tech-c, mnt-by,
  315.    changed, and source attributes of all classes describe contact
  316.    information.  The mntner class also specifies what entities can
  317.    create, delete and update other objects.  These classes do not
  318.    specify routing policies and each registry may have different or
  319.    additional requirements on them.  Here we present the common
  320.    denominator for completeness which is the RIPE database
  321.    implementation[15].  Please consult your routing registry for the
  322.    latest specification of these classes and attributes.
  323.  
  324. 3.1 mntner Class
  325.  
  326.    The mntner class defines entities that can create, delete and update
  327.    RPSL objects.  A provider, before he/she can create RPSL objects,
  328.    first needs to create a mntner object.  The attributes of the mntner
  329.    class are shown in Figure 1.  The mntner class was first described in
  330.    [11].
  331.  
  332.    The mntner attribute is mandatory and is the class key attribute.
  333.    Its value is an RPSL name.  The auth attribute specifies the scheme
  334.    that will be used
  335.  
  336.  
  337.  
  338. Alaettinoglu, et. al.       Standards Track                     [Page 6]
  339.  
  340. RFC 2280                          RPSL                      January 1998
  341.  
  342.  
  343. Attribute Value                    Type
  344. mntner    <object-name>            mandatory, single-valued, class key
  345. descr     <free-form>              mandatory, single-valued
  346. auth      see description in text  mandatory, multi-valued
  347. upd-to    <email-address>          mandatory, multi-valued
  348. mnt-nfy   <email-address>          optional, multi-valued
  349. tech-c    <nic-handle>             mandatory, multi-valued
  350. admin-c   <nic-handle>             mandatory, multi-valued
  351. remarks   <free-form>              optional, multi-valued
  352. notify    <email-address>          optional, multi-valued
  353. mnt-by    list of <mntner-name>    mandatory, multi-valued
  354. changed   <email-address> <date>   mandatory, multi-valued
  355. source    <registry-name>          mandatory, single-valued
  356.  
  357.    to identify and authenticate update requests from this maintainer.
  358.    It has the following syntax:
  359.  
  360.       auth: <scheme-id> <auth-info>
  361.  
  362.       E.g.
  363.              auth: NONE
  364.              auth: CRYPT-PW dhjsdfhruewf
  365.              auth: MAIL-FROM .*@ripe\.net
  366.  
  367.    The <scheme-id>'s currently defined are: NONE, MAIL-FROM, PGP and
  368.    CRYPT-PW.  The <auth-info> is additional information required by a
  369.    particular scheme: in the case of MAIL-FROM, it is a regular
  370.    expression matching valid email addresses; in the case of CRYPT-PW,
  371.    it is a password in UNIX crypt format; and in the case of PGP, it is
  372.    a PGP public key.  If multiple auth attributes are specified, an
  373.    update request satisfying any one of them is authenticated to be from
  374.    the maintainer.
  375.  
  376.    The upd-to attribute is an email address.  On an unauthorized update
  377.    attempt of an object maintained by this maintainer, an email message
  378.    will be sent to this address.  The mnt-nfy attribute is an email
  379.    address.  A notification message will be forwarded to this email
  380.    address whenever an object maintained by this maintainer is added,
  381.    changed or deleted.
  382.  
  383.    The descr attribute is a short, free-form textual description of the
  384.    object.  The tech-c attribute is a technical contact NIC handle.
  385.    This is someone to be contacted for technical problems such as
  386.    misconfiguration.  The admin-c attribute is an administrative contact
  387.    NIC handle.  The remarks attribute is a free text explanation or
  388.    clarification.  The notify attribute is an email address to which
  389.    notifications of changes to this object should be sent.  The mnt-by
  390.    attribute is a list of mntner object names.  The authorization for
  391.  
  392.  
  393.  
  394. Alaettinoglu, et. al.       Standards Track                     [Page 7]
  395.  
  396. RFC 2280                          RPSL                      January 1998
  397.  
  398.  
  399.    changes to this object is governed by any of the maintainer objects
  400.    referenced.  The changed attribute documents who last changed this
  401.    object, and when this change was made.  Its syntax has the following
  402.    form:
  403.  
  404.       changed: <email-address> <YYYYMMDD>
  405.  
  406.       E.g.
  407.       changed: johndoe@terabit-labs.nn 19900401
  408.  
  409.    The <email-address> identifies the person who made the last change.
  410.    <YYYYMMDD> is the date of the change.  The source attribute specifies
  411.    the registry where the object is registered.  Figure 2 shows an
  412.    example mntner object.  In the example, UNIX crypt format password
  413.    authentication is used.
  414.  
  415.       mntner:      RIPE-NCC-MNT
  416.       descr:       RIPE-NCC Maintainer
  417.       admin-c:     DK58
  418.       tech-c:      OPS4-RIPE
  419.       upd-to:      ops@ripe.net
  420.       mnt-nfy:     ops-fyi@ripe.net
  421.       auth:        CRYPT-PW lz1A7/JnfkTtI
  422.       mnt-by:      RIPE-NCC-MNT
  423.       changed:     ripe-dbm@ripe.net 19970820
  424.       source:      RIPE
  425.  
  426.                        Figure 2:  An example mntner object.
  427.  
  428.    The descr, tech-c, admin-c, remarks, notify, mnt-by, changed and
  429.    source attributes are attributes of all RPSL classes.  Their syntax,
  430.    semantics, and mandatory, optional, multi-valued, or single-valued
  431.    status are the same for for all RPSL classes.  We do not further
  432.    discuss them in other sections.
  433.  
  434. 3.2 person Class
  435.  
  436.    A person class is used to describe information about people.  Even
  437.    though it does not describe routing policy, we still describe it here
  438.    briefly since many policy objects make reference to person objects.
  439.    The person class was first described in [14].
  440.  
  441.    The attributes of the person class are shown in Figure 3.  The person
  442.    attribute is the full name of the person.  The phone and the fax-no
  443.    attributes have the following syntax:
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Alaettinoglu, et. al.       Standards Track                     [Page 8]
  451.  
  452. RFC 2280                          RPSL                      January 1998
  453.  
  454.  
  455. Attribute  Value                    Type
  456. person     <free-form>              mandatory, single-valued
  457. nic-hdl    <nic-handle>             mandatory, single-valued, class key
  458. address    <free-form>              mandatory, multi-valued
  459. phone      see description in text  mandatory, multi-valued
  460. fax-no     same as phone            optional, multi-valued
  461. e-mail     <email-address>          mandatory, multi-valued
  462.  
  463.  
  464.                      Figure 3:  person Class Attributes
  465.  
  466.          phone: +<country-code> <city> <subscriber> [ext. <extension>]
  467.  
  468.       E.g.:
  469.          phone: +31 20 12334676
  470.          phone: +44 123 987654 ext. 4711
  471.  
  472.  
  473.    Figure 4 shows an example person object.
  474.  
  475.  
  476.       person:      Daniel Karrenberg
  477.       address:     RIPE Network Coordination Centre (NCC)
  478.       address:     Singel 258
  479.       address:     NL-1016 AB  Amsterdam
  480.       address:     Netherlands
  481.       phone:       +31 20 535 4444
  482.       fax-no:      +31 20 535 4445
  483.       e-mail:      Daniel.Karrenberg@ripe.net
  484.       nic-hdl:     DK58
  485.       changed:     Daniel.Karrenberg@ripe.net 19970616
  486.       source:      RIPE
  487.  
  488.  
  489.                        Figure 4:  An example person object.
  490.  
  491. 3.3 role Class
  492.  
  493.    The role class is similar to the person object.  However, instead of
  494.    describing a human being, it describes a role performed by one or
  495.    more human beings.  Examples include help desks, network monitoring
  496.    centers, system administrators, etc.  Role object is particularly
  497.    useful since often a person performing a role may change, however the
  498.    role itself remains.
  499.  
  500.    The attributes of the role class are shown in Figure 5.  The nic-hdl
  501.    attributes of the person and role classes share the same name space.
  502.    The
  503.  
  504.  
  505.  
  506. Alaettinoglu, et. al.       Standards Track                     [Page 9]
  507.  
  508. RFC 2280                          RPSL                      January 1998
  509.  
  510.  
  511.  Attribute  Value                    Type
  512.  role       <free-form>              mandatory, single-valued
  513.  nic-hdl    <nic-handle>             mandatory, single-valued, class key
  514.  trouble    <free-form>              optional, multi-valued
  515.  address    <free-form>              mandatory, multi-valued
  516.  phone      see description in text  mandatory, multi-valued
  517.  fax-no     same as phone            optional, multi-valued
  518.  e-mail     <email-address>          mandatory, multi-valued
  519.  
  520.  
  521.                       Figure 5:  role Class Attributes
  522.  
  523.    NIC handle of a role object cannot be used in an admin-c field.  The
  524.    trouble attribute of role object may contain additional contact
  525.    information to be used when a problem arises in any object that
  526.    references this role object.  Figure 6 shows an example role object.
  527.  
  528.       role:        RIPE NCC Operations
  529.       address:     Singel 258
  530.       address:     1016 AB Amsterdam
  531.       address:     The Netherlands
  532.       phone:       +31 20 535 4444
  533.       fax-no:      +31 20 545 4445
  534.       e-mail:      ops@ripe.net
  535.       admin-c:     CO19-RIPE
  536.       tech-c:      RW488-RIPE
  537.       tech-c:      JLSD1-RIPE
  538.       nic-hdl:     OPS4-RIPE
  539.       notify:      ops@ripe.net
  540.       changed:     roderik@ripe.net 19970926
  541.       source:      RIPE
  542.  
  543.  
  544.                         Figure 6:  An example role object.
  545.  
  546. 4 route Class
  547.  
  548.    Each interAS route (also referred to as an interdomain route)
  549.    originated by an AS is specified using a route object.  The
  550.    attributes of the route class are shown in Figure 7.  The route
  551.    attribute is the address prefix of the route and the origin attribute
  552.    is the AS number of the AS that originates the route into the interAS
  553.    routing system.  The route and origin attribute pair is the class
  554.    key.
  555.  
  556.    Figure 8 shows examples of four route objects (we do not include
  557.    contact.
  558.  
  559.  
  560.  
  561.  
  562. Alaettinoglu, et. al.       Standards Track                    [Page 10]
  563.  
  564. RFC 2280                          RPSL                      January 1998
  565.  
  566.  
  567. Attribute     Value                      Type
  568. route         <address-prefix>           mandatory, single-valued,
  569.                                          class key
  570. origin        <as-number>                mandatory, single-valued,
  571.                                          class key
  572. withdrawn     <date>                     optional, single-valued
  573. member-of     list of <route-set-names>  optional, single-valued
  574.               see Section 5
  575. inject        see Section 8              optional, multi-valued
  576. components    see Section 8              optional, single-valued
  577. aggr-bndry    see Section 8              optional, single-valued
  578. aggr-mtd      see Section 8              optional, single-valued
  579. export-comps  see Section 8              optional, single-valued
  580. holes         see Section 8              optional, single-valued
  581.  
  582.  
  583.                      Figure 7:  route Class Attributes
  584.  
  585.    attributes such as admin-c, tech-c for brevity).  Note that the last
  586.    two route objects have the same address prefix, namely 128.8.0.0/16.
  587.    However, they are different route objects since they are originated
  588.    by different ASes (i.e. they have different keys).
  589.  
  590.       route: 128.9.0.0/16
  591.       origin: AS226
  592.  
  593.       route: 128.99.0.0/16
  594.       origin: AS226
  595.  
  596.       route: 128.8.0.0/16
  597.       origin: AS1
  598.  
  599.       route: 128.8.0.0/16
  600.       origin: AS2
  601.       withdrawn: 19960624
  602.  
  603.  
  604.                          Figure 8:  Route Objects
  605.  
  606.    The withdrawn attribute, if present, signifies that the originator AS
  607.    no longer originates this address prefix in the Internet.  Its value
  608.    is a date indicating the date of withdrawal.  In Figure 8, the last
  609.    route object is withdrawn (i.e. no longer originated by AS2) on June
  610.    24, 1996.
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Alaettinoglu, et. al.       Standards Track                    [Page 11]
  619.  
  620. RFC 2280                          RPSL                      January 1998
  621.  
  622.  
  623. 5 Set Classes
  624.  
  625.    To specify policies, it is often useful to define sets of objects.
  626.    For this purpose we define two classes: route-set and as-set.  These
  627.    classes define a named set.  The members of these sets can be
  628.    specified by either explicitly listing them in the set object's
  629.    definition, or implicitly by having route and aut-num objects refer
  630.    to the set names, or a combination of both methods.
  631.  
  632. 5.1 route-set Class
  633.  
  634.    The attributes of the route-set class are shown in Figure 9.  The
  635.    route-set attribute defines the name of the set.  It is an RPSL name
  636.    that starts with "rs-".  The members attribute lists the members of
  637.    the set.  The members attribute is a list of address prefixes or
  638.    other route-set names.  Note that, the route-set class is a set of
  639.    route prefixes, not of RPSL route objects.
  640.  
  641.    Attribute    Value                          Type
  642.    route-set    <object-name>                  mandatory, single-valued,
  643.                                                class key
  644.    members      list of <address-prefixes> or  optional, single-valued
  645.                 <route-set-names>
  646.    mbrs-by-ref  list of <mntner-names>         optional, single-valued
  647.  
  648.  
  649.                    Figure 9:  route-set Class Attributes
  650.  
  651.    Figure 10 presents some example route-set objects.  The set rs-foo
  652.    contains two address prefixes, namely 128.9.0.0/16 and 128.9.0.0/16.
  653.    The set rs-bar contains the members of the set rs-foo and the address
  654.    prefix 128.7.0.0/16.  The set rs-empty contains no members.
  655.  
  656.       route-set: rs-foo
  657.       members: 128.9.0.0/16, 128.9.0.0/24
  658.  
  659.       route-set: rs-bar
  660.       members: 128.7.0.0/16, rs-foo
  661.  
  662.       route-set: rs-empty
  663.  
  664.  
  665.                        Figure 10:  route-set Objects
  666.  
  667.    An address prefix or a route-set name in a members attribute can be
  668.    optionally followed by a range operator.  For example, the following
  669.    set
  670.  
  671.  
  672.  
  673.  
  674. Alaettinoglu, et. al.       Standards Track                    [Page 12]
  675.  
  676. RFC 2280                          RPSL                      January 1998
  677.  
  678.  
  679.       route-set: rs-bar
  680.       members: 5.0.0.0/8^+, 30.0.0.0/8^24-32, rs-foo^+
  681.  
  682.    contains all the more specifics of 5.0.0.0/8 including 5.0.0.0/8, all
  683.    the more specifics of 30.0.0.0/8 which are of length 24 to 32 such as
  684.    30.9.9.96/28, and all the more specifics of address prefixes in route
  685.    set rs-foo.
  686.  
  687.    The mbrs-by-ref attribute is a list of maintainer names or the
  688.    keyword ANY.  If this attribute is used, the route set also includes
  689.    address prefixes whose route objects are registered by one of these
  690.    maintainers and whose member-of attribute refers to the name of this
  691.    route set.  If the value of a mbrs-by-ref attribute is ANY, any route
  692.    object referring to the route set name is a member.  If the mbrs-by-
  693.    ref attribute is missing, only the address prefixes listed in the
  694.    members attribute are members of the set.
  695.  
  696.       route-set: rs-foo
  697.       mbrs-by-ref: MNTR-ME, MNTR-YOU
  698.  
  699.       route-set: rs-bar
  700.       members: 128.7.0.0/16
  701.       mbrs-by-ref: MNTR-YOU
  702.  
  703.       route: 128.9.0.0/16
  704.       origin: AS1
  705.       member-of: rs-foo
  706.       mnt-by: MNTR-ME
  707.  
  708.       route: 128.8.0.0/16
  709.       origin: AS2
  710.       member-of: rs-foo, rs-bar
  711.       mnt-by: MNTR-YOU
  712.  
  713.  
  714.                       Figure 11:  route-set objects.
  715.  
  716.    Figure 11 presents example route-set objects that use the mbrs-by-ref
  717.    attribute.  The set rs-foo contains two address prefixes, namely
  718.    128.8.0.0/16 and 128.9.0.0/16 since the route objects for
  719.    128.8.0.0/16 and 128.9.0.0/16 refer to the set name rs-foo in their
  720.    member-of attribute.  The set rs-bar contains the address prefixes
  721.    128.7.0.0/16 and 128.8.0.0/16.  The route 128.7.0.0/16 is explicitly
  722.    listed in the members attribute of rs-bar, and the route object for
  723.    128.8.0.0/16 refer to the set name rs-bar in its member-of attribute.
  724.  
  725.    Note that, if an address prefix is listed in a members attribute of a
  726.    route set, it is a member of that route set.  The route object
  727.  
  728.  
  729.  
  730. Alaettinoglu, et. al.       Standards Track                    [Page 13]
  731.  
  732. RFC 2280                          RPSL                      January 1998
  733.  
  734.  
  735.    corresponding to this address prefix does not need to contain a
  736.    member-of attribute referring to this set name.  The member-of
  737.    attribute of the route class is an additional mechanism for
  738.    specifying the members indirectly.
  739.  
  740. 5.2 as-set Class
  741.  
  742.    The attributes of the as-set class are shown in Figure 12.  The as-
  743.    set attribute defines the name of the set.  It is an RPSL name that
  744.    starts with "as-".  The members attribute lists the members of the
  745.    set.  The members attribute is a list of AS numbers, or other as-set
  746.    names.
  747.  
  748.       Attribute    Value                    Type
  749.       as-set       <object-name>            mandatory, single-valued,
  750.                                             class key
  751.       members      list of <as-numbers> or  optional, single-valued
  752.                    <as-set-names>
  753.       mbrs-by-ref  list of <mntner-names>   optional, single-valued
  754.  
  755.  
  756.                     Figure 12:  as-set Class Attributes
  757.  
  758.    Figure 13 presents two as-set objects.  The set as-foo contains two
  759.    ASes, namely AS1 and AS2.  The set as-bar contains the members of the
  760.    set as-foo and AS3, that is it contains AS1, AS2, AS3.
  761.  
  762.     as-set: as-foo                      as-set: as-bar
  763.     members: AS1, AS2                   members: AS3, as-foo
  764.  
  765.  
  766.                     Figure 13:  as-set objects.
  767.  
  768.  
  769.    The mbrs-by-ref attribute is a list of maintainer names or the
  770.    keyword ANY.  If this attribute is used, the AS set also includes
  771.    ASes whose aut-num objects are registered by one of these maintainers
  772.    and whose member-of attribute refers to the name of this AS set.  If
  773.    the value of a mbrs-by-ref attribute is ANY, any AS object referring
  774.    to the AS set is a member of the set.  If the mbrs-by-ref attribute
  775.    is missing, only the ASes listed in the members attribute are members
  776.    of the set.
  777.  
  778.    Figure 14 presents an example as-set object that uses the mbrs-by-ref
  779.    attribute.  The set as-foo contains AS1, AS2 and AS3.  AS4 is not a
  780.    member of the set as-foo even though the aut-num object references
  781.    as-foo.  This is because MNTR-OTHER is not listed in the as-foo's
  782.    mbrs-by-ref attribute.
  783.  
  784.  
  785.  
  786. Alaettinoglu, et. al.       Standards Track                    [Page 14]
  787.  
  788. RFC 2280                          RPSL                      January 1998
  789.  
  790.  
  791.     as-set: as-foo
  792.     members: AS1, AS2
  793.     mbrs-by-ref: MNTR-ME
  794.  
  795.     aut-num: AS3                          aut-num: AS4
  796.     member-of: as-foo                     member-of: as-foo
  797.     mnt-by: MNTR-ME                       mnt-by: MNTR-OTHER
  798.  
  799.  
  800.                         Figure 14:  as-set objects.
  801.  
  802. 5.3 Predefined Set Objects
  803.  
  804.  
  805.    In a context that expects a route set (e.g.  members attribute of the
  806.    route-set class), an AS number ASx defines the set of routes that are
  807.    originated by ASx; and an as-set AS-X defines the set of routes that
  808.    are originated by the ASes in AS-X. A route p is said to be
  809.    originated by ASx if there is a route object for p with ASx as the
  810.    value of the origin attribute.  For example, in Figure 15, the route
  811.    set rs-special contains 128.9.0.0/16, routes of AS1 and AS2, and
  812.    routes of the ASes in AS set AS-FOO.
  813.  
  814.       route-set: rs-special
  815.       members: 128.9.0.0/16, AS1, AS2, AS-FOO
  816.  
  817.  
  818.          Figure 15:  Use of AS numbers and AS sets in route sets.
  819.  
  820.    The set rs-any contains all routes registered in IRR.  The set as-any
  821.    contains all ASes registered in IRR.
  822.  
  823. 5.4 Hierarchical Set Names
  824.  
  825.    Set names can be hierarchical.  A hierarchical set name is a sequence
  826.    of set names and AS numbers separated by colons ":".  For example,
  827.    the following names are valid: AS1:AS-CUSTOMERS, AS1:RS-EXCEPTIONS,
  828.    AS1:RS-EXPORT:AS2, RS-EXCEPTIONS:RS-BOGUS. All components of an
  829.    hierarchical set name which are not AS numbers should start with
  830.    "as-" or "rs-" for as sets and route sets respectively.
  831.  
  832.    A set object with name X1:...:Xn-1:Xn can only be created by the
  833.    maintainer of the object with name X1:...:Xn-1.  That is, only the
  834.    maintainer of AS1 can create a set with name AS1:AS-FOO; and only the
  835.    maintainer of AS1:AS-FOO can create a set with name AS1:AS-FOO:AS-
  836.    BAR.
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Alaettinoglu, et. al.       Standards Track                    [Page 15]
  843.  
  844. RFC 2280                          RPSL                      January 1998
  845.  
  846.  
  847.    The purpose of an hierarchical set name is to partition the set name
  848.    space so that the controllers of the set name X1 controls the whole
  849.    set name space under X1, i.e.  X1:...:Xn-1.  This is important since
  850.    anyone can create a set named AS-MCI-CUSTOMERS but only the people
  851.    created AS3561 can create AS3561:AS-CUSTOMERS. In the former, it is
  852.    not clear if the set AS-MCI-CUSTOMERS has any relationship with MCI.
  853.    In the latter, we can guarantee that AS3561:AS-CUSTOMERS and AS3561
  854.    are created by the same entity.
  855.  
  856. 6 aut-num Class
  857.  
  858.    ASes are specified using the aut-num class.  The attributes of the
  859.    aut-num class are shown in Figure 16.  The value of the aut-num
  860.    attribute is the AS number of the AS described by this object.  The
  861.    as-name attribute is a symbolic name (in RPSL name syntax) of the AS.
  862.    The import, export and default routing policies of the AS are
  863.    specified using import, export and default attributes respectively.
  864.  
  865.    Attribute  Value                  Type
  866.    aut-num    <as-number>            mandatory, single-valued, class key
  867.    as-name    <object-name>          mandatory, single-valued
  868.    member-of  list of <as-set-names> optional, single-valued
  869.    import     see Section 6.1        optional, multi valued
  870.    export     see Section 6.2        optional, multi valued
  871.    default    see Section 6.5        optional, multi valued
  872.  
  873.                     Figure 16:  aut-num Class Attributes
  874.  
  875. 6.1 import Attribute:  Import Policy Specification
  876.  
  877.    Figure 17 shows a typical interconnection of ASes that we will be
  878.    using in our examples throughout this section.  In this example
  879.    topology, there are three ASes, AS1, AS2, and AS3; two exchange
  880.    points, EX1 and EX2; and six routers.  Routers connected to the same
  881.    exchange point peer with each other, i.e. open a connection for
  882.    exchanging routing information.  Each router would export a subset of
  883.    the routes it has to its peer routers.  Peer routers would import a
  884.    subset of these routes.  A router while importing routes would set
  885.    some route attributes.  For example, AS1 can assign higher preference
  886.    values to the routes it imports from AS2 so that it prefers AS2 over
  887.    AS3.  While exporting routes, a router may also set some route
  888.    attributes in order to affect route selection by its peers.  For
  889.    example, AS2 may set the MULTI-EXIT-DISCRIMINATOR BGP attribute so
  890.    that AS1 prefers to use the router 9.9.9.2.  Most interAS policies
  891.    are specified by specifying what route subsets can be imported or
  892.    exported, and how the various BGP route attributes are set and used.
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Alaettinoglu, et. al.       Standards Track                    [Page 16]
  899.  
  900. RFC 2280                          RPSL                      January 1998
  901.  
  902.  
  903.      ----------------------                   ----------------------
  904.      |            7.7.7.1 |-------|   |-------| 7.7.7.2            |
  905.      |                    |     ========      |                    |
  906.      |   AS1              |      EX1  |-------| 7.7.7.3     AS2    |
  907.      |                    |                   |                    |
  908.      |            9.9.9.1 |------       ------| 9.9.9.2            |
  909.      ----------------------     |       |     ----------------------
  910.                                ===========
  911.                                    |    EX2
  912.      ----------------------        |
  913.      |            9.9.9.3 |---------
  914.      |                    |
  915.      |   AS3              |
  916.      ----------------------
  917.  
  918.    Figure 17: Example topology consisting of three ASes, AS1, AS2, and
  919.    AS3; two exchange points, EX1 and EX2; and six routers.
  920.  
  921.    In RPSL, an import policy is divided into import policy expressions.
  922.    Each import policy expression is specified using an import attribute.
  923.    The import attribute has the following syntax (we will extend this
  924.    syntax later in Sections 6.3 and 6.6):
  925.  
  926.        import: from <peering-1> [action <action-1>]
  927.                . . .
  928.                from <peering-N> [action <action-N>]
  929.                accept <filter>
  930.  
  931.    The action specification is optional.  The semantics of an import
  932.    attribute is as follows: the set of routes that are matched by
  933.    <filter> are imported from all the peers in <peerings>; while
  934.    importing routes at <peering-M>, <action-M> is executed.
  935.  
  936.  
  937.      E.g.
  938.        aut-num: AS1
  939.        import: from AS2 action pref = 1; accept { 128.9.0.0/16 }
  940.  
  941.    This example states that the route 128.9.0.0/16 is accepted from AS2
  942.    with preference 1.  In the next few subsections, we will describe how
  943.    peerings, actions and filters are specified.
  944.  
  945. 6.1.1 Peering Specification
  946.  
  947.    Our example above used an AS number to specify peerings.  The
  948.    peerings can be specified at different granularities.  The syntax of
  949.    a peering specification has two forms.  The first one is as follows:
  950.  
  951.  
  952.  
  953.  
  954. Alaettinoglu, et. al.       Standards Track                    [Page 17]
  955.  
  956. RFC 2280                          RPSL                      January 1998
  957.  
  958.  
  959.                <peer-as> [<peer-router>] [at <local-router>]
  960.  
  961.    where <local-router> and <peer-router> are IP addresses of routers,
  962.    <peer-as> is an AS number.  <peer-as> must be the AS number of
  963.    <peer-router>.  Both <local-router> and <peer-router> are optional.
  964.    If both <local-router> and <peer-router> are specified, this peering
  965.    specification identifies only the peering between these two routers.
  966.    If only <local-router> is specified, this peering specification
  967.    identifies all the peerings between <local-router> and any of its
  968.    peer routers in <peer-as>.  If only <peer-router> is specified, this
  969.    peering specification identifies all the peerings between any router
  970.    in the local AS and <peer-router>.  If neither <local-router> nor
  971.    <peer-router> is specified, this peering specification identifies all
  972.    the peerings between any router in the local AS and any router in
  973.    <peer-as>.
  974.  
  975.    We next give examples.  Consider the topology of Figure 17 where
  976.    7.7.7.1, 7.7.7.2 and 7.7.7.3 peer with each other; 9.9.9.1, 9.9.9.2
  977.    and 9.9.9.3 peer with each other.  In the following example 7.7.7.1
  978.    imports 128.9.0.0/16 from 7.7.7.2.
  979.  
  980.     (1) aut-num: AS1
  981.         import: from AS2 7.7.7.2 at 7.7.7.1 accept { 128.9.0.0/16 }
  982.  
  983.    In the following example 7.7.7.1 imports 128.9.0.0/16 from 7.7.7.2
  984.    and 7.7.7.3.
  985.  
  986.     (2) aut-num: AS1
  987.         import: from AS2 at 7.7.7.1 accept { 128.9.0.0/16 }
  988.  
  989.    In the following example 7.7.7.1 imports 128.9.0.0/16 from 7.7.7.2
  990.    and 7.7.7.3, and 9.9.9.1 imports 128.9.0.0/16 from 9.9.9.2.
  991.  
  992.     (3) aut-num: AS1
  993.         import: from AS2 accept { 128.9.0.0/16 }
  994.  
  995.    The second form of <peering> specification has the following syntax:
  996.  
  997.         <as-expression> [at <router-expression>]
  998.  
  999.    where <as-expression> is an expression over AS numbers and sets using
  1000.    operators AND, OR, and NOT, and <router-expression> is an expression
  1001.    over router IP addresses and DNS names using operators AND, OR, and
  1002.    NOT. The DNS name can only be used if there is an inet-rtr object for
  1003.    that name that binds the name to IP addresses.  This form identifies
  1004.    all the peerings between any local router in <router-expression> to
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Alaettinoglu, et. al.       Standards Track                    [Page 18]
  1011.  
  1012. RFC 2280                          RPSL                      January 1998
  1013.  
  1014.  
  1015.    any of their peer routers in the ASes in <as-expression>.  If
  1016.    <router-expression> is not specified, it defaults to all routers of
  1017.    the local AS.
  1018.  
  1019.    In the following example 9.9.9.1 imports 128.9.0.0/16 from 9.9.9.2
  1020.    and 9.9.9.3.
  1021.  
  1022.     (4) as-set: AS-FOO
  1023.         members: AS2, AS3
  1024.         aut-num: AS1
  1025.         import: from AS-FOO at 9.9.9.1 accept { 128.9.0.0/16 }
  1026.  
  1027.    In the following example 9.9.9.1 imports 128.9.0.0/16 from 9.9.9.2
  1028.    and 9.9.9.3, and 7.7.7.1 imports 128.9.0.0/16 from 7.7.7.2 and
  1029.    7.7.7.3.
  1030.  
  1031.     (5) aut-num: AS1
  1032.         import: from AS-FOO accept { 128.9.0.0/16 }
  1033.  
  1034.    In the following example AS1 imports 128.9.0.0/16 from AS3 at router
  1035.    9.9.9.1
  1036.  
  1037.     (6) aut-num: AS1
  1038.         import: from AS-FOO and not AS2
  1039.                 at not 7.7.7.1
  1040.                 accept { 128.9.0.0/16 }
  1041.  
  1042.    This is because  "AS-FOO and not  AS2" equals AS3  and "not 7.7.7.1"
  1043.    equals 9.9.9.1.
  1044.  
  1045. 6.1.2 Action Specification
  1046.  
  1047.    Policy actions in RPSL either set or modify route attributes, such as
  1048.    assigning a preference to a route, adding a BGP community to the BGP
  1049.    community path attribute, or setting the MULTI-EXIT-DISCRIMINATOR
  1050.    attribute.  Policy actions can also instruct routers to perform
  1051.    special operations, such as route flap damping.
  1052.  
  1053.    The routing policy attributes whose values can be modified in policy
  1054.    actions are specified in the RPSL dictionary.  Please refer to
  1055.    Section 7 for a list of these attributes.  Each action in RPSL is
  1056.    terminated by the character ';'.  It is possible to form composite
  1057.    policy actions by listing them one after the other.  In a composite
  1058.    policy action, the actions are executed left to right.  For example,
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Alaettinoglu, et. al.       Standards Track                    [Page 19]
  1067.  
  1068. RFC 2280                          RPSL                      January 1998
  1069.  
  1070.  
  1071. aut-num: AS1
  1072. import: from AS2
  1073.         action pref = 10; med = 0; community.append(10250, {3561,10});
  1074.         accept { 128.9.0.0/16 }
  1075.  
  1076.    sets pref to 10, med to 0, and then appends 10250 and {3561,10} to
  1077.    the community path attribute.
  1078.  
  1079. 6.1.3 Filter Specification
  1080.  
  1081.    A policy filter is a logical expression which when applied to a set
  1082.    of routes returns a subset of these routes.  We say that the policy
  1083.    filter matches the subset returned.  The policy filter can match
  1084.    routes using any path attribute, such as the destination address
  1085.    prefix (or NLRI), AS-path, or community attributes.
  1086.  
  1087.    The policy filters can be composite by using the operators AND, OR,
  1088.    and NOT.  The following policy filters can be used to select a subset
  1089.    of routes:
  1090.  
  1091.    ANY The filter-keyword ANY matches all routes.
  1092.  
  1093.    Address-Prefix Set This is an explicit list of address prefixes
  1094.    enclosed in braces '{' and '}'.  The policy filter matches the set of
  1095.    routes whose destination address-prefix is in the set.  For example:
  1096.  
  1097.         { 0.0.0.0/0 }
  1098.         { 128.9.0.0/16, 128.8.0.0/16, 128.7.128.0/17, 5.0.0.0/8 }
  1099.         { }
  1100.  
  1101.    An address prefix can be optionally followed by a range operator
  1102.    (i.e. '^-', '^+', '^n', or '^n-m').  For example, the set
  1103.  
  1104.      { 5.0.0.0/8^+, 128.9.0.0/16^-, 30.0.0.0/8^16, 30.0.0.0/8^24-32 }
  1105.  
  1106.    contains all the more specifics of 5.0.0.0/8 including 5.0.0.0/8, all
  1107.    the more specifics of 128.9.0.0/16 excluding 128.9.0.0/16, all the
  1108.    more specifics of 30.0.0.0/8 which are of length 16 such as
  1109.    30.9.0.0/16, and all the more specifics of 30.0.0.0/8 which are of
  1110.    length 24 to 32 such as 30.9.9.96/28.
  1111.  
  1112.    Route Set Name A route set name matches the set of routes that are
  1113.    members of the set.  A route set name may be a name of a route-set
  1114.    object, an AS number, or a name of an as-set object (AS numbers and
  1115.    as-set names implicitly define route sets; please see Section 5.3).
  1116.    For example:
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Alaettinoglu, et. al.       Standards Track                    [Page 20]
  1123.  
  1124. RFC 2280                          RPSL                      January 1998
  1125.  
  1126.  
  1127.          aut-num: AS1
  1128.          import: from AS2 action pref = 1; accept AS2
  1129.          import: from AS2 action pref = 1; accept AS-FOO
  1130.          import: from AS2 action pref = 1; accept RS-FOO
  1131.  
  1132.    The keyword PeerAS can be used instead of the AS number of the peer
  1133.    AS.  PeerAS is particularly useful when the peering is specified
  1134.    using an AS expression.  For example:
  1135.  
  1136.          as-set: AS-FOO
  1137.          members: AS2, AS3
  1138.  
  1139.          aut-num: AS1
  1140.          import: from AS-FOO action pref = 1; accept PeerAS
  1141.  
  1142.    is same as:
  1143.  
  1144.          aut-num: AS1
  1145.          import: from AS2 action pref = 1; accept AS2
  1146.          import: from AS3 action pref = 1; accept AS3
  1147.  
  1148.    A route set name can also be followed by one of the operators '^-',
  1149.    '^+', '^n' or '^n-m'.  These operators are distributive over the
  1150.    route sets.  For example, { 5.0.0.0/8, 6.0.0.0/8 }^+ equals {
  1151.    5.0.0.0/8^+, 6.0.0.0/8^+ }, and AS1^- equals all the exclusive more
  1152.    specifics of routes originated by AS1.
  1153.  
  1154.    AS Path Regular Expressions An AS-path regular expression can be used
  1155.    as a policy filter by enclosing the expression in `<' and `>'.  An
  1156.    AS-path policy filter matches the set of routes which traverses a
  1157.    sequence of ASes matched by the AS-path regular expression.  A router
  1158.    can check this using the AS_PATH attribute in the Border Gateway
  1159.    Protocol [18], or the RD_PATH attribute in the Inter-Domain Routing
  1160.    Protocol[17].
  1161.  
  1162.    AS-path Regular Expressions are POSIX compliant regular expressions
  1163.    over the alphabet of AS numbers.  The regular expression constructs
  1164.    are as follows:
  1165.  
  1166.     ASN where ASN is an AS number.  ASN matches the AS-path
  1167.                 that is of length 1 and contains the corresponding AS
  1168.                 number (e.g.  AS-path regular expression AS1 matches the
  1169.                 AS-path "1").
  1170.  
  1171.                 The keyword PeerAS can be used instead of the AS number
  1172.                 of the peer AS.
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Alaettinoglu, et. al.       Standards Track                    [Page 21]
  1179.  
  1180. RFC 2280                          RPSL                      January 1998
  1181.  
  1182.  
  1183.     AS-set where AS-set is an AS set name.  AS-set matches the AS-paths
  1184.                 that is matched by one of the ASes in the AS-set.
  1185.  
  1186.     .        matches the AS-paths matched by any AS number.
  1187.  
  1188.     [...]    is an AS number set.   It matches the AS-paths  matched by
  1189.                 the AS numbers listed between the brackets.  The AS
  1190.                 numbers in the set are separated by white space
  1191.                 characters.  If a `-' is used between two AS numbers in
  1192.                 this set, all AS numbers between the two AS numbers are
  1193.                 included in the set.  If an as-set name is listed, all
  1194.                 AS numbers in the as-set are included.
  1195.  
  1196.     [^...]   is a complemented AS number set.  It matches any AS-path
  1197.                 which is not matched by the AS numbers in the set.
  1198.  
  1199.     ^        Matches the empty string at the beginning of an AS-path.
  1200.  
  1201.     $        Matches the empty string at the end of an AS-path.
  1202.  
  1203.    We next list the regular expression operators in the decreasing order
  1204.    of evaluation.  These operators are left associative, i.e. performed
  1205.    left to right.
  1206.  
  1207.    Unary postfix operators * + ?  {m} {m,n} {m,}
  1208.                 For a regular expression A, A* matches zero or more
  1209.                 occurrences of A; A+ matches one or more occurrences of
  1210.                 A; A?  matches zero or one occurrence of A; A{m} matches
  1211.                 m occurrence of A; A{m,n} matches m to n occurrence of
  1212.                 A; A{m,} matches m or more occurrence of A. For example,
  1213.                 [AS1 AS2]{2} matches AS1 AS1, AS1 AS2, AS2 AS1, and AS2
  1214.                 AS2.
  1215.  
  1216.    Unary postfix operators ~* ~+ ~{m} ~{m,n} ~{m,}
  1217.                 These operators have similar functionality as the
  1218.                 corresponding operators listed above, but all
  1219.                 occurrences of the regular expression has to match the
  1220.                 same pattern.  For example, [AS1 AS2]~{2} matches AS1
  1221.                 AS1 and AS2 AS2, but it does not match AS1 AS2 and AS2
  1222.                 AS1.
  1223.  
  1224.    Binary catenation operator
  1225.                 This is an implicit operator and exists between two
  1226.                 regular expressions A and B when no other explicit
  1227.                 operator is specified.  The resulting expression A B
  1228.                 matches an AS-path if A matches some prefix of the AS-
  1229.                 path and B matches the rest of the AS-path.
  1230.  
  1231.  
  1232.  
  1233.  
  1234. Alaettinoglu, et. al.       Standards Track                    [Page 22]
  1235.  
  1236. RFC 2280                          RPSL                      January 1998
  1237.  
  1238.  
  1239.    Binary alternative (or) operator |
  1240.                 For a regular expressions A and B, A | B matches any
  1241.                 AS-path that is matched by A or B.
  1242.  
  1243.    Parenthesis can be used to override the default order of evaluation.
  1244.    White spaces can be used to increase readability.
  1245.  
  1246.    The following are examples of AS-path filters:
  1247.  
  1248.       <AS3>
  1249.       <^AS1>
  1250.       <AS2$>
  1251.       <^AS1 AS2 AS3$>
  1252.       <^AS1 .* AS2$>.
  1253.  
  1254.    The first example matches any route whose AS-path contains AS3, the
  1255.    second matches routes whose AS-path starts with AS1, the third
  1256.    matches routes whose AS-path ends with AS2, the fourth matches routes
  1257.    whose AS-path is exactly "1 2 3", and the fifth matches routes whose
  1258.    AS-path starts with AS1 and ends in AS2 with any number of AS numbers
  1259.    in between.
  1260.  
  1261.    Composite Policy Filters The following operators (in decreasing order
  1262.    of evaluation) can be used to form composite policy filters:
  1263.  
  1264.    NOT Given a policy filter x, NOT x matches the set of routes that are
  1265.        not matched by x.  That is it is the negation of policy filter x.
  1266.  
  1267.    AND Given two policy filters x and y, x AND y matches the
  1268.        intersection of the routes that are matched by x and that are
  1269.        matched by y.
  1270.  
  1271.    OR Given two policy filters x and y, x OR y matches the union of
  1272.        the routes that are matched by x and that are matched by y.
  1273.  
  1274.    Note that an OR operator can be implicit, that is `x y' is equivalent
  1275.    to `x OR y'.
  1276.  
  1277.      E.g.
  1278.  
  1279.        NOT {128.9.0.0/16, 128.8.0.0/16}
  1280.        AS226 AS227 OR AS228
  1281.        AS226 AND NOT {128.9.0.0/16}
  1282.        AS226 AND {0.0.0.0/0^0-18}
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Alaettinoglu, et. al.       Standards Track                    [Page 23]
  1291.  
  1292. RFC 2280                          RPSL                      January 1998
  1293.  
  1294.  
  1295.    The first example matches any route except 128.9.0.0/16 and
  1296.    128.8.0.0/16.  The second example matches the routes of AS226, AS227
  1297.    and AS228.  The third example matches the routes of AS226 except
  1298.    128.9.0.0/16.  The fourth example matches the routes of AS226 whose
  1299.    length are not longer than 18.
  1300.  
  1301.    Routing Policy Attributes Policy filters can also use the values of
  1302.    other attributes for comparison.  The attributes whose values can be
  1303.    used in policy filters are specified in the RPSL dictionary.  Please
  1304.    refer to Section 7 for details.  An example using the the BGP
  1305.    community attribute is shown below:
  1306.  
  1307.        aut-num: AS1
  1308.        export: to AS2 announce AS1 AND NOT community.contains(NO_EXPORT)
  1309.  
  1310.    Filters using the routing policy attributes defined in the dictionary
  1311.    are evaluated before evaluating the operators AND, OR and NOT.
  1312.  
  1313. 6.1.4 Example Policy Expressions
  1314.  
  1315.     aut-num: AS1
  1316.     import: from AS2 action pref = 1;
  1317.             from AS3 action pref = 2;
  1318.             accept AS4
  1319.  
  1320.    The above example states that AS4's routes are accepted from AS2 with
  1321.    preference 1, and from AS3 with preference 2 (routes with lower
  1322.    integer preference values are preferred over routes with higher
  1323.    integer preference values).
  1324.  
  1325.     aut-num: AS1
  1326.     import: from AS2 7.7.7.2 at 7.7.7.1 action pref = 1;
  1327.             from AS2                    action pref = 2;
  1328.             accept AS4
  1329.  
  1330.    The above example states that AS4's routes are accepted from AS2 on
  1331.    peering 7.7.7.1-7.7.7.2 with preference 1, and on any other peering
  1332.    with AS2 with preference 2.
  1333.  
  1334. 6.2 export Attribute: Export Policy Specification
  1335.  
  1336.    Similarly, an export policy expression is specified using an export
  1337.    attribute.  The export attribute has the following syntax:
  1338.  
  1339.        export: to <peering-1> [action <action-1>]
  1340.                . . .
  1341.                to <peering-N> [action <action-N>]
  1342.                announce <filter>
  1343.  
  1344.  
  1345.  
  1346. Alaettinoglu, et. al.       Standards Track                    [Page 24]
  1347.  
  1348. RFC 2280                          RPSL                      January 1998
  1349.  
  1350.  
  1351.    The action specification is optional.  The semantics of an export
  1352.    attribute is as follows: the set of routes that are matched by
  1353.    <filter> are exported to all the peers specified in <peerings>; while
  1354.    exporting routes at <peering-M>, <action-M> is executed.
  1355.  
  1356.      E.g.
  1357.        aut-num: AS1
  1358.        export: to AS2 action med = 5; community .= 70;
  1359.                announce AS4
  1360.  
  1361.    In this example, AS4's routes are announced to AS2 with the med
  1362.    attribute's value set to 5 and community 70 added to the community
  1363.    list.
  1364.  
  1365.    Example:
  1366.  
  1367.        aut-num: AS1
  1368.        export: to AS-FOO announce ANY
  1369.  
  1370.    In this example, AS1 announces all of its routes to the ASes in the
  1371.    set AS-FOO.
  1372.  
  1373. 6.3 Other Routing Protocols, Multi-Protocol Routing Protocols, and
  1374.        Injecting Routes Between Protocols
  1375.  
  1376.    The more complete syntax of the import and export attributes are as
  1377.    follows:
  1378.  
  1379.        import: [protocol <protocol-1>] [into <protocol-2>]
  1380.                from <peering-1> [action <action-1>]
  1381.                . . .
  1382.                from <peering-N> [action <action-N>]
  1383.                accept <filter>
  1384.        export: [protocol <protocol-1>] [into <protocol-2>]
  1385.                to <peering-1> [action <action-1>]
  1386.                . . .
  1387.                to <peering-N> [action <action-N>]
  1388.                announce <filter>
  1389.  
  1390.    Where the optional protocol specifications can be used for specifying
  1391.    policies for other routing protocols, or for injecting routes of one
  1392.    protocol into another protocol, or for multi-protocol routing
  1393.    policies.  The valid protocol names are defined in the dictionary.
  1394.    The <protocol-1> is the name of the protocol whose routes are being
  1395.    exchanged.  The <protocol-2> is the name of the protocol which is
  1396.    receiving these routes.  Both <protocol-1> and <protocol-2> default
  1397.    to the Internet Exterior Gateway Protocol, currently BGP.
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Alaettinoglu, et. al.       Standards Track                    [Page 25]
  1403.  
  1404. RFC 2280                          RPSL                      January 1998
  1405.  
  1406.  
  1407.    In the following example, all interAS routes are injected into RIP.
  1408.  
  1409.     aut-num: AS1
  1410.     import: from AS2 accept AS2
  1411.     export: protocol BGP4 into RIP
  1412.             to AS1 announce ANY
  1413.  
  1414.    In the following example, AS1 accepts AS2's routes including any more
  1415.    specifics of AS2's routes, but does not inject these extra more
  1416.    specific routes into OSPF.
  1417.  
  1418.     aut-num: AS1
  1419.     import: from AS2 accept AS2^+
  1420.     export: protocol BGP4 into OSPF
  1421.             to AS1 announce AS2
  1422.  
  1423.    In the following example, AS1 injects its static routes (routes which
  1424.    are members of the set AS1:RS-STATIC-ROUTES) to the interAS routing
  1425.    protocol and appends AS1 twice to their AS paths.
  1426.  
  1427.     aut-num: AS1
  1428.     import: protocol STATIC into BGP4
  1429.             from AS1 action aspath.prepend(AS1, AS1);
  1430.             accept AS1:RS-STATIC-ROUTES
  1431.  
  1432.    In the following example, AS1 imports different set of unicast routes
  1433.    for multicast reverse path forwarding from AS2:
  1434.  
  1435.     aut-num: AS1
  1436.     import: from AS2 accept AS2
  1437.     import: protocol IDMR
  1438.             from AS2 accept AS2:RS-RPF-ROUTES
  1439.  
  1440. 6.4 Ambiguity Resolution
  1441.  
  1442.    It is possible that the same peering can be covered by more that one
  1443.    peering specification in a policy expression.  For example:
  1444.  
  1445.     aut-num: AS1
  1446.     import: from AS2 7.7.7.2 at 7.7.7.1 action pref = 2;
  1447.             from AS2 7.7.7.2 at 7.7.7.1 action pref = 1;
  1448.             accept AS4
  1449.  
  1450.    This is not an error, though definitely not desirable.  To break the
  1451.    ambiguity, the action corresponding to the first peering
  1452.    specification is used.  That is the routes are accepted with
  1453.    preference 2.  We call this rule as the specification-order rule.
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Alaettinoglu, et. al.       Standards Track                    [Page 26]
  1459.  
  1460. RFC 2280                          RPSL                      January 1998
  1461.  
  1462.  
  1463.    Consider the example:
  1464.  
  1465.     aut-num: AS1
  1466.     import: from AS2                    action pref = 2;
  1467.             from AS2 7.7.7.2 at 7.7.7.1 action pref = 1; dpa = 5;
  1468.             accept AS4
  1469.  
  1470.    where both peering specifications cover the peering 7.7.7.1-7.7.7.2,
  1471.    though the second one covers it more specifically.  The specification
  1472.    order rule still applies, and only the action "pref = 2" is executed.
  1473.    In fact, the second peering-action pair has no use since the first
  1474.    peering-action pair always covers it.  If the intended policy was to
  1475.    accept these routes with preference 1 on this particular peering and
  1476.    with preference 2 in all other peerings, the user should have
  1477.    specified:
  1478.  
  1479.     aut-num: AS1
  1480.     import: from AS2 7.7.7.2 at 7.7.7.1 action pref = 1; dpa = 5;
  1481.             from AS2                    action pref = 2;
  1482.             accept AS4
  1483.  
  1484.    It is also possible that more than one policy expression can cover
  1485.    the same set of routes for the same peering.  For example:
  1486.  
  1487.     aut-num: AS1
  1488.     import: from AS2 action pref = 2; accept AS4
  1489.     import: from AS2 action pref = 1; accept AS4
  1490.  
  1491.    In this case, the specification-order rule is still used.  That is,
  1492.    AS4's routes are accepted from AS2 with preference 2.  If the filters
  1493.    were overlapping but not exactly the same:
  1494.  
  1495.     aut-num: AS1
  1496.     import: from AS2 action pref = 2; accept AS4
  1497.     import: from AS2 action pref = 1; accept AS4 OR AS5
  1498.  
  1499.    the AS4's routes are accepted from AS2 with preference 2 and however
  1500.    AS5's routes are also accepted, but with preference 1.
  1501.  
  1502.    We next give the general specification order rule for the benefit of
  1503.    the RPSL implementors.  Consider two policy expressions:
  1504.  
  1505.     aut-num: AS1
  1506.     import: from peerings-1 action action-1 accept filter-1
  1507.     import: from peerings-2 action action-2 accept filter-2
  1508.  
  1509.    The above policy expressions are equivalent to the following three
  1510.    expressions where there is no ambiguity:
  1511.  
  1512.  
  1513.  
  1514. Alaettinoglu, et. al.       Standards Track                    [Page 27]
  1515.  
  1516. RFC 2280                          RPSL                      January 1998
  1517.  
  1518.  
  1519. aut-num: AS1
  1520. import: from peerings-1 action action-1 accept filter-1
  1521. import: from peerings-3 action action-2 accept filter-2 AND NOT filter-1
  1522. import: from peerings-4 action action-2 accept filter-2
  1523.  
  1524.    where peerings-3 are those that are covered by both peerings-1 and
  1525.    peerings-2, and peerings-4 are those that are covered by peerings-2
  1526.    but not by peerings-1 ("filter-2 AND NOT filter-1" matches the routes
  1527.    that are matched by filter-2 but not by filter-1).
  1528.  
  1529.    Example:
  1530.  
  1531.     aut-num: AS1
  1532.     import: from AS2 7.7.7.2 at 7.7.7.1
  1533.             action pref = 2;
  1534.             accept {128.9.0.0/16}
  1535.     import: from AS2
  1536.             action pref = 1;
  1537.             accept {128.9.0.0/16, 75.0.0.0/8}
  1538.  
  1539.    Lets consider two peerings with AS2, 7.7.7.1-7.7.7.2 and 9.9.9.1-
  1540.    9.9.9.2.  Both policy expressions cover 7.7.7.1-7.7.7.2.  On this
  1541.    peering, the route 128.9.0.0/16 is accepted with preference 2, and
  1542.    the route 75.0.0.0/8 is accepted with preference 1.  The peering
  1543.    9.9.9.1-9.9.9.2 is only covered by the second policy expressions.
  1544.    Hence, both the route 128.9.0.0/16 and the route 75.0.0.0/8 are
  1545.    accepted with preference 1 on peering 9.9.9.1-9.9.9.2.
  1546.  
  1547.    Note that the same ambiguity resolution rules also apply to export
  1548.    and default policy expressions.
  1549.  
  1550. 6.5 default Attribute:  Default Policy Specification
  1551.  
  1552.    Default routing policies are specified using the default attribute.
  1553.    The default attribute has the following syntax:
  1554.  
  1555.        default: to <peering> [action <action>] [networks <filter>]
  1556.  
  1557.    The <action> and <filter> specifications are optional.  The semantics
  1558.    are as follows: The <peering> specification indicates the AS (and the
  1559.    router if present) is being defaulted to; the <action> specification,
  1560.    if present, indicates various attributes of defaulting, for example a
  1561.    relative preference if multiple defaults are specified; and the
  1562.    <filter> specifications, if present, is a policy filter.  A router
  1563.    chooses a default router from the routes in its routing table that
  1564.    matches this <filter>.
  1565.  
  1566.    In the following example, AS1 defaults to AS2 for routing.
  1567.  
  1568.  
  1569.  
  1570. Alaettinoglu, et. al.       Standards Track                    [Page 28]
  1571.  
  1572. RFC 2280                          RPSL                      January 1998
  1573.  
  1574.  
  1575.     aut-num: AS1
  1576.     default: to AS2
  1577.  
  1578.    In the following example, router 7.7.7.1 in AS1 defaults to router
  1579.    7.7.7.2 in AS2.
  1580.  
  1581.     aut-num: AS1
  1582.     default: to AS2 7.7.7.2 at 7.7.7.1
  1583.  
  1584.    In the following example, AS1 defaults to AS2 and AS3, but prefers
  1585.    AS2 over AS3.
  1586.  
  1587.     aut-num: AS1
  1588.     default: to AS2 action pref = 1;
  1589.     default: to AS3 action pref = 2;
  1590.  
  1591.    In the following example, AS1 defaults to AS2 and uses 128.9.0.0/16
  1592.    as the default network.
  1593.  
  1594.     aut-num: AS1
  1595.     default: to AS2 networks { 128.9.0.0/16 }
  1596.  
  1597. 6.6 Structured Policy Specification
  1598.  
  1599.    The import and export policies can be structured.  We only reccomend
  1600.    structured policies to advanced RPSL users.  Please feel free to skip
  1601.    this section.
  1602.  
  1603.    The syntax for a structured policy specification is the following:
  1604.  
  1605.       <import-factor> ::= from <peering-1> [action <action-1>]
  1606.                           . . .
  1607.                           from <peering-N> [action <action-N>]
  1608.                           accept <filter>;
  1609.  
  1610.       <import-term> ::=  <import-factor> |
  1611.                          LEFT-BRACE
  1612.                          <import-factor>
  1613.                          . . .
  1614.                          <import-factor>
  1615.                          RIGHT-BRACE
  1616.  
  1617.       <import-expression> ::= <import-term>                            |
  1618.                               <import-term> EXCEPT <import-expression> |
  1619.                               <import-term> REFINE <import-expression>
  1620.  
  1621.       import: [protocol <protocol1>] [into <protocol2>]
  1622.               <import-expression>
  1623.  
  1624.  
  1625.  
  1626. Alaettinoglu, et. al.       Standards Track                    [Page 29]
  1627.  
  1628. RFC 2280                          RPSL                      January 1998
  1629.  
  1630.  
  1631.    Please note the semicolon at the end of an <import-factor>.  If the
  1632.    policy specification is not structured (as in all the examples in
  1633.    other sections), this semicolon is optional.  The syntax and
  1634.    semantics for an <import-factor> is already defined in Section 6.1.
  1635.  
  1636.    An <import-term> is either a sequence of <import-factor>'s enclosed
  1637.    within matching braces (i.e. `{' and `}') or just a single <import-
  1638.    factor>.  The semantics of an <import-term> is the union of <import-
  1639.    factor>'s using the specification order rule.  An <import-expression>
  1640.    is either a single <import-term> or an <import-term> followed by one
  1641.    of the keywords "except" and "refine", followed by another <import-
  1642.    expression>.  Note that our definition allows nested expressions.
  1643.    Hence there can be exceptions to exceptions, refinements to
  1644.    refinements, or even refinements to exceptions, and so on.
  1645.  
  1646.    The semantics for the except operator is as follows: The result of an
  1647.    except operation is another <import-term>.  The resulting policy set
  1648.    contains the policies of the right hand side but their filters are
  1649.    modified to only include the routes also matched by the left hand
  1650.    side.  The policies of the left hand side are included afterwards and
  1651.    their filters are modified to exclude the routes matched by the right
  1652.    hand side.  Please note that the filters are modified during this
  1653.    process but the actions are copied verbatim.  When there are multiple
  1654.    levels of nesting, the operations (both except and refine) are
  1655.    performed right to left.
  1656.  
  1657.    Consider the following example:
  1658.  
  1659.     import: from AS1 action pref = 1; accept as-foo;
  1660.             except {
  1661.                from AS2 action pref = 2; accept AS226;
  1662.                except {
  1663.                   from AS3 action pref = 3; accept {128.9.0.0/16};
  1664.                }
  1665.             }
  1666.  
  1667.    where the route 128.9.0.0/16 is originated by AS226, and AS226 is a
  1668.    member of the as set as-foo.  In this example, the route 128.9.0.0/16
  1669.    is accepted from AS3, any other route (not 128.9.0.0/16) originated
  1670.    by AS226 is accepted from AS2, and any other ASes' routes in as-foo
  1671.    is accepted from AS1.
  1672.  
  1673.    We can come to the same conclusion using the algebra defined above.
  1674.    Consider the inner exception specification:
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Alaettinoglu, et. al.       Standards Track                    [Page 30]
  1683.  
  1684. RFC 2280                          RPSL                      January 1998
  1685.  
  1686.  
  1687.       from AS2 action pref = 2; accept AS226;
  1688.       except {
  1689.          from AS3 action pref = 3; accept {128.9.0.0/16};
  1690.       }
  1691.  
  1692.    is equivalent to
  1693.  
  1694.      {
  1695.       from AS3 action pref = 3; accept AS226 AND {128.9.0.0/16};
  1696.       from AS2 action pref = 2; accept AS226 AND NOT {128.9.0.0/16};
  1697.      }
  1698.  
  1699.    Hence, the original expression is equivalent to:
  1700.  
  1701.     import: from AS1 action pref = 1; accept as-foo;
  1702.             except {
  1703.                from AS3 action pref = 3;
  1704.                    accept AS226 AND {128.9.0.0/16};
  1705.                from AS2 action pref = 2;
  1706.                    accept AS226 AND NOT {128.9.0.0/16};
  1707.             }
  1708.  
  1709.    which is equivalent to
  1710.  
  1711.     import: {
  1712.        from AS3 action pref = 3;
  1713.                 accept as-foo AND AS226 AND {128.9.0.0/16};
  1714.        from AS2 action pref = 2;
  1715.                 accept as-foo AND AS226 AND NOT {128.9.0.0/16};
  1716.        from AS1 action pref = 1;
  1717.                 accept as-foo AND NOT
  1718.                   (AS226 AND NOT {128.9.0.0/16} OR
  1719.                    AS226 AND {128.9.0.0/16});
  1720.        }
  1721.  
  1722.    Since AS226 is in as-foo and 128.9.0.0/16 is in AS226, it simplifies to:
  1723.  
  1724.     import: {
  1725.               from AS3 action pref = 3; accept {128.9.0.0/16};
  1726.               from AS2 action pref = 2;
  1727.                    accept AS226 AND NOT {128.9.0.0/16};
  1728.               from AS1 action pref = 1; accept as-foo AND NOT AS226;
  1729.             }
  1730.  
  1731.    In the case of the refine operator, the resulting set is constructed
  1732.    by taking the cartasian product of the two sides as follows: for each
  1733.    policy l in the left hand side and for each policy r in the right
  1734.    hand side, the peerings of the resulting policy are the peerings
  1735.  
  1736.  
  1737.  
  1738. Alaettinoglu, et. al.       Standards Track                    [Page 31]
  1739.  
  1740. RFC 2280                          RPSL                      January 1998
  1741.  
  1742.  
  1743.    common to both r and l; the filter of the resulting policy is the
  1744.    intersection of l's filter and r's filter; and action of the
  1745.    resulting policy is l's action followed by r's action.  If there are
  1746.    no common peerings, or if the intersection of filters is empty, a
  1747.    resulting policy is not generated.
  1748.  
  1749.    Consider the following example:
  1750.  
  1751.     import: { from AS-ANY action pref = 1;
  1752.                    accept community.contains({3560,10});
  1753.               from AS-ANY action pref = 2;
  1754.                    accept community.contains({3560,20});
  1755.             } refine {
  1756.                from AS1 accept AS1;
  1757.                from AS2 accept AS2;
  1758.                from AS3 accept AS3;
  1759.             }
  1760.  
  1761.    Here, any route with community {3560,10} is assigned a preference of
  1762.    1 and any route with community {3560,20} is assigned a preference of
  1763.    2 regardless of whom they are imported from.  However, only AS1's
  1764.    routes are imported from AS1, and only AS2's routes are imported from
  1765.    AS2, and only AS3's routes are imported form AS3, and no routes are
  1766.    imported from any other AS. We can reach the same conclusion using
  1767.    the above algebra.  That is, our example is equivalent to:
  1768.  
  1769.     import: {
  1770.       from AS1 action pref = 1;
  1771.            accept community.contains({3560,10}) AND AS1;
  1772.       from AS1 action pref = 2;
  1773.            accept community.contains({3560,20}) AND AS1;
  1774.       from AS2 action pref = 1;
  1775.            accept community.contains({3560,10}) AND AS2;
  1776.       from AS2 action pref = 2;
  1777.            accept community.contains({3560,20}) AND AS2;
  1778.       from AS3 action pref = 1;
  1779.            accept community.contains({3560,10}) AND AS3;
  1780.       from AS3 action pref = 2;
  1781.            accept community.contains({3560,20}) AND AS3;
  1782.     }
  1783.  
  1784.    Note that the common peerings between "from AS1" and "from AS-ANY"
  1785.    are those peerings in "from AS1".  Even though we do not formally
  1786.    define "common peerings", it is straight forward to deduce the
  1787.    definition from the definitions of peerings (please see Section
  1788.    6.1.1).
  1789.  
  1790.    Consider the following example:
  1791.  
  1792.  
  1793.  
  1794. Alaettinoglu, et. al.       Standards Track                    [Page 32]
  1795.  
  1796. RFC 2280                          RPSL                      January 1998
  1797.  
  1798.  
  1799.     import: {
  1800.       from AS-ANY action med = 0; accept {0.0.0.0/0^0-18};
  1801.       } refine {
  1802.            from AS1 at 7.7.7.1 action pref = 1; accept AS1;
  1803.            from AS1            action pref = 2; accept AS1;
  1804.         }
  1805.  
  1806.    where only routes of length 0 to 18 are accepted and med's value is
  1807.    set to 0 to disable med's effect for all peerings; In addition, from
  1808.    AS1 only AS1's routes are imported, and AS1's routes imported at
  1809.    7.7.7.1 are preferred over other peerings.  This is equivalent to:
  1810.  
  1811.     import: {
  1812.       from AS1 at 7.7.7.1 action med=0; pref=1;
  1813.            accept {0.0.0.0/0^0-18} AND AS1;
  1814.       from AS1 action med=0; pref=2; accept {0.0.0.0/0^0-18} AND AS1;
  1815.  
  1816.    The above syntax and semantics also apply equally to structured
  1817.    export policies with "from" replaced with "to" and "accept" is
  1818.    replaced with "announce".
  1819.  
  1820. 7 dictionary Class
  1821.  
  1822.    The dictionary class provides extensibility to RPSL.  Dictionary
  1823.    objects define routing policy attributes, types, and routing
  1824.    protocols.  Routing policy attributes, henceforth called rp-
  1825.    attributes, may correspond to actual protocol attributes, such as the
  1826.    BGP path attributes (e.g. community, dpa, and AS-path), or they may
  1827.    correspond to router features (e.g. BGP route flap damping).  As new
  1828.    protocols, new protocol attributes, or new router features are
  1829.    introduced, the dictionary object is updated to include appropriate
  1830.    rp-attribute and protocol definitions.
  1831.  
  1832.    An rp-attribute is an abstract class; that is a data representation
  1833.    is not available.  Instead, they are accessed through access methods.
  1834.    For example, the rp-attribute for the BGP AS-path attribute is called
  1835.    aspath; and it has an access method called prepend which stuffs extra
  1836.    AS numbers to the AS-path attributes.  Access methods can take
  1837.    arguments.  Arguments are strongly typed.  For example, the method
  1838.    prepend above takes AS numbers as argument.
  1839.  
  1840.    Once an rp-attribute is defined in the dictionary, it can be used to
  1841.    describe policy filters and actions.  Policy analysis tools are
  1842.    required to fetch the dictionary object and recognize newly defined
  1843.    rp-attributes, types, and protocols.  The analysis tools may
  1844.    approximate policy analyses on rp-attributes that they do not
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Alaettinoglu, et. al.       Standards Track                    [Page 33]
  1851.  
  1852. RFC 2280                          RPSL                      January 1998
  1853.  
  1854.  
  1855.    understand: a filter method may always match, and an action method
  1856.    may always perform no-operation.  Analysis tools may even download
  1857.    code to perform appropriate operations using mechanisms outside the
  1858.    scope of RPSL.
  1859.  
  1860.    We next describe the syntax and semantics of the dictionary class.
  1861.    This description is not essential for understanding dictionary
  1862.    objects (but it is essential for creating one).  Please feel free to
  1863.    skip to the RPSL Initial Dictionary subsection (Section 7.1).
  1864.  
  1865.    The attributes of the dictionary class are shown in Figure 18.  The
  1866.    dictionary attribute is the name of the dictionary object, obeying
  1867.    the RPSL naming rules.  There can be many dictionary objects, however
  1868.    there is always one well-known dictionary object "RPSL". All tools
  1869.    use this dictionary by default.
  1870.  
  1871.    The rp-attribute attribute has the following syntax:
  1872.  
  1873.     Attribute     Value                   Type
  1874.     dictionary    <object-name>           mandatory, single-valued,
  1875.                                            class key
  1876.     rp-attribute  see description in text optional, multi valued
  1877.     typedef       see description in text optional, multi valued
  1878.     protocol      see description in text optional, multi valued
  1879.  
  1880.  
  1881.                      Figure 18:  dictionary Class Attributes
  1882.  
  1883.  
  1884.       rp-attribute: <name>
  1885.          <method-1>(<type-1-1>, ..., <type-1-N1> [, "..."])
  1886.          ...
  1887.          <method-M>(<type-M-1>, ..., <type-M-NM> [, "..."])
  1888.  
  1889.    where <name> is the name of the rp-attribute; and <method-i> is the
  1890.    name of an access method for the rp-attribute, taking Ni arguments
  1891.    where the j-th argument is of type <type-i-j>.  A method name is
  1892.    either an RPSL name or one of the operators defined in Figure 19.
  1893.    The operator methods with the exception of operator() and operator[]
  1894.    can take only one argument.
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906. Alaettinoglu, et. al.       Standards Track                    [Page 34]
  1907.  
  1908. RFC 2280                          RPSL                      January 1998
  1909.  
  1910.  
  1911.       operator=           operator==
  1912.       operator<<=         operator<
  1913.       operator>>=         operator>
  1914.       operator+=          operator>=
  1915.       operator-=          operator<=
  1916.       operator*=          operator!=
  1917.       operator/=          operator()
  1918.       operator.=          operator[]
  1919.  
  1920.  
  1921.                        Figure 19:  Operators
  1922.  
  1923.    An rp-attribute can have many methods defined for it.  Some of the
  1924.    methods may even have the same name, in which case their arguments
  1925.    are of different types.  If the argument list is followed by "...",
  1926.    the method takes a variable number of arguments.  In this case, the
  1927.    actual arguments after the Nth argument are of type <type-N>.
  1928.  
  1929.    Arguments are strongly typed.  A type of an argument can be one of
  1930.    the predefined types or one of the dictionary defined types.  The
  1931.    predefined type names are listed in Figure 20.  The integer and the
  1932.    real types can be followed by a lower and an upper bound to specify
  1933.    the set of valid values of the argument.  The range specification is
  1934.    optional.  We use the ANSI C language conventions for representing
  1935.    integer, real and string values.  The enum type is followed by a list
  1936.    of RPSL names which are the valid values of the type.  The boolean
  1937.    type can take the values true or false.  as_number, ipv4_address,
  1938.    address_prefix and dns_name types are as in Section 2.  filter type
  1939.    is a policy filter as in Section 6.
  1940.  
  1941.       integer[lower, upper]              as_number
  1942.       real[lower, upper]                 ipv4_address
  1943.       enum[name, name, ...]              address_prefix
  1944.       string                             address_prefix_range
  1945.       boolean                            dns_name
  1946.       rpsl_word                          filter
  1947.       free_text                          as_set_name
  1948.       email                              route_set_name
  1949.  
  1950.  
  1951.                      Figure 20:  Predefined Types
  1952.  
  1953.    The typedef attribute specifies a dictionary defined type.  Its
  1954.    syntax is as follows:
  1955.  
  1956.       typedef: <name> union <type-1>, ... , <type-N>
  1957.              | <name> list [<min_elems>:<max_elems>] of <type>
  1958.  
  1959.  
  1960.  
  1961.  
  1962. Alaettinoglu, et. al.       Standards Track                    [Page 35]
  1963.  
  1964. RFC 2280                          RPSL                      January 1998
  1965.  
  1966.  
  1967.    where <name> is the name of the type being defined and <type-M> is
  1968.    another type name, either predefined or dictionary defined.  In the
  1969.    first form, the type defined is either of the types <type-1> through
  1970.    <type-N> (analogous to unions in C[12]).  In the second form, the
  1971.    type defined is a list type where the list elements are of <type> and
  1972.    the list contains at least <min_elems> and at most <max_elems>
  1973.    elements.  The size specification is optional.  In this case, there
  1974.    is no restriction in the number of list elements.  A value of a list
  1975.    type is represented as a sequence of elements separated by the
  1976.    character "," and enclosed by the characters "{" and "}".
  1977.  
  1978.    A protocol attribute of the dictionary class defines a protocol and a
  1979.    set of peering options for that protocol (which are used in inet-rtr
  1980.    class in Section 9).  Its syntax is as follows:
  1981.  
  1982.       protocol: <name>
  1983.          MANDATORY | OPTIONAL <option-1>(<type-1-1>, ...,
  1984.                                          <type-1-N1> [, "..."])
  1985.          ...
  1986.          MANDATORY | OPTIONAL <option-M>(<type-M-1>, ...,
  1987.                                          <type-M-NM> [, "..."])
  1988.  
  1989.    where <name> is the name of the protocol; MANDATORY and OPTIONAL are
  1990.    keywords; and <option-i> is a peering option for this protocol,
  1991.    taking Ni many arguments.  The syntax and semantics of the arguments
  1992.    are as in the rp-attribute.  If the keyword MANDATORY is used the
  1993.    option is mandatory and needs to be specified for each peering of
  1994.    this protocol.  If the keyword OPTIONAL is used the option can be
  1995.    skipped.
  1996.  
  1997. 7.1 Initial RPSL Dictionary and Example Policy Actions and Filters
  1998.  
  1999. dictionary:   RPSL
  2000. rp-attribute: # preference, smaller values represent higher preferences
  2001.               pref
  2002.               operator=(integer[0, 65535])
  2003. rp-attribute: # BGP multi_exit_discriminator attribute
  2004.               med
  2005.               operator=(integer[0, 65535])
  2006.               # to set med to the IGP metric: med = igp_cost;
  2007.               operator=(enum[igp_cost])
  2008. rp-attribute: # BGP destination preference attribute (dpa)
  2009.               dpa
  2010.               operator=(integer[0, 65535])
  2011. rp-attribute: # BGP aspath attribute
  2012.               aspath
  2013.               # prepends AS numbers from last to first order
  2014.               prepend(as_number, ...)
  2015.  
  2016.  
  2017.  
  2018. Alaettinoglu, et. al.       Standards Track                    [Page 36]
  2019.  
  2020. RFC 2280                          RPSL                      January 1998
  2021.  
  2022.  
  2023. typedef:      # a community value in RPSL is either
  2024.               #  - a 4 byte integer
  2025.               #  - internet, no_export, no_advertise (see RFC-1997)
  2026.               #  - two 2-byte integers to be concatanated eg. {3561,70}
  2027.               community_elm union
  2028.               integer[1, 4294967200],
  2029.               enum[internet, no_export, no_advertise],
  2030.               list[2:2] of integer[0, 65535]
  2031. typedef:      # list of community values { 40, no_export, {3561,70}}
  2032.               community_list
  2033.               list of community_elm
  2034. rp-attribute: # BGP community attribute
  2035.               community
  2036.               # set to a list of communities
  2037.               operator=(community_list)
  2038.               # order independent equality comparison
  2039.               operator==(community_list)
  2040.               # append community values
  2041.               operator.=(community_elm)
  2042.               append(community_elm, ...)
  2043.               # delete community values
  2044.               delete(community_elm, ...)
  2045.               # a filter: true if one of community values is contained
  2046.               contains(community_elm, ...)
  2047.               # shortcut to contains: community(no_export, {3561,70})
  2048.               operator()(community_elm, ...)
  2049. rp-attribute: # next hop router in a static route
  2050.               next-hop
  2051.               operator=(ipv4_address)       # a router address
  2052.               operator=(enum[self])         # router's own address
  2053. rp-attribute: # cost of a static route
  2054.               cost
  2055.               operator=(integer[0, 65535])
  2056. protocol: BGP4
  2057.           # as number of the peer router
  2058.           MANDATORY asno(as_number)
  2059.           # enable flap damping
  2060.           OPTIONAL flap_damp()
  2061.           OPTIONAL flap_damp(integer[0,65535],# penalty per flap
  2062.                              integer[0,65535],
  2063.                                 # penalty value for supression
  2064.                              integer[0,65535],# penalty value for reuse
  2065.                              integer[0,65535],# halflife in secs when up
  2066.                              integer[0,65535],
  2067.                                 # halflife in secs when down
  2068.                              integer[0,65535])# maximum penalty
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074. Alaettinoglu, et. al.       Standards Track                    [Page 37]
  2075.  
  2076. RFC 2280                          RPSL                      January 1998
  2077.  
  2078.  
  2079. protocol: OSPF
  2080. protocol: RIP
  2081. protocol: IGRP
  2082. protocol: IS-IS
  2083. protocol: STATIC
  2084. protocol: RIPng
  2085. protocol: DVMRP
  2086. protocol: PIM-DM
  2087. protocol: PIM-SM
  2088. protocol: CBT
  2089. protocol: MOSPF
  2090.  
  2091.  
  2092.                      Figure 21:  RPSL Dictionary
  2093.  
  2094.    Figure 21 shows the initial RPSL dictionary.  It has seven rp-
  2095.    attributes: pref to assign local preference to the routes accepted;
  2096.    med to assign a value to the MULTI_EXIT_DISCRIMINATOR BGP attribute;
  2097.    dpa to assign a value to the DPA BGP attribute; aspath to prepend a
  2098.    value to the AS_PATH BGP attribute; community to assign a value to or
  2099.    to check the value of the community BGP attribute; next-hop to assign
  2100.    next hop routers to static routes; and cost to assign a cost to
  2101.    static routes.  The dictionary defines two types: community_elm and
  2102.    community_list.  community_elm type is either a 4-byte unsigned
  2103.    integer, or one of the keywords no_export or no_advertise (defined in
  2104.    [7]), or a list of two 2-byte unsigned integers in which case the two
  2105.    integers are concatenated to form a 4-byte integer.  (The last form
  2106.    is often used in the Internet to partition the community number
  2107.    space.  A provider uses its AS number as the first two bytes, and
  2108.    assigns a semantics of its choice to the last two bytes.)
  2109.  
  2110.    The initial dictionary (Figure 21) defines only options for the
  2111.    Border Gateway Protocol: asno and flap_damp.  The mandatory asno
  2112.    option is the AS number of the peer router.  The optional flap_damp
  2113.    option instructs the router to damp route flaps[19] when importing
  2114.    routes from the peer router.
  2115.  
  2116.    It can be specified with or without parameters.  If parameters are
  2117.    missing, they default to:
  2118.  
  2119.       flap_damp(1000, 2000, 750, 900, 900, 20000)
  2120.  
  2121.    That is, a penalty of 1000 is assigned at each route flap, the route
  2122.    is suppressed when penalty reaches 2000.  The penalty is reduced in
  2123.    half after 15 minutes (900 seconds) of stability regardless of
  2124.    whether the route is up or down.  A supressed route is reused when
  2125.    the penalty falls below 750.  The maximum penalty a route can be
  2126.  
  2127.  
  2128.  
  2129.  
  2130. Alaettinoglu, et. al.       Standards Track                    [Page 38]
  2131.  
  2132. RFC 2280                          RPSL                      January 1998
  2133.  
  2134.  
  2135.    assigned is 20,000 (i.e. the maximum suppress time after a route
  2136.    becomes stable is about 75 minutes).  These parameters are consistent
  2137.    with the default flap damping parameters in several routers.
  2138.  
  2139.    Policy Actions and Filters Using RP-Attributes
  2140.  
  2141.    The syntax of a policy action or a filter using an rp-attribute x is
  2142.    as follows:
  2143.  
  2144.        x.method(arguments)
  2145.        x "op" argument
  2146.  
  2147.    where method is a method and "op" is an operator method of the rp-
  2148.    attribute x.  If an operator method is used in specifying a composite
  2149.    policy filter, it evaluates earlier than the composite policy filter
  2150.    operators (i.e. AND, OR, NOT, and implicit or operator).
  2151.  
  2152.    The pref rp-attribute can be assigned a positive integer as follows:
  2153.  
  2154.       pref = 10;
  2155.  
  2156.    The med rp-attribute can be assigned either a positive integer or the
  2157.    word "igp_cost" as follows:
  2158.  
  2159.       med = 0;
  2160.       med = igp_cost;
  2161.  
  2162.    The dpa rp-attribute can be assigned a positive integer as follows:
  2163.  
  2164.       dpa = 100;
  2165.  
  2166.    The BGP community attribute is list-valued, that is it is a list of
  2167.    4-byte integers each representing a "community".  The following
  2168.    examples demonstrate how to add communities to this rp-attribute:
  2169.  
  2170.       community .= 100;
  2171.       community .= NO_EXPORT;
  2172.       community .= {3561,10};
  2173.  
  2174.    In the last case, a 4-byte integer is constructed where the more
  2175.    significant two bytes equal 3561 and the less significant two bytes
  2176.    equal 10.  The following examples demonstrate how to delete
  2177.    communities from the community rp-attribute:
  2178.  
  2179.       community.delete(100, NO_EXPORT, {3561,10});
  2180.  
  2181.    Filters that use the community rp-attribute can be defined as
  2182.    demonstrated by the following examples:
  2183.  
  2184.  
  2185.  
  2186. Alaettinoglu, et. al.       Standards Track                    [Page 39]
  2187.  
  2188. RFC 2280                          RPSL                      January 1998
  2189.  
  2190.  
  2191.       community.contains(100, NO_EXPORT, {3561,10});
  2192.       community(100, NO_EXPORT, {3561,10});             # shortcut
  2193.  
  2194.    The community rp-attribute can be set to a list of communities as
  2195.    follows:
  2196.  
  2197.       community = {100, NO_EXPORT, {3561,10}, 200};
  2198.       community = {};
  2199.  
  2200.    In this first case, the community rp-attribute contains the
  2201.    communities 100, NO_EXPORT, {3561,10}, and 200.  In the latter case,
  2202.    the community rp-attribute is cleared.  The community rp-attribute
  2203.    can be compared against a list of communities as follows:
  2204.  
  2205.       community == {100, NO_EXPORT, {3561,10}, 200};   # exact match
  2206.  
  2207.    To influence the route selection, the BGP as_path rp-attribute can be
  2208.    made longer by prepending AS numbers to it as follows:
  2209.  
  2210.       aspath.prepend(AS1);
  2211.       aspath.prepend(AS1, AS1, AS1);
  2212.  
  2213.    The following examples are invalid:
  2214.  
  2215.       med = -50;                     # -50 is not in the range
  2216.       med = igp;                     # igp is not one of the enum values
  2217.       med.assign(10);                # method assign is not defined
  2218.       community.append({AS3561,20}); # the first argument should be 3561
  2219.  
  2220.    Figure 22 shows a more advanced example using the rp-attribute
  2221.    community.  In this example, AS3561 bases its route selection
  2222.    preference on the community attribute.  Other ASes may indirectly
  2223.    affect AS3561's route selection by including the appropriate
  2224.    communities in their route announcements.
  2225.  
  2226.     aut-num: AS1
  2227.     export: to AS2 action community.={3561,90};
  2228.             to AS3 action community.={3561,80};
  2229.             announce AS1
  2230.  
  2231.     as-set: AS3561:AS-PEERS
  2232.     members: AS2, AS3
  2233.  
  2234.     aut-num: AS3561
  2235.     import: from AS3561:AS-PEERS
  2236.             action pref = 10;
  2237.             accept community.contains({3561,90})
  2238.  
  2239.  
  2240.  
  2241.  
  2242. Alaettinoglu, et. al.       Standards Track                    [Page 40]
  2243.  
  2244. RFC 2280                          RPSL                      January 1998
  2245.  
  2246.  
  2247.     import: from AS3561:AS-PEERS
  2248.             action pref = 20;
  2249.             accept community.contains({3561,80})
  2250.     import: from AS3561:AS-PEERS
  2251.             action pref = 20;
  2252.             accept community.contains({3561,70})
  2253.     import: from AS3561:AS-PEERS
  2254.             action pref = 0;
  2255.             accept ANY
  2256.  
  2257.  
  2258.            Figure 22:  Policy example using the community rp-attribute.
  2259.  
  2260. 8 Advanced route Class
  2261.  
  2262. 8.1 Specifying Aggregate Routes
  2263.  
  2264.    The components, aggr-bndry, aggr-mtd, export-comps, inject, and holes
  2265.    attributes are used for specifying aggregate routes [9].  A route
  2266.    object specifies an aggregate route if any of these attributes, with
  2267.    the exception of inject, is specified.  The origin attribute for an
  2268.    aggregate route is the AS performing the aggregation, i.e. the
  2269.    aggregator AS. In this section, we used the term "aggregate" to refer
  2270.    to the route generated, the term "component" to refer to the routes
  2271.    used to generate the path attributes of the aggregate, and the term
  2272.    "more specifics" to refer to any route which is a more specific of
  2273.    the aggregate regardless of whether it was used to form the path
  2274.    attributes.
  2275.  
  2276.    The components attribute defines what component routes are used to
  2277.    form the aggregate.  Its syntax is as follows:
  2278.  
  2279.       components: [ATOMIC] [[protocol <protocol>] <filter>
  2280.                             [protocol <protocol> <filter> ...]]
  2281.  
  2282.    where <protocol> is a routing protocol name such as BGP, OSPF or RIP
  2283.    (valid names are defined in the dictionary) and <filter> is a policy
  2284.    expression.  The routes that match one of these filters and are
  2285.    learned from the corresponding protocol are used to form the
  2286.    aggregate.  If <protocol> is omitted, it defaults to any protocol.
  2287.    <filter> implicitly contains an "AND" term with the more specifics of
  2288.    the aggregate so that only the component routes are selected.  If the
  2289.    keyword ATOMIC is used, the aggregation is done atomically [9].  If a
  2290.    <filter> is not specified it defaults to more specifics.  If the
  2291.    components attribute is missing, all more specifics without the
  2292.    ATOMIC keyword is used.
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298. Alaettinoglu, et. al.       Standards Track                    [Page 41]
  2299.  
  2300. RFC 2280                          RPSL                      January 1998
  2301.  
  2302.  
  2303.       route: 128.8.0.0/15
  2304.       origin: AS1
  2305.       components: <^AS2>
  2306.  
  2307.       route: 128.8.0.0/15
  2308.       origin: AS1
  2309.       components: protocol BGP  {128.8.0.0/16^+}
  2310.                   protocol OSPF {128.9.0.0/16^+}
  2311.  
  2312.  
  2313.                      Figure 23:  Two aggregate route objects.
  2314.  
  2315.  
  2316.    Figure 23 shows two route objects.  In the first example, more
  2317.    specifics of 128.8.0.0/15 with AS paths starting with AS2 are
  2318.    aggregated.  In the second example, some routes learned from BGP and
  2319.    some routes learned form OSPF are aggregated.
  2320.  
  2321.    The aggr-bndry attribute is an expression over AS numbers and sets
  2322.    using operators AND, OR, and NOT.  The result defines the set of ASes
  2323.    which form the aggregation boundary.  If the aggr-bndry attribute is
  2324.    missing, the origin AS is the sole aggregation boundary.  Outside the
  2325.    aggregation boundary, only the aggregate is exported and more
  2326.    specifics are suppressed.  However, within the boundary, the more
  2327.    specifics are also exchanged.
  2328.  
  2329.    The aggr-mtd attribute specifies how the aggregate is generated.  Its
  2330.    syntax is as follow:
  2331.  
  2332.      aggr-mtd: inbound
  2333.              | outbound [<as-expression>]
  2334.  
  2335.    where <as-expression> is an expression over AS numbers and sets using
  2336.    operators AND, OR, and NOT. If <as-expression> is missing, it
  2337.    defaults to AS-ANY. If outbound aggregation is specified, the more
  2338.    specifics of the aggregate will be present within the AS and the
  2339.    aggregate will be formed at all inter-AS boundaries with ASes in
  2340.    <as-expression> before export, except for ASes that are within the
  2341.    aggregating boundary (i.e.  aggr-bndry is enforced regardless of
  2342.    <as-expression>).  If inbound aggregation is specified, the aggregate
  2343.    is formed at all inter-AS boundaries prior to importing routes into
  2344.    the aggregator AS. Note that <as-expression> can not be specified
  2345.    with inbound aggregation.  If aggr-mtd attribute is missing, it
  2346.    defaults to "outbound AS-ANY".
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354. Alaettinoglu, et. al.       Standards Track                    [Page 42]
  2355.  
  2356. RFC 2280                          RPSL                      January 1998
  2357.  
  2358.  
  2359.       route:      128.8.0.0/15            route:      128.8.0.0/15
  2360.       origin:     AS1                     origin:     AS2
  2361.       components: {128.8.0.0/15^-}        components: {128.8.0.0/15^-}
  2362.       aggr-bndry: AS1 OR AS2              aggr-bndry: AS1 OR AS2
  2363.       aggr-mtd:   outbound AS-ANY         aggr-mtd:   outbound AS-ANY
  2364.  
  2365.  
  2366.                 Figure 24:  Outbound multi-AS aggregation example.
  2367.  
  2368.    Figure 24 shows an example of an outbound aggregation.  In this
  2369.    example, AS1 and AS2 are coordinating aggregation and announcing only
  2370.    the less specific 128.8.0.0/15 to outside world, but exchanging more
  2371.    specifics between each other.  This form of aggregation is useful
  2372.    when some of the components are within AS1 and some are within AS2.
  2373.  
  2374.    When a set of routes are aggregated, the intent is to export only the
  2375.    aggregate route and suppress exporting of the more specifics outside
  2376.    the aggregation boundary.  However, to satisfy certain policy and
  2377.    topology constraints (e.g. a multi-homed component), it is often
  2378.    required to export some of the components.  The export-comps
  2379.    attribute equals an RPSL filter that matches the more specifics that
  2380.    need to be exported outside the aggregation boundary.  If this
  2381.    attribute is missing, more specifics are not exported outside the
  2382.    aggregation boundary.  Note that, the export-comps filter contains an
  2383.    implicit "AND" term with the more specifics of the aggregate.
  2384.  
  2385.    Figure 25 shows an example of an outbound aggregation.  In this
  2386.    example, the more specific 128.8.8.0/24 is exported outside AS1 in
  2387.    addition to the aggregate.  This is useful, when 128.8.8.0/24 is
  2388.    multi-homed site to AS1 with some other AS.
  2389.  
  2390.       route:      128.8.0.0/15
  2391.       origin:     AS1
  2392.       components: {128.8.0.0/15^-}
  2393.       aggr-mtd:   outbound AS-ANY
  2394.       export-comps: {128.8.8.0/24}
  2395.  
  2396.  
  2397.              Figure 25:  Outbound aggregation with export exception.
  2398.  
  2399.    The inject attribute specifies which routers perform the aggregation
  2400.    and when they perform it.  Its syntax is as follow:
  2401.  
  2402.      inject: [at <router-expression>] ...
  2403.              [action <action>]
  2404.              [upon <condition>]
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410. Alaettinoglu, et. al.       Standards Track                    [Page 43]
  2411.  
  2412. RFC 2280                          RPSL                      January 1998
  2413.  
  2414.  
  2415.    where <action> is an action specification (see Section 6.1.2),
  2416.    <condition> is a boolean expression described below, and<router-
  2417.    expression> is an expression over router IP addresses and DNS names
  2418.    using operators AND, OR, and NOT. The DNS name can only be used if
  2419.    there is an inet-rtr object for that name that binds the name to IP
  2420.    addresses.
  2421.  
  2422.    All routers in <router-expression> and in the aggregator AS perform
  2423.    the aggregation.  If a <router-expression> is not specified, all
  2424.    routers inside the aggregator AS perform the aggregation.  The
  2425.    <action> specification may set path attributes of the aggregate, such
  2426.    as assign a preferences to the aggregate.
  2427.  
  2428.    The upon clause is a boolean condition.  The aggregate is generated
  2429.    if and only if this condition is true.  <condition> is a boolean
  2430.    expression using the logical operators AND and OR (i.e. operator NOT
  2431.    is not allowed) over:
  2432.  
  2433.       HAVE-COMPONENTS { list of prefixes }
  2434.       EXCLUDE { list of prefixes }
  2435.       STATIC
  2436.  
  2437.    The list of prefixes in HAVE-COMPONENTS can only be more specifics of
  2438.    the aggregate.  It evaluates to true when all the prefixes listed are
  2439.    present in the routing table of the aggregating router.  The list can
  2440.    also include prefix ranges (i.e. using operators ^-, ^+, ^n, and ^n-
  2441.    m).  In this case, at least one prefix from each prefix range needs
  2442.    to be present in the routing table for the condition to be true.  The
  2443.    list of prefixes in EXCLUDE can be arbitrary.  It evaluates to true
  2444.    when none of the prefixes listed is present in the routing table.
  2445.    The list can also include prefix ranges, and no prefix in that range
  2446.    should be present in the routing table.  The keyword static always
  2447.    evaluates to true.  If no upon clause is specified the aggregate is
  2448.    generated if an only if there is a component in the routing table
  2449.    (i.e.  a more specific that matches the filter in the components
  2450.    attribute).
  2451.  
  2452.       route:      128.8.0.0/15
  2453.       origin:     AS1
  2454.       components: {128.8.0.0/15^-}
  2455.       aggr-mtd:   outbound AS-ANY
  2456.       inject:     at 1.1.1.1 action dpa = 100;
  2457.       inject:     at 1.1.1.2 action dpa = 110;
  2458.  
  2459.       route:      128.8.0.0/15
  2460.       origin:     AS1
  2461.       components: {128.8.0.0/15^-}
  2462.       aggr-mtd:   outbound AS-ANY
  2463.  
  2464.  
  2465.  
  2466. Alaettinoglu, et. al.       Standards Track                    [Page 44]
  2467.  
  2468. RFC 2280                          RPSL                      January 1998
  2469.  
  2470.  
  2471.       inject:     upon HAVE-COMPONENTS {128.8.0.0/16, 128.9.0.0/16}
  2472.       holes:      128.8.8.0/24
  2473.  
  2474.  
  2475.                          Figure 26:  Examples of inject.
  2476.  
  2477.    Figure 26 shows two examples.  In the first case, the aggregate is
  2478.    injected at two routers each one setting the dpa path attribute
  2479.    differently.  In the second case, the aggregate is generated only if
  2480.    both 128.8.0.0/16 and 128.9.0.0/16 are present in the routing table,
  2481.    as opposed to the first case where the presence of just one of them
  2482.    is sufficient for injection.
  2483.  
  2484.    The holes attribute lists the component address prefixes which are
  2485.    not reachable through the aggregate route (perhaps that part of the
  2486.    address space is unallocated).  The holes attribute is useful for
  2487.    diagnosis purposes.  In Figure 26, the second example has a hole,
  2488.    namely 128.8.8.0/24.  This may be due to a customer changing
  2489.    providers and taking this part of the address space with it.
  2490.  
  2491. 8.1.1 Interaction with policies in aut-num class
  2492.  
  2493.    An aggregate formed is announced to other ASes only if the export
  2494.    policies of the AS allows exporting the aggregate.  When the
  2495.    aggregate is formed, the more specifics are suppressed from being
  2496.    exported except to the ASes in aggr-bndry and except the components
  2497.    in export-comps.  For such exceptions to happen, the export policies
  2498.    of the AS should explicitly allow exporting of these exceptions.
  2499.  
  2500.    If an aggregate is not formed (due to the upon clause), then the more
  2501.    specifics of the aggregate can be exported to other ASes, but only if
  2502.    the export policies of the AS allows it.  In other words, before a
  2503.    route (aggregate or more specific) is exported it is filtered twice,
  2504.    once based on the route objects, and once based on the export
  2505.    policies of the AS.
  2506.  
  2507.       route:        128.8.0.0/16
  2508.       origin:       AS1
  2509.  
  2510.       route:        128.9.0.0/16
  2511.       origin:       AS1
  2512.  
  2513.       route:        128.8.0.0/15
  2514.       origin:       AS1
  2515.       aggr-bndry:   AS1 or AS2 or AS3
  2516.       aggr-mtd:     outbound AS3 or AS4 or AS5
  2517.       components:   {128.8.0.0/16, 128.9.0.0/16}
  2518.       inject:       upon HAVE-COMPONENTS {128.9.0.0/16, 128.8.0.0/16}
  2519.  
  2520.  
  2521.  
  2522. Alaettinoglu, et. al.       Standards Track                    [Page 45]
  2523.  
  2524. RFC 2280                          RPSL                      January 1998
  2525.  
  2526.  
  2527.       aut-num: AS1
  2528.       export:  to AS2 announce AS1
  2529.       export:  to AS3 announce AS1 and not {128.9.0.0/16}
  2530.       export:  to AS4 announce AS1
  2531.       export:  to AS5 announce AS1
  2532.       export:  to AS6 announce AS1
  2533.  
  2534.  
  2535.              Figure 27:  Interaction with policies in aut-num class.
  2536.  
  2537.    In Figure 27 shows an interaction example.  By examining the route
  2538.    objects, the more specifics 128.8.0.0/16 and 128.9.0.0/16 should be
  2539.    exchanged between AS1, AS2 and AS3 (i.e.  the aggregation boundary).
  2540.    Outbound aggregation is done to AS4 and AS5 and not to AS3, since AS3
  2541.    is in the aggregation boundary.  The aut-num object allows exporting
  2542.    both components to AS2, but only the component 128.8.0.0/16 to AS3.
  2543.    The aggregate can only be formed if both components are available.
  2544.    In this case, only the aggregate is announced to AS4 and AS5.
  2545.    However, if one of the components is not available the aggregate will
  2546.    not be formed, and any available component or more specific will be
  2547.    exported to AS4 and AS5.  Regardless of aggregation is performed or
  2548.    not, only the more specifics will be exported to AS6 (it is not
  2549.    listed in the aggr-mtd attribute).
  2550.  
  2551.    When doing an inbound aggregation, configuration generators may
  2552.    eliminating the aggregation statements on routers where import policy
  2553.    of the AS prohibits importing of any more specifics.
  2554.  
  2555. 8.1.2 Ambiguity resolution with overlapping aggregates
  2556.  
  2557.    When several aggregate routes are specified and they overlap, i.e.
  2558.    one is less specific of the other, they must be evaluated more
  2559.    specific to less specific order.  When an aggregation is performed,
  2560.    the aggregate and the components listed in the export-comps attribute
  2561.    are available for generating the next less specific aggregate.  The
  2562.    components that are not specified in the export-comps attribute are
  2563.    not available.  A route is exportable to an AS if it is the least
  2564.    specific aggregate exportable to that AS or it is listed in the
  2565.    export-comps attribute of an exportable route.  Note that this is a
  2566.    recursive definition.
  2567.  
  2568.       route:        128.8.0.0/15
  2569.       origin:       AS1
  2570.       aggr-bndry:   AS1 or AS2
  2571.       aggr-mtd:     outbound
  2572.       inject:       upon HAVE-COMPONENTS {128.8.0.0/16, 128.9.0.0/16}
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578. Alaettinoglu, et. al.       Standards Track                    [Page 46]
  2579.  
  2580. RFC 2280                          RPSL                      January 1998
  2581.  
  2582.  
  2583.       route:        128.10.0.0/15
  2584.       origin:       AS1
  2585.       aggr-bndry:   AS1 or AS3
  2586.       aggr-mtd:     outbound
  2587.       inject:       upon HAVE-COMPONENTS {128.10.0.0/16, 128.11.0.0/16}
  2588.       export-comps: {128.11.0.0/16}
  2589.  
  2590.       route:        128.8.0.0/14
  2591.       origin:       AS1
  2592.       aggr-bndry:   AS1 or AS2 or AS3
  2593.       aggr-mtd:     outbound
  2594.       inject:       upon HAVE-COMPONENTS {128.8.0.0/15, 128.10.0.0/15}
  2595.       export-comps: {128.10.0.0/15}
  2596.  
  2597.  
  2598.                   Figure 28:  Overlapping aggregations.
  2599.  
  2600.    In Figure 28, AS1 together with AS2 aggregates 128.8.0.0/16 and
  2601.    128.9.0.0/16 into 128.8.0.0/15.  Together with AS3, AS1 aggregates
  2602.    128.10.0.0/16 and 128.11.0.0/16 into 128.10.0.0/15.  But altogether
  2603.    they aggregate these four routes into 128.8.0.0/14.  Assuming all
  2604.    four components are available, a router in AS1 for an outside AS, say
  2605.    AS4, will first generate 128.8.0.0/15 and 128.10.0.0/15.  This will
  2606.    make 128.8.0.0/15, 128.10.0.0/15 and its exception 128.11.0.0/16
  2607.    available for generating 128.8.0.0/14.  The router will then generate
  2608.    128.8.0.0/14 from these three routes.  Hence for AS4, 128.8.0.0/14
  2609.    and its exception 128.10.0.0/15 and its exception 128.11.0.0/16 will
  2610.    be exportable.
  2611.  
  2612.    For AS2, a router in AS1 will only generate 128.10.0.0/15.  Hence,
  2613.    128.10.0.0/15 and its exception 128.11.0.0/16 will be exportable.
  2614.    Note that 128.8.0.0/16 and 128.9.0.0/16 are also exportable since
  2615.    they did not participate in an aggregate exportable to AS2.
  2616.  
  2617.    Similarly, for AS3, a router in AS1 will only generate 128.8.0.0/15.
  2618.    In this case 128.8.0.0/15, 128.10.0.0/16, 128.11.0.0/16 are
  2619.    exportable.
  2620.  
  2621. 8.2 Specifying Static Routes
  2622.  
  2623.    The inject attribute can be used to specify static routes by using
  2624.    "upon static" as the condition:
  2625.  
  2626.      inject: [at <router>] ...
  2627.              [action <action>]
  2628.              upon static
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634. Alaettinoglu, et. al.       Standards Track                    [Page 47]
  2635.  
  2636. RFC 2280                          RPSL                      January 1998
  2637.  
  2638.  
  2639.    In this case, the <router> executes the <action> and injects the
  2640.    route to the interAS routing system statically.  <action> may set
  2641.    certain route attributes such as a next-hop router or a cost.
  2642.  
  2643.    In the following example, the router 7.7.7.1 injects the route
  2644.    128.7.0.0/16.  The next-hop routers (in this example, there are two
  2645.    next-hop routers) for this route are 7.7.7.2 and 7.7.7.3 and the
  2646.    route has a cost of 10 over 7.7.7.2 and 20 over 7.7.7.3.
  2647.  
  2648.       route:  128.7.0.0/16
  2649.       origin: AS1
  2650.       inject: at 7.7.7.1 action next-hop = 7.7.7.2; cost = 10; upon static
  2651.       inject: at 7.7.7.1 action next-hop = 7.7.7.3; cost = 20; upon static
  2652.  
  2653. 9 inet-rtr Class
  2654.  
  2655.    Routers are specified using the inet-rtr class.  The attributes of
  2656.    the inet-rtr class are shown in Figure 29.  The inet-rtr attribute is
  2657.    a valid DNS name of the router described.  Each alias attribute, if
  2658.    present, is a canonical DNS name for the router.  The local-as
  2659.    attribute specifies the AS number of the AS which owns/operates this
  2660.    router.
  2661.  
  2662.      Attribute  Value                    Type
  2663.      inet-rtr   <dns-name>               mandatory, single-valued,
  2664.                                            class key
  2665.      alias      <dns-name>               optional, multi-valued
  2666.      local-as   <as-number>              mandatory, single-valued
  2667.      ifaddr     see description in text  mandatory, multi-valued
  2668.      peer       see description in text  optional, multi-valued
  2669.  
  2670.  
  2671.                       Figure 29:  inet-rtr Class Attributes
  2672.  
  2673.    The value of an ifaddr attribute has the following syntax:
  2674.  
  2675.       <ipv4-address> masklen <integer> [action <action>]
  2676.  
  2677.    The IP address and the mask length are mandatory for each interface.
  2678.    Optionally an action can be specified to set other parameters of this
  2679.    interface.
  2680.  
  2681.    Figure 30 presents an example inet-rtr object.  The name of the
  2682.    router is "amsterdam.ripe.net".  "amsterdam1.ripe.net" is a canonical
  2683.    name for the router.  The router is connected to 4 networks.  Its IP
  2684.    addresses and mask lengths in those networks are specified in the
  2685.    ifaddr attributes.
  2686.  
  2687.  
  2688.  
  2689.  
  2690. Alaettinoglu, et. al.       Standards Track                    [Page 48]
  2691.  
  2692. RFC 2280                          RPSL                      January 1998
  2693.  
  2694.  
  2695.     inet-rtr: Amsterdam.ripe.net
  2696.     alias:    amsterdam1.ripe.net
  2697.     local-as: AS3333
  2698.     ifaddr:   192.87.45.190 masklen 24
  2699.     ifaddr:   192.87.4.28   masklen 24
  2700.     ifaddr:   193.0.0.222   masklen 27
  2701.     ifaddr:   193.0.0.158   masklen 27
  2702.     peer:     BGP4 192.87.45.195 asno(AS3334), flap_damp()
  2703.  
  2704.  
  2705.                            Figure 30:  inet-rtr Objects
  2706.  
  2707.    Each peer attribute, if present, specifies a protocol peering with
  2708.    another router.  The value of a peer attribute has the following
  2709.    syntax:
  2710.  
  2711.       <protocol> <ipv4-address> <options>
  2712.  
  2713.    where <protocol> is a protocol name, <ipv4-address> is the IP address
  2714.    of the peer router, and <options> is a comma separated list of
  2715.    peering options for <protocol>.  Possible protocol names and
  2716.    attributes are defined in the dictionary (please see Section 7).  In
  2717.    the above example, the router has a BGP peering with the router
  2718.    192.87.45.195 in AS3334 and turns the flap damping on when importing
  2719.    routes from this router.
  2720.  
  2721. 10 Security Considerations
  2722.  
  2723.    This document describes RPSL, a language for expressing routing
  2724.    policies.  The language defines a maintainer (mntner class) object
  2725.    which is the entity which controls or "maintains" the objects stored
  2726.    in a database expressed by RPSL. Requests from maintainers can be
  2727.    authenticated with various techniques as defined by the "auth"
  2728.    attribute of the maintainer object.
  2729.  
  2730.    The exact protocols used by IRR's to communicate RPSL objects is
  2731.    beyond the scope of this document, but it is envisioned that several
  2732.    techniques may be used, ranging from interactive query/update
  2733.    protocols to store and forward protocols similar to or based on
  2734.    electronic mail (or even voice telephone calls).  Regardless of which
  2735.    protocols are used in a given situation, it is expected that
  2736.    appropriate security techniques such as IPSEC, TLS or PGP/MIME will
  2737.    be utilized.
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746. Alaettinoglu, et. al.       Standards Track                    [Page 49]
  2747.  
  2748. RFC 2280                          RPSL                      January 1998
  2749.  
  2750.  
  2751. 11 Acknowledgements
  2752.  
  2753.    We would like to thank Jessica Yu, Randy Bush, Alan Barrett, David
  2754.    Kessens, Bill Manning, Sue Hares, Ramesh Govindan, Kannan Varadhan,
  2755.    Satish Kumar, Craig Labovitz, Rusty Eddy, David J. LeRoy, David
  2756.    Whipple, Jon Postel, Deborah Estrin, Elliot Schwartz, Joachim
  2757.    Schmitz, Mark Prior, Tony Przygienda, David Woodgate, and the
  2758.    participants of the IETF RPS Working Group for various comments and
  2759.    suggestions.
  2760.  
  2761. References
  2762.  
  2763.     [1] Internet Routing Registry. Procedures.
  2764.         http://www.ra.net/RADB.tools.docs/,
  2765.         http://www.ripe.net/db/doc.html.
  2766.  
  2767.     [2] Alaettinouglu, C., Meyer, D., and J.  Schmitz, "Application of
  2768.         Routing Policy Specification Language (RPSL) on the Internet",
  2769.         Work in Progress.
  2770.  
  2771.     [3] T.  Bates. Specifying an `Internet Router' in the Routing
  2772.         Registry.  Technical Report RIPE-122, RIPE, RIPE NCC, Amsterdam,
  2773.         Netherlands, October 1994.
  2774.  
  2775.     [4] T.  Bates, E.  Gerich, L. Joncheray, J-M. Jouanigot, D.
  2776.         Karrenberg, M.  Terpstra, and J.  Yu.  Representation of IP
  2777.         Routing Policies in a Routing Registry.  Technical Report ripe-
  2778.         181, RIPE, RIPE NCC, Amsterdam, Netherlands, October 1994.
  2779.  
  2780.     [5] Bates, T., Gerich, E., Joncheray, L., Jouanigot, J.M.,
  2781.         Karrenberg, D., Terpstra, M., and J.  Yu, "Representation of IP
  2782.         Routing Policies in a Routing Registry," RFC 1786, March 1995.
  2783.  
  2784.     [6] T. Bates, J-M. Jouanigot, D. Karrenberg, P. Lothberg, and
  2785.         M. Terpstra.  Representation of IP Routing Policies in the RIPE
  2786.         Database.  Technical Report ripe-81, RIPE, RIPE NCC, Amsterdam,
  2787.         Netherlands, February 1993.
  2788.  
  2789.     [7] Chandra, R., Traina, P., and T. Li, "BGP Communities Attribute,"
  2790.         RFC 1997, August 1996.
  2791.  
  2792.     [8] Crocker, D., "Standard for the format of ARPA Internet text
  2793.         messages, STD 11, RFC 822, August 1982.
  2794.  
  2795.     [9] V.  Fuller, T.  Li, J. Yu, and K. Varadhan.  Classless Inter-
  2796.         Domain Routing (CIDR): an Address Assignment and Aggregation
  2797.         Strategy, 1993.
  2798.  
  2799.  
  2800.  
  2801.  
  2802. Alaettinoglu, et. al.       Standards Track                    [Page 50]
  2803.  
  2804. RFC 2280                          RPSL                      January 1998
  2805.  
  2806.  
  2807.     [10] D. Karrenberg and T. Bates.  Description of Inter-AS Networks
  2808.          in the RIPE Routing Registry.  Technical Report RIPE-104, RIPE,
  2809.          RIPE NCC, Amsterdam, Netherlands, December 1993.
  2810.  
  2811.     [11] D.  Karrenberg and M.  Terpstra.  Authorisation and
  2812.          Notification of Changes in the RIPE Database. Technical Report
  2813.          ripe-120, RIPE, RIPE NCC, Amsterdam, Netherlands, October 1994.
  2814.  
  2815.     [12] B.  W.  Kernighan and D.  M.  Ritchie.  The C Programming
  2816.          Language. Prentice-Hall, 1978.
  2817.  
  2818.     [13] Kessens, D., Woeber, W., and D. Conrad, "RIDE referencing",
  2819.          Work in Progress.
  2820.  
  2821.     [14] A.  Lord and M.  Terpstra.  RIPE Database Template for
  2822.          Networks and Persons. Technical Report ripe-119, RIPE, RIPE
  2823.          NCC, Amsterdam, Netherlands, October 1994.
  2824.  
  2825.     [15] A.  M. R.  Magee.  RIPE NCC Database Documentation.  Technical
  2826.          Report RIPE-157, RIPE, RIPE NCC, Amsterdam, Netherlands, May
  2827.          1997.
  2828.  
  2829.     [16] Mockapetris, P., "Domain names - concepts and facilities,"
  2830.          STD 13, RFC 1034, November 1987.
  2831.  
  2832.     [17] Y.  Rekhter.  Inter-Domain Routing Protocol (IDRP).  Journal
  2833.          of Internetworking Research and Experience, 4:61--80, 1993.
  2834.  
  2835.     [18] Rekhter, Y., and T. Li, "A Border Gateway Protocol 4 (BGP-4),"
  2836.          RFC 1771, March 1995.
  2837.  
  2838.     [19] Villamizar, C., Chandra, R., and R. Govindan, "BGP Route
  2839.          Flap Damping", Work in Progress.
  2840.  
  2841. A Routing Registry Sites
  2842.  
  2843.    The set of routing registries as of November 1996 are RIPE, RADB,
  2844.    CANet, MCI and ANS. You may contact one of these registries to find
  2845.    out the current list of registries.
  2846.  
  2847.  
  2848.  
  2849.  
  2850.  
  2851.  
  2852.  
  2853.  
  2854.  
  2855.  
  2856.  
  2857.  
  2858. Alaettinoglu, et. al.       Standards Track                    [Page 51]
  2859.  
  2860. RFC 2280                          RPSL                      January 1998
  2861.  
  2862.  
  2863. B Authors' Addresses
  2864.  
  2865.    Cengiz Alaettinoglu
  2866.    USC Information Sciences Institute
  2867.    4676 Admiralty Way, Suite 1001
  2868.    Marina del Rey, CA  90292
  2869.    EMail: cengiz@isi.edu
  2870.  
  2871.  
  2872.    Tony Bates
  2873.    Cisco Systems, Inc.
  2874.    170 West Tasman Drive
  2875.    San Jose, CA 95134
  2876.    EMail: tbates@cisco.com
  2877.  
  2878.  
  2879.    Elise Gerich
  2880.    At Home Network
  2881.    385 Ravendale Drive
  2882.    Mountain View, CA 94043
  2883.    EMail: epg@home.net
  2884.  
  2885.  
  2886.    Daniel Karrenberg
  2887.    RIPE Network Coordination Centre (NCC)
  2888.    Kruislaan 409
  2889.    NL-1098 SJ Amsterdam
  2890.    Netherlands
  2891.    EMail: dfk@ripe.net
  2892.  
  2893.  
  2894.    David Meyer
  2895.    University of Oregon
  2896.    Eugene, OR 97403
  2897.    EMail: meyer@antc.uoregon.edu
  2898.  
  2899.  
  2900.    Marten Terpstra
  2901.    c/o Bay Networks, Inc.
  2902.    2 Federal St
  2903.    Billerica MA 01821
  2904.    EMail: marten@BayNetworks.com
  2905.  
  2906.  
  2907.    Curtis Villamizar
  2908.    ANS
  2909.    EMail: curtis@ans.net
  2910.  
  2911.  
  2912.  
  2913.  
  2914. Alaettinoglu, et. al.       Standards Track                    [Page 52]
  2915.  
  2916. RFC 2280                          RPSL                      January 1998
  2917.  
  2918.  
  2919. C  Full Copyright Statement
  2920.  
  2921.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  2922.  
  2923.    This document and translations of it may be copied and furnished to
  2924.    others, and derivative works that comment on or otherwise explain it
  2925.    or assist in its implementation may be prepared, copied, published
  2926.    and distributed, in whole or in part, without restriction of any
  2927.    kind, provided that the above copyright notice and this paragraph are
  2928.    included on all such copies and derivative works.  However, this
  2929.    document itself may not be modified in any way, such as by removing
  2930.    the copyright notice or references to the Internet Society or other
  2931.    Internet organizations, except as needed for the purpose of
  2932.    developing Internet standards in which case the procedures for
  2933.    copyrights defined in the Internet Standards process must be
  2934.    followed, or as required to translate it into languages other than
  2935.    English.
  2936.  
  2937.    The limited permissions granted above are perpetual and will not be
  2938.    revoked by the Internet Society or its successors or assigns.
  2939.  
  2940.    This document and the information contained herein is provided on an
  2941.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  2942.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  2943.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  2944.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  2945.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954.  
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970. Alaettinoglu, et. al.       Standards Track                    [Page 53]
  2971.  
  2972.