[ovs-discuss] to send OFPT_HELLO message wth OFPHET_VERSIONBITMAP

Ben Pfaff blp at nicira.com
Mon Jul 8 17:21:26 UTC 2013


On Thu, Jul 04, 2013 at 07:58:03PM +0800, santiswarup misra wrote:
>     I am using OVS-1.10.0. And i use it with all the OF version by the command:
>  
> ovs-vsctl set bridge br0 protocols=OpenFlow10,OpenFlow12,OpenFlow13
>  
> But this doesn't make OVS to send a hello packet with VERSION BITMAP.

Here's a session with "make sandbox" that shows a version bitmap:

----------------------------------------------------------------------
You are running in a dummy Open vSwitch environment.  You can use
ovs-vsctl, ovs-ofctl, ovs-appctl, and other tools to work with the
dummy switch.  

Log files, pidfiles, and the configuration database are in the
"sandbox" subdirectory.

Exit the shell to kill the running daemons.
blp at sigsegv:~/ovs/tutorial$ ovs-vsctl add-br br0
blp at sigsegv:~/ovs/tutorial$ ovs-vsctl set bridge br0 protocols=OpenFlow10,OpenFlow12,OpenFlow13
blp at sigsegv:~/ovs/tutorial$ ovs-ofctl -vvconn show br0
2013-07-08T17:20:46Z|00001|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: sent (Success): OFPT_HELLO (xid=0x1):
 version bitmap: 0x01
2013-07-08T17:20:46Z|00002|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: received: OFPT_HELLO (OF1.3) (xid=0x1):
 version bitmap: 0x01, 0x03, 0x04
2013-07-08T17:20:46Z|00003|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: negotiated OpenFlow version 0x01 (we support version 0x01, peer supports versions 0x01, 0x03, 0x04)
2013-07-08T17:20:46Z|00004|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: sent (Success): OFPT_FEATURES_REQUEST (xid=0x2):
2013-07-08T17:20:46Z|00005|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: received: OFPT_FEATURES_REPLY (xid=0x2): dpid:0000da0c5cdcfb4e
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 LOCAL(br0): addr:da:0c:5c:dc:fb:4e
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000da0c5cdcfb4e
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 LOCAL(br0): addr:da:0c:5c:dc:fb:4e
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
2013-07-08T17:20:46Z|00006|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: sent (Success): OFPT_HELLO (xid=0x3):
 version bitmap: 0x01
2013-07-08T17:20:46Z|00007|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: received: OFPT_HELLO (OF1.3) (xid=0x2):
 version bitmap: 0x01, 0x03, 0x04
2013-07-08T17:20:46Z|00008|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: negotiated OpenFlow version 0x01 (we support version 0x01, peer supports versions 0x01, 0x03, 0x04)
2013-07-08T17:20:46Z|00009|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: sent (Success): OFPT_GET_CONFIG_REQUEST (xid=0x4):
2013-07-08T17:20:46Z|00010|vconn|DBG|unix:/home/blp/ovs/tutorial/sandbox/br0.mgmt: received: OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
blp at sigsegv:~/ovs/tutorial$ 



More information about the discuss mailing list