📄 draft-ietf-pim-sm-bsr-03.txt
字号:
bootstrap routers (C-BSRs) and, through a simple election mechanism, asingle BSR is selected for that domain. A set of routers within a domainare also configured as candidate RPs (C-RPs); typically these will bethe same routers that are configured as C-BSRs. Candidate RPsperiodically unicast Candidate-RP-Advertisement messages (C-RP-Advs) tothe BSR of that domain, advertising their willingness to be an RP. A C-RP-Adv message includes the address of the advertising C-RP, as well asan optional list of group addresses and a mask length fields, indicatingthe group prefix(es) for which the candidacy is advertised. The BSR thenincludes a set of these Candidate-RPs (the RP-Set), along with theircorresponding group prefixes, in Bootstrap messages it periodicallyoriginates. Bootstrap messages are distributed hop-by-hop throughoutthe domain.All the PIM routers in the domain receive and store Bootstrap messagesoriginated by the BSR. When a DR receives an indication of localmembership (typically from IGMP [4] or MLD [1]) or a data packet from adirectly connected host, for a group for which it has no forwardingstate, the DR uses a hash function to map the group address to one ofthe C-RPs from the RP-Set whose group-prefix includes the group (see[3]). The DR then sends a Join message towards that RP if the local hostjoined the group, or it Register-encapsulates and unicasts the datapacket to the RP if the local host sent a packet to the group.A Bootstrap message indicates liveness of the RPs included therein. Ifan RP is included in the message, then it is tagged as `up' at therouters; RPs not included in the message are removed from the list ofRPs over which the hash algorithm acts. Each router continues to use thecontents of the most recently received Bootstrap message from the BSRuntil it accepts a new Bootstrap message.If a PIM domain becomes partitioned, each area separated from the oldBSR will elect its own BSR, which will distribute an RP-Set containingRPs that are reachable within that partition. When the partition heals,another election will occur automatically and only one of the BSRs willcontinue to send out Bootstrap messages. As is expected at the time of apartition or healing, some disruption in packet delivery may occur. Thistime will be on the order of the region's round-trip time and thebootstrap router timeout value.1.3. Administratively Scoped Multicast and BSRAdministratively Scoped IP Multicast, as defined in RFC 2365, permits anetwork provider to configure scope boundaries at multicast routers.Fenner/Handley/Kermode/Thaler Section 1.3. [Page 7]INTERNET-DRAFT Expires: August 2003 February 2003Such a scope boundary consists of a range of multicast addresses(expressed as an address and mask) that the router will not forwardacross the boundary. For correct operation, such a scope zone bordermust be complete and convex. By this we mean that there must be no pathfrom inside the scoped zone to outside it that does not pass through aconfigured scope border router, and that the multicast capable pathbetween any arbitrary pair of multicast routers in the scope zone mustremain in the zone.For PIM-SM using BSR to function correctly with admin scoping, theremust be a BSR and at least one C-RP within every admin scope region.Admin scope zone boundaries must be configured at the Zone BorderRouters (ZBRs), as they need to filter PIM Join messages that mightinadvertently cross the border due to error conditions. In addition, atleast one C-BSR within the admin scope zone must be configured to be aC-BSR for the admin scope zone's address range.A separate BSR election will then take place (using bootstrap messages)for every admin scope range (plus one for the global range). Adminscope ranges are identified in the bootstrap message because the grouprange is marked (using the "Admin Scope" bit, previously a "Reserved"bit) to indicate that this is an administrative scope range, and notjust a range that a particular set of RPs are configured to handle.Such admin scoped bootstrap message packets are flooded in the normalway, but will not be forwarded by another ZBR across the boundary forthat scope zone (see Section 3.3 for the specifics of this).We do not require that C-RPs within the scope zone be configured to knowabout the scope zone, as they can learn of its existence from bootstrapmessages. However, we recommend that router vendors implementconfiguration options that allow a C-RP to be configured to be a C-RPfor global scope only, for one of more admin scopes only, or for allscopes, both global and admin scoped. We also recommend that thedefault be that a C-RP is a C-RP for all scopes, both global and adminscoped.Unless configured otherwise, C-RPs discover the existence of the adminscope zone and its group range from receiving a bootstrap message fromthe scope zone's elected BSR containing the scope zone's group-range,marked using the "Admin Scope" bit. A C-RP stores each elected BSR'saddress and the admin scope range contained in its bootstrap message.It separately unicasts Candidate-RP-Advertisement messages to theappropriate BSR for every admin scope range within which it is willingto serve as an RP.All PIM routers within a PIM bootstrap domain where admin scope rangesare in use must be capable of receiving bootstrap messages and storingFenner/Handley/Kermode/Thaler Section 1.3. [Page 8]INTERNET-DRAFT Expires: August 2003 February 2003the winning BSR and RPset for all admin scope zones that apply. ThusPIM routers that only implement RFC 2362 (which only allows one BSR perdomain) cannot be used in PIM domains where admin scope zones areconfigured.2. BSR State and TimersA PIM-SM router implementing BSR holds the following state in additionto the state needed for PIM-SM operation: At all routers: List of Active Scope Zones Per Scope Zone: Bootstrap State: o Bootstrap Router's IP Address o BSR Priority o Bootstrap Timer (BST) o List of Scope Group-Ranges for this BSR RP Set At a Candidate BSR: Per Scope Zone: o My state: One of "Candidate-BSR", "Pending-BSR", "Elected-BSR" At a router that is not a Candidate BSR: Per Scope Zone: My state: One of "Accept Any", "Accept Preferred" Scope-Zone Expiry Timer: SZT(Z)Bootstrap state is described in section 3, and the RP Set is describedin section 3.4.The following timers are also required:Fenner/Handley/Kermode/Thaler Section 2. [Page 9]INTERNET-DRAFT Expires: August 2003 February 2003 At the Bootstrap Router only: Per Scope Zone (Z): Per Candidate RP (C): C-RP Expiry Timer: CET(C,Z) At the C-RPs only: C-RP Advertisement Timer: CRPT3. Bootstrap Router Election and RP-Set DistributionFor simplicity, bootstrap messages (BSMs) are used in both the BSRelection and the RP-Set distribution mechanisms.The state-machine for bootstrap messages depends on whether or not arouter has been configured to be a Candidate-BSR for a particular scopezone. The per-scope-zone state-machine for a C-BSR is given below,followed by the state-machine for a router that is not configured to bea C-BSR.Fenner/Handley/Kermode/Thaler Section 3. [Page 10]INTERNET-DRAFT Expires: August 2003 February 2003Per-Scope-Zone Candidate-BSR State MachineFigure 1: Per-Scope-Zone State-machine for a candidate BSR in tabular form+-----------------------------------------------------------------------+| When in C-BSR state |+------------+-------------------+-------------------+------------------+| Event | Receive | BS Timer | Receive non- || | Preferred BSM | Expires | preferred BSM || | | | from Elected || | | | BSR |+------------+-------------------+-------------------+------------------+| | -> C-BSR state | -> P-BSR state | -> P-BSR state || | Forward BSM; | Set BS Timer | Set BS Timer || Action | Store RP Set; | to | to || | Set BS Timer | rand_override | rand_override || | to BS Timeout | | |+------------+-------------------+-------------------+------------------++-----------------------------------------------------------------------+| When in P-BSR state |+-------------+-------------------+------------------+------------------+| Event | Receive | BS Timer | Receive Non- || | Preferred BSM | Expires | preferred BSM |+-------------+-------------------+------------------+------------------+| | -> C-BSR state | -> E-BSR state | -> P-BSR state || | Forward BSM; | Originate BSM; | || Action | Store RP Set; | Set BS Timer | || | Set BS Timer | to BS Period | || | to BS Timeout | | |+-------------+-------------------+------------------+------------------++-----------------------------------------------------------------------+| When in E-BSR state |+-------------+-------------------+------------------+------------------+| Event | Receive | BS Timer | Receive Non- || | Preferred BSM | Expires | preferred BSM |+-------------+-------------------+------------------+------------------+| | -> C-BSR state | -> E-BSR state | -> E-BSR state || | Forward BSM; | Originate BSM; | Originate BSM; || Action | Store RP Set; | Set BS Timer | Set BS Timer || | Set BS Timer | to BS Period | to BS Period || | to BS Timeout | | |+-------------+-------------------+------------------+------------------+A candidate-BSR may be in one of three states for a particular scopeFenner/Handley/Kermode/Thaler Section 3. [Page 11]INTERNET-DRAFT Expires: August 2003 February 2003zone:Candidate-BSR (C-BSR) The router is a candidate to be the BSR for the scope zone, but currently another router is the preferred BSR.Pending-BSR (P-BSR) The router is a candidate to be the BSR for the scope zone. Currently no other router is the preferred BSR, but this router is not yet the BSR. For comparisons with incoming BS messages, the router treats itself as the BSR. This is a temporary state that prevents rapid thrashing of the choice of BSR during BSR election.Elected-BSR (E-BSR) The router is the elected bootstrap router for the scope zone and it must perform all the BSR functions.On startup, the initial state for this configured scope zone is"Pending-BSR"; the BS Timer is initialized to the BS Timeout value.In addition to the three states, there is one timer:o The bootstrap timer (BS Timer) - that is used to time out old bootstrap router information, and used in the election process to terminate P-BSR state.Fenner/Handley/Kermode/Thaler Section 3. [Page 12]INTERNET-DRAFT Expires: August 2003 February 2003Per-Scope-Zone State-machine for Non-Candidate-BSR Routers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -