Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Open vSwitch ソースコードの全体像

Open vSwitch ソースコードの全体像

Sho Shimizu

April 29, 2012
Tweet

More Decks by Sho Shimizu

Other Decks in Technology

Transcript

  1. ιʔείʔυͷೖखํ๏ • ϦϦʔε൛ (v.1.4.0) • http://openvswitch.org/releases/openvswitch-1.4.0.tar.gz • ։ൃ൛ • git

    clone git://openvswitch.org/openvswitch • git clone http://openvswitch.org/git/openvswitch
  2. ߦ਺τοϓ10 6494 ./ofproto/ofproto-dpif.c 4551 ./lib/netdev-linux.c 4096 ./ofproto/ofproto.c 3953 ./lib/ofp-util.c 3924

    ./utilities/ovs-vsctl.c 3749 ./vswitchd/bridge.c 2461 ./lib/meta-flow.c 2350 ./python/compat/argparse.py 2263 ./lib/ovsdb-idl.c 2241 ./datapath/datapath.c
  3. • README • INSTALL.* • ͦͷଞςΩετ • build-aux/ • datapath/

    • debian/ • include/ • lib/ • m4/ • ofproto/ • ovsdb/ • python/ • rhel/ • tests/ • third-party/ • utilities/ • vswitchd/ • xenserver/
  4. • ίϯϙʔωϯτͷઆ໌ • ovs-vswitchd • ovsdb-server • ovs-brcompatd • ovs-dpctl

    • ovs-appctl • ovsdbmonitor • ovs-controller • ovs-ofctl • ovs-pki • patch for tcpdump • scripts for RPM READMEΛಡΉ
  5. ༻ޠղઆʢฆΒΘ͍͠ʣ datapath/ vport --------- vswitchd/ iface port ofproto/ port bundle

    lib/bond.c slave bond lib/lacp.c slave lacp lib/netdev.c netdev --------- database Interface Port
  6. ovs-vswitchd ofproto netdev netdev provider ofproto- dpif OpenFlow controllers ovsdb-server

    dpif dpif provider datapath Userspace Kernel Implementation of ofproto provider Physical NIC
  7. • Linux 3.3ʹίʔυ͕औΓࠐ·Εͨ • MLͰͷ͓஌Βͤɿhttp://bit.ly/HEQntI • औΓࠐ·Εͨίʔυɿhttp://bit.ly/HEQzZM • OpenFlow 1.1,

    1.2΁ͷରԠ • include/openflow/openflow-1.[012].h • ํ਑ɿhttp://bit.ly/HmVdCQ ࠷ۙͷ࿩୊