Abstract:The traditional ways of estimating key management schemes, which only test one, or a fewcommunications, are not comprehensive. With the increase of heterogeneous strength, static analysis will becomemore and more complex, and finally lose its referential value. First, a key management framework in this paper issummarized. According to the strategy layer of this framework and based on the classical cluster model of the entitylayer, a key management logic (KML) model is proposed. This KML model involving colored hierarchical Petri netand generalized stochastic Petri net extended the energy place. Next, by making the Top layer key managementstrategy and Button layer energy comsuption model as the core, a KML model for key management is built tosupport and represent heterogeneity with tokens to help the analysis and decisions. Finally, the performance analysismethods are discussed, including energy consumption, latency and lifetime. The experimental results show thatKML model is effective for analyzing the short-term and long-term performance and can help scheme designers toimprove their schemes by discovering the bottlenecks and hidden perils.