⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc1163.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
📖 第 1 页 / 共 5 页
字号:
6.4 NOTIFICATION message error handling.   If a peer sends a NOTIFICATION message, and there is an error in that   message, there is unfortunately no means of reporting this error via   a subsequent NOTIFICATION message.  Any such error, such as an   unrecognized Error Code or Error Subcode, should be noticed, logged   locally, and brought to the attention of the administration of the   peer.  The means to do this, however, lies outside the scope of this   document.6.5 Hold Timer Expired error handling.   If a system does not receive successive KEEPALIVE and/or UPDATE   and/or NOTIFICATION messages within the period specified in the Hold   Time field of the OPEN message, then the NOTIFICATION message with   Hold Timer Expired Error Code should be sent and the BGP connection   closed.Lougheed & Rekhter                                             [Page 17]RFC 1163                          BGP                          June 19906.6 Finite State Machine error handling.   Any error detected by the BGP Finite State Machine (e.g., receipt of   an unexpected event) is indicated by sending the NOTIFICATION message   with Error Code Finite State Machine Error.6.7 Cease.   In absence of any fatal errors (that are indicated in this section),   a BGP peer may choose at any given time to close its BGP connection   by sending the NOTIFICATION message with Error Code Cease.  However,   the Cease NOTIFICATION message should not be used when a fatal error   indicated by this section does exist.7.  BGP Version Negotiation.   BGP speakers may negotiate the version of the protocol by making   multiple attempts to open a BGP connection, starting with the highest   version number each supports.  If an open attempt fails with an Error   Code OPEN Message Error, and an Error Subcode Unsupported Version   Number, then the BGP speaker has available the version number it   tried, the version number its peer tried, the version number passed   by its peer in the NOTIFICATION message, and the version numbers that   it supports.  If the two peers do support one or more common   versions, then this will allow them to rapidly determine the highest   common version. In order to support BGP version negotiation, future   versions of BGP must retain the format of the OPEN and NOTIFICATION   messages.8.  BGP Finite State machine.   This section specifies BGP operation in terms of a Finite State   Machine (FSM).  Following is a brief summary and overview of BGP   operations by state as determined by this FSM.  A condensed version   of the BGP FSM is found in Appendix 1.   Initially BGP is in the Idle state.      Idle state:         In this state BGP refuses all incoming BGP connections.  No         resources are allocated to the BGP neighbor.  In response to         the Start event (initiated by either system or operator) the         local system initializes all BGP resources, starts the         ConnectRetry timer, initiates a transport connection to other         BGP peer, while listening for connection that may be initiated         by the remote BGP peer, and changes its state to Connect.Lougheed & Rekhter                                             [Page 18]RFC 1163                          BGP                          June 1990         The exact value of the ConnectRetry timer is a local matter,         but should be sufficiently large to allow TCP initialization.         Any other event received in the Idle state is ignored.      Connect state:         In this state BGP is waiting for the transport protocol         connection to be completed.         If the transport protocol connection succeeds, the local system         clears the ConnectRetry timer, completes initialization, sends         an OPEN message to its peer, and changes its state to OpenSent.         If the transport protocol connect fails (e.g., retransmission         timeout), the local system restarts the ConnectRetry timer,         continues to listen for a connection that may be initiated by         the remote BGP peer, and changes its state to Active state.         In response to the ConnectRetry timer expired event, the local         system restarts the ConnectRetry timer, initiates a transport         connection to other BGP peer, continues to listen for a         connection that may be initiated by the remote BGP peer, and         stays in the Connect state.         Start event is ignored in the Active state.         In response to any other event (initiated by either system or         operator), the local system releases all BGP resources         associated with this connection and changes its state to Idle.      Active state:         In this state BGP is trying to acquire a BGP neighbor by         initiating a transport protocol connection.         If the transport protocol connection succeeds, the local system         clears the ConnectRetry timer, completes initialization, sends         an OPEN message to its peer, sets its hold timer to a large         value, and changes its state to OpenSent.         In response to the ConnectRetry timer expired event, the local         system restarts the ConnectRetry timer, initiates a transport         connection to other BGP peer, continues to listen for a         connection that may be be initiated by the remote BGP peer, and         changes its state to Connect.         If the local system detects that a remote peer is trying toLougheed & Rekhter                                             [Page 19]RFC 1163                          BGP                          June 1990         establish BGP connection to it, and the IP address of the         remote peer is not an expected one, the local system restarts         the ConnectRetry timer, rejects the attempted connection,         continues to listen for a connection that may be initiated by         the remote BGP peer, and stays in the Active state.         Start event is ignored in the Active state.         In response to any other event (initiated by either system or         operator), the local system releases all BGP resources         associated with this connection and changes its state to Idle.      OpenSent state:         In this state BGP waits for an OPEN message from its peer.         When an OPEN message is received, all fields are checked for         correctness.  If the BGP message header checking or OPEN         message checking detects an error (see Section 6), the local         system sends a NOTIFICATION message and changes its state to         Idle.         If there are no errors in the OPEN message, BGP sends a         KEEPALIVE message and sets a KeepAlive timer.  The hold timer,         which was originally set to an arbitrary large value (see         above), is replaced with the value indicated in the OPEN         message.  If the value of the Autonomous System field is the         same as our own , then the connection is "internal" connection;         otherwise, it is "external".  (This will effect UPDATE         processing as described below.)  Finally, the state is changed         to OpenConfirm.         If a disconnect notification is received from the underlying         transport protocol, the local system closes the BGP connection,         restarts the ConnectRetry timer, while continue listening for         connection that may be initiated by the remote BGP peer, and         goes into the Active state.         If the hold time expires, the local system sends NOTIFICATION         message with error code Hold Timer Expired and changes its         state to Idle.         In response to the Stop event (initiated by either system or         operator) the local system sends NOTIFICATION message with         Error Code Cease and changes its state to Idle.         Start event is ignored in the OpenSent state.         In response to any other event the local system sendsLougheed & Rekhter                                             [Page 20]RFC 1163                          BGP                          June 1990         NOTIFICATION message with Error Code Finite State Machine Error         and changes its state to Idle.         Whenever BGP changes its state from OpenSent to Idle, it closes         the BGP (and transport-level) connection and releases all         resources associated with that connection.      OpenConfirm state:         In this state BGP waits for a KEEPALIVE or NOTIFICATION         message.         If the local system receives a KEEPALIVE message, it changes         its state to Established.         If the hold timer expires before a KEEPALIVE message is         received, the local system sends NOTIFICATION message with         error code Hold Timer expired and changes its state to Idle.         If the local system receives a NOTIFICATION message, it changes         its state to Idle.         If the KeepAlive timer expires, the local system sends a         KEEPALIVE message and restarts its KeepAlive timer.         If a disconnect notification is received from the underlying         transport protocol, the local system changes its state to Idle.         In response to the Stop event (initiated by either system or         operator) the local system sends NOTIFICATION message with         Error Code Cease and changes its state to Idle.         Start event is ignored in the OpenConfirm state.         In response to any other event the local system sends         NOTIFICATION message with Error Code Finite State Machine Error         and changes its state to Idle.         Whenever BGP changes its state from OpenConfirm to Idle, it         closes the BGP (and transport-level) connection and releases         all resources associated with that connection.      Established state:         In the Established state BGP can exchange UPDATE, NOTIFICATION,         and KEEPALIVE messages with its peer.         If the local system receives an UPDATE or KEEPALIVE message, itLougheed & Rekhter                                             [Page 21]RFC 1163                          BGP                          June 1990         restarts its Holdtime timer.         If the local system receives a NOTIFICATION message, it changes         its state to Idle.         If the local system receives an UPDATE message and the UPDATE         message error handling procedure (see Section 6.3) detects an         error, the local system sends a NOTIFICATION message and         changes its state to Idle.         If a disconnect notification is received from the underlying         transport protocol, the local system  changes its state to         Idle.         If the Holdtime timer expires, the local system sends a         NOTIFICATION message with Error Code Hold Timer Expired and         changes its state to Idle.         If the KeepAlive timer expires, the local system sends a         KEEPALIVE message and restarts its KeepAlive timer.         Each time the local system sends a KEEPALIVE or UPDATE message,         it restarts its KeepAlive timer.         In response to the Stop event (initiated by either system or         operator), the local system sends a NOTIFICATION message with         Error Code Cease and changes its state to Idle.         Start event is ignored in the Established state.         In response to any other event, the local system sends         NOTIFICATION message with Error Code Finite State Machine Error         and changes its state to Idle.         Whenever BGP changes its state from Established to Idle, it         closes the BGP (and transport-level) connection, releases all         resources associated with that connection, and deletes all         routes derived from that connection.9.  UPDATE Message Handling   An UPDATE message may be received only in the Established state.   When an UPDATE message is received, each field is checked for   validity as specified in Section 6.3.   If an optional non-transitive attribute is unrecognized, it is   quietly ignored.  If an optional transitive attribute is   unrecognized, the Partial bit (the third high-order bit) in theLougheed & Rekhter                                             [Page 22]RFC 1163                          BGP                          June 1990

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -