
Versatile Routing and Services with BGP
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Persons
Colin Bookham is a consulting engineer at Alcatel-Lucent with more than 20 years of experience in the telecommunications industry.
Content
Foreword xi
Introduction xiii
Chapter 1 Getting Started 1
Session Negotiation and Capabilities 3
UPDATE Messages 6
NOTIFICATION Messages 8
Multi-Protocol BGP 10
Chapter 2 BGP/MPLS IP-VPN 13
Basic Configuration 14
Prefix Dissemination 17
Automatic Route Filtering 17
Route Refresh 19
Outbound Route Filtering 20
Soft Reconfiguration 22
Route Target Constraint 22
Extensions for IPv6 VPN (6VPE) 29
Core Requirements 31
PE to CE BGP Peering 33
Multi-AS Backbones (Inter-AS) 42
Chapter 3 Using BGP in VPLS 49
BGP Auto-Discovery with LDP Signaling 54
BGP Auto-Discovery and Signaling 58
BGP Multi-Homing 62
Chapter 4 BGP Signaling for VPWS 73
BGP VPWS 74
Single-Homed VPWS 76
Multi-Homed VPWS 82
Dynamic Multi-Segment Pseudowire 94
Chapter 5 Labeled Unicast IPv4 105
Seamless MPLS 107
Transport Layer 108
Service Layer 114
Inter-AS Type C 118
Carriers' Carrier 124
Notes 131
Chapter 6 Reconvergence 133
Advertisement of Multiple Paths 134
Best External 139
Next-Hop Tracking 142
Prefix Independent Convergence (PIC) 146
Core PIC 147
Edge PIC 147
Minimum Route Advertisement Interval 152
BGP Anycast 154
Chapter 7 Multicast 165
Inter-Domain IPv4-IPv6 PIM 166
Multicast in MPLS/BGP IP-VPNs 173
Draft-Rosen 173
Multicast VPN 185
Chapter 8 Graceful Restart and Error Handling 205
Graceful Restart Mechanism 206
Error Handling 214
Chapter 9 Security 221
FlowSpec 222
Attack Mitigation with Blackhole Action 226
Attack Mitigation with Redirect to VRF Action 229
Remote Triggered Blackholing 233
Generalized TTL Security Mechanism 236
Auto-Generation of Filters for BGP Peers 237
Chapter 10 General Applicability 243
IPv6 PE Router (6PE) 244
Load-Balancing 248
IBGP-Multipath 248
Multipath 251
EIBGP Multipath 256
IGP Shortcuts 259
Split Horizon 263
Peer Groups 266
BGP in Residential Broadband Networks 268
QoS Policy Propagation Using BGP 276
Route Policy Framework 282
Basic Path Attribute Manipulation 285
Nested Policies (Next-Policy) 288
Subroutines 294
Notes 300
Chapter 11 Looking Ahead 301
Ethernet VPN (EVPN) 302
Ethernet Auto-Discovery Route 304
MAC Advertisement Route 305
Inclusive Multicast Ethernet Tag Route 307
Ethernet Segment Route 307
IP Prefix Advertisement Route 307
Multi-Homing Mode 309
Control-Plane-Only Route-Reflection 310
Virtual Route-Reflector 311
Optimal Route Reflection (ORR) 313
Prefix Origin Validation 315
Link State Information Distribution Using BGP 317
Appendix A Path Selection Process 321
References and Glossary 329
Index 335
Chapter 2
BGP/MPLS IP-VPN
The framework for building BGP/Multi-Protocol Label Switching (BGP/MPLS) based IP Virtual Private Networks (IP-VPNs) relies on Multi-Protocol BGP (RFC 4760) and the optional-transitive BGP Extended Communities (RFC 4360) attribute “Route Target.”
Multi-Protocol BGP is used for advertising of VPN-IPv4/VPN-IPv6 prefixes, and, because both are labeled prefixes, they follow the encoding of labeled BGP (RFC 3107), where the prefix is constructed of an 8-byte Route-Distinguisher followed by a 4-byte IPv4 prefix or 16-byte IPv6 prefix. The purpose of the RD is to allow the concatenation of RD and IPv4/IPv6 prefixes to create a unique VPN-IPv4/VPN-IPv6 prefix.
For VPN-IPv4 the AFI is 1 (IPv4), and for VPN-IPv6 the AFI is 2 (IPv6). Both VPN-IPv4 and VPN-IPv6 use a SAFI of 128 (MPLS-labeled VPN address).
Figure 2-1 VPN-IPv4/IPv6 NLRI Encoding
When a route is redistributed into VPN-IPv4, a Route Target Extended Community is appended to the prefix. The Route Target Extended Community is a transitive attribute (RFC 4360) used to define the set of sites belonging to a given VPN. When a VPN-IPv4 prefix is received at a Provider Edge (PE) router, it parses the Route Target value and checks whether any locally configured VRFs have an import policy that matches that value. If it does, the route is imported into that VPRN. If it doesn't, the route is not imported into any VPRNs. In short, associating a particular Route Target attribute with a prefix allows that route to be placed into VRFs serving that VPN. If ten sites in a VPN all have a common export and import Route Target value, the result is an “any-to-any” VPN.
Basic Configuration
Output 2-1 shows the base level of configuration required in order to configure a VPRN. The route-distinguisher (RD) is a required parameter when configuring a VPRN, and the VPRN will not become operational until it is configured. When a VPRN is configured with a Route-Distinguisher but without any Route Target parameters, the VPRN does not rely on any BGP/MPLS IP-VPN control plane for learning prefixes but simply creates a separate routing context frequently referred to as “VRF-lite.” The route-distinguisher command is followed by a value that can take three formats but typically uses the type 0 format of a 2-byte ASN subfield followed by a 4-byte assigned number subfield (the remaining 2 bytes are used to define the actual type).
To participate in the BGP/MPLS IP-VPN control plane, the definition of Route Target values is required for import and export of VPN-IPv4 prefixes. The simplest method is using the vrf-target command followed by a Route Target value that has the same format as the Route Distinguisher. The vrf-target command allows for definition of a single value applicable to import and export Route Targets as shown in Output 2-1, or it allows for definition of different import and export Route Target values using the export and import keywords after the vrf-target command, followed by the relevant Route Target values. An alternative to the vrf-target approach for defining Route Target values is to use the vrf-import and vrf-export commands to reference policies constructed within the policy framework.
When prefixes are learned in VPN-IPv4, the receiving PE router must resolve the BGP Next-Hop to a GRE or MPLS tunnel before the prefix is considered valid. The auto-bind command tells the system to automatically bind the Next-Hop to an LSP in the LSP tunnel-table, and the keyword mpls means to use any form of LSP, with a preference for RSVP over LDP, and LDP over BGP.
Output 2-1: VPRN Base Configuration
service vprn 4001 autonomous-system 64496 route-distinguisher 64496:4001 auto-bind mpls vrf-target target:64496:4001 no shutdownOne last optional parameter is the definition of an autonomous-system number in the VPRN. This parameter is required only if BGP is used as a PE-CE routing protocol. This parameter is used as the source ASN in the OPEN exchange unless the local-as parameter is also configured, in which case the ASN defined as the local-as is used in the OPEN exchange. (This also applies to the use of local-as in the global BGP context.)
At face value, both the VPRN autonomous-system ASN and local-as ASN appear to serve the same purpose of mimicking an ASN that differs from the global ASN defined in the router context. In fact, they can have different impacts on the AS_PATH of UPDATE messages propagated to connected CE routers depending on two things:
- Their co-existence in configuration
- Whether the no-prepend-global-as argument is specified as part of the local-as definition
If configured on their own (they do not co-exist) the VPRN-level ASN or local-as ASN is appended to the AS_PATH advertised to the CE and overrides the global ASN. If they are configured to co-exist, the behavior differs depending on the setting of the local-as no-prepend-global-as parameter. If the no-prepend-global-as parameter is disabled, the local-as AS number is appended to the AS_PATH along with the VPRN-level AS number if it differs from the VPRN-level ASN. If the no-prepend-global-as parameter is enabled, the local-as AS number overrides the VPRN-level AS number.
The local-as parameter can be considered useful if a VPRN context needs to appear to be more than one ASN to its peers. If not, the VPRN-level ASN is sufficient. To consolidate the various options, consider the topology in Figure 2-2 where CE1 is in AS 64509 and advertises IPv4 prefix 172.31.100.0/24 to PE1, which in turn propagates the prefix to PE2, which in turn propagates the prefix to CE2. The AS_PATH as seen at CE2 with different configurations is shown in Table 2.1.
Figure 2-2 AS_PATH Encoding
Table 2.1 AS_PATH Encoding with VRF ASN and Local-AS
Prefix Dissemination
When a PE router belongs to a particular VPN, it learns some of that VPN's routes from attached CE routers using static or dynamic routing. These routes are installed in the VRF associated with that CE router and are converted to VPN-IPv4/IPv6 routes for export into BGP so that other PEs belonging to that VPN can learn those routes. These routes can be disseminated to other PE routers of the same VPN through a number of methods; some use an implicit flood model while others use an explicit send-only-if-required model. This section discusses the varying approaches that can be adopted for both prefix dissemination and route-table updates following a local policy change.
Automatic Route Filtering
To help scale BGP/MPLS based IP-VPNs, PE routers do not by default retain in the RIB-IN prefixes that are not associated with any configured VRFs. When a PE router receives a VPN-IPv4/IPv6 prefix with a Route Target value that is not associated with any VRFs on that PE, the prefix is simply discarded (unless, of course, the PE is a Route-Reflector). This approach is known as Automatic Route Filtering (ARF) and ensures that PE routers hold routes only for VRFs that are actually configured on that PE. It is enabled by default and requires no configuration. In the example illustrated in Debug 2-1, the PE router receives VPN-IPv4 prefix 64496:30:172.16.100.0/24 with Extended Community Route Target 64496:30 but has no configured VRFs with that Route Target value. The PE router therefore silently discards the prefix as shown in Output 2-2.
Debug 2-1: Automatic Route Filtering
1 2013/04/22 15:29:36.77 UTC MINOR: DEBUG #2001 Base Peer 1: 192.0.2.11 "Peer 1: 192.0.2.11: UPDATE Peer 1: 192.0.2.11 - Received BGP UPDATE: Withdrawn Length = 0 Total Path Attr Length = 75 Flag: 0x90 Type: 14 Len: 32 Multiprotocol Reachable NLRI: Address Family VPN_IPV4 NextHop len 12 NextHop 192.0.2.13 172.16.100.0/24 RD 64496:30 Label 262139 Flag: 0x40 Type: 1 Len: 1 Origin: 0 Flag: 0x40 Type: 2 Len: 0 AS Path: Flag: 0x40 Type: 5 Len: 4 Local Preference: 100 Flag: 0x80 Type: 9 Len: 4 Originator ID: 192.0.2.13 Flag: 0x80 Type: 10 Len: 4 Cluster ID: 192.0.2.11 Flag: 0xc0 Type: 16 Len: 8 Extended Community: target:64496:30"
Output 2-2: ARF and RIB-IN
*A:PE1# show router bgp routes vpn-ipv4 172.16.100.0/24 ========================================================================== BGP Router ID:192.0.2.22 AS:64496 Local AS:64496 ========================================================================== Legend - Status codes : u - used, s - suppressed, h - history, d - decayed, * - valid Origin codes : i - IGP, e - EGP, ? - incomplete, > - best, b - backup ========================================================================== BGP VPN-IPv4 Routes ========================================================================== Flag Network LocalPref MED Nexthop Path-Id Label As-Path -------------------------------------------------------------------------- No Matching Entries Found ==========================================================================Route Refresh
ARF is useful for optimizing memory consumption, but what...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.