Скачать презентацию
Идет загрузка презентации. Пожалуйста, подождите
Презентация была опубликована 10 лет назад пользователемИгорь Паршин
1 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25#-1 MPLS VPN Implementation Configuring OSPF as the Routing Protocol Between PE and CE Routers
2 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Outline Overview What Is the Enhanced OSPF Hierarchical Model? Propagating OSPF Customer Routes Implementing MPLS VPN as an OPSPF Superbackbone Configuring OSPF PE-CE Routing Using the OSPF Down Bit Optimizing Packet Forwarding Across the MPLS VPN Backbone Using the OSPF Tag Field What Is a Sham Link? Configuring a Sham Link Summary
3 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Hierarchical Model OSPF divides a network into areas, all of them linked through the backbone (Area 0). Areas could correspond to individual sites from an MPLS VPN perspective.
4 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF in an MPLS VPN Routing Model From the customer perspective, an MPLS VPN-based network has a BGP backbone with IGP running at customer sites. Redistribution between IGP and BGP is performed to propagate customer routes across the MPLS VPN backbone.
5 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF in an MPLS VPN Routing Model: OSPF-BGP Redistribution Issue
6 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF in an MPLS VPN Routing Model: Classic OSPF-BGP Redistribution OSPF route type is not preserved when the OSPF route is redistributed into BGP. All OSPF routes from a site are inserted as external (type 5 LSA) routes into other sites. Result: OSPF route summarization and stub areas are hard to implement. Conclusion: MPLS VPN must extend the classic OSPF-BGP routing model.
7 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Superbackbone: OSPF-BGP Hierarchy Issue OSPF Area 0 might extend into individual sites. The MPLS VPN backbone has to become a superbackbone for OSPF.
8 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF in MPLS VPNs: Goals OSPF between sites shall not use normal OSPF-BGP redistribution. OSPF continuity must be provided across the MPLS VPN backbone: –Internal OSPF routes should remain internal OSPF routes. –External routes should remain external routes. –OSPF metrics should be preserved. CE routers run standard OSPF software.
9 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Superbackbone: Route Propagation Example
10 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Superbackbone: Rules OSPF superbackbone behaves exactly like Area 0 in regular OSPF: PE routers are advertised as Area Border Routers. Routes redistributed from BGP into OSPF appear as interarea summary routes or as external routes (based on their original LSA type) in other areas. Routes from Area 0 at one site appear as interarea routes in Area 0 at another site.
11 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Superbackbone: Implementation Extended BGP communities are used to propagate OSPF route type across BGP backbone. OSPF cost is copied into MED attribute.
12 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Superbackbone: Implementation (Cont.) OSPF route type is copied into extended BGP community on redistribution into BGP. Egress PE router performs interarea transformation.
13 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v External OSPF routes are propagated in the same way as internal OSPF routes across the superbackbone. External metric and route type are preserved. OSPF Superbackbone: External Routes
14 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Routes from the MP-BGP backbone that did not originate in OSPF are still subject to standard redistribution behavior when inserted into OSPF. OSPF Superbackbone: Mixing Routing Protocols
15 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Configuring PE-CE OSPF Routing Follow these steps to configure OSPF as the PE-CE routing protocol: Configure per-VRF copy of OSPF. Configure redistribution of MP-BGP into OSPF. Configure redistribution of OSPF into MP-BGP.
16 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v router ospf process-id vrf vrf-name... Standard OSPF parameters... router(config)# This command starts the per-VRF OSPF routing process. The total number of routing processes per router is limited to 32. redistribute bgp as-number subnets router(config-router)# This command redistributes MP-BGP routes into OSPF. The subnets keyword is mandatory for proper operation. Configuring PE-CE OSPF Routing (Cont.)
17 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v router bgp as-number address-family ipv4 vrf vrf-name redistribute ospf process-id [match [internal] [external-1] [external-2]] router(config)# OSPF-BGP route redistribution is configured with the redistribute command under the proper address-family command. Without the OSPF match keyword specified, only internal OSPF routes are redistributed into OSPF. Configuring PE-CE OSPF Routing (Cont.)
18 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Down Bit: Routing Loops between MP-BGP and OSPF
19 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Down Bit: Loop Prevention An additional bit (down bit) has been introduced in the options field of the OSPF LSA header. PE routers set the down bit when redistributing routes from MP-BGP into OSPF. PE routers never redistribute OSPF routes with the down bit set into MP-BGP.
20 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Down Bit: Loop Prevention (Cont.)
21 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Optimizing of Packet Forwarding Across the MPLS VPN Backbone
22 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v The PE routers ignore OSPF routes with the down bit set for routing purposes: –These routes originated at other sites; therefore, the traffic toward them should go via the MP-BGP backbone. The routing bit is not set on OSPF routes with the down bit set: –These routes do not enter the IP routing table, even when they are selected as the best routes using the SPF algorithm. Optimizing of Packet Forwarding Across the MPLS VPN Backbone (Cont.)
23 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Optimizing of Packet Forwarding Across the MPLS VPN Backbone (Cont.)
24 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Tag Field: Routing Loops Across OSPF Domains
25 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Tag Field: Operation The tag field in external OSPF routes is used to detect cross-domain routing loops. PE routers set the tag field to the BGP AS number when redistributing non-OSPF routes from MP-BGP into OSPF. The tag field is propagated between OSPF domains when the external OSPF routes are redistributed between OSPF domains. PE routers filter external OSPF routes to MP-BGP with OSPF tag field AS numbers matching BGP AS numbers.
26 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Tag Field: Usage Guidelines Internal OSPF routes have no tag field. This technique does not detect cross-domain routing information loops for routes inserted as internal OSPF routes by the PE routers. The tag field can be set manually on the router, redistributing routes between OSPF domains with the redistribute ospf source-process-id tag value command. Alternatively, only the internal OSPF routes can be redistributed into MP-BGP on the PE routers.
27 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF Tag Field: Routing Loop Prevention
28 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sham Link OSPF prefers intra-area paths to interarea paths. The path over a backdoor link will always be selected.
29 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sham Link (Cont.) A logical intra-area link. Carried by the superbackbone. A sham link is required only between two VPN sites that belong to the same area and have a backdoor link for backup purposes. OSPF adjacency is established across the sham link. LSA flooding occurs across the sham link.
30 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sham Link (Cont.) When a sham-link route is preferred by OSPF: The OSPF route is not redistributed to MP-BGP. Instead, the router on the other end of the sham link performs the redistribution. The forwarding information from the MP-BGP route is used.
31 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sham Link (Cont.)
32 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sham Link (Cont.)
33 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Configuring a Sham Link A separate /32 address space is required in each PE router for each sham link. This /32 address space: –Is required so that OSPF packets can be sent over the VPN backbone to the remote end of the sham link –Must belong to the VRF –Must not be advertised by OSPF –Must be advertised by BGP
34 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v area area-id sham-link source-address destination-address cost number router(config-router)# This command was introduced in Cisco IOS Release 12.2(8)T. The sham link belongs to the specified area. Sham-link packets sent across the MPLS VPN backbone will have the specified source and destination addresses. When the SPF algorithm is executed, the sham link will have the specified cost. Configuring a Sham Link (Cont.)
35 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v Sample Sham-Link Configuration
36 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v OSPF areas connect to a common backbone area in a two-tier hierarchical model. Basic OSPF across an MPLS VPN includes a BGP backbone. OSPF is run at each site, while MP-BGP is used to propagate routes between each site. A better option implements the MP-BGP backbone as a new transparent OSPF superbackbone above existing areas. OSPF PE-CE routing is implemented as a separate routing process. (One routing process per VRF.) Summary
37 © 2006 Cisco Systems, Inc. All rights reserved. MPLS v A sham link is the OSPF down bit prevents routing loops. A sham link is the OSPF tag field is also used to prevent routing loops. Packet forwarding is optimized across the MPLS VPN using the OSPF routing bit A sham link is required between any two VPN sites that belong to the same OSPF area and share an OSPF backdoor link. The area sham-link cost command is used to configure a sham link across a MPLS VPN backbone. Summary (Cont.)
Еще похожие презентации в нашем архиве:
© 2024 MyShared Inc.
All rights reserved.