What's the maximum amount of MPLS VPNs a router can provide?
Is it 2^20 = ~1 million = the maximum amount of different MPLS labels?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityWhat's the maximum amount of MPLS VPNs a router can provide?
Is it 2^20 = ~1 million = the maximum amount of different MPLS labels?
What's the maximum amount of MPLS VPNs a router can provide?
Short answer:
"it depends". To be honest, it sounds like you're getting in way over your head, but I'll answer the question as best I can.
Long answer:
Sam said... I would still be specifically interested in how service providers handle the separation of different customer's MPLS VPN.
Why do you think that the answer is different when comparing how a router separates customers in an MPLS VPN vs a service provider separating customers in an MPLS VPN?
A router is the most basic building block for MPLS VPN network. Functionally, service providers use many routers to deploy MPLS VPNs. MPLS VPN customer separation can be implemented within the same router, or between different routers; it doesn't matter.
The difference in asking for how many VPNs a service provider can offer vs what a router can offer is: we can answer how many MPLS VPNs a router can offer in a normal-sized Stack Exchange answer.
If we start talking about how many VPNs a service provider can offer with many routers, that introduces too many variables... such as how many MPLS labels the service provider uses for other MPLS services (LDP, L2VPN, MPLS TE, etc...). This is relevant because you're asking about large numbers of VPNs, and large Service Providers offer all the aforementioned services.
What's the maximum amount of MPLS VPNs a router can provide?
Speaking practically, It depends on what hardware / software is providing the VPNs and how they are being used.
For instance, MPLS VPN under Cisco IOS binds labels per-VRF, and per-non-connected prefix so the total number of VPNs is reduced for every route you advertise into MPLS VPN from a CE router. There are features to bind labels per-VRF on some platforms. However, you did not tell us what hardware platform you're asking about, so this is all pointless other than to demonstrate that you're making far too many assumptions.
Is it 2^20 = ~1 million = the maximum amount of different MPLS labels?
That's not a practical constraint. There are theoretical numbers and real numbers; let's live in reality. Remember how MPLS VPN is used...
Because MPLS VPNs are bound to interface / subinterfaces; one possible limit is the number of possible interfaces / subinterfaces in the router. On Cisco platforms, the maximum number of subinterfaces is constrained by the max number of software IDBs. Consider the ASR1000, which supports up to 65,535 IDBs. This means any one router cannot terminate more than 64K MPLS VPNs.
Furthermore, it's possible to dump more routes in a router than the FIB can hold... some platforms are limited by memory required (particularly if you put full / partial BGP tables in a VRF... that explodes your memory requirements). If people are doing reasonable things (i.e. not dumping many thousands of routes into a single VPN), then this is not a big problem.
All that said, real per-router MPLS Scalability numbers are not constrained by:
Note 1Routes are marked for inclusion in a specific MPLS VPN by setting a Route Target on the route; route targets are 48-bits wide, which gives you up to 2**48 possible route-targets