摘要 |
The present invention discloses a method and apparatus for controlling a peer to join a Peer-to-Peer (P2P) network, and relates to P2P network technologies. The method includes: receiving a request for joining the P2P network from the peer, and refusing the peer to join the P2P network if determining that the peer is not allowed to join the P2P network according to history information of the peer joining the P2P network and/or history information of received requests for joining the P2P network. The apparatus includes a receiving module and a processing module. The present invention controls the peer to join the P2P network, and restricts the malicious peer from joining the P2P network frequently. Therefore, the route flapping of the P2P network, unavailability or even loss of resources, and DoS of peers caused by frequent attempts of the malicious peer to join the P2P network are overcome to some extent. Compared with the puzzle mechanism in the prior art, the technical solution under the present invention does not need to store a lot of puzzles, saves the overhead significantly, and brings better control effects.
|