SlideShare a Scribd company logo
Virtual Networking Performance



         Stephen Hemminger
       stephen.hemminger@vyatta.com

               Linuxcon Japan
            Virtualization Summit
Virtual net performance
Bi-directional Virtualization Loss Test

               100%


                75%
Throughput




                50%


                25%


                 0%
                   0         500           1000    1500

                             Packet Size
Houston, we have a problem!
Topics
What is virtual router?
Performance measurements
Analysis
Current work
How to help
Performance History
2005      2006     2007    2008       2009          2010      2011




  1G line rate            Multiqueue NIC      10G line rate



                                           1M pps




Xen 3.0             KVM             Hyper-V
                                    drivers
Virtual net performance
Performance measurements

Forwarding
   RFC 2544 minimum packet

Throughput
   TCP bulk transfer

Latency
   Request / Response
Router Benchmark
              RFC2544
              Router
              Under
               Test
Spirent
Virtualized Router Benchmark
                         Router
                         Under
                                            Guest
                          Test

                                           Hypervisor
                Bridge            Bridge
Spirent
1 Gigabit bi-directional forwarding
             100%



             75%
Throughput




             50%



             25%



              0%
                    0   200   400    600   800    1000   1200   1400   1600


                                    Packet Size
Physical Networks
Rate limited by slowest
 component

Adding more layers
 does not slow down
 throughput


Separate resources
Virtual Network overhead
            Hyper-      Bridge out
            visor In
            Bridge In   Hyper-
                        visor
            Router
            Under
            Test
Network Baseline
Intel i7 920
  Intel 10G
  LOM 1G network


Loopback – 12G bits/sec


Forwarding – 1M packets/sec per core


               Your mileage may vary...
Emulated Network Interface
        Fake PCI region



Guest                     Hypervisor




                                       To
                                       Network
        Packet
        Buffer
Legacy (emulated) NIC
Relative Performance vs Native



                                    %



                                 -25%



                                 -50%



                                 -75%


                                                             Transmit
                                 -100%                       Receive
                                          Hyper-V   VmWare          KVM
Virtual NIC


Guest             Hypervisor




                               To
                               Network
         Packet
         Buffer
Virtual NIC performance
  0%



-25%



-50%



-75%



-100%                        Transmit
         Hyper-V   VmWare    Receive
                                 KVM
VNIC characteristics
               Hyper-V   Vmware    Xen        KVM
                         vmxnet3   netfront   virtio-net

MTU               1500     9000      65521       65535
Checksum                     Y          Y          Y
offload

Segmentation                 Y          Y          Y
offload

NAPI                         Y          Y          Y

LRO                          Y

VLAN                         Y

Multiqueue                   Y          ?          ?
Guest to Guest Throughput




     TSO




 Tx csum




No offload


             0   1000   2000   3000   4000        5000
                                         Megabits/sec
VM to VM performance
                             2000
Thorouhput (10^6 bits/sec)




                                0
                                100        1000          10000   100000



                                           MTU (bytes)
TCP performance
2 Tier



 NAT



Route



Bridge



 Bare

         0   2           4     6   8   10
             Gigabytes / sec
Observations
Slow
  Legacy emulated NIC
  NAT
  Firewall connection tracking
Fast
  Virtual NIC
  Hardware passthrough
  Bare Bridge
Multithread benchmark
                         20,000                                          UP Guest
                                                                         SMP Guest
Total Transactions/sec




                         15,000




                         10,000




                          5,000




                             0
                                           Packet Steering (RPS)
                                  Baseline                    Multi Queue NIC
Multiple Queue
         HW or SW
                    Guest VM


                               Thread
        Device
        queue

                               Thread
Flow    Device
                 VNIC
clas    queue
sfier

                               Thread
        Device
        queue
TODO
More peformance measurement
     MACVTAP, VEPA, …
Configuration
     Pinning, IRQ assignment, …
Profiling
Future work
Virtio-net optimization      Michael S. Tsirkin

Multiqueue                Krishna Kumar

     KVM ↔ QEMU
Zero copy                    Shirley Ma

     Skb lifetime
     Security
Batching                  Rusty Russell

     Bufferbloat
How to help
Administrator    →Tuning and Sizing


Tester          →Measure and Test


Developer       →Multiqueue and
 Offload

More Related Content

ODP
Virtual Network Performance Challenge
ODP
Integrating Linux routing with FusionCLI™
PDF
Linux Bridging: Teaching an old dog new tricks
PDF
Performance challenges in software networking
PDF
Userspace networking
PDF
Recent advance in netmap/VALE(mSwitch)
PDF
mSwitch: A Highly-Scalable, Modular Software Switch
PDF
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...
Virtual Network Performance Challenge
Integrating Linux routing with FusionCLI™
Linux Bridging: Teaching an old dog new tricks
Performance challenges in software networking
Userspace networking
Recent advance in netmap/VALE(mSwitch)
mSwitch: A Highly-Scalable, Modular Software Switch
DPDK Summit - 08 Sept 2014 - 6WIND - High Perf Networking Leveraging the DPDK...

What's hot (20)

ODP
Dpdk performance
PPTX
High Performance Networking Leveraging the DPDK and Growing Community
PDF
DPDK Summit 2015 - HP - Al Sanders
PDF
How to Speak Intel DPDK KNI for Web Services.
ODP
A Baker's dozen of TCP
PPTX
Packet Framework - Cristian Dumitrescu
PDF
Intel DPDK Step by Step instructions
PDF
DPDK Summit 2015 - RIFT.io - Tim Mortsolf
PDF
DPDK in Containers Hands-on Lab
PDF
Accelerate Service Function Chaining Vertical Solution with DPDK
PPTX
The n00bs guide to ovs dpdk
PDF
PASTE: Network Stacks Must Integrate with NVMM Abstractions
PDF
Disruptive IP Networking with Intel DPDK on Linux
PPTX
Introduction to DPDK
PPTX
PPTX
Netmap presentation
PPTX
Ovs perf
PDF
Network Stack in Userspace (NUSE)
PPTX
DPDK KNI interface
PDF
100 M pps on PC.
Dpdk performance
High Performance Networking Leveraging the DPDK and Growing Community
DPDK Summit 2015 - HP - Al Sanders
How to Speak Intel DPDK KNI for Web Services.
A Baker's dozen of TCP
Packet Framework - Cristian Dumitrescu
Intel DPDK Step by Step instructions
DPDK Summit 2015 - RIFT.io - Tim Mortsolf
DPDK in Containers Hands-on Lab
Accelerate Service Function Chaining Vertical Solution with DPDK
The n00bs guide to ovs dpdk
PASTE: Network Stacks Must Integrate with NVMM Abstractions
Disruptive IP Networking with Intel DPDK on Linux
Introduction to DPDK
Netmap presentation
Ovs perf
Network Stack in Userspace (NUSE)
DPDK KNI interface
100 M pps on PC.
Ad

Similar to Virtual net performance (20)

PDF
Windows Server 2012 Hyper-V Networking Evolved
PPTX
Link Virtualization based on Xen
PPTX
Windows Server 8 Hyper V Networking
PDF
Windows server 8 hyper v networking (aidan finn)
PDF
Networking is NOT Free: Lessons in Network Design
PPTX
Am 04 track1--salvatore orlando--openstack-apac-2012-final
PPTX
Network Virtualization in Windows Server 2012
PDF
PLNOG 5: Piotr Szołkowski - Data Center i nie tylko...
PPTX
An Implementation of Virtual Cluster on a Cloud
PDF
Network virtualization with open stack quantum
PPTX
OpenStack Quantum: Cloud Carrier Summit 2012
PPTX
OpenStack and OpenFlow Demos
PDF
Hyper v.nu-windows serverhyperv-networkingevolved
PDF
Network policies
PDF
[OpenStack 스터디] OpenStack With Contrail
PDF
Hyper-V 3.0 Overview
PDF
Tudor Damian - Hyper-V 3.0 overview
PDF
Cooperative VM Migration for a virtualized HPC Cluster with VMM-bypass I/O de...
PDF
DIANA: Scenarios for QoS based integration of IP and ATM
PPTX
Network and Service Virtualization tutorial at ONUG Spring 2015
Windows Server 2012 Hyper-V Networking Evolved
Link Virtualization based on Xen
Windows Server 8 Hyper V Networking
Windows server 8 hyper v networking (aidan finn)
Networking is NOT Free: Lessons in Network Design
Am 04 track1--salvatore orlando--openstack-apac-2012-final
Network Virtualization in Windows Server 2012
PLNOG 5: Piotr Szołkowski - Data Center i nie tylko...
An Implementation of Virtual Cluster on a Cloud
Network virtualization with open stack quantum
OpenStack Quantum: Cloud Carrier Summit 2012
OpenStack and OpenFlow Demos
Hyper v.nu-windows serverhyperv-networkingevolved
Network policies
[OpenStack 스터디] OpenStack With Contrail
Hyper-V 3.0 Overview
Tudor Damian - Hyper-V 3.0 overview
Cooperative VM Migration for a virtualized HPC Cluster with VMM-bypass I/O de...
DIANA: Scenarios for QoS based integration of IP and ATM
Network and Service Virtualization tutorial at ONUG Spring 2015
Ad

More from Stephen Hemminger (7)

PDF
Staging driver sins
PDF
Netem -emulating real networks in the lab
PDF
Untold story
PDF
Llnw bufferbloat
ODP
Bufferbloat is alll Wet!
PDF
Taking the Fear Out of Contributing
ODP
Online tools
Staging driver sins
Netem -emulating real networks in the lab
Untold story
Llnw bufferbloat
Bufferbloat is alll Wet!
Taking the Fear Out of Contributing
Online tools

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Cloud computing and distributed systems.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
KodekX | Application Modernization Development
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Big Data Technologies - Introduction.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
“AI and Expert System Decision Support & Business Intelligence Systems”
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Per capita expenditure prediction using model stacking based on satellite ima...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
KodekX | Application Modernization Development
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
Chapter 3 Spatial Domain Image Processing.pdf

Virtual net performance

Editor's Notes

  • #8: Performance is a complex topic, and hard to measure. The blind man who feels a leg says the elephant is like a pillar; the one who feels the tail says the elephant is like a rope; the one who feels the trunk says the elephant is like a tree branch; the one who feels the ear says the elephant is like a hand fan; the one who feels the belly says the elephant is like a wall; and the one who feels the tusk says the elephant is like a solid pipe. A wise man explains to them: "All of you are right. The reason every one of you is telling it differently is because each one of you touched the different part of the elephant. So, actually the elephant has all the features you mentioned."
  • #15: I use Virt net every day but always felt uncomfortable that performance is being lost. Rules of thumb, today, on my hardware
  • #17: In honor of Australia day wanted to graph it upside down!! Not a benchmark * different hardware * not precise * not allowed by License agreements
  • #19: P7 Avoid unnecessary generality
  • #22: Relax system requirements