Home > Blogs > VMware vSphere Blog


vSphere 5.1 – VDS New Features – Link Aggregation Control Protocol (LACP)

After the holiday break I am happy to be back and want to continue where I left off in terms of blog posts. Before I do that let me first wish you all a Happy New Year!!! End of the last year, I did couple of posts providing some technical details on the new vSphere Distributed Switch (VDS) features released as part of vSphere 5.1. In this post I will discuss the new Link Aggregation Control Protocol (LACP) feature. While discussing this feature, I will also talk about its configuration parameters and scenarios in which this teaming option will provide you better throughput and better utilization of uplinks (physical NICs).

Link aggregation allows you to combine two or more physical NICs together and provide higher bandwidth and redundancy between a host and a switch or between two switches. Whenever you want to create a bigger pipe to carry any traffic or you want to provide higher reliability you can make use of this feature. However, it is important to note that the increase in bandwidth by clubbing the physical NICs depends on type of workloads you are running and type of hashing algorithm used to distribute the traffic across the aggregated NICs.

Broadly there are two types of link aggregation approaches one is static and another is dynamic. Static link aggregation is configured individually on hosts or switches and no automatic negotiations happen between the two end points. This link aggregation approach doesn’t detect any cabling or configuration mistakes and any switch port failures that don’t result in loss of link status. Dynamic link aggregation, also called as LACP, on the other hand addresses the concern that static link aggregation has and thus provides better operational experience by detecting configuration or link errors and automatically re-configuring the aggregation channel. This is possible because of the heart-beat mechanism Active LACP has between the two endpoints.

With the previous releases of vSphere, VMware supported static link aggregation option, which worked with external physical switches with similar capabilities. For example, while connecting to a Cisco switch a “static ether channel” configuration on the physical switch is required. Another step user have to perform on the virtual switch side is to configure IP hash as their teaming algorithm on the port groups.

What does this IP hash configuration has to do in this Link aggregation setup? IP hash algorithm is used to decide which packets get sent over which physical NICs of the link aggregation group (LAG). For example, if you have two NICs in the LAG then the IP hash output of Source/Destination IP and TCP port fields (in the packet) will decide if NIC1 or NIC2 will be used to send the traffic. Thus, we are relying on the variations in the source/destination IP address field of the packets and the hashing algorithm to provide us better distribution of the packets and hence better utilization of the links.

It is clear that if you don’t have any variations in the packet headers you won’t get better distribution. An example of this would be storage access to an nfs server from the virtual machines. On the other hand if you have web servers as virtual machines, you might get better distribution across the LAG. Understanding the workloads or type of traffic in your environment is an important factor to consider while you use link aggregation approach either through static or through LACP feature.

In this release to enable LACP feature, users have to follow similar steps as in static ether channel configuration, where they enable the feature on the physical switch and then configure it on the VDS.

Let’s now take a look at the LACP configuration steps on a VDS for a host with 2 – 10 gig uplinks shown in the figure below.

Example Design – Host with two 10 gig physical NICs

Part of the LACP configuration is performed at the uplink port group level and other part on the port group (yellow) shown in the figure above. On the uplink port group level enable LACP Active or Passive mode and then on the port groups enable IP hash algorithm as part of the teaming configuration. The following screen shots provide step by step instructions on how to configure LACP feature:

1) Select the uplink port group under the vSphere Distributed Switch

Configuration Step 1

2) Click Edit to change the properties of the uplink port group

Configuration Step 2

3) Select LACP

Configuration Step 3

4) Through the drop down menu of Status Enable LACP.

Configuration Step 4

5) You have a choice to enable Active or Passive mode for the enabled LACP.

Configuration Step 5

6) Until this point we completed one part of the LACP configuration. The other part is to configure IP hash on the port groups as noted during the last uplink port group configuration step.

Configuration Step 6

7) Select the port group and click edit to change the teaming configuration.

Configuration Step 7

8) Select Teaming and failover.

Configuration Step 8

9) Then through the drop down menu of Load balancing algorithm choose “Route based on IP hash”

Configuration Step 9

You should repeat the steps 6,7, 8, and 9 for the other port groups in your deployment.

The following are some of the things you should note about the LACP feature.

1)   We only allow you to create one LACP LAG per VDS and per host. For the users who have 2 ten-gig type of deployments this is not an issue, but for those who have multiple one gig NICs and want to create multiple LAGs this could be a limitation.

2)   There is limit of 32 uplinks in a LAG. I am sure this is more than enough.

3)   There is support for only one load balancing algorithm (IP hash)

4)   You can’t provide LAG as a destination for the port mirror traffic but you can choose one of the physical NIC within the LAG as a destination.

5)  You should also follow the recommendations from the Physical switch vendor when it comes to configuring LACP.

Please let me know if you have any specific questions on this feature.

Get notification of these blogs postings and more VMware Networking information by following me on Twitter:  @VMWNetworking

20 thoughts on “vSphere 5.1 – VDS New Features – Link Aggregation Control Protocol (LACP)

  1. Good article. Worth mentioning that LCAP or static link aggregation is of no use to any customers who have adopted 10Gb to reduce the cabling sprawl and who use iSCSI. With only a pair of NICs, iSCSI multipathing policies means that the NICS cannot be aggregated.

  2. Pingback: Designing your vMotion networking - Choose link aggregation over Multi-NIC vMotion? - frankdenneman.nl

  3. Regarding the iSCSI statement above…..does this hold true if we are only using software based iSCSI initiators….i.e., Microsoft iSCSI initiator within our Windows VM’s. If our VM’s are controlling the iSCSI traffic via the MS iSCSI initiator, are we still subject to the caveats you mention?

    • Hi Brian,

      What Lee mentioned in his comment only applies to users who use multipathing feature of iSCSI to provide higher bandwidth.
      In that scenario LACP and static ether channel should not be used.

      However, if you are not configuring multipathing then LACP still can be used. So, in your scenario where there is one iSCSI initiator per host LACP works fine.
      Let me know if this clarifies or you have any further questions.

      • Brian’s question related to using “Microsoft iSCSI initiator within our Windows VM’s”, i.e. the VM guest itself accesses iSCSI storage, not the ESX Host.

        • Hi Lionel,
          All traffic coming out from a VM is treated as virtual machine traffic by the ESX host.
          Even the microsoft iSCSI initiator generated traffic on a VM is considered as VM traffic.

          The question here then is do you have multiple vnics on the VM and multipathing is enable on that VM ?
          This will not have any impact on how LACP is configured on physical NICs.
          So the multipathing restriction mentioned earlier doesn’t apply in such deployments

  4. Vyenkatesh – how strict is the “There is support for only one load balancing algorithm (IP hash)” requirement?

    If I have a blade server with two uplinks and enable LACP, can I use IP Hash on an NFS port group, LBT on a VM port group and alternative A/U virt-port-id multi-nic-vMotion on another PG?

  5. Pingback: How Many Link Aggregation Groups (LAGs) on a Host ? | VMware vSphere Blog - VMware Blogs

  6. Howdy! I realize this is somewhat off-topic but I had to ask.
    Does operating a well-established website like yours
    take a lot of work? I am brand new to blogging but
    I do write in my diary daily. I’d like to start a blog so I can share my experience and views online. Please let me know if you have any ideas or tips for new aspiring bloggers. Thankyou!

  7. Thanks on your marvelous posting! I actually enjoyed reading it,
    you happen to be a great author.I will make certain to bookmark your blog and will eventually come back down the road.

    I want to encourage one to continue your great writing, have a nice holiday weekend!

  8. Vyenkatesh,

    Thanks for posting this. We were trying to use Ether Channel in our environment and the only thing we were aware was configuring ip hash in the port group. Ether channel was configured on the physical switch but we were not aware of LACP. If we enable LACP on our existing VDS with hosts connected would it impact production (would there be an outage)? Or is this something you can do on a VDS connected to production hosts that are being used without affecting anything? Also can you configure LACP only in web client? thanks again!!

  9. Hi, this weekend is pleasant in favor of me, because this point in
    time i am reading this fantastic informative piece of writing here at my
    home.

  10. I’m very pleased to find this page. I want to to thank you for your time for this wonderful read!! I definitely savored every part of it and I have you book-marked to check out new stuff in your web site.

    My web page – Idakoos Coupon Code (Gina)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>