dpctl:OpenFlow 数据包接收失败:文件意外结束

网络工程 sdn 开放流 迷你网
2022-02-06 03:18:17

我正在用 SDN 和 pox 控制器做一些实验,我已经手动编写了如下所示的流程:

dpctl add-flow tcp:127.0.0.1:6653 in_port=10,actions=output:14  
dpctl add-flow tcp:127.0.0.1:6653 in_port=14,actions=output:10

但是当我想使用 dump-flows 命令查看我的流时,我收到错误dpctl: OpenFlow packet receive failed: unexpected end of file 是否有人知道问题可能是什么或从哪里开始进行故障排除?

1个回答

找到关于您的案例的好建议: https ://mailman.stanford.edu/pipermail/openflow-discuss/2013-April/004537.html

另请参阅man ovs-dpctl的这一部分:

该程序仅适用于在 ovs-vswitchd 本身之外实现的数据路径,例如基于 Linux 和 Windows 内核的数据路径。要管理集成到 ovs-vswitchd 中的数据路径,例如用户空间 (netdev) 数据路径,请使用 ovs-appctl(8) 调用 ovs-vswitchd(8) 中记录的 dpctl/* 命令。

您也可以尝试使用此工具查看流程:

http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.txt

dump-flows switch [flows]
          Prints  to  the console all flow entries in switch's tables that
          match flows.  If flows is omitted, all flows in the  switch  are
          retrieved.   See  Flow  Syntax,  below, for the syntax of flows.
          The output format is described in Table Entry Output.

          By default, ovs-ofctl prints flow entries in the same order that
          the switch sends them, which is unlikely to be intuitive or con‐
          sistent.  Use --sort and --rsort to control display order.   The
          --names/--no-names  and  --stats/--no-stats  options also affect
          output formatting.  See the descriptions of these options, under
          OPTIONS below, for more information