Implements the Chord protocol.