The hierarchical network structure significantly reduces the size and maintenance cost of routing table for huge networks. But in ad hoc networks, no fixed host leads to the challenge of the hierarchical structure, since the topology information needs to be updated dynamically due to membership changes caused by mobility. To construct the hierarchical structure of physical locations, we adopt a cluster infrastructure to partition the network into different groups for physical location maintenance. In order to construct the hierarchical structure of logical locations, all hosts are divided into several domains, each one of them has one corresponding domain location server to record all of the member physical locations (cluster locations). With the hierarchical structure, most necessary routing information can be ignored.