Inspired by a discussion with LTY (@lty1993), this multi-vendor engineering walkthrough demonstrates how to architect and build a production-grade multi-datacenter backbone using MBGP + MPLS + VRF across Cisco, Juniper, and Huawei platforms.
Why choose MPLS + MBGP over traditional hop-by-hop IP routing in a multi-DC service provider network?
- Elasticity (BGP-Free Core): Core transport nodes only require internal OSPF reachability and LDP label bindings—not the 810k+ global Internet routing table—simplifying capacity upgrades and traffic steering.
- Fast Recovery: MPLS Fast Reroute (FRR) protects core links with sub-50ms failover along pre-signaled backup LSPs.
- Granular Traffic Control: Label switching unlocks RSVP-TE path pinning and EXP-based end-to-end MPLS QoS.
- Multi-Service Convergence: The same MPLS underlay seamlessly carries L2VPN services such as VPLS, EVPN, and point-to-point L2-Circuits (Ethernet/VLAN-CCC).
Production Pitfall (Update 1.0): By default, Cisco IOS and Huawei VRP allocate MPLS VPN labels in
per-routemode. Importing an 810k-prefix full Internet table into a VRF will rapidly exhaust device label space! Always switch toper-vrf/per-instancelabel allocation in production (Huawei apply-label · Cisco VRF Label Mode).
Lab Topology & Multi-DC Business Requirements
Note: To mimic realistic ISP path selection without complex IP renumbering, this lab uses recognizable simulated prefixes (such as 114.114.114.0/24, 8.8.8.8, 59.43.x.x, and 202.97.x.x) alongside simulated upstream nodes (CTG-Intl AS 4809, TeliaCarrier-HK AS 1299, HKIX-RouteServer AS 4635, and ChinaTelecom163-CNAccess AS 4134).
Scenario & Design Requirements
Our network spans two Hong Kong colocation facilities under AS 65000: Tseung Kwan O (TKO, blue zone) and Lockhart Road (LKT, green zone), linked via an MPLS L3 Local-loop circuit (100.64.0.0/24). LKT peers with China Telecom Global (CN2), Telia Carrier, and HKIX, while TKO connects locally to China Telecom 163. Five strict engineering rules apply:
- Tiered Transit Selection: At LKT,
Premiumcustomers enjoy full multi-homed access including CN2 toward Mainland China;Standardcustomers must never use CN2 or TKO’s local 163 circuit. - DC Transit Isolation: TKO customers may only use TKO’s local CT163 upstream for Internet traffic—never LKT transit.
- Routing-Driven Forwarding: Core traffic steering must rely strictly on BGP/MPLS routing decisions (zero core PBR hacks).
- Single-Port Multi-Tier Separation: A customer attached to Huawei AR (
Transit-Router-HW) leases a single physical port yet requires192.0.3.0/24on the Premium bundle and192.0.4.0/24on the Standard bundle. - Modular Scalability: VRF and Route Target design must scale cleanly as new DCs or transit providers are added.
Underlay Pre-Check (OSPFv2 + MPLS LDP)
We run OSPFv2 (Area 0) for loopback reachability and MPLS LDP for inter-DC transport LSPs, isolating traffic in VRFs signaled via MBGP VPNv4. Before building the BGP overlay, confirm OSPF adjacencies, LSDB, LDP neighbors, and the MPLS LFIB are clean across both DCs:
IDC-LKT-Backbone#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.2 1 FULL/BDR 00:00:37 172.16.37.2 GigabitEthernet5
10.0.0.3 128 FULL/BDR 00:00:39 172.16.36.2 GigabitEthernet6
10.0.0.4 1 FULL/DR 00:00:37 100.64.0.1 GigabitEthernet1
IDC-LKT-Backbone#show ip ospf database
OSPF Router with ID (10.0.0.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.0.0.1 10.0.0.1 45 0x8000016F 0x001E7D 4
10.0.0.2 10.0.0.2 52 0x80000005 0x00DF74 2
10.0.0.3 10.0.0.3 2250 0x800000F4 0x00AA98 2
10.0.0.4 10.0.0.4 622 0x800000DD 0x00B817 2
172.16.37.2 172.16.37.2 1379 0x80000067 0x004DF3 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
100.64.0.1 10.0.0.4 622 0x80000005 0x00E97F
172.16.36.1 10.0.0.1 199 0x80000005 0x00032E
172.16.37.1 10.0.0.1 51 0x80000001 0x00F143
IDC-LKT-Backbone#show mpls ldp neighbor
Peer LDP Ident: 10.0.0.4:0; Local LDP Ident 10.0.0.1:0
TCP connection: 10.0.0.4.16043 - 10.0.0.1.646
State: Oper; Msgs sent/rcvd: 175/179; Downstream
Up time: 02:25:20
LDP discovery sources:
GigabitEthernet1, Src IP addr: 100.64.0.1
Addresses bound to peer LDP Ident:
10.0.0.4 100.64.0.1 202.97.1.2
Peer LDP Ident: 10.0.0.3:0; Local LDP Ident 10.0.0.1:0
TCP connection: 10.0.0.3.57153 - 10.0.0.1.646
State: Oper; Msgs sent/rcvd: 971/850; Downstream
Up time: 02:20:36
LDP discovery sources:
GigabitEthernet6, Src IP addr: 172.16.36.2
Addresses bound to peer LDP Ident:
172.16.36.2
Peer LDP Ident: 10.0.0.2:0; Local LDP Ident 10.0.0.1:0
TCP connection: 10.0.0.2.59507 - 10.0.0.1.646
State: Oper; Msgs sent/rcvd: 28/24; Downstream
Up time: 00:03:56
LDP discovery sources:
GigabitEthernet5, Src IP addr: 172.16.37.2
Addresses bound to peer LDP Ident:
172.16.37.2 10.0.0.2
IDC-LKT-Backbone#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
16 Pop Label 10.0.0.2/32 0 Gi5 172.16.37.2
17 Pop Label 10.0.0.4/32 0 Gi1 100.64.0.1
30 Pop Label 10.0.0.3/32 0 Gi6 172.16.36.2
IDC-TKO-Backbone#show mpls forwarding-table
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
17 Pop Label 10.0.0.1/32 0 Gi1 100.64.0.2
20 16 10.0.0.2/32 0 Gi1 100.64.0.2
21 30 10.0.0.3/32 0 Gi1 100.64.0.2
Design Blueprint: VRF, RD/RT & BGP Community Plan
To decouple upstream transit feeds from customer service tiers, we separate VRFs into Upstream ISP VRFs and Service Bundle VRFs alongside standardized BGP communities:
Upstream ISPs list: IPT:PREMIUM:INTL:HK // Routes learned from international transit (Telia) RD: 10.0.0.*:100 RT-EXPORT: 65000:100 IPT:PREMIUM:CTG:HK // Routes learned from China-optimized transit (CTG) RD: 10.0.0.*:101 RT-EXPORT: 65000:101 IXP:HKIX:HK // Routes learned from Internet Exchange (HKIX) RD: 10.0.0.*:200 RT-EXPORT: 65000:200 Transit bundle list: SERVICE:IPT:CN // Premium customer routing bundle RD: 10.0.0.*:1000 RT-EXPORT: 65000:1000 SERVICE:IPT:INTL // Standard customer routing bundle RD: 10.0.0.*:1001 RT-EXPORT: 65000:1001 Reject Community: // Reserved standard communities for future TE redundancy 65001:666 or tag 666 Accept Community: 65001:777 or tag 777 ( tag for IGP Proto ) Internal Routes: // Standard communities classifying internal vs customer prefixes 65001:10000 Customer Routes: 65001:10001
Phase 1: Configuring Lockhart Road (LKT) Core, Junos Switch & Upstream Transit
1. IDC-LKT-Backbone (Cisco) VRF, Interface & MP-BGP Configuration
On IDC-LKT-Backbone (10.0.0.1), create the three upstream VRFs and two service bundle VRFs. Each service bundle imports the exact combination of upstream RTs allowed for its tier while originating a 0.0.0.0/0 default route toward edge PEs:
IDC-LKT-Backbone#show run Building configuration... ! ip vrf IPT:PREMIUM:CTG:HK // CTG (CN2) upstream VRF rd 10.0.0.1:101 route-target export 65000:101 // Export RT attached to CTG routes route-target import 65000:1000 // Import Premium customer/internal prefixes route-target import 65000:1001 // Import Standard customer/internal prefixes ! ip vrf IPT:PREMIUM:INTL:HK // Telia international transit VRF rd 10.0.0.1:100 route-target export 65000:100 // Export RT attached to Telia routes route-target import 65000:1000 // Import Premium customer/internal prefixes route-target import 65000:1001 // Import Standard customer/internal prefixes ! ip vrf IXP:HKIX:HK // HKIX exchange peering VRF rd 10.0.0.1:200 route-target export 65000:200 // Export RT attached to HKIX routes route-target import 65000:1000 // Import Premium customer/internal prefixes route-target import 65000:1001 // Import Standard customer/internal prefixes ! ip vrf SERVICE:IPT:CN // Premium service bundle VRF rd 10.0.0.1:1000 route-target export 65000:1000 // Export RT toward downstream PEs route-target import 65000:1000 // Import Premium customer routes route-target import 65000:1001 // Import Standard customer routes (for intra-AS reachability) route-target import 65000:200 // Import HKIX routes route-target import 65000:100 // Import Telia international transit routes route-target import 65000:101 // Import CTG (CN2) routes (Premium exclusive) ! ip vrf SERVICE:IPT:INTL // Standard service bundle VRF rd 10.0.0.1:1001 route-target export 65000:1001 // Export RT toward downstream PEs route-target import 65000:1001 // Import Standard customer routes route-target import 65000:200 // Import HKIX routes route-target import 65000:100 // Import Telia international transit routes route-target import 65000:1000 // Import Premium customer routes (for intra-AS reachability)
interface GigabitEthernet2 ip vrf forwarding IPT:PREMIUM:INTL:HK ip address 62.0.0.2 255.255.255.0 negotiation auto no mop enabled no mop sysid ! interface GigabitEthernet3 ip vrf forwarding IXP:HKIX:HK ip address 125.0.0.2 255.255.255.0 negotiation auto no mop enabled no mop sysid ! interface GigabitEthernet4 ip vrf forwarding IPT:PREMIUM:CTG:HK ip address 59.43.0.2 255.255.255.0 negotiation auto no mop enabled no mop sysid // Bind each upstream transit interface to its dedicated VRF instance router bgp 65000 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 10.0.0.2 remote-as 65000 // iBGP peering with Transit-Router-HW (Huawei AR) neighbor 10.0.0.2 update-source Loopback0 neighbor 10.0.0.3 remote-as 65000 // iBGP peering with IDC-LKT-RE (Juniper switch) neighbor 10.0.0.3 update-source Loopback0 neighbor 10.0.0.4 remote-as 65000 // iBGP peering with IDC-TKO-Backbone neighbor 10.0.0.4 update-source Loopback0 ! address-family vpnv4 // VPNv4 address-family carrying all VRF routes neighbor 10.0.0.2 activate neighbor 10.0.0.2 send-community both // Preserve both standard and extended communities neighbor 10.0.0.2 route-reflector-client // Act as Route Reflector for internal PEs neighbor 10.0.0.3 activate neighbor 10.0.0.3 send-community both neighbor 10.0.0.3 route-reflector-client neighbor 10.0.0.4 activate neighbor 10.0.0.4 send-community both neighbor 10.0.0.4 route-reflector-client exit-address-family ! address-family ipv4 vrf IPT:PREMIUM:CTG:HK neighbor 59.43.0.1 remote-as 4809 neighbor 59.43.0.1 activate neighbor 59.43.0.1 weight 40000 // Prefer CTG CN2 for Mainland China prefixes in Premium VRF exit-address-family ! address-family ipv4 vrf IPT:PREMIUM:INTL:HK neighbor 62.0.0.1 remote-as 1299 neighbor 62.0.0.1 activate neighbor 62.0.0.1 allowas-in 1 exit-address-family ! address-family ipv4 vrf IXP:HKIX:HK neighbor 125.0.0.1 remote-as 4635 neighbor 125.0.0.1 activate exit-address-family ! address-family ipv4 vrf SERVICE:IPT:CN network 0.0.0.0 // Originate default route inside Premium bundle exit-address-family ! address-family ipv4 vrf SERVICE:IPT:INTL network 0.0.0.0 // Originate default route inside Standard bundle exit-address-family ! // Static Null0 default summary routes injected via BGP network statement inside each service VRF ip route vrf SERVICE:IPT:CN 0.0.0.0 0.0.0.0 Null0 ip route vrf SERVICE:IPT:INTL 0.0.0.0 0.0.0.0 Null0
2. IDC-LKT-RE (Juniper Junos) Access Switch VRF & Policy Configuration
On downstream switch IDC-LKT-RE (10.0.0.3), configure only the two customer-facing VRFs with vrf-table-label (mandatory on multi-access Ethernet CE links) and strict import filters matching only target:65000:1000 and target:65000:1001:
routing-instances {
SERVICE-IPT-CN { // Premium customer VRF
instance-type vrf;
interface xe-0/0/0.0; // Attach Premium customer port
route-distinguisher 10.0.0.3:1000;
vrf-import SERVICE:IPT:CN:IMPORT; // MP-BGP inbound VRF import policy
vrf-export SERVICE:IPT:CN:EXPORT; // MP-BGP outbound VRF export policy
vrf-table-label; // Allocate per-VRF inner label (required for Ethernet interfaces)
}
SERVICE-IPT-INTL { // Standard customer VRF
instance-type vrf;
interface xe-0/0/1.0; // Attach Standard customer port
route-distinguisher 10.0.0.3:1001;
vrf-import SERVICE:IPT:INTL:IMPORT;
vrf-export SERVICE:IPT:INTL:EXPORT;
vrf-table-label;
}
}
policy-options {
policy-statement SERVICE:IPT:CN:EXPORT {
term add-community-v4 { // Tag Premium customer subnet for internal classification
from {
protocol [ direct static ];
route-filter 192.0.1.0/24 exact;
}
then {
community add internal-routes;
}
}
term vrf-export {
then {
community add service:ipt:cn; // Attach RT target:65000:1000 on export
accept;
}
}
term last {
then reject;
}
}
policy-statement SERVICE:IPT:CN:IMPORT {
term vrf-import {
from community service:ipt:cn; // Accept ONLY routes carrying target:65000:1000
then accept;
}
term last {
then reject;
}
}
policy-statement SERVICE:IPT:INTL:EXPORT {
term add-community-v4 { // Tag Standard customer subnet
from {
protocol [ direct static ];
route-filter 192.0.2.0/24 exact;
}
then {
community add internal-routes;
}
}
term vrf-export {
then {
community add service:ipt:intl; // Attach RT target:65000:1001 on export
accept;
}
}
term last {
then reject;
}
}
policy-statement SERVICE:IPT:INTL:IMPORT {
term vrf-import {
from community service:ipt:intl; // Accept ONLY routes carrying target:65000:1001
then accept;
}
term last {
then reject;
}
}
community customer-routes members 65001:10001; // Standard community for TE
community internal-routes members 65001:10000; // Standard community for TE
community service:ipt:cn members target:65000:1000; // Extended community for Premium VRF
community service:ipt:intl members target:65000:1001; // Extended community for Standard VRF
}
protocols {
bgp {
group MP-BGP {
type internal;
local-address 10.0.0.3; // Loopback0 update source
family inet-vpn {
unicast; // Enable MP-BGP VPNv4 unicast
}
local-as 65000;
neighbor 10.0.0.1 { // Peer with LKT core backbone router
description To-Huawei-MBGP-Core;
peer-as 65000;
}
}
}
3. Control-Plane Verification & Why Full ISP Tables Never Overflow Edge Switches
Inspect the VRF routing tables on both the Cisco core router and the Juniper access switch:
IDC-LKT-Backbone#show ip route vrf IPT:PREMIUM:INTL:HK
Routing Table: IPT:PREMIUM:INTL:HK
B* 0.0.0.0/0 [20/0], 21:38:31, Null0
1.0.0.0/24 is subnetted, 1 subnets
B 1.2.4.0 [20/0] via 62.0.0.1, 21:38:32
8.0.0.0/32 is subnetted, 2 subnets
B 8.8.4.4 [20/0] via 62.0.0.1, 21:38:32
B 8.8.8.8 [20/0] via 62.0.0.1, 21:38:32
114.0.0.0/24 is subnetted, 1 subnets
B 114.114.114.0 [20/0] via 62.0.0.1, 21:38:32
B 192.0.1.0/24 [200/0] via 10.0.0.3, 21:34:06
B 192.0.2.0/24 [200/0] via 10.0.0.3, 21:34:06
B 192.0.3.0/24 [200/0] via 10.0.0.2, 19:17:15
B 192.0.4.0/24 [200/0] via 10.0.0.2, 19:17:15
IDC-LKT-Backbone#show ip route vrf IPT:PREMIUM:CTG:HK BGP
Routing Table: IPT:PREMIUM:CTG:HK
B* 0.0.0.0/0 [20/0], 21:38:40, Null0
1.0.0.0/24 is subnetted, 1 subnets
B 1.2.4.0 [20/0] via 59.43.0.1, 21:38:41
114.0.0.0/24 is subnetted, 1 subnets
B 114.114.114.0 [20/0] via 59.43.0.1, 21:38:41
B 192.0.1.0/24 [200/0] via 10.0.0.3, 21:34:15
B 192.0.2.0/24 [200/0] via 10.0.0.3, 21:34:15
IDC-LKT-Backbone#show ip route vrf IXP:HKIX:HK BGP
Routing Table: IXP:HKIX:HK
B* 0.0.0.0/0 [20/0], 21:38:51, Null0
8.0.0.0/32 is subnetted, 2 subnets
B 8.8.4.4 [20/0] via 125.0.0.3, 14:46:20
B 8.8.8.8 [20/0] via 125.0.0.3, 14:46:20
B 192.0.1.0/24 [200/0] via 10.0.0.3, 21:34:26
B 192.0.2.0/24 [200/0] via 10.0.0.3, 21:34:26
IDC-LKT-Backbone#show ip route vrf SERVICE:IPT:CN
Routing Table: SERVICE:IPT:CN
S* 0.0.0.0/0 is directly connected, Null0
1.0.0.0/24 is subnetted, 1 subnets
B 1.2.4.0 [20/0] via 59.43.0.1 (IPT:PREMIUM:CTG:HK), 21:39:20
8.0.0.0/32 is subnetted, 2 subnets
B 8.8.4.4 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:20
B 8.8.8.8 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:20
114.0.0.0/24 is subnetted, 1 subnets
B 114.114.114.0 [20/0] via 59.43.0.1 (IPT:PREMIUM:CTG:HK), 21:39:20
B 192.0.1.0/24 [200/0] via 10.0.0.3, 21:34:55
B 192.0.2.0/24 [200/0] via 10.0.0.3, 21:34:55
IDC-LKT-Backbone#show ip route vrf SERVICE:IPT:INTL
Routing Table: SERVICE:IPT:INTL
S* 0.0.0.0/0 is directly connected, Null0
1.0.0.0/24 is subnetted, 1 subnets
B 1.2.4.0 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:24
8.0.0.0/32 is subnetted, 2 subnets
B 8.8.4.4 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:24
B 8.8.8.8 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:24
114.0.0.0/24 is subnetted, 1 subnets
B 114.114.114.0 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 21:39:24
B 192.0.1.0/24 [200/0] via 10.0.0.3, 21:34:59
B 192.0.2.0/24 [200/0] via 10.0.0.3, 21:34:59
root@IDC-LKT-RE> show route table SERVICE-IPT-CN.inet.0
SERVICE-IPT-CN.inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[BGP/170] 21:38:09, MED 0, localpref 100, from 10.0.0.1
AS path: I, validation-state: unverified
> to 172.16.36.1 via xe-0/0/6.0, Push 28
192.0.1.0/24 *[Direct/0] 21:38:53
> via xe-0/0/0.0
192.0.1.1/32 *[Local/0] 21:38:53
Local via xe-0/0/0.0
{master:0}
root@IDC-LKT-RE> show route table SERVICE-IPT-INTL.inet.0
SERVICE-IPT-INTL.inet.0: 3 destinations, 3 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[BGP/170] 21:38:19, MED 0, localpref 100, from 10.0.0.1
AS path: I, validation-state: unverified
> to 172.16.36.1 via xe-0/0/6.0, Push 29
192.0.2.0/24 *[Direct/0] 21:39:03
> via xe-0/0/1.0
192.0.2.1/32 *[Local/0] 21:39:03
Local via xe-0/0/1.0
An essential architectural question arises here: If SERVICE:IPT:CN on the core router imports full upstream ISP routes, why don’t those 810k prefixes get advertised down to the Juniper access switch?
Because locally importing a VPNv4 route between VRFs on a PE preserves its original BGP Extended Community (Route Target)! Inspecting 8.8.8.8/32 inside SERVICE:IPT:CN confirms that the imported paths still carry RT:65000:200 and RT:65000:100—which IDC-LKT-RE‘s vrf-import filter automatically rejects:
IDC-LKT-Backbone#show ip bgp vpnv4 vrf SERVICE:IPT:CN 8.8.8.8 255.255.255.255
BGP routing table entry for 10.0.0.1:1000:8.8.8.8/32, version 22
Paths: (2 available, best #2, table SERVICE:IPT:CN)
Not advertised to any peer
Refresh Epoch 1
4635 15169, imported path from 10.0.0.1:200:8.8.8.8/32 (IXP:HKIX:HK)
125.0.0.3 (via vrf IXP:HKIX:HK) (via IXP:HKIX:HK) from 125.0.0.1 (125.0.0.1)
Origin IGP, localpref 100, valid, external
Extended Community: RT:65000:200
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
1299 15169, imported path from 10.0.0.1:100:8.8.8.8/32 (IPT:PREMIUM:INTL:HK)
62.0.0.1 (via vrf IPT:PREMIUM:INTL:HK) (via IPT:PREMIUM:INTL:HK) from 62.0.0.1 (202.97.2.2)
Origin IGP, localpref 100, valid, external, best
Extended Community: RT:65000:100
rx pathid: 0, tx pathid: 0x0
4. Phase 1 End-to-End Path Verification (MTR)
Run mtr from Premium, Standard, and Mainland hosts to confirm symmetric CN2 routing for Premium and Telia+163 routing for Standard:
root@localhost:~# mtr 114.114.114.114 --report --no-dns Start: 2020-05-28T06:39:01+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.1.1 0.0% 10 117.6 149.1 106.6 208.8 36.4 2.|-- 172.16.36.1 0.0% 10 119.9 126.8 107.5 158.2 17.7 3.|-- 59.43.0.1 0.0% 10 122.6 138.7 108.0 203.8 33.5 4.|-- 59.43.1.1 0.0% 10 124.6 136.1 109.5 206.0 28.9 5.|-- 114.114.114.114 0.0% 10 126.0 133.4 106.3 204.8 29.6 root@localhost:~# mtr 8.8.4.4 --report --no-dns Start: 2020-05-28T06:39:51+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.1.1 0.0% 10 105.0 127.3 104.1 176.6 30.8 2.|-- 172.16.36.1 0.0% 10 105.0 124.7 104.0 171.5 25.3 3.|-- 62.0.0.1 0.0% 10 105.4 134.2 104.0 181.4 36.8 4.|-- 8.8.4.4 0.0% 10 104.7 123.5 103.8 174.0 26.4 root@localhost:~# mtr 8.8.8.8 --report --no-dns Start: 2020-05-28T06:42:54+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.1.1 0.0% 10 106.0 106.3 104.0 111.4 2.6 2.|-- 172.16.36.1 0.0% 10 105.9 123.0 103.9 200.8 35.1 3.|-- 8.8.8.8 0.0% 10 175.7 139.0 104.2 202.6 41.0
root@localhost:~# mtr 114.114.114.114 --report --no-dns [87953.252456] sctp: Hash tables configured (bind 256/256) Start: 2020-05-28T06:39:19+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.2.1 10.0% 10 150.8 146.5 108.4 180.6 24.2 2.|-- 172.16.36.1 0.0% 10 186.8 166.8 112.3 205.8 32.7 3.|-- 62.0.0.1 0.0% 10 120.9 139.5 110.8 202.0 34.3 4.|-- 202.97.2.1 0.0% 10 155.9 145.8 114.1 176.0 19.2 5.|-- 202.97.0.1 0.0% 10 190.4 171.4 109.4 201.1 32.7 6.|-- 114.114.114.114 0.0% 10 124.7 126.3 105.8 172.9 20.6 root@localhost:~# mtr 8.8.8.8 --report --no-dns Start: 2020-05-28T06:43:02+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.2.1 0.0% 10 178.8 127.2 104.7 178.8 30.0 2.|-- 172.16.36.1 0.0% 10 104.1 119.0 104.1 206.7 32.9 3.|-- 8.8.8.8 0.0% 10 165.6 138.3 104.4 204.1 40.1 root@localhost:~# mtr 8.8.4.4 --report --no-dns Start: 2020-05-28T06:43:28+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.2.1 0.0% 10 174.3 134.9 104.1 201.5 35.3 2.|-- 172.16.36.1 0.0% 10 126.3 123.5 104.9 192.9 28.0 3.|-- 62.0.0.1 0.0% 10 105.2 119.4 103.5 170.4 24.0 4.|-- 8.8.4.4 0.0% 10 103.8 128.7 103.8 205.7 40.1
root@localhost:~# mtr 192.0.1.2 --report --no-dns Start: 2020-05-28T06:40:08+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 114.114.114.1 0.0% 10 1.0 0.9 0.7 1.0 0.1 2.|-- 59.43.1.2 0.0% 10 1.6 1.5 1.3 1.8 0.1 3.|-- 59.43.0.2 0.0% 10 1.8 1.8 1.5 2.0 0.1 4.|-- 192.0.1.1 0.0% 10 107.3 110.9 105.8 147.9 13.0 5.|-- 192.0.1.2 0.0% 10 109.3 118.4 106.8 165.5 21.1 root@localhost:~# mtr 192.0.2.2 --report --no-dns Start: 2020-05-28T06:43:09+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 114.114.114.1 0.0% 10 1.0 0.9 0.8 1.1 0.1 2.|-- 202.97.0.2 0.0% 10 1.5 1.4 1.3 1.6 0.1 3.|-- 202.97.2.2 0.0% 10 2.1 1.8 1.6 2.1 0.1 4.|-- 62.0.0.2 0.0% 10 2.3 2.2 1.9 2.4 0.2 5.|-- 192.0.2.1 0.0% 10 179.2 123.8 105.5 179.2 29.5 6.|-- 192.0.2.2 0.0% 10 113.5 141.2 112.5 186.1 20.5
Phase 2: Configuring Tseung Kwan O (TKO) DC for Inter-DC Local-Loop & Tiered Routing
Next, integrate the Tseung Kwan O DC (IDC-TKO-Backbone, 10.0.0.4): LKT Premium customers must reach TKO directly over the MPLS L3 Local-loop (100.64.0.0/24), whereas LKT Standard customers must detour over public Internet transit and TKO Internet egress must stay on its local CT163 peer.
We give TKO VRF SERVICE:IPT:CN a dedicated export target 65000:1002 imported exclusively by LKT’s SERVICE:IPT:CN, and leak TKO’s customer subnet into the global RIB via export ipv4 unicast map export-local:
ip vrf SERVICE:IPT:CN // TKO customer VRF rd 10.0.0.4:1000 export ipv4 unicast map export-local // Leak customer prefix into Global RIB for local CT163 advertisement route-target export 65000:1002 // Export RT imported exclusively by LKT Premium VRF route-target import 65000:1000 // Import LKT Premium customer prefixes interface GigabitEthernet3 ip vrf forwarding SERVICE:IPT:CN ip address 192.0.0.1 255.255.255.0 negotiation auto no mop enabled no mop sysid // Bind customer interface to VRF ip route vrf SERVICE:IPT:CN 0.0.0.0 0.0.0.0 202.97.1.1 global // Point default route strictly to local CT163 Transit (never use LKT upstream) ip prefix-list export-local seq 5 permit 192.0.0.0/24 route-map export-local permit 100 match ip address prefix-list export-local // Control VRF-to-Global export map router bgp 65000 bgp router-id 10.0.0.4 bgp log-neighbor-changes no bgp default ipv4-unicast neighbor 10.0.0.1 remote-as 65000 // iBGP peering with LKT core backbone neighbor 10.0.0.1 update-source Loopback0 neighbor 202.97.1.1 remote-as 4134 // eBGP peering with local CT163 ISP ! address-family ipv4 neighbor 202.97.1.1 activate // Activate IPv4 unicast toward ISP exit-address-family ! address-family vpnv4 neighbor 10.0.0.1 activate // Activate MP-BGP VPNv4 toward LKT core neighbor 10.0.0.1 send-community extended exit-address-family ! address-family ipv4 vrf SERVICE:IPT:CN network 192.0.0.0 // Advertise TKO customer prefix into VPNv4 exit-address-family ! ! === Append on IDC-LKT-Backbone === ip vrf SERVICE:IPT:CN route-target import 65000:1002
Verify VRF tables and run cross-DC MTR tests:
IDC-LKT-Backbone#show ip route vrf SERVICE:IPT:CN
Routing Table: SERVICE:IPT:CN
S* 0.0.0.0/0 is directly connected, Null0
1.0.0.0/24 is subnetted, 1 subnets
B 1.2.4.0 [20/0] via 59.43.0.1 (IPT:PREMIUM:CTG:HK), 1d01h
8.0.0.0/32 is subnetted, 2 subnets
B 8.8.4.4 [20/0] via 62.0.0.1 (IPT:PREMIUM:INTL:HK), 1d01h
B 8.8.8.8 [20/0] via 125.0.0.3 (IXP:HKIX:HK), 00:40:34
114.0.0.0/24 is subnetted, 1 subnets
B 114.114.114.0 [20/0] via 59.43.0.1 (IPT:PREMIUM:CTG:HK), 1d01h
B 192.0.0.0/24 [200/0] via 10.0.0.4, 1d01h // Received from TKO DC
B 192.0.1.0/24 [200/0] via 10.0.0.3, 1d01h
B 192.0.2.0/24 [200/0] via 10.0.0.3, 1d01h
B 192.0.3.0/24 [200/0] via 10.0.0.2, 22:44:53
B 192.0.4.0/24 [200/0] via 10.0.0.2, 22:44:53
IDC-TKO-Backbone#show ip route vrf SERVICE:IPT:CN
Routing Table: SERVICE:IPT:CN
S* 0.0.0.0/0 [1/0] via 202.97.1.1
192.0.0.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.0.0.0/24 is directly connected, GigabitEthernet3
L 192.0.0.1/32 is directly connected, GigabitEthernet3 // Received LKT Premium subnet
B 192.0.1.0/24 [200/0] via 10.0.0.3, 1d01h
! === IDC-LKT-Premium-Cust === root@localhost:~# mtr 192.0.0.2 --report --no-dns Start: 2020-05-28T07:28:02+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.1.1 0.0% 10 160.9 140.8 104.6 190.4 29.1 2.|-- 172.16.36.1 0.0% 10 112.4 139.8 105.0 197.0 41.4 3.|-- 192.0.0.1 0.0% 10 104.7 132.4 104.1 202.3 38.6 // Direct over MPLS Local-loop to TKO 4.|-- 192.0.0.2 0.0% 10 192.3 134.2 103.8 192.3 41.1 ! === IDC-LKT-Standard-Cust === root@localhost:~# mtr 192.0.0.2 --report --no-dns Start: 2020-05-28T07:27:51+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.2.1 0.0% 10 182.6 166.5 105.6 201.8 31.2 2.|-- 172.16.36.1 0.0% 10 140.7 142.3 106.1 192.5 26.4 3.|-- 62.0.0.1 0.0% 10 199.4 170.2 106.7 202.1 37.3 // Detours via Telia/163 Transit to TKO 4.|-- 202.97.2.1 0.0% 10 157.4 159.5 107.3 201.5 30.4 5.|-- 202.97.0.1 0.0% 10 115.6 145.3 106.8 199.0 38.5 6.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0 7.|-- 192.0.0.2 0.0% 10 132.1 122.8 103.8 160.9 17.4 ! === IDC-TKO-Cust === root@localhost:~# mtr 192.0.1.2 --report --no-dns // To LKT Premium Customer [90989.310341] sctp: Hash tables configured (bind 256/256) Start: 2020-05-28T07:28:15+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.0.1 0.0% 10 1.0 1.0 0.8 1.2 0.1 2.|-- 100.64.0.2 0.0% 10 52.1 16.6 5.1 67.0 22.9 // Direct over MPLS Local-loop to LKT 3.|-- 192.0.1.1 0.0% 10 107.3 124.5 105.2 205.1 37.9 4.|-- 192.0.1.2 0.0% 10 105.6 124.1 105.1 164.1 24.3 root@localhost:~# mtr 192.0.2.2 --report --no-dns // To LKT Standard Customer Start: 2020-05-28T07:28:37+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.0.1 0.0% 10 0.8 0.9 0.8 1.0 0.1 2.|-- 202.97.1.1 0.0% 10 1.2 1.4 1.2 1.7 0.2 // Detours via CT163/Telia Transit 3.|-- 202.97.0.2 0.0% 10 1.9 1.8 1.5 2.0 0.2 4.|-- 202.97.2.2 0.0% 10 2.4 2.3 2.0 2.6 0.2 5.|-- 62.0.0.2 0.0% 10 2.7 2.8 2.6 3.0 0.1 6.|-- 192.0.2.1 0.0% 10 108.6 116.3 106.7 191.3 26.4 7.|-- 192.0.2.2 0.0% 10 167.7 166.5 109.1 204.0 26.4 root@localhost:~# mtr 114.114.114.114 --report --no-dns // Public Internet via local CT163 Transit Start: 2020-05-28T07:29:04+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.0.1 0.0% 10 0.9 15.3 0.9 143.0 44.9 2.|-- 202.97.1.1 0.0% 10 1.2 1.9 1.2 6.6 1.7 3.|-- 114.114.114.114 0.0% 10 1.5 41.2 1.4 398.9 125.7
Phase 3: Single-Interface Multi-VRF Steering on Huawei AR (Traffic-Policy PBR)
Finally, on the LKT Transit branch (Transit-Router-HW, Huawei AR), the customer rents a single interface (GigabitEthernet0/0/0) carrying secondary IP addressing, requiring 192.0.3.0/24 to use the Premium bundle and 192.0.4.0/24 to use the Standard bundle.
We bind GigabitEthernet0/0/0 to SERVICE:IPT:CN by default and apply an inbound Huawei traffic-policy std matching ACL 2000 (192.0.4.0/24) with redirect vpn-instance SERVICE:IPT:INTL:
<Transit-Router-HW>dis current-configuration # ip vpn-instance SERVICE:IPT:CN // Premium routing bundle ipv4-family route-distinguisher 10.0.0.2:1000 vpn-target 65000:1000 export-extcommunity // Export RT to core vpn-target 65000:1000 65000:1002 import-extcommunity // Import LKT Premium + TKO customer routes # ip vpn-instance SERVICE:IPT:INTL // Standard routing bundle ipv4-family route-distinguisher 10.0.0.2:1001 vpn-target 65000:1001 export-extcommunity vpn-target 65000:1001 import-extcommunity # bgp 65000 undo default ipv4-unicast peer 10.0.0.1 as-number 65000 // iBGP peering with LKT core router peer 10.0.0.1 connect-interface LoopBack0 # ipv4-family vpnv4 policy vpn-target peer 10.0.0.1 enable // Activate VPNv4 toward LKT core # ipv4-family vpn-instance SERVICE:IPT:CN // Advertise both customer subnets into VPNv4 network 192.0.3.0 network 192.0.4.0 acl number 2000 rule 5 permit source 192.0.4.0 0.0.0.255 // Match Standard customer source block # traffic classifier std operator and if-match acl 2000 # traffic behavior std redirect vpn-instance SERVICE:IPT:INTL // Redirect matched packets into Standard VRF # traffic policy std match-extended classifier std behavior std precedence 5 interface GigabitEthernet0/0/0 ip binding vpn-instance SERVICE:IPT:CN // Default binding to Premium VRF ip address 192.0.3.1 255.255.255.0 ip address 192.0.4.1 255.255.255.0 sub traffic-policy std inbound // Redirect 192.0.4.0/24 ingress traffic to Standard VRF
Inspect both Huawei VRF routing tables and verify bidirectional MTR forwarding:
<Transit-Router-HW>display ip routing-table vpn-instance SERVICE:IPT:CN protocol bgp
Route Flags: R - relay, D - download to fib, T - to vpn-instance
------------------------------------------------------------------------------
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 IBGP 255 0 RD 10.0.0.1 GigabitEthernet0/0/5
192.0.0.0/24 IBGP 255 0 RD 10.0.0.4 GigabitEthernet0/0/5
192.0.1.0/24 IBGP 255 0 RD 10.0.0.3 GigabitEthernet0/0/5
<Transit-Router-HW>display ip routing-table vpn-instance SERVICE:IPT:INTL protocol bgp
Route Flags: R - relay, D - download to fib, T - to vpn-instance
------------------------------------------------------------------------------
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 IBGP 255 0 RD 10.0.0.1 GigabitEthernet0/0/5
192.0.2.0/24 IBGP 255 0 RD 10.0.0.3 GigabitEthernet0/0/5
! === Transit-Premium-Cust (192.0.3.0/24) === root@localhost:~# mtr 114.114.114.114 --report --no-dns Start: 2020-05-28T08:07:46+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.3.1 0.0% 10 6.2 6.7 6.0 7.4 0.4 2.|-- 172.16.37.1 0.0% 10 3.7 3.4 3.0 3.8 0.3 3.|-- 59.43.0.1 0.0% 10 3.2 4.0 3.0 5.5 0.9 // Via CN2 to Mainland 4.|-- 59.43.1.1 0.0% 10 5.0 4.6 3.9 5.6 0.5 5.|-- 114.114.114.114 0.0% 10 5.6 5.1 4.0 6.3 0.6 root@localhost:~# mtr 8.8.8.8 --report --no-dns Start: 2020-05-28T08:08:15+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.3.1 0.0% 10 8.5 7.2 6.3 8.6 0.8 2.|-- 172.16.37.1 0.0% 10 3.9 3.9 3.3 6.0 0.8 // Via HKIX 3.|-- 8.8.8.8 0.0% 10 7.8 6.3 5.3 7.8 0.8 root@localhost:~# mtr 8.8.4.4 --report --no-dns Start: 2020-05-28T08:08:36+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.3.1 0.0% 10 5.6 133.3 5.6 1138. 355.8 2.|-- 172.16.37.1 0.0% 10 3.6 92.5 3.0 891.1 280.6 3.|-- 62.0.0.1 0.0% 10 3.7 67.8 3.0 641.3 201.5 // Via Telia 4.|-- 8.8.4.4 0.0% 10 4.8 43.6 4.0 392.7 122.7 root@localhost:~# mtr 192.0.0.2 --report --no-dns Start: 2020-05-28T08:09:23+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.3.1 0.0% 10 8.7 7.4 6.0 10.8 1.5 2.|-- 172.16.37.1 0.0% 10 3.5 4.4 3.5 4.9 0.5 // Direct via MPLS Local-loop to TKO 3.|-- 192.0.0.1 0.0% 10 4.0 4.8 3.7 5.6 0.7 4.|-- 192.0.0.2 0.0% 10 3.6 4.6 3.6 5.6 0.7 ! === Transit-Standard-Cust (192.0.4.0/24) === root@localhost:~# mtr 114.114.114.114 --report --no-dns Start: 2020-05-28T08:08:04+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.4.1 0.0% 10 7.5 7.1 6.3 7.8 0.5 2.|-- 172.16.37.1 0.0% 10 3.8 3.4 2.5 4.2 0.5 3.|-- 62.0.0.1 0.0% 10 5.0 4.4 3.3 5.7 0.7 // Via Telia -> CT163 to Mainland 4.|-- 202.97.2.1 0.0% 10 5.2 5.2 4.0 6.3 0.7 5.|-- 202.97.0.1 0.0% 10 4.9 5.2 4.6 5.8 0.4 6.|-- 114.114.114.114 0.0% 10 4.5 5.0 4.1 6.1 0.6 root@localhost:~# mtr 8.8.8.8 --report --no-dns Start: 2020-05-28T08:08:29+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.4.1 0.0% 10 7.0 7.2 6.1 8.7 0.8 2.|-- 172.16.37.1 0.0% 10 5.5 3.8 2.9 5.5 0.8 // Via HKIX 3.|-- 8.8.8.8 0.0% 10 6.3 5.8 5.0 6.4 0.4 root@localhost:~# mtr 8.8.4.4 --report --no-dns Start: 2020-05-28T08:09:13+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.4.1 0.0% 10 7.3 7.2 6.4 7.8 0.5 2.|-- 172.16.37.1 0.0% 10 4.8 3.9 3.3 4.8 0.5 3.|-- 62.0.0.1 0.0% 10 3.3 4.6 3.1 6.4 1.2 // Via Telia 4.|-- 8.8.4.4 0.0% 10 5.2 4.8 4.0 6.0 0.6 root@localhost:~# mtr 192.0.0.2 --report --no-dns Start: 2020-05-28T08:09:40+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 192.0.4.1 0.0% 10 8.1 7.1 5.9 8.5 0.8 2.|-- 172.16.37.1 0.0% 10 5.1 4.1 2.9 5.1 0.8 3.|-- 62.0.0.1 0.0% 10 5.0 4.7 3.9 5.6 0.6 // Detours via Telia/163 to TKO 4.|-- 202.97.2.1 0.0% 10 5.1 5.0 3.9 6.7 0.8 5.|-- 202.97.0.1 0.0% 10 4.4 4.9 3.9 6.3 0.7 6.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0 7.|-- 192.0.0.2 0.0% 10 5.0 4.8 3.9 5.5 0.4 ! === China-Mainland-Server === root@localhost:~# mtr 192.0.3.2 --report --no-dns // Return path to Transit-Premium-Cust Start: 2020-05-28T08:07:23+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 114.114.114.1 0.0% 10 0.7 1.0 0.7 1.7 0.3 2.|-- 59.43.1.2 0.0% 10 1.3 1.3 1.1 1.6 0.2 3.|-- 59.43.0.2 0.0% 10 1.7 1.8 1.7 2.6 0.3 4.|-- 192.0.3.1 0.0% 10 5.2 5.7 5.2 6.5 0.4 5.|-- 192.0.3.2 0.0% 10 4.8 4.1 3.6 4.8 0.4 root@localhost:~# mtr 192.0.4.2 --report --no-dns // Return path to Transit-Standard-Cust Start: 2020-05-28T08:08:20+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 114.114.114.1 0.0% 10 1.1 0.9 0.8 1.1 0.1 2.|-- 202.97.0.2 0.0% 10 1.6 1.4 1.3 1.6 0.1 3.|-- 202.97.2.2 0.0% 10 2.1 1.8 1.6 2.1 0.1 4.|-- 62.0.0.2 0.0% 10 2.3 2.4 2.2 3.0 0.2 5.|-- 192.0.4.1 0.0% 10 6.1 6.0 5.5 6.8 0.3 6.|-- 192.0.4.2 0.0% 10 4.2 4.8 4.0 6.6 0.8
Every forward and return traffic flow now adheres strictly to the multi-DC SLA tiers.
Summary & Production Best Practices
- Dedicated RD & RT per Tier: Assigning a distinct Route Distinguisher and Extended Community (Route Target) to each upstream VRF and service bundle ensures deterministic, loop-free composition.
- Edge Switch FIB Protection: Because PE-local VRF route leaking preserves original extended communities, full upstream BGP feeds remain isolated on core routers while access switches carry only default + customer prefixes.
- Standard + Extended Community Synergy: Combine standard communities (origin tagging, traffic engineering) with extended communities (VRF bundle isolation) for clean, scalable ISP policy management.
- Strict Route-Leak Filters: Always enforce inbound/outbound prefix-lists and AS-path ACLs on every upstream ISP and IXP peering session to prevent catastrophic route leaks.