Patent ID: 8910252

Claim:
A communication system, comprising: an enrollment server, configured to receive an enrollment request of a peer device, wherein the enrollment request carries identity information of the peer device; verify the identity information of the peer device; in response to the verification succeeds, obtain peer location information of the peer device, and send a peer credential carrying the peer location information to the peer device; and the peer device, configured to send the enrollment request to the enrollment server, wherein the enrollment request carries the identity information of the peer device; receive the peer credential that is sent by the enrollment server and carries the peer location information; and join a peer-to-peer (P2P) network according to the peer credential; an information providing server, configured to provide the peer location information of the peer device to the enrollment server; wherein: the information providing server is a content delivery network (CDN) redirection server; the enrollment server is further configured to send the identity information of the peer device to the CDN redirection server, and receive peer location information returned by the CDN redirection server; and the CDN redirection server is configured to determine an address of an edge server closest to the peer device according to the identity information sent by the enrollment server, use the address of the edge server as the peer location information of the peer device, and send the information to the enrollment server.