Skip to content
Reticux Engineering by Reticux Engineering

Day 86 — Inter-AS MPLS L3VPN Option B: ASBR-to-ASBR VPN Route and Label Exchange

Reticux Engineering —

1. Opening

Option B removes the per-VPN IP handoff. ASBRs instead exchange labeled VPN routes with MP-eBGP. The ASBRs no longer need one VRF interface per VPN, but they become participants in the VPN control plane and must retain route-targeted VPN information that may not be locally imported into any ASBR VRF.

The hard part of inter-AS VPN engineering is deciding where VPN knowledge stops, where labels are exchanged, and which routers must trust one another. Option A, Option B and Option C all extend VPN service across AS boundaries, but they put radically different state on ASBRs. Carrier Supporting Carrier changes the business role of the customer, while 6PE and 6VPE extend MPLS services to IPv6 without forcing a wholesale redesign of the provider core.

A useful design review therefore asks four questions before any configuration is written: which nodes hold VPN routes, which nodes exchange labels, which nodes require per-VRF state, and which administrative domains must trust one another's routing information.

2. Concept and standards behavior

RFC 4364 procedure (b) specifies eBGP redistribution of labeled VPN routes between ASBRs. The ASBR that changes the BGP next hop can allocate a new label for the VPN route. Cisco IOS XR documents this model and explicitly calls out route-target retention and label forwarding requirements. The architecture scales better than Option A at the boundary, but the ASBR now carries potentially large VPN route tables.

A modern reading must preserve the older architecture RFCs while applying current references where later standards superseded individual mechanisms. In particular, labeled-unicast discussion uses RFC 8277 as the current baseline even when RFC 4364, RFC 4798 or RFC 4659 historically cite RFC 3107.

3. Scenario

CE-A -- PE1 -- P1 -- ASBR1 ===== ASBR2 -- P2 -- PE2 -- CE-B
            Provider AS65000       Provider AS65100

Documentation-safe addressing is used throughout: PE/ASBR loopbacks are taken from 192.0.2.0/24, the inter-AS link from 198.51.100.0/30, customer IPv4 from 203.0.113.0/24, customer IPv6 from 2001:db8::/32, and only private ASNs are used.

Success criteria

  1. Customer routes cross the AS/service boundary only through the intended model.
  2. ASBR state matches the chosen architecture.
  3. Required service and transport labels are present.
  4. Route policy cannot broaden VPN scope silently.
  5. End-to-end forwarding succeeds.
  6. A negative cross-VPN or wrong-service test fails as intended.

4. Topology diagram

A matching SVG and PNG are stored under media/diagrams/.

5. Prerequisites

  • IOS XR 24.x feature support verified on the exact hardware/image.
  • Intra-AS MPLS transport healthy before inter-AS testing.
  • Local L3VPN or IPv6 service works inside each AS first.
  • Explicit IOS XR route-policy at eBGP boundaries.
  • Independent management/rollback access.
  • RD/RT and infrastructure-prefix inventories under change control.
  • Documentation-safe addresses and private ASNs only.

6. Baseline configuration

route-policy PASS
  pass
end-policy
!
router bgp 65000
 address-family vpnv4 unicast
  retain route-target all
 !
 neighbor 198.51.100.2
  remote-as 65100
  address-family vpnv4 unicast
   route-policy PASS in
   route-policy PASS out
  !
 !

This is a topic-specific excerpt, not a complete deployment. Validate exact syntax and label behavior on the selected IOS XR platform.

7. Verification before modification

show bgp summary
show bgp vpnv4 unicast
show bgp vpnv6 unicast
show bgp ipv4 labeled-unicast
show bgp ipv6 labeled-unicast
show mpls forwarding
show route

The verification goal is to correlate route state with label forwarding. A route in BGP does not prove an MPLS path exists.

8. Controlled modification

Advertise one CUST-A VPNv4 route across the ASBR session. Capture the RD, RT, next hop and label before ASBR1 advertises it and again after ASBR2 receives and redistributes it.

Predict the exact BGP table, next hop and label change before committing. Preserve a before/after evidence bundle.

9. Fault injection

Illustrative lab — not a real incident.

Remove the static/transport resolution needed to bind a label to the ASBR next hop while leaving the VPNv4 eBGP session Established. The route can remain visible while forwarding fails.

Inject one failure only; keep all other variables unchanged so the result proves causality.

10. Step-by-step troubleshooting

  1. Verify the ingress customer/global route.
  2. Verify the expected BGP address family.
  3. Trace the route toward the AS/service boundary.
  4. Confirm what state the boundary router should hold.
  5. Inspect RD/RT where VPN routes are present.
  6. Inspect next-hop changes.
  7. Inspect service-label and transport-label state.
  8. Verify MPLS forwarding across the boundary/core.
  9. Verify the remote PE receives/imports the route.
  10. Verify PE-to-CE/global advertisement.
  11. Test forwarding.
  12. Run the negative isolation/scope test.
  13. Correct the first failed invariant only.
  14. Repeat the same route-and-label trace.

11. Root cause and correction

The VPN control plane is healthy but the label-switched next-hop resolution is incomplete. Restore the required labeled transport resolution and verify show mpls forwarding before touching VPN route policy.

12. Post-fix verification

Verify BGP family state, next hops, RTs where applicable, MPLS labels, forwarding, and negative isolation. IPv6 topics also require IPv6-specific MTU and next-hop validation.

13. Rollback

Restore the previous route-policy, VRF handoff, VPN session or labeled-unicast transport configuration. Preserve the failing evidence before rollback. Do not widen route policy merely to restore reachability.

Rollback immediately if a route leaks across VPNs, the ASBR state model changes unintentionally, a label resolves to the wrong context, or an inter-AS fault begins affecting unrelated local services.

14. Deep-dive engineering notes

VPN state on the ASBR

This is the defining Option-B trade: ASBRs do not need per-VPN access VRFs, but they do need VPN route state. The ASBR is therefore part of the service control plane, not merely a transport router.

Route-target retention

A transit ASBR may have no local VRF importing a given route target. If its normal behavior is to discard such routes, VPN transit breaks. retain route-target all-style behavior is important because the ASBR's job is to carry VPN routes for remote PEs, not only locally consumed VPNs.

Label swapping

The label advertised by PE1 is not an immutable end-to-end service label. ASBR1/ASBR2 can change next hop and allocate new labels. Troubleshooting should follow label ownership hop by hop instead of expecting one number across the whole path.

Security and blast radius

One ASBR VPNv4 session can carry many customers. An over-broad route policy or RT handling mistake can affect numerous VPNs simultaneously. Apply RT/prefix controls, max-prefix and monitoring appropriate to that blast radius.

Control/data-plane divergence

Cisco documentation highlights a practical failure mode: BGP can be up while traffic fails if the expected labeled forwarding resolution is absent. Every Option-B acceptance test must include both VPN BGP and MPLS LFIB evidence.

14A. Option-B route-and-label audit

Build an audit table for each ASBR VPN route containing RD, prefix, RT set, received-from neighbor, received label, selected next hop, locally allocated label, advertised-to neighbor, and remote-AS label. The exact numeric labels are less important than proving the ownership transition is internally consistent.

A key scale test is to compare ASBR VPN route count with the number of locally configured VRFs. In Option B, the ASBR can correctly hold routes for VPNs that it never locally imports. If route count collapses to only locally used RTs, inspect RT-retention behavior before assuming the remote provider stopped advertising routes.

Run one policy fault that strips or changes an RT at the boundary. The VPN route may continue to propagate but fail to import on remote PEs. This distinguishes label forwarding from VPN membership. Then run a second fault that preserves the RT but breaks label resolution. In that case the remote PE can import the route while packets fail. These paired tests prove that RT and MPLS label state solve different problems.

For production capacity, model VPNv4/vpnv6 route growth on the ASBRs and the CPU/update impact of broad inter-provider churn. Option B shifts scale away from per-VRF subinterfaces, but it does not eliminate scale—it concentrates it in VPN route processing and label allocation.

15. Production workflow

  1. Verify local VPN control planes in both ASes.
  2. Establish ASBR VPNv4/vpnv6 eBGP with explicit policy.
  3. Enable required RT retention.
  4. Exchange one VPN route.
  5. Capture next-hop and label changes.
  6. Verify remote PE import.
  7. Add a second VPN and test RT isolation.
  8. Break label resolution without dropping BGP.
  9. Restore the transport label and retest.
  10. Measure ASBR VPN route scale.

16. Production lessons

  • Option B replaces per-VRF boundary state with VPN route state on ASBRs.
  • Route-target retention is an architectural requirement.
  • Labels can be reallocated at the boundary.
  • A healthy VPNv4 session is not proof of forwarding.
  • Treat ASBR policy as high-blast-radius configuration.

17. Knowledge check

  1. Which routers should hold VPN routes in this design?
  2. Which BGP family carries the critical route/label information?
  3. What negative test proves the service boundary remains correct?

Answers

  1. The answer is architecture-specific; the state-placement decision is the core of the topic.
  2. The relevant VPN or labeled-unicast family, depending on the design.
  3. Verify an unrelated VPN or unauthorized infrastructure prefix remains absent across the boundary.

18. Sources

  • RFC 4364 — Inter-AS procedure (b)
  • RFC 4760 — Multiprotocol BGP
  • RFC 4360 — BGP Extended Communities
  • Cisco IOS XR 24.x L3VPN documentation — Inter-AS Option B
Written by Reticux Engineering

Practical, lab-tested network engineering: Cisco, Juniper and Fortinet configurations, troubleshooting steps and exam-focused practice.

No comments:

Learn BGP, Cisco routing and network security with daily lab-driven lessons, from CCNA basics to CCNP level policy design.