home *** CD-ROM | disk | FTP | other *** search
/ Internet Core Protocols / Oreilly-InternetCoreProtocols.iso / RFCs / rfc2362.txt < prev    next >
Encoding:
Text File  |  1999-10-14  |  159.7 KB  |  3,700 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                       D.  Estrin
  8. Request for Comments: 2362                                         USC
  9. Obsoletes: 2117                                           D. Farinacci
  10. Category: Experimental                                           CISCO
  11.                                                               A. Helmy
  12.                                                                    USC
  13.                                                              D. Thaler
  14.                                                                  UMICH
  15.                                                             S. Deering
  16.                                                                  XEROX
  17.                                                             M. Handley
  18.                                                                    UCL
  19.                                                            V. Jacobson
  20.                                                                    LBL
  21.                                                                 C. Liu
  22.                                                                    USC
  23.                                                              P. Sharma
  24.                                                                    USC
  25.                                                                 L. Wei
  26.                                                                  CISCO
  27.                                                              June 1998
  28.  
  29.  
  30.      Protocol Independent Multicast-Sparse Mode (PIM-SM): Protocol
  31.                              Specification
  32.  
  33. Status of this Memo
  34.  
  35.    This memo defines an Experimental Protocol for the Internet
  36.    community.  It does not specify an Internet standard of any kind.
  37.    Discussion and suggestions for improvement are requested.
  38.    Distribution of this memo is unlimited.
  39.  
  40. Copyright Notice
  41.  
  42.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Estrin, et. al.               Experimental                      [Page 1]
  59.  
  60. RFC 2362                         PIM-SM                        June 1998
  61.  
  62.  
  63. 1 Introduction
  64.  
  65.    This document describes a protocol for efficiently routing to
  66.    multicast groups that may span wide-area (and inter-domain)
  67.    internets.  We refer to the approach as Protocol Independent
  68.    Multicast--Sparse Mode (PIM-SM) because it is not dependent on any
  69.    particular unicast routing protocol, and because it is designed to
  70.    support sparse groups as defined in [1][2]. This document describes
  71.    the protocol details. For the motivation behind the design and a
  72.    description of the architecture, see [1][2]. Section 2 summarizes
  73.    PIM-SM operation.  It describes the protocol from a network
  74.    perspective, in particular, how the participating routers interact to
  75.    create and maintain the multicast distribution tree.  Section 3
  76.    describes PIM-SM operations from the perspective of a single router
  77.    implementing the protocol; this section constitutes the main body of
  78.    the protocol specification.  It is organized according to PIM-SM
  79.    message type; for each message type we describe its contents, its
  80.    generation, and its processing.
  81.  
  82.    Sections 3.8 and 3.9 summarize the timers and flags referred to
  83.    throughout this document. Section 4 provides packet format details.
  84.  
  85.    The most significant functional changes since the January '95 version
  86.    involve the Rendezvous Point-related mechanisms, several resulting
  87.    simplifications to the protocol, and removal of the PIM-DM protocol
  88.    details to a separate document [3] (for clarity).
  89.  
  90. 2 PIM-SM Protocol Overview
  91.  
  92.    In this section we provide an overview of the architectural
  93.    components of PIM-SM.
  94.  
  95.    A router receives explicit Join/Prune messages from those neighboring
  96.    routers that have downstream group members. The router then forwards
  97.    data packets addressed to a multicast group, G, only onto those
  98.    interfaces on which explicit joins have been received. Note that all
  99.    routers mentioned in this document are assumed to be PIM-SM capable,
  100.    unless otherwise specified.
  101.  
  102.    A Designated Router (DR) sends periodic Join/Prune messages toward a
  103.    group-specific Rendezvous Point (RP) for each group for which it has
  104.    active members. Each router along the path toward the RP builds a
  105.    wildcard (any-source) state for the group and sends Join/Prune
  106.    messages on toward the RP. We use the term route entry to refer to
  107.    the state maintained in a router to represent the distribution tree.
  108.    A route entry may include such fields as the source address, the
  109.    group address, the incoming interface from which packets are
  110.    accepted, the list of outgoing interfaces to which packets are sent,
  111.  
  112.  
  113.  
  114. Estrin, et. al.               Experimental                      [Page 2]
  115.  
  116. RFC 2362                         PIM-SM                        June 1998
  117.  
  118.  
  119.    timers, flag bits, etc. The wildcard route entry's incoming interface
  120.    points toward the RP; the outgoing interfaces point to the
  121.    neighboring downstream routers that have sent Join/Prune messages
  122.    toward the RP. This state creates a shared, RP-centered, distribution
  123.    tree that reaches all group members. When a data source first sends
  124.    to a group, its DR unicasts Register messages to the RP with the
  125.    source's data packets encapsulated within. If the data rate is high,
  126.    the RP can send source-specific Join/Prune messages back towards the
  127.    source and the source's data packets will follow the resulting
  128.    forwarding state and travel unencapsulated to the RP.  Whether they
  129.    arrive encapsulated or natively, the RP forwards the source's
  130.    decapsulated data packets down the RP-centered distribution tree
  131.    toward group members.  If the data rate warrants it, routers with
  132.    local receivers can join a source-specific, shortest path,
  133.    distribution tree, and prune this source's packets off of the shared
  134.    RP-centered tree. For low data rate sources, neither the RP, nor
  135.    last-hop routers need join a source-specific shortest path tree and
  136.    data packets can be delivered via the shared, RP-tree.
  137.  
  138.    The following subsections describe SM operation in more detail, in
  139.    particular, the control messages, and the actions they trigger.
  140.  
  141. 2.1 Local hosts joining a group
  142.  
  143.    In order to join a multicast group, G, a host conveys its membership
  144.    information through the Internet Group Management Protocol (IGMP), as
  145.    specified in [4][5], (see figure 1). From this point on we refer to
  146.    such a host as a receiver, R, (or member) of the group G.
  147.  
  148.    Note that all figures used in this section are for illustration and
  149.    are not intended to be complete. For complete and detailed protocol
  150.    action see Section 3.
  151.  
  152.            [Figures are present only in the postscript version]
  153.        Fig. 1 Example: how a receiver joins, and sets up shared tree
  154.  
  155.    When a DR (e.g., router A in figure 1) gets a membership indication
  156.    from IGMP for a new group, G, the DR looks up the associated RP. The
  157.    DR creates a wildcard multicast route entry for the group, referred
  158.    to here as a (*,G) entry; if there is no more specific match for a
  159.    particular source, the packet will be forwarded according to this
  160.    entry.
  161.  
  162.    The RP address is included in a special field in the route entry and
  163.    is included in periodic upstream Join/Prune messages. The outgoing
  164.    interface is set to that included in the IGMP membership indication
  165.    for the new member. The incoming interface is set to the interface
  166.    used to send unicast packets to the RP.
  167.  
  168.  
  169.  
  170. Estrin, et. al.               Experimental                      [Page 3]
  171.  
  172. RFC 2362                         PIM-SM                        June 1998
  173.  
  174.  
  175.    When there are no longer directly connected members for the group,
  176.    IGMP notifies the DR.  If the DR has neither local members nor
  177.    downstream receivers, the (*,G) state is deleted.
  178.  
  179. 2.2 Establishing the RP-rooted shared tree
  180.  
  181.    Triggered by the (*,G) state, the DR creates a Join/Prune message
  182.    with the RP address in its join list and the the wildcard bit (WC-
  183.    bit) and RP-tree bit (RPT-bit) set to 1. The WC-bit indicates that
  184.    any source may match and be forwarded according to this entry if
  185.    there is no longer match; the RPT-bit indicates that this join is
  186.    being sent up the shared, RP-tree. The prune list is left empty. When
  187.    the RPT-bit is set to 1 it indicates that the join is associated with
  188.    the shared RP-tree and therefore the Join/Prune message is propagated
  189.    along the RP-tree. When the WC-bit is set to 1 it indicates that the
  190.    address is an RP and the downstream receivers expect to receive
  191.    packets from all sources via this (shared tree) path. The term RPT-
  192.    bit is used to refer to both the RPT-bit flags associated with route
  193.    entries, and the RPT-bit included in each encoded address in a
  194.    Join/Prune message.
  195.  
  196.    Each upstream router creates or updates its multicast route entry for
  197.    (*,G) when it receives a Join/Prune with the RPT-bit and WC-bit set.
  198.    The interface on which the Join/Prune message arrived is added to the
  199.    list of outgoing interfaces (oifs) for (*,G). Based on this entry
  200.    each upstream router between the receiver and the RP sends a
  201.    Join/Prune message in which the join list includes the RP. The packet
  202.    payload contains Multicast-Address=G, Join=RP,WC-bit,RPT-bit,
  203.    Prune=NULL.
  204.  
  205. 2.3 Hosts sending to a group
  206.  
  207.    When a host starts sending multicast data packets to a group,
  208.    initially its DR must deliver each packet to the RP for distribution
  209.    down the RP-tree (see figure 2).  The sender's DR initially
  210.    encapsulates each data packet in a Register message and unicasts it
  211.    to the RP for that group. The RP decapsulates each Register message
  212.    and forwards the enclosed data packet natively to downstream members
  213.    on the shared RP-tree.
  214.  
  215.            [Figures are present only in the postscript version]
  216.                 Fig. 2  Example: a host sending to a group
  217.  
  218.    If the data rate of the source warrants the use of a source-specific
  219.    shortest path tree (SPT), the RP may construct a new multicast route
  220.    entry that is specific to the source, hereafter referred to as (S,G)
  221.    state, and send periodic Join/Prune messages toward the source. Note
  222.    that over time, the rules for when to switch can be modified without
  223.  
  224.  
  225.  
  226. Estrin, et. al.               Experimental                      [Page 4]
  227.  
  228. RFC 2362                         PIM-SM                        June 1998
  229.  
  230.  
  231.    global coordination.  When and if the RP does switch to the SPT, the
  232.    routers between the source and the RP build and maintain (S,G) state
  233.    in response to these messages and send (S,G) messages upstream toward
  234.    the source.
  235.  
  236.    The source's DR must stop encapsulating data packets in Registers
  237.    when (and so long as) it receives Register-Stop messages from the RP.
  238.    The RP triggers Register-Stop messages in response to Registers, if
  239.    the RP has no downstream receivers for the group (or for that
  240.    particular source), or if the RP has already joined the (S,G) tree
  241.    and is receiving the data packets natively.  Each source's DR
  242.    maintains, per (S,G), a Register-Suppression-timer.  The Register-
  243.    Suppression-timer is started by the Register-Stop message; upon
  244.    expiration, the source's DR resumes sending data packets to the RP,
  245.    encapsulated in Register messages.
  246.  
  247. 2.4 Switching from shared tree (RP-tree)  to  shortest  path  tree
  248.    (SP-tree)}
  249.  
  250.    A router with directly-connected members first joins the shared RP-
  251.    tree.  The router can switch to a source's shortest path tree (SP-
  252.    tree) after receiving packets from that source over the shared RP-
  253.    tree. The recommended policy is to initiate the switch to the SP-tree
  254.    after receiving a significant number of data packets during a
  255.    specified time interval from a particular source. To realize this
  256.    policy the router can monitor data packets from sources for which it
  257.    has no source-specific multicast route entry and initiate such an
  258.    entry when the data rate exceeds the configured threshold.  As shown
  259.    in figure 3, router `A' initiates a (S,G) state.
  260.  
  261.            [Figures are present only in the postscript version]
  262.      Fig. 3 Example: Switching from shared tree to shortest path tree
  263.  
  264.    When a (S,G) entry is activated (and periodically so long as the
  265.    state exists), a Join/Prune message is sent upstream towards the
  266.    source, S, with S in the join list. The payload contains Multicast-
  267.    Address=G, Join=S, Prune=NULL. When the (S,G) entry is created, the
  268.    outgoing interface list is copied from (*,G), i.e., all local shared
  269.    tree branches are replicated in the new shortest path tree. In this
  270.    way when a data packet from S arrives and matches on this entry, all
  271.    receivers will continue to receive the source's packets along this
  272.    path. (In more complicated scenarios, other entries in the router
  273.    have to be considered, as described in Section 3). Note that (S,G)
  274.    state must be maintained in each last-hop router that is responsible
  275.    for initiating and maintaining an SP-tree. Even when (*,G) and (S,G)
  276.    overlap, both states are needed to trigger the source-specific
  277.    Join/Prune messages.  (S,G) state is kept alive by data packets
  278.    arriving from that source. A timer, Entry-timer, is set for the (S,G)
  279.  
  280.  
  281.  
  282. Estrin, et. al.               Experimental                      [Page 5]
  283.  
  284. RFC 2362                         PIM-SM                        June 1998
  285.  
  286.  
  287.    entry and this timer is restarted whenever data packets for (S,G) are
  288.    forwarded out at least one oif, or Registers are sent.  When the
  289.    Entry-timer expires, the state is deleted. The last-hop router is the
  290.    router that delivers the packets to their ultimate end-system
  291.    destination.  This is the router that monitors if there is group
  292.    membership and joins or prunes the appropriate distribution trees in
  293.    response.  In general the last-hop router is the Designated Router
  294.    (DR) for the LAN. However, under various conditions described later,
  295.    a parallel router connected to the same LAN may take over as the
  296.    last-hop router in place of the DR.
  297.  
  298.    Only the RP and routers with local members can initiate switching to
  299.    the SP-tree; intermediate routers do not. Consequently, last-hop
  300.    routers create (S,G) state in response to data packets from the
  301.    source, S; whereas intermediate routers only create (S,G) state in
  302.    response to Join/Prune messages from downstream that have S in the
  303.    Join list.
  304.  
  305.    The (S,G) entry is initialized with the SPT-bit cleared, indicating
  306.    that the shortest path tree branch from S has not yet been setup
  307.    completely, and the router can still accept packets from S that
  308.    arrive on the (*,G) entry's indicated incoming interface (iif). Each
  309.    PIM multicast entry has an associated incoming interface on which
  310.    packets are expected to arrive.
  311.  
  312.    When a router with a (S,G) entry and a cleared SPT-bit starts to
  313.    receive packets from the new source S on the iif for the (S,G) entry,
  314.    and that iif differs from the (*,G) entry's iif, the router sets the
  315.    SPT-bit, and sends a Join/Prune message towards the RP, indicating
  316.    that the router no longer wants to receive packets from S via the
  317.    shared RP-tree. The Join/Prune message sent towards the RP includes S
  318.    in the prune list, with the RPT-bit set indicating that S's packets
  319.    must not be forwarded down this branch of the shared tree. If the
  320.    router receiving the Join/Prune message has (S,G) state (with or
  321.    without the route entry's RPT-bit flag set), it deletes the arriving
  322.    interface from the (S,G) oif list.  If the router has only (*,G)
  323.    state, it creates an entry with the RPT-bit flag set to 1. For
  324.    brevity we refer to an (S,G) entry that has the RPT-bit flag set to 1
  325.    as an (S,G)RPT-bit entry. This notational distinction is useful to
  326.    point out the different actions taken for (S,G) entries depending on
  327.    the setting of the RPT-bit flag. Note that a router can have no more
  328.    than one active (S,G) entry for any particular S and G, at any
  329.    particular time; whether the RPT-bit flag is set or not. In other
  330.    words, a router never has both an (S,G) and an (S,G)RPT-bit entry for
  331.    the same S and G at the same time. The Join/Prune message payload
  332.    contains Multicast-Address=G, Join=NULL, Prune=S,RPT-bit.
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Estrin, et. al.               Experimental                      [Page 6]
  339.  
  340. RFC 2362                         PIM-SM                        June 1998
  341.  
  342.  
  343.    A new receiver may join an existing RP-tree on which source-specific
  344.    prune state has been established (e.g., because downstream receivers
  345.    have switched to SP-trees). In this case the prune state must be
  346.    eradicated upstream of the new receiver to bring all sources' data
  347.    packets down to the new receiver. Therefore, when a (*,G) Join
  348.    arrives at a router that has any (Si,G)RPT-bit entries (i.e., entries
  349.    that cause the router to send source-specific prunes toward the RP),
  350.    these entries must be updated upstream of the router so as to bring
  351.    all sources' packets down to the new member. To accomplish this, each
  352.    router that receives a (*,G) Join/Prune message updates all existing
  353.    (S,G)RPT-bit entries. The router may also trigger a (*,G) Join/Prune
  354.    message upstream to cause the same updating of RPT-bit settings
  355.    upstream and pull down all active sources' packets. If the arriving
  356.    (*,G) join has some sources included in its prune list, then the
  357.    corresponding (S,G)RPT-bit entries are left unchanged (i.e., the
  358.    RPT-bit remains set and no oif is added).
  359.  
  360. 2.5 Steady state maintenance of distribution tree (i.e., router state)}
  361.  
  362.    In the steady state each router sends periodic Join/Prune messages
  363.    for each active PIM route entry; the Join/Prune messages are sent to
  364.    the neighbor indicated in the corresponding entry. These messages are
  365.    sent periodically to capture state, topology, and membership changes.
  366.    A Join/Prune message is also sent on an event-triggered basis each
  367.    time a new route entry is established for some new source (note that
  368.    some damping function may be applied, e.g., a short delay to allow
  369.    for merging of new Join information). Join/Prune messages do not
  370.    elicit any form of explicit acknowledgment; routers recover from lost
  371.    packets using the periodic refresh mechanism.
  372.  
  373. 2.6 Obtaining RP information
  374.  
  375.    To obtain the RP information, all routers within a PIM domain collect
  376.    Bootstrap messages. Bootstrap messages are sent hop-by-hop within the
  377.    domain; the domain's bootstrap router (BSR) is responsible for
  378.    originating the Bootstrap messages. Bootstrap messages are used to
  379.    carry out a dynamic BSR election when needed and to distribute RP
  380.    information in steady state.
  381.  
  382.    A domain in this context is a contiguous set of routers that all
  383.    implement PIM and are configured to operate within a common boundary
  384.    defined by PIM Multicast Border Routers (PMBRs). PMBRs connect each
  385.    PIM domain to the rest of the internet.
  386.  
  387.    Routers use a set of available RPs (called the RP-Set) distributed in
  388.    Bootstrap messages to get the proper Group to RP mapping. The
  389.    following paragraphs summarize the mechanism; details of the
  390.    mechanism may be found in Sections 3.6 and Appendix 6.2. A (small)
  391.  
  392.  
  393.  
  394. Estrin, et. al.               Experimental                      [Page 7]
  395.  
  396. RFC 2362                         PIM-SM                        June 1998
  397.  
  398.  
  399.    set of routers, within a domain, are configured as candidate BSRs
  400.    and, through a simple election mechanism, a single BSR is selected
  401.    for that domain. A set of routers within a domain are also configured
  402.    as candidate RPs (C-RPs); typically these will be the same routers
  403.    that are configured as C-BSRs.  Candidate RPs periodically unicast
  404.    Candidate-RP-Advertisement messages (C-RP-Advs) to the BSR of that
  405.    domain. C-RP-Advs include the address of the advertising C-RP, as
  406.    well as an optional group address and a mask length field, indicating
  407.    the group prefix(es) for which the candidacy is advertised. The BSR
  408.    then includes a set of these Candidate-RPs (the RP-Set), along with
  409.    the corresponding group prefixes, in Bootstrap messages it
  410.    periodically originates.  Bootstrap messages are distributed hop-by-
  411.    hop throughout the domain.
  412.  
  413.    Routers receive and store Bootstrap messages originated by the BSR.
  414.    When a DR gets a membership indication from IGMP for (or a data
  415.    packet from) a directly connected host, for a group for which it has
  416.    no entry, the DR uses a hash function to map the group address to one
  417.    of the C-RPs whose Group-prefix includes the group (see Section 3.7).
  418.    The DR then sends a Join/Prune message towards (or unicasts Registers
  419.    to) that RP.
  420.  
  421.    The Bootstrap message indicates liveness of the RPs included therein.
  422.    If an RP is included in the message, then it is tagged as `up' at the
  423.    routers; while RPs not included in the message are removed from the
  424.    list of RPs over which the hash algorithm acts. Each router continues
  425.    to use the contents of the most recently received Bootstrap message
  426.    until it receives a new Bootstrap message.
  427.  
  428.    If a PIM domain partitions, each area separated from the old BSR will
  429.    elect its own BSR, which will distribute an RP-Set containing RPs
  430.    that are reachable within that partition. When the partition heals,
  431.    another election will occur automatically and only one of the BSRs
  432.    will continue to send out Bootstrap messages. As is expected at the
  433.    time of a partition or healing, some disruption in packet delivery
  434.    may occur. This time will be on the order of the region's round-trip
  435.    time and the bootstrap router timeout value.
  436.  
  437. 2.7 Interoperation with dense mode  protocols such as DVMRP
  438.  
  439.    In order to interoperate with networks that run dense-mode, broadcast
  440.    and prune, protocols, such as DVMRP, all packets generated within a
  441.    PIM-SM region must be pulled out to that region's PIM Multicast
  442.    Border Routers (PMBRs) and injected (i.e., broadcast) into the DVMRP
  443.    network. A PMBR is a router that sits at the boundary of a PIM-SM
  444.    domain and interoperates with other types of multicast routers such
  445.    as those that run DVMRP.  Generally a PMBR would speak both protocols
  446.    and implement interoperability functions not required by regular PIM
  447.  
  448.  
  449.  
  450. Estrin, et. al.               Experimental                      [Page 8]
  451.  
  452. RFC 2362                         PIM-SM                        June 1998
  453.  
  454.  
  455.    routers. To support interoperability, a special entry type, referred
  456.    to as (*,*,RP), must be supported by all PIM routers.  For this
  457.    reason we include details about (*,*,RP) entry handling in this
  458.    general PIM specification.
  459.  
  460.    A data packet will match on a (*,*,RP) entry if there is no more
  461.    specific entry (such as (S,G) or (*,G)) and the destination group
  462.    address in the packet maps to the RP listed in the (*,*,RP) entry. In
  463.    this sense, a (*,*,RP) entry represents an aggregation of all the
  464.    groups that hash to that RP. PMBRs initialize (*,*,RP) state for each
  465.    RP in the domain's RPset. The (*,*,RP) state causes the PMBRs to send
  466.    (*,*,RP) Join/Prune messages toward each of the active RPs in the
  467.    domain.  As a result distribution trees are built that carry all data
  468.    packets originated within the PIM domain (and sent to the RPs) down
  469.    to the PMBRs.
  470.  
  471.    PMBRs are also responsible for delivering externally-generated
  472.    packets to routers within the PIM domain. To do so, PMBRs initially
  473.    encapsulate externally-originated packets (i.e., received on DVMRP
  474.    interfaces) in Register messages and unicast them to the
  475.    corresponding RP within the PIM domain. The Register message has a
  476.    bit indicating that it was originated by a border router and the RP
  477.    caches the originating PMBR's address in the route entry so that
  478.    duplicate Registers from other PMBRs can be declined with a
  479.    Register-Stop message.
  480.  
  481.    All PIM routers must be capable of supporting (*,*,RP) state and
  482.    interpreting associated Join/Prune messages. We describe the handling
  483.    of (*,*,RP) entries and messages throughout this document; however,
  484.    detailed PIM Multicast Border Router (PMBR) functions will be
  485.    specified in a separate interoperability document (see directory,
  486.    http://catarina.usc.edu/pim/interop/).
  487.  
  488. 2.8 Multicast data packet processing
  489.  
  490.    Data packets are processed in a manner similar to other multicast
  491.    schemes.  A router first performs a longest match on the source and
  492.    group address in the data packet. A (S,G) entry is matched first if
  493.    one exists; a (*,G) entry is matched otherwise. If neither state
  494.    exists, then a (*,*,RP) entry match is attempted as follows: the
  495.    router hashes on G to identify the RP for group G, and looks for a
  496.    (*,*,RP) entry that has this RP address associated with it. If none
  497.    of the above exists, then the packet is dropped. If a state is
  498.    matched, the router compares the interface on which the packet
  499.    arrived to the incoming interface field in the matched route entry.
  500.    If the iif check fails the packet is dropped, otherwise the packet is
  501.    forwarded to all interfaces listed in the outgoing interface list.
  502.  
  503.  
  504.  
  505.  
  506. Estrin, et. al.               Experimental                      [Page 9]
  507.  
  508. RFC 2362                         PIM-SM                        June 1998
  509.  
  510.  
  511.    Some special actions are needed to deliver packets continuously while
  512.    switching from the shared to shortest-path tree. In particular, when
  513.    a (S,G) entry is matched, incoming packets are forwarded as follows:
  514.  
  515.       1 If the SPT-bit is set, then:
  516.  
  517.            1 if the incoming interface is the same as a matching
  518.              (S,G) iif, the packet is forwarded to the oif-list of
  519.              (S,G).
  520.  
  521.            2 if the incoming interface is different than a matching
  522.              (S,G) iif , the packet is discarded.
  523.  
  524.       2 If the SPT-bit is cleared, then:
  525.  
  526.            1 if the incoming interface is the same as a matching
  527.              (S,G) iif, the packet is forwarded to the oif-list of
  528.              (S,G). In addition, the SPT bit is set for that entry if
  529.              the incoming interface differs from the incoming interface
  530.              of the (*,G) or (*,*,RP) entry.
  531.  
  532.            2 if the incoming interface is different than a matching
  533.              (S,G) iif, the incoming interface is tested against a
  534.              matching (*,G) or (*,*,RP) entry. If the iif is the same as
  535.              one of those, the packet is forwarded to the oif-list of
  536.              the matching entry.
  537.  
  538.            3 Otherwise the iif does not match any entry for G and
  539.              the packet is discarded.
  540.  
  541.    Data packets never trigger prunes.  However, data packets may trigger
  542.    actions that in turn trigger prunes. For example, when router B in
  543.    figure 3 decides to switch to SP-tree at step 3, it creates a (S,G)
  544.    entry with SPT-bit set to 0. When data packets from S arrive at
  545.    interface 2 of B, B sets the SPT-bit to 1 since the iif for (*,G) is
  546.    different than that for (S,G). This triggers the sending of prunes
  547.    towards the RP.
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562. Estrin, et. al.               Experimental                     [Page 10]
  563.  
  564. RFC 2362                         PIM-SM                        June 1998
  565.  
  566.  
  567. 2.9 Operation over Multi-access Networks
  568.  
  569.    This section describes a few additional protocol mechanisms needed to
  570.    operate PIM over multi-access networks: Designated Router election,
  571.    Assert messages to resolve parallel paths, and the Join/Prune-
  572.    Suppression-Timer to suppress redundant Joins on multi-access
  573.    networks.
  574.  
  575.    Designated router election:
  576.  
  577.    When there are multiple routers connected to a multi-access network,
  578.    one of them must be chosen to operate as the designated router (DR)
  579.    at any point in time.  The DR is responsible for sending triggered
  580.    Join/Prune and Register messages toward the RP.
  581.  
  582.    A simple designated router (DR) election mechanism is used for both
  583.    SM and traditional IP multicast routing.  Neighboring routers send
  584.    Hello messages to each other. The sender with the largest network
  585.    layer address assumes the role of DR. Each router connected to the
  586.    multi-access LAN sends the Hellos periodically in order to adapt to
  587.    changes in router status.
  588.  
  589.    Parallel paths to a source or the RP--Assert process:
  590.  
  591.    If a router receives a multicast datagram on a multi-access LAN from
  592.    a source whose corresponding (S,G) outgoing interface list includes
  593.    the interface to that LAN, the packet must be a duplicate.  In this
  594.    case a single forwarder must be elected.  Using Assert messages
  595.    addressed to `224.0.0.13' (ALL-PIM-ROUTERS group) on the LAN,
  596.    upstream routers can resolve which one will act as the forwarder.
  597.    Downstream routers listen to the Asserts so they know which one was
  598.    elected, and therefore where to send subsequent Joins. Typically this
  599.    is the same as the downstream router's RPF (Reverse Path Forwarding)
  600.    neighbor; but there are circumstances where this might not be the
  601.    case, e.g., when using multiple unicast routing protocols on that
  602.    LAN. The RPF neighbor for a particular source (or RP) is the next-hop
  603.    router to which packets are forwarded en route to that source (or
  604.    RP); and therefore is considered a good path via which to accept
  605.    packets from that source.
  606.  
  607.    The upstream router elected is the one that has the shortest distance
  608.    to the source. Therefore, when a packet is received on an outgoing
  609.    interface a router sends an Assert message on the multi-access LAN
  610.    indicating what metric it uses to reach the source of the data
  611.    packet. The router with the smallest numerical metric (with ties
  612.    broken by highest address) will become the forwarder. All other
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Estrin, et. al.               Experimental                     [Page 11]
  619.  
  620. RFC 2362                         PIM-SM                        June 1998
  621.  
  622.  
  623.    upstream routers will delete the interface from their outgoing
  624.    interface list. The downstream routers also do the comparison in case
  625.    the forwarder is different than the RPF neighbor.
  626.  
  627.    Associated with the metric is a metric preference value. This is
  628.    provided to deal with the case where the upstream routers may run
  629.    different unicast routing protocols. The numerically smaller metric
  630.    preference is always preferred. The metric preference is treated as
  631.    the high-order part of an assert metric comparison.  Therefore, a
  632.    metric value can be compared with another metric value provided both
  633.    metric preferences are the same.  A metric preference can be assigned
  634.    per unicast routing protocol and needs to be consistent for all
  635.    routers on the multi-access network.
  636.  
  637.    Asserts are also needed for (*,G) entries since an RP-Tree and an
  638.    SP-Tree for the same group may both cross the same multi-access
  639.    network. When an assert is sent for a (*,G) entry, the first bit in
  640.    the metric preference (RPT-bit) is always set to 1 to indicate that
  641.    this path corresponds to the RP tree, and that the match must be done
  642.    on (*,G) if it exists. Furthermore, the RPT-bit is always cleared for
  643.    metric preferences that refer to SP-tree entries; this causes an SP-
  644.    tree path to always look better than an RP-tree path. When the SP-
  645.    tree and RPtree cross the same LAN, this mechanism eliminates the
  646.    duplicates that would otherwise be carried over the LAN.
  647.  
  648.    In case the packet, or the Assert message, matches on oif for
  649.    (*,*,RP) entry, a (*,G) entry is created, and asserts take place as
  650.    if the matching state were (*,G).
  651.  
  652.    The DR may lose the (*,G) Assert process to another router on the LAN
  653.    if there are multiple paths to the RP through the LAN.  From then on,
  654.    the DR is no longer the last-hop router for local receivers and
  655.    removes the LAN from its (*,G) oif list. The winning router becomes
  656.    the last-hop router and is responsible for sending (*,G) join
  657.    messages to the RP.
  658.  
  659.    Join/Prune suppression:
  660.  
  661.    Join/Prune suppression may be used on multi-access LANs to reduce
  662.    duplicate control message overhead; it is not required for correct
  663.    performance of the protocol. If a Join/Prune message arrives and
  664.    matches on the incoming interface for an existing (S,G), (*,G), or
  665.    (*,*,RP) route entry, and the Holdtime included in the Join/Prune
  666.    message is greater than the recipient's own [Join/Prune-Holdtime]
  667.    (with ties resolved in favor of the higher network layer address), a
  668.    timer (the Join/Prune-Suppression-timer) in the recipient's route
  669.    entry may be started to suppress further Join/Prune messages. After
  670.    this timer expires, the recipient triggers a Join/Prune message, and
  671.  
  672.  
  673.  
  674. Estrin, et. al.               Experimental                     [Page 12]
  675.  
  676. RFC 2362                         PIM-SM                        June 1998
  677.  
  678.  
  679.    resumes sending periodic Join/Prunes, for this entry. The
  680.    Join/Prune-Suppression-timer should be restarted each time a
  681.    Join/Prune message is received with a higher Holdtime.
  682.  
  683. 2.10 Unicast Routing Changes
  684.  
  685.    When unicast routing changes, an RPF check is done on all active
  686.    (S,G), (*,G) and (*,*,RP) entries, and all affected expected incoming
  687.    interfaces are updated.  In particular, if the new incoming interface
  688.    appears in the outgoing interface list, it is deleted from the
  689.    outgoing interface list. The previous incoming interface may be added
  690.    to the outgoing interface list by a subsequent Join/Prune from
  691.    downstream.  Join/Prune messages received on the current incoming
  692.    interface are ignored.  Join/Prune messages received on new
  693.    interfaces or existing outgoing interfaces are not ignored. Other
  694.    outgoing interfaces are left as is until they are explicitly pruned
  695.    by downstream routers or are timed out due to lack of appropriate
  696.    Join/Prune messages. If the router has a (S,G) entry with the SPT-bit
  697.    set, and the updated iif(S,G) does not differ from iif(*,G) or
  698.    iif(*,*,RP), then the router resets the SPT-bit.
  699.  
  700.    The router must send a Join/Prune message with S in the Join list out
  701.    any new incoming interfaces to inform upstream routers that it
  702.    expects multicast datagrams over the interface.  It may also send a
  703.    Join/Prune message with S in the Prune list out the old incoming
  704.    interface, if the link is operational, to inform upstream routers
  705.    that this part of the distribution tree is going away.
  706.  
  707. 2.11 PIM-SM for Inter-Domain Multicast
  708.  
  709.    Future documents will address the use of PIM-SM as a backbone inter-
  710.    domain multicast routing protocol. Design choices center primarily
  711.    around the distribution and usage of RP information for wide area,
  712.    inter-domain groups.
  713.  
  714. 2.12 Security
  715.  
  716.    All PIM control messages may use IPsec [6] to address security
  717.    concerns.  Security mechanisms are likely to be enhanced in the near
  718.    future.
  719.  
  720. 3 Detailed Protocol Description
  721.  
  722.    This section describes the protocol operations from the perspective
  723.    of an individual router implementation.  In particular, for each
  724.    message type we describe how it is generated and processed.
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Estrin, et. al.               Experimental                     [Page 13]
  731.  
  732. RFC 2362                         PIM-SM                        June 1998
  733.  
  734.  
  735. 3.1 Hello
  736.  
  737.    Hello messages are sent so neighboring routers can discover each
  738.    other.
  739.  
  740. 3.1.1 Sending Hellos
  741.  
  742.    Hello messages are sent periodically between PIM neighbors, every
  743.    [Hello-Period] seconds.  This informs routers what interfaces have
  744.    PIM neighbors.  Hello messages are multicast using address 224.0.0.13
  745.    (ALL-PIM-ROUTERS group). The packet includes a Holdtime, set to
  746.    [Hello-Holdtime], for neighbors to keep the information valid. Hellos
  747.    are sent on all types of communication links.
  748.  
  749. 3.1.2 Receiving Hellos
  750.  
  751.    When a router receives a Hello message, it stores the network layer
  752.    address for that neighbor, sets its Neighbor-timer for the Hello
  753.    sender to the Holdtime included in the Hello, and determines the
  754.    Designated Router (DR) for that interface. The highest addressed
  755.    system is elected DR.  Each Hello received causes the DR's address to
  756.    be updated.
  757.  
  758.    When a router that is the active DR receives a Hello from a new
  759.    neighbor (i.e., from an address that is not yet in the DRs neighbor
  760.    table), the DR unicasts its most recent RP-set information to the new
  761.    neighbor.
  762.  
  763. 3.1.3 Timing out neighbor entries
  764.  
  765.    A periodic process is run to time out PIM neighbors that have not
  766.    sent Hellos. If the DR has gone down, a new DR is chosen by scanning
  767.    all neighbors on the interface and selecting the new DR to be the one
  768.    with the highest network layer address. If an interface has gone
  769.    down, the router may optionally time out all PIM neighbors associated
  770.    with the interface.
  771.  
  772. 3.2 Join/Prune
  773.  
  774.    Join/Prune messages are sent to join or prune a branch off of the
  775.    multicast distribution tree. A single message contains both a join
  776.    and prune list, either one of which may be null.  Each list contains
  777.    a set of source addresses, indicating the source-specific trees or
  778.    shared tree that the router wants to join or prune.
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Estrin, et. al.               Experimental                     [Page 14]
  787.  
  788. RFC 2362                         PIM-SM                        June 1998
  789.  
  790.  
  791. 3.2.1 Sending Join/Prune Messages
  792.  
  793.    Join/Prune messages are merged such that a message sent to a
  794.    particular upstream neighbor, N, includes all of the current joined
  795.    and pruned sources that are reached via N; according to unicast
  796.    routing Join/Prune messages are multicast to all routers on multi-
  797.    access networks with the target address set to the next hop router
  798.    towards S or RP. Join/Prune messages are sent every [Join/Prune-
  799.    Period] seconds. In the future we will introduce mechanisms to rate-
  800.    limit this control traffic on a hop by hop basis, in order to avoid
  801.    excessive overhead on small links.  In addition, certain events cause
  802.    triggered Join/Prune messages to be sent.
  803.  
  804.    Periodic Join/Prune Messages:
  805.  
  806.    A router sends a periodic Join/Prune message to each distinct RPF
  807.    neighbor associated with each (S,G), (*,G) and (*,*,RP) entry.
  808.    Join/Prune messages are only sent if the RPF neighbor is a PIM
  809.    neighbor.  A periodic Join/Prune message sent to a particular RPF
  810.    neighbor is constructed as follows:
  811.  
  812.       1 Each router determines the RP for a (*,G) entry by using
  813.         the hash function described. The RP address (with RPT and WC
  814.         bits set) is included in the join list of a periodic Join/Prune
  815.         message under the following conditions:
  816.  
  817.            1 The Join/Prune message is being sent to the RPF
  818.              neighbor toward the RP for an active (*,G) or (*,*,RP)
  819.              entry, and
  820.  
  821.            2 The outgoing interface list in the (*,G) or (*,*,RP)
  822.              entry is non-NULL, or the router is the DR on the same
  823.              interface as the RPF neighbor.
  824.  
  825.       2 A particular source address, S, is included in the join
  826.         list with the RPT and WC bits cleared under the following
  827.         conditions:
  828.  
  829.            1 The Join/Prune message is being sent to the RPF
  830.              neighbor toward S, and
  831.  
  832.            2 There exists an active (S,G) entry with the RPT-bit
  833.              flag cleared, and
  834.  
  835.            3 The oif list in the (S,G) entry is not null.
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842. Estrin, et. al.               Experimental                     [Page 15]
  843.  
  844. RFC 2362                         PIM-SM                        June 1998
  845.  
  846.  
  847.       3 A particular source address, S, is included in the prune
  848.         list with the RPT and WC bits cleared under the following
  849.         conditions:
  850.  
  851.            1 The Join/Prune message is being sent to the RPF
  852.              neighbor toward S, and
  853.  
  854.            2 There exists an active (S,G) entry with the RPT-bit
  855.              flag cleared, and
  856.  
  857.            3 The oif list in the (S,G) entry is null.
  858.  
  859.       4 A particular source address, S, is included in the prune
  860.         list with the RPT-bit set and the WC bit cleared under the
  861.         following conditions:
  862.  
  863.            1 The Join/Prune message is being sent to the RPF
  864.              neighbor  toward the RP and there exists a (S,G) entry with
  865.              the RPT-bit flag   set and null oif list, or
  866.  
  867.            2 The Join/Prune message is being sent to the RPF
  868.              neighbor toward the RP, there exists a (S,G) entry with the
  869.              RPT-bit flag cleared and SPT-bit set, and the incoming
  870.              interface toward S is different than the incoming interface
  871.              toward the RP, or
  872.  
  873.            3 The Join/Prune message is being sent to the RPF
  874.              neighbor toward the RP, and there exists a (*,G) entry and
  875.              (S,G) entry for a directly connected source.
  876.  
  877.       5 The RP address (with RPT and WC bits set) is included in
  878.         the prune list if:
  879.  
  880.            1 The Join/Prune message is being sent to the RPF
  881.              neighbor toward the RP and there exists a (*,G) entry with
  882.              a null oif list (see Section 3.5.2).
  883.  
  884.       Triggered Join/Prune Messages:
  885.  
  886.       In addition to periodic messages, the following events will
  887.       trigger Join/Prune messages if as a result, a) a new entry is
  888.       created, or b) the oif list changes from null to non-null or non-
  889.       null to null. The contents of triggered messages are the same as
  890.       the periodic, described above.
  891.  
  892.       1 Receipt of an indication from IGMP that the state of
  893.         directly-connected-membership has changed (i.e., new members
  894.         have just joined `membership indication' or all members have
  895.  
  896.  
  897.  
  898. Estrin, et. al.               Experimental                     [Page 16]
  899.  
  900. RFC 2362                         PIM-SM                        June 1998
  901.  
  902.  
  903.         left), for a group G, may cause the last-hop router to build or
  904.         modify corresponding (*,G) state.  When IGMP indicates that
  905.         there are no longer directly connected members, the oif is
  906.         removed from the oif list if the oif-timer is not running. A
  907.         Join/Prune message is triggered if and only if a) a new entry is
  908.         created, or b) the oif list changes from null to non-null or
  909.         non-null to null, as follows:
  910.  
  911.            1 If the receiving router does not have a route entry
  912.              for G the router creates a (*,G) entry, copies the oif list
  913.              from the corresponding (*,*,RP) entry (if it exists), and
  914.              includes the interface included in the IGMP membership
  915.              indication in the oif list; as always, the router never
  916.              includes the entry's iif in the oif list. The router sends
  917.              a Join/Prune message towards the RP with the RP address and
  918.              RPT-bit and WC-bits set in the join list. Or,
  919.  
  920.            2 If a (S,G)RPT-bit or (*,G) entry already exists, the
  921.              interface included in the IGMP membership indication is
  922.              added to the oif list (if it was not included already).
  923.  
  924.       2 Receipt of a Join/Prune message for (S,G), (*,G) or
  925.         (*,*,RP) will cause building or modifying corresponding state,
  926.         and subsequent triggering of upstream Join/Prune messages, in
  927.         the following cases:
  928.  
  929.            1 When there is no current route entry, the RP address
  930.              included in the Join/Prune message is checked against the
  931.              local RP-Set information. If it matches, an entry will be
  932.              created and the new entry will in turn trigger an upstream
  933.              Join/Prune message. If the router has no RP-Set information
  934.              it may discard the message, or optionally use the RP
  935.              address included in the message.
  936.  
  937.            2 When the outgoing interface list of an (S,G)RPT-bit
  938.              entry becomes null, the triggered Join/Prune message will
  939.              contain S in the prune list.
  940.  
  941.            3 When there exists a (S,G)RPT-bit with null oif list,
  942.              and an (*,G) Join/Prune message is received, the arriving
  943.              interface is added to the oif list and a (*,G) Join/Prune
  944.              message is triggered upstream.
  945.  
  946.            4 When there exists a (*,G) with null oif list, and a
  947.              (*,*,RP) Join/Prune message is received, the receiving
  948.              interface is added to the oif list and a (*,*,RP)
  949.              Join/Prune message is triggered upstream.
  950.  
  951.  
  952.  
  953.  
  954. Estrin, et. al.               Experimental                     [Page 17]
  955.  
  956. RFC 2362                         PIM-SM                        June 1998
  957.  
  958.  
  959.       3 Receipt of a packet that matches on a (S,G) entry whose
  960.         SPT-bit is cleared triggers the following if the packet arrived
  961.         on the correct incoming interface and there is a (*,G) or
  962.         (*,*,RP) entry with a different incoming interface: a) the
  963.         router sets the SPT-bit on the (S,G) entry, and b) the router
  964.         sends a Join/Prune message towards the RP with S in the prune
  965.         list and the RPT-bit set.
  966.  
  967.       4 Receipt of a packet at the DR from a directly connected
  968.         source S, on the subnet containing the address S, triggers a
  969.         Join/Prune message towards the RP with S in the prune list and
  970.         the RPT-bit set under the following conditions: a) there is no
  971.         matching (S,G) state, and b) there exists a (*,G) or (*,*,RP)
  972.         for which the DR is not the RP.
  973.  
  974.       5 When a Join/Prune message is received for a group G, the
  975.         prune list is checked. If the prune list contains a source or RP
  976.         for which the receiving router has a corresponding active (S,G),
  977.         (*,G) or (*,*,RP) entry, and whose iif is that on which the
  978.         Join/Prune was received, then a join for (S,G), (*,G) or
  979.         (*,*,RP) is triggered to override the prune, respectively. (This
  980.         is necessary in the case of parallel downstream routers
  981.         connected to a multi-access network.)
  982.  
  983.       6 When the RP fails, the RP will not be included in the
  984.         Bootstrap messages sent to all routers in that domain. This
  985.         triggers the DRs to send (*,G) Join/Prune messages towards the
  986.         new RP for the group, as determined by the RP-Set and the hash
  987.         function.  As described earlier, PMBRs trigger (*,*,RP) joins
  988.         towards each RP in the RP-Set.
  989.  
  990.       7 When an entry's Join/Prune-Suppression timer expires, a
  991.         Join/Prune message is triggered upstream corresponding to that
  992.         entry, even if the outgoing interface has not transitioned
  993.         between null and non-null states.
  994.  
  995.       8 When the RPF neighbor changes (whether due to an Assert or
  996.         changes in unicast routing), the router sets a random delay
  997.         timer (the Random-Delay-Join-Timer) whose expiration triggers
  998.         sending of a Join/Prune message for the asserted route entry to
  999.         the Assert winner (if the Join/Prune Suppression timer has
  1000.         expired.)
  1001.  
  1002.    We do not trigger prunes onto interfaces based on data packets.  Data
  1003.    packets that arrive on the wrong incoming interface are silently
  1004.    dropped.  However, on point-to-point interfaces triggered prunes may
  1005.    be sent as an optimization.
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Estrin, et. al.               Experimental                     [Page 18]
  1011.  
  1012. RFC 2362                         PIM-SM                        June 1998
  1013.  
  1014.  
  1015.    aragraphFragmentation It is possible that a Join/Prune message
  1016.    constructed according to the preceding rules could exceed the MTU of
  1017.    a network. In this case, the message can undergo semantic
  1018.    fragmentation whereby information corresponding to different groups
  1019.    can be sent in different messages.  However, if a Join/Prune message
  1020.    must be fragmented the complete prune list corresponding to a group G
  1021.    must be included in the same Join/Prune message as the associated
  1022.    RP-tree Join for G. If such semantic fragmentation is not possible,
  1023.    IP fragmentation should be used between the two neighboring hops.
  1024.  
  1025. 3.2.2 Receiving  Join/Prune  Messages  When  a  router  receives
  1026.       Join/Prune message, it processes it as follows.
  1027.  
  1028.    The receiver of the Join/Prune notes the interface on which the PIM
  1029.    message arrived, call it I. The receiver then checks to see if the
  1030.    Join/Prune message was addressed to the receiving router itself
  1031.    (i.e., the router's address appears in the Unicast Upstream Neighbor
  1032.    Router field of the Join/Prune message).  (If the router is connected
  1033.    to a multiaccess LAN, the message could be intended for a different
  1034.    router.) If the Join/Prune is for this router the following actions
  1035.    are taken.
  1036.  
  1037.    For each group address G, in the Join/Prune message, the associated
  1038.    join list is processed as follows. We refer to each address in the
  1039.    join list as Sj; Sj refers to the RP if the RPT-bit and WC-bit are
  1040.    both set. For each Sj in the join list of the Join/Prune message:
  1041.  
  1042.       1 If an address, Sj, in the join list of the Join/Prune
  1043.         message has the RPT-bit and WC-bit set, then Sj is the RP
  1044.         address used by the downstream router(s) and the following
  1045.         actions are taken:
  1046.  
  1047.            1 If Sj is not the same as the receiving router's RP
  1048.              mapping for G, the receiving router may ignore the
  1049.              Join/Prune message with respect to that group entry.  If
  1050.              the router does not have any RP-Set information, it may use
  1051.              the address Sj included in the Join/Prune message as the RP
  1052.              for the group.
  1053.  
  1054.            2 If Sj is the same as the receiving router's RP mapping
  1055.              for G, the receiving router adds I to the outgoing
  1056.              interface list of the (*,G) route entry (if there is no
  1057.              (*,G) entry, the router creates one first) and sets the
  1058.              Oif-timer for that interface to the Holdtime specified in
  1059.              the Join/Prune message. In addition, the Oif-Deletion-Delay
  1060.              for that interface is set to 1/3rd the Holdtime specified
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Estrin, et. al.               Experimental                     [Page 19]
  1067.  
  1068. RFC 2362                         PIM-SM                        June 1998
  1069.  
  1070.  
  1071.              in the Join/Prune message. If a (*,*,RP) entry exists, for
  1072.              the RP associated with G, then the oif list of the newly
  1073.              created (*,G) entry is copied from that (*,*,RP) entry.
  1074.  
  1075.            3 For each (Si,G) entry associated with group G: i) if
  1076.              Si is not included in the prune list, ii) if I is not on
  1077.              the same subnet as the address Si, and iii) if I is not the
  1078.              iif, then interface I is added to the oif list and the
  1079.              Oif-timer for that interface in each affected entry is
  1080.              increased (never decreased) to the Holdtime included in the
  1081.              Join/Prune message.  In addition, if the Oif-timer for that
  1082.              interface is increased, the Oif-Deletion-Delay for that
  1083.              interface is set to 1/3rd the Holdtime specified in the
  1084.              Join/Prune message.
  1085.  
  1086.              If the group address in the Join/Prune message is `*' then
  1087.              every (*,G) and (S,G) entry, whose group address hashes to
  1088.              the RP indicated in the (*,*,RP) Join/Prune message, is
  1089.              updated accordingly. A `*' in the group field of the
  1090.              Join/Prune is represented by a group address 224.0.0.0 and
  1091.              a group mask length of 4, indicating a (*,*,RP) Join.
  1092.  
  1093.            4 If the (Si,G) entry has its RPT-bit flag set to 1, and
  1094.              its oif list is the same as the (*,G) oif list, then the
  1095.              (Si,G)RPT-bit entry is deleted,
  1096.  
  1097.            5 The incoming interface is set to the interface used to
  1098.              send unicast packets to the RP in the (*,G) route entry,
  1099.              i.e., RPF interface toward the RP.
  1100.  
  1101.       2 For each address, Sj, in the join list whose RPT-bit and
  1102.         WC-bit are not set, and for which there is no existing (Sj,G)
  1103.         route entry, the router initiates one.  The router creates a
  1104.         (S,G) entry and copies all outgoing interfaces from the
  1105.         (S,G)RPT-bit entry, if it exists. If there is no (S,G) entry,
  1106.         the oif list is copied from the (*,G) entry; and if there is no
  1107.         (*,G) entry, the oif list is copied from the (*,*,RP) entry, if
  1108.         it exists. In all cases, the iif of the (S,G) entry is always
  1109.         excluded from the oif list.
  1110.  
  1111.            1 The outgoing interface for (Sj,G) is set to I.  The
  1112.              incoming interface for (Sj,G) is set to the interface used
  1113.              to send unicast packets to Sj (i.e., the RPF neighbor).
  1114.  
  1115.            2 If the interface used to reach Sj, is the same as I,
  1116.              this represents an error (or a unicast routing change) and
  1117.              the Join/Prune must not be processed.
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Estrin, et. al.               Experimental                     [Page 20]
  1123.  
  1124. RFC 2362                         PIM-SM                        June 1998
  1125.  
  1126.  
  1127.       3 For each address, Sj, in the join list of the Join/Prune
  1128.         message, for which there is an existing (Sj,G) route entry,
  1129.  
  1130.            1 If the RPT-bit is not set for Sj listed in the
  1131.              Join/Prune message, but the RPT-bit flag is set on the
  1132.              existing (Sj,G) entry, the router clears the RPT-bit flag
  1133.              on the (Sj,G) entry, sets the incoming interface to point
  1134.              towards Sj for that (Sj,G) entry, and sends a Join/Prune
  1135.              message corresponding to that entry through the new
  1136.              incoming interface; and
  1137.  
  1138.            2 If I is not the same as the existing incoming
  1139.              interface, the router adds I to the list of outgoing
  1140.              interfaces.
  1141.  
  1142.            3 The Oif-timer for I is increased (never decreased) to
  1143.              the Holdtime included in the Join/Prune message. In
  1144.              addition, if the Oif-timer for that interface is increased,
  1145.              the Oif-Deletion-Delay for that interface is set to 1/3rd
  1146.              the Holdtime specified in the Join/Prune message.
  1147.  
  1148.            4 The (Sj,G) entry's SPT bit is cleared until data comes
  1149.              down the shortest path tree.
  1150.  
  1151.       For each group address G, in the Join/Prune message, the
  1152.       associated prune list is processed as follows. We refer to each
  1153.       address in the prune list as Sp; Sp refers to the RP if the RPT-
  1154.       bit and WC-bit are both set. For each Sp in the prune list of the
  1155.       Join/Prune message:
  1156.  
  1157.       1 For each address, Sp, in the prune list whose RPT-bit and
  1158.         WC-bit are cleared:
  1159.  
  1160.            1 If there is an existing (Sp,G) route entry, the router
  1161.              lowers the entry's Oif-timer for I to its Oif-Deletion-
  1162.              Delay, allowing for other downstream routers on a multi-
  1163.              access LAN to override the prune. However, on point-to-
  1164.              point links, the oif-timer is expired immediately.
  1165.  
  1166.            2 If the router has a current (*,G), or (*,*,RP), route
  1167.              entry, and if the existing (Sp,G) entry has its RPT-bit
  1168.              flag set to 1, then this (Sp,G)RPT-bit entry is maintained
  1169.              (not deleted) even if its outgoing interface list is null.
  1170.  
  1171.       2 For each address, Sp, in the prune list whose RPT-bit is
  1172.         set and whose WC-bit cleared:
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178. Estrin, et. al.               Experimental                     [Page 21]
  1179.  
  1180. RFC 2362                         PIM-SM                        June 1998
  1181.  
  1182.  
  1183.            1 If there is an existing (Sp,G) route entry, the router
  1184.              lowers the entry's Oif-timer for I to its Oif-Deletion-
  1185.              Delay, allowing for other downstream routers on a multi-
  1186.              access LAN to override the prune. However, on point-to-
  1187.              point links, the oif-timer is expired immediately.
  1188.  
  1189.            2 If the router has a current (*,G), or (*,*,RP), route
  1190.              entry, and if the existing (Sp,G) entry has its RPT-bit
  1191.              flag set to 1, then this (Sp,G)RPT-bit entry is not
  1192.              deleted, and the Entry-timer is restarted, even if its
  1193.              outgoing interface list is null.
  1194.  
  1195.            3 If (*,G), or corresponding (*,*,RP), state exists, but
  1196.              there is no (Sp,G) entry, an (Sp,G)RPT-bit entry is created
  1197.              . The outgoing interface list is copied from the (*,G), or
  1198.              (*,*,RP), entry, with the interface, I, on which the prune
  1199.              was received, is deleted.  Packets from the pruned source,
  1200.              Sp, match on this state and are not forwarded toward the
  1201.              pruned receivers.
  1202.  
  1203.            4 If there exists a (Sp,G) entry, with or without the
  1204.              RPT-bit set, the oif-timer for I is expired, and the
  1205.              Entry-timer is restarted.
  1206.  
  1207.       3 For each address, Sp, in the prune list whose RPT-bit and
  1208.         WC-bit are both set:
  1209.  
  1210.            1 If there is an existing (*,G) entry, with Sp as the RP
  1211.              for G, the router lowers the entry's Oif-timer for I to its
  1212.              Oif-Deletion-Delay, allowing for other downstream routers
  1213.              on a multi-access LAN to override the prune. However, on
  1214.              point-to-point links, the oif-timer is expired immediately.
  1215.  
  1216.            2 If the corresponding (*,*,RP) state exists, but there
  1217.              is no (*,G) entry, a (*,G) entry is created. The outgoing
  1218.              interface list is copied from (*,*,RP) entry, with the
  1219.              interface, I, on which the prune was received, deleted.
  1220.  
  1221.            For any new (S,G), (*,G) or (*,*,RP) entry created by an
  1222.            incoming Join/Prune message, the SPT-bit is cleared (and if a
  1223.            Join/Prune-Suppression timer is used, it is left off.)
  1224.  
  1225.    If the entry has a Join/Prune-Suppression timer associated with it,
  1226.    and if the received Join/Prune does not indicate the router as its
  1227.    target, then the receiving router examines the join and prune lists
  1228.    to see if any addresses in the list `completely-match' existing
  1229.    (S,G), (*,G), or (*,*,RP) state for which the receiving router
  1230.    currently schedules Join/Prune messages. An element on the join or
  1231.  
  1232.  
  1233.  
  1234. Estrin, et. al.               Experimental                     [Page 22]
  1235.  
  1236. RFC 2362                         PIM-SM                        June 1998
  1237.  
  1238.  
  1239.    prune list `completely-matches' a route entry only if both the
  1240.    addresses and RPT-bit flag are the same.  If the incoming Join/Prune
  1241.    message completely matches an existing (S,G), (*,G), or (*,*,RP)
  1242.    entry and the Join/Prune arrived on the iif for that entry, then the
  1243.    router compares the Holdtime included in the Join/Prune message, to
  1244.    its own [Join/Prune-Holdtime]. If its own [Join/Prune-Holdtime] is
  1245.    lower, the Join/Prune-Suppression-timer is started at the
  1246.    [Join/Prune-Suppression-Timeout]. If the [Join/Prune-Holdtime] is
  1247.    equal, the tie is resolved in favor of the Join/Prune Message
  1248.    originator that has the higher network layer address.  When the
  1249.    Join/Prune timer expires, the router triggers a Join/Prune message
  1250.    for the corresponding entry(ies).
  1251.  
  1252. 3.3 Register and Register-Stop
  1253.  
  1254.    When a source first starts sending to a group its packets are
  1255.    encapsulated in Register messages and sent to the RP. If the data
  1256.    rate warrants source-specific paths, the RP sets up source specific
  1257.    state and starts sending (S,G) Join/Prune messages toward the source,
  1258.    with S in the join list.
  1259.  
  1260. 3.3.1 Sending Registers and Receiving Register-Stops
  1261.  
  1262.    Register messages are sent as follows:
  1263.  
  1264.       1 When a DR receives a packet from a directly connected
  1265.         source, S, on the subnet containing the address S,
  1266.  
  1267.            1 If there is no corresponding (S,G) entry, and the
  1268.              router has RP-Set information, and the DR is not the RP for
  1269.              G, the DR creates an (S,G) entry with the Register-
  1270.              Suppression-timer turned off and the RP address set
  1271.              according to the hash function mapping for the
  1272.              corresponding group. The oif list is copied from existing
  1273.              (*,G) or (*,*,RP) entries, if they exist. The iif of the
  1274.              (S,G) entry is always excluded from the oif list. If there
  1275.              exists a (*,G) or (*,*,RP) entry, the DR sends a Join/Prune
  1276.              message towards the RP with S in the prune list and the
  1277.              RPT-bit set.
  1278.  
  1279.            2 If there is a (S,G) entry in existence, the DR simply
  1280.              restarts the corresponding Entry-timer.
  1281.  
  1282.            When a PMBR (e.g., a router that connects the PIM-SM region
  1283.            to a dense mode region running DVMRP or PIM-DM) receives a
  1284.            packet from a source in the dense mode region, the router
  1285.  
  1286.  
  1287.  
  1288.  
  1289.  
  1290. Estrin, et. al.               Experimental                     [Page 23]
  1291.  
  1292. RFC 2362                         PIM-SM                        June 1998
  1293.  
  1294.  
  1295.            treats the packet as if it were from a directly connected
  1296.            source. A separate document will describe the details of
  1297.            interoperability.
  1298.  
  1299.       2 If the new or previously-existing (S,G) entry's Register-
  1300.         Suppression-timer is not running, the data packet is
  1301.         encapsulated in a Register message and unicast to the RP for
  1302.         that group. The data packet is also forwarded according to (S,G)
  1303.         state in the DR if the oif list is not null; since a receiver
  1304.         may join the SP-tree while the DR is still registering to the
  1305.         RP.
  1306.  
  1307.       3 If the (S,G) entry's Register-Suppression-timer is running,
  1308.         the data packet is not sent in a Register message, it is just
  1309.         forwarded according to the (S,G) oif list.
  1310.  
  1311.    When the DR receives a Register-Stop message, it restarts the
  1312.    Register-Suppression-timer in the corresponding (S,G) entry(ies) at
  1313.    [Register-Suppression-Timeout] seconds. If there is data to be
  1314.    registered, the DR may send a null Register (a Register message with
  1315.    a zero-length data portion in the inner packet) to the RP, [Probe-
  1316.    Time] seconds before the Register-Suppression-timer expires, to avoid
  1317.    sending occasional bursts of traffic to an RP unnecessarily.
  1318.  
  1319. 3.3.2 Receiving Register Messages and Sending Register-Stops
  1320.  
  1321.    When a router (i.e., the RP) receives a Register message, the router
  1322.    does the following:
  1323.  
  1324.       1 Decapsulates the data packet, and checks for a
  1325.         corresponding (S,G) entry.
  1326.  
  1327.            1 If a (S,G) entry with cleared (0) SPT bit exists, and
  1328.              the received Register does not have the Null-Register-Bit
  1329.              set to 1, the packet is forwarded; and the SPT bit is left
  1330.              cleared (0). If the SPT bit is 1, the packet is dropped,
  1331.              and Register-Stop messages are triggered.  Register-Stops
  1332.              should be rate-limited (in an implementation-specific
  1333.              manner) so that no more than a few are sent per round trip
  1334.              time. This prevents a high datarate stream of packets from
  1335.              triggering a large number of Register-Stop messages between
  1336.              the time that the first packet is received and the time
  1337.              when the source receives the first Register-Stop.
  1338.  
  1339.            2 If there is no (S,G) entry, but there is a (*,G)
  1340.              entry, and the received Register does not have the Null-
  1341.              Register-Bit set to 1, the packet is forwarded according to
  1342.              the (*,G) entry.
  1343.  
  1344.  
  1345.  
  1346. Estrin, et. al.               Experimental                     [Page 24]
  1347.  
  1348. RFC 2362                         PIM-SM                        June 1998
  1349.  
  1350.  
  1351.            3 If there is a (*,*,RP) entry but no (*,G) entry, and
  1352.              the Register received does not have the Null-Register-Bit
  1353.              set to 1, a (*,G) or (S,G) entry is created and the oif
  1354.              list is copied from the (*,*,RP) entry to the new entry.
  1355.              The packet is forwarded according to the created entry.
  1356.  
  1357.            4 If there is no G or (*,*,RP) entry corresponding to G,
  1358.              the packet is dropped, and a Register-Stop is triggered.
  1359.  
  1360.            5 A "Border bit" bit is added to the Register message,
  1361.              to  facilitate  interoperability mechanisms. PMBRs set this
  1362.              bit when   registering for  external  sources  (see Section
  1363.              2.7).  If  the  "Border bit" is set in the Register,
  1364.              the   RP does the following:
  1365.  
  1366.                 1 If there is no matching (S,G) state, but there
  1367.                   exists (*,G) or (*,*,RP) entry, the RP creates a (S,G)
  1368.                   entry, with a `PMBR' field.  This field holds the
  1369.                   source of the Register (i.e. the outer network layer
  1370.                   address of the register packet).  The RP triggers a
  1371.                   (S,G) join towards the source of the data packet, and
  1372.                   clears the SPT bit for the (S,G) entry. If the
  1373.                   received Register is not a `null Register' the packet
  1374.                   is forwarded according to the created state. Else,
  1375.  
  1376.                 2 If the `PMBR' field for the corresponding (S,G)
  1377.                   entry matches the source of the Register packet, and
  1378.                   the received Register is not a `null Register', the
  1379.                   decapsulated packet is forwarded to the oif list of
  1380.                   that entry. Else,
  1381.  
  1382.                 3 If the `PMBR' field for the corresponding (S,G)
  1383.                   entry matches the source of the Register packet, the
  1384.                   decapsulated packet is forwarded to the oif list of
  1385.                   that entry, else
  1386.  
  1387.                 4 The packet is dropped, and a Register-stop is
  1388.                   triggered towards the source of the Register.
  1389.  
  1390.         The (S,G) Entry-timer is restarted by Registers arriving from
  1391.         that source to that group.
  1392.  
  1393.       2 If the matching (S,G) or (*,G) state contains a null oif
  1394.         list, the RP unicasts a Register-Stop message to the source of
  1395.         the Register message; in the latter case, the source-address
  1396.         field, within the Register-Stop message, is set to the wildcard
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402. Estrin, et. al.               Experimental                     [Page 25]
  1403.  
  1404. RFC 2362                         PIM-SM                        June 1998
  1405.  
  1406.  
  1407.         value (all 0's). This message is not processed by intermediate
  1408.         routers, hence no (S,G) state is constructed between the RP and
  1409.         the source.
  1410.  
  1411.       3 If the Register message arrival rate warrants it and there
  1412.         is no existing (S,G) entry, the RP sets up a (S,G) route entry
  1413.         with the outgoing interface list, excluding iif(S,G), copied
  1414.         from the (*,G) outgoing interface list, its SPT-bit is
  1415.         initialized to 0. If a (*,G) entry does not exist, but there
  1416.         exists a (*,*,RP) entry with the RP corresponding to G , the oif
  1417.         list for (S,G) is copied - excluding the iif - from that
  1418.         (*,*,RP) entry.
  1419.  
  1420.         A timer (Entry-timer) is set for the (S,G) entry and this timer
  1421.         is restarted by receipt of data packets for (S,G).  The (S,G)
  1422.         entry causes the RP to send a Join/Prune message for the
  1423.         indicated group towards the source of the register message.
  1424.  
  1425.         If the (S,G) oif list becomes null, Join/Prune messages will not
  1426.         be sent towards the source, S.
  1427.  
  1428. 3.4 Multicast Data Packet Forwarding
  1429.  
  1430.    Processing a multicast data packet involves the following steps:
  1431.  
  1432.       1 Lookup route state based on a longest match of the source
  1433.         address, and an exact match of the destination address in the
  1434.         data packet. If neither S, nor G, find a longest match entry,
  1435.         and the RP for the packet's destination group address has a
  1436.         corresponding (*,*,RP) entry, then the longest match does not
  1437.         require an exact match on the destination group address. In
  1438.         summary, the longest match is performed in the following order:
  1439.         (1) (S,G), (2) (*,G). If neither is matched, then a lookup is
  1440.         performed on (*,*,RP) entries.
  1441.  
  1442.       2 If the packet arrived on the interface found in the
  1443.         matching-entry's iif field, and the oif list is not null:
  1444.  
  1445.            1 Forward the packet to the oif list for that entry,
  1446.              excluding the subnet containing S, and restart the Entry-
  1447.              timer if the matching entry is (S,G).  Optionally, the
  1448.              (S,G) Entry-timer may be restarted by periodic checking of
  1449.              the matching packet count.
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458. Estrin, et. al.               Experimental                     [Page 26]
  1459.  
  1460. RFC 2362                         PIM-SM                        June 1998
  1461.  
  1462.  
  1463.            2 If the entry is a (S,G) entry with a cleared SPT-bit,
  1464.              and a (*,G) or associated (*,*,RP) also exists whose
  1465.              incoming interface is different than that for (S,G), set
  1466.              the SPT-bit for the (S,G) entry and trigger an (S,G) RPT-
  1467.              bit prune towards the RP.
  1468.  
  1469.            3 If the source of the packet is a directly-connected
  1470.              host and the router is the DR on the receiving interface,
  1471.              check the Register-Suppression-timer associated with the
  1472.              (S,G) entry. If it is not running, then the router
  1473.              encapsulates the data packet in a register message and
  1474.              sends it to the RP.
  1475.  
  1476.              This covers the common case of a packet arriving on the RPF
  1477.              interface to the source or RP and being forwarded to all
  1478.              joined branches. It also detects when packets arrive on the
  1479.              SP-tree, and triggers their pruning from the RP-tree. If it
  1480.              is the DR for the source, it sends data packets
  1481.              encapsulated in Registers to the RPs.
  1482.  
  1483.            3 If the packet matches to an entry but did not arrive on the
  1484.              interface found in the entry's iif field, check the SPT-bit
  1485.              of the entry. If the SPT-bit is set, drop the packet.  If
  1486.              the SPT-bit is cleared, then lookup the (*,G), or (*,*,RP),
  1487.              entry for G. If the packet arrived on the iif found in
  1488.              (*,G), or the corresponding (*,*,RP), forward the packet to
  1489.              the oif list of the matching entry. This covers the case
  1490.              when a data packet matches on a (S,G) entry for which the
  1491.              SP-tree has not yet been completely established upstream.
  1492.  
  1493.            4 If the packet does not match any entry, but the source of
  1494.              the data packet is a local, directly-connected host, and
  1495.              the router is the DR on a multi-access LAN and has RP-Set
  1496.              information, the DR uses the hash function to determine the
  1497.              RP associated with the destination group, G. The DR creates
  1498.              a (S,G) entry, with the Register-Suppression-timer not
  1499.              running, encapsulates the data packet in a Register message
  1500.              and unicasts it to the RP.
  1501.  
  1502.            5 If the packet does not match to any entry, and it is not a
  1503.              local host or the router is not the DR, drop the packet.
  1504.  
  1505. 3.4.1 Data triggered switch to shortest path tree (SP-tree)
  1506.  
  1507.    Different criteria can be applied to trigger switching over from the
  1508.    RP-based shared tree to source-specific, shortest path trees.
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514. Estrin, et. al.               Experimental                     [Page 27]
  1515.  
  1516. RFC 2362                         PIM-SM                        June 1998
  1517.  
  1518.  
  1519.    One proposed example is to do so based on data rate.  For example,
  1520.    when a (*,G), or corresponding (*,*,RP), entry is created, a data
  1521.    rate counter may be initiated at the last-hop routers.  The counter
  1522.    is incremented with every data packet received for directly connected
  1523.    members of an SM group, if the longest match is (*,G) or (*,*,RP). If
  1524.    and when the data rate for the group exceeds a certain configured
  1525.    threshold (t1), the router initiates `source-specific' data rate
  1526.    counters for the following data packets. Then, each counter for a
  1527.    source, is incremented when packets matching on (*,G), or (*,*,RP),
  1528.    are received from that source. If the data rate from the particular
  1529.    source exceeds a configured threshold (t2), a (S,G) entry is created
  1530.    and a Join/Prune message is sent towards the source.  If the RPF
  1531.    interface for (S,G) is not the same as that for (*,G) -or (*,*,RP),
  1532.    then the SPT-bit is cleared in the (S,G) entry.
  1533.  
  1534.    Other configured rules may be enforced to cause or prevent
  1535.    establishment of (S,G) state.
  1536.  
  1537. 3.5 Assert
  1538.  
  1539.    Asserts are used to resolve which of the parallel routers connected
  1540.    to a multi-access LAN is responsible for forwarding packets onto the
  1541.    LAN.
  1542.  
  1543. 3.5.1 Sending Asserts
  1544.  
  1545.    The following Assert rules are provided when a multicast packet is
  1546.    received on an outgoing multi-access interface "I" of an existing
  1547.    active (S,G), (*,G) or (*,*,RP) entry:
  1548.  
  1549.       1 Do unicast routing table lookup on source address from data
  1550.         packet, and send assert on interface "I" for source address in
  1551.         data packet; include metric preference of routing protocol and
  1552.         metric from routing table lookup.
  1553.  
  1554.       2 If route is not found, use metric preference of 0x7fffffff
  1555.         and metric 0xffffffff.
  1556.  
  1557.    When an assert is sent for a (*,G) entry, the first bit in the metric
  1558.    preference (the RPT-bit) is set to 1, indicating the data packet is
  1559.    routed down the RP-tree.
  1560.  
  1561.    Asserts should be rate-limited in an implementation-specific manner.
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570. Estrin, et. al.               Experimental                     [Page 28]
  1571.  
  1572. RFC 2362                         PIM-SM                        June 1998
  1573.  
  1574.  
  1575. 3.5.2 Receiving Asserts
  1576.  
  1577.    When an Assert is received the router performs a longest match on the
  1578.    source and group address in the Assert message, only active entries
  1579.    -- that have packet forwarding state -- are matched.  The router
  1580.    checks the first bit of the metric preference (RPT-bit).
  1581.  
  1582.       1 If the RPT-bit is set, the router first does a match on
  1583.         (*,G), or (*,*,RP), entries; if no matching entry is found, it
  1584.         ignores the Assert.
  1585.  
  1586.       2 If the RPT-bit is not set in the Assert, the router first
  1587.         does a match on (S,G) entries; if no matching entry is found,
  1588.         the router matches (*,G) or (*,*,RP) entries.
  1589.  
  1590.       Receiving Asserts on an entry's outgoing interface:
  1591.  
  1592.       If the interface that received the Assert message is in the oif
  1593.       list of the matched entry, then this Assert is processed by this
  1594.       router as follows:
  1595.  
  1596.       1 If the Assert's RPT-bit is set and the matching entry is
  1597.         (*,*,RP), the router creates a (*,G) entry. If the Assert's
  1598.         RPT-bit is cleared and the matching entry is (*,G), or (*,*,RP),
  1599.         the router creates a (S,G)RPT-bit entry.  Otherwise, no new
  1600.         entry is created in response to the Assert.
  1601.  
  1602.       2 The router then compares the metric values received in the
  1603.         Assert with the metric values associated with the matched entry.
  1604.         The RPT-bit and metric preference (in that order) are treated as
  1605.         the high-order part of an Assert metric comparison. If the value
  1606.         in the Assert is less than the router's value (with ties broken
  1607.         by the IP address, where higher network layer address wins),
  1608.         delete the interface from the entry. When the deletion occurs
  1609.         for a (*,G) or (*,*,RP) entry , the interface is also deleted
  1610.         from any associated (S,G)RPT-bit or (*,G) entries, respectively.
  1611.         The Entry-timer for the affected entries is restarted.
  1612.  
  1613.       3 If the router has won the election the router keeps the
  1614.         interface in its outgoing interface list. It acts as the
  1615.         forwarder for the LAN.
  1616.  
  1617.    The winning router sends an Assert message containing its own metric
  1618.    to that outgoing interface. This will cause other routers on the LAN
  1619.    to prune that interface from their route entries. The winning router
  1620.    sets the RPT-bit in the Assert message if a (*,G) or (S,G)RPT-bit
  1621.    entry was matched.
  1622.  
  1623.  
  1624.  
  1625.  
  1626. Estrin, et. al.               Experimental                     [Page 29]
  1627.  
  1628. RFC 2362                         PIM-SM                        June 1998
  1629.  
  1630.  
  1631.    Receiving Asserts on an entry's incoming interface
  1632.  
  1633.    If the Assert arrived on the incoming interface of an existing (S,G),
  1634.    (*,G), or (*,*,RP) entry, the Assert is processed as follows.  If the
  1635.    Assert message does not match the entry, exactly, it is ignored; i.e,
  1636.    longest-match is not used in this case. If the Assert message does
  1637.    match exactly, then:
  1638.  
  1639.       1 Downstream routers will select the upstream router with the
  1640.         smallest metric preference and metric as their RPF neighbor. If
  1641.         two metrics are the same, the highest network layer address is
  1642.         chosen to break the tie. This is important so that downstream
  1643.         routers send subsequent Joins/Prunes (in SM) to the correct
  1644.         neighbor. An Assert-timer is initiated when changing the RPF
  1645.         neighbor to the Assert winner.  When the timer expires, the
  1646.         router resets its RPF neighbor according to its unicast routing
  1647.         tables to capture network dynamics and router failures.
  1648.  
  1649.       2 If the downstream routers have downstream members, and if
  1650.         the Assert caused the RPF neighbor to change, the downstream
  1651.         routers must trigger a Join/Prune message to inform the upstream
  1652.         router that packets are to be forwarded on the multi-access
  1653.         network.
  1654.  
  1655. 3.6 Candidate-RP-Advertisements and Bootstrap messages
  1656.  
  1657.    Candidate-RP-Advertisements (C-RP-Advs) are periodic PIM messages
  1658.    unicast to the BSR by those routers that are configured as
  1659.    Candidate-RPs (C-RPs).
  1660.  
  1661.    Bootstrap messages are periodic PIM messages originated by the
  1662.    Bootstrap router (BSR) within a domain, and forwarded hop-by-hop to
  1663.    distribute the current RP-set to all routers in that domain.
  1664.  
  1665.    The Bootstrap messages also support a simple mechanism by which the
  1666.    Candidate BSR (C-BSR) with the highest BSR-priority and address
  1667.    (referred to as the preferred BSR) is elected as the BSR for the
  1668.    domain.  We recommend that each router configured as a C-RP also be
  1669.    configured as a C-BSR. Sections 3.6.2 and 3.6.3 describe the combined
  1670.    function of Bootstrap messages as the vehicle for BSR election and
  1671.    RP-Set distribution.
  1672.  
  1673.    A Finite State Machine description of the BSR election and RP-Set
  1674.    distribution mechanisms is included in Appendix II.
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682. Estrin, et. al.               Experimental                     [Page 30]
  1683.  
  1684. RFC 2362                         PIM-SM                        June 1998
  1685.  
  1686.  
  1687. 3.6.1 Sending Candidate-RP-Advertisements
  1688.  
  1689.    C-RPs periodically unicast C-RP-Advs to the BSR for that domain.  The
  1690.    interval for sending these messages is subject to local configuration
  1691.    at the C-RP.
  1692.  
  1693.    Candidate-RP-Advertisements carry group address and group mask
  1694.    fields.  This enables the advertising router to limit the
  1695.    advertisement to certain prefixes or scopes of groups.  The
  1696.    advertising router may enforce this scope acceptance when receiving
  1697.    Registers or Join/Prune messages.  C-RPs should send C-RP-Adv
  1698.    messages with the `Priority' field set to `0'.
  1699.  
  1700. 3.6.2 Receiving C-RP-Advs and Originating Bootstrap
  1701.  
  1702.    Upon receiving a C-RP-Adv, a router does the following:
  1703.  
  1704.       1 If the router is not the elected BSR, it ignores the
  1705.         message, else
  1706.  
  1707.       2 The BSR adds the RP address to its local pool of candidate
  1708.         RPs, according to the associated group prefix(es) in the C-RP-
  1709.         Adv message. The Holdtime in the C-RP-Adv message is also stored
  1710.         with the corresponding RP, to be included later in the Bootstrap
  1711.         message. The BSR may apply a local policy to limit the number of
  1712.         Candidate RPs included in the Bootstrap message.  The BSR may
  1713.         override the prefix indicated in a C-RP-Adv unless the
  1714.         `Priority' field is not zero.
  1715.  
  1716.    The BSR keeps an RP-timer per RP in its local RP-set. The RP-timer is
  1717.    initialized to the Holdtime in the RP's C-RP-Adv. When the timer
  1718.    expires, the corresponding RP is removed from the RP-set.  The RP-
  1719.    timer is restarted by the C-RP-Advs from the corresponding RP.
  1720.  
  1721.    The BSR also uses its Bootstrap-timer to periodically send Bootstrap
  1722.    messages.  In particular, when the Bootstrap-timer expires, the BSR
  1723.    originates a Bootstrap message on each of its PIM interfaces. To
  1724.    reduce the bootstrap message overhead during partition healing, the
  1725.    BSR should set a random time (as a function of the priority and
  1726.    address) after which the Bootstrap message is originated only if no
  1727.    other preferred Bootstrap message is received. For details see
  1728.    appendix 6.2. The message is sent with a TTL of 1 to the `ALL-PIM-
  1729.    ROUTERS' group.  In steady state, the BSR originates Bootstrap
  1730.    messages periodically.  At startup, the Bootstrap-timer is
  1731.    initialized to [Bootstrap-Timeout], causing the first Bootstrap
  1732.    message to be originated only when and if the timer expires. For
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738. Estrin, et. al.               Experimental                     [Page 31]
  1739.  
  1740. RFC 2362                         PIM-SM                        June 1998
  1741.  
  1742.  
  1743.    timer details, see Section 3.6.3. A DR unicasts a Bootstrap message
  1744.    to each new PIM neighbor, i.e., after the DR receives the neighbor's
  1745.    Hello message (it does so even if the new neighbor becomes the DR).
  1746.  
  1747.    The Bootstrap message is subdivided into sets of group-prefix,RP-
  1748.    Count,RP-addresses.  For each RP-address, the corresponding Holdtime
  1749.    is included in the "RP-Holdtime" field.  The format of the Bootstrap
  1750.    message allows `semantic fragmentation', if the length of the
  1751.    original Bootstrap message exceeds the packet maximum boundaries (see
  1752.    Section 4). However, we recommend against configuring a large number
  1753.    of routers as C-RPs, to reduce the semantic fragmentation required.
  1754.  
  1755. 3.6.3 Receiving and Forwarding Bootstrap
  1756.  
  1757.    Each router keeps a Bootstrap-timer, initialized to [Bootstrap-
  1758.    Timeout] at startup.
  1759.  
  1760.    When a router receives Bootstrap message sent to `ALL-PIM-ROUTERS'
  1761.    group, it performs the following:
  1762.  
  1763.       1 If the message was not sent by the RPF neighbor towards the
  1764.         BSR address included, the message is dropped. Else
  1765.  
  1766.       2 If the included BSR is not preferred over, and not equal
  1767.         to, the currently active BSR:
  1768.  
  1769.            1 If the Bootstrap-timer has not yet expired, or if the
  1770.              receiving router is a C-BSR, then the Bootstrap message is
  1771.              dropped. Else
  1772.  
  1773.            2 If the Bootstrap-timer has expired and the receiving
  1774.              router is not a C-BSR, the receiving router stores the RP-
  1775.              Set and BSR address and priority found in the message, and
  1776.              restarts the timer by setting it to [Bootstrap-Timeout].
  1777.              The Bootstrap message is then forwarded out all PIM
  1778.              interfaces, excluding the one over which the message
  1779.              arrived, to `ALL-PIM-ROUTERS' group, with a TTL of 1.
  1780.  
  1781.       3 If the Bootstrap message includes a BSR address that is
  1782.         preferred over, or equal to, the currently active BSR, the
  1783.         router restarts its Bootstrap-timer at [Bootstrap-Timeout]
  1784.         seconds. and stores the BSR address and RP-Set information.
  1785.  
  1786.         The Bootstrap message is then forwarded out all PIM interfaces,
  1787.         excluding the one over which the message arrived, to `ALL-PIM-
  1788.         ROUTERS' group, with a TTL of 1.
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. Estrin, et. al.               Experimental                     [Page 32]
  1795.  
  1796. RFC 2362                         PIM-SM                        June 1998
  1797.  
  1798.  
  1799.       4 If the receiving router has no current RP set information
  1800.         and the Bootstrap was unicast to it from a directly connected
  1801.         neighbor, the router stores the information as its new RP-set.
  1802.         This covers the startup condition when a newly booted router
  1803.         obtains the RP-Set and BSR address from its DR.
  1804.  
  1805.    When a router receives a new RP-Set, it checks if each of the RPs
  1806.    referred to by existing state (i.e., by (*,G), (*,*,RP), or
  1807.    (S,G)RPT-bit entries) is in the new RP-Set. If an RP is not in the
  1808.    new RP-set, that RP is considered unreachable and the hash algorithm
  1809.    (see below) is re-performed for each group with locally active state
  1810.    that previously hashed to that RP. This will cause those groups to be
  1811.    distributed among the remaining RPs. When the new RP-Set contains a
  1812.    new RP, the value of the new RP is calculated for each group covered
  1813.    by that C-RP's Group-prefix.  Any group for which the new RP's value
  1814.    is greater than the previously active RP's value is switched over to
  1815.    the new RP.
  1816.  
  1817. 3.7 Hash Function
  1818.  
  1819.    The hash function is used by all routers within a domain, to map a
  1820.    group to one of the C-RPs from the RP-Set. For a particular group, G,
  1821.    the hash function uses only those C-RPs whose Group-prefix covers G.
  1822.    The algorithm takes as input the group address, and the addresses of
  1823.    the Candidate RPs, and gives as output one RP address to be used.
  1824.  
  1825.    The protocol requires that all routers hash to the same RP within a
  1826.    domain (except for transients). The following hash function must be
  1827.    used in each router:
  1828.  
  1829.       1 For RP addresses in the RP-Set, whose Group-prefix covers
  1830.         G, select the RPs with the highest priority (i.e. lowest
  1831.         `Priority' value), and compute a value:
  1832.  
  1833.    Value(G,M,C(i))=
  1834.    (1103515245 * ((1103515245 * (G&M)+12345) XOR C(i)) + 12345) mod 2^31
  1835.  
  1836.         where C_i is the RP address and M is a hash-mask included in
  1837.         Bootstrap messages.  The hash-mask allows a small number of
  1838.         consecutive groups (e.g., 4) to always hash to the same RP. For
  1839.         instance, hierarchically-encoded data can be sent on consecutive
  1840.         group addresses to get the same delay and fate-sharing
  1841.         characteristics.
  1842.  
  1843.         For address families other than IPv4, a 32-bit digest to be used
  1844.         as C_i must first be derived from the actual RP address. Such a
  1845.         digest method must be used consistently throughout the PIM
  1846.  
  1847.  
  1848.  
  1849.  
  1850. Estrin, et. al.               Experimental                     [Page 33]
  1851.  
  1852. RFC 2362                         PIM-SM                        June 1998
  1853.  
  1854.  
  1855.         domain. For IPv6 addresses, we recommend using the equivalent
  1856.         IPv4 address for an IPv4-compatible address, and the CRC-32
  1857.         checksum [7] of all other IPv6 addresses.
  1858.  
  1859.       2 From the RPs with the highest priority (i.e.  lowest
  1860.         `Priority' value), the candidate with the highest resulting
  1861.         value is then chosen as the RP for that group, and its identity
  1862.         and hash value are stored with the entry created.
  1863.  
  1864.         Ties between RPs having the same hash value and priority, are
  1865.         broken in advantage of the highest address.
  1866.  
  1867.    The hash function algorithm is invoked by a DR, upon reception of a
  1868.    packet, or IGMP membership indication, for a group, for which the DR
  1869.    has no entry. It is invoked by any router that has (*,*,RP) state
  1870.    when a packet is received for which there is no corresponding (S,G)
  1871.    or (*,G) entry.  Furthermore, the hash function is invoked by all
  1872.    routers upon receiving a (*,G) or (*,*,RP) Join/Prune message.
  1873.  
  1874. 3.8 Processing Timer Events
  1875.  
  1876.    In this subsection, we enumerate all timers that have been discussed
  1877.    or implied. Since some critical timer events are not associated with
  1878.    the receipt or sending of messages, they are not fully covered by
  1879.    earlier subsections.
  1880.  
  1881.    Timers are implemented in an implementation-specific manner. For
  1882.    example, a timer may count up or down, or may simply expire at a
  1883.    specific time. Setting a timer to a value T means that it will expire
  1884.    after T seconds.
  1885.  
  1886. 3.8.1 Timers related to tree maintenance
  1887.  
  1888.    Each (S,G), (*,G), and (*,*,RP) route entry has multiple timers
  1889.    associated with it: one for each interface in the outgoing interface
  1890.    list, one for the multicast routing entry itself, and one optional
  1891.    Join/Prune-Suppression-Timer. Each (S,G) and (*,G) entry also has an
  1892.    Assert-timer and a Random-Delay-Join-Timer for use with Asserts. In
  1893.    addition, DR's have a Register-Suppression-timer for each (S,G) entry
  1894.    and every router has a single Join/Prune-timer. (A router may
  1895.    optionally keep separate Join/Prune-timers for different interfaces
  1896.    or route entries if different Join/Prune periods are desired.)
  1897.  
  1898.      *    [Join/Prune-Timer] This timer is used for periodically
  1899.           sending aggregate Join/Prune messages.  To avoid
  1900.           synchronization among routers booting simultaneously, it is
  1901.           initially set to a random value between 1 and [Join/Prune-
  1902.           Period].  When it expires, the timer is immediately restarted
  1903.  
  1904.  
  1905.  
  1906. Estrin, et. al.               Experimental                     [Page 34]
  1907.  
  1908. RFC 2362                         PIM-SM                        June 1998
  1909.  
  1910.  
  1911.           to [Join/Prune-Period]. A Join/Prune message is then sent out
  1912.           each interface.  This timer should not be restarted by other
  1913.           events.
  1914.  
  1915.      *    [Join/Prune-Suppression-Timer (kept per route entry)] A
  1916.           route entry's (optional) Join/Prune-Suppression-Timer may be
  1917.           used to suppress duplicate joins from multiple downstream
  1918.           routers on the same LAN. When a Join message is received from
  1919.           a neighbor on the entry's incoming interface in which the
  1920.           included Holdtime is higher than the router's own
  1921.           [Join/Prune-Holdtime] (with ties broken by higher network
  1922.           layer address), the timer is set to [Join/Prune-Suppression-
  1923.           Timeout], with some random jitter introduced to avoid
  1924.           synchronization of triggered Join/Prune messages on
  1925.           expiration. (The random timeout value must be < 1.5 *
  1926.           [Join/Prune-Period] to prevent losing data after 2 dropped
  1927.           Join/Prunes.)  The timer is restarted every time a subsequent
  1928.           Join/Prune message (with higher Holdtime/IP address) for the
  1929.           entry is received on its incoming interface.  While the timer
  1930.           is running, Join/Prune messages for the entry are not sent.
  1931.           This timer is idle (not running) for point-to-point links.
  1932.  
  1933.      *    [Oif-Timer (kept per oif for each route entry)] A timer for
  1934.           each oif of a route entry is used to time out that oif.
  1935.           Because some of the outgoing interfaces in an (S,G) entry are
  1936.           copied from the (*,G) outgoing interface list, they may not
  1937.           have explicit (S,G) join messages from some of the downstream
  1938.           routers (i.e., where members are joining to the (*,G) tree
  1939.           only). Thus, when an Oif-timer is restarted in a (*,G) entry,
  1940.           the Oif-timer is restarted for that interface in each existing
  1941.           (S,G) entry whose oif list contains that interface. The same
  1942.           rule applies to (*,G) and (S,G) entries when restarting an
  1943.           Oif-timer on a (*,*,RP) entry.
  1944.  
  1945.           The following table shows its usage when first adding the oif
  1946.           to the entry's oiflist, when it should be restarted (unless it
  1947.           is already higher), and when it should be decreased (unless it
  1948.           is already lower).
  1949.  
  1950. Set to                   | When                         | Applies  to
  1951. included Holdtime        | adding oif off Join/Prune    | (S,G) (*,G)
  1952.                          |                              | (*,*,RP)
  1953.  
  1954. Increased (only) to      | When                         | Applies to
  1955. included  Holdtime       | received Join/Prune          | (S,G) (*,G)
  1956.                          |                              | (*,*,RP)
  1957. (*,*,RP) oif-timer value | (*,*,RP) oif-timer restarted | (S,G) (*,G)
  1958. (*,G)  oif-timer  value  | (*,G) oif-timer restarted    | (S,G)
  1959.  
  1960.  
  1961.  
  1962. Estrin, et. al.               Experimental                     [Page 35]
  1963.  
  1964. RFC 2362                         PIM-SM                        June 1998
  1965.  
  1966.  
  1967.           When the timer expires, the oif is removed from the oiflist if
  1968.           there are no directly-connected members. When deleted, the oif
  1969.           is also removed in any associated (S,G) or (*,G) entries.
  1970.  
  1971.      *    [Entry-Timer (kept per route entry)] A timer for each route
  1972.           entry is used to time out that entry. The following table
  1973.           summarizes its usage when first adding the oif to the entry's
  1974.           oiflist, and when it should be restarted (unless it is already
  1975.           higher).
  1976.  
  1977. Set to                | When                     | Applies to
  1978. [Data-Timeout]        | created off data packet  | (S,G)
  1979. included Holdtime     | created off Join/Prune   | (S,G) (*,G) (*,*,RP)
  1980.  
  1981. Increased (only) to   | When                     | Applies to
  1982. [Data-Timeout]        | receiving  data  packets | (S,G)no RPT-bit
  1983. oif-timer value       | any oif-timer restarted  | (S,G)RPT-bit (*,G)
  1984.                       |                          | (*,*,RP)
  1985. [Assert-Timeout]      | assert received          | (S,G)RPT-bit (*,G)
  1986.                       |                          | w/null oif
  1987.  
  1988.           When the timer expires, the route entry is deleted; if the
  1989.           entry is a (*,G) or (*,*,RP) entry, all associated (S,G)RPT-
  1990.           bit entries are also deleted.
  1991.  
  1992.      *    [Register-Suppression-Timer (kept per (S,G) route entry)]
  1993.           An (S,G) route entry's Register-Suppression-Timer is used to
  1994.           suppress registers when the RP is receiving data packets
  1995.           natively. When a Register-Stop message for the entry is
  1996.           received from the RP, the timer is set to a random value in
  1997.           the range 0.5 * [Register-Suppression-Timeout] to 1.5 *
  1998.           [Register-Suppression-Timeout]. While the timer is running,
  1999.           Registers for that entry will be suppressed.  If null
  2000.           registers are used, a null register is sent [Probe-Time]
  2001.           seconds before the timer expires.
  2002.  
  2003.      *    [Assert-Timer (per (S,G) or (*,G) route entry)] The
  2004.           Assert-Timer for an (S,G) or (*,G) route entry is used for
  2005.           timing out Asserts received. When an Assert is received and
  2006.           the RPF neighbor is changed to the Assert winner, the Assert-
  2007.           Timer is set to [Assert-Timeout], and is restarted to this
  2008.           value every time a subsequent Assert for the entry is received
  2009.           on its incoming interface. When the timer expires, the router
  2010.           resets its RPF neighbor according to its unicast routing
  2011.           table.
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018. Estrin, et. al.               Experimental                     [Page 36]
  2019.  
  2020. RFC 2362                         PIM-SM                        June 1998
  2021.  
  2022.  
  2023.      *    [Random-Delay-Join-Timer (per (S,G) or (*,G) route entry)]
  2024.           The Random-Delay-Join-Timer for an (S,G) or (*,G) route entry
  2025.           is used to prevent synchronization among downstream routers on
  2026.           a LAN when their RPF neighbor changes. When the RPF neighbor
  2027.           changes, this timer is set to a random value between 0 and
  2028.           [Random-Delay-Join-Timeout] seconds. When the timer expires, a
  2029.           triggered Join/Prune message is sent for the entry unless its
  2030.           Join/Prune-Suppression-Timer is running.
  2031.  
  2032. 3.8.2 Timers relating to neighbor discovery
  2033.  
  2034.      *    [Hello-Timer] This timer is used to periodically send Hello
  2035.           messages. To avoid synchronization among routers booting
  2036.           simultaneously, it is initially set to a random value between
  2037.           1 and [Hello-Period]. When it expires, the timer is
  2038.           immediately restarted to [Hello-Period]. A Hello message is
  2039.           then sent out each interface. This timer should not be
  2040.           restarted by other events.
  2041.  
  2042.      *    [Neighbor-Timer (kept per neighbor)] A Neighbor-Timer for
  2043.           each neighbor is used to time out the neighbor state. When a
  2044.           Hello message is received from a new neighbor, the timer is
  2045.           initially set to the Holdtime included in the Hello message
  2046.           (which is equal to the neighbor's value of [Hello-Holdtime]).
  2047.           Every time a subsequent Hello is received from that neighbor,
  2048.           the timer is restarted to the Holdtime in the Hello.  When the
  2049.           timer expires, the neighbor state is removed.
  2050.  
  2051. 3.8.3 Timers relating to RP information
  2052.  
  2053.      *    [C-RP-Adv-Timer (C-RP's only)] Routers configured as
  2054.           candidate RP's use this timer to periodically send C-RP-Adv
  2055.           messages. To avoid synchronization among routers booting
  2056.           simultaneously, the timer is initially set to a random value
  2057.           between 1 and [C-RP-Adv-Period]. When it expires, the timer is
  2058.           immediately restarted to [C-RP-Adv-Period]. A C-RP-Adv message
  2059.           is then sent to the elected BSR. This timer should not be
  2060.           restarted by other events.
  2061.  
  2062.      *    [RP-Timer (BSR only, kept per RP in RP-Set)] The BSR uses a
  2063.           timer per RP in the RP-Set to monitor liveness. When a C-RP is
  2064.           added to the RP-Set, its timer is set to the Holdtime included
  2065.           in the C-RP-Adv message from that C-RP (which is equal to the
  2066.           C-RP's value of [RP-Holdtime]). Every time a subsequent C-RP-
  2067.           Adv is received from that RP, its timer is restarted to the
  2068.           Holdtime in the C-RP-Adv. When the timer expires, the RP is
  2069.           removed from the RP-Set included in Bootstrap messages.
  2070.  
  2071.  
  2072.  
  2073.  
  2074. Estrin, et. al.               Experimental                     [Page 37]
  2075.  
  2076. RFC 2362                         PIM-SM                        June 1998
  2077.  
  2078.  
  2079.      *    [Bootstrap-Timer] This timer is used by the BSR to
  2080.           periodically originate Bootstrap messages, and by other
  2081.           routers to time out the BSR (see 3.6.3).  This timer is
  2082.           initially set to [Bootstrap-Timeout]. A C-BSR restarts this
  2083.           timer to [Bootstrap-Timeout] upon receiving a Bootstrap
  2084.           message from a preferred router, and originates a Bootstrap
  2085.           message and restarts the timer to [Bootstrap-Period] when it
  2086.           expires.  Routers not configured as C-BSR's restart this timer
  2087.           to [Bootstrap-Timeout] upon receiving a Bootstrap message from
  2088.           the elected or a more preferred BSR, and ignore Bootstrap
  2089.           messages from non-preferred C-BSRs while it is running.
  2090.  
  2091. 3.8.4 Default timer values
  2092.  
  2093.    Most of the default timeout values for state information are 3.5
  2094.    times the refresh period. For example, Hellos refresh Neighbor state
  2095.    and the default Hello-timer period is 30 seconds, so a default
  2096.    Neighbor-timer duration of 105 seconds is included in the Holdtime
  2097.    field of the Hellos. In order to improve convergence, however, the
  2098.    default timeout value for information related to RP liveness and
  2099.    Bootstrap messages is 2.5 times the refresh period.
  2100.  
  2101.    In this version of the spec, we suggest particular numerical timer
  2102.    settings.  A future version of the specification will specify a
  2103.    mechanism for timer values to be scaled based upon observed network
  2104.    parameters.
  2105.  
  2106.      *    [Join/Prune-Period] This is the interval between
  2107.           sending Join/Prune messages. Default: 60 seconds. This value
  2108.           may be set to take into account such things as the configured
  2109.           bandwidth and expected average number of multicast route
  2110.           entries for the attached network or link (e.g., the period
  2111.           would be longer for lower-speed links, or for routers in the
  2112.           center of the network that expect to have a larger number of
  2113.           entries). In addition, a router could modify this value (and
  2114.           corresponding Join/Prune-Holdtime value) if the number of
  2115.           route entries changes significantly (e.g., by an order of
  2116.           magnitude).  For example, given a default minimum Join/Prune-
  2117.           Period value, if the number of route entries with a particular
  2118.           iif increases from N to N*100, the router could increase its
  2119.           Join/Prune-Period (and Join/Prune-Holdtime), for that
  2120.           interface, by a factor of 10; and if/when the number of
  2121.           entries decreases back to N, the Join/Prune-Period (and
  2122.           Join/Prune-Holdtime) could be decreased to its previous value.
  2123.           If the Join/Prune-Period is modified, these changes should be
  2124.           made relatively infrequently and the router should continue to
  2125.           refresh at its previous Join/Prune-Period for at least
  2126.           Join/Prune-Holdtime, in order to allow the upstream router to
  2127.  
  2128.  
  2129.  
  2130. Estrin, et. al.               Experimental                     [Page 38]
  2131.  
  2132. RFC 2362                         PIM-SM                        June 1998
  2133.  
  2134.  
  2135.           adapt.
  2136.  
  2137.      *    [Join-Prune Holdtime] This is the Holdtime specified in
  2138.           Join/Prune messages, and is used to time out oifs. This should
  2139.           be set to 3.5 * [Join/Prune-Period].  Default: 210 seconds.
  2140.  
  2141.      *    [Join/Prune-Suppression-Timeout] This is the mean
  2142.           interval between receiving a Join/Prune with a higher Holdtime
  2143.           (with ties broken by higher network layer address) and
  2144.           allowing duplicate Join/Prunes to be sent again. This should
  2145.           be set to approximately 1.25 * [Join/Prune-Period].  Default:
  2146.           75 seconds.
  2147.  
  2148.      *    [Data-Timeout] This is the time after which (S,G) state
  2149.           for a silent source will be deleted.  Default: 210 seconds.
  2150.  
  2151.      *    [Register-Suppression-Timeout] This is the mean
  2152.           interval between receiving a Register-Stop and allowing
  2153.           Registers to be sent again.  A lower value means more frequent
  2154.           register bursts at RP, while a higher value means longer join
  2155.           latency for new receivers.  Default: 60 seconds.  (Note that
  2156.           if null Registers are sent [Probe-Time] seconds before the
  2157.           timeout, register bursts are prevents, and [Register-
  2158.           Suppression-Timeout] may be lowered to decrease join latency.)
  2159.  
  2160.      *    [Probe-Time] When null Registers are used, this is the
  2161.           time between sending a null Register and the Register-
  2162.           Suppression-Timer expiring unless it is restarted by receiving
  2163.           a Register-Stop. Thus, a null Register would be sent when the
  2164.           Register-Suppression-Timer reaches this value.  Default: 5
  2165.           seconds.
  2166.  
  2167.      *    [Assert-Timeout] This is the interval between the last
  2168.           time an Assert is received, and the time at which the assert
  2169.           is timed out.  Default: 180 seconds.
  2170.  
  2171.      *    [Random-Delay-Join-Timeout] This is the maximum
  2172.           interval between the time when the RPF neighbor changes, and
  2173.           the time at which a triggered Join/Prune message is sent.
  2174.           Default: 4.5 seconds.
  2175.  
  2176.      *    [Hello-Period] This is the interval between sending
  2177.           Hello messages.  Default: 30 seconds.
  2178.  
  2179.      *    [Hello-Holdtime] This is the Holdtime specified in
  2180.           Hello messages, after which neighbors will time out their
  2181.           neighbor entries for the router. This should be set to 3.5 *
  2182.           [Hello-Period]. Default: 105 seconds.
  2183.  
  2184.  
  2185.  
  2186. Estrin, et. al.               Experimental                     [Page 39]
  2187.  
  2188. RFC 2362                         PIM-SM                        June 1998
  2189.  
  2190.  
  2191.      *    [C-RP-Adv-Period] For C-RPs, this is the interval
  2192.           between sending C-RP-Adv messages. Default: 60 seconds.
  2193.  
  2194.      *    [RP-Holdtime] For C-RPs, this is the Holdtime specified
  2195.           in C-RP-Adv messages, and is used by the BSR to time out RPs.
  2196.           This should be set to 2.5 * [C-RP-Adv-Period].  Default: 150
  2197.           seconds.
  2198.  
  2199.      *    [Bootstrap-Period] At the elected BSR, this is the
  2200.           interval between originating Bootstrap messages, and should be
  2201.           equal to 60 seconds.
  2202.  
  2203.      *    [Bootstrap-Timeout] This is the time after which the
  2204.           elected BSR will be assumed unreachable when Bootstrap
  2205.           messages are not received from it. This should be set to `2 *
  2206.           [Bootstrap-Period] + 10'. Default: 130 seconds.
  2207.  
  2208. 3.9 Summary of flags used
  2209.  
  2210.    Following is a summary of all the flags used in our scheme.
  2211.  
  2212. Bit           | Used in     | Definition
  2213.  
  2214. Border        | Register    | Register for external sources is coming
  2215.                               from PIM multicast  border  router
  2216. Null          | Register    | Register sent as Probe of RP, the
  2217.                               encapsulated IP data packet should not
  2218.                               be forwarded
  2219. RPT           | Route entry | Entry represents state on the RP-tree
  2220. RPT           | Join/Prune  | Join is associated with the shared tree and
  2221.                               therefore the Join/Prune message is
  2222.                               propagated along the RP-tree (source
  2223.                               encoded is an RP address)
  2224. RPT           | Assert      | The data packet was routed down the shared
  2225.                               tree; thus, the path indicated corresponds
  2226.                               to the RP tree
  2227. SPT           | (S,G) entry | Packets have arrived on the iif towards
  2228.                               S, and the iif is different from the
  2229.                               (*,G) iif
  2230. WC            |Join         | The receiver expects to receive packets
  2231.                               from all sources via this (shared tree)
  2232.                               path. Thus, the Join/Prune applies to a
  2233.                               (*,G) entry
  2234. WC            | Route entry | Wildcard entry; if there is no more
  2235.                               specific match for a particular source,
  2236.                               packets will be forwarded according to
  2237.                               this entry
  2238.  
  2239.  
  2240.  
  2241.  
  2242. Estrin, et. al.               Experimental                     [Page 40]
  2243.  
  2244. RFC 2362                         PIM-SM                        June 1998
  2245.  
  2246.  
  2247. 3.10 Security
  2248.  
  2249.    All PIM control messages may use IPsec [6] to address security
  2250.    concerns.
  2251.  
  2252. 4 Packet Formats
  2253.  
  2254.    This section describes the details of the packet formats for PIM
  2255.    control messages.
  2256.  
  2257.    All PIM control messages have protocol number 103.
  2258.  
  2259.    Basically, PIM messages are either unicast (e.g.  Registers and
  2260.    Register-Stop), or multicast hop-by-hop to `ALL-PIM-ROUTERS' group
  2261.    `224.0.0.13' (e.g. Join/Prune, Asserts, etc.).
  2262.  
  2263.      0                   1                   2                   3
  2264.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2265.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2266.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2267.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2268.  
  2269.         PIM Ver
  2270.               PIM Version number is 2.
  2271.  
  2272.         Type  Types for specific PIM messages.  PIM Types are:
  2273.  
  2274.            0 = Hello
  2275.            1 = Register
  2276.            2 = Register-Stop
  2277.            3 = Join/Prune
  2278.            4 = Bootstrap
  2279.            5 = Assert
  2280.            6 = Graft (used in PIM-DM only)
  2281.            7 = Graft-Ack (used in PIM-DM only)
  2282.            8 = Candidate-RP-Advertisement
  2283.  
  2284.         Reserved
  2285.               set to zero. Ignored upon receipt.
  2286.  
  2287.         Checksum
  2288.              The checksum is the 16-bit one's complement of the one's
  2289.              complement sum of the entire PIM message, (excluding the
  2290.              data portion in the Register message).  For computing the
  2291.              checksum, the checksum field is zeroed.
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298. Estrin, et. al.               Experimental                     [Page 41]
  2299.  
  2300. RFC 2362                         PIM-SM                        June 1998
  2301.  
  2302.  
  2303. 4.1 Encoded Source and Group Address formats
  2304.  
  2305. 1    Encoded-Unicast-address: Takes the following format:
  2306.  
  2307.   0                   1                   2                   3
  2308.   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2309.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2310.  | Addr Family   | Encoding Type |     Unicast Address           |
  2311.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+++++++
  2312.  
  2313.      Addr Family
  2314.            The address family of the `Unicast Address' field  of
  2315.            this address.
  2316.  
  2317.           Here is the address family numbers assigned by IANA:
  2318.  
  2319.  Number    Description
  2320.  --------  ---------------------------------------------------------
  2321.       0    Reserved
  2322.       1    IP (IP version 4)
  2323.       2    IP6 (IP version 6)
  2324.       3    NSAP
  2325.       4    HDLC (8-bit multidrop)
  2326.       5    BBN 1822
  2327.       6    802 (includes all 802 media plus Ethernet "canonical format")
  2328.       7    E.163
  2329.       8    E.164 (SMDS, Frame Relay, ATM)
  2330.       9    F.69 (Telex)
  2331.      10    X.121 (X.25, Frame Relay)
  2332.      11    IPX
  2333.      12    Appletalk
  2334.      13    Decnet IV
  2335.      14    Banyan Vines
  2336.      15    E.164 with NSAP format subaddress
  2337.  
  2338.      Encoding Type
  2339.           The type of encoding used within a specific Address
  2340.           Family.  The value `0' is reserved for this field,
  2341.           and represents the native encoding of the Address
  2342.           Family.
  2343.  
  2344.      Unicast Address
  2345.           The unicast address as represented by the given
  2346.           Address Family and Encoding Type.
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354. Estrin, et. al.               Experimental                     [Page 42]
  2355.  
  2356. RFC 2362                         PIM-SM                        June 1998
  2357.  
  2358.  
  2359. 2    Encoded-Group-Address: Takes the following format:
  2360.  
  2361.   0                   1                   2                   3
  2362.   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2363.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2364.  | Addr Family   | Encoding Type |   Reserved    |  Mask Len     |
  2365.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2366.  |                Group multicast Address                        |
  2367.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2368.  
  2369.      Addr Family
  2370.            described above.
  2371.  
  2372.      Encoding Type
  2373.            described above.
  2374.  
  2375.      Reserved
  2376.            Transmitted as zero. Ignored upon receipt.
  2377.  
  2378.      Mask Len
  2379.           The Mask length is 8 bits. The value is the number of
  2380.           contiguous bits left justified used as a mask which
  2381.           describes the address. It is less than or equal to the
  2382.           address length in bits for the given Address Family
  2383.           and Encoding Type. If the message is sent for a single
  2384.           group then the Mask length must equal the address
  2385.           length in bits for the given Address Family and
  2386.           Encoding Type.  (e.g. 32 for IPv4 native encoding and
  2387.           128 for IPv6 native encoding).
  2388.  
  2389.      Group multicast Address
  2390.            contains the group address.
  2391.  
  2392. 3    Encoded-Source-Address: Takes the following format:
  2393.  
  2394.   0                   1                   2                   3
  2395.   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2396.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2397.  | Addr Family   | Encoding Type | Rsrvd   |S|W|R|  Mask Len     |
  2398.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2399.  |                        Source Address                         |
  2400.  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2401.  
  2402.      Addr Family
  2403.            described above.
  2404.  
  2405.      Encoding Type
  2406.            described above.
  2407.  
  2408.  
  2409.  
  2410. Estrin, et. al.               Experimental                     [Page 43]
  2411.  
  2412. RFC 2362                         PIM-SM                        June 1998
  2413.  
  2414.  
  2415.      Reserved
  2416.            Transmitted as zero, ignored on receipt.
  2417.  
  2418.      S,W,R See Section 4.5 for details.
  2419.  
  2420.      Mask Length
  2421.           Mask length is 8 bits. The value is the number of
  2422.           contiguous bits left justified used as a mask which
  2423.           describes the address. The mask length must be less
  2424.           than or equal to the address length in bits for the
  2425.           given Address Family and Encoding Type. If the message
  2426.           is sent for a single group then the Mask length must
  2427.           equal the address length in bits for the given Address
  2428.           Family and Encoding Type. In version 2 of PIM, it is
  2429.           strongly recommended that this field be set to 32 for
  2430.           IPv4 native encoding.
  2431.  
  2432.      Source Address
  2433.            The source address.
  2434.  
  2435. 4.2 Hello Message
  2436.  
  2437.    It is sent periodically by routers on all interfaces.
  2438.  
  2439.      0                   1                   2                   3
  2440.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2441.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2442.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2443.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2444.     |       OptionType              |         OptionLength          |
  2445.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2446.     |                          OptionValue                          |
  2447.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+++
  2448.     |                               .                               |
  2449.     |                               .                               |
  2450.     |                               .                               |
  2451.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2452.     |       OptionType              |         OptionLength          |
  2453.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2454.     |                          OptionValue                          |
  2455.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+++
  2456.  
  2457.  
  2458.         PIM Version, Type, Reserved, Checksum
  2459.               Described above.
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466. Estrin, et. al.               Experimental                     [Page 44]
  2467.  
  2468. RFC 2362                         PIM-SM                        June 1998
  2469.  
  2470.  
  2471.         OptionType
  2472.               The type of the option given in the following  OptionValue
  2473.              field.
  2474.  
  2475.         OptionLength
  2476.               The length of the OptionValue field in bytes.
  2477.  
  2478.         OptionValue
  2479.               A variable length field, carrying the value of the option.
  2480.  
  2481.         The Option fields may contain the following values:
  2482.  
  2483.      *    OptionType = 1; OptionLength = 2; OptionValue = Holdtime;
  2484.           where Holdtime is the amount of time a receiver must keep the
  2485.           neighbor reachable, in seconds. If the Holdtime is set to
  2486.           `0xffff', the receiver of this message never times out the
  2487.           neighbor. This may be used with ISDN lines, to avoid keeping
  2488.           the link up with periodic Hello messages.  Furthermore, if the
  2489.           Holdtime is set to `0', the information is timed out
  2490.           immediately.
  2491.  
  2492.      *    OptionType 2 to 16: reserved
  2493.  
  2494.      *    The rest of the OptionTypes are defined in another
  2495.           document.
  2496.  
  2497.    In general, options may be ignored; but a router must not ignore the
  2498.  
  2499. 4.3 Register Message
  2500.  
  2501.    A Register message is sent by the DR or a PMBR to the RP when a
  2502.    multicast packet needs to be transmitted on the RP-tree. Source
  2503.    address is set to the address of the DR, destination address is to
  2504.    the RP's address.
  2505.  
  2506.      0                   1                   2                   3
  2507.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2508.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2509.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2510.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2511.     |B|N|                       Reserved                            |
  2512.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2513.     |                                                               |
  2514.                           Multicast data packet
  2515.     |                                                               |
  2516.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522. Estrin, et. al.               Experimental                     [Page 45]
  2523.  
  2524. RFC 2362                         PIM-SM                        June 1998
  2525.  
  2526.  
  2527.         PIM Version, Type, Reserved, Checksum
  2528.               Described above. Note that the checksum for Registers
  2529.              is done only on the PIM header, excluding the data packet
  2530.              portion.
  2531.  
  2532.         B     The Border bit. If the router is a DR for a source that it
  2533.              is directly connected to, it sets the B bit to 0. If the
  2534.              router is a PMBR for a source in a directly connected
  2535.              cloud, it sets the B bit to 1.
  2536.  
  2537.         N     The Null-Register bit. Set to 1 by a DR that is probing
  2538.              the RP before expiring its local Register-Suppression
  2539.              timer. Set to 0 otherwise.
  2540.  
  2541.         Multicast data packet
  2542.               The original packet sent by the source.
  2543.  
  2544.         For (S,G) null Registers, the Multicast data packet portion
  2545.         contains only a dummy header with S as the source address, G as
  2546.         the destination address, and a data length of zero.
  2547.  
  2548. 4.4 Register-Stop Message
  2549.  
  2550.    A Register-Stop is unicast from the RP to the sender of the Register
  2551.    message.  Source address is the address to which the register was
  2552.    addressed.  Destination address is the source address of the register
  2553.    message.
  2554.  
  2555.      0                   1                   2                   3
  2556.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2557.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2558.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2559.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2560.     |                    Encoded-Group Address                      |
  2561.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2562.     |                    Encoded-Unicast-Source Address             |
  2563.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2564.  
  2565.         PIM Version, Type, Reserved, Checksum
  2566.               Described above.
  2567.  
  2568.         Encoded-Group Address
  2569.               Format described above. Note that for Register-Stops the
  2570.              Mask Len field contains full address length * 8 (e.g. 32
  2571.              for IPv4 native encoding), if the message is sent for a
  2572.              single group.
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578. Estrin, et. al.               Experimental                     [Page 46]
  2579.  
  2580. RFC 2362                         PIM-SM                        June 1998
  2581.  
  2582.  
  2583.         Encoded-Unicast-Source Address
  2584.               host address of source from multicast data packet in
  2585.              register. The format for this address is given in the
  2586.              Encoded-Unicast-Address in 4.1. A special wild card value
  2587.              (0's), can be used to indicate any source.
  2588.  
  2589. 4.5 Join/Prune Message
  2590.  
  2591.    A Join/Prune message is sent by routers towards upstream sources and
  2592.    RPs.  Joins are sent to build shared trees (RP trees) or source trees
  2593.    (SPT). Prunes are sent to prune source trees when members leave
  2594.    groups as well as sources that do not use the shared tree.
  2595.  
  2596.      0                   1                   2                   3
  2597.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2598.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2599.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2600.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2601.     |             Encoded-Unicast-Upstream Neighbor Address         |
  2602.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2603.     |  Reserved     | Num groups    |          Holdtime             |
  2604.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2605.     |            Encoded-Multicast Group Address-1                  |
  2606.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2607.     |   Number of Joined  Sources   |   Number of Pruned Sources    |
  2608.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2609.     |               Encoded-Joined Source Address-1                 |
  2610.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2611.     |                             .                                 |
  2612.     |                             .                                 |
  2613.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2614.     |               Encoded-Joined Source Address-n                 |
  2615.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2616.     |               Encoded-Pruned Source Address-1                 |
  2617.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2618.     |                             .                                 |
  2619.     |                             .                                 |
  2620.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2621.     |               Encoded-Pruned Source Address-n                 |
  2622.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2623.     |                           .                                   |
  2624.     |                           .                                   |
  2625.     |                           .                                   |
  2626.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2627.     |                Encoded-Multicast Group Address-n              |
  2628.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2629.     |   Number of Joined  Sources   |   Number of Pruned Sources    |
  2630.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2631.  
  2632.  
  2633.  
  2634. Estrin, et. al.               Experimental                     [Page 47]
  2635.  
  2636. RFC 2362                         PIM-SM                        June 1998
  2637.  
  2638.  
  2639.     |               Encoded-Joined Source Address-1                 |
  2640.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2641.     |                             .                                 |
  2642.     |                             .                                 |
  2643.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2644.     |               Encoded-Joined Source Address-n                 |
  2645.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2646.     |               Encoded-Pruned Source Address-1                 |
  2647.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2648.     |                             .                                 |
  2649.     |                             .                                 |
  2650.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2651.     |               Encoded-Pruned Source Address-n                 |
  2652.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2653.  
  2654.         PIM Version, Type, Reserved, Checksum
  2655.               Described above.
  2656.  
  2657.         Encoded-Unicast Upstream Neighbor Address
  2658.               The address of the RPF or upstream neighbor.  The format
  2659.              for this address is given in the Encoded-Unicast-Address in
  2660.              4.1. .IP "Reserved"
  2661.               Transmitted as zero, ignored on receipt.
  2662.  
  2663.         Holdtime
  2664.               The amount of time a receiver must keep the Join/Prune
  2665.              state alive, in seconds.  If the Holdtime is set to
  2666.              `0xffff', the receiver of this message never times out the
  2667.              oif. This may be used with ISDN lines, to avoid keeping the
  2668.              link up with periodical Join/Prune messages.  Furthermore,
  2669.              if the Holdtime is set to `0', the information is timed out
  2670.              immediately.
  2671.  
  2672.         Number of Groups
  2673.               The number of multicast group sets contained in the
  2674.              message.
  2675.  
  2676.         Encoded-Multicast group address
  2677.               For format description see Section
  2678.               4.1. A wild card group in the (*,*,RP) join is represented
  2679.              by a 224.0.0.0 in the group address field and `4' in the
  2680.              mask length field. A (*,*,RP) join also has the WC-bit and
  2681.              the RPT-bit set.
  2682.  
  2683.         Number of Joined Sources
  2684.               Number of join source addresses listed for a given group.
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690. Estrin, et. al.               Experimental                     [Page 48]
  2691.  
  2692. RFC 2362                         PIM-SM                        June 1998
  2693.  
  2694.  
  2695.         Join Source Address-1 .. n
  2696.               This list contains the sources that the sending router
  2697.              will forward multicast datagrams for if received on the
  2698.              interface this message is sent on.
  2699.  
  2700.              See format section 4.1. The fields explanation for the
  2701.              Encoded-Source-Address format follows:
  2702.  
  2703.              Reserved
  2704.                    Described above.
  2705.  
  2706.              S     The Sparse bit is a 1 bit value, set to 1 for PIM-SM.
  2707.                   It is used for PIM v.1 compatibility.
  2708.  
  2709.              W     The WC bit is a 1 bit value. If 1, the join or  prune
  2710.                   applies to the (*,G) or (*,*,RP) entry. If 0, the join
  2711.                   or prune applies to the (S,G) entry where S is Source
  2712.                   Address.  Joins and prunes sent towards the RP must
  2713.                   have this bit set.
  2714.  
  2715.              R     The RPT-bit is a 1 bit value. If 1, the information
  2716.                   about (S,G) is sent towards the RP.  If 0, the
  2717.                   information must be sent toward S, where S is the
  2718.                   Source Address.
  2719.  
  2720.              Mask Length, Source Address
  2721.                    Described above.
  2722.  
  2723.              Represented in the form of
  2724.              <  WC-bit  ><  RPT-bit  ><Mask length >< Source address>:
  2725.  
  2726.              A source address could be a host IPv4 native encoding
  2727.              address :
  2728.  
  2729.               < 0 >< 0 >< 32 >< 192.1.1.17 >
  2730.  
  2731.              A source address could be the RP's IP address :
  2732.  
  2733.               < 1 >< 1 >< 32 >< 131.108.13.111 >
  2734.  
  2735.              A source address could be a subnet address to prune from
  2736.              the RP-tree :
  2737.  
  2738.               < 0 >< 1 >< 28 >< 192.1.1.16 >
  2739.  
  2740.              A source address could be a general aggregate :
  2741.  
  2742.               < 0 >< 0 >< 16 >< 192.1.0.0 >
  2743.  
  2744.  
  2745.  
  2746. Estrin, et. al.               Experimental                     [Page 49]
  2747.  
  2748. RFC 2362                         PIM-SM                        June 1998
  2749.  
  2750.  
  2751.         Number of Pruned Sources
  2752.               Number of prune source addresses listed for a group.
  2753.  
  2754.         Prune Source Address-1 .. n
  2755.               This list contains the sources that the sending router
  2756.              does not want to forward multicast datagrams for when
  2757.              received on the interface this message is sent on.  If the
  2758.              Join/Prune message boundary exceeds the maximum packet
  2759.              size, then the join and prune lists for the same group must
  2760.              be included in the same packet.
  2761.  
  2762. 4.6 Bootstrap Message
  2763.  
  2764.    The Bootstrap messages are multicast to `ALL-PIM-ROUTERS' group, out
  2765.    all interfaces having PIM neighbors (excluding the one over which the
  2766.    message was received).  Bootstrap messages are sent with TTL value of
  2767.    1. Bootstrap messages originate at the BSR, and are forwarded by
  2768.    intermediate routers.
  2769.  
  2770.    Bootstrap message is divided up into `semantic fragments', if the
  2771.    original message exceeds the maximum packet size boundaries.
  2772.  
  2773.    The semantics of a single `fragment' is given below:
  2774.  
  2775.      0                   1                   2                   3
  2776.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2777.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2778.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2779.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2780.     |         Fragment Tag          | Hash Mask len | BSR-priority  |
  2781.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2782.     |                 Encoded-Unicast-BSR-Address                   |
  2783.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2784.     |                         Encoded-Group Address-1               |
  2785.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2786.     | RP-Count-1    | Frag RP-Cnt-1 |         Reserved              |
  2787.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2788.     |                 Encoded-Unicast-RP-Address-1                  |
  2789.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2790.     |          RP1-Holdtime         | RP1-Priority  |   Reserved    |
  2791.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2792.     |                 Encoded-Unicast-RP-Address-2                  |
  2793.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2794.     |          RP2-Holdtime         | RP2-Priority  |   Reserved    |
  2795.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2796.     |                               .                               |
  2797.     |                               .                               |
  2798.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2799.  
  2800.  
  2801.  
  2802. Estrin, et. al.               Experimental                     [Page 50]
  2803.  
  2804. RFC 2362                         PIM-SM                        June 1998
  2805.  
  2806.  
  2807.     |                 Encoded-Unicast-RP-Address-m                  |
  2808.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2809.     |          RPm-Holdtime         | RPm-Priority  |   Reserved    |
  2810.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2811.     |                         Encoded-Group Address-2               |
  2812.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2813.     |                               .                               |
  2814.     |                               .                               |
  2815.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2816.     |                         Encoded-Group Address-n               |
  2817.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2818.     | RP-Count-n    | Frag RP-Cnt-n |          Reserved             |
  2819.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2820.     |                 Encoded-Unicast-RP-Address-1                  |
  2821.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2822.     |          RP1-Holdtime         | RP1-Priority  |   Reserved    |
  2823.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2824.     |                 Encoded-Unicast-RP-Address-2                  |
  2825.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2826.     |          RP2-Holdtime         | RP2-Priority  |   Reserved    |
  2827.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2828.     |                               .                               |
  2829.     |                               .                               |
  2830.     |                               .                               |
  2831.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2832.     |                 Encoded-Unicast-RP-Address-m                  |
  2833.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2834.     |          RPm-Holdtime         | RPm-Priority  |   Reserved    |
  2835.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2836.  
  2837.         PIM Version, Type, Reserved, Checksum
  2838.               Described above.
  2839.  
  2840.         Fragment Tag
  2841.               A randomly generated number, acts to distinguish the
  2842.              fragments belonging to different Bootstrap messages;
  2843.              fragments belonging to same Bootstrap message carry the
  2844.              same `Fragment Tag'.
  2845.  
  2846.         Hash Mask len
  2847.               The length (in bits) of the mask to use in the hash
  2848.              function. For IPv4 we recommend a value of 30. For IPv6 we
  2849.              recommend a value of 126.
  2850.  
  2851.         BSR-priority
  2852.               Contains the BSR priority value of the included BSR.  This
  2853.              field is considered as a high order byte when comparing BSR
  2854.              addresses.
  2855.  
  2856.  
  2857.  
  2858. Estrin, et. al.               Experimental                     [Page 51]
  2859.  
  2860. RFC 2362                         PIM-SM                        June 1998
  2861.  
  2862.  
  2863.         Encoded-Unicast-BSR-Address
  2864.               The address of the bootstrap router for the domain.  The
  2865.              format for this address is given in the Encoded-Unicast-
  2866.              Address in 4.1. .IP "Encoded-Group Address-1..n"
  2867.               The group prefix (address and mask) with which the
  2868.              Candidate RPs are associated. Format previously described.
  2869.  
  2870.         RP-Count-1..n
  2871.               The number of Candidate RP addresses included in the whole
  2872.              Bootstrap message for the corresponding group prefix. A
  2873.              router does not replace its old RP-Set for a given group
  2874.              prefix until/unless it receives `RP-Count' addresses for
  2875.              that prefix; the addresses could be carried over several
  2876.              fragments.  If only part of the RP-Set for a given group
  2877.              prefix was received, the router discards it, without
  2878.              updating that specific group prefix's RP-Set.
  2879.  
  2880.         Frag RP-Cnt-1..m
  2881.               The number of Candidate RP addresses included in this
  2882.              fragment of the Bootstrap message, for the corresponding
  2883.              group prefix. The `Frag RP-Cnt' field facilitates parsing
  2884.              of the RP-Set for a given group prefix, when carried over
  2885.              more than one fragment.
  2886.  
  2887.         Encoded-Unicast-RP-address-1..m
  2888.               The address of the Candidate RPs, for the corresponding
  2889.              group prefix.  The format for this address is given in the
  2890.              Encoded-Unicast-Address in 4.1. .IP "RP1..m-Holdtime"
  2891.               The Holdtime for the corresponding RP.  This field is
  2892.              copied from the `Holdtime' field of the associated RP
  2893.              stored at the BSR.
  2894.  
  2895.         RP1..m-Priority
  2896.               The `Priority' of the corresponding RP and Encoded-Group
  2897.              Address.  This field is copied from the `Priority' field
  2898.              stored at the BSR when receiving a Candidate-RP-
  2899.              Advertisement.  The highest priority is `0' (i.e. the lower
  2900.              the value of the `Priority' field, the higher).  Note that
  2901.              the priority is per RP per Encoded-Group Address.
  2902.  
  2903. 4.7 Assert Message
  2904.  
  2905.    The Assert message is sent when a multicast data packet is received
  2906.    on an outgoing interface corresponding to the (S,G) or (*,G)
  2907.    associated with the source.
  2908.  
  2909.  
  2910.  
  2911.  
  2912.  
  2913.  
  2914. Estrin, et. al.               Experimental                     [Page 52]
  2915.  
  2916. RFC 2362                         PIM-SM                        June 1998
  2917.  
  2918.  
  2919.      0                   1                   2                   3
  2920.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2921.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2922.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2923.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2924.     |                      Encoded-Group Address                    |
  2925.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2926.     |              Encoded-Unicast-Source Address                   |
  2927.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2928.     |R|                        Metric Preference                    |
  2929.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2930.     |                          Metric                               |
  2931.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2932.  
  2933.         PIM Version, Type, Reserved, Checksum
  2934.               Described above.
  2935.  
  2936.         Encoded-Group Address
  2937.               The group address to which the data packet was addressed,
  2938.              and which triggered the Assert.  Format previously
  2939.              described.
  2940.  
  2941.         Encoded-Unicast-Source Address
  2942.               Source address from multicast datagram that triggered the
  2943.              Assert packet to be sent. The format for this address is
  2944.              given in the Encoded-Unicast-Address in 4.1. .IP "R"
  2945.               RPT-bit is a 1 bit value. If the multicast datagram that
  2946.              triggered the Assert packet is routed down the RP tree,
  2947.              then the RPT-bit is 1; if the multicast datagram is routed
  2948.              down the SPT, it is 0.
  2949.  
  2950.         Metric Preference
  2951.               Preference value assigned to the unicast routing protocol
  2952.              that provided the route to Host address.
  2953.  
  2954.         Metric The unicast routing table metric. The metric is in units
  2955.              applicable to the unicast routing protocol used.
  2956.  
  2957. 4.8 Graft Message
  2958.  
  2959.    Used in dense-mode. Refer to PIM dense mode specification.
  2960.  
  2961. 4.9 Graft-Ack Message
  2962.  
  2963.    Used in dense-mode. Refer to PIM dense mode specification.
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970. Estrin, et. al.               Experimental                     [Page 53]
  2971.  
  2972. RFC 2362                         PIM-SM                        June 1998
  2973.  
  2974.  
  2975. 4.10 Candidate-RP-Advertisement
  2976.  
  2977.    Candidate-RP-Advertisements are periodically unicast from the C-RPs
  2978.    to the BSR.
  2979.  
  2980.      0                   1                   2                   3
  2981.      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  2982.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2983.     |PIM Ver| Type  | Reserved      |           Checksum            |
  2984.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2985.     | Prefix-Cnt    |   Priority    |             Holdtime          |
  2986.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2987.     |                 Encoded-Unicast-RP-Address                    |
  2988.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2989.     |                         Encoded-Group Address-1               |
  2990.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2991.     |                               .                               |
  2992.     |                               .                               |
  2993.     |                               .                               |
  2994.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2995.     |                         Encoded-Group Address-n               |
  2996.     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  2997.  
  2998.         PIM Version, Type, Reserved, Checksum
  2999.               Described above.
  3000.  
  3001.         Prefix-Cnt
  3002.               The number of encoded group addresses included in the
  3003.              message; indicating the group prefixes for which the C-RP
  3004.              is advertising. A Prefix-Cnt of `0' implies a prefix of
  3005.              224.0.0.0 with mask length of 4; i.e. all multicast groups.
  3006.              If the C-RP is not configured with Group-prefix
  3007.              information, the C-RP puts a default value of `0' in this
  3008.              field.
  3009.  
  3010.         Priority
  3011.               The `Priority' of the included RP, for the corresponding
  3012.              Encoded-Group Address (if any).  highest priority is `0'
  3013.              (i.e. the lower the value of the `Priority' field, the
  3014.              higher the priority). This field is stored at the BSR upon
  3015.              receipt along with the RP address and corresponding
  3016.              Encoded-Group Address.
  3017.  
  3018.         Holdtime
  3019.               The amount of time the advertisement is valid. This field
  3020.              allows advertisements to be aged out.
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026. Estrin, et. al.               Experimental                     [Page 54]
  3027.  
  3028. RFC 2362                         PIM-SM                        June 1998
  3029.  
  3030.  
  3031.         Encoded-Unicast-RP-Address
  3032.               The address of the interface to advertise as a Candidate
  3033.              RP.  The format for this address is given in the Encoded-
  3034.              Unicast-Address in 4.1. .IP "Encoded-Group Address-1..n"
  3035.               The group prefixes for which the C-RP is advertising.
  3036.              Format previously described.
  3037.  
  3038. 5 Acknowledgments
  3039.  
  3040.    Tony Ballardie, Scott Brim, Jon Crowcroft, Bill Fenner, Paul Francis,
  3041.    Joel Halpern, Horst Hodel, Polly Huang, Stephen Ostrowski, Lixia
  3042.    Zhang and Girish Chandranmenon provided detailed comments on previous
  3043.    drafts. The authors of CBT [8] and membership of the IDMR WG provided
  3044.    many of the motivating ideas for this work and useful feedback on
  3045.    design details.
  3046.  
  3047.    This work was supported by the National Science Foundation, ARPA,
  3048.    cisco Systems and Sun Microsystems.
  3049.  
  3050.  
  3051.  
  3052.  
  3053.  
  3054.  
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082. Estrin, et. al.               Experimental                     [Page 55]
  3083.  
  3084. RFC 2362                         PIM-SM                        June 1998
  3085.  
  3086.  
  3087. 6 Appendices
  3088.  
  3089. 6.1 Appendix I: Major Changes and Updates to the Spec
  3090.  
  3091.    This appendix populates the major changes in the specification
  3092.    document as compared to `draft-ietf-idmr-pim-spec-01.ps,txt'.
  3093.  
  3094.    bsubsection*Major Changes
  3095.  
  3096.    List of changes since March '96 IETF:
  3097.  
  3098.      1. (*,*,RP) Joins state and data forwarding check; replaces (*,G-
  3099.      Prefix) Joins state for interoperability. (*,G) negative cache
  3100.      introduced for the (*,*,RP) state supporting mechanisms.
  3101.  
  3102.      2. Semantic fragmentation for the Bootstrap message.
  3103.  
  3104.      3. Refinement of Assert details.
  3105.  
  3106.      4. Addition and refinement of Join/Prune suppression and Register
  3107.      suppression (introduction of null Registers).
  3108.  
  3109.      5. Editorial changes and clarifications to the timers section.
  3110.  
  3111.      6. Addition of Appendix II (BSR Election and RP-Set Distribution),
  3112.      and Appendix III (Glossary of Terms).
  3113.  
  3114.      7. Addition of table of contents.
  3115.  
  3116.    List of changes incurred since version 1 of the spec.:
  3117.  
  3118.      1. Proposal and refinement of bootstrap router (BSR) election
  3119.      mechanisms
  3120.  
  3121.      2. Introduction of hash functions for Group to RP mapping
  3122.  
  3123.      3. New RP-liveness indication mechanisms based upon the the
  3124.      Bootstrap Router (BSR) and the Bootstrap messages.
  3125.  
  3126.      4. Removal of reachability messages, RP reports and multiple RPs
  3127.      per group.
  3128.  
  3129.    *Packet Format Changes
  3130.  
  3131.      Packet Format incurred updates to accommodate different address
  3132.      lengths, and address aggregation.
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138. Estrin, et. al.               Experimental                     [Page 56]
  3139.  
  3140. RFC 2362                         PIM-SM                        June 1998
  3141.  
  3142.  
  3143.      1 The `Addr Family' and `Encoding Type' fields were added to the
  3144.      packet formats.
  3145.  
  3146.      2 The Encoded source and group address formats were introduced,
  3147.      with the use of a `Mask length' field to allow aggregation, section
  3148.      4.1.
  3149.  
  3150.      3 Packet formats are no longer IGMP messages; rather PIM messages.
  3151.  
  3152.    PIM message types and formats were also modified:
  3153.  
  3154.    [Note: most changes were made to the May  95  version,  unless
  3155.    otherwise specified].
  3156.  
  3157.      1    Obsolete messages:
  3158.  
  3159.          Register-Ack [Feb. 96]
  3160.  
  3161.          Poll and Poll Response [Feb. 96]
  3162.  
  3163.          RP-Reachability [Feb. 96]
  3164.  
  3165.          RPlist-Mapping [Feb. 96]
  3166.  
  3167.  
  3168.      2     New messages:
  3169.  
  3170.          Candidate-RP-Advertisement [change made in  October  95]
  3171.          RP-Set [Feb. 96]
  3172.  
  3173.      3       Modified messages:
  3174.  
  3175.          Join/Prune [Feb. 96]
  3176.          Register [Feb. 96]
  3177.          Register-Stop [Feb.  96]
  3178.          Hello (addition of OptionTypes) [Aug 96]
  3179.  
  3180.      4        Renamed messages:
  3181.  
  3182.           Query messages are renamed as Hello messages [Aug. 96]
  3183.           RP-Set  messages are renamed as Bootstrap messages [Aug. 96]
  3184.  
  3185.  
  3186.  
  3187.  
  3188.  
  3189.  
  3190.  
  3191.  
  3192.  
  3193.  
  3194. Estrin, et. al.               Experimental                     [Page 57]
  3195.  
  3196. RFC 2362                         PIM-SM                        June 1998
  3197.  
  3198.  
  3199. 6.2 Appendix II: BSR Election and RP-Set Distribution
  3200.  
  3201.    For simplicity, the bootstrap message is used in both the BSR
  3202.    election and the RP-Set distribution mechanisms.  These mechanisms
  3203.    are described by the following state machine, illustrated in figure
  3204.    4.  The protocol transitions for a Candidate-BSR are given  in state
  3205.    diagram (a).  For routers not configured as Candidate-BSRs, the
  3206.    protocol transitions are given in state diagram (b).
  3207.  
  3208.      [Figures are present only in the postscript version] Fig. 4 State
  3209.            Diagram for the BSR election and RP-Set distribution
  3210.  
  3211.    Each PIM router keeps a bootstrap-timer, initialized to [Bootstrap-
  3212.    Timeout], in addition to a local BSR field `LclBSR' (initialized to a
  3213.    local address if Candidate-BSR, or to 0 otherwise), and a local RP-
  3214.    Set `LclRP-Set' (initially empty). The main stimuli to the state
  3215.    machine are timer events and arrival of bootstrap messages:
  3216.  
  3217.         bsubsection*Initial States and Timer Events
  3218.  
  3219.         1
  3220.  
  3221.         2    If the router is a Candidate-BSR:
  3222.  
  3223.              1
  3224.  
  3225.              2 The router operates initially in the `CandBSR' state,
  3226.                where it does not originate any bootstrap messages.
  3227.  
  3228.              3 If the bootstrap-timer expires, and the current state
  3229.                is `CandBSR', the router originates a bootstrap
  3230.                message carrying the local RP-Set and its own BSR
  3231.                priority and address, restarts the bootstrap-timer at
  3232.                [Bootstrap-Period] seconds, and transits into the
  3233.                `ElectedBSR' state. Note that the actual sending of
  3234.                the bootstrap message may be delayed by a random value
  3235.                to reduce transient control overhead. To obtain best
  3236.                results, the random value is set such that the
  3237.                preferred BSR is the first to originate a bootstrap
  3238.                message. We propose the following as an efficient
  3239.                implementation of the random value delay (in seconds):
  3240.  
  3241.          Delay = 5 + 2 * log_2(1 + bestPriority - myPriority) + AddrDelay
  3242.  
  3243.                where myPriority is the Candidate-BSR's
  3244.                configured priority, and bestPriority equals:
  3245.  
  3246.                  bestPriority = Max(storedPriority, myPriority) ]
  3247.  
  3248.  
  3249.  
  3250. Estrin, et. al.               Experimental                     [Page 58]
  3251.  
  3252. RFC 2362                         PIM-SM                        June 1998
  3253.  
  3254.  
  3255.  
  3256.                and AddrDelay is given by the following:
  3257.  
  3258.  
  3259.                1 if ( bestPriority equals myPriority) then
  3260.                [AddrDelay = log_2(bestAddr - myAddr) / 16, ]
  3261.  
  3262.                2 else [AddrDelay = 2 - (myAddr / 2^31) ]
  3263.  
  3264.                where myAddr is the Candidate-BSR's address, and
  3265.                bestAddr is the stored BSR's address.
  3266.  
  3267.  
  3268.              4 If the bootstrap-timer expires, and the current state
  3269.                is `ElectedBSR', the router originates a bootstrap
  3270.                message, and restarts the RP-Set timer at [Bootstrap-
  3271.                Period]. No state transition is incurred.
  3272.  
  3273.                This way, the elected BSR originates periodic
  3274.                bootstrap messages every [Bootstrap-Period].
  3275.  
  3276.         3 If a router is not a Candidate-BSR:
  3277.  
  3278.  
  3279.              1
  3280.  
  3281.              2 The router operates initially in the `AxptAny' state.
  3282.                In such state, a router accepts the first bootstrap
  3283.                message from the The Reverse Path Forwarding (RPF)
  3284.                neighbor toward the included BSR. The RPF neighbor in
  3285.                this case is the next hop router en route to the
  3286.                included BSR.
  3287.  
  3288.              3 If the bootstrap-timer expires, and the current state
  3289.                is `AxptPref'-- where the router accepts only
  3290.                preferred bootstrap messages (those that carry BSR-
  3291.                priority and address higher than, or equal to,
  3292.                `LclBSR') from the RPF neighbor toward the included
  3293.                BSR-- the router transits into the `AxptAny' state.
  3294.  
  3295.                In this case, if an elected BSR becomes unreachable,
  3296.                the routers start accepting bootstrap messages from
  3297.                another Candidate-BSR after the bootstrap-timer
  3298.                expires.  All PIM routers within a domain converge on
  3299.                the preferred reachable Candidate-BSR.
  3300.  
  3301.  
  3302.  
  3303.  
  3304.  
  3305.  
  3306. Estrin, et. al.               Experimental                     [Page 59]
  3307.  
  3308. RFC 2362                         PIM-SM                        June 1998
  3309.  
  3310.  
  3311.         Receiving Bootstrap Message:
  3312.  
  3313.         To avoid loops, an RPF check is performed on the included BSR
  3314.         address.  Upon receiving a bootstrap message from the RPF
  3315.         neighbor toward the included BSR, the following actions are
  3316.         taken:
  3317.  
  3318.         1 If the router is not a Candidate-BSR:
  3319.  
  3320.              1 If the current state is `AxptAny', the router accepts
  3321.                the bootstrap message, and transits into the
  3322.                `AxptPref' state.
  3323.  
  3324.              2 If the current state is `AxptPref', and the bootstrap
  3325.                message is preferred, the message is accepted. No
  3326.                state transition is incurred.
  3327.  
  3328.         2 If the router is a Candidate-BSR, and the bootstrap message
  3329.           is preferred, the message is accepted. Further, if this
  3330.           happens when the current state is `Elected BSR', the router
  3331.           transits into the `CandBSR' state.
  3332.  
  3333.         When a bootstrap message is accepted, the router restarts the
  3334.         bootstrap-timer at [Bootstrap-Timeout], stores the received BSR
  3335.         priority and address in `LclBSR', and the received RP-Set in
  3336.         `LclRP-Set', and forwards the bootstrap message out all
  3337.         interfaces except the receiving interface.
  3338.  
  3339.         If a bootstrap message is rejected, no state transitions are
  3340.         triggered.
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354.  
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362. Estrin, et. al.               Experimental                     [Page 60]
  3363.  
  3364. RFC 2362                         PIM-SM                        June 1998
  3365.  
  3366.  
  3367. 6.3 Appendix III: Glossary of Terms
  3368.  
  3369.    Following is an alphabetized list of terms and definitions used
  3370.    throughout this specification.
  3371.  
  3372.      *    { Bootstrap router (BSR)}. A BSR is a dynamically elected
  3373.           router within a PIM domain. It is responsible for constructing
  3374.           the RP-Set and originating Bootstrap messages.
  3375.  
  3376.      *    { Candidate-BSR (C-BSR)}. A C-BSR is a router configured to
  3377.           participate in the BSR election and act as BSRs if elected.
  3378.  
  3379.      *    { Candidate RP (C-RP)}. A C-RP is a router configured to
  3380.           send periodic Candidate-RP-Advertisement messages to the BSR,
  3381.           and act as an RP when it receives Join/Prune or Register
  3382.           messages for the advertised group prefix.
  3383.  
  3384.      *    { Designated Router (DR)}. The DR sets up multicast route
  3385.           entries and sends corresponding Join/Prune and Register
  3386.           messages on behalf of directly-connected receivers and
  3387.           sources, respectively.  The DR may or may not be the same
  3388.           router as the IGMP Querier. The DR may or may not be the
  3389.           long-term, last-hop router for the group; a router on the LAN
  3390.           that has a lower metric route to the data source, or to the
  3391.           group's RP, may take over the role of sending Join/Prune
  3392.           messages.
  3393.  
  3394.      *    { Incoming interface (iif)}. The iif of a multicast route
  3395.           entry indicates the interface from which multicast data
  3396.           packets are accepted for forwarding. The iif is initialized
  3397.           when the entry is created.
  3398.  
  3399.      *     Join list. The Join list is one of two lists of addresses
  3400.           that is included in a Join/Prune message; each address refers
  3401.           to a source or RP. It indicates those sources or RPs to which
  3402.           downstream receiver(s) wish to join.
  3403.  
  3404.      *    { Last-hop router}. The last-hop router is the last router
  3405.           to receive multicast data packets before they are delivered to
  3406.           directly-connected member hosts. In general the last-hop
  3407.           router is the DR for the LAN.  However, under various
  3408.           conditions described in this document a parallel router
  3409.           connected to the same LAN may take over as the last-hop router
  3410.           in place of the DR.
  3411.  
  3412.      *    { Outgoing interface (oif) list}.  Each multicast route
  3413.           entry has an oif list containing the outgoing interfaces to
  3414.           which multicast packets should be forwarded.
  3415.  
  3416.  
  3417.  
  3418. Estrin, et. al.               Experimental                     [Page 61]
  3419.  
  3420. RFC 2362                         PIM-SM                        June 1998
  3421.  
  3422.  
  3423.      *     Prune List. The Prune list is the second list of addresses
  3424.           that is included in a Join/Prune message. It indicates those
  3425.           sources or RPs from which downstream receiver(s) wish to
  3426.           prune.
  3427.  
  3428.      *    { PIM Multicast Border Router (PMBR)}. A PMBR connects a
  3429.           PIM domain to other multicast routing domain(s).
  3430.  
  3431.      *    { Rendezvous Point (RP)}.  Each multicast group has a
  3432.           shared-tree via which receivers hear of new sources and new
  3433.           receivers hear of all sources. The RP is the root of this
  3434.           per-group shared tree, called the RP-Tree.
  3435.  
  3436.      *    { RP-Set}. The RP-Set is a set of RP addresses constructed
  3437.           by the BSR based on Candidate-RP advertisements received.  The
  3438.           RP-Set information is distributed to all PIM routers in the
  3439.           BSR's PIM domain.
  3440.  
  3441.      *    { Reverse Path Forwarding (RPF)}. RPF is used to select the
  3442.           appropriate incoming interface for a multicast route entry .
  3443.           The RPF neighbor for an address X is the the next-hop router
  3444.           used to forward packets toward X. The RPF interface is the
  3445.           interface to that RPF neighbor. In the common case this is the
  3446.           next hop used by the unicast routing protocol for sending
  3447.           unicast packets toward X. For example, in cases where unicast
  3448.           and multicast routes are not congruent, it can be different.
  3449.  
  3450.      *    { Route entry.} A multicast route entry is state maintained
  3451.           in a router along the distribution tree and is created, and
  3452.           updated based on incoming control messages. The route entry
  3453.           may be different from the forwarding entry; the latter is used
  3454.           to forward data packets in real time.  Typically a forwarding
  3455.           entry is not created until data packets arrive, the forwarding
  3456.           entry's iif and oif list are copied from the route entry, and
  3457.           the forwarding entry may be flushed and recreated at will.
  3458.  
  3459.      *    { Shortest path tree (SPT)}.  The SPT is the multicast
  3460.           distribution tree created by the merger of all of the shortest
  3461.           paths that connect receivers to the source (as determined by
  3462.           unicast routing).
  3463.  
  3464.      *    { Sparse Mode (SM)}. SM is one mode of operation of a
  3465.           multicast protocol.  PIM SM uses explicit Join/Prune messages
  3466.           and Rendezvous points in place of Dense Mode PIM's and DVMRP's
  3467.           broadcast and prune mechanism.
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474. Estrin, et. al.               Experimental                     [Page 62]
  3475.  
  3476. RFC 2362                         PIM-SM                        June 1998
  3477.  
  3478.  
  3479.      *    { Wildcard (WC) multicast route entry}. Wildcard multicast
  3480.           route entries are those entries that may be used to forward
  3481.           packets for any source sending to the specified group.
  3482.           Wildcard bots in the join list of a Join/Prune message
  3483.           represent either a (*,G) or (*,*,RP) join; in the prune list
  3484.           they represent a (*,G) prune.
  3485.  
  3486.      *    { (S,G) route entry}.  (S,G) is a source-specific route
  3487.           entry.  It may be created in response to data packets,
  3488.           Join/Prune messages, or Asserts. The (S,G) state in routers
  3489.           creates a source-rooted, shortest path (or reverse shortest
  3490.           path) distribution tree. (S,G)RPT bit entries are source-
  3491.           specific entries on the shared RP-Tree; these entries are used
  3492.           to prune particular sources off of the shared tree.
  3493.  
  3494.      *    { (*,G) route entry}. Group members join the shared RP-Tree
  3495.           for a particular group. This tree is represented by (*,G)
  3496.           multicast route entries along the shortest path branches
  3497.           between the RP and the group members.
  3498.  
  3499.      *    { (*,*,RP) route entry}. (*,*,RP) refers to any source and
  3500.           any multicast group that maps to the RP included in the entry.
  3501.           The routers along the shortest path branches between a
  3502.           domain's RP(s) and its PMBRs keep (*,*,RP) state and use it to
  3503.           determine how to deliver packets toward the PMBRs if data
  3504.           packets arrive for which there is not a longer match.  The
  3505.           wildcard group in the (*,*,RP) route entry is represented by a
  3506.           group address of 224.0.0.0 and a mask length of 4 bits.
  3507.  
  3508. References
  3509.  
  3510.    1. Deering, S., Estrin, D., Farinacci, D., Jacobson, V., Liu, C.,
  3511.    Wei, L., Sharma, P., and A. Helmy, "Protocol Independent Multicast
  3512.    (pim): Motivation and Architecture", Work in Progress.
  3513.  
  3514.    2. S. Deering, D. Estrin, D. Farinacci, V. Jacobson, C. Liu, and L.
  3515.    Wei.  The pim architecture for wide-area multicast routing.  ACM
  3516.    Transactions on Networks, April 1996.
  3517.  
  3518.    3. Estrin, D., Farinacci, D., Jacobson, V., Liu, C., Wei, L., Sharma,
  3519.    P., and A. Helmy, "Protocol Independent Multicast-dense Mode (pim-
  3520.    dm): Protocol Specification", Work in Progress.
  3521.  
  3522.    4. Deering, S., "Host Extensions for IP Multicasting", STD 5, RFC
  3523.    1112, August 1989.
  3524.  
  3525.    5. Fenner, W., "Internet Group Management Protocol, Version 2", RFC
  3526.    2236, November 1997.
  3527.  
  3528.  
  3529.  
  3530. Estrin, et. al.               Experimental                     [Page 63]
  3531.  
  3532. RFC 2362                         PIM-SM                        June 1998
  3533.  
  3534.  
  3535.    6. Atkinson, R., "Security Architecture for the Internet Protocol",
  3536.    RFC 1825, August 1995.
  3537.  
  3538.    7. Mark R. Nelson.  File verification using CRC.  Dr.  Dobb's
  3539.    Journal, May 1992.
  3540.  
  3541.    8. A.J. Ballardie, P.F. Francis, and J.Crowcroft. Core based trees.
  3542.    In Proceedings of the ACM SIGCOMM, San Francisco, 1993.
  3543.  
  3544. Authors' Addresses
  3545.  
  3546.    NOTE: The author list has been reordered to reflect the involvement
  3547.    in detailed editorial work on this specification document.  The first
  3548.    four authors are the primary editors and are listed alphabetically.
  3549.    The rest of the authors, also listed alphabetically, participated in
  3550.    all aspects of the architectural and detailed design but managed to
  3551.    get away without hacking the latex!
  3552.  
  3553.    Deborah Estrin
  3554.    Computer Science Dept/ISI
  3555.    University of Southern Calif.
  3556.    Los Angeles, CA 90089
  3557.  
  3558.    EMail: estrin@usc.edu
  3559.  
  3560.  
  3561.    Dino Farinacci
  3562.    Cisco Systems Inc.
  3563.    170 West Tasman Drive,
  3564.    San Jose, CA 95134
  3565.  
  3566.    EMail: dino@cisco.com
  3567.  
  3568.  
  3569.    Ahmed Helmy
  3570.    Computer Science Dept.
  3571.    University of Southern Calif.
  3572.    Los Angeles, CA 90089
  3573.  
  3574.    EMail: ahelmy@catarina.usc.edu
  3575.  
  3576.  
  3577.    David Thaler
  3578.    EECS Department
  3579.    University of Michigan
  3580.    Ann Arbor, MI 48109
  3581.  
  3582.    EMail: thalerd@eecs.umich.edu
  3583.  
  3584.  
  3585.  
  3586. Estrin, et. al.               Experimental                     [Page 64]
  3587.  
  3588. RFC 2362                         PIM-SM                        June 1998
  3589.  
  3590.  
  3591.    Stephen Deering
  3592.    Xerox PARC
  3593.    3333 Coyote Hill Road
  3594.    Palo Alto, CA 94304
  3595.  
  3596.    EMail: deering@parc.xerox.com
  3597.  
  3598.    Mark Handley
  3599.    Department of Computer Science
  3600.    University College London
  3601.    Gower Street
  3602.    London, WC1E 6BT
  3603.    UK
  3604.  
  3605.    EMail: m.handley@cs.ucl.ac.uk
  3606.  
  3607.  
  3608.    Van Jacobson
  3609.    Lawrence Berkeley Laboratory
  3610.    1 Cyclotron Road
  3611.    Berkeley, CA 94720
  3612.  
  3613.    EMail: van@ee.lbl.gov
  3614.  
  3615.  
  3616.    Ching-gung  Liu
  3617.    Computer Science Dept.
  3618.    University of Southern Calif.
  3619.    Los Angeles, CA 90089
  3620.  
  3621.    EMail: charley@catarina.usc.edu
  3622.  
  3623.  
  3624.    Puneet Sharma
  3625.    Computer Science Dept.
  3626.    University of Southern Calif.
  3627.    Los Angeles, CA 90089
  3628.  
  3629.    EMail: puneet@catarina.usc.edu
  3630.  
  3631.  
  3632.    Liming Wei
  3633.    Cisco Systems Inc.
  3634.    170 West Tasman Drive,
  3635.    San Jose, CA 95134
  3636.  
  3637.    EMail: lwei@cisco.com
  3638.  
  3639.  
  3640.  
  3641.  
  3642. Estrin, et. al.               Experimental                     [Page 65]
  3643.  
  3644. RFC 2362                         PIM-SM                        June 1998
  3645.  
  3646.  
  3647. Full Copyright Statement
  3648.  
  3649.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  3650.  
  3651.    This document and translations of it may be copied and furnished to
  3652.    others, and derivative works that comment on or otherwise explain it
  3653.    or assist in its implementation may be prepared, copied, published
  3654.    and distributed, in whole or in part, without restriction of any
  3655.    kind, provided that the above copyright notice and this paragraph are
  3656.    included on all such copies and derivative works.  However, this
  3657.    document itself may not be modified in any way, such as by removing
  3658.    the copyright notice or references to the Internet Society or other
  3659.    Internet organizations, except as needed for the purpose of
  3660.    developing Internet standards in which case the procedures for
  3661.    copyrights defined in the Internet Standards process must be
  3662.    followed, or as required to translate it into languages other than
  3663.    English.
  3664.  
  3665.    The limited permissions granted above are perpetual and will not be
  3666.    revoked by the Internet Society or its successors or assigns.
  3667.  
  3668.    This document and the information contained herein is provided on an
  3669.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  3670.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  3671.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  3672.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  3673.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.  
  3697.  
  3698. Estrin, et. al.               Experimental                     [Page 66]
  3699.  
  3700.