转载自:http://franks543.blogspot.com/2009/11/emule-connection-setting-wizard.html
eMule有一個wizard提供設定連線相關數字,根據使用者輸入的網路上下載能力,給於建議值。
我們從eMule 0.49c的程式碼,可以來檢視這些數值是如何來的。
input:
OS: WinXP/Vista, Win98/ME
ConcurrentDownloads: 1-5, 6-15, 16+
ConnectionType: ...
output:
DL limit, UL limit
Max. Sources/File
Max. connections
eMule的DL, UL capacity,是用於統計,簡單說,就是畫速度圖的upper bound啦,實際影響上下載速度的值是DL, UL limit。
aMule 2.2.6預設值:
Max. Sources/File: 300
Max. Connections: 480
DL, UL limit根據使用者輸入值,
DL limit = dl capacity * (9/10)
UL limit = ul capacity * (4/5)
不過有但書,當
ul capacity < 4, dl limit is (3 * ul limit)
ul capacity < 10 && dl capacity > ul capacity * 4, dl limit is (4 * ul limit)
Max. Connections和OS及Concurrent DLs有關:
OS為Win98/ME時,Max. Connections固定為50
OS為WinXP/Vista時:
UL Capacity | Max. Connections |
<= 7 | 80 |
< 12 | 200 |
< 25 | 400 |
< 37 | 600 |
>= 37 | 800 |
Max. Sources per File與DL capacity, OS, Concurrent DLs都有關
DL Capacity/Concurrent DLs | 1-5 | 6-15 | 16+ |
<= 7 | 100 | 60 | 40 |
< 62 | 300 | 200 | 100 |
< 187 | 500 | 400 | 350 |
< 312 | 800 | 600 | 400 |
>= 312 | 1000 | 750 | 500 |