CPqD / ofsoftswitch13

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

extra-long hello #199

Closed hojatm-huma closed 6 years ago

hojatm-huma commented 9 years ago

Hello guys, I have problem connecting to ODL. Can anyone please help?

tail -f /var/log/ofdatapath.log

Aug 18 11:24:17|00304|rconn|INFO|tcp:192.168.1.10:6633: connected
Aug 18 11:24:21|00305|rconn|INFO|tcp:127.0.0.1:6634: connection timed out
Aug 18 11:24:21|00306|rconn|INFO|tcp:127.0.0.1:6634: connection dropped
Aug 18 11:24:21|00307|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect
Aug 18 11:24:25|00308|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Aug 18 11:24:29|00309|rconn|INFO|tcp:127.0.0.1:6634: connection timed out
Aug 18 11:24:29|00310|rconn|INFO|tcp:127.0.0.1:6634: connection dropped
Aug 18 11:24:29|00311|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect
Aug 18 11:24:29|00312|rconn|INFO|tcp:192.168.1.10:6633: connection closed by peer
Aug 18 11:24:32|00313|rconn|INFO|tcp:192.168.1.10:6633: connecting...
Aug 18 11:24:33|00314|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Aug 18 11:24:33|00315|vconn|WARN|tcp:192.168.1.10:6633: extra-long hello:
00000000  04 00 00 10 00 00 00 15-00 01 00 08 00 00 00 12 |................|

again trying to connect,

/etc/init.f/openflow restart

Aug 18 11:25:24|00356|rconn|INFO|tcp:192.168.1.10:6633: connected
Aug 18 11:25:25|00357|rconn|INFO|tcp:127.0.0.1:6634: connection timed out
Aug 18 11:25:25|00358|rconn|INFO|tcp:127.0.0.1:6634: connection dropped
Aug 18 11:25:25|00359|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect
Aug 18 11:25:26|00056|vconn_stream|ERR|connection dropped mid-packet
Aug 18 11:25:30|00360|rconn|INFO|tcp:127.0.0.1:6634: connecting...
Aug 18 11:25:37|00361|rconn|INFO|tcp:127.0.0.1:6634: connection timed out
Aug 18 11:25:37|00362|rconn|INFO|tcp:127.0.0.1:6634: connection dropped
Aug 18 11:25:38|00057|vconn_stream|ERR|connection dropped mid-packet
Aug 18 11:25:37|00363|rconn|INFO|tcp:127.0.0.1:6634: waiting 4 seconds before reconnect
Aug 18 11:25:38|00364|rconn|INFO|tcp:192.168.1.10:6633: connection closed by peer
Aug 18 11:25:39|00365|rconn|INFO|tcp:192.168.1.10:6633: connecting...
Aug 18 11:25:40|00366|vconn|WARN|tcp:192.168.1.10:6633: extra-long hello:
00000000  04 00 00 10 00 00 00 15-00 01 00 08 00 00 00 12 |................|

wireshark output:

1. there is no hello reply from openflow:

screenshot from 2015-08-22 11 54 04

2. and i think i am using openflow 13:

screenshot from 2015-08-22 11 53 57

so what is wrong??

by the way, my ODL works fine with mininet. [i am not sure i am using openflow 13 on mininet] and i compiled the code with the latest openwrt.

hojatm-huma commented 9 years ago

And another question whyopenflow is making connection to 127.0.0.1 ?

hojatm-huma commented 9 years ago

I solved my problem this way: I was using the latest version of openwrt Chaos Calmer, and i think this was making this error:

Aug 18 11:25:38|00057|vconn_stream|ERR|connection dropped mid-packet

so i went to latest stable version BarrierBreaker, mentioned problem solved but still connection droping exist.

I found that in any time you want to connect to controller you need te restart openflow

/etc/init.d/openflow restart

, even in newly booted os.

BUT still i dont know why openflow is trying to find controller locally ( 127.0.0.1)!