core.openflow.addListenerByName("FlowStatsReceived", self._handle_flowstats_received)
core.openflow.addListenerByName("PortStatsReceived", self._handle_portstats_received)
core.openflow.addListenerByName("QueueStatsReceived", self._handle_qeuestats_received)
And in some class methods later
您可以使用的是在控制器中添加侦听器并捕获数据包:
要查看完整的示例,请检查https://github.com/tsartsaris/pythess-SDN/blob/master/pythess.py
或者,您可以在一台主机上执行shell代码,并使用iperf将流量发送到mininet中的另一台主机,然后尝试使用tcpprobe捕获它。这样会容易得多。以下是伪代码:
^{pr2}$相关问题 更多 >
编程相关推荐