CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
302 stars 192 forks source link

extra-long hello; can't directly forward to input port; caught signal 11; #255

Open ukiran-bdk opened 7 years ago

ukiran-bdk commented 7 years ago

Hi,

I am trying to connect an OpenWRT CC router to an ONOS Controller (laptop running ubuntu). I get below error. ONOS then prints error in the log - "disconnecting switch due to read timeout".

I need help in resolving this-

  1. How to stop trying connection with 127.0.0.1
  2. Signal 11 error

Thank You.

Console logs:

root@OpenWrt:/# /etc/init.d/openflow start eth1,ath0,ath1 Configuring OpenFlow switch for out-of-band control Sep 18 22:52:03|00001|dp_ports|ERR|ath0 device has assigned IPv6 address fe80::1034:56ff:fe78:9012 Sep 18 22:52:03|00002|dp_ports|ERR|ath1 device has assigned IPv6 address fe80::203:7fff:fe12:3456 No need for further configuration for out-of-band control Sep 18 22:52:06|00001|vlog|INFO|opened log file /tmp/log/ofdatapath.log Sep 18 22:52:06|00002|secchan|INFO|OpenFlow reference implementation version 1.3.0 Sep 18 22:52:06|00003|secchan|INFO|OpenFlow protocol version 0x04 Sep 18 22:52:06|00004|secchan|WARN|new management connection will receive asynchronous messages Sep 18 22:52:06|00005|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:06|00006|rconn|INFO|tcp:192.168.10.7:6633: connecting... Sep 18 22:52:06|00007|rconn|INFO|tcp:127.0.0.1:6634: connected Sep 18 22:52:06|00008|port_watcher|INFO|Datapath id is 000000000001 Sep 18 22:52:06|00009|vconn|WARN|tcp:192.168.10.7:6633: extra-long hello: 00000000 04 00 00 10 ff ff ff ff-00 01 00 08 00 00 00 72 |...............r|

Sep 18 22:52:06|00010|rconn|INFO|tcp:192.168.10.7:6633: connected Sep 18 22:52:06|00003|dp_acts|WARN|can't directly forward to input port. Sep 18 22:52:06|00004|dp_acts|WARN|can't directly forward to input port. Sep 18 22:52:06|00005|fault|EMER|Caught signal 11. 0x0100b945 0xe5930000 Sep 18 22:52:06|00011|rconn|INFO|tcp:127.0.0.1:6634: connection closed by peer Sep 18 22:52:07|00012|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:07|00013|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:07|00014|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:07|00015|rconn|INFO|tcp:127.0.0.1:6634: waiting 2 seconds before reconnect Sep 18 22:52:09|00016|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:09|00017|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:09|00018|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:09|00019|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:13|00020|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:13|00021|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:13|00022|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:13|00023|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:17|00024|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:17|00025|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:17|00026|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:17|00027|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:21|00028|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:21|00029|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:21|00030|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:21|00031|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:25|00032|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:25|00033|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:25|00034|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:25|00035|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:29|00036|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:29|00037|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:29|00038|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:29|00039|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:33|00040|rconn|INFO|tcp:127.0.0.1:6634: connecting... Sep 18 22:52:33|00041|rconn|INFO|tcp:127.0.0.1:6634: connection failed (Connection refused) Sep 18 22:52:33|00042|rconn|WARN|tcp:127.0.0.1:6634: connection dropped (Connection refused) Sep 18 22:52:33|00043|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect Sep 18 22:52:34|00044|rconn|INFO|tcp:192.168.10.7:6633: connection closed by peer Sep 18 22:52:36|00045|rconn|INFO|tcp:192.168.10.7:6633: connecting...

Regards, UK

nikchez01 commented 7 years ago

Not sure about other issues but below logs: Sep 18 22:52:06|00004|dp_acts|WARN|can't directly forward to input port. Sep 18 22:52:06|00005|fault|EMER|Caught signal 11.

are due to your openflow rules. Some of your rules are trying to send incoming packet to the incoming port itself. May be this case is not handled well and causing segmentation fault. You can debug it by setting "ulimit -c unlimited" and run core file in gdb.