hypervisors networking: best practices for interconnecting...

89

Upload: dangdiep

Post on 17-Jul-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route
Page 2: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Hypervisors networking: best practices for interconnecting with Cisco switches BRKVIR-2019

Ramses Smeyers – Customer Support Engineer

Page 3: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Agenda

Page 4: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

What is this session about ?

Networking virtualization concepts

Hypervisor overview

– VMware vSphere ESXi 5.1

– Microsoft HyperV 3.0

– XenServer 6.1

4

Page 5: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Networking virtualization concepts

Page 6: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Hypervisor networking virtualization

VM-to-VM and VM to physical host traffic handled via software switch that lives in the hypervisor

VM-to-VM:

memory transfer

VM-to-physical:

physical adapter

6

Page 7: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Hypervisor networking virtualization – vSphere ESXi example

VMs don’t directly control networking hardware – x86 hw designed to be handled by only one device driver!

When a VM communicates with the outside world, it: – … passes the packet to its local device driver …

– … which in turns hands it to the hypervisor…

– … which in turns passes it to the physical NIC

ESX gives VMs several device driver options: – Strict emulation of Intel’s e1000 / e1000e

– VMware vmxnet/vmxnet3: paravirtualized!

VMs have MAC addresses that appear on the wire

7

Page 8: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Gratuitous ARP

8

Page 9: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Gratuitous ARP

9

Page 10: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Spanning-tree

Enable or disable ?

– No full switch traffic from 1 incoming uplink port will not be duplicated to a different uplink port spanning-tree port type edge [ trunk ]

spanning-tree portfast

With spanning-tree (vSwitch with 2 uplink ports)

– link-failure/fail back 30s block on port network disconnections

10

Page 11: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch independent / dependent

Independent no specific switch protocol / configuration is required

Dependent specific switch configuration is required (port-channel)

11

Page 12: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Hypervisor overview VMware vSphere ESXi

12

Page 13: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

vNetwork standard switch

Nic: Virtual

machine NIC

vmNic: Physical

server NIC

Portgroup != VLAN

vmNic {0,1} vSwitch

13

Page 14: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

vNetwork distributed switch

• Multiple distributed

switches can exist on 1

server

• Enterprise plus license is

required

14

Page 15: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

VMware vSphere ESXi

Route based on originating virtual port

Route based on IP hash

Route based on IP hash + LACP (vDS)

Route based on source MAC hash

Route based on physical NIC load (vDS)

Use explicit failover order

15

Page 16: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Uplink connectivity possibility's

16

vSS vDS

vDS (extra):

• Route based on physical NIC load

• Route based on IP hash + LACP

Page 17: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Load balancing

17

Per portgroup:

Route based on originating virtual port

Route based on IP hash

Route based on source MAC hash

Route based on physical NIC load (vDS)

Use explicit failover order

Per DVUplink:

Route based on IP hash + LACP (vDS)

Page 18: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Load balancing: vSS

18

Override vSwitch0 properties

Page 19: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Load balancing: vDS

19

Not configurable on the

DVUplinks

Page 20: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active / Standby / Unused

20

vmnic0

Ethernet1/17 is up

vminc1

Ethernet1/17 is up

vmnic2

GigabitEthernet1/0/5 is up, line

protocol is up (connected)

Page 21: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on originating virtual port

Default configuration

Even distribution of traffic if the number of vEth adapters > physical adapters

1 vEth can only be on 1 physical interface

Can go to 1 or multiple switches

21

VSS +

VDS

Page 22: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on originating virtual port – Switch configuration

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

22

interface GigabitEthernet1/0/5

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 49

switchport mode trunk

spanning-tree portfast

interface GigabitEthernet1/0/6

switchport trunk encapsulation dot1q

switchport trunk allowed vlan 49

switchport mode trunk

spanning-tree portfast

NXOS: spanning-tree port type

edge trunk

Page 23: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on originating virtual port - ESXi

23

Page 24: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash

Uplink based on a hash of source and destination IP address

Evenness of traffic distribution depends on the number of TCP/IP sessions and their characteristics

Physical switch sees the client MAC address on multiple ports.

Use of 802.3ad is required mode on

Needs to connect to 1 port-channel

24

VSS +

VDS

“Route based on IP

hash” does not work

with Cisco UCS-B

Fabric Interconnects

cannot do VPC

Page 25: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash – no port-channel

25

Page 26: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash – Switch configuration

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 1 mode on

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 1 mode on

interface Port-channel1

switchport access vlan 49

switchport mode access

spanning-tree portfast

26

bdsol-3750-05(config-if)#channel-group 1 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 1 mode

Page 27: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash – ESXi

27

Page 28: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash + LACP (vDS)

Uplink based on a hash of source and destination IP address

Evenness of traffic distribution depends on the number of TCP/IP sessions and their characteristics

Physical switch sees the client MAC address on multiple ports.

Use of 802.3ad is required active or passive

Needs to connect to 1 port-channel

28

VDS

Page 29: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash + LACP (vDS) - ESXi

29

Active – The port is in an active negotiating state, in which the

port initiates negotiations with remote ports by sending LACP

packets.

Passive – The port is in a passive negotiating state, in which

the port responds to LACP packets it receives but does not

initiate LACP negotiation.

Page 30: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash + LACP (vDS) - ESXi

30

Extra LACP_MgmtPort

Page 31: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on IP hash + LACP (vDS) – Switch configuration

interface Port-channel1

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 1 mode active

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 1 mode active

31

channel-group 1 mode passive

channel-group 1 mode active

ESXi

Switch

Active Passive

Active Yes Yes

Passive Yes No

Page 32: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on source MAC hash

Uplink chosen based on a hash of the source MAC address (VM)

1 vEth 1 physical adapter

Even distribution of traffic if random MAC addresses

Be careful with manual MAC address assignments

Can go to 1 or multiple switches

32

VSS +

VDS

Page 33: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on source MAC hash - ESXi

33

Page 34: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on source MAC hash – Switch configuration

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

34

Page 35: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on physical NIC load (vDS)

Initial placement based on “Route based on originating virtual port”

If RX or TX > 75% rebalance

VMkernel check runs every 30 seconds

35

VDS

Page 36: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on physical NIC load (vDS)

Initial placement based on “Route based on originating virtual port”

If RX or TX > 75% rebalance

VMkernel check runs every 30 seconds

MAC moves on switch layer

Can go to 1 or multiple switches

36

VDS

Page 37: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on physical NIC load (vDS)

37

Page 38: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Route based on physical NIC load (vDS)

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

38

No port-channel as

asymmetric return traffic

will be dropped

Page 39: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Use explicit failover order

Highest order uplink from the list of active adapters

Can go to 1 or multiple switches

39

VSS +

VDS

Page 40: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Use explicit failover order - ESXi

40

All MAC’s on 1 port

Page 41: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Use explicit failover order – Switch configuration

interface GigabitEthernet1/0/5

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/6

switchport access vlan 49

switchport mode access

spanning-tree portfast

41

Page 42: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

VMware conclusion

vSS

– Switch independent Route based on originating virtual port

– Switch dependent Route based on IP hash

vDS

– Switch independent Route based on physical NIC load

– Switch dependent Route based on IP hash + LACP

42

Page 43: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Hypervisor overview Microsoft Hyper-V 3.0 Windows 2012

43

Page 44: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Uplink connectivity possibility's

Single physical NIC or Teaming

44

Page 45: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Enable NIC Teaming

Pre Windows 2012 Teaming provided by vendor device drivers

Windows 2012 Teaming provided native by Windows

45

Page 46: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Microsoft Network Adapter Multiplexor Driver

46

Page 47: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Uplink connectivity details

All Address hash modes Hyper-V Port mode

Switch Independent Scenario 1 Scenario 2

Switch Dependent

(Static and LACP)

Scenario 3 and 4 Scenario 5 and 6

47

Address Hash comes in 3 flavors:

• 4-tuple hashing (Source and destination TCP ports, usually with IP

addresses, this is the default hashing mode)

• 2-tuple: If the ports aren’t available (encrypted traffic such as IPsec)

then it’ll go to 2-tuple where it uses Source and destination IP

address, with or without MAC addresses

• MAC address hash: If not IP traffic, then MAC addresses are

hashed

Page 48: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Static / LACP / Independent

Static teaming 802.3ad draft v1

LACP 802.1ax LACP, also referred to as 802.3ad

Independent No switch configuration required

48

Page 49: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Standby adapter

49

bdsol-3750-05#show int GigabitEthernet1/0/3

GigabitEthernet1/0/3 is up, line protocol is up (connected)

bdsol-3750-05#show int GigabitEthernet1/0/4

GigabitEthernet1/0/4 is up, line protocol is up (connected)

bdsol-3750-05#

Page 50: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Single physical NIC

Normal server connection

Possibility of trunk

Multiple MAC’s on 1 switch port

50

Page 51: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - All Address hash modes

Outbound traffic is spread across all active members

Can go to 1 or multiple switches

Observation: traffic sticks to 1 interface

51

Page 52: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - All Address hash modes

52

Observation: All traffic sticks to 1

interface

Page 53: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - All Address hash modes – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

53

For Your Reference

Page 54: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - Hyper-V Port mode

Outbound traffic is tagged with the port on the Hyper-V switch

All traffic with that port tag is sent on the same team member

1 MAC address will be fixed to 1 physical switch port

Can go to 1 or multiple switches

54

Page 55: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - Hyper-V Port mode

55

Page 56: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Independent - Hyper-V Port mode – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

56

For Your Reference

Page 57: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - All Address hash modes

Outbound traffic is spread across all active members

Inbound traffic will be distributed by the switch’s load distribution algorithm

Needs to connect to 1 port-channel

57

Page 58: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - All Address hash modes

58

Page 59: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - All Address hash modes – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode on

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode on

interface Port-channel2

switchport access vlan 49

switchport mode access

Static Teaming

59

bdsol-3750-05(config-if)#channel-group 2 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 2 mode

Page 60: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - All Address hash modes – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode active

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode active

interface Port-channel2

switchport access vlan 49

switchport mode access

LACP

60

bdsol-3750-05(config-if)#channel-group 2 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 2 mode

Page 61: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - Hyper-V Port mode

Outbound traffic is tagged with the port on the Hyper-V switch

All traffic with that port tag is sent on the same team member

1 MAC address will be fixed to 1 physical switch port

Inbound traffic will be distributed by the switch’s load distribution algorithm

Needs to connect to 1 port-channel

61

Page 62: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - Hyper-V Port mode

62

Page 63: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - Hyper-V Port mode – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode on

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode on

interface Port-channel2

switchport access vlan 49

switchport mode access

Static Teaming

63

bdsol-3750-05(config-if)#channel-group 2 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 2 mode

Page 64: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Switch Dependent - Hyper-V Port mode – Switch configuration

interface GigabitEthernet1/0/3

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode active

interface GigabitEthernet1/0/4

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 2 mode active

interface Port-channel2

switchport access vlan 49

switchport mode access

LACP

64

bdsol-3750-05(config-if)#channel-group 2 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 2 mode

Page 65: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Hyper-V conclusion

Switch independent

– Switch Independent - Hyper-V Port mode

Switch dependent

– Switch Dependent - Hyper-V Port mode

65

Page 66: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Hypervisor overview XenServer 6.1

66

Page 67: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Uplink connectivity possibilities

67

Single physical NIC or Bonding

LACP as of XenServer 6.1

Page 68: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Single physical NIC

Normal server connection

Possibility of trunk

Multiple MAC’s on 1 switch port

68

Page 69: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-active

balance-slb Server Load Balancing

1 VM is fixed to 1 physical adapter

Every 10 second traffic is evaluated and balanced over all physical adapters

MAC move

Can go to 1 or multiple switches

69

Page 70: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-active

70

Page 71: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-active

interface GigabitEthernet1/0/1

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/2

switchport access vlan 49

switchport mode access

spanning-tree portfast

71

For Your Reference

Page 72: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-passive

1 NIC is active, other NIC’s are passive waiting for adapter failure

Can goto 1 or multiple switches

72

Page 73: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-passive

73

Page 74: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Active-passive

interface GigabitEthernet1/0/1

switchport access vlan 49

switchport mode access

spanning-tree portfast

interface GigabitEthernet1/0/2

switchport access vlan 49

switchport mode access

spanning-tree portfast

74

For Your Reference

Page 75: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on IP and port of source and destination

Outgoing traffic will be hashed over multiple uplinks based on src/dest IP and port

Inbound traffic will be distributed by the switch’s load distribution algorithm

Needs to connect to 1 port-channel

75

Page 76: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on IP and port of source and destination

76

Page 77: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on IP and port of source and destination

interface GigabitEthernet1/0/1

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 3 mode active

interface GigabitEthernet1/0/2

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 3 mode active

interface Port-channel3

switchport access vlan 49

switchport mode access

77

bdsol-3750-05(config-if)#channel-group 3 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 3 mode

Page 78: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on source MAC address

1 VIF will use 1 outgoing physical interface (1 MAC per link)

1-1 mapping between VIF (virtual interface) and physical interface/switch port

Needs to connect to 1 port-channel

78

Page 79: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on source MAC address

79

Page 80: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

LACP with load balancing based on source MAC address

interface GigabitEthernet1/0/1

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 3 mode active

interface GigabitEthernet1/0/2

switchport access vlan 49

switchport mode access

spanning-tree portfast

channel-group 3 mode active

interface Port-channel3

switchport access vlan 49

switchport mode access

80

bdsol-3750-05(config-if)#channel-group 3 mode ?

active Enable LACP unconditionally

auto Enable PAgP only if a PAgP device is detected

desirable Enable PAgP unconditionally

on Enable Etherchannel only

passive Enable LACP only if a LACP device is detected

bdsol-3750-05(config-if)#channel-group 3 mode

Page 81: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

XenServer conclusion

Switch independent

– Active-Active

Switch dependent

– LACP with load balancing based on source MAC address

81

Page 82: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

Nexus 1000V

82

Page 83: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Nexus 1000V

Virtual Ethernet Module(VEM)

Replaces Vmware’s virtual switch

Enables advanced switching capability on the hypervisor

Provides each VM with dedicated “switch ports”

Virtual Supervisor Module(VSM)

CLI interface into the Nexus 1000V

Leverages NX-OS

Controls multiple VEMs as a single network device

83

Page 84: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Load balance possibilities

84

Page 85: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Nexus 1000V

Multi hypervisor switch (VMware, Hyper-V* and KVM*)

Layer 2 switching: VLANs, private VLANs, VXLAN, loop prevention, multicast, virtual PortChannels, LACP, ACLs

Network management: SPAN, ERSPAN, Netflow 9, vTracker, vCenter Server Plug-in

Enhanced QOS features

Cisco vPath

Security: DHCP Snooping, IP Source Guard, Dynamic ARP inspection, Cisco TrustSec SGA support

Cisco Virtual Security Gateway

Other virtual services (Cisco ASA 1000V, Cisco vWAAS, etc..)

85

Page 86: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Nexus 1000V Sessions

86

LTRVIR-2005 Deploying the Nexus 1000V on ESXi and Hyper-V

BRKVIR-2017 The Nexus 1000V on Microsoft Hyper-V: Expanding the Virtual Edge

BRKVIR-3013 Deploying and Troubleshooting the Nexus 1000v virtual switch

BRKVIR-2023 Cisco Nexus 1000V InterCloud based Hybrid Cloud Architectures and Approaches

Page 87: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Key take-aways

Understand the hypervisor’s load-balancing mechanisms

Align the configuration on hypervisor and networking layer

All adapters are always up

MAC moves are possible depending on the load balancing algorithm

Use the correct port-channel configuration (on/active/passive)

87

Page 88: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route

© 2013 Cisco and/or its affiliates. All rights reserved. BRKVIR-2019 Cisco Public

Maximize your Cisco Live experience with your

free Cisco Live 365 account. Download session

PDFs, view sessions on-demand and participate in

live activities throughout the year. Click the Enter

Cisco Live 365 button in your Cisco Live portal to

log in.

Complete Your Online Session Evaluation

Give us your feedback and you could win fabulous prizes. Winners announced daily.

Receive 20 Cisco Daily Challenge points for each session evaluation you complete.

Complete your session evaluation online now through either the mobile app or internet kiosk stations.

88

Page 89: Hypervisors networking: best practices for interconnecting ...d2zmdbbm9feqrf.cloudfront.net/2013/usa/pdf/BRKVIR-2019.pdf · Hypervisors networking: best practices for ... • Route