Network Virtualization
Network Virtualization
Network Virtualization
lunedì 17 dicembre 12
Agenda
• Introduction
• External network virtualization
§ What
to be virtualized ?
• Network device virtualiza1on
• Network data path virtualiza1on
§ How to be virtualized ?
• Protocol approach
• Internal
network virtualization
§ Traditional
approach
§ New techniques
§ Case study
lunedì 17 dicembre 12
•Introduction
•External
network virtualization
•Internal
network virtualization
•Best
Practices
with
VMware
NETWORK VIRTUALIZATION
lunedì 17 dicembre 12
Related Concepts
5
¨ Overlay Networks
¤ Application layer virtual networks
¤ Not flexible enough
lunedì 17 dicembre 12
Network Virtualization Model
6
¨ Business Model
¨ Architecture
¨ Design Principles
¨ Design Goals
lunedì 17 dicembre 12
Business Model
7
Players Relationships
¨ Infrastructure Providers (InPs)
¤ Manage underlying physical networks
End$User$
¨ Service Providers (SPs)
¤ Create and manage virtual networks
SLA$
¤ Deploy customized end-to-end services
Broker$ Service$Provider$
EIA$
¨ End Users
¤ Buy and use services from different service NPA$
providers Infrastructure$
SIA$
Provider$
¨ Brokers
¤ Mediators/Arbiters IIA$
lunedì 17 dicembre 12
Architecture
Architecture
8
lunedì 17 dicembre 12
Design Principles
9
Design Principles
9
Concurrence of multiple heterogeneous
¨
virtual networks Hierarchy of Roles
Concurrence of multiple heterogeneous
¤ Introduces diversity
virtual networks Hierarchy of Roles
Introduces diversity
Service Provider N
Recursion of virtual networks Infrastructure
¨
¤ Opens theofdoor
Recursion for networks
virtual network virtualization
Virtual Network N
Provider N+1
economics
Opens the door for network virtualization …
economics Service Provider 1
Inheritance of architectural attributes Virtual Network 1
Infrastructure
¨
¤ Promotes
Inheritancevalue-addition
of architectural attributes
Provider 2
Promotes value-addition
Revisitation of virtual nodes Service Provider 0
Infrastructure
¨
¤ Revisitation
Simplifies network
of virtualoperation
nodes and
Virtual Network 0
Provider 1
management
Simplifies network operation and
management Infrastructure
Provider 0
lunedì 17 dicembre 12
Design Goals
10
¨ Flexibility
¤ Service providers can choose
n arbitrary network topology,
n routing and forwarding functionalities,
n customized control and data planes
¨ Scalability
¤ Maximize the number of co-existing virtual networks
¤ Increase resource utilization and amortize CAPEX and OPEX
¨ Programmability
¤ Ofnetwork elements e.g. routers
¤ Answer “How much” and “how”
¤ Easy and effective without being vulnerable to threats
¨ Heterogeneity
¤ Networking technologies
n Optical, sensor, wireless etc.
¤ Virtual networks
lunedì 17 dicembre 12
Definition (Sort of)
14
lunedì 17 dicembre 12
Introduc(on
• What is computer network ?
§ A computer
network, often simply referred to as a network, is a
collection
of computers and devices interconnected
by
communications
channels that facilitate
communications
among
users and allows users to share resources.
• Why should we study network ?
§ Computer
networks are used for communication
and coordination,
as well as commerce by large as well as small organizations.
§ Computer
networks and the Internet is a vital part of business
infrastructure.
lunedì 17 dicembre 12
Network Protocol and Model
• Network protocol
§ Rules and procedures governing transmission
between computers
§ Used to identify communicating
devices, secure attention
of
intended
recipient, check for errors and re-‐transmissions
§ All computers using a protocol
have to agree on how to
code/decode the message, how to identify errors, and steps to take
when there are errors or missed communications
Computer
System Protocol
Delivery Protocol
Packaging Protocol
lunedì 17 dicembre 12
Network Protocol and Model
lunedì 17 dicembre 12
Network Types
• LANs and WANs
§ Local area network
• Network of computers and other devices within a limited distance
• Uses star, bus or ring topologies
• Network interface cards in each device specifies transmission rate,
message structure, and topology
• Network opera1ng system routes and manages communica1ons and
coordinates network resources
§ Wide area network
• Network of computers spanning broad geographical distances
• Switched or dedicated lines
• Firms use commercial WANs for communica1on
lunedì 17 dicembre 12
Network Architecture
• Packet switching
§ Message/Data
is divided into Qixed or variable length packets
§ Each packet is numbered and sent along different
paths to the
destination
§ Packets
are assembled
at the destination
§ Useful for continued
message transmission
even when part of the
network path is
broken
lunedì 17 dicembre 12
Network Architecture
Connect two networks
lunedì 17 dicembre 12
Network Architecture
Connect mul(ple networks
lunedì 17 dicembre 12
Network Architecture
Connect mul(ple networks
lunedì 17 dicembre 12
Network Architecture
Connect mul(ple networks
lunedì 17 dicembre 12
Network Architecture
The simple view of Internet
lunedì 17 dicembre 12
Network Design Rules
• Hierarchical approach
§ TrafQic
is aggregated
hierarchically
from an access layer into a layer of
distribution
switches and Qinally
onto
the network core.
§ A hierarchical
approach
to
network design has proven to
deliver the best results in terms of
optimizing
scalability, improving
manageability,and maximizing
network availability.
lunedì 17 dicembre 12
Network Virtualiza(on
• Two categories :
§ External
network virtualization
• Combining many networks, or parts of networks, into a virtual unit.
§ Internal
network virtualization
• Providing network-‐like func1onality to the soGware containers on a single
system.
lunedì 17 dicembre 12
•Introduction
•External
network virtualization
•Internal
network virtualization
•Best
Practices
with
VMware
NETWORK VIRTUALIZATION
lunedì 17 dicembre 12
Network Virtualiza(on
• External network virtualization in different layers :
§ Layer1
• Seldom virtualiza1on implement in this physical data transmission layer.
§ Layer2
• Use some tags in MAC address packet to provide virtualiza1on.
• Example, VLAN.
§ Layer3
• Use some tunnel techniques to form a virtual network.
• Example, VPN.
§ Layer4 or higher
• Build up some overlay network for some applica1on.
• Example, P2P.
lunedì 17 dicembre 12
Network Virtualiza(on
• Two virtualization
components :
§ Device virtualization
• Virtualize physical devices in the
network
§ Data path virtualization
• Virtualize communica1on path Data Path
between network access points
Router
Switch
22
lunedì 17 dicembre 12
Network Virtualiza(on
• Device virtualization
§ Layer2 solution § Layer 3 solution 3
• Divide physical switch into
• VRF technique
mul1ple logical switches.
( Virtual Rou1ng and Forwarding )
• Emulate isolated rou1ng tables
within one physical router.
lunedì 17 dicembre 12
Network Virtualiza(on
• Data path virtualization
§ Hop-‐to-‐hop
case
• Consider the virtualiza1on
applied on a single hop data-‐
path.
§ Hop-‐to-‐cloud
case
• Consider the virtualiza1on
tunnels allow mul1-‐hop data-‐
path.
24
lunedì 17 dicembre 12
Network Virtualiza(on
• Protocol approach
§ Protocols
usually used to approach
data-‐path
virtualization.
§ Three implementations
• 802.1Q – implement hop to hop data-‐path virtualiza1on
• MPLS ( Mul?protocol Label Switch ) – implement router and switch
layer virtualiza1on
• GRE (Generic Rou?ng Encapsula?on) – implement virtualiza1on among
wide variety of networks with tunneling technique.
25
lunedì 17 dicembre 12
Network Virtualiza(on
• 802.1Q
§ Standard by IEEE 802.1
§ Not encapsulate the
original frame
§ Add a 32-‐bit Qield
between MAC address and
EtherTypes Qield
• ETYPE(2B): Protocol
iden1fier
• Dot1Q Tag(2B): VLAN
number, Priority code
CE: Customer Edge router
PE: Provider Edge router
26
lunedì 17 dicembre 12
Network Virtualiza(on
• MPLS ( Multiprotocol Label Switch )
§ Also classiQied as layer 2.5 virtualization
§ Add one or more labels into package
§ Need Label Switch Router(LSR)to read MPLS header
28
lunedì 17 dicembre 12
Network Virtualiza(on
• Example of MPLS
5
4 VN 1
2
7 9
8
lunedì 17 dicembre 12
Network Virtualiza(on
• GRE ( Generic Routing Encapsulation )
§ GRE is a tunnel protocol
developed by CISCO
§ Encapsulate
a wide variety of network layer protocol
§ Stateless
property
• This means end-‐point doesn't keep informa1on about the state
Built Tunnel
30
lunedì 17 dicembre 12
•Introduction
•External
network virtualization
•Internal
network virtualization
•Best
Practices
with
VMware
NETWORK VIRTUALIZATION
lunedì 17 dicembre 12
Internal Network Virtualiza(on
• Internal
network virtualization
§ A single system is conQigured
with containers, such as the Xen
domain,
combined with hypervisor control
programs
or pseudo-‐
interfaces
such as the VNIC, to create
a “network in a box”.
§ This solution
improves overall efQiciency of a single system by
isolating
applications
into separate
containers
and/or pseudo
interfaces.
§ Virtual
machine and virtual switch :
• The VMs are connected logically to each other so that they can send data
to and receive data from each other.
• Each virtual network is serviced by a single virtual switch.
• A virtual network can be connected to a physical network by associa1ng
one or more network adapters (uplink adapters) with the virtual switch.
lunedì 17 dicembre 12
Network Virtualiza(on
• Internal
network virtualization in different layers :
§ Layer1
• Hypervisor usually do not need to emulate the physical layer.
§ Layer2
• Implement virtual L2 network devices, such as switch, in hypervisor.
• Example, Linux TAP driver + Linux bridge.
§ Layer3
• Implement virtual L3 network devices, such as router, in hypervisor.
• Example, Linux TUN driver + Linux bridge + IP-‐tables.
§ Layer4 or higher
• Layer 4 or higher layers virtualiza1on is usually implemented in guest OS.
• Applica1ons should make their own choice.
lunedì 17 dicembre 12
Network Virtualiza(on
• Desirable properties of network virtualization :
§ Scalability
• Easy to extend resources in need
• Administrator can dynamically create or delete virtual network connec1on
§ Resilience
• Recover from the failures
• Virtual network will automa1cally redirect packets by redundant links
§ Security
• Increased path isola1on and user segmenta1on
• Virtual network should work with firewall soGware
§ Availability
• Access network resource any1me
18
lunedì 17 dicembre 12
Internal Network Virtualiza(on
• Properties of virtual switch
§ A virtual switch works much like a physical Ethernet switch.
§ It detects which VMs are logically
connected to each of its virtual
ports and uses that information
to forward
trafQic
to the correct
virtual
machines.
• Typical virtual network conQiguration
§ Communication
network
• Connect VMs on different hosts
§ Storage
network
• Connect VMs to remote storage system
§ Management
network
• Individual links for system administra1on
lunedì 17 dicembre 12
Internal Network Virtualiza(on
Network virtualiza(on example form VMware
lunedì 17 dicembre 12
Tradi(onal Approach
• KVM
(Kernel-‐based
Virtual
Machine)
is
a
full
virtualization
solution
for
Linux
on
x86
hardware
containing
virtualization
extensions
(Intel
VT
or
AMD-‐V).
It
consists
of
a
loadable
kernel
module,
kvm.ko,
that
provides
the
core
virtualization
infrastructure
and
a
processor
speciQic
module,
kvm-‐intel.ko
or
kvm-‐amd.ko
§ KVM focus on CPU and memory virtualization,
so IO virtualization
framework
is completed by QEMU project.
§ In QEMU, network interface
of virtual machines connect to host by
TUN/TAP driver and Linux bridge.
§ Work with TUN/TAP and Linux Bridge :
• Virtual machines connect to host by a virtual network adapter, which is
implemented by TUN/TAP driver.
• Virtual adapters will connect to Linux bridges, which play the role of
virtual switch.
lunedì 17 dicembre 12
Tradi(onal Approach
• TUN/TAP driver
§ TUN and TAP are virtual network kernel drivers :
• TAP (as in network tap) simulates an Ethernet device and it operates with
layer 2 packets such as Ethernet frames.
• TUN (as in network TUNnel) simulates a network layer device and it
operates with layer 3 packets such as IP.
lunedì 17 dicembre 12
Tradi(onal Approach
lunedì 17 dicembre 12
Tradi(onal Approach
• Linux bridge
§ Bridging
is a forwarding
technique used in packet-‐switched
computer
networks.
§ Unlike routing,
bridging makes no assumption
about where in a
network a particular
address is located.
§ Bridging
depends on Qlooding
and examination
of source addresses
in received packet headers to locate
unknown devices.
§ Bridging
connects multiple
network
segments
at the data link layer
(Layer 2) of the OSI model.
lunedì 17 dicembre 12
Tradi(onal Approach
TAP/TUN driver + Linux Bridge
lunedì 17 dicembre 12
New Techniques
• In Xen system
§ Since
implemented with para-‐virtualization
type, guest OS load
modiQied
network interface
drivers.
§ ModiQied
network interface drivers communicate
with virtual
switches in Dom0, which act as TAP in traditional
approach.
§ Virtual
switch in Xen can be
implemented
by Linux bridge
or work with other
optimization.
lunedì 17 dicembre 12
New Techniques
Detail in Xen System
lunedì 17 dicembre 12
New Techniques
• Some performance issues :
§ Page remapping
• Hypervisor remap memory page
for MMIO.
§ Contexts
witching
• Whenever packets send, induce
one context switch from guest to
Domain 0 to drive real NIC.
§ Software
bridge management
• Linux bridge is a pure soGware
implementa1on.
§ Interrupt
handling
• When interrupt occur, induce one
context switch again.
lunedì 17 dicembre 12
New Techniques
• Improve Xen performance by software
§ Large
effective
MTU
§ Fewer packets
§ Lower per-‐byte cost
lunedì 17 dicembre 12
New Techniques
• Improve Xen performance by hardware
§ CDNA (ConcurrentDirect Network Access) hardware
adapter
§ Remove driver domain
from data and interrupts
§ Hypervisor only responsible for virtual interrupts
and assigning
context
to guest OS
lunedì 17 dicembre 12
Case Study
lunedì 17 dicembre 12
Network Virtualiza(on Summary
• Virtualization in layers
§ Usually in Layer 2 and Layer 3
• External network virtualization
§ Layer2
• 802.1q
§ Layer3
• MPLS, GRE
• Internal
network virtualization
§ Layer 2
• TAP/TUN + Linux bridge
§ Layer3
• Virtual switch, CDNA
lunedì 17 dicembre 12
IaaS Case Study
• IaaS open source project – Eucalyptus
§ Elastic
Utility Computing
Architecture
for Linking Your Programs
to Useful Systems
lunedì 17 dicembre 12
IaaS Case Study
Server Virtualiza(on
lunedì 17 dicembre 12
IaaS Case Study
• System Component :
§ Cloud Controller(CLC)
• Dispatch user request to some clusters.
§ ClusterController(CC)
• Determine enough resource for virtual machine deployment.
§ Node Controller (NC)
• Run user’s virtual machines.
lunedì 17 dicembre 12
IaaS Case Study
Network Virtualiza(on
lunedì 17 dicembre 12
NAT-‐PT
• Network
Address
Transla1on
Port
Transla1on
or
NAT-‐PT
is
a
technique
that
allows
the
transla1on
of
local
network
addresses
or
the
internal
IP
addresses
(used
within
an
organiza1on)
into
globally
unique
IP
addresses
that
help
iden1fy
an
online
resource
in
a
unique
manner
over
the
Internet.
– the
local
network
address
is
in
the
range
of
private
addresses
as
defined
by
RFC
1918
and
RFC
4193.
10.0.0.0
–
10.255.255.255
16,777,216
172.16.0.0
–
172.31.255.255
1,048,576
16
192.168.0.0
–
192.168.255.255
65,536
256
– These
addresses
are
characterized
as
private
because
they
are
not
globally
delegated,
meaning
they
are
not
allocated
to
any
specific
organiza1on,
and
IP
packets
addressed
by
them
cannot
be
transmihed
onto
the
public
Internet.
Anyone
may
use
these
addresses
without
approval
from
a
regional
Internet
registry
(RIR).
• The
process
is
also
referred
to
as
Network
Masquerading
or
the
Na1ve
Address
Transla1on.
Network
Address
Transla1on
allows
mul1ple
resources
within
an
organiza1on
or
connected
to
a
local
LAN
to
use
a
single
public
IP
address
to
access
the
Internet.
lunedì 17 dicembre 12
NAT
usage
• The
idea
of
Network
Address
Transla1on
is
very
simple.
– It
essen1ally
abstracts
internal
addressing
from
the
global
IP
addressing
used
over
the
Internet.
This
abstrac1on
allows
helps
the
network
resources
to
get
over
a
shortage
of
the
address
space
by
mapping
rela1vely
few
real
IP
addresses
to
the
abundant
local
IP
addresses
created
locally
by
the
Proxy
server
for
addressing
purposes.
– It
allows
the
use
of
different
addresses
over
the
local
and
global
level
and
local
sharing
of
IP
addresses
over
the
Internet.
lunedì 17 dicembre 12
Example
1:
when
the
web
service
is
on
the
public
network
80.88.10.2 192.168.0.1
default
gateway default
gateway
Virtual
Switch
HOST Router
NAT-‐PT
192.168.0.2
Local
Address
lunedì 17 dicembre 12
Example
2:
when
the
web
services
are
behind
the
NAT
192.168.0.3
80.88.10.2 192.168.0.1 Local
Address
default
gateway default
gateway
Virtual
Switch
HOST Router
NAT-‐PT
192.168.0.3
80.88.10.2 192.168.0.1 Local
Address
default
gateway default
gateway
Virtual
Switch
Public
TCP/ Private
Port
HOST Port UDP
Router
NAddress
AT-‐PT
80 TCP 192.168.0.2 80
2. NAT
creates
complica1ons
in
the
func1oning
of
Tunneling
protocols.
Any
communica1on
that
is
routed
through
a
Proxy
server
tends
to
be
compara1vely
slow
and
prone
to
disrup1ons.
Certain
cri1cal
applica1ons
offer
no
room
for
such
inadequacies.
Examples
include
telemedicine
and
teleconferencing.
Such
applica1ons
find
the
process
of
network
address
transla?on
as
a
boJleneck
in
the
communica?on
network
crea1ng
avoidable
distor1ons
in
the
end-‐to-‐end
connec1vity.
3. NAT
acts
as
a
redundant
channel
in
the
online
communica?on
over
the
Internet.
The
twin
reasons
for
the
widespread
popularity
and
subsequent
adop1on
of
the
network
address
transla1on
process
were
a
shortage
of
IPv4
address
space
and
the
security
concerns.
Both
these
issues
have
been
fully
addressed
in
the
IPv6
protocol.
As
the
IPv6
slowly
replaces
the
IPv4
protocol,
the
network
address
transla1on
process
will
become
redundant
and
useless
while
consuming
the
scarce
network
resources
for
providing
services
that
will
be
no
longer
required
over
the
IPv6
networks.
lunedì 17 dicembre 12
IaaS Case Study
• Network architecture :
§ Bridge ( Virtual Switch )
• Make virtual machines on one node share physical NICs.
§ DHCP
• Map virtual MAC addresses of VMs to private IPs in the LAN.
§ NAT
• Forward the packages to public network (WAN).
§ IP/MAC mapping table
• IP addresses are assigned by Eucalyptus.
• MAC addresses are assigned by hypervisor.
• This mapping table is maintained by Eucalyptus system.
lunedì 17 dicembre 12
•Introduction
•External
network virtualization
•Internal
network virtualization
•Best
Practices
with
VMware
(Guy Brunsdon, VMware, Inc.)
NETWORK VIRTUALIZATION
lunedì 17 dicembre 12
Agenda
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Why Do We Need a Virtual Switch?
Non-Virtualized Virtualized
ESX host
…
Access Ports
(single VLAN L2 Virtual Switch
—no tagging) provides fanout and
policy control to each VM
(consistent with non-
Per Host virtualized environment)
network visibility Access Ports Virtual Switch Layer 2 Virtual Access
from each port (single VLAN switch
—no tagging)
VLAN
Layer 2 Access Trunks
switches
Layer 2
VLAN
Trunks
switches
VLAN
Distribution Trunks
and core
Distribution
and core
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Anatomy of Virtual Networking
Service Console
ESX Host (management port)
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vNetwork Distributed Switch (vDS)
ESX Host 1 ESX Host 2 ESX Host 3
A B G H C D I J E F K L
Service vmkernel Service vmkernel Service vmkernel
Console Console
… Console
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Virtual Switch Options with vSphere 4
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vNetwork Standard Switch: A Closer Look
vSS defined on a per host basis from Home à Inventory à Hosts and Clusters.
vNetwork Standard
Switch (vSwitch)
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vNetwork Distributed Switch: A Closer Look
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
ESX Virtual Switch: Capabilities
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
ESX Virtual Switch: Forwarding Rules
MAC a MAC b
MAC c
But not forward
vSwitch
vSwitch to vSwitch
vSwitch
Uplink to Uplink
ESX vSwitch will not create loops
in the physical network
And will not affect Spanning Tree
(STP) in the physical network
Physical
Switches
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Spanning Tree Protocol (STP) Considerations
Spanning Tree Protocol used to
VM0 VM1
create loop-free L2 tree topologies
in the physical network
MAC a MAC b
Some physical links put in ―blockingǁ‖
state to construct loop-free tree
vSwitch ESX vSwitch does not participate
in Spanning Tree and will not create
loops with uplinks
vSwitch drops
BPDUs
àESX Uplinks will not block and
Physical
always active (full use of all links)
Switches
Switches sending
BPDUs every 2s to Recommendations for Physical Network Config:
construct and 1. Leave Spanning Tree enabled on physical network
maintain Spanning
Tree Topology and ESX facing ports (i.e. leave it as is!)
2. Use ―portfastǁ‖ or ―portfast trunkǁ‖ on ESX facing
ports (puts ports in forwarding state immediately)
Blocked link
3. Use ―bpduguardǁ‖ to enforce STP boundary
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming for Availability and Load Sharing
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming Options
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming with vSS and vDS
vNetwork Standard Switch
vNetwork Distributed Switch
Teaming applied to
physical uplink adapters
Teaming applied to
(vmnics)
virtual uplink adapters
(dvUplinks)
Apply NIC Teaming Policy to vSwitch Apply NIC Teaming Policy on DV Port
and optionally override on each Groups only
Port Group definition Applied to dvUplinks (vmnics mapped per host
Applied to vmnics to dvUplinks)
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming with vDS
esx10a.tml.local
Teaming Policies Are Applied in DV Port Groups to dvUplinks esx09a.tml.local
esx09b.tml.local
vDS
A B
vmkernel
Service
Console
vmnic0 esx09a.tml.local
vmnic0 esx09b.tml.local
vmnic0 esx10a.tml.local
vmnic23 esx10b.tml.local vmnic1 vmnic3 vmnic2 vmnic0
vmnic1 esx09a.tml.local
vmnic1 esx09b.tml.local
vmnic1 esx10a.tml.local
vmnic02 esx10b.tml.local
Console
vmnic3 esx09a.tml.local
vmnic3 esx09b.tml.local
vmnic3 esx10a.tml.local
vmnic10esx10b.tml.local
vmnic0 vmnic1 vmnic2 vmnic3
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming: Originating Virtual Port ID
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming: MAC Based Teaming
Uplink
Return traffic will follow
Ports same path
Physical switch ―learnsǁ‖
vmnic
originating mac address
or pnic
(and populates its CAM table)
Physical switches unaware
Port 1
Port 2
Port 3
Port 4
of teaming
Same L2 domain
No special configuration
Teamed Ports in same L2 domain
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming: IP Hash Based Teaming
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming: Multiple Policies Can Apply Per Team
Virtual Port
PortGroups
1 2 3 4 5 6 7 8 9 10 11 12 13 14
VM
ports
Active Standby
A B C D E F
Standby Active
uplink ports A B C D E F
Port Groups can override failover policy on uplinks for groups of VMs
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
NIC Teaming: Assigning Physical NICs
vSwitch
LOM Card1
Card2
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Port Group Configuration
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Traffic Types on a Virtual Network
Virtual Machine Traffic
Traffic sourced and received from virtual machine(s)
Isolate from each other based on service level
VMotion Traffic
Traffic sent when moving a virtual machine from one ESX host to another
Should be isolated
Management Traffic
Should be isolated from VM traffic (one or two Service Consoles)
If VMware HA is enabled, includes heartbeats
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
VLAN Trunking to Server
IEEE 802.1Q VLAN Tagging
VM0
VM1
Enables logical network partitioning
(Traffic separation)
Scale traffic types without scaling physical NICs
PortGroup
Port Group
―Blueǁ‖ Virtual machines connect to virtual
―Yellowǁ‖
VLAN 10
VLAN 20 switch ports (like access ports
on physical switch)
Virtual switch ports are associated
vSwitch with a particular VLAN (VST mode)—defined
in PortGroup
Virtual switch tags packets exiting host
VLAN Trunks
Carrying
VLANs 10, 20
12-bit VLAN id
8100 field
(0-4095)
802.1Q Header
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
VLAN Tagging Options
VST – Virtual Switch Tagging VGT – Virtual Guest Tagging EST – External Switch Tagging
VLAN
assigned in
Port Group
policy
vSwitch
vSwitch vSwitch
VLAN Tags
applied in
VLAN Tags
applied in
PortGroup
vSwitch
Guest
set to VLAN
―4095ǁ‖
External Physical
switch applies
VST is the best practice and VLAN tags
most common method
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Virtual Switch VLAN Tagging: Further Example
Access Ports Access Ports Access Ports
on VLAN 10
on VLAN 20
on VLAN 50
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All VLANs
A B C (10,20,50,90)
trunked to
VM
VLAN Trunks
interface GigabitEthernet1/2
Carrying VLANs
10, 20, 50, 90
description host32-vmnic0
switchport trunk encapsulation dot1q
switchport trunk native vlan 999
switchport trunk allowed vlan 10,20,50,90
Example
switchport mode trunk
configuration on
spanning-tree portfast trunk
Physical Switch
Uplinks A, B, and C connected to trunk ports on physical switch which carry four VLANs
(e.g. VLANs 10, 20, 50, 90)
Ports 1-14 emit untagged frames, and only those frames which were tagged with their
respective VLAN ID (equivalent to ―access portǁ‖ on physical switch)
Port Group VLAN ID set to one of 1-4094
Port 15 emits tagged frames for all VLANs.
Port Group VLAN ID set to 4095 (for vSS) or ―VLAN Trunkingǁ‖ on vDS DV Port Group
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Fibre Channel over Ethernet (FCoE)
Current DC Architecture
DC Architecture with FCoE
10GigE with
PFC (Priority
Flow Control)
for lossless
Top-of rack behavior for FC
L2 Ethernet
Access Top-of-rack
Switch FCoE Switches
FC Switches
or Directors
Storage
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
FCoE on ESX
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Using 10GigE
Ingress (into switch)
traffic shaping policy
control on Port Group
Variable/high High
b/w 2Gbps+ 1-2G b/w Low b/w
2x 10GigE common/expected
SC#2
10GigE CNAs or NICs
Possible Deployment Method
Active/Standby on all Portgroups
vSwitch
Gbps VMs ―stickyǁ‖ to one vmnic
FCoE FCoE
10GE
10GE
10 SC/vmk ports sticky to other
Use Ingress Traffic Shaping
to control traffic type per
Port Group
FCoE
If FCoE, use Priority Group
bandwidth reservation
FCoE Priority Group (on CNA utility)
bandwidth reservation
(in CNA config utility)
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
VMotion: How Does It Operate on the Network?
ESX Host 1 ESX Host 2 VMotion and Networking
1. L2 Domain required
A B C 2. VM C begins to VMotion
to ESX Host 2
3. Virtual machine state is
MACA MACB MACC copied over the network
IPA IPB IPC
4. Virtual Port state copied
(if vDS or Nexus 1000V)
5. RARP to complete
MAC move
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vDS Deployment Options
Original Environment Complete Migration to vDS
only on vDS
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vDS Deployment Options (Cont.)
Original Environment Complete Migration to Nexus 1000V
vDS vDS
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Deployment Rules
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Provisioning vDS using vDS UI and Host Profiles
Start
1. Create a vDS
Host Profiles
No
Bulk Migrate VM Networking
Migration Yes
using Host
5. *Optionally*
Profiles?
Delete Standard
No
Switch(es)
Per host vDS UI Migration
Control over vmnic to dvUplink mapping
6. Fine tune policies
VMs can be powered on
Host Profiles Migration Complete!
Migrate multiple hosts automatically
Requires maintenance mode (VMs off or migrated)
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vDS: Step 1: Select General Properties
Home > Inventory > Networking
àSelect ―New vNetwork Distributed Switchǁ‖
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Private VLANs: Traffic Isolation for VMs
Private VLAN traffic isolation
Scale VMs on same subnet but between guest VMs
Common
Primary VLAN
on uplinks
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Designing the Network
How do you design the virtual network for
performance and availability and but maintain
isolation between the various traffic types
(e.g. VM traffic, VMotion, and Management)?
Starting point depends on:
Number of available physical ports on server
Required traffic types
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Example 1: Blade Server with 2 NIC Ports
Candidate Design:
SC vmkernel Team both NIC ports
Create one virtual switch
Portgroup3 Portgroup1 Portgroup2
VLAN 30 VLAN 10 VLAN 20
Create three port groups:
vSwitch
Use Active/Standby policy
vmnic0 vmnic1
for each portgroup
Portgroup1: Service Console (SC)
VLAN Trunks
Portgroup2: VMotion
(VLANs 10, 20, 30)
Portgroup3: VM traffic
Use VLAN trunking
Active
Trunk VLANs 10, 20,
Standby
30 on each uplink
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Example 2: Server with 4 NIC Ports
Candidate Design:
SC vmkernel Create two virtual switches
Team two NICs to each vSwitch
Portgroup4
VLAN 40
Portgroup3
VLAN 30
Portgroup1
VLAN 10
Portgroup2
VLAN 20
vSwitch0 (use active/standby
vSwitch1
vSwitch0 for each portgroup):
Portgroup1: Service Console (SC)
vmnic0 vmnic2 vmnic1
vmnic3
Portgroup2: VMotion
vSwitch1 (use Originating Virtual
VLANs
30, 40
VLANs
10, 20 PortID)
Portgroup3: VM traffic #1
Portgroup4: VM traffic #2
Active Use VLAN trunking
Standby
vmnic1 and vmnic3: Trunk VLANs 10, 20
vmnic0 and vmnic2: Trunk VLANs 30, 40
Note: Team over dvUplinks with vDS
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Example 3: Server with 4 NIC Ports (Slight Variation)
Candidate Design:
SC vmkernel Create one virtual switch
Create two NIC teams
Portgroup4
VLAN 40
Portgroup3
VLAN 30
Portgroup1
VLAN 10
Portgroup2
VLAN 20
VLANs VLANs
Use Originating Virtual PortID
30, 40 10, 20 for Portgroups 3 & 4
Portgroup3: VM traffic #1
Portgroup4: VM traffic #2
Active
Standby
Use VLAN trunking
vmnic1 and vmnic3: Trunk VLANs 10, 20
Note: Team over dvUplinks with vDS vmnic0 and vmnic2: Trunk VLANs 30, 40
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Servers with More NIC Ports
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
IP Storage: Using iSCSI
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
iSCSI Design Guide – Specific Examples
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
vNetwork Appliance API
Filter driver in vmkernel to provide
security features within ESX
networking layer
vNetwork Appliance APIs available
to partners
Clients of this API may
inspect/alter/drop/inject any frame
on a given port:
Either directly in the IO path
Heavyweight filtering
(fast path agent)
in ―Slow Pathǁ‖ agent
Or by punting frames up to an appliance
VM (slow path agent)
Lightweight filtering State mobility for data in fast path
in ―Fast Pathǁ‖ agent agent and slow path agent
Communication between slow path
and fast path agents
Bind to VM’s vNIC or to dvswitch port
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
IPv6 in vSphere 4
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Further Reading…
Networking Blog
blogs.vmware.com/networking
Copyright © 2009 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
lunedì 17 dicembre 12
Reference
• Books :
§ Kumar Reddy & Victor Moreno, Network Virtualization, Cisco Press 2006
• Web resources :
§ Linux Bridge http://www.ibm.com/developerworks/cn/linux/l-‐tuntap/index.html
§ Xen networking http://wiki.xensource.com/xenwiki/XenNetworking
§ VMware Virtual Networking Concepts
http://www.vmware.com/Biles/pdf/virtual_networking_concepts.pdf
§ TUN/TAP wiki http://en.wikipedia.org/wiki/TUN/TAP
§ Network Virtualization wiki http://en.wikipedia.org/wiki/Network_virtualization
§ VMware
Networking
Technology
vmware.com/go/networking
• Papers :
•A. Menon, A. Cox, and W. Zwaenepoel. Optimizing Network Virtualization in Xen.
USENIX Annual Technical Conference (USENIX 2006), pages 15–28, 2006.
•N.M.
Mosharaf
Kabir
Chowdhury,
Raouf
Boutaba,
“A
Survey
of
Network
Virtualization”,
University
of
Waterloo
Technical
Report
CS-‐2008-‐25,
Oct.
2008.
lunedì 17 dicembre 12