CHAPTER 6. BGP
112
© SAMSUNG Electronics Co., Ltd.
BGP’s basic unit of routing information is the BGP path, a route to a certain
set of CIDR prefixes. Paths are tagged with various path attributes, of which
the most important are AS_PATH and NEXT_HOP. One of BGP's most
important functions is loop detection at the Autonomous System(AS) level,
using the AS_PATH attribute. Simply put, an AS_PATH is a list of
Autonomous Systems that a route goes through to reach its destination.
The syntax of this attribute is made more complex by its need to support path
aggregation, when multiple paths are collapsed into one to simplify further
route advertisements. Loops are detected and avoided by checking for the
router’s own AS number in AS_PATHs received from its BGP peers.
Every time a BGP path advertisement crosses an AS boundary, the
NEXT_HOP attribute is changed to the IP address of the boundary router.
However, when a BGP path advertisement is passed among BGP speakers in
the same AS, the NEXT_HOP attribute is left untouched. Consequently, BGP's
NEXT_HOP is always the IP address of the first BGP router in the next
autonomous system, even though this may actually be several hops away.
The AS's interior routing protocol is responsible for computing an interior
route to reach the BGP NEXT_HOP. This leads to the distinction between
Internal BGP(IBGP) sessions(between routers in the same AS) and External
BGP(EBGP) sessions(between routers in different ASs). NEXT_HOPs are
only changed across EBGP sessions, but left intact across IBGP sessions.
Also, BGP does not relay routing traffic from one IBGP session to another,
only from an EBGP session to an IBGP session or another EBGP session.
The most important consequences of such a design are the need for interior
routing protocols to reach one hop beyond the AS boundary and the need for
BGP sessions within an AS to be fully meshed. Since the NEXT_HOP
contains the IP address of a router interface in the next autonomous system,
and this IP address is used to perform routing, the interior routing protocol
must be able to route to this address. This means that interior routing tables
must include entries one hop beyond the AS boundary. When a BGP routing
update is received from a neighboring AS, it must be relayed directly to all
other BGP speakers in the AS.
It the responsibility of the BGP implementation to select among competing
paths. RFC 1771 states only that ‘The computation be based on pre-configured
policy information. The exact nature of this policy information and the
computation involved is a local matter.’ Since the AS_PATH attribute includes
a list of Autonomous Systems used to reach the destination, it is possible to
implement primitive policy decisions such as ‘avoid all routes through AS x’.
Содержание Ubigate iBG2016
Страница 1: ......
Страница 16: ...INTRODUCTION XIV SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 34: ......
Страница 42: ...CHAPTER 1 Basic Configuration 8 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 62: ...CHAPTER 4 System Logging 28 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 70: ......
Страница 108: ......
Страница 126: ...CHAPTER 1 Layer 2 Switching 90 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 140: ...CHAPTER 4 RIP 104 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 156: ...CHAPTER 6 BGP 120 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 176: ...CHAPTER 7 MultiCast Protocols 140 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 180: ...CHAPTER 8 VRRP 144 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 264: ...CHAPTER 10 QoS 228 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 270: ...CHAPTER 11 VLAN forwarding with QoS 234 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 272: ......
Страница 278: ...CHAPTER 1 Authentication Authorization Accounting 228 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 298: ...CHAPTER 3 Firewall NAT 248 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 356: ...CHAPTER 5 IPSEC 306 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 358: ......
Страница 390: ...CHAPTER 2 VoIP Gateway Management 336 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 514: ...CHAPTER 4 H 323 Gateway Management 460 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 670: ...CHAPTER 8 Routing and Digit Manipulation 616 SAMSUNG Electronics Co Ltd This page is intentionally left blank ...
Страница 744: ...EQBD 000071 Ed 00 ...