cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3383
Views
8
Helpful
5
Replies

Typical Number of VLANs in a Data Center - PLEASE Give Feedback

visitor68
Level 4
Level 4

Hello - would like feedback from folks regarding their experience with total number of VLANs in an enterprise data center. Of course, this number varies tremendously, but I can say that in over 10 years of consulting, I have never run into an enterprise data center (and I have worked on very large environments in Fortune 500 type companies), with more than a couple hundred VLANs tops.

I raise this question because of a discussion recently had about VLAN limitations on switches. Most switches support 4K VLANs, which is an incredibly large number and a requirement I have never run into. So, this limitation really involves the size of a single L2 domain, regardless of how many there are in total in a data center.

The bottom line is this:

The limitation of the number of VLANs that a switch will support is only applicable within a L2 domain. Once the L3 boundary is reached, all bets are off - a new domain begins and VLAN numbers can be repeated. So, BARRING Service Provider and IaaS-provider networks, how big is a single L2 domain really going to be such that one would need thousands of VLANs? True, with TRILL, Fabric Path, etc, the L2 domain can and does span larger than it did before, but 4K VLANs is still huge for the average enterprise data center, even with virtualization.

For example, the IETF standard for TRILL does not recommend L2 environments larger than 1,000 physical servers anyway. So, if I did have such a large L2 domain, and if each one of those servers had a 30:1 VM-to-physical machine ratio, that would give 30,000 servers total. Assuming a 1:1 relationship between subnet and VLAN (which is typical), one thousand /27 VLANs would handle all those servers. Now, how many times have you seen a data center where all the subnets are that small??? The reality is that a few hundred VLANs would cover that.

THOUGHTS? EXPERIENCES?

5 Replies 5

Leo Laohoo
Hall of Fame
Hall of Fame

30K VM servers???  That's huge!

Firstly, IP addressing.  I would, in my opinion, cut down the size of your Layer 2 domain.  I would probably segment the servers into a /23 or /22 subnets.  Don't see any reason why /27 VLAN subnet when you have that large amount of clients involved. 

Now, how many times have you seen a data center where all the subnets are that small???

I have never seen an enterprise-grade DC with a /27 subnet for servers alone.  I've seen /23 and I've seen /22.  And that's it.  I've never seen a /21 and I hope not to.

Leo, I think you totally missed the point of my post. Of course 30,000 VMs is huge and of course I would never use 1000 /27 VLANs!. Thats the whole point Im making - that even with exaggerated and highly unlikely and improbable numbers as those, 4K VLANs would STILL not be needed. I even rhetorically ask in my post, "How how many times have you seen a data center where all the subnets are that small???"

darren.g
Level 5
Level 5

visitor68 wrote:

Hello - would like feedback from folks regarding their experience with total number of VLANs in an enterprise data center. Of course, this number varies tremendously, but I can say that in over 10 years of consulting, I have never run into an enterprise data center (and I have worked on very large environments in Fortune 500 type companies), with more than a couple hundred VLANs tops.

I raise this question because of a discussion recently had about VLAN limitations on switches. Most switches support 4K VLANs, which is an incredibly large number and a requirement I have never run into. So, this limitation really involves the size of a single L2 domain, regardless of how many there are in total in a data center.

The bottom line is this:

The limitation of the number of VLANs that a switch will support is only applicable within a L2 domain. Once the L3 boundary is reached, all bets are off - a new domain begins and VLAN numbers can be repeated. So, BARRING Service Provider and IaaS-provider networks, how big is a single L2 domain really going to be such that one would need thousands of VLANs? True, with TRILL, Fabric Path, etc, the L2 domain can and does span larger than it did before, but 4K VLANs is still huge for the average enterprise data center, even with virtualization.

For example, the IETF standard for TRILL does not recommend L2 environments larger than 1,000 physical servers anyway. So, if I did have such a large L2 domain, and if each one of those servers had a 30:1 VM-to-physical machine ratio, that would give 30,000 servers total. Assuming a 1:1 relationship between subnet and VLAN (which is typical), one thousand /27 VLANs would handle all those servers. Now, how many times have you seen a data center where all the subnets are that small??? The reality is that a few hundred VLANs would cover that.

THOUGHTS? EXPERIENCES?

I always try (and not always successfully) to keep server subnets having less than 100 devices (especially if they're Windows servers) simply to limit layer 3 broadcast traffic. So the layer 2 VLAN's are corrospondingly smaller (and more prevalent).

Saying that, I've *never* built a data center switch with more than 1000 VLAN's configured in it. I think the 4k limit in most Cisco switches is simply because it's a nice, neat, binary number boundary (4096) more than because anyone expects the switch to actually *have* that many VLAN's configured. I've gone close (I remember one which had about 900 VLAN's on it), but never over that.

Although, I have to admit I've never worked in a really big cloud environment (like Akamai or Amazon), so it's probably the requirements for those be vastly different from my experience - although I can't imagine a scenario like you postulated with 30000 VM's!

Cheers

I agree with visitor. For a normal enterprise, with good design, you will never require that many vlans. I know of a customers environment where platform and apps team felt for the longest time that every business application required it own Vlan. And for a while they were allowed to live out their dream. Net effect was some 700 plus vlan ID's.

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The   Author of this posting offers the information contained within this   posting without consideration and with the reader's understanding that   there's no implied or expressed suitability or fitness for any purpose.   Information provided is for informational purposes only and should not   be construed as rendering professional advice of any kind. Usage of  this  posting's information is solely at reader's own risk.

Liability Disclaimer

In   no event shall Author be liable for any damages whatsoever (including,   without limitation, damages for loss of use, data or profit) arising  out  of the use or inability to use the posting's information even if  Author  has been advised of the possibility of such damage.

Posting

I've only bumped into one data center that was running out of VLANs with the 4K limit, however they were not a normal Enterprise datacenter but a hosting provider data center that also had more than one physical site linked with L2.

Review Cisco Networking products for a $25 gift card