weixin_39943442
2020-12-28 11:02 阅读 12

PoX connection errors

I am trying to connect an OVS on linux box to a remote POX controller.

I tried running the learning_switch example. encountered errors (shown below) what could be the cause of these? and how do I solve them? please this is v.urgent.

=============================== terminal output ===========================

root:~/pox# ./pox.py samples.pretty_log forwarding.l2_learning POX 0.2.0 (carp) / Copyright 2011-2013 James McCauley, et al. [core ] POX 0.2.0 (carp) is up. [openflow.of_01 ] Exception reading connection [None 1] Traceback (most recent call last): File "/users/oadele3/pox/pox/openflow/of_01.py", line 912, in run if con.read() is False: File "/users/oadele3/pox/pox/openflow/of_01.py", line 751, in read new_offset,msg = unpackersofp_type File "/users/oadele3/pox/pox/openflow/libopenflow_01.py", line 197, in unpack_ assert (r-offset) == length, o AssertionError: ofp_hello header: version: 4 type: 0 (OFPT_HELLO) length: 8 xid: 5 [openflow.of_01 ] [None 1] closed

======================== end of terminal output =========================

please how do I solve this problem -mayowa

该提问来源于开源项目:noxrepo/pox

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_40002009 weixin_40002009 2020-12-28 11:02

    Best guess is that the switch is configured for OpenFlow 1.3, but POX currently only supports 1.0.

    点赞 评论 复制链接分享
  • weixin_39943442 weixin_39943442 2020-12-28 11:02

    thank you very much that really helped

    I can connect now

    On Wed, Sep 17, 2014 at 9:46 PM, Murphy notifications.com wrote:

    Best guess is that the switch is configured for OpenFlow 1.3, but POX currently only supports 1.0.

    — Reply to this email directly or view it on GitHub https://github.com/noxrepo/pox/issues/126#issuecomment-55988801.

    Adeleke Oluwamayowa

    +1 312 479 8288

    点赞 评论 复制链接分享
  • weixin_40002009 weixin_40002009 2020-12-28 11:02

    Since this is unrelated, please file it as a new issue. Or better yet, post it to the pox-dev mailing list.

    点赞 评论 复制链接分享
  • weixin_39559097 weixin_39559097 2020-12-28 11:02

    i could not connect to POX controller

    On Sun, Oct 5, 2014 at 12:04 PM, Murphy notifications.com wrote:

    Closed #126 https://github.com/noxrepo/pox/issues/126.

    — Reply to this email directly or view it on GitHub https://github.com/noxrepo/pox/issues/126#event-174215143.

    点赞 评论 复制链接分享
  • weixin_39943442 weixin_39943442 2020-12-28 11:02

    Hi.

    It means that there is a controller process associated with that port already running, which needs to be closed.

    You can enter this command to end it

    sudo fuser -k 6633/tcp

    Then you can start the process again

    -Mayowa

    On Sunday, October 5, 2014, senthilkuma notifications.com wrote:

    i could not connect to POX controller

    On Sun, Oct 5, 2014 at 12:04 PM, Murphy > wrote:

    Closed #126 https://github.com/noxrepo/pox/issues/126.

    — Reply to this email directly or view it on GitHub https://github.com/noxrepo/pox/issues/126#event-174215143.

    — Reply to this email directly or view it on GitHub https://github.com/noxrepo/pox/issues/126#issuecomment-57927335.

    Adeleke Oluwamayowa

    +1 312 479 8288

    点赞 评论 复制链接分享
  • weixin_39559097 weixin_39559097 2020-12-28 11:02

    hai dear i killed those controler using your command but after that i put command for start controller it shows nothing....

    root:~/pox# ./pox.py POX 0.2.0 (carp) / Copyright 2011-2013 James McCauley, et al. INFO:core:POX 0.2.0 (carp) is up.

    here after it shows nothing....it didnt show any error.............and any results......

    can you please help me.........

    点赞 评论 复制链接分享
  • weixin_39522423 weixin_39522423 2020-12-28 11:02

    I also encountered this problem, I want to know how you solved it?

    POX 0.5.0 (eel) / Copyright 2011-2014 James McCauley, et al. DEBUG:core:POX 0.5.0 (eel) going up... DEBUG:core:Running on CPython (2.7.12/Nov 12 2018 14:36:49) DEBUG:core:Platform is Linux-4.15.0-46-generic-x86_64-with-Ubuntu-16.04-xenial INFO:core:POX 0.5.0 (eel) is up. DEBUG:openflow.of_01:Listening on 0.0.0.0:6633 ERROR:openflow.of_01:Exception reading connection [None 1] Traceback (most recent call last): File "/home/ubuntu/pox/pox/openflow/of_01.py", line 1132, in run if con.read() is False: File "/home/ubuntu/pox/pox/openflow/of_01.py", line 926, in read new_offset,msg = self.unpackersofp_type File "/home/ubuntu/pox/pox/openflow/libopenflow_01.py", line 197, in unpack_new assert (r-offset) == length, o AssertionError: ofp_hello header: version: 4 type: 0 (OFPT_HELLO) length: 8 xid: 880 ERROR:openflow.of_01:Exception reading connection [None 2] Traceback (most recent call last): File "/home/ubuntu/pox/pox/openflow/of_01.py", line 1132, in run if con.read() is False: File "/home/ubuntu/pox/pox/openflow/of_01.py", line 926, in read new_offset,msg = self.unpackersofp_type File "/home/ubuntu/pox/pox/openflow/libopenflow_01.py", line 197, in unpack_new assert (r-offset) == length, o AssertionError: ofp_hello

    点赞 评论 复制链接分享
  • weixin_40002009 weixin_40002009 2020-12-28 11:02

    As in the first reply, the issue here is likely that Open vSwitch is talking a version of OpenFlow that POX doesn't understand (see the "version: 4" in the error messages). Configure OVS to speak OpenFlow 1.0, as per the OVS documentation. For example, for a datapath named br0, use ovs-vsctl to set OpenFlow 1.0 only:

    
    ovs-vsctl set bridge br0 protocols=OpenFlow10
    
    点赞 评论 复制链接分享

相关推荐