The invention relates to a clustering method and
system of a
mobile ad hoc network. According to the clustering method and
system, nodes are grouped, nodes in the same group satisfy a preset mobility condition, so that it can be ensured the nodes in the corresponding groups can have similar mobility, and therefore, the stability of clustering can be improved; the
residual energy parameter values of the nodes, the node degrees of the nodes and the mobility parameter values of the nodes are calculated; the stability factors of the nodes are calculated; nodes corresponding to maximum stability factors in the groups are adopted as cluster heads; non-cluster head nodes in the groups are added into clusters where corresponding cluster heads are located; the nodes in the
mobile ad hoc network are traversed, non-cluster head nodes which have not been clustered are clustered separately; and therefore, network
node clustering can be realized. When the stability factors are calculated, the mobility parameter values of the nodes, the
residual energy of the nodes and the node degrees of the nodes are all considered, and therefore, the cluster heads which are selected according to the stability factors of the nodes are optimal nodes with the mobility,
residual energy and node degrees of the nodes considered; after the cluster heads are obtained, the non-cluster head nodes are clustered; and therefore,
network clustering stability can be improved.