Open vSwitch Jus0n Pe2t and Jesse Gross Linux - - PowerPoint PPT Presentation

open vswitch
SMART_READER_LITE
LIVE PREVIEW

Open vSwitch Jus0n Pe2t and Jesse Gross Linux - - PowerPoint PPT Presentation

Open vSwitch Jus0n Pe2t and Jesse Gross Linux Collabora0on Summit April 7, 2011 What is Virtualiza0on? Mul0ple virtual machines on the same


slide-1
SLIDE 1

Open ¡vSwitch ¡ ¡

Jus0n ¡Pe2t ¡and ¡Jesse ¡Gross ¡ Linux ¡Collabora0on ¡Summit ¡ April ¡7, ¡2011 ¡

slide-2
SLIDE 2

What ¡is ¡Virtualiza0on? ¡

  • Mul0ple ¡virtual ¡

machines ¡on ¡the ¡same ¡ physical ¡host ¡

  • Lowest ¡layer ¡is ¡the ¡

hypervisor, ¡which ¡ provides ¡the ¡illusion ¡

  • Built ¡by ¡OS ¡people ¡
  • Historically, ¡simple ¡

bridge ¡

Physical ¡Switch ¡ Hypervisor ¡Bridge ¡ VM ¡1 ¡ VM ¡2 ¡ VM ¡3 ¡

slide-3
SLIDE 3

What’s ¡been ¡missing? ¡

  • Lacked ¡visibility ¡that ¡network ¡administrators ¡

expected ¡

  • Lack ¡of ¡fine-­‑grain ¡control ¡
  • BriSle ¡in ¡face ¡of ¡mobility ¡
slide-4
SLIDE 4

Virtualized ¡Networking ¡is ¡Different ¡

  • Greater ¡context ¡

– MAC/IP ¡addresses ¡ – Host ¡iden0fiers ¡(UUID) ¡ – Mul0cast ¡membership ¡ – Machine ¡start/stop/move ¡events ¡

  • Mobility ¡
  • Strong ¡isola0on ¡between ¡tenants ¡
slide-5
SLIDE 5

Advanced ¡Edge ¡Switches ¡

  • Tight ¡integra0on ¡with ¡hypervisor ¡
  • Approaching ¡feature-­‑parity ¡with ¡hardware ¡

switches ¡

– Visibility ¡ – ACLs ¡ – Quality ¡of ¡Service ¡

  • Centralized ¡management ¡
  • Hardware ¡off-­‑loading ¡
  • Examples: ¡ ¡VMware ¡vSwitch, ¡Cisco ¡Nexus ¡1000V, ¡

Open ¡vSwitch ¡

slide-6
SLIDE 6

Open ¡vSwitch ¡

  • Advanced ¡edge ¡switch ¡
  • Works ¡on ¡Linux-­‑based ¡hypervisors: ¡Xen, ¡KVM, ¡

VirtualBox ¡

  • Open ¡source, ¡commercial-­‑friendly ¡license ¡
  • Widely ¡deployed ¡in ¡enterprise, ¡service ¡

provider, ¡and ¡Telco ¡produc0on ¡environments ¡

slide-7
SLIDE 7

(Par0al) ¡List ¡of ¡Contributors ¡

slide-8
SLIDE 8

Packaging ¡

  • Default ¡networking ¡stack ¡for ¡Xen ¡Cloud ¡Plaborm ¡

(XCP) ¡

  • Ships ¡with ¡Citrix ¡XenServer ¡and ¡basis ¡for ¡their ¡

Distributed ¡Virtual ¡Switch ¡(DVS) ¡

  • Distribu0on ¡packaging ¡

– Debian ¡ – Ubuntu ¡ – SUSE ¡ – Red ¡Hat ¡

  • Goal ¡is ¡to ¡upstream ¡kernel ¡module ¡
slide-9
SLIDE 9

Visibility ¡and ¡Control ¡

  • Visibility ¡

– NetFlow ¡ – sFlow ¡ – Mirroring ¡(SPAN/RSPAN/ERSPAN) ¡

  • Fine-­‑grained ¡ACL ¡and ¡QoS ¡policies ¡

– L2-­‑L4 ¡matching ¡ – Ac0ons ¡to ¡forward, ¡drop, ¡modify, ¡and ¡queue ¡ – HTB ¡and ¡HFSC ¡queuing ¡disciplines ¡

slide-10
SLIDE 10

sFlow ¡with ¡Open ¡vSwitch ¡

slide-11
SLIDE 11

Forwarding ¡

  • LACP ¡
  • Port ¡bonding ¡

– Source-­‑MAC ¡load-­‑balancing ¡ – TCP ¡load-­‑balancing ¡ – Ac0ve/backup ¡

  • 802.1ag ¡CFM ¡(Connec0vity ¡Fault ¡Mgmt) ¡
  • Fast ¡Ethernet-­‑over-­‑GRE ¡tunneling ¡
slide-12
SLIDE 12

Main ¡Components ¡

  • penvswitch_mod.ko ¡
  • vsdb-­‑server ¡

User ¡ Kernel ¡

Control ¡Cluster ¡

  • vs-­‑vswitchd ¡

Management ¡Protocol ¡(6632/TCP) ¡ OpenFlow ¡(6633/TCP) ¡ Netlink ¡

Off-­‑box ¡

slide-13
SLIDE 13

Forwarding ¡Components ¡

  • ovs-­‑vswitchd ¡(Slow ¡Path) ¡

– Forwarding ¡logic ¡(learning, ¡mirroring, ¡VLANs, ¡and ¡ bonding) ¡ – Remote ¡configura0on ¡and ¡visibility ¡

  • openvswitch_mod.ko ¡(Fast ¡Path) ¡

– Packet ¡lookup, ¡modifica0on, ¡and ¡forwarding ¡ – Tunnel ¡encapsula0on/decapsula0on ¡

slide-14
SLIDE 14

Centralized ¡Control ¡

  • One ¡OpenFlow ¡connec0on ¡per ¡datapath ¡

– Exports ¡idealized ¡view ¡of ¡switch’s ¡datapath ¡

  • Lookup ¡based ¡on ¡L2-­‑L4 ¡
  • Full ¡wildcarding ¡and ¡priori0es ¡
  • Ac0ons: ¡forward, ¡drop, ¡modify, ¡and ¡queue ¡
  • Missed ¡flows ¡go ¡to ¡central ¡controller ¡
  • One ¡management ¡channel ¡per ¡system ¡

– Switch-­‑level ¡configura0on ¡ – Resources ¡ – Counters ¡

slide-15
SLIDE 15

Distributed ¡Virtual ¡Switch ¡

VM ¡1 ¡ VM ¡2 ¡ VM ¡3 ¡

Open ¡vSwitch ¡

VM ¡4 ¡

Open ¡vSwitch ¡ Open ¡vSwitch ¡ Control ¡Cluster ¡

VM ¡5 ¡

slide-16
SLIDE 16

Citrix ¡DVS ¡Controller ¡

slide-17
SLIDE 17

Performance ¡

1 10 100 1000 10000 1000001000000

Transfer size (bytes)

100 200 300 400

Transfer rate (Mbps)

Throughput ¡versus ¡flow ¡size ¡for ¡Xen ¡virtual ¡machines ¡with ¡ Linux ¡bridge ¡(dashed) ¡and ¡Open ¡vSwitch ¡(solid). ¡

slide-18
SLIDE 18

Project ¡

  • hSp://openvswitch.org ¡
  • Mailing ¡Lists ¡

– Announcements: ¡announce@openvswitch.org ¡ – User-­‑level ¡discussion: ¡discuss@openvswitch.org ¡ – Dev ¡(code ¡review, ¡etc): ¡dev@openvswitch.org ¡ – Archives ¡available ¡in ¡site ¡sidebar ¡

  • Source ¡repository: ¡

¡ ¡git ¡clone ¡git://openvswitch.org/openvswitch ¡

slide-19
SLIDE 19