Open vSwitch 概述
概述
Open vSwitch 是一个产品级质量的多层虚拟交换机协议,使用开源的Apache 2.0 协议。通过编程拓展,Open vSwitch被设计为支撑庞大的网络自动化,同时也支持标准的管理接口和协议(如 NetFlow, sFlow, IPFIX, RSPAN, CLI, LACP, 802.1ag)。 另外,如同VMware的vNetwork distributed vSwitch和思科的Nexus 1000V,Open vSwitch被设计为支持分布运行在多个物理服务器。
注:根据Open vSwitch官方描述翻译而成
全部已支持功能
- Visibility into inter-VM communication via NetFlow, sFlow(R), IPFIX, SPAN, RSPAN, and GRE-tunneled mirrors
- LACP (IEEE 802.1AX-2008)
- Standard 802.1Q VLAN model with trunking
- Multicast snooping
- IETF Auto-Attach SPBM and rudimentary required LLDP support
- BFD and 802.1ag link monitoring
- STP (IEEE 802.1D-1998) and RSTP (IEEE 802.1D-2004)
- Fine-grained QoS control
- Support for HFSC qdisc
- Per VM interface traffic policing
- NIC bonding with source-MAC load balancing, active backup, and L4 hashing
- OpenFlow protocol support (including many extensions for virtualization)
- IPv6 support
- Multiple tunneling protocols (GRE, VXLAN, STT, and Geneve, with IPsec support)
- Remote configuration protocol with C and Python bindings
- Kernel and user-space forwarding engine options
- Multi-table forwarding pipeline with flow-caching engine
- Forwarding layer abstraction to ease porting to new software and hardware platforms
注:详间Open vSwitch 官方说明
Open vSwitch 架构及服务
如下图:
❏ ovs-vswitchd:守护进程,与 Linux kernel 进行基于flow数据转换
❏ ovsdb-server:轻量级数据库服务,存储ovs-vswitchd配置信息并为其提供查询
❏ ovs-vsctl:ovs- vswitchd的配置查询与更改的客户端
❏ ovs-dpctl:配置和监控switch内核包的工具
❏ ovs-appctl:ovs-vswitchd运行管理客户端
❏ ovs-controller:简单OpenFlow控制器实现
❏ ovs-ofctl:流表信息管理客户端
❏ brocompat.ko:Linux bridge兼容包
❏ openvswitch.ko : Open vSwitch switching datapath
Open vSwitch 安装
- 安装环境
ubuntu server 14.04.2. - 需要安装的包
openvswitch-common - Open vSwitch common components
openvswitch-controller - Open vSwitch controller implementation
openvswitch-dbg - Debug symbols for Open vSwitch packages
openvswitch-pki - Open vSwitch public key infrastructure dependency package
openvswitch-switch - Open vSwitch switch implementations
openvswitch-datapath-dkms - Open vSwitch datapath module source - DKMS version
openvswitch-datapath-source - Open vSwitch datapath module source - module-assistant version
openvswitch-ipsec - Open vSwitch GRE-over-IPsec support
openvswitch-test - Open vSwitch test package
- 安装
sudo apt-get install openvswitch-*
- 测试
sudo ovs-vsctl show # 对应输出
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
ovs_version: "2.0.2"
* 注:有时会自动创建br-int网桥