In the first part of this post (http://www.definethecloud.net/inter-fabric-traffic-in-ucs) I discuss server traffic flows within a UCS system focusing on End-Host mode (EH mode.) EH mode is the default and recommended mode for the majority of UCS implementations, but the system can also be used in ‘Switch mode’ which causes the Fabric Interconnects to operate as standard L2 switches. This post will focus on server-to-server communication in switched mode. For more information on when/where to use switch mode and the recommended upstream connectivity options see Brad Hedlund’s post in HD video: http://bradhedlund.com/2010/06/22/cisco-ucs-networking-best-practices/ and the white paper he co-authored on the subject: http://bradhedlund.com/2010/12/01/cisco-nexus-7000-connectivity-solutions-for-cisco-ucs/. Both of these are must reads for anyone designing UCS solutions as well as great traffic flow information on the Nexus 7000 as a whole.
Note: Remember that switched-mode is rarely recommended and has become less important with the 12/2010 release of UCSM 1.4 which allows for ‘Appliance’ and ‘Storage’ ports in EH Mode. For more information on the new port types see Dave Alexander’s post on the new feature: http://www.unifiedcomputingblog.com/?p=187.
The only time I would recommend using switch mode is when locally switch traffic is required within the UCS system itself. Lets take a quick look at the typical UCS connectivity diagram:
In the diagram above we see the basic connectivity for a UCS system. In the default EH mode the only connections supported between the Fabric interconnects are the cluster links shown which do not carry data traffic. This means that all switching from Fabric A to Fabric B must traverse the uplinks and be handled by an upstream device.
When the Fabric interconnects are moved into Switched Mode data links are now supported between Fabric Interconnect A and B. Lets take a look at how this works.
The only change in the above drawing is that I’ve replaced the cluster links with 10GE port-channel carrying data traffic. In this diagram and the following I have removed the cluster links for visual clarity, but they would still be required and follow the same rules as in EH mode. With port-channel in place it is possible for data to be switched between the Fabric Interconnects, there are however some considerations.
When the Fabric Interconnects are placed in Switch Mode they begin to operate as traditional switches, this includes participating in Spanning-Tree Protocol (STP) for loop avoidance. In the case of UCS the STP protocol used is Per-VLAN Rapid Spanning Tree+ (PVRST+.) PVRST+ is a faster converging version of traditional spanning tree that operates independently on a per VLAN basis. PVRST+ is commonly used, standards based and backward compatible with other STP versions. With Switch Mode running the Fabric Interconnects will send and receive Bridge Protocol Data Units (BPDU) and block ports based on the network topology information in those BPDUs. Now let’s take a closer look at how this looks within UCS.
In the diagram above we can see that moving to switch mode and connecting the Fabric Interconnects together via data links we’ve created loops which will have to be closed by STP. STP utilizes a loop avoidance algorithm based on a root bridge which acts as the base of the network topology and a loop free branch topology is built providing each ‘leaf’ one path to the root by blocking redundant links.
Best practices dictate that the root bridge be manually configured as a highly available switch typically in the aggregation or core layer, for performance and stability reasons. With this in mind we can assume that the UCS Fabric Interconnects will not be the STP root bridge. This means that our UCS network diagram will look similar to the following diagram.
In the above diagram we can see an example where the top left upstream switch is the root for a given VLAN. In order to avoid looped behavior STP will block the links between the two Fabric Interconnects. This means that no traffic will pass between the Fabric Interconnects for that VLAN and all Fabric A to B communication will be passed upstream the same way it would in EH mode. This will occur for any VLANs that exist in both the upstream network and the Fabric Interconnects. This behavior would be the same regardless of which upstream switch were acting as the Root Bridge for that VLAN. This means that even in switch mode there is no Fabric A to Fabric B switching handled locally for common VLANs. Common VLANs is the key phrase in that sentence, let’s take a look at how we get Fabric A to B switching handled locally.
In the above diagram we see that VLAN 10 is common upstream and on the Fabric Interconnects. Assuming best practices are in place VLAN 10’s Root Bridge will be upstream and therefore VLAN 10 will be blocked on the link between Fabric Interconnects. VLAN 20 on the other hand only exists within the UCS system and therefore there is no loop in place or requirement for blocked links. For VLAN 20 one of the Fabric interconnects will operate as the root bridge and traffic will be forwarded across the links. This UCS only VLAN can be used for server to server communication, one example is depicted in the following diagram.
In the example above we see web access on VLAN 10 incoming from the upstream network. This VLAN is blocked across the connections between Fabric Interconnects because it is common upstream and within UCS. VLAN 20 is used for the web servers to access the database servers and is only needed within the UCS system. Because this VLAN only exists internally traffic is forwarded across the links between Fabric interconnects and is switched locally. Local VLANs can be used to utilize the high-bandwidth low-latency of the UCS switching system for server to server communication.
Summary:
Utilizing switched mode enables inter-fabric traffic to be switched locally but there are design considerations that must be addressed. When deciding between modes for these purposes remember that UCS is a very low-latency system with sub 7us switching latency which means that with the appropriate switch hardware upstream total latency for round-trip inter-fabric traffic will still be below 40-50us or faster depending on hardware. Also remember that intra-fabric traffic (A to A or B to B) is always switched locally sub 7us regardless of mode. In most cases it is best to design your applications to utilize the same fabric if they communicate frequently rather than designing a switched mode solution.
Joe –
Not a bad post but there’s a few clarifications. UCS uses Rapid-PVST and only Rapid-PVST+ which is significantly better than PVST+. Also, when you enable switched mode it is a radio button configuration – that means you cannot change any of the Rapid-PVST configuration like you could on a regular switch so for the root bridge election administrators really need to pay attention to the upstream parameters to ensure proper election is occurring. Lastly, I would also pay attention to the NIC failover scenarios that switched mode introduces as depending on the topology, you may have a STP election delay when devices failover and potentially blackhole traffic. For cases where customers are looking at intra-fabric switching, I would suggest active/passive teaming – or even better fabric failover in UCS – and elect the NICs to prefer one side for the fabric communication as you note in your entry, the 6100’s are low latency 10G linerate switch and should be able to handle most low latency scenarios.
Ryan
Great stuff Ryan, thanks for the feedback!
Amazing issues here. I’m very satisfied to look your post.
Thanks a lot and I’m having a look forward to contact you.
Will you kindly drop me a mail?
Great blog here! Also your site loads up very fast!
What host are you using? Can I get your affiliate link to your host?
I wish my web site loaded up as fast as yours lol
I used to be suggested this web site through my cousin. I’m no longer certain whether or
not this submit is written through him as no one else understand such specified
about my problem. You are wonderful! Thank you!
Heya i’m for the primary time here. I found this board
and I to find It truly helpful & it helped me out a lot.
I am hoping to give something again and help others such as you helped me., http://goo.gl/dVucqo
Hmm is anyone else encountering problems with the pictures on this blog loading?
I’m trying to determine if its a problem on my end or
if it’s the blog. Any feed-back would be greatly appreciated.,
http://tinyurl.com/q6caasm
I am regular reader, how are you everybody? This paragraph posted at this website is genuinely fastidious., http://tinyurl.com/onsv5t6
Right now it looks like Movable Type is the best
blogging platform out there right now. (from what I’ve read) Is that
what you are using on your blog?, http://goo.gl/Zj5gKv
I’m now not sure the place you are getting your info, however good topic.
I must spend some time studying much more or figuring out more.
Thank you for fantastic information I was searching for this information for my mission., http://tinyurl.com/mxfuxuh