简体   繁体   English

想向与 mininet 连接的 pox 控制器发送一些数据包

[英]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.

相关问题 连接到Pox控制器时如何识别Mininet中的特定交换机 - How to identify a specific switch in Mininet when connected to a pox controller 如何使用open vswitch和Pox控制器检查Mininet中哪些端口连接到主机? - How to check which ports are connected to host in Mininet using open vswitch and a Pox controller? 如何将遥控器POX正确连接到mininet - How to properly connect remote controller POX to mininet Mininet / OpenFlow / POX-子网之间的连接 - Mininet/OpenFlow/POX - Connection between subnets 使用 Mininet/POX 模拟带有路由器的网络 - Simulate a network with routers using Mininet/POX Pox控制器如何在不安装流规则的情况下发送数据包 - How Pox controller will send packet without installing flow rules 如何使用Mininet Python API将UDP数据包从一台主机发送到另一台主机? - How can I use Mininet Python API to send UDP packets from one host to another? 如何使用python脚本将TCP数据包从一台主机发送到mininet中的另一台主机? - How to send TCP packets from one host to another in mininet by using a python script? 带有POX的mininet:使用flow_mod时获取事件 - mininet with POX: get event when flow_mod is used mininet中的POX:event.parsed在pox中给出了什么? 什么是parse.next? - POX in mininet: What does event.parsed give in pox? What is parse.next?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM