Discussion on the advantages and disadvantages of HTTP FTP and large-size file transmission of peer-network

Source: Internet
Author: User

With the development of various industries and hardware equipment, more and more large files, such as in the media industry in order to ensure that the picture and video clarity, compared with the previous, are relatively large, especially publishing houses and other industries. Ensure that large files can be transmitted quickly, and now many enterprises are using the hard drive to mail the way. Is it possible to use the online transfer method? To figure this out, we first use the HTTP FTP and peer-to-peer disadvantage in the way that we know how to transmit information on the web today. Let's see it together:
1. HTTP Transmission:
Compare the traditional method of file distribution, the advantage is easy to deploy, generally using IIS, Apache, Nginx, Tomcat and other Web servers, basically can run the Web server can be used to do the file transfer.
HTTP this deployment needs to be noted that many HTTP servers have a certain limit on the timeout of a connection, the file size by default, because HTTP is primarily designed for small files such as Web pages and pictures, so it is generally necessary to change the settings.
2. FTP Transmission
Similar to HTTP, it is also a more traditional way of distributing files, similar in nature to HTTP. Basically the pros and cons are similar to HTTP, so they can be put together to talk about their pros and cons. FTP originally wanted to improve the HTTP to large file support areas, but in fact, with the development of HTTP over the past few years, these drawbacks have a way to circumvent, FTP and HTTP similarity is large, so these years, the FTP has slowly basically exited the market, the application is increasingly less.

The common features of both HTTP and FTP distribution are:
A) All data have to go to the server, the server bandwidth, performance pressure requirements are relatively high.
B) If the number of users, a server performance is not enough, if you add more than one server, you need to pass the intelligent DNS scheduling, but if there is an unpopular time period, such as many servers in the idle, it is difficult to take advantage of the performance of multiple servers at the same time, only randomly to the customer a server to provide data.
C) If you want to do the client to download, generally need to implement their own breakpoints, multiple lines (multi-threaded) Download increase speed, and consider the different circumstances of the optimal download speed, speed limit processing, etc.
D) generally suitable for file distribution is not small, or the file is less likely to download at the same time, or want to lightweight solution to the distribution of users, do not want to use a more advanced scenarios such as lightweight users.
This kind of customer, small series of comparison suggestions if you do the download of the client, you can consider some with a breakpoint continuation, speed limit, to single-address multi-threaded download, if there are multiple server address, can simultaneously download from multiple mirror server functions such as the HTTPFTP core, can play the maximum potential of these two types of protocols. And a few lines of code implement a full download client.
3. CDN:
Strictly speaking does not belong to a protocol, it is just an extension of the HTTP, in short: You have an HTTP server, but the National people are going to download may not be fast enough, CDN to you copied to a lot of parts of the country, so that every province people visit when It automatically assigns a distance to his nearest HTTP server. It caches the contents of the data on your server.
Compared with normal HTTP server, it solves the problem of slow access of different operators and different regions. But the cost is increased. With this kind of customer, you can also consider the point volume httpftp kernel, because the breakpoint continued to pass (such as a file 1G, last downloaded 500M, the next boot, continue to download from 500M, rather than download from the beginning), speed limit, multi-threaded, or the need for such users.
4, Peer distribution:Build your own servers, build your own servers (or use a CDN, or an HTTP server) without having to build a server. There's a lot of this way:

A) Save Server bandwidth: This is a well-known advantage of peer, here is not more than repeat.
B) can be multi-source download: This is often overlooked, people often ask me: if only one person to download, this time peer is not a good thing. In fact, this is not right. Even if only one person to download, if the user with ordinary HTTP, usually from a single server download, if you encounter this server is slow, he can only endure. But if it is a peer-to system, peer-to back-end can have more than one server, such as you buy 10 of several U.S. servers, bandwidth and cheap, and unlimited traffic, this mode, download is from 10 servers together download, speed or fast, and even if a server down, also does not affect the download, This is actually a great benefit to peer. When the server is operational, the upper and lower lines have no effect on the user.
C) Natural anti-theft chain: Peer-to-peer protocol if you do not use the standard BT protocol, it is entirely possible to customize some private transfer protocols. This kind of agreement, the user can hardly go to hotlinking your resources, unless he writes a peer software of the same protocol, so the advantage is much better than HTTP.
D) users download faster than http: because the multi-source download, so the natural speed than the single-server mode speed can be faster.
E) low cost: different from the HTTP mode, the server does not necessarily put a high-quality computer room, can only a small number of room. Many servers can be used in the United States low-cost servers, 1G bandwidth one months on more than 1000 yuan, this price seconds to kill a lot of domestic computer room. Before 2008, I also saw someone renting some houses and putting on some ordinary computers to do peer-to speed. Especially looking for some bandwidth to upload cheap areas, because many of the civil bandwidth in many areas 1 years only hundreds of can get.
F) Security and verification: peer-to transfer can use the private protocol, the file built-in hash fingerprint check tamper-proof data, which is very high security. Almost no tampering with the file is possible.

The advantages and disadvantages of the HTTP FTP and the large file transfer of the peer network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.