[ovs-dev] How can i modify Flow table in Openvswitch??

2016-07-25 Thread Nam Bong Ha
Hi, all

i want to modify Flow table in Openvswitch.

i know that there are two types of Flow table.
(ex. hash-based flow table, wildcard-aware flow table)

i want to change the Matching filed in Flow table
(ex. existing Matching filed = src ip, dst ip, vlan, etc...
   changed Matching filed = *index*, src ip, dst ip, vlan, etc... -> i
inserted the *index* in there)

i saw lib/classifier.c and lib/hash.c

should i modify these sources?

thank U, all.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] How can i measure Hash based flow table performance in openvswitch?

2016-08-01 Thread Nam Bong Ha
Hi, all

I want to measure Hash based flow table performance in Openvswitch.
(Not Wildcard and Wildcard+Hash, Only Hash)

ex.
Two switch has same flow table size.

A-switch -> flow table utilization rate = 50%

B-switch -> flow table utilization rate = 100%

Any, ideas?

Thankyou
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] I have some questions about kernel space

2016-08-04 Thread Nam Bong Ha
Hi, all

How can I look flow table of kernel space?

What does flows mean which shows when I type 'ovs-dpctl show'?

How can I measure flow table lookup time of kernel space?

How can I know flow table max size of kernel space?

Thank you.
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] Where does the flow table size of datapath defined in?

2016-08-10 Thread Nam Bong Ha
Hi, all

Where does the flow table size of datapath defined in?

I supposed it is related to MC_HASH_ENTRIES which is defined at 54th line
in datapath/flow_table.c.

Does the source defined in 271th line represents flow table size?
(  table->mask_cache = __alloc_percpu(sizeof(struct mask_cache_entry) *
 MC_HASH_ENTRIES, __alignof__(struct mask_cache_entry)); )

Moreover if flow table size gets full, what happens?

For example, if flow table size is 10 and flow table status is full, the
new entry comes... replace? drop?

Thank you
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


[ovs-dev] Is linear search a searching method for vswitchd flow table?

2016-08-12 Thread Nam Bong Ha
Hi

Is linear search a searching method for vswitchd flow table?

I filled the following command to vswitchd flow table.

Experiment 1.
(in_port1, priority=65000)
  ovs-ofctl add-flow s1 "table=0 priority=65000 in_port=1 actions=ouitput:2"
  ovs-ofctl add-flow s1 "table=0 priority=3 in_port=3 actions=drop"
  ovs-ofctl add-flow s1 "table=0 priority=4 in_port=4 actions=drop"
  ovs-ofctl add-flow s1 "table=0 priority=5 in_port=5 actions=drop"
  ...

Experiment2.
(in_port1, priority=0)
  ovs-ofctl add-flow s1 "table=0 priority=0 in_port=1 actions=ouitput:2"
  ovs-ofctl add-flow s1 "table=0 priority=3 in_port=3 actions=drop"
  ovs-ofctl add-flow s1 "table=0 priority=4 in_port=4 actions=drop"
  ovs-ofctl add-flow s1 "table=0 priority=5 in_port=5 actions=drop"
  ...

After establishing as above, I sent packet from port=1 to port=2. And
measured time of departure and time of arrival to wireshark.

However, against my expectation, the time which packet takes to reach was
pretty much the same at two experiments.

Why does these result comes out?

Shouldn't we have to search in regular order of flow table?(In concordance
with the priority, ex. 0,1,2,...65000)

Thank U
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev


Re: [ovs-dev] Is linear search a searching method for vswitchd flow table?

2016-08-13 Thread Nam Bong Ha
Has the tuple space search been used from the early version?

In several thesis I read, it says they do linear search.

Isn't there any openswitch version that uses linear search?

Thank you

2016. 8. 13. 오전 1:49에 "Ben Pfaff" 님이 작성:

> On Fri, Aug 12, 2016 at 08:40:12PM +0900, Nam Bong Ha wrote:
> > Is linear search a searching method for vswitchd flow table?
>
> No.  Read the NSDI paper:
> http://openvswitch.org/support/papers/nsdi2015.pdf
>
___
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev