[ovs-discuss] OVS-OFCTL - negotiated OpenFlow version

Vipin Garg vkg.2006 at gmail.com
Wed May 6 21:52:16 UTC 2015


Hello,

I am trying to update the status of one of the port using following command
-


data2 # ./ovs-ofctl mod-port  vlan20-odl sp4 up

And I got following error message ...

2015-05-06T20:52:49Z|00001|vconn|WARN|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt:
version negotiation failed (we support version 0x01, peer supports version
0x04)
ovs-ofctl: vlan20-odl: failed to connect to socket (Protocol error)


As suggested on some mailing list, I added openflow versions as follows -

./ovs-vsctl set bridge vlan20-odl
protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14,OpenFlow15

and then again update the port ..

./ovs-ofctl --verbose mod-port  vlan20-odl sp4 up

In the logs, I see that --

2015-05-06T21:39:55Z|00015|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt:
negotiated OpenFlow version 0x01 (we support version 0x01, peer supports
version 0x06 and earlier)


My question is -

1. Why the negotiated OF version is 1 (not 1.4) when peer (OpenDayLight )
can support higher version
2 How can I make  trained OVS to communicate using higher version of OF ..

3. Why I still don't see port status getting update , Am I missing
something ?

Thanks

Vipin Garg

Fortinet ..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150506/4ee90da1/attachment-0002.html>
-------------- next part --------------
/data2 # ./ovs-ofctl --verbose mod-port  vlan20-odl sp2 up
2015-05-06T21:39:55Z|00001|stream_unix|DBG|/usr/local/var/run/openvswitch/vlan20-odl: connection failed (No such file or directory)
2015-05-06T21:39:55Z|00002|ofctl|DBG|connecting to unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt
2015-05-06T21:39:55Z|00003|hmap|DBG|lib/ofp-msgs.c:1080: 8 nodes in bucket (32 nodes, 16 buckets)
2015-05-06T21:39:55Z|00004|hmap|DBG|lib/ofp-msgs.c:1080: 8 nodes in bucket (64 nodes, 32 buckets)
2015-05-06T21:39:55Z|00005|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (128 nodes, 64 buckets)
2015-05-06T21:39:55Z|00006|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (256 nodes, 128 buckets)
2015-05-06T21:39:55Z|00007|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (256 nodes, 128 buckets)
2015-05-06T21:39:55Z|00008|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (512 nodes, 256 buckets)
2015-05-06T21:39:55Z|00009|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (512 nodes, 256 buckets)
2015-05-06T21:39:55Z|00010|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (512 nodes, 256 buckets)
2015-05-06T21:39:55Z|00011|hmap|DBG|lib/ofp-msgs.c:1080: 6 nodes in bucket (512 nodes, 256 buckets)
2015-05-06T21:39:55Z|00012|hmap|DBG|lib/ofp-msgs.c:1080: 7 nodes in bucket (512 nodes, 256 buckets)
2015-05-06T21:39:55Z|00013|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: sent (Success): OFPT_HELLO (xid=0x1):
 version bitmap: 0x01
2015-05-06T21:39:55Z|00014|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: received: OFPT_HELLO (OF1.5) (xid=0x11):
 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
2015-05-06T21:39:55Z|00015|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: negotiated OpenFlow version 0x01 (we support version 0x01, peer supports version 0x06 and earlier)
2015-05-06T21:39:55Z|00016|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: sent (Success): OFPT_FEATURES_REQUEST (xid=0x2):
2015-05-06T21:39:55Z|00017|poll_loop|DBG|wakeup due to 0-ms timeout
2015-05-06T21:39:55Z|00018|poll_loop|DBG|wakeup due to [POLLIN] on fd 8 (<->/usr/local/var/run/openvswitch/vlan20-odl.mgmt) at lib/stream-fd.c:155
2015-05-06T21:39:55Z|00019|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: received: OFPT_FEATURES_REPLY (xid=0x2): dpid:0000001a4aa8be06
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
 1(sp10): addr:00:1a:4a:a8:be:06
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 2(sp2): addr:00:00:00:00:00:00
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
 3(sp3): addr:00:00:00:00:00:00
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
2015-05-06T21:39:55Z|00020|stream_unix|DBG|/usr/local/var/run/openvswitch/vlan20-odl: connection failed (No such file or directory)
2015-05-06T21:39:55Z|00021|ofctl|DBG|connecting to unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt
2015-05-06T21:39:55Z|00022|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: sent (Success): OFPT_HELLO (xid=0x3):
 version bitmap: 0x01
2015-05-06T21:39:55Z|00023|poll_loop|DBG|wakeup due to [POLLIN] on fd 8 (<->/usr/local/var/run/openvswitch/vlan20-odl.mgmt) at lib/stream-fd.c:155
2015-05-06T21:39:55Z|00024|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: received: OFPT_HELLO (OF1.5) (xid=0x12):
 version bitmap: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06
2015-05-06T21:39:55Z|00025|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: negotiated OpenFlow version 0x01 (we support version 0x01, peer supports version 0x06 and earlier)
2015-05-06T21:39:55Z|00026|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: sent (Success): OFPT_PORT_MOD (xid=0x4):port: 2: addr:00:00:00:00:00:00
     config: 0
     mask:   PORT_DOWN
     advertise: UNCHANGED
2015-05-06T21:39:55Z|00027|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: sent (Success): OFPT_BARRIER_REQUEST (xid=0x5):
2015-05-06T21:39:55Z|00028|poll_loop|DBG|wakeup due to [POLLIN] on fd 8 (<->/usr/local/var/run/openvswitch/vlan20-odl.mgmt) at lib/stream-fd.c:155
2015-05-06T21:39:55Z|00029|vconn|DBG|unix:/usr/local/var/run/openvswitch/vlan20-odl.mgmt: received: OFPT_BARRIER_REPLY (xid=0x5):


More information about the discuss mailing list