摘要
当前基于P2P的文件共享的应用层出不穷,下载速度是用户非常关注的一个方面,一般都采用了多线程的程序设计方法来提高下载的速度。系统中的一种普遍情况是,当利用搜索功能时,得到的资源的提供者往往很少或者只有一个,此时就大大限制了下载的速度,而且由于P2P系统中的节点可以自由的加入和离开,如果当下载者在下载了绝大部分资源时,资源的拥有者离开了该系统,则此时下载者可能不得不废弃下载的没用的资源,由此提出了一种基于虚拟资源的策略。通过与多线程下载的比较,该策略可以大大提高下载速度,同时也避免了节点离开系统对资源下载者造成的影响。
The application of sharing files based on P2P piling up one after another currently, but downloading speed is an aspect that the customer pays attention to very much, generally adopting the program design method of multi-threading and all to raise the downloading speed as far as possible. A kind of widespread circumstance in the system is, while making use of searching function of the system, we get the number of resources provider usually seldom perhaps only 1, the download speed is limited consumedly at this time, and because the node in the P2 P system can join and leave freely, if the downloader has downloaded the majority of the resources at that moment, the resources owner leaves that system, then the downloader probably has to abandon the downloaded useless resources at this time, so I put forward a kind of strategy based on virtual resource. According to the comparison to multi-threading downloading, this strategy can raise downloading speed consumedly, also avoiding the influence to the resources downloader because of resource provider leaving system at this time.
出处
《微计算机信息》
2009年第3期91-92,86,共3页
Control & Automation
关键词
P2P
多线程
虚拟资源
下载速度
P2P
multi-threading
virtual resource
downloading speed