在 openvswitch 拦截数据包

Intercepting packets at openvswitch

我想拦截从控制器(例如floodlight)到达交换机的数据包,然后对这些数据包进行一些处理。我该怎么做?有没有我应该从哪里开始的好地方?

谢谢

记录的 snoop 和 monitor 命令如何 here

snoop switch Connects to switch and prints to the console all OpenFlow messages received.

monitor switch Connects to switch and prints to the console all OpenFlow messages received.

  1. 编写脚本运行监听或监控
  2. 解析输出
  3. "and then do some processing"

如果你不想使用 OpenFlow 消息而是数据包,你可以使用 wireshark from the command line