20
TechNet Windows Server 2012 Hyper-V Networking Carlos Mayol y Oscar Bonaque Premier Field Engineers (PFE’s) Microsoft TechNet

Windows Server 2012 Hyper-V Networking

  • Upload
    deiter

  • View
    154

  • Download
    0

Embed Size (px)

DESCRIPTION

Windows Server 2012 Hyper-V Networking. Carlos Mayol y Oscar Bonaque Premier Field Engineers (PFE’s) Microsoft. TechNet. Server Virtualization Hyper-V 2012. ----- Updated to 8000. Server Virtualization. Server Virtualization Hyper-V 2012. NIC Teaming and Hyper-V. - PowerPoint PPT Presentation

Citation preview

Page 1: Windows Server 2012 Hyper-V Networking

TechNet

Windows Server 2012 Hyper-V NetworkingCarlos Mayol y Oscar BonaquePremier Field Engineers (PFE’s)Microsoft

TechNet

Page 2: Windows Server 2012 Hyper-V Networking

TechNet

Serv

er V

irtua

lizat

ion

Hype

r-V 2

012

----- Updated to 8000

Page 3: Windows Server 2012 Hyper-V Networking

Serv

er V

irtua

lizat

ionSe

rver

Virt

ualiz

ation

Hy

per-V

201

2

Page 4: Windows Server 2012 Hyper-V Networking

TechNet

NIC Teaming and Hyper-VDo not require Switch configuration

Static or Dynamic Teaming (LACP)Requires Switch configuration

Switc

h De

pend

ent

Switc

h In

depe

nde

nt

Page 5: Windows Server 2012 Hyper-V Networking

TechNet

NIC Teaming and Hyper-V (Balancing Modes Summary)

Address Hash Hyper-V portSwitch Independent

Best for: Active/Standby and Teaming in a VM(Acceptable for all cases)

Best for: Hyper-V *

Switch Dependent

Best for: Native Acceptable for: Hyper-V

Best for: Hyper-V • Sends on all active members, receives on all active members, traffic from

same port always on same NIC• Each Hyper-V port will be bandwidth limited to not more than one team member’s

bandwidth• Each VM (Hyper-V port) is associated with a single NIC, this also allows maximum

use of dVMQs for better performance over all

Page 6: Windows Server 2012 Hyper-V Networking

TechNet

Host Network configurationsConverged Option1

10GbE each

VMNVM1

10GbE eachSt

orag

e

Live

Mig

ratio

n

Clus

ter

Man

age

Non-converged

1GbE 1GbE 1GbE 10GbEHBA/10GbE

Stor

age

Live

Mig

ratio

n

Clus

ter

Man

age

VM1 VMN

Converged Option2VMNVM1

Stor

age Liv

e M

igra

tion

Clus

ter

Man

age

RDMA Traffic 10GbE each

Non converged configuration can be accomplish with multiple physical NICs or using partition software at hardware level, normally equipped on Blade chassis systems like:• Dell NPAR• HP FLEXfabric• Cisco FEX

Page 7: Windows Server 2012 Hyper-V Networking

TechNet

Converged NetworksQoS Windows Server 2012• Bandwidth management• Classification and tagging• Priority based flow control

Bandwidth mechanisms:• DCB (Data Center Bridging)• QoS Software Hyper-V Switch

Bandwidth options:• Absolute: bits per second• Weight: an integer in the range between 1 and

100 (Minimum bandwidth)Best Practices for Minimum Bandwidth configurations:1. Keep the sum of the weights around or under 1002. Assign a relatively large weight to critical workloads even if they don’t require that percentage

of bandwidth3. Gap the weight assignment to differentiate the level of service to be provided (5, 3, 1)4. Make sure that traffic that is not specifically filtered out is also accounted for with a weight

assignment

Page 8: Windows Server 2012 Hyper-V Networking

Serv

er V

irtua

lizat

ion

Hype

r-V 2

012

Demo: Converged Networks

Page 9: Windows Server 2012 Hyper-V Networking

TechNet

Dynamic Switch PortsBy default, every vSwitch is

placed in the default Primordial pool for theEthernet resource pool

Dynamic Switch Port functionality allows a VM to request to connect to one or more virtual switches in a poll of virtual switches

Primordial pool

vEthernet (Public) vEthernet (DMZ)

Public pool DMZ pool

vEthernet (Public) vEthernet (DMZ)

Resource pool configuration using PowerShell (New-VMResourcePool)

Two-part process1. Create the Ethernet resource pool2. Add the vSwitch to the resource

poolNote: Properly configured Ethernet resource pools on Hyper-V hosts should allow for a proper automatic connection when a VM migrates because the virtual machine network configuration is now part of the virtual machine configuration

Page 10: Windows Server 2012 Hyper-V Networking

Serv

er V

irtua

lizat

ion

Hype

r-V 2

012

Demo: Dynamic Switch Ports

Page 11: Windows Server 2012 Hyper-V Networking

TechNet

Virtual Switch Expanded Functionality VM Settings

Network Adapter

Advanced Features

ARP/ND Poisoning (Spoofing) Protection DHCP/Router Guard Network Traffic

MonitoringPer VM

Bandwidth Management QoS

Port Mirroring (Source or destination)

Netmon inside the VM required

Pseudo QoS to limit VM Network adapter bandwidth

MAC Spoofing protectionIP6 ND Spoofing attacks protection

Prevents VMs acting as DHCP servers or sent Router Advertisements

Can be managed using Hyper-V powershell module

Set-VMNetworkAdapter -ComputerName localhost -VMName VM1 -PortMirroring Source

Set-VMNetworkAdapter -Name “Network Adapter“ –VMName VM -MaximumBandwidth 20000000

Set-VMNetworkAdapter -ComputerName localhost -VMName VM1 -MacAddressSpoofing On

Set-VMNetworkAdapter -ComputerName localhost -VMName VM1 -DhcpGuard On

Page 12: Windows Server 2012 Hyper-V Networking

TechNet

Per VM Bandwidth Management QoSSwitch bandwidth mode is defined during creation

• VM bandwidth modes, where?• UI = Absolute values (Mpbs)• PS = Absolute or Weight

This is an outbound traffic limit!

Page 13: Windows Server 2012 Hyper-V Networking

Serv

er V

irtua

lizat

ion

Hype

r-V 2

012

Demo: VM Bandwidth limitVM Network Monitor

Page 14: Windows Server 2012 Hyper-V Networking

TechNet

Dynamic Virtual Machine Queue

Requires support from NIC vendors

Supported on

VMQ spreads interrupts for virtual environments the way RSS does for native workloads

Dynamic VMQ reassigns available queues based on changing networking demands of the VMs

All Hyper-V customers should be using VMQ on their 10Gb NICs. Customers without VMQ and with I/O loads in VMs may see each VM’s CPU0 run hot.Can be configured with Powershell: Get-NetAdapterVmq and NetAdapterVmq

Page 15: Windows Server 2012 Hyper-V Networking

TechNet

Single Root I/O Virtualization (SR-IOV) Remaps interrupts and provides

Direct Memory Access to virtual machines

Requires support in the Hyper-V server chipset (BIOS firmware) and in a Network Adapter (NIC) (driver + firmware) in the host

Virtual Functions (VF) in the SR-IOV-capable adapter are mapped directly to the virtual machine

SR-IOV is supported in VM mobility scenarios

Reduces Network Latency

Reduces CPU overheadVM network traffic bypasses the vSwitchVery similar to basic RDMA functionality

Not enabled if a destination Host does not support SR-IOV

HostRoot

PartitionHyper-V Switch

SR-IOV Physical NIC

Virtual Machine

Virtual Function

RoutingVLAN Filtering

Data Copy

Page 16: Windows Server 2012 Hyper-V Networking

TechNet

Network Isolation

Physical separation

Physical switches and adapters for each type of traffic

Layer 2:VLAN

Tag is applied to packets which is used to control the forwarding

Network Virtualization

Isolation through encapsulation. Independence from physical address space.

Layer 2:Private VLAN (PVLAN)

Primary and Secondary tags are used to isolate clients while still giving access to shared services.

Page 17: Windows Server 2012 Hyper-V Networking

TechNet

Network Isolation Vlan challengesVL

ANs t

oday

Limited scalability. Up to 4094 VLANs

VLANs cannot span multiple subnets

Cumbersome configuration when VMs need to be moved within the Datacenter can result in network outage

Physical Switch support limitations

Page 18: Windows Server 2012 Hyper-V Networking

TechNet

Private VLAN (PVLAN) Isolation

Microsoft

Secondary VLANs

Primary VLAN

Isolated

Promiscuous

Community

VLAN pairs used to provide isolation with small numbers of VLANs.

Page 19: Windows Server 2012 Hyper-V Networking

TechNet

Network Virtualization

Microsoft

• Customer Address (CA) space is based on their network infrastructure

• Provider Address (PA) space is assigned by a hoster based on the physicaladdress space in the datacenter (not visible to the VM)

Page 20: Windows Server 2012 Hyper-V Networking

Questions?