Download Strategy

From PhexWiki

Jump to: navigation, search

The download strategies define different ways how Phex will decide which parts of the file to download next. Most of the strategies are building upon each other and choose a lower strategy on certain conditions. A detailed description of each strategy and when it will forward part selection to other strategies is described below.

Contents


Rare Parts First (default)

The rare parts first strategy tries to download the least available file parts first. The availability of file parts is rated and when the strategy determines that there is a significant difference between the most and least available file part, it selects the least available file part. If no significant difference is found (parts are almost equally available), a random part is chosen.

Since Phex 2.8.1 this download strategy will select parts from the file beginning in case there is no significant difference in availability and the file is stream able, otherwise a random part is chosen.

Prioritize File Beginning

This download strategy prioritizes parts from the file beginning. With 50% chance a file part from the beginning of the file is used. In the other 50% of the cases a rare part is chosen, if there is no significant difference in availability is found a random part is chosen.

Prioritize File Beginning & End

This download strategy prioritizes parts from the file beginning and end. With 25% chance a file part from the beginning and with the same chance from the end of the file is used. In the other 50% of the cases a rare part is chosen, if there is no significant difference in availability is found a random part is chosen.

Random Parts

The random parts strategy chooses a random part of the file to download. In case the file has already more then 20 downloaded parts, the random strategy will choose to extend one of the parts, instead of creating a new part. This is done to reduce fragmentation and memory for parts.

number-child
Get Phex - P2P Gnutella filesharing program at SourceForge.net. Fast, secure and Free Open Source software downloads

Please visit our supporters
Amazon.com or Amazon.de