The technology of cloud computing has become a hot issue of research in the service of network in recent years. Cloud computing platform provide computing and storage services to customers. And it has been widely applied in e-business, e-education and etc.. While Cloud systems are usually hosted in large datacenters which may become a bottleneck to the system. In this paper we describe the design of a double-layer P2P model based on cloud computing. In the model, user nodes grouped into clusters form the Extended Cloud layer, and transfer file to each other without participation of the Core Cloud layer. The new model has better scalability and efficiency.