Discussion:
[ovs-discuss] Changing flow table size?
NGUYEN Xuan Nam
2013-01-24 16:12:57 UTC
Permalink
Hello,

I am working with OpenFlow and OVSwitch version 1.4.3. I read somewhere said that OVSwitch's flow table supports up to 10^6 flow entries.

Is it possible to change this limitations (for example, 1000 flow entries)?
If yes, how to do that ?

Thanks.

Nam








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130124/cfffe157/attachment.htm>
Amit Tewari
2013-01-24 16:37:55 UTC
Permalink
Hi ,
In 1.4.3 this setting for flow limitation is not supported.
*Flow_table* has been introduced by which we can limit flow table entries
size. you can verify from *man ovs-vswitchd.conf.db* in 1.4.3 to see if
this Flow_table exists or not.
In *1.7.1 Flow_table * do exists.

*Amit Tewari*

*Module Lead*


**


On Thu, Jan 24, 2013 at 9:42 PM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I am working with OpenFlow and OVSwitch version 1.4.3. I read somewhere
said that OVSwitch's flow table supports up to 10^6 flow entries.
Is it possible to change this limitations (for example, 1000 flow entries)?
If yes, how to do that ?
Thanks.
Nam
_______________________________________________
discuss mailing list
discuss at openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130124/57b8e4a5/attachment.htm>
NGUYEN Xuan Nam
2013-03-14 12:31:51 UTC
Permalink
Hello,
I am using Open Vswitch 1.9 and I would like to change the OpenFlow flow
table limit to 1000
However, I see the flow_table is null.
I cannot add an entry using ovs-vsctl (console output below)

Did I forget something?

Thanks

Nam



*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl add flow_table s1 flow_limit 1000
ovs-vsctl: no row "s1" in table Flow_Table

*



*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge*
_uuid : b3bcdd28-523d-4f31-b257-7c9668fa277b
controller : [3b7bb795-6764-417f-9f3f-143ed21ed1a9]
datapath_id : "0000000000000002"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {}
mirrors : []
name : "s2"
netflow : []
other_config : {datapath-id="0000000000000002"}
ports : [08400634-c64f-47d0-ad02-ded3c8bb49dd,
717f2ac6-30e7-4a5f-b5d2-9ec2fe85ddd6, dbc1db80-4887-4d77-ac71-0a16f17f5508]
sflow : []
status : {}
stp_enable : false

_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false

_uuid : 76a0d196-fd56-4549-94ca-85d37f40f37f
controller : [6ab8fc85-1ed5-4a47-be30-3774281aeeb6]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {}
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [8a740629-08ea-45c0-9003-bb69da01a875,
ae3d238f-c702-47a6-b8da-e9073a403c5e, d015f828-fa1f-47da-9b1c-2a78d1f766c4]
sflow : []
status : {}
stp_enable : false

*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl **dump-flows s1*
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=76.917s, table=0, n_packets=77, n_bytes=7546,
idle_timeout=60, idle_age=0,
priority=0,icmp,in_port=1,vlan_tci=0x0000,dl_src=86:10:75:ee:07:65,dl_dst=06:d6:83:b9:aa:87,nw_src=10.0.0.1,nw_dst=10.0.0.2,nw_tos=0,icmp_type=8,icmp_code=0
actions=output:2
cookie=0x0, duration=76.916s, table=0, n_packets=77, n_bytes=7546,
idle_timeout=60, idle_age=0,
priority=0,icmp,in_port=2,vlan_tci=0x0000,dl_src=06:d6:83:b9:aa:87,dl_dst=86:10:75:ee:07:65,nw_src=10.0.0.2,nw_dst=10.0.0.1,nw_tos=0,icmp_type=0,icmp_code=0
actions=output:1
cookie=0x0, duration=71.906s, table=0, n_packets=4, n_bytes=168,
idle_timeout=60, idle_age=5,
priority=0,arp,in_port=1,vlan_tci=0x0000,dl_src=86:10:75:ee:07:65,dl_dst=06:d6:83:b9:aa:87,arp_spa=10.0.0.1,arp_tpa=10.0.0.2,arp_op=2
actions=output:2
cookie=0x0, duration=71.906s, table=0, n_packets=4, n_bytes=168,
idle_timeout=60, idle_age=5,
priority=0,arp,in_port=2,vlan_tci=0x0000,dl_src=06:d6:83:b9:aa:87,dl_dst=86:10:75:ee:07:65,arp_spa=10.0.0.2,arp_tpa=10.0.0.1,arp_op=1
actions=output:1
Post by Amit Tewari
Hi ,
In 1.4.3 this setting for flow limitation is not supported.
*Flow_table* has been introduced by which we can limit flow table
entries size. you can verify from *man ovs-vswitchd.conf.db* in 1.4.3
to see if this Flow_table exists or not.
In *1.7.1 Flow_table * do exists.
*Amit Tewari*
*Module Lead*
On Thu, Jan 24, 2013 at 9:42 PM, NGUYEN Xuan Nam
Hello,
I am working with OpenFlow and OVSwitch version 1.4.3. I read
somewhere said that OVSwitch's flow table supports up to 10^6 flow
entries.
Is it possible to change this limitations (for example, 1000 flow entries)?
If yes, how to do that ?
Thanks.
Nam
_______________________________________________
discuss mailing list
discuss at openvswitch.org <mailto:discuss at openvswitch.org>
http://openvswitch.org/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130314/403ea293/attachment-0001.htm>
NGUYEN Xuan Nam
2013-03-14 14:13:06 UTC
Permalink
Hello,

I found the way to configure the flow limit, however, the flow limit
seems not work. I am still able to insert more than the limitation. Did
I forget something ?

Nam

sudo ovs-vsctl add bridge s1 flow_tables 1=@nam1 -- --id=@nam1 create
flow_table flow_limit=1

namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge
_uuid : 2ca85b58-a002-4239-8fc0-f2bb9963789d
controller : [048c4dce-6e05-4337-8d7e-5a12072d6c76]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
*flow_tables : {1=a2359008-da54-43ea-80fe-10580c4b7d09}*
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [20124670-1666-4268-820f-d993441d1300,
63a4f5d2-80f9-49f2-881a-d94d7d49c2c7,
82f6b83d-4932-4816-a5b3-5762b3fd7633, a1bf57bb-2b2e-430a-90f3-97911b496428]
sflow : []
status : {}
stp_enable : false

_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false
*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list flow_table**
**_uuid : a2359008-da54-43ea-80fe-10580c4b7d09**
**flow_limit : 1**
**groups : []**
**name : []**
**overflow_policy : []*


namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=1,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=3,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl dump-flows s1
NXST_FLOW reply (xid=0x4):
* cookie=0x0, duration=17.935s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=17, priority=65535,udp,in_port=1
actions=output:2**
** cookie=0x0, duration=12.927s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=12, priority=65535,udp,in_port=3
actions=output:2*
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$
Post by NGUYEN Xuan Nam
Hello,
I am using Open Vswitch 1.9 and I would like to change the OpenFlow
flow table limit to 1000
However, I see the flow_table is null.
I cannot add an entry using ovs-vsctl (console output below)
Did I forget something?
Thanks
Nam
*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl add flow_table s1 flow_limit 1000
ovs-vsctl: no row "s1" in table Flow_Table
*
*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge*
_uuid : b3bcdd28-523d-4f31-b257-7c9668fa277b
controller : [3b7bb795-6764-417f-9f3f-143ed21ed1a9]
datapath_id : "0000000000000002"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {}
mirrors : []
name : "s2"
netflow : []
other_config : {datapath-id="0000000000000002"}
ports : [08400634-c64f-47d0-ad02-ded3c8bb49dd,
717f2ac6-30e7-4a5f-b5d2-9ec2fe85ddd6,
dbc1db80-4887-4d77-ac71-0a16f17f5508]
sflow : []
status : {}
stp_enable : false
_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23,
e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false
_uuid : 76a0d196-fd56-4549-94ca-85d37f40f37f
controller : [6ab8fc85-1ed5-4a47-be30-3774281aeeb6]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {}
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [8a740629-08ea-45c0-9003-bb69da01a875,
ae3d238f-c702-47a6-b8da-e9073a403c5e,
d015f828-fa1f-47da-9b1c-2a78d1f766c4]
sflow : []
status : {}
stp_enable : false
*namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl **dump-flows s1*
cookie=0x0, duration=76.917s, table=0, n_packets=77, n_bytes=7546,
idle_timeout=60, idle_age=0,
priority=0,icmp,in_port=1,vlan_tci=0x0000,dl_src=86:10:75:ee:07:65,dl_dst=06:d6:83:b9:aa:87,nw_src=10.0.0.1,nw_dst=10.0.0.2,nw_tos=0,icmp_type=8,icmp_code=0
actions=output:2
cookie=0x0, duration=76.916s, table=0, n_packets=77, n_bytes=7546,
idle_timeout=60, idle_age=0,
priority=0,icmp,in_port=2,vlan_tci=0x0000,dl_src=06:d6:83:b9:aa:87,dl_dst=86:10:75:ee:07:65,nw_src=10.0.0.2,nw_dst=10.0.0.1,nw_tos=0,icmp_type=0,icmp_code=0
actions=output:1
cookie=0x0, duration=71.906s, table=0, n_packets=4, n_bytes=168,
idle_timeout=60, idle_age=5,
priority=0,arp,in_port=1,vlan_tci=0x0000,dl_src=86:10:75:ee:07:65,dl_dst=06:d6:83:b9:aa:87,arp_spa=10.0.0.1,arp_tpa=10.0.0.2,arp_op=2
actions=output:2
cookie=0x0, duration=71.906s, table=0, n_packets=4, n_bytes=168,
idle_timeout=60, idle_age=5,
priority=0,arp,in_port=2,vlan_tci=0x0000,dl_src=06:d6:83:b9:aa:87,dl_dst=86:10:75:ee:07:65,arp_spa=10.0.0.2,arp_tpa=10.0.0.1,arp_op=1
actions=output:1
Post by Amit Tewari
Hi ,
In 1.4.3 this setting for flow limitation is not supported.
*Flow_table* has been introduced by which we can limit flow table
entries size. you can verify from *man ovs-vswitchd.conf.db* in 1.4.3
to see if this Flow_table exists or not.
In *1.7.1 Flow_table * do exists.
*Amit Tewari*
*Module Lead*
On Thu, Jan 24, 2013 at 9:42 PM, NGUYEN Xuan Nam
Hello,
I am working with OpenFlow and OVSwitch version 1.4.3. I read
somewhere said that OVSwitch's flow table supports up to 10^6
flow entries.
Is it possible to change this limitations (for example, 1000 flow entries)?
If yes, how to do that ?
Thanks.
Nam
_______________________________________________
discuss mailing list
discuss at openvswitch.org <mailto:discuss at openvswitch.org>
http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
discuss at openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130314/d97e39d1/attachment.htm>
Jesse Gross
2013-03-14 15:32:25 UTC
Permalink
On Thu, Mar 14, 2013 at 7:13 AM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I found the way to configure the flow limit, however, the flow limit seems
not work. I am still able to insert more than the limitation. Did I forget
something ?
Nam
flow_table flow_limit=1
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge
_uuid : 2ca85b58-a002-4239-8fc0-f2bb9963789d
controller : [048c4dce-6e05-4337-8d7e-5a12072d6c76]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {1=a2359008-da54-43ea-80fe-10580c4b7d09}
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [20124670-1666-4268-820f-d993441d1300,
63a4f5d2-80f9-49f2-881a-d94d7d49c2c7, 82f6b83d-4932-4816-a5b3-5762b3fd7633,
a1bf57bb-2b2e-430a-90f3-97911b496428]
sflow : []
status : {}
stp_enable : false
_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list flow_table
_uuid : a2359008-da54-43ea-80fe-10580c4b7d09
flow_limit : 1
groups : []
name : []
overflow_policy : []
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=1,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=3,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl dump-flows s1
cookie=0x0, duration=17.935s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=17, priority=65535,udp,in_port=1
actions=output:2
cookie=0x0, duration=12.927s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=12, priority=65535,udp,in_port=3
actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$
You put a limit on table 1 and then inserted in table 0.
NGUYEN Xuan Nam
2013-03-15 08:38:29 UTC
Permalink
I did it and it works.
Thank you very much

Nam
Post by Jesse Gross
On Thu, Mar 14, 2013 at 7:13 AM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I found the way to configure the flow limit, however, the flow limit seems
not work. I am still able to insert more than the limitation. Did I forget
something ?
Nam
flow_table flow_limit=1
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge
_uuid : 2ca85b58-a002-4239-8fc0-f2bb9963789d
controller : [048c4dce-6e05-4337-8d7e-5a12072d6c76]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {1=a2359008-da54-43ea-80fe-10580c4b7d09}
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [20124670-1666-4268-820f-d993441d1300,
63a4f5d2-80f9-49f2-881a-d94d7d49c2c7, 82f6b83d-4932-4816-a5b3-5762b3fd7633,
a1bf57bb-2b2e-430a-90f3-97911b496428]
sflow : []
status : {}
stp_enable : false
_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list flow_table
_uuid : a2359008-da54-43ea-80fe-10580c4b7d09
flow_limit : 1
groups : []
name : []
overflow_policy : []
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=1,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=3,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl dump-flows s1
cookie=0x0, duration=17.935s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=17, priority=65535,udp,in_port=1
actions=output:2
cookie=0x0, duration=12.927s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=12, priority=65535,udp,in_port=3
actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$
You put a limit on table 1 and then inserted in table 0.
NGUYEN Xuan Nam
2013-03-18 15:55:20 UTC
Permalink
*Hello,

I inserted a row into flow_table using this command*
sudo ovs-vsctl add bridge s1 flow_tables 0=@nam1 -- --id=@nam1 create
flow_table flow_limit=1000

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 1000
groups : []
name : []
overflow_policy : []
*I can update my flow_table using the _uuid as row_id*

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl set flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88 flow_limit=10000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list
flow_table_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []

*However I cannot destroy this record or clear flow_table*

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl destroy flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl --all destroy
flow_table
ovs-vsctl: unrecognized option '--all'

*Did I forget something?*

Thanks.
Nam
Post by Jesse Gross
On Thu, Mar 14, 2013 at 7:13 AM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I found the way to configure the flow limit, however, the flow limit seems
not work. I am still able to insert more than the limitation. Did I forget
something ?
Nam
flow_table flow_limit=1
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list bridge
_uuid : 2ca85b58-a002-4239-8fc0-f2bb9963789d
controller : [048c4dce-6e05-4337-8d7e-5a12072d6c76]
datapath_id : "0000000000000001"
datapath_type : ""
external_ids : {}
fail_mode : secure
flood_vlans : []
flow_tables : {1=a2359008-da54-43ea-80fe-10580c4b7d09}
mirrors : []
name : "s1"
netflow : []
other_config : {datapath-id="0000000000000001"}
ports : [20124670-1666-4268-820f-d993441d1300,
63a4f5d2-80f9-49f2-881a-d94d7d49c2c7, 82f6b83d-4932-4816-a5b3-5762b3fd7633,
a1bf57bb-2b2e-430a-90f3-97911b496428]
sflow : []
status : {}
stp_enable : false
_uuid : 244fd892-57c0-4bf0-a94b-6f1f51683591
controller : [12c6369d-f810-436f-9306-0edcb154774c]
datapath_id : "000092d84f24f04b"
datapath_type : ""
external_ids : {}
fail_mode : []
flood_vlans : []
flow_tables : {}
mirrors : []
name : br-int
netflow : []
other_config : {}
ports : [04add379-539d-40b7-9aa3-9474699ef112,
51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
sflow : []
status : {}
stp_enable : false
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-vsctl list flow_table
_uuid : a2359008-da54-43ea-80fe-10580c4b7d09
flow_limit : 1
groups : []
name : []
overflow_policy : []
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=1,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl add-flow system at s1
priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=3,actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
ovs-ofctl dump-flows s1
cookie=0x0, duration=17.935s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=17, priority=65535,udp,in_port=1
actions=output:2
cookie=0x0, duration=12.927s, table=0, n_packets=0, n_bytes=0,
idle_timeout=50000, idle_age=12, priority=65535,udp,in_port=3
actions=output:2
namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$
You put a limit on table 1 and then inserted in table 0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130318/22d47fb5/attachment-0001.htm>
Jesse Gross
2013-03-18 16:00:55 UTC
Permalink
On Mon, Mar 18, 2013 at 8:55 AM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I inserted a row into flow_table using this command
flow_table flow_limit=1000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 1000
groups : []
name : []
overflow_policy : []
I can update my flow_table using the _uuid as row_id
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl set flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88 flow_limit=10000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table_uuid
: 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
However I cannot destroy this record or clear flow_table
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl destroy flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl --all destroy
flow_table
ovs-vsctl: unrecognized option '--all'
Did I forget something?
The ovs-vsctl man page says:

The destroy command is only useful for records in the QoS or
Queue tables. Records in other tables are automatically deleted
from the database when they become unreachable from the
Open_vSwitch table. This means that deleting the last reference
to a record is sufficient for deleting the record itself. For
records in these tables, destroy is silently ignored. See the
EXAMPLES section below for more information.
NGUYEN Xuan Nam
2013-03-18 16:11:50 UTC
Permalink
I deleted references from table Bridge and entries in Flow_Table are
automatically deleted.

Thanks for your help !

Nam
Post by Jesse Gross
On Mon, Mar 18, 2013 at 8:55 AM, NGUYEN Xuan Nam
Post by NGUYEN Xuan Nam
Hello,
I inserted a row into flow_table using this command
flow_table flow_limit=1000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 1000
groups : []
name : []
overflow_policy : []
I can update my flow_table using the _uuid as row_id
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl set flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88 flow_limit=10000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table_uuid
: 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
However I cannot destroy this record or clear flow_table
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl destroy flow_table
850342e5-8d93-4114-beeb-d42fdd0c5c88
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl --all destroy
flow_table
ovs-vsctl: unrecognized option '--all'
Did I forget something?
The destroy command is only useful for records in the QoS or
Queue tables. Records in other tables are automatically deleted
from the database when they become unreachable from the
Open_vSwitch table. This means that deleting the last reference
to a record is sufficient for deleting the record itself. For
records in these tables, destroy is silently ignored. See the
EXAMPLES section below for more information.
Ben Pfaff
2013-03-18 16:52:02 UTC
Permalink
Post by NGUYEN Xuan Nam
*However I cannot destroy this record or clear flow_table*
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl destroy
flow_table 850342e5-8d93-4114-beeb-d42fdd0c5c88
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit : 10000
groups : []
name : []
overflow_policy : []
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl --all destroy
flow_table
ovs-vsctl: unrecognized option '--all'
*Did I forget something?*
Yes, you have to clear the reference to the flow table by removing it
from the bridge record.

NGUYEN Xuan Nam
2013-01-24 16:47:23 UTC
Permalink
Thank you very much.

Nam


----- Original Message -----


From: "Amit Tewari" <stephansamit at gmail.com>
To: "NGUYEN Xuan Nam" <xuan-nam.nguyen at inria.fr>, discuss at openvswitch.org
Sent: Thursday, January 24, 2013 5:37:55 PM
Subject: Re: [ovs-discuss] Changing flow table size?

Hi ,
In 1.4.3 this setting for flow limitation is not supported.
Flow_table has been introduced by which we can limit flow table entries size. you can verify from man ovs-vswitchd.conf.db in 1.4.3 to see if this Flow_table exists or not.
In 1.7.1 Flow_table do exists.


Amit Tewari

Module Lead





On Thu, Jan 24, 2013 at 9:42 PM, NGUYEN Xuan Nam < xuan-nam.nguyen at inria.fr > wrote:

<blockquote>


Hello,

I am working with OpenFlow and OVSwitch version 1.4.3. I read somewhere said that OVSwitch's flow table supports up to 10^6 flow entries.

Is it possible to change this limitations (for example, 1000 flow entries)?
If yes, how to do that ?

Thanks.

Nam









_______________________________________________
discuss mailing list
discuss at openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss





</blockquote>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/discuss/attachments/20130124/d48c186d/attachment.htm>
Loading...