if the speed of establishing a connection, it should be CDN fast. Because the CDN is directly to connect to a recent edge server, and peer generally to first go through the hash value to DHT or tracker to ask the node information, get some neighbor IP, and then to establish a connection. The problem, though, is that the neighbours have a bad quality, and some may be repeating parts that may have been closed. And it takes more time to actually connect with these neighbors, so it's slower than a traditional CDN. So that's why common peer-to-peer software starts slowly and gets full.
but if viewed from the download speed point of view, the peer download is the least similar to the CDN. because now a lot of peer also support download from CDN, called p2sp. So once the connection is established, peer-to can be downloaded from CDN, other neighbors, multiple servers, multiple CDN addresses at the same time. Of course, the speed is much faster than the average CDN. And the CDN is often only to connect a server node, so fast can only be to the speed of the server, and peer is a multi-source to download, certainly speed more advantages. Even if your local area network is being downloaded together, he accelerates from the local area network, and the speed is even scarier.
so a lot of time to choose HTTP CDN or peer or P2SP this to be based on the specific situation to analyze . If it is a simple transmission of large file video, such as distribution, it may be more time to distribute the transmission, because this speed, while saving some of the bandwidth, both for consumers and operators are very advantageous, is a win-winning process. If you have more information about peer distribution transmission or P2SP issues, you can explore it in depth.
![](http://i2.51cto.com/images/blog/201806/06/cdbb40742696a94cf866b1f9c90061ff.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
Is the peer CDN Fast or regular HTTP CDN fast?