Thank You Ben for your inputs !!

Please suggest for the following as well:

1.  If eviction on the switch is set on the basis of "lifetime" by create  
table command and then the command for "importance" (mod-table command)  is 
given then what will be the basis of eviction in this case. Will in  this case, 
eviction will be performed on the basis of importance only  and not lifetime 
i.e, second value will overwrite the previously  configured eviction policy?

2. If not, then will it consider both  fields (lifetime and importance)  for 
eviction? For example, if a new  flow entry is to be added and flow table is 
full and eviction is set for  both lifetime and importance (using both create 
table and mod-table  command), then on what basis will it evict the flow entry?

3. If  eviction performed on basis of "lifetime" using create table command, we 
 can disable it using create table command setting  overflow-policy=refuse. 
Similarly if eviction is done for importance  using mod-table command, then how 
it can be disabled?

Thanks and Regards,
Saloni Jain
 Tata Consultancy Services
 Mailto: saloni.j...@tcs.com
 Website: http://www.tcs.com

-----Ben Pfaff <b...@nicira.com> wrote: -----
To: Saloni Jain <saloni.j...@tcs.com>
From: Ben Pfaff <b...@nicira.com>
Date: 09/08/2014 11:21PM
Cc: dev@openvswitch.org, Hiteshi Madan <hiteshi.ma...@tcs.com>, Deepankar Gupta 
<deepankar.gu...@tcs.com>
Subject: Re: [ovs-dev] Openflow 1.4: Eviction mechanism implementation

On Mon, Sep 08, 2014 at 04:53:57PM +0530, Saloni Jain wrote:
> 1. Setting eviction using table-mod messages should not disturb the
> current ovs eviction configuration mechanism(without implementation
> of openflow specification 1.4). That means, if eviction is to be
> performed on the basis of lifetime only, then it should be
> configured via ovs-vsctl create table... command(overflow-policy
> evict) and if it is to be performed on the basis of importance only,
> then it should be configured via ovs-ofctl mod-table... command ?

Right.

> 2. As per the openflow specs 1.4, section 7.3.4.1 (Page 72) ????
> "The OFPTMPT_EVICTION property usually cannot be modified using a
> OFP_TABLE_MOD request, because the eviction mechanism is switch
> defined, and this property is usually only used in a
> OFPMP_TABLE_DESC multipart reply to inform the controller about the
> eviction mechanism used."
> 
> By this, does it imply that if eviction for lifetime is set by
> ovs-vsctl create command, then the table property cannot be modified
> for eviction via importance using ovs-ofctl mod-table command. That
> is for a given table, eviction can be configured only once either
> via lifetime(ovs-vsctl create..) or importance (by table-mod
> messages...)?

This paragraph only means that OFPTMPT_EVICTION announces what forms
of eviction the switch supports.  It does not configure what kinds of
eviction are in use.  In other words, with OVS as written today the
"lifetime" and "other" bits would always be set, because those are the
kinds of eviction that OVS implements, and after your work is done all
three bits will be set.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


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

Reply via email to