Hi,

>Do we have to assign the weights for these two buckets as zero. 

Yes.

"7.3.4.2 Modify Group Entry Message" in OFspec1.3.4 says:
  The weight field is only defined for select groups, 
  and its support is optional. For other group types,
  this fields must be set to 0.

>In case of fast fail over group type what should be the value for these two 
>fields. 

These fields indicate the port and/or group whose liveness controls whether 
this bucket is a candidate for forwarding. More details are described in "6.5 
Group Table Modification Messages" of OFspec1.3.4.

On 2015年01月18日 10:52, Padma Jayasankar wrote:
> Hi,
>   To use fast fail over feature, we have to add more than one buckets. Do we 
> have to assign the weights for these two buckets as zero. If not what should 
> be the value. Further what does watch_port and watch_group represent. In case 
> of fast fail over group type what should be the value for these two fields. 
> Please clarify
> 
> Thanks and Regards,
> Padma V
> 
> On Tue, Jan 13, 2015 at 7:52 AM, Yusuke Iwase <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Hi Padma,
> 
>     On 2015年01月12日 09:08, Padma Jayasankar wrote:
>     > Hi,
>     >   I want to use fast fail over group type of OpenFlow 1.3. I need 
> sample flow entries for doing this. According to my knowledge, we have to 
> change the action as group table and then add an entry in the group table. 
> but how to specify in the flow table entry.Please clarify.
> 
>     Please refer to "OpenFlow protocol API Reference" in the Ryu 
> documentation.
>       
> http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#modify-state-messages
> 
>     To add an group entry, you can use OFPGroupMod() class.
>     e.g.) Add fast fail over group type entry.
>           ---------
>             def send_group_mod(self, datapath):
>                 ofp = datapath.ofproto
>                 ofp_parser = datapath.ofproto_parser
> 
>                 port = 1
>                 actions = [ofp_parser.OFPActionOutput(port)]
> 
>                 weight = 0
>                 watch_port = 1
>                 watch_group = ofp.OFPG_ANY
>                 buckets = [ofp_parser.OFPBucket(weight, watch_port, 
> watch_group,
>                                                 actions)]
> 
>                 group_id = 1
>                 req = ofp_parser.OFPGroupMod(datapath, ofp.OFPGC_ADD,
>                                              ofp.OFPGT_FF, group_id, buckets)
>                 datapath.send_msg(req)
>           ---------
> 
> 
>     To group action to flow entry, you can use OFPFlowMod() class.
>     e.g.) Add group action to flow entry.
>           ---------
>             def send_flow_mod(self, datapath):
>                 ofp = datapath.ofproto
>                 ofp_parser = datapath.ofproto_parser
> 
>                 cookie = cookie_mask = 0
>                 table_id = 0
>                 idle_timeout = hard_timeout = 0
>                 priority = 32768
>                 buffer_id = ofp.OFP_NO_BUFFER
> 
>                 match = ofp_parser.OFPMatch(in_port=1, 
> eth_dst='ff:ff:ff:ff:ff:ff')
> 
>                 group_id = 1
>                 actions = [ofp_parser.OFPActionGroup(group_id)]
>                 inst = 
> [ofp_parser.OFPInstructionActions(ofp.OFPIT_APPLY_ACTIONS,
>                                                          actions)]
> 
>                 req = ofp_parser.OFPFlowMod(datapath, cookie, cookie_mask,
>                                             table_id, ofp.OFPFC_ADD,
>                                             idle_timeout, hard_timeout,
>                                             priority, buffer_id,
>                                             ofp.OFPP_ANY, ofp.OFPG_ANY,
>                                             ofp.OFPFF_SEND_FLOW_REM,
>                                             match, inst)
>                 datapath.send_msg(req)
>           ---------
> 
>     Thanks
> 
>     >
>     > Thanks and Regards,
>     > Padma V
>     >
>     >
>     >
>     >
>     > 
> ------------------------------------------------------------------------------
>     > New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>     > GigeNET is offering a free month of service with a new server in 
> Ashburn.
>     > Choose from 2 high performing configs, both with 100TB of bandwidth.
>     > Higher redundancy.Lower latency.Increased capacity.Completely compliant.
>     > vanity: www.gigenet.com <http://www.gigenet.com>
>     >
>     >
>     >
>     > _______________________________________________
>     > Ryu-devel mailing list
>     > [email protected] <mailto:[email protected]>
>     > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>     >
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> 
> 
> 
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to