A hierarchical mathematic model of multi-layers satellite network is built in this paper.Based on the research of the mathematic model, a new hierarchical routing algorithm is proposed for multi-layers satellite network. The simulation results show that it has faster computing rate and has better performance in time delay. The routing performance of the multi-layers satellite network is effectively improved.