简体   繁体   中英

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

Assuming you start mininet with

sudo mn --controller remote

Then you have 2 hosts h1, h2. Use h1 to run a simple http server and h2 to read the site from that server

mininet> h1 python -m SimpleHTTPServer 80 &
mininet> h2 wget -O - h1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM