[英]want to send some packets to pox controller connected with mininet
我是 pox 控制器的新手,想编写一个代码,其中交换机将向控制器发送一些数据包,而控制器将向交换机发送 hello 数据包
If you want TCP packets with mininet you can use Python to setup a simple HTTP server and perform a wget like opening the page hosted there如果你想要带有 mininet 的 TCP 数据包,你可以使用 Python 来设置一个简单的 HTTP 服务器并执行 wget,比如打开托管在那里的页面
Assuming you start mininet with假设您开始使用 mininet
sudo mn --controller remote
Then you have 2 hosts h1, h2.那么你有 2 台主机 h1、h2。 Use h1 to run a simple http server and h2 to read the site from that server
使用 h1 运行一个简单的 http 服务器,使用 h2 从该服务器读取站点
mininet> h1 python -m SimpleHTTPServer 80 &
mininet> h2 wget -O - h1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.