【问题标题】:Stopping a switch from Pox controller从 Pox 控制器停止开关
【发布时间】:2019-06-07 10:04:54
【问题描述】:

我正在尝试创建一个测试网络,其中有一个交换机列表,并且一次只能激活其中一个。我已经在每个 ConnectionUp 事件上更新连接列表,如下所示:

def _handle_ConnectionUp (event):    
  for switch in switchesList:
      ...
      if switch.dpid == str(event.dpid):
        switch.connection = event.connection
      ...
      if any other switch from switchesList is running
        stop that switch
      ...

据我了解,我可以使用 connection.send 向该交换机发送消息,但是我没有找到包含“停止”命令的 Openflow 消息。 每当在 mininet CLI 中我手动运行:

切换 s1 开始

我想让POX达到类似跑步的效果:

切换 s2 停止

来自 mininet CLI。

有没有办法发送这样的消息或者以其他方式访问开关参考?

【问题讨论】:

    标签: python tcp sdn mininet pox


    【解决方案1】:

    在流表中设置流(例如,action = of.ofp_action_output(port = of.OFPP_DROP))以丢弃所述交换机不同端口的所有数据包可以提供所需的效果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-04
      • 2016-08-23
      • 2013-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-12
      相关资源
      最近更新 更多