CH broadcasts beacon messages with different nonces:
   , Key pool generation for by
  Erase .
CH obtains the hop count:
According to the , nonces N, and oneway function (), the cluster head
 can get the ’s key information.
  end
Algorithm 2: Hop count and key information acquirement algorithm (TTL = 3).