|Zhicheng Yang, firstname.lastname@example.org (A paper written under the guidance of Prof. Raj Jain)||Download|
Keywords: Measurement Study, Peer-to-peer, Experimental Design, BitTorrent, BitTorrent Client, Torrent
BT is a very popular file distribution protocol based on P2P technique, and people use it to share files with BT clients everyday. In this section, the background knowledge of P2P and BT are shown.
P2P[Kurose09, Deaconescu09, Peer-to-peer wiki, Qiu04] is a technique that means connecting user to user directly without a substantial server. It is different from the traditional client-server model in which clients only receive information sent from server. In the peer-to-peer model, peer is not only the client but also the server. A peer's partial resources, like network bandwidth, disk storage, are available to other peers in the same network directly. Today, many of popular applications are based on P2P architectures, such as BT and eMule for file sharing and Skype for Internet telephone.
In the BT[Kurose09, BitTorrent wiki] system, there are 3 elements: peer, tracker and seed. A peer is a user who is downloading files; a tracker returns a peer list for every peer, helping peers find each other; a seed has a complete file. The file is divided into many chunks and the information of those file chunks and tracker are saved in a "torrent" file, from which a peer can obtain file and tracker address information. When a peer is downloading the file chunks it is interested in, it is also uploading the chunks it has already downloaded. And a seed keeps uploading all the time. In the initial situation, a BT system need at least one seed. If a peer has finished downloading the file but doesn't leave the system, it will become a seed.
A BT client is a software which can download files from a torrent based on BT protocol. In this paper, five present popular BT clients were selected. The difference of those clients were regarded as a factor in the following experimental design.
µTorrent[µTorrent wiki] is a free BT client written in C++, whose platform are Windows and Mac OS X. The "µ" means "one-millionth" from the International System of Units(SI) prefix "micro-", indicating this program's small memory occupancy. Compared with BitComet and Vuze, it needs less system resources and its original installation file size is 532 KB. µTorrent has a good reputation in terms of feature set, stability and compatibility. µTorrent is also one of the most popular BT client worldwide. In this project, the version of µTorrent is 3.0.
BitComet[BitComet wiki, BitComet] is a BT client written in C++, whose platform is Windows. It can also be used for "Hyper Text Transport Protocol(HTTP)"/"File Transfer Protocol(FTP)" download, and even eMule download if the eMule plugin is installed. BitComet supports 52 different languages. The most attractive feature of BitComet is that an Internet Explorer window is embedded to support users to search torrents. It also supports "Universal Plug and Play(UPnP)" gateway configuration, bandwidth scheduling and so on. The recent version has supported super-seeding[Super-Seeding wiki, Garbacki07] and magnet links[Magnet URI scheme wiki]. BitComet provides a "preview download mode", which means that users can preview the content even though the file has not completely finished. This mode helps users to discard torrents in which the files are huge and different from the ones users want to download. BitComet also allows users to create their own torrents. In this project, the version of BitComet is BitComet Beta .
Vuze[Vuze wiki, Vuze] is a BT client written in Java. The former version is called Azureus. It support Windows, Mac OS X, Linux and Unix. It looks like not only a simple download tool but also a media center, whose interface is similar to that of iTunes. It is said to allow users to share the original DVD and HD quality materials[Azureus' HD Vids Trump YouTube]. In this project, the version of Vuze is 188.8.131.52.
FlashGet[Flashget wiki, Flashget] is a free download tool, supporting almost all popular protocols, like HTTP, FTP, RSTP, BT protocols. The original developer is Yantang Hou, a Chinese Canadian. FlashGet is also one of the most popular download softwares in China. Since FlashGet has the English version, so it is selected in this project. In this project, the version of FlashGet is 3.7.
BitLord[BitLord] is a free BT client derived from BitComet. It has some additional features, like chatting and seed searching, which are very convenient for users. The interface is similar to the one of BitComet In this project, the version of BitLord is 1.1.
In this paper, the workload was torrent. Several torrents with different number of seeders, file size and file type were downloaded on 5 different BT clients. The following table showed the detailed information about them. All the torrents were from "the Pirate Bay"[the Pirate Bay].
Table 1: Information of Torrent Samples
The metric was the download speed rate, which was a HB(High is Better) metric. And the actual extreme HTTP download speed was about 680 KB/s measured by the Internet Explorer downloader.The detailed information of the experiment platform was Table 2.
Table 2: Information of the Experiment Platform
In this section, a two factor full factorial design[Jain91] was presented. Another experiment focused on which BT client was strongest on downloading from out-of-date torrents.
A two factor design is used when the change of values of two parameters has impact on the performance. The first factor is workloads and the second factor is BT clients. A full factorial design means that we set the number of experiments based on the levels of the first factor and the second factor. For example, if Factor A has a levels and Factor B has b levels, then the number of experiments are a*b.
First, the first three torrents were used in the two factor full factorial design. The first factor was BT client; there were 5 different BT clients. The second factor was torrent, including a 10-seeder music torrent, a 27-seeder software torrent and a 30-seeder video torrent. The data was the download rate observed only once and the unit was KB/s. Table 3 was the data.
Table 3: Download Rates for the Different Torrents and Different BT Clients Experiment
We noticed that the range of data was 400-10=390, this value might be large, so we took the logarithmic method to reduce the range. Table 4 was the new data.
Table 4: Logarithmic Download Rate for the Different Torrents and Different BT Clients Experiment
Table 5: Computation of Effects for the Different Torrents and Different BT Clients Experiment
The analysis of computation of effects was shown in Table 5. For each row and each column, we computed the sum and the mean of observations in that row or that column, overall sum and overall mean. The difference between a row or a column mean and overall mean indicated the row's or the column's effect.
Table 5 showed an average workload on an average BT client required 102.0111=129.12 KB/s to be finished. The average speed of downloading Workload I was 102.0111-0.7597=17.84 KB/s, and so on. The average speed of BT client µTorrent of downloading the three workloads was 102.0111+0.1715=152.26 KB/s, and so on. From Table 5, both workloads and BT clients had effects on download speed, because their effects were different from the overall mean.
Table 6: ANOVA Table for the Different Torrents and Different BT Clients Experiment
ANOVA table is a way to analyse the significance of factors. Here, we used the ANOVA table for two factors without replications[Jain91]. From Table 6, the percentage of variation explained by the workloads was 89.43%, by the BT clients was 9.95% and by the errors was 0.62%. Table 6 showed the F-computation value 580.1890 of workloads was much more than the F-table value 3.1131 of them and the F-computation value 32.2878 of BT clients was more than the F-table value 2.8064, but not so much as the F-computation value of workloads.
Figure 1: Plot of the residuals versus predicted response for the Different Torrents and Different BT Clients Experiment
Figure 2: Normal quantile-quantile plot(QQ plot) for the residuals of the Different Torrents and Different BT Clients Experiment
Visual tests was used to test the errors' distribution. Figure 1 was scatter plot, which is a technique to test if the values are independent or not. If the values have no trend, they are independent. In this paper, Figure 1 showed the errors between observations and the overall mean. There was no trend in this figure, that is, the errors were independent. Figure 2 was the QQ plot, which was a technique to plot the observed quantiles versus the theoretical quantile for small samples. It showed the errors appeared to be normally distributed.
Table 7 was the average of memory usage monitored in the Windows Task Manager. Each value was obtained instantly after finishing downloading tasks in each BT clients. The memory usage of µTorrent was the lowest.
Table 7: Memory Usage for the Different Torrents and Different BT Clients Experiment
Second, the last two torrents were used in the second experiment showing which client could download those out-of-date torrents successfully. We noticed that these torrents were added half a month ago. The number of seeders was only 4 and 2. The "NA" was defined that during 30 minutes, the download process bar did not go forward any more. The timer began as soon as the download task was added.
Table 8: Staring Time and Finishing Time for the Different BT Clients on Out-of-date Torrents Experiment
In this section, we summarized that the significant effects in the first experiment, the clients choices and the reliability of those 5 BT clients.
From Table 6, because the F-comp values were bigger than F-table values, both of workloads and BT Clients were significant. However,the dominant significant effect was the workloads. It indicated the dominant element influencing the download rate was the torrent selection. From Table 1 and Table 3, in general, the higher the number of seeders was, the more download speed BT clients had. Therefore, for BT downloading, the most important thing was peers should start to download the interesting files from the networks as soon as possible. In the visual test graph, the errors did't has obvious trend in the scatter figure, and the QQ plot showed errors was normally distributed. Thus this design model was acceptable.
When we just focused on the comparison of these clients, µTorrent was suggested as the prior choice on BT tasks, based on the application size, speed and memory usage. FlashGet enjoyed a highest download speed in this experiment, but its memory usage was huge. BitLord had its own merit of seeder-rich torrent, though its prototype was BitComet, the performance of the former was much better than that of the latter. Vuze's download speed was just moderate and the memory usage was the highest compared with other BT clients. This issue was common for Vuze users and the official site of Vuze had a method trying to reduce the memory usage[Reduce Memory Size].
From Table 8, µTorrent was the strongest among those BT clients. During the experiment, it used shortest time to finish the two tasks, and FlashGet was the second shortest. Vuze was not so strong as µTorrent but it succeeded to download Workload IV. BitComet and BitLord were disappointing in this experiment. In conclusion, µTorrent was still recommended to be the first choice for downloading old torrents.
Because of the limitation of time to finish huge file downloading on time, the file size in those torrents were not big. As Table 1 shows, the video file was only about 4 MB. That might cause the speed couldn't reach the limited speed, because before clients went higher speed, the task had already been finished. Also, some designs including more factors should be used to test more comprehensive result.
ANOVA = Analysis of Variance
BT = BitTorrent
DF = Degree of Freedom
FTP = File Transfer Protocol
HTTP = Hyper Text Transport Protocol
P2P = Peer-to-peer
QQ plot = Quantile-Quantile plot
SI = International System of Units
UPnP = Universal Plug and Play
URL = Uniform Resource Locator