跳到主要内容

1. 引言

1. 引言 (Introduction)

Border Gateway Protocol (BGP) 是一种 inter-Autonomous System routing protocol.

BGP speaking system 的主要功能是与其他 BGP system 交换 network reachability information. 这些 network reachability information 包含 reachability information 所经过的 Autonomous System (AS) 列表信息. 这些信息足以为该 reachability 构造 AS connectivity graph, 可从中剪除 routing loop, 并且可以在 AS level 强制执行某些 policy decision.

BGP-4 提供了一组支持 Classless Inter-Domain Routing (CIDR) [RFC1518, RFC1519] 的机制. 这些机制包括支持将一组 destination 作为 IP prefix 进行通告, 并在 BGP 内消除 network "class" 的概念. BGP-4 还引入了允许 route aggregation 的机制, 包括 AS path aggregation.

通过 BGP 交换的 routing information 只支持 destination-based forwarding paradigm, 该范式假定 router 仅根据 packet 的 IP header 中携带的 destination address 转发 packet. 这反过来反映了使用 BGP 能够 (以及不能够) 强制执行的 policy decision 集合. BGP 只能支持符合 destination-based forwarding paradigm 的 policy.

1.1. 常用术语定义 (Definition of Commonly Used Terms)

本节给出在 BGP protocol 中具有特定含义并在全文使用的术语定义.

Adj-RIB-In

Adj-RIBs-In 包含由 peer 通告给 local BGP speaker 的未处理 routing information.

Adj-RIB-Out

Adj-RIBs-Out 包含 local speaker 通过 UPDATE message 向特定 peer 通告的 route.

Autonomous System (AS)

Autonomous System 的经典定义是: 由单一 technical administration 管理的一组 router, 使用 interior gateway protocol (IGP) 和 common metric 来确定 packet 在 AS 内如何路由, 并使用 inter-AS routing protocol 来确定 packet 如何路由到其他 AS. 自从这个经典定义提出以来, 单个 AS 使用多个 IGP, 有时还在 AS 内使用多组 metric, 已经变得常见. 使用 Autonomous System 这一术语强调这样一个事实: 即使使用多个 IGP 和 metric, 一个 AS 的 administration 对其他 AS 来说仍表现为具有单一一致的 interior routing plan, 并对通过它可达的 destination 呈现一致图景.

BGP Identifier

一个 4-octet unsigned integer, 指示 BGP message 发送方的 BGP Identifier. 给定 BGP speaker 会把其 BGP Identifier 的值设置为分配给该 BGP speaker 的某个 IP address. BGP Identifier 的值在启动时确定, 并且对每个 local interface 和每个 BGP peer 都相同.

BGP speaker

实现 BGP 的 router.

EBGP

External BGP (external peer 之间的 BGP connection).

External peer

位于与 local system 不同 Autonomous System 中的 peer.

Feasible route

recipient 可使用的一条 advertised route.

IBGP

Internal BGP (internal peer 之间的 BGP connection).

Internal peer

位于与 local system 相同 Autonomous System 中的 peer.

IGP

Interior Gateway Protocol - 用于在单个 Autonomous System 内的 router 之间交换 routing information 的 routing protocol.

Loc-RIB

Loc-RIB 包含 local BGP speaker 的 Decision Process 选出的 route.

NLRI

Network Layer Reachability Information.

Route

一种 information unit, 将一组 destination 与到这些 destination 的 path attribute 配对. destination 集合是一些 system, 其 IP address 包含在 UPDATE message 的 Network Layer Reachability Information (NLRI) field 所携带的一个 IP address prefix 中. path 是同一 UPDATE message 的 path attributes field 中报告的信息.

RIB

Routing Information Base.

Unfeasible route

先前通告过但不再可用的 feasible route.

1.2. 需求规范 (Specification of Requirements)

本文档中的关键词 "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" 和 "OPTIONAL" 应按 RFC 2119 [RFC2119] 中的描述解释.