59
Converged Networking for Windows Server 2012 R2 Hyper-V Ben Armstrong DCIM319

DCIM319. NIC Management Storage Migration Cluster NIC

Embed Size (px)

Citation preview

Page 1: DCIM319. NIC Management Storage Migration Cluster NIC

Converged Networking for Windows Server 2012 R2 Hyper-V

Ben Armstrong DCIM319

Page 2: DCIM319. NIC Management Storage Migration Cluster NIC

• Virtualized Workloads• Hosting Infrastructure• Other Topics

Agenda

Page 3: DCIM319. NIC Management Storage Migration Cluster NIC

Historical Topology7 or more physical interfaces

Management

Storage times two…

Migration

Cluster

Virtual machine access times two

NIC

NIC

NIC

NIC

NIC

Management

Storage

Migration

Cluster

Team

NIC NIC

Virtual Switch

Page 4: DCIM319. NIC Management Storage Migration Cluster NIC

Converged Topology2 or more physical interfacesThey don’t have to be 10GB…

Network teaming

Virtual switch

Network QoS

Network isolation

vNIC

vNIC

vNIC

vNIC

vNIC

Management

Storage

Migration

Cluster

Team

NIC NIC

Virtual Switch

Page 5: DCIM319. NIC Management Storage Migration Cluster NIC

Converged Topology with RDMAFast, low latency, low overhead SMB

Leverages converged networking

Improved storage and migration perf

Can failover to converged

vNIC

vNIC

rNIC

rNIC

vNIC

Management

Storage

Migration

Cluster

Team

NIC NIC

Virtual Switch

Page 6: DCIM319. NIC Management Storage Migration Cluster NIC

Topology: converged plus RDMA, SR-IOVFast, low latency, low overhead guest networking

Leverages converged networking

Can target specific VMs

Can failover to converged

vNIC

vNIC

rNIC

rNIC

vNIC

Management

Storage

Migration

Cluster

Team

NIC NIC

Virtual Switch

Virtual Switch

NICSR-IOV

Enabled

Page 7: DCIM319. NIC Management Storage Migration Cluster NIC

virtualized workloadsdemands on networking

Page 8: DCIM319. NIC Management Storage Migration Cluster NIC

• Low demand• Lucky you…

• High demand• Throughput?• Latency?• Inbound, Outbound, Both?• North <-> South, East <-> West?• Availability?

Demands On Network

Page 9: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it?• The grouping of 1 or more NICs to form a larger bandwidth virtual NIC that doesn’t fail

unless every member of the team fails• The way to expose VLANs in native hosts (NOT in Hyper-V!!)

• Why use it?• Better utilization of bandwidth• Loss of a NIC or NIC cable doesn’t cut off communication

• How does it get along with others• Doesn’t get along with SR-IOV or RDMA (the bypass technologies)• Works with all other Windows Networking Features

• Recommended mode: Switch independent teaming with Dynamic Load Distribution

NIC Teaming (in the host OS)

Page 10: DCIM319. NIC Management Storage Migration Cluster NIC

• NetLbfo Powershell Cmdlets• [Add|Get|Remove|Set]- NetLbfoTeamMember• [Add|Get|Remove|Set]- NetLbfoTeamNic• [Get|New|Remove|Rename|Set]- NetLbfoTeam

• *-NetAdapter cmdlets also work (where applicable)

• Invoke the UI: LbfoAdmin.exe• Or use the link on Server Manager

NIC Teaming

Page 11: DCIM319. NIC Management Storage Migration Cluster NIC

Host NIC Teaming in VMM$1 = New-SCLogicalNetwork -Name "Team"

$2 = New-SCLogicalNetworkDefinition -Name "Team_0" -LogicalNetwork $1 -VMHostGroup (Get-

SCVMHostGroup -Name "All Hosts")

-SubnetVLan (New-SCSubnetVLan -VLanID 0)

Page 12: DCIM319. NIC Management Storage Migration Cluster NIC

Host NIC Teaming in VMM$1 = New-SCLogicalNetwork -Name "Team"

$2 = New-SCLogicalNetworkDefinition -Name "Team_0" -LogicalNetwork $1 -VMHostGroup (Get-

SCVMHostGroup -Name "All Hosts")

-SubnetVLan (New-SCSubnetVLan -VLanID 0)

$3 = New-SCNativeUplinkPortProfile -Name "Team" -

LogicalNetworkDefinition $2 -

LBFOLoadBalancingAlgorithm "HostDefault" -LBFOTeamMode

"SwitchIndependent"

Page 13: DCIM319. NIC Management Storage Migration Cluster NIC

Host NIC Teaming in VMM$1 = New-SCLogicalNetwork -Name "Team"

$2 = New-SCLogicalNetworkDefinition -Name "Team_0" -LogicalNetwork $1 -VMHostGroup (Get-

SCVMHostGroup -Name "All Hosts")

-SubnetVLan (New-SCSubnetVLan -VLanID 0)

$3 = New-SCNativeUplinkPortProfile -Name "Team" -

LogicalNetworkDefinition $2 -

LBFOLoadBalancingAlgorithm "HostDefault" -LBFOTeamMode

"SwitchIndependent"

$4 = New-SCLogicalSwitch -Name "Team" -

SwitchUplinkMode "Team"

New-SCUplinkPortProfileSet -Name "Team" -LogicalSwitch $4 -NativeUplinkPortProfile $3

Page 14: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it?• The grouping of 1 or 2 virtual NICs to form a larger bandwidth virtual NIC that doesn’t

fail unless every member of the team fails (i.e., every underlying switch loses connectivity)

• Why use it?• Better utilization of bandwidth• Loss of a NIC or NIC cable doesn’t cut off communication to the guest• Provides failure protection in a guest with SR-IOV VFs

• How does it get along with others• Works with all other Windows Networking Features in the guest

• Recommended mode: Switch independent teaming with Dynamic Load Distribution

NIC Teaming (in the guest OS)

Page 15: DCIM319. NIC Management Storage Migration Cluster NIC

Guest NIC Teaming in Hyper-VSet-VMNetworkAdapter

-AllowTeaming

Page 16: DCIM319. NIC Management Storage Migration Cluster NIC

Guest NIC Teaming in VMMNew/Set-SCVirtualNetworkAdapterNativePortProfile

-AllowTeaming<Boolean>

Page 17: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• A way to spread traffic processing across multiple processors• RSS for host NICs (vNICs) and SR-IOV VFs• VMQ for guest NICs (vmNICs)

• Why use it• Because multiple processors are better than one processor• vRSS provides near line rate to a VM on existing hardware

• How does it get along with others• RSS and VMQ each work with all other features except . . .• RSS and VMQ can’t be used at the same time on the same NIC

VMQ, RSS, and vRSS

Page 18: DCIM319. NIC Management Storage Migration Cluster NIC

Host VMq Information and ConfigurationPS C:\> Get-NetAdapterVmq

Name InterfaceDescription Enabled BaseVmqProcessor MaxProcessors NumberOfReceive Queues---- -------------------- ------- ---------------- ------------- ---------------Fabric Uplink Logical Switch Microsoft Network Adapter Mult... True 0:0 126SLOT 7 Port 2 Intel(R) Ethernet Server Adapt... True 0:0 16 63SLOT 7 Port 1 Intel(R) Ethernet Server Ada...#2 True 0:0 16 63

Page 19: DCIM319. NIC Management Storage Migration Cluster NIC

Host VMq Information and ConfigurationPS C:\> Get-NetAdapterVmq

Name InterfaceDescription Enabled BaseVmqProcessor MaxProcessors NumberOfReceive Queues---- -------------------- ------- ---------------- ------------- ---------------Fabric Uplink Logical Switch Microsoft Network Adapter Mult... True 0:0 126SLOT 7 Port 2 Intel(R) Ethernet Server Adapt... True 0:0 16 63SLOT 7 Port 1 Intel(R) Ethernet Server Ada...#2 True 0:0 16 63

63 + 63 = 126

Page 20: DCIM319. NIC Management Storage Migration Cluster NIC

Host VMq Information and ConfigurationPS C:\> Get-NetAdapterVmq

Name InterfaceDescription Enabled BaseVmqProcessor MaxProcessors NumberOfReceive Queues---- -------------------- ------- ---------------- ------------- ---------------Fabric Uplink Logical Switch Microsoft Network Adapter Mult... True 0:0 126SLOT 7 Port 2 Intel(R) Ethernet Server Adapt... True 0:0 16 63SLOT 7 Port 1 Intel(R) Ethernet Server Ada...#2 True 0:0 16 63

PS C:\> Disable-NetAdapterVmq

PS C:\> Enable-NetAdapterVmq

Page 21: DCIM319. NIC Management Storage Migration Cluster NIC

Guest VMq Configuration in Hyper-VSet-VMNetworkAdapter

-VmqWeight <0 -100>

*Weight of 0 == disabled*Weight of 1-100 == enabled

*Default is 100

Page 22: DCIM319. NIC Management Storage Migration Cluster NIC

Guest VMq Configuration in VMMNew/Set-SCVirtualNetworkAdapterNativePortProfile

-EnableVmq

*Default is enabled

Page 23: DCIM319. NIC Management Storage Migration Cluster NIC

Guest View of Virtual RSS Get-NetAdapterRssEnable-NetAdapterRssDisable-NetAdapterRss

Page 24: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• A way to get the NIC to segment a packet for you• The sender sends a large packet to the NIC, the NIC sends multiple

packets that fit within the MTU (packets are not marked as segments)

• Why use it• Reduces stack processing

• How does it get along with others• LSO gets along with all other Windows Networking Features

Large Send Offload (LSO)

Page 25: DCIM319. NIC Management Storage Migration Cluster NIC

Host Large Send Offload InformationPS C:\> Get-NetAdapterLso

Name Version V1IPv4Enabled IPv4Enabled IPv6Enabled---- ------- ------------- ----------- -----------vEthernet (Storage4) LSO Version 2 False True TruevEthernet (Storage3) LSO Version 2 False True TruevEthernet (Storage2) LSO Version 2 False True TruevEthernet (Storage1) LSO Version 2 False True TruevEthernet (Migration) LSO Version 2 False True TruevEthernet (Cluster) LSO Version 2 False True TruevEthernet (Fabric Managment... LSO Version 2 False True TrueFabric Managment Logical Sw... LSO Version 2 False True TrueFabric Uplink Logical Switch LSO Version 2 False True True10GBCopper-1 LSO Version 2 False True True10GBFibre-2 LSO Version 2 True True True10GBFibre-1 LSO Version 2 True True True1GBLOM-4 LSO Version 2 False True True1GBLOM-3 LSO Version 2 False True TrueRDMA-2 LSO Version 2 True True TrueRDMA-1 LSO Version 2 True True True1GBLOM-1 LSO Version 2 False True True1GBLOM-2 LSO Version 2 False True True10GBCopper-2 LSO Version 2 False True True

Page 26: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• A way to send large data units unbroken• Usually used for storage but can be used for anything

• Why use it• Reduces packet processing at every hop (savings estimated in the 10-

25% range)

• How does it get along with others• Has a slightly lower error detection probability• Requires knowledge of path-MTU• Otherwise gets along with all other Windows Networking Features

Jumbo Frames

Verifying Path MTU…C:\> ping -l 9014 <host>

Page 27: DCIM319. NIC Management Storage Migration Cluster NIC

Guest View of Jumbo FramesSet-NetAdapterAdvancedProperty

-RegistryKeyword

"*JumboPacket" -RegistryValue

9014

Page 28: DCIM319. NIC Management Storage Migration Cluster NIC

Topology with SR-IOV

vNIC

vNIC

vNIC

vNIC

vNIC

Management

Storage

Migration

Cluster

Team

NIC NIC

Virtual Switch

Virtual Switch

NIC

SR-IOV Enabled

Page 29: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• SR-IOV is a way to bypass the host OS and process the networking traffic directly in

the VM• RSS is the way the SR-IOV bypass traffic can get distributed to different processors in

the VM enabling higher throughput

• Why use it• Because with SR-IOV and RSS we’ve seen over 39 Gbps of traffic handled in a VM

(coming from a single 40 Gbps NIC Port)

• How does it get along with others• SR-IOV doesn’t play well with NIC Teaming (host) or other switch features• Plays well with Guest NIC Teaming

• ACLs, VM-QoS, etc., will prevent SR-IOV from being used• Should only be used in trusted VMs• Can’t have more VMs than NIC VFs/vPorts*

SR-IOV and RSS

Page 30: DCIM319. NIC Management Storage Migration Cluster NIC

Parent Partition

SR-IOVVirtual machine

Network stack

VM NIC

Virtual function (VF)

Hyper-V Extensible Switch

ExtensionsRouting Filtering

ACLs

SR-IOV network adapter VF

Virtual machine

Network stack

VM NIC

VM BUS

Page 31: DCIM319. NIC Management Storage Migration Cluster NIC

Parent Partition

SR-IOV + RSSVirtual machine

Network stack

VM NIC

Virtual function (VF)

Hyper-V Extensible Switch

ExtensionsRouting Filtering

ACLs

SR-IOV network adapter VF

Virtual machine

Network stack

VM NIC

VM BUS

Page 32: DCIM319. NIC Management Storage Migration Cluster NIC

SR-IOV Switch Configuration in Hyper-VNew-VMSwitch –EnableIov

Get-VMSwitch | filter-tableName, IovSupport,

IovSupportReasons

Page 33: DCIM319. NIC Management Storage Migration Cluster NIC

SR-IOV Virtual NIC Configuration in Hyper-VSet-VMNetworkAdapter

-IovWeight <0-100>

Set-VMNetworkAdapter-IovInterruptModeration

Default, Adaptive, Off, Low,

Medium, and High

-IovQueuePairsRequested <1 – Max Uint>

Page 34: DCIM319. NIC Management Storage Migration Cluster NIC

SR-IOV Switch Configuration in VMMNew-SCLogicalSwitch

-EnableSriov

Page 35: DCIM319. NIC Management Storage Migration Cluster NIC

SR-IOV Port Profile Configuration in VMMNew/Set-SCVirtualNetworkAdapterNativePortProfile

-EnableSriov

Page 36: DCIM319. NIC Management Storage Migration Cluster NIC

SR-IOV Guest Configuration in VMMGet-SCPortClassification |

where {$_.Name -eq “SR-IOV"}

Set-SCVirtualNetworkAdapter-PortClassification

Page 37: DCIM319. NIC Management Storage Migration Cluster NIC

• Low demand• Lucky you…

• High demand• Throughput? • Use NIC Teaming, SR-IOV, vRSS/Guest RSS, VMQ, LSO, Jumbo frames

• Latency?• Use SR-IOV, VMQ, vRSS/Guest RSS

• Inbound, Outbound, Both?• Inbound: SR-IOV, VMQ• Outbound: NIC Teaming, SR-IOV, LSO, Jumbo frames

• North <-> South, East <-> West?• North-South demands are generally lower than East-West. Optimize East-West.

• Availability?• NIC Teaming

Demands On Network - revisited

Page 38: DCIM319. NIC Management Storage Migration Cluster NIC

hosting infrastructuredemands on networking

Page 39: DCIM319. NIC Management Storage Migration Cluster NIC

• Services of the network• Bandwidth management (QoS)• Virtual machine mobility• Live migration• Storage migration

• SMB configuration

Demands On Network

Time Session Code Title

Wednesday

3:15 – 4:30 DCIM-B337 File Server Networking for a Private Cloud Storage Infrastructure in Windows Server 2012 R2

Page 40: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• Two forms: Software QoS (vmQoS) and Hardware QoS (DCB)• Software QoS provides per-VM (per vSwitch port) bandwidth

management for better sharing• Hardware QoS provides per-traffic class reservations• Software QoS and Hardware QoS cannot be used at the same time on

the same NIC

• Why use it• Software: To manage bandwidth allocations per VM or vNIC• Hardware: To ensure storage and data traffic play well together

• How does it get along with others• QoS can’t be used when SR-IOV is used

Quality of Service

Page 41: DCIM319. NIC Management Storage Migration Cluster NIC

• Watch out for . . . • Software QoS and Hardware QoS cannot be used at the same time on the same NIC• In Software QoS (vmQoS) • If weights are used, the weights should be such that the lowest weight is not

extremely different from the highest weight• If absolute bandwidth is used, the bandwidth should be such that the lowest

bandwidth is not orders of magnitude less than the highest bandwidth

• Once a switch is created in a mode (weight, absolute bandwidth) it can’t be changed.• Weights are better than absolute• Can’t migrate between systems where one is weights-based and the other is absolute• Migration will be blocked if absolute values can’t be honored

• DCB• For best results make sure PFC/ETS is on throughout your datacenter network

Quality of Service - Caution

Page 42: DCIM319. NIC Management Storage Migration Cluster NIC

Software QoS in Hyper-VNew-VMSwitch

-MinimumBandwidthMode<Absolute, Default,

None, Weight>

Set-VMSwitch-

DefaultFlowMinimumBandwidthAbsolute-

DefaultFlowMinimumBandwidthWeight

Set-VMNetworkAdapter-MaximumBandwidth-MinimumBandwidthAbsolute-MinimumBandwidthWeight

Page 43: DCIM319. NIC Management Storage Migration Cluster NIC

Software QoS in VMMNew/Set-SCVirtualNetworkAdapterNativePortProfile

-MaximumBandwidth-MinimumBandwidthAbsolute-MinimumBandwidthWeight

ALSO

Add/Set-SCVMHost-NetworkPercentageReserve

Page 44: DCIM319. NIC Management Storage Migration Cluster NIC

Enabling Hardware QoS in Hyper-VSet-VMNetworkAdatper

-IeeePriorityTag <On, Off>

Page 45: DCIM319. NIC Management Storage Migration Cluster NIC

Enabling Hardware QoS in VMMNew/Set-SCVirtualNetworkAdapterNativePortProfile

-AllowIeeePriorityTagging<Boolean>

Page 46: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• Enables migration of VM’s across Hyper-V servers• Three different transport options: TCP, Compression, SMB

• Why use it• TCP – reduced CPU utilization• Compression – faster migrations• SMB – multiple interfaces (SMB Mulitchannel), reduced CPU with SMB

Direct• Simultaneous migrations – reduces bandwidth demand

• How does it get along with others• Perfectly… except it can be a bandwidth hog

Live migration

Page 47: DCIM319. NIC Management Storage Migration Cluster NIC

Live Migration Settings in Hyper-V

Set-VMHost -MaximumVirtualMachineMigrations -

VirtualMachineMigrationPerformanceOptionTCPIP, Compression, SMB

Page 48: DCIM319. NIC Management Storage Migration Cluster NIC

Live Migration Settings in VMMAdd/Set-SCVMHost

-EnableLiveMigration-LiveMigrationMaximum-

LiveStorageMigrationMaximum-MigrationAuthProtocol-

MigrationPerformanceOption-MigrationSubnet

Page 49: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• Enables live migration of virtual machine storage• Traffic flows through the Hyper-V server• Maximum concurrent migrations configurable

• Why use it• Reduces bandwidth demands

• How does it get along with others• Perfectly… Just keep in mind it needs bandwidth

Storage migration

Page 50: DCIM319. NIC Management Storage Migration Cluster NIC

Storage Migration Settings in Hyper-VSet-VMHost

-MaximumStorageMigrations

Page 51: DCIM319. NIC Management Storage Migration Cluster NIC

Storage Migration Settings in VMMAdd/Set-SCVMHost

-LiveMigrationMaximum

Page 52: DCIM319. NIC Management Storage Migration Cluster NIC

• What is it• Quality of Service for SMB

• Why use it• Enables bandwidth management of SMB connections• Live migration• Provisioning• Virtual machines

• How does it get along with others• Works with SMB Multichannel• Works with SMB Direct• Works with RDMA

SMB Bandwidth Limits

Page 53: DCIM319. NIC Management Storage Migration Cluster NIC

SMB Bandwidth LimitAdd-WindowsFeature FS-SMBBW

Set-SmbBandwidthLimit -Category LiveMigration-BytesPerSecond 1000MB

Set-SmbBandwidthLimit -Category VirtualMachine

-BytesPerSecond 5GB

Page 54: DCIM319. NIC Management Storage Migration Cluster NIC

Key message: manage your bandwidth

hosting infrastructuredemands on networking

Page 55: DCIM319. NIC Management Storage Migration Cluster NIC

• Network Recommendations for a Hyper-V Cluster in Windows Server 2012• http://technet.microsoft.com/en-us/library/dn550728.aspx

• Windows Server 2012 R2 NIC Teaming (LBFO) Deployment and Management• http://www.microsoft.com/en-us/download/details.aspx?id=40319

• Windows Server 2012 NIC Teaming (LBFO) Deployment and Management• http://www.microsoft.com/en-us/download/details.aspx?id=30160

• What’s New in Windows Server 2012 R2 Networking• http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/MDC-B216

Additional Content and Documentation

Page 56: DCIM319. NIC Management Storage Migration Cluster NIC

Related contentBreakout Sessions (session codes & titles)

Hands-on Labs (session codes & titles)

Find Me Later At...

Required Slide*delete this box once you have listed content that is related to your session.

Speakers, please list the other Breakout Sessions and Virtualised Hands-on Labs that relate to your session.

Also indicate where and when they can find you, to continue the discussion. If you’re going to be at Hub Happy Hour (5.30-6.30pm Wed and Thu, let them know)

Page 57: DCIM319. NIC Management Storage Migration Cluster NIC

Resources

TechNet & MSDN FlashSubscribe to our fortnightly newsletter

http://aka.ms/technetnz http://aka.ms/msdnnz

TechNet Virtual LabsFree Virtual Hands-on Labs

http://aka.ms/ch9nz

Microsoft Virtual AcademyFree Online Learning

http://aka.ms/mva http://aka.ms/technetlabs

Sessions on Demand

Page 58: DCIM319. NIC Management Storage Migration Cluster NIC

Complete your session evaluation now and win!

Page 59: DCIM319. NIC Management Storage Migration Cluster NIC

© 2014 Microsoft Corporation. All rights reserved.Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.