The ES discovery and DF election are implemented in three logical steps, as shown in the following figure.