Open vSwitch学习(一)

本文详细介绍了OpenvSwitch作为一款多层虚拟交换机协议的特性与功能,包括其支持的网络自动化、标准接口、多播抑制、流量控制等,并提供了安装步骤和架构组件的说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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网桥

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值