gpt4 book ai didi

openflow - ovs-vsctl 和 ovs-dpctl 的区别

转载 作者:行者123 更新时间:2023-12-04 23:19:26 29 4
gpt4 key购买 nike

如果我正在设置一个通过OpenFlow控制的交换设备,使用的条件是什么? ovs-dpctl 相比ovs-vsctl ? 的手册页ovs-dpctl 说使用 ovs-vsctl 如果 ovs-vswitchd 用来。

那你会在什么情况下使用 ovs-dpctl ?它有什么你不能做的事情?

一个后续问题是OF“数据路径”值的来源。这将是 OF Controller 用于识别 OF 开关的 OF 规范中的 64 位数字。该值是自动计算的还是必须输入?

感谢您对此的任何帮助。

最佳答案

ovs-dpctl:

用于创建、修改和删除 Open vSwitch 数据路径的工具。
以下是一些示例(命令是随机的):

– ovs-dpctl add-dp dp1
– ovs-dpctl add-if dp1 eth0
– ovs-dpctl show
– ovs-dpctl dump-flows

ovs-vsctl:

用于查询和更新 ovs-vswitchd 配置的实用程序(在 ovsdb-server 的帮助下)。端口配置、网桥添加/删除、绑定(bind)和 VLAN 标记只是此命令可用的一些选项。

以下是一些示例(命令是随机的):
– ovs-vsctl –V : Prints the current version of openvswitch.
– ovs-vsctl show : Prints a brief overview of the switch database configuration.
– ovs-vsctl list-br : Prints a list of configured bridges
– ovs-vsctl list-ports <bridge> : Prints a list of ports on a specific bridge.
– ovs-vsctl list interface : Prints a list of interfaces.
– ovs-vsctl add-br <bridge> : Creates a bridge in the switch database.

ovs-ofctl:

我认为这个工具也值得一提。用于监控和管理 OpenFlow 交换机的命令行工具。用于列出 OVS 内核模块中实现的流程
- ovs-ofctl add-flow <bridge> <flow>
- ovs-ofctl add-flow <bridge> <match-field> actions=all
- ovs-ofctl del-flows <bridge> <flow>

在我看来, ovs-vsctl用于配置开放的 vswitch 本身,如配置端口、网桥等。而 ovs-dpctl用于处理数据路径和接口(interface)。

资料来源:
  • openvswitch and ovsdb
  • OpenVSwitch slides
  • openvswitch cheat sheet


  • 您的第二个问题-> 数据路径:对我来说,openflow 上下文中的数据路径是一个对象,表示 Controller 和交换机之间的连接。我相信 OF Controller 可以解决这个问题,但这取决于 OF Controller 。

    关于openflow - ovs-vsctl 和 ovs-dpctl 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31888639/

    29 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com