Network Working Group | D. Abraitis |
Internet-Draft | Hostinger |
Intended status: Informational | August 29, 2020 |
Expires: March 2, 2021 |
Software Version Capability for BGP
draft-abraitis-bgp-version-capability-08
In this document, we introduce a new BGP capability that allows the advertisement of a BGP speaker's routing daemon version.
This BGP capability is an optional advertisement. Implementations are not required to advertise the version nor to process received advertisements.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on March 2, 2021.
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
In modern data center designs, we tend to have conventional routers participating in the routing process. And the fleet of routers has different versions of routing daemon. This means that knowing which versions of the routing daemons are running the various routers in the network can be a crucial factor in quickly identifying the root cause of any protocol or network problems.
This BGP capability is an optional advertisement. Implementations are not required to advertise the version nor to process received advertisements.
Information about the version of the routing daemon could also be exchanged in protocols such as LLDP and CDP. However, in containerized environments, it is very hard and not recommended to exchange this information between background processes. Therefore, and to help minimize operational costs, it is helpful to exchange the routing daemon information between BGP peers directly.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
Although this document is not an IETF Standards Track document, it makes use of the terminology from BCP 14 in order to clearly state the implementation behaviors.
Capabilities advertisements with BGP are defined in [RFC5492]. They utilize the BGP Capabilities Optional Parameter that contains one or more triples <Capability Code, Capability Length, Capability Value>. This document defines a new BGP capability, the Software Version Capability, with Capability Code TBD and Capability Length and Capability Value as described below.
The inclusion of the Software Version Capability is OPTIONAL. If an implementation supports the inclusion of the capability, the implementation MUST include a configuration switch to enable or disable its use, and that switch MUST be off by default.
The Software Version Capability is intended for environments where more visibility is needed for troubleshooting purposes. It is NOT RECOMMENDED for use outside a single Autonomous System, or a set of Autonomous Systems under a common administration.
An implementation that does not recognize or support the Software Version Capability but receives one must ignore it, as described in [RFC5492].
The triple for the Software Version Capability is as follows:
Capability Code
Capability Length
Capability Value
+--------------------------------+ | Version Length (1 octet) | +--------------------------------+ | Version (variable) | +--------------------------------+
Figure 1
Version Length:
Version:
As defined in [RFC5492] the total length of capabilities that can be carried by the BGP Capabilities Optional Parameter is 255 bytes. If an implementation is constructing a BGP Capabilities Optional Parameter and its length exceeds 255 bytes, it is REQUIRED to exclude the Software Version Capability. An implementation may optimally achieve this by making the Software Version Capability the last capability triple to add to the Parameter, and only adding it if there is sufficient space to do so.
A rogue node can prevent the proper operation of a BGP session, or the advertisement of other Capabilities, by not excluding the Software Version Capability as required in Section 3.1. This risk is equivalent to a rogue node simply not advertising a specific Capability and is not new to BGP.
The Software Version Capability MUST only be used for displaying the version of a BGP speaker's router daemon to make troubleshooting easier.
Consider a group of routers each with a number of upstream nodes, and suppose that each router has a different operating system and different routing daemon at a different version installed. Assuming that a specific feature is not working or that there is a bug which has not been fixed in a particular version of the code, knowledge of the routing daemon versions would allow an operator to quickly identify the pattern of which versions are affected.
Enabling (i.e., turning on) this capability requires bouncing all existing BGP sessions and the feature MUST be explicitly configured before an implementation advertizes the Software Version Capability.
Below is an example from the [FRRouting] implementation showing both the received and advertised Software Version Capability:
:~# vtysh -c 'show ip bgp summary failed' ... Neighbor EstdCnt DropCnt ResetTime Reason ens192 3 3 00:00:35 Waiting for peer OPEN (n/a) ens224 3 3 00:01:12 Waiting for NHT (FRRouting 7.2) eth0 3 3 00:00:14 Neighbor deleted (FRRouting 7.3) ...
Figure 2
:~# vtysh -c 'show ip bgp neighbors 198.51.100.1 json' \ > | jq '."198.51.100.1".neighborCapabilities.versions' { "advertisedVersion": "FRRouting 7.2-dev-MyOwnFRRVersion", "receivedVersion": "FRRouting 7.2-dev-MyOwnFRRVersion-gc68bb14" }
Figure 3
The Capability Codes registry is a standalone registry. IANA is requested to assign a capability number from the First Come First Served range for the Software Version Capability in this document as follows:
Value | Description | Reference |
---|---|---|
TBD | Software Version Capability | [This.I-D] |
The Software Version Capability should be treated as sensitive information: it could be easier for an attacker to exploit the system if they know the specific software version and manufacturer of a BGP speaker. This information could be gathered by inspecting BGP OPEN messages that carry the Software Version Capability defined in this document. Furthermore, this knowledge may facilitate a number of social-engineering attacks.
Modifying the information advertised by a router might lead to attacks including bogus software upgrades and also might mask the causes of faults in the network.
Users of this mechanism should be aware that unless a transport that provides integrity is used for the BGP session in question, the Software Version Capability can be forged. Unless a transport that provides confidentiality is used, the Version Capability could be snooped by an attacker. These issues are common to any BGP message but may be of greater interest in the context of this extension as explained above. Refer to the related considerations in [RFC4271] and [RFC4272].
Users of this mechanism should consider applying data minimization practices as outlined in Section 6.1 of [RFC6973], as appropriate within the deployment context.
Sensitive information leaks can be minimized by using the [RFC5082] mechanism or firewalls to filter out TCP 179 port from untrusted networks. This capability can be disabled per neighbor, thus the sensitive information can't be disclosed to untrusted neighbors.
[FRRouting] | Abraitis, D., "FRRouting - BGP Software Version Capability", 2019. |