In application of network technologies, the peer to peer technologies is becoming one of the hot spots in network research fields. In order to enhance the efficiency and effectiveness of the P2P network, a lot of architecture schemes for organizing the peers and the files in the P2P network are put forward which are mainly concentrated on the network characteristics of the peers and the file transmission. A P2P model based on the similarity of active peers is put forward. In the proposed model, the peers’ interests to the files are utilized to describe the similarities of the peers. By the similarities among the peers, the peer groups are clustered. Utilizing the representative clustering group, the interconnections among active peers are built according to the representative group selected by Hamming network.