RFC 5356 EXPERIMENTAL LOAD BALANCING · SERVER POOLING

Reliable Server Pooling Policies

The rules an ENRP server and a pool user follow to pick one server out of a pool of interchangeable ones.

On rfc-editor.org ↗
PUBLISHED
September 2008
AUTHORS
T. Dreibholz, M. Tuexen
STREAM
IETF
DOCUMENT STATUS
Experimental
POLICY TYPES ASSIGNED
9
LOAD RANGE
0x00000000 to 0xffffffff
POLICY PARAMETER TYPE
0x8
PRIVATE USE POLICY RANGE
0x80000000 to 0xffffffff
DOI
10.17487/RFC5356

RFC text

Contents
Original text · RFC Editor View on rfc-editor.org ↗
Network Working Group                                       T. Dreibholz
Request for Comments: 5356                  University of Duisburg-Essen
Category: Experimental                                         M. Tuexen
                                      Muenster Univ. of Applied Sciences
                                                          September 2008


                    Reliable Server Pooling Policies

Status of This Memo

   This memo defines an Experimental Protocol for the Internet
   community.  It does not specify an Internet standard of any kind.
   Discussion and suggestions for improvement are requested.
   Distribution of this memo is unlimited.

Abstract

   This document describes server pool policies for Reliable Server
   Pooling (RSerPool) including considerations for implementing them at
   Endpoint Handlespace Redundancy Protocol (ENRP) servers and pool
   users.

Table of Contents

   1. Introduction ....................................................3
   2. Conventions .....................................................3
   3. Terminology and Definitions .....................................3
      3.1. Load .......................................................3
      3.2. Weight .....................................................3
   4. Non-Adaptive Policies ...........................................4
      4.1. Round Robin Policy .........................................4
           4.1.1. Description .........................................4
           4.1.2. ENRP Server Considerations ..........................4
           4.1.3. Pool User Considerations ............................4
           4.1.4. Pool Member Selection Policy Parameter ..............4
      4.2. Weighted Round Robin Policy ................................5
           4.2.1. Description .........................................5
           4.2.2. ENRP Server Considerations ..........................5
           4.2.3. Pool User Considerations ............................5
           4.2.4. Pool Member Selection Policy Parameter ..............5
      4.3. Random Policy ..............................................5
           4.3.1. Description .........................................5
           4.3.2. ENRP Server Considerations ..........................6
           4.3.3. Pool User Considerations ............................6
           4.3.4. Pool Member Selection Policy Parameter ..............6
      4.4. Weighted Random Policy .....................................6
           4.4.1. Description .........................................6
           4.4.2. ENRP Server Considerations ..........................6
           4.4.3. Pool User Considerations ............................6
           4.4.4. Pool Member Selection Policy Parameter ..............7
      4.5. Priority Policy ............................................7
           4.5.1. Description .........................................7
           4.5.2. ENRP Server Considerations ..........................7
           4.5.3. Pool Element Considerations .........................7
           4.5.4. Pool Member Selection Policy Parameter ..............7
   5. Adaptive Policies ...............................................8
      5.1. Least Used Policy ..........................................8
           5.1.1. Description .........................................8
           5.1.2. ENRP Server Considerations ..........................8
           5.1.3. Pool User Considerations ............................8
           5.1.4. Pool Member Selection Policy Parameter ..............8
      5.2. Least Used with Degradation Policy .........................9
           5.2.1. Description .........................................9
           5.2.2. ENRP Server Considerations ..........................9
           5.2.3. Pool User Considerations ............................9
           5.2.4. Pool Member Selection Policy Parameter ..............9
      5.3. Priority Least Used Policy ................................10
           5.3.1. Description ........................................10
           5.3.2. ENRP Server Considerations .........................10
           5.3.3. Pool User Considerations ...........................10
           5.3.4. Pool Member Selection Policy Parameter .............10
      5.4. Randomized Least Used Policy ..............................11
           5.4.1. Description ........................................11
           5.4.2. ENRP Server Considerations .........................11
           5.4.3. Pool User Considerations ...........................11
           5.4.4. Pool Member Selection Policy Parameter .............11
   6. Security Considerations ........................................11
   7. IANA Considerations ............................................12
      7.1. A New Table for RSerPool Policy Types .....................12
   8. Reference Implementation .......................................13
   9. References .....................................................13
      9.1. Normative References ......................................13
      9.2. Informative References ....................................14

1.  Introduction

   The protocols defined in [RFC5353], [RFC5352], and [RFC5354] support
   a variety of server policies.  Some of the policies use dynamic load
   information of the pool elements and others do not.  Therefore, we
   classify them as adaptive and non-adaptive.  The selection of the
   pool element is performed by two different entities, the ENRP server
   and the pool user.  Some of the consequences for policies that are
   not stateless are described in [ICN2005] and [LCN2005].

   Therefore, this document describes not only packet formats but also
   gives a detailed description of the procedures to be followed at the
   ENRP servers and the pool users to implement each server policy.

2.  Conventions

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

3.  Terminology and Definitions

3.1.  Load

   The term load is a value specifying how much a pool element's
   resources are currently utilized. 0x00000000 states that the pool
   element is not utilized (0%); 0xffffffff states that it is fully
   utilized (100%).  Defining what utilization means is application-
   dependent and out of the scope of RSerPool.  However, it is required
   that all pool elements of the same pool using load information have
   the same definition of load.

   For example, load may define the current amount of users out of a
   maximum on an FTP server, the CPU usage of a database server, or the
   memory utilization of a compute service.

3.2.  Weight

   Weight defines a pool element's service capacity relative to other
   pool elements of the same pool.  Theoretically, there is no upper
   limit for weight values (although limited by datatype size).
   Defining what value weights compare is application-dependent and out
   of the scope of RSerPool.  However, it is required that all pool
   elements of the same pool using weight information have the same
   definition of weight.

   A weight of 0 denotes that the pool element is not capable of
   providing any service; a higher weight denotes that the pool element
   is capable of providing better service than a pool element having a
   lower weight.

   For example, weight may define a compute service's computation
   capacity.  That is, a pool element of weight 100 will complete a work
   package in half the time compared to a pool element of weight 50.

4.  Non-Adaptive Policies

4.1.  Round Robin Policy

4.1.1.  Description

   The Round Robin (RR) policy is a very simple and efficient policy
   that requires state.  This policy is denoted as the default policy
   and MUST be supported by all RSerPool components.

4.1.2.  ENRP Server Considerations

   The ENRP server SHOULD hold the pool elements of each server pool in
   a circular list and SHOULD store a pointer to one of the elements,
   called the head.  On reception of a handle resolution request, the
   ENRP server SHOULD return the pool elements from the circular list,
   starting with head.  Then the head SHOULD be advanced by one element.

   Using this algorithm ensures that not all lists presented to the pool
   users start with the same element.

4.1.3.  Pool User Considerations

   A pool user SHOULD use the list of pool elements returned by the ENRP
   server in a round robin fashion, starting with the first.  If all
   elements of the list have been used, it should start from the
   beginning again until the information is out of date.

4.1.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0x8          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x00000001                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

4.2.  Weighted Round Robin Policy

4.2.1.  Description

   The Weighted Round Robin (WRR) policy is a generalization of the RR
   policy.  If all weights are 1, then WRR is just RR.

4.2.2.  ENRP Server Considerations

   The ENRP server SHOULD follow the same rules as RR but initialize and
   modify the circular list differently.  The ENRP server puts each pool
   element, possibly, multiple times into the list such that:

   o  The ratio of the number of occurrences of a pool element to the
      list length is the same as the ratio of the weight of that pool
      element to the sum of weights.

   o  The multiple entries of each pool element should be as evenly
      distributed as possible in the circular list.

4.2.3.  Pool User Considerations

   The pool user SHOULD follow the same rules as RR.

4.2.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0xc          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x00000002                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Weight                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  Weight (32 bits, unsigned integer): Weight constant for the WRR
      process.

4.3.  Random Policy

4.3.1.  Description

   The Random (RAND) policy is a very simple stateless policy.

4.3.2.  ENRP Server Considerations

   The ENRP server selects, at most, the requested number of pool
   elements from the list of pool elements.  Each element MUST NOT be
   reported more than once to the pool user.

4.3.3.  Pool User Considerations

   Each time the pool user must select one pool element, it does this by
   randomly selecting one element from the list of pool elements
   received from the ENRP server.

4.3.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0x8          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x00000003                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

4.4.  Weighted Random Policy

4.4.1.  Description

   The Weighted Random (WRAND) policy is a generalization of the RAND
   policy, adding a weight for each pool element entry.  RAND is equal
   to WRAND having all weights set to 1.

4.4.2.  ENRP Server Considerations

   The ENRP server SHOULD select, at most, the requested number of pool
   elements randomly from the list of pool elements.  Each element MUST
   NOT be reported more than once to the pool user.  The probability of
   selecting a pool element should be the ratio of the weight of that
   pool element to the sum of weights.

4.4.3.  Pool User Considerations

   Each time the pool user must select one pool element, it does this by
   randomly selecting one element from the list of pool elements
   received from the ENRP server.

4.4.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0xc          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x00000004                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Weight                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  Weight (32 bits, unsigned integer): Weight constant for the WRAND
      process.

4.5.  Priority Policy

4.5.1.  Description

   The Priority (PRIO) policy can be used to select always a pool
   element with the highest priority.

4.5.2.  ENRP Server Considerations

   The ENRP server MUST select the pool elements with the highest
   priorities.  They MUST be reported in decreasing order.  If multiple
   pool elements have the same priority, they may be listed in any
   order.

4.5.3.  Pool Element Considerations

   The pool user MUST select the active pool element with the highest
   priority.

4.5.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0xc          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x00000005                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                            Priority                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   o  Priority (32 bits, unsigned integer): Larger numbers mean higher
      priorities.

5.  Adaptive Policies

5.1.  Least Used Policy

5.1.1.  Description

   The Least Used (LU) policy uses load information provided by the pool
   elements to select the lowest-loaded pool elements within the pool.

5.1.2.  ENRP Server Considerations

   The ENRP server SHOULD select, at most, the requested number of pool
   elements.  Their load values SHOULD be the lowest possible ones
   within the pool.  Each element MUST NOT be reported more than once to
   the pool user.  If there is a choice of equal-loaded pool elements,
   round robin selection SHOULD be made among these elements.  The
   returned list of pool elements MUST be sorted in ascending order by
   load value.

5.1.3.  Pool User Considerations

   The pool user should try to use the pool elements returned from the
   list in the order returned by the ENRP server.  A subsequent call for
   handle resolution may result in the same list.  Therefore, it is
   RECOMMENDED for a pool user to request multiple entries in order to
   have a sufficient amount of feasible backup entries available.

5.1.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0xc          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x40000001                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Load                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  Load (32 bits, unsigned integer): Current load of the pool
      element.

5.2.  Least Used with Degradation Policy

5.2.1.  Description

   The Least Used with Degradation (LUD) policy extends the LU policy by
   a load degradation value describing the pool element's load increment
   when a new service association is accepted.

5.2.2.  ENRP Server Considerations

   For every pool element entry, a degradation counter MUST be stored.
   When a pool element entry is added or updated by registration or re-
   registration, this counter MUST be set to 0.  When an entry is
   selected for being returned to a pool user, the internal degradation
   counter MUST be incremented by 1.  The selection of pool element
   entries is handled like for LU, except that the selected pool element
   entries SHOULD have the lowest possible sum of load value +
   degradation counter * load degradation value.

5.2.3.  Pool User Considerations

   See LU policy.

5.2.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0x10         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x40000002                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Load                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                        Load Degradation                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  Load (32 bits, unsigned integer): Current load of the pool
      element.

   o  Load Degradation (32 bits, unsigned integer): Load Degradation
      constant of the pool element.

5.3.  Priority Least Used Policy

5.3.1.  Description

   The Priority Least Used (PLU) policy uses load information provided
   by the pool elements to select the lowest-loaded pool elements within
   the pool under the assumption that a new application request is
   accepted by the pool elements.  Therefore, the pool elements also
   have to specify load degradation information.

   Example: Pool elements A and B are loaded by 50%, but the load of A
   will increase due to a new application request only by 10% while B
   will be fully loaded.  PLU allows the specification of this load
   degradation in the policy information; the selection is made on the
   lowest sum of load and degradation value.  That is, A will be
   selected (50+10=60) instead of B (50+50=100).

5.3.2.  ENRP Server Considerations

   The ENRP server SHOULD select, at most, the requested number of pool
   elements.  Their sums of load + degradation SHOULD be the lowest
   possible ones within the pool.  Each element MUST NOT be reported
   more than once to the pool user.  If there is a choice of equal-
   valued pool element entries, round robin SHOULD be made among these
   elements.  The returned list of pool elements MUST be sorted
   ascending by the sum of load and degradation value.

5.3.3.  Pool User Considerations

   The pool user should try to use the pool elements returned from the
   list in the order returned by the ENRP server.  A subsequent call for
   handle resolution may result in the same list.  Therefore, it is
   RECOMMENDED for a pool user to request multiple entries in order to
   have a sufficient amount of feasible backup entries available.

5.3.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0x10         |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x40000003                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Load                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                        Load Degradation                       |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   o  Load (32 bits, unsigned integer): Current load of the pool
      element.

   o  Load Degradation (32 bits, unsigned integer): Load Degradation
      constant of the pool element.

5.4.  Randomized Least Used Policy

5.4.1.  Description

   The Randomized Least Used (RLU) policy combines LU and WRAND.  That
   is, the pool element entries are selected randomly.  The probability
   for a pool element entry A, utilized with load_A, to be selected is
   (0xFFFFFFFF - load_A) / (sum(0xFFFFFFFF-load_x)), i.e., this PE's
   unload part related to the whole pool unload rate.

5.4.2.  ENRP Server Considerations

   The ENRP server SHOULD behave like WRAND, having every PE's weight
   set to (0xffffffff -- load value provided by the pool element).

5.4.3.  Pool User Considerations

   See WRAND policy.

5.4.4.  Pool Member Selection Policy Parameter

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |    Param Type = 0x8           |         Length = 0xc          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                   Policy Type = 0x40000004                    |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                              Load                             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  Load (32 bits, unsigned integer): Current load of the pool
      element.

6.  Security Considerations

   The security threats regarding RSerPool have been analyzed in
   RSerPool threats [RFC5355].  The server policy descriptions in this
   document do not add any other threats.

7.  IANA Considerations

   This document (RFC 5356) is the reference for all registrations
   described in this section.  All registrations have been listed on the
   RSerPool Parameters page.

7.1.  A New Table for RSerPool Policy Types

   RSerPool policy types that are 4-byte values are maintained by IANA.
   The format of the policy type value is defined as follows:

         0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |X|A|                   Policy Number                           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   o  X: If set to 1, the policy is user defined and not standardized.
      All standards policies reserved by the IETF use X=0.

   o  A: If set to 1, the policy is adaptive.  Otherwise, it is non-
      adaptive.

   o  Policy Number: The actual number of the policy.

   Nine initial policy types have been assigned and are maintained in a
   new table, "RSerPool Policy Types":

     Value           Policy                                  Reference
     -----           ---------                               ---------
     0x00000000      (reserved, invalid value)               RFC 5356
     0x00000001      Round Robin                             RFC 5356
     0x00000002      Weighted Round Robin                    RFC 5356
     0x00000003      Random                                  RFC 5356
     0x00000004      Weighted Random                         RFC 5356
     0x00000005      Priority                                RFC 5356
     0x00000006      (reserved by IETF)                      RFC 5356
     ...
     0x3fffffff      (reserved by IETF)                      RFC 5356

     0x40000000      (reserved, invalid value)               RFC 5356
     0x40000001      Least Used                              RFC 5356
     0x40000002      Least Used with Degradation             RFC 5356
     0x40000003      Priority Least Used                     RFC 5356
     0x40000004      Randomized Least Used                   RFC 5356
     0x40000005      (reserved by IETF)                      RFC 5356
     ...
     0x7fffffff      (reserved by IETF)                      RFC 5356

     0x80000000      (private use, non-standard policy)      RFC 5356
     ...
     0xffffffff      (private use, non-standard policy)      RFC 5356

   Requests to register an RSerPool policy type in this table should be
   sent to IANA.  The number must be unique and use the appropriate
   upper bits.  The "Specification Required" policy of [RFC5226] MUST be
   applied.

   The policy type space from 0x80000000 to 0xffffffff is designated for
   private use.

8.  Reference Implementation

   A reference implementation of RSerPool and the policies described in
   this document is available at [RSerPoolPage] and described in
   [Dre2006].

9.  References

9.1.  Normative References

   [RFC2119]       Bradner, S., "Key words for use in RFCs to Indicate
                   Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC5226]       Narten, T. and H. Alvestrand, "Guidelines for Writing
                   an IANA Considerations Section in RFCs", BCP 26,
                   RFC 5226, May 2008.

   [RFC5354]       Stewart, R., Xie, Q., Stillman, M., and M. Tuexen,
                   "Aggregate Server Access Protocol (ASAP) and Endpoint
                   Handlespace Redundancy Protocol (ENRP) Parameters",
                   RFC 5354, September 2008.

   [RFC5352]       Stewart, R., Xie, Q., Stillman, M., and M. Tuexen,
                   "Aggregate Server Access Protocol (ASAP)", RFC 5352,
                   September 2008.

   [RFC5353]       Xie, Q., Stewart, R., Stillman, M., Tuexen, M., and
                   A. Silverton, "Endpoint Handlespace Redundancy
                   Protocol (ENRP)", RFC 5353, September 2008.

   [RFC5355]       Stillman, M., Ed., Gopal, R., Guttman, E., Holdrege,
                   M., and S. Sengodan, "Threats Introduced by Reliable
                   Server Pooling (RSerPool) and Requirements for
                   Security in Response to Threats", RFC 5355,
                   September 2008.

9.2.  Informative References

   [RSerPoolPage]  Dreibholz, T., "Thomas Dreibholz's RSerPool Page",
                   <http://tdrwww.iem.uni-due.de/dreibholz/rserpool/>.

   [Dre2006]       Dreibholz, T., "Reliable Server Pooling --
                   Evaluation, Optimization and Extension of a Novel
                   IETF Architecture", Ph.D. Thesis University of
                   Duisburg-Essen, Faculty of Economics, Institute for
                   Computer Science and Business Information Systems,
                   March 2007, <http://duepublico.uni-duisburg-essen.de/
                   servlets/DerivateServlet/Derivate-16326/
                   Dre2006-final.pdf>.

   [LCN2005]       Dreibholz, T. and E. Rathgeb, "On the Performance of
                   Reliable Server Pooling Systems", Proceedings of the
                   30th IEEE Local Computer Networks Conference,
                   November 2005.

   [ICN2005]       Dreibholz, T., Rathgeb, E., and M. Tuexen, "Load
                   Distribution Performance of the Reliable Server
                   Pooling Framework", Proceedings of the 4th IEEE
                   International Conference on Networking, April 2005.

Authors' Addresses

   Thomas Dreibholz
   University of Duisburg-Essen, Institute for Experimental Mathematics
   Ellernstrasse 29
   45326 Essen, Nordrhein-Westfalen
   Germany

   Phone: +49-201-1837637
   Fax:   +49-201-1837673
   EMail: dreibh@iem.uni-due.de
   URI:   http://www.iem.uni-due.de/~dreibh/


   Michael Tuexen
   Muenster University of Applied Sciences
   Stegerwaldstrasse 39
   48565 Steinfurt
   Germany

   Phone: +49-2551-962550
   Fax:   +49-2551-962563
   EMail: tuexen@fh-muenster.de

Full Copyright Statement

   Copyright (C) The IETF Trust (2008).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
   THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF
   THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; nor does it represent that it has
   made any independent effort to identify any such rights.  Information
   on the procedures with respect to rights in RFC documents can be
   found in BCP 78 and BCP 79.

   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use of
   such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository at
   http://www.ietf.org/ipr.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   ietf-ipr@ietf.org.

ISO Plain Language

On this page
PROBLEMA pool of interchangeable servers needs a rule for which one a client should be sent to, and the rule has to be agreed between the server that hands out the pool membership and the client that picks from it.
MECHANISMThe memo defines nine policies, five of which ignore how busy the servers are and four of which use load information. For each policy it spells out what the ENRP server does when it returns a list and what the pool user does with that list.
WHAT IT DEFINESIt is an Experimental document. The policy types are registered in a new IANA table with a bit that marks a policy as adaptive and a bit that marks it as user defined rather than standardized.

§1Introduction

The protocols defined in RFC 5353, RFC 5352 and RFC 5354 support a variety of server policies. Some use dynamic load information about the pool elements and others do not, so the memo classifies them as adaptive and non-adaptive. The selection of the pool element is performed by two different entities, the ENRP server and the pool user, and some of the consequences for policies that are not stateless are described in other documents.

Because of that split, the memo describes not only packet formats but also gives a detailed description of the procedures to be followed at the ENRP servers and the pool users to implement each server policy. Every policy has four parts in the memo: a description, what the ENRP server should do, what the pool user should do, and the packet parameter that carries the policy information.

Two parties share the job of choosing a server. One hands out the list of servers, the other picks from it. The memo gives the rules for both halves, because a policy only works if both sides follow the same one.

§3Load and Weight

Load is a value specifying how much a pool element's resources are currently utilized. The value 0x00000000 states that the pool element is not utilized, which is 0%, and 0xffffffff states that it is fully utilized, which is 100%. What utilization means is application dependent and out of the scope of RSerPool, but it is required that all pool elements of the same pool using load information have the same definition of load. For example, load may define the current number of users out of a maximum on an FTP server, the CPU usage of a database server, or the memory utilization of a compute service.

Weight defines a pool element's service capacity relative to the other pool elements of the same pool. Theoretically there is no upper limit for weight values, although the datatype size limits them. What a weight compares is application dependent and out of the scope of RSerPool, but again all pool elements of the same pool using weight information must have the same definition of weight. A weight of 0 denotes that the pool element cannot provide any service, and a higher weight denotes that the pool element can provide better service than one with a lower weight. As an example, weight may define a compute service's computation capacity, so that a pool element of weight 100 completes a work package in half the time of one of weight 50.

Two numbers describe a server. Load says how busy it is right now, from nothing at all to completely full. Weight says how capable it is compared with the others. What each number means in practice is up to the application, but every server in one pool must agree on the meaning.

§4The Non-Adaptive Policies

The Round Robin policy is a very simple and efficient policy that requires state. It is denoted as the default policy and MUST be supported by all RSerPool components. The ENRP server SHOULD hold the pool elements of each server pool in a circular list and store a pointer to one of them, called the head. On receiving a handle resolution request, it SHOULD return the pool elements from the circular list starting with the head, and then advance the head by one element. The memo says this ensures that not all lists presented to pool users start with the same element. The pool user SHOULD use the returned list in a round robin fashion, starting with the first, and if all elements have been used it should start from the beginning again until the information is out of date.

The Weighted Round Robin policy is a generalization of Round Robin: if all weights are 1, then it is just Round Robin. The ENRP server follows the same rules but initializes the circular list differently, putting each pool element, possibly multiple times, into the list so that the ratio of the number of occurrences of an element to the list length is the same as the ratio of that element's weight to the sum of the weights, and so that the multiple entries of each element are as evenly distributed as possible in the list. The pool user follows the same rules as for Round Robin. The policy parameter carries a 32-bit weight constant.

The Random policy is a very simple stateless policy. The ENRP server selects at most the requested number of pool elements from the list, and each element MUST NOT be reported more than once to the pool user. Each time the pool user must select one pool element, it does so by randomly selecting one element from the list it received. The Weighted Random policy generalizes this by adding a weight for each pool element entry, so that Random equals Weighted Random with all weights set to 1; the probability of selecting an element is the ratio of that element's weight to the sum of the weights.

The Priority policy can be used always to select a pool element with the highest priority. The ENRP server MUST select the pool elements with the highest priorities and MUST report them in decreasing order; if multiple elements have the same priority they may be listed in any order. The pool user MUST select the active pool element with the highest priority. Larger numbers mean higher priorities.

The four simple rules are taking turns, taking turns in proportion to size, picking at random, and picking at random in proportion to size, plus a rule that always prefers the highest-priority server. The directory server puts the list together and the client takes from it.

THE NON-ADAPTIVE POLICIES
PolicyHow the choice is madePolicy type
Round Robin (RR)The server walks a circular list and returns elements starting from a moving head; the user takes them in order.0x00000001
Weighted Round Robin (WRR)Each element appears in the circular list as many times as its weight, spread out evenly.0x00000002
Random (RAND)The user picks an element at random from the list the server returned.0x00000003
Weighted Random (WRAND)The user picks at random, with the chance of an element being its weight over the sum of weights.0x00000004
Priority (PRIO)The server returns the highest-priority elements first and the user always selects the highest-priority active element.0x00000005

§5The Adaptive Policies

The Least Used policy uses load information provided by the pool elements to select the lowest-loaded elements within the pool. The ENRP server SHOULD select at most the requested number of elements, with the lowest possible load values, and each element MUST NOT be reported more than once. If there is a choice of equally loaded elements, round robin selection SHOULD be made among them, and the returned list MUST be sorted in ascending order by load value. The pool user should try to use the elements in the order returned, and because a subsequent handle resolution may return the same list, it is RECOMMENDED that a pool user request multiple entries so that it has enough feasible backup entries available.

The Least Used with Degradation policy extends Least Used by a load degradation value describing the pool element's load increment when a new service association is accepted. For every pool element entry a degradation counter MUST be stored, set to 0 when the entry is added or updated by registration or re-registration, and incremented by 1 when the entry is selected for being returned to a pool user. Selection works as for Least Used, except that the selected entries SHOULD have the lowest possible sum of load value and degradation counter multiplied by the load degradation value.

The Priority Least Used policy uses load information to select the lowest-loaded elements under the assumption that a new application request is accepted by the pool elements, so the elements must also specify load degradation information. The memo gives the example: pool elements A and B are loaded by 50%, but the load of A will increase by only 10% because of a new request while B will be fully loaded, so A is selected with a sum of 60 instead of B with a sum of 100. The ENRP server selects the entries with the lowest possible sums of load plus degradation, breaks ties by round robin, and sorts the returned list ascending by that sum.

The Randomized Least Used policy combines Least Used and Weighted Random: the entries are selected randomly, and the probability of an entry A with load A being selected is the unused part of A divided by the whole pool's unused rate.

The adaptive rules look at how busy each server is. Two of them add a twist: one counts how many times a server has been handed out, and one asks how much extra load a new request would add. Either way the server with the smallest resulting number is chosen.

THE ADAPTIVE POLICIES
PolicyHow the choice is madePolicy type
Least Used (LU)The elements with the lowest load, returned in ascending order by load value.0x40000001
Least Used with Degradation (LUD)The elements with the lowest sum of load and a per-element degradation counter.0x40000002
Priority Least Used (PLU)The elements with the lowest sum of load and a fixed load degradation value.0x40000003
Randomized Least Used (RLU)Elements picked at random, with the chance of an element being its unused share of the pool total.0x40000004

§7.1The Policy Type Numbers

RSerPool policy types that are 4-byte values are maintained by IANA. The format of the policy type value has one bit for the X flag, one bit for the A flag and the rest for the policy number. The X bit, if set to 1, means the policy is user defined and not standardized; all standards policies reserved by the IETF use X equal to 0. The A bit, if set to 1, means the policy is adaptive, and otherwise it is non-adaptive. The policy number is the actual number of the policy.

Nine initial policy types have been assigned and are maintained in a new table, RSerPool Policy Types. The reserved invalid value is 0x00000000, then Round Robin is 0x00000001, Weighted Round Robin is 0x00000002, Random is 0x00000003, Weighted Random is 0x00000004 and Priority is 0x00000005, with the range up to 0x3fffffff reserved by the IETF. The adaptive policies start above 0x40000000, whose value is reserved as invalid: Least Used is 0x40000001, Least Used with Degradation is 0x40000002, Priority Least Used is 0x40000003 and Randomized Least Used is 0x40000004, with the range up to 0x7fffffff reserved by the IETF. The policy type space from 0x80000000 to 0xffffffff is designated for private use.

Requests to register a policy type go to IANA. The number must be unique and use the appropriate upper bits, and the Specification Required policy of RFC 5226 MUST be applied.

Each policy gets a 32-bit number, and the top two bits say two things: whether the policy is private to one organisation, and whether it uses load information. The memo registers the first nine.

THE FORMAT OF A POLICY TYPE VALUE
RSerPool policy type
FieldNameSizeValueDescription
XX1 bitsIf set to 1, the policy is user defined and not standardized. All IETF-reserved standards policies use X=0.
AA1 bitsIf set to 1, the policy is adaptive; otherwise it is non-adaptive.
POLICY-NUMBERPolicy Number30 bitsThe actual number of the policy.

§6Security Considerations

The memo is brief here. The security threats regarding RSerPool have been analyzed separately, and the server policy descriptions in this document do not add any other threats.

The memo adds no threats of its own. The threats of the wider server pooling design are covered in a separate document.

§7References