简体   繁体   English

Mininet / OpenFlow / POX-子网之间的连接

[英]Mininet/OpenFlow/POX - Connection between subnets

I'm working with a Mininet topology that has this structure with 3 switches and 4 hosts: 我正在使用具有3个交换机和4个主机的这种结构的Mininet拓扑:

         +--+
         |s1|
         +--+
          |
    ------+---------
    |              |
   +--+          +--+
   |s2|          |s3|
   +--+          +--+
   |  |          |  |
+--+  +--+    +--+  +--+
|h1|  |h2|    |h3|  |h4|
+--+  +--+    +--+  +--+

I'm also using POX in python to create an SDN controller for the network. 我也在python中使用POX为网络创建SDN控制器。 And here is where my issue comes. 这就是我的问题所在。

I'm just setting the switches like hubs to test connectivity and after that apply custom rules to the network. 我只是将交换机设置为集线器以测试连接性,然后将自定义规则应用于网络。

Setting switches like hubs and just flooding all packets makes connectivity between hosts in the same subnet works (ie h1 can connect with h2 and h3 can connect with h4). 设置集线器之类的交换机并仅泛洪所有数据包,可使同一子网中主机之间的连接正常(即h1可以与h2连接,h3可以与h4连接)。 However, I cannot make it for h1 to reach h3. 但是,我无法让h1达到h3。

When I try to ping from one to the other it fails and prints "Destination Host Unreachable" and I cannot understand why. 当我尝试从一个ping到另一个时,它失败并显示“ Destination Host Unreachable”,并且我不明白为什么。

For what I can see in the controller, s2 is flooding the packets but none of them are reaching s1. 对于我在控制器中看到的内容,s2正在泛洪数据包,但没有一个到达s1。 I've tried flooding with both of.OFPP_ALL and of.OFPP_FLOOD . 我已经尝试同时使用of.OFPP_ALLof.OFPP_FLOOD泛洪。

Mininet shows the links between nodes: Mininet显示了节点之间的链接: 净转储输出

I really could use some help here. 我真的可以在这里使用一些帮助。 Either what do I need to do or where I can look it up. 我需要做什么或可以在哪里查找。 Because POX documentation is really bad and I can't find anything. 因为POX文档真的很糟糕,我什么也找不到。


Solved 解决了

Got it. 得到它了。 My main problem here was setting s2 and s3 to connect to s1 on port 0 (reserved for the local interface) So when I tried to access that port something went wrong. 我的主要问题是将s2和s3设置为连接到端口0上的s1(保留给本地接口),所以当我尝试访问该端口时出了点问题。

也许您可以为所有主机在同一子网下分配IP地址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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