[ovs-discuss] addition of flows more than the maximum value in flow table
akash sharma
akashsharma.0812 at gmail.com
Thu May 16 06:49:08 UTC 2013
Hi,
I am trying to test the default maximum value of flow_limit in a
flow_table.
To achieve this, I executed the following commands:
[root at user]# ovs-ofctl dump-tables br0 | less OFPST_TABLE reply (xid=0x1):
255 tables
0: classifier: wild=0x3fffff, max=1000000, active=9
lookup=350074, matched=231250
1: main1 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
2: table2 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
3: table3 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
4: table4 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
5: table5 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
6: table6 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
:
Using script, I added flow entries to the table 1.
On again executing dump-tables command, the result is as follows:
[root at user]# ovs-ofctl dump-tables br0 | less OFPST_TABLE reply (xid=0x1):
255 tables
0: classifier: wild=0x3fffff, max=1000000, active=9
lookup=350329, matched=231641
1: table1 : wild=0x3fffff, max=1000000, active=100001
lookup=0, matched=0
2: table2 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
3: table3 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
4: table4 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
5: table5 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
6: table6 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
:
In table1, the active flow entries exceed the max value.
But when I change the max flow_limit of a table, then the scenario works
fine.
Following are the commands executed:
[root at user]# ovs-vsctl -- --id=@t1 create Flow_Table flow-limit=2 -- set
bridge br0 flow_tables={1=@t1}
f5f725e6-b30a-499f-b053-bdca5dcbd0d8
[root at user]#
[root at user]# ovs-vsctl list flow_table
_uuid : f5f725e6-b30a-499f-b053-bdca5dcbd0d8
flow_limit : 2
groups : []
name : []
overflow_policy : []
[root at user]# ovs-ofctl add-flow br0 "table=1, ip,nw_src=10.0.2.20
action=normal"
[root at user]# ovs-ofctl add-flow br0 "table=1, ip,nw_src=10.0.2.30
action=normal"
[root at user]# ovs-ofctl add-flow br0 "table=1, ip,nw_src=10.0.2.40
action=normal"
OFPT_ERROR (xid=0x4): OFPFMFC_ALL_TABLES_FULL (***truncated to 64 bytes
from 80***) 00000000 01 0e 00 50 00 00 00 04-00 38 00 ef 00 00 00 00
|...P.....8......| 00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 08
00 |................| 00000020 00 00 00 00 0a 00 02 28-00 00 00 00 00 00
00 00 |.......(........| 00000030 00 00 00 00 00 00 00 00-01 00 00 00 00
00 80 00 |................|
[root at user]# [root at user]# ovs-ofctl dump-tables br0 |less OFPST_TABLE reply
(xid=0x1): 255 tables
0: classifier: wild=0x3fffff, max=1000000, active=1
lookup=322, matched=215
1: table1 : wild=0x3fffff, max= 2, active=2
lookup=0, matched=0
2: table2 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
3: table3 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
4: table4 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
5: table5 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
6: table6 : wild=0x3fffff, max=1000000, active=0
lookup=0, matched=0
:
Please let me know if the above behavior is expected??
Regards,
Akash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130516/c151483c/attachment.html>
More information about the discuss
mailing list