Thứ Tư, 10 tháng 8, 2011

DEXGUiDE | Optimizing Deluge For Bandwidth Tweaking/Speed

These are the basic principles of optimizing a bittorrent client, like Deluge, for speed:
  • Choose a proper port to avoid ISP blocks and conflicts with other programs

  • Forward that port through any software firewall and router to allow incoming connections

  • Adjust internal settings based upon upload capacity of the internet connection to allow room for outgoing communications and to distribute upload efficiently. 



There are some programs that claim to optimize speed in Deluge.  Such programs are a scam and generally contain adware or spyware. I have seen it said, by the developers of all bittorrent programs, that nothing will increase your download speed in a bittorrent client more than the basic steps set forth herein.

If you are not using Deluge, there are several other specific guides for other clients and a general guide here: Optimizing Bittorrent Clients

 DEXGUiDE | Optimizing Deluge For Bandwidth Tweaking/Speed


Choosing A Proper Port 

To avoid messing up a network connection that is already cleared, first check and see if your communications are blocked or are already clear.  Have Deluge running while testing the port.
Click to Test Your Port Success-just go to Adjusting Internal Settings.Error- follow all steps.
You can see the port used by Deluge at Edit>Preferences>Network.  All boxes for incoming and outgoing should have the same numbered port and the "Use Random Ports" options should be unticked.  You can also test the port within Deluge by pressing the "Test Active Port" button.
deluge-port-locations
If you failed the port test above, then you should first set your port to a proper one.  The most important choice here is to avoid using a port within the 6881-6999 range. This was the range originally used by bittorrent programs and is often blocked by Internet Service Providers (ISPs). (If your port was in this range, change and re-test). The safest choice is a port in the 49152-65534 range as this will avoid ISP blocks and possible conflicts with other applications.
Vuze-Wiki: Port is Blacklisted

Forwarding The Port

Introduction
A router will block incoming communications unless an exception is made. All software firewalls will block incoming communications and most will also block outgoing communications, unless an exception is made. If you are "firewalled", then other people will not be able to initiate connections with you (see Why Is Being Firewalled Bad).
As there are many firewalls and routers, this guide can not give explanations as to each. However, there are guides available, on the internet for most firewalls and routers and this guide will link you to them.  Note that PortForward.com does not have guides specific to Deluge.  Choose a µTorrent guide and substitute Deluge where µTorrent is indicated.
Software Firewall - The permission should be set to allow TCP and UDP in both directions. Generally, you will have a choice to set permission for the Deluge port or for the Deluge program. Setting permission for the port is the safer choice. You can check these options for guides:
Router - There are two choices here. The easier way is to use UPnP. However, this has a possible security issue. Using UPnP allows any program to create a port mapping through the router without consent of the owner. The other choice is to manually forward the port through the router. This does not have that security issue, but involves going through several steps to accomplish. Using the guides linked herein, this should not be that difficult and is the preferred method.
UPnP - The Easy Way Enable UPnP in Deluge and router.
In Deluge the setting for UPnP is at Edit>Preferences>Network
deluge-upnp-location
Manual Forwarding-The Preferred Way
  1. UPnP (NAT-PMP) Must be disabled in Deluge (see image above)

  2. Use the Static IP Guide

  3. Set permission for Deluge port. This should be set to allow both TCP and UDP communications.
    You can check these options for guides:

Click Here to Re-Test Port Success-Proceed to next step. Error- re-do steps or seek help in Forums.   Have Halite running while re-testing the port.

Adjusting Internal Settings

Introduction
The most important setting here is to cap upload in Deluge to 80% of your overall upload capacity. Setting upload in Deluge is a fine line. The more upload you give, the more download you will get from other peers. However, if upload is set too high, or to unlimited, then download speeds will suffer as outgoing communications (acknowledgment signals, resend requests etc) will be interfered with. Other adjustments are made here to distribute your upload so that you receive back the most download from other peers.
Speed Test: Speedtest.net (Click for Test)
First the upload capacity of your internet connection must be determined by taking an online speed test. Speedtest.net has test locations worldwide and will highlight the one closest to you.
To take the test you must have Flash installed and javascript enabled
Before taking the speed test, press Settings in the upper right of the speedtest.net page.  This will take you to another page.  At the bottom of that page is the "Global Settings" options.  Set "Speed Measurement" to kilobytes and press "Save" .  This will facilitate entry into the calculator below and will lessen confusion as Deluge shows speeds in kilobytes.
 speedtest-net-settings-button-location

speedtest-net-save-settings-button
You should stop all internet activity, including torrents, before taking the test and the test should be taken a few times to obtain a reliable average. Results will now show in KiloBytes. It is the upload rate that is important here.
speedtest-net-results-kilobytes-new
Another Way To Test Upload Speed
For most people these test results will be reliable (Comcast users see Note). However, you may wish to do a double check on real life upload speed. When you are active on a torrent with a good number of peers and you are using your upload cap, set upload to unlimited and watch for about 5-10 minutes and see where upload settles in at. Then input that number into the calculator in the kiloBytes section. 
Note: Some ISPs will show inaccurate results on the speed test. If your ISP has anything like Comcast's PowerBoost, then your results will show higher than the actual speed of your connection. PowerBoost provides a burst of download and upload speeds above your provisioned download and upload speeds for the first 10MB and 5MB respectively. Since the speed test involves relatively small files, this will skew results upward. If you have PowerBoost, or something similar, you should initially use the speed test results and then use the test method in the paragraph above.
Once you have an average upload speed for your connection go to the online Azureus Upload Settings Calculator. Although designed for Azureus, this calculator will work for all bittorrent clients.
This calculator was created by the8472 a contributor to Vuze (fka Azureus) and part of the team that created Bittorrent Protocol Encryption.
Enter your average upload speed in the appropriate box
upload-settings-calculator-kilobytes-entry
The calculator will automatically give the proper figures to adjust bandwidth and queue  options in Deluge.
deluge-calculator-results-locations-deluge
Input Results Into Deluge - Screen shots of locations in Deluge of settings to be adjusted
Speed In Deluge at Edit>Preferences>Bandwidth are the settings for upload speed, max connections (global), max connections (per torrent) and max upload slots (per torrent). 
Under "Global Bandwidth Useage", change "Maximum Connections" and "Maximum Upload Speed" to match calculator.  "Maximum Upload Slots" and "Maximum Download Speed" should be set to -1 (unlimited).  The "Maximum Half-Open Connections" and "Maximum Connection Attempts per Second" should be left at default settings.
Under Per Torrent Bandwidth Usage "Maximum Connections" and "Maximum Upload Slots" should be changed to match the calculator.  "Maximum Download Speed" and "Maximum Upload Speed" should be kept at -1 (unlimited).
The "Ignore limits on local network" should remain enabled.  I could find no definition for the "Rate limit IP overhead" option.  I presume it includes overhead in determining capped bandwidth, but I am not sure.  I found no difference with it ticked and unticked, and have left it at the default enabled.  You could try either way (if you see a difference, please post here about it).
do-not-use-these-numbers-warning-use-speed-test-and-calculator
deluge-bandwidth-settings-location

Peer Sources & Encryption

Having the proper peer sources enabled, such as Peer Exchange (PEX) and Distributed Hash Table (DHT), will help download speeds as they will help you find additional seeds and peers for a torrent.  Local Peer Discovery should be enabled as it supposedly searches for peers on your ISP or those on an extended network or on a LAN party. it can be very useful on a LAN party.  I have not found it to make much of a difference when not on a LAN or extended network.
Encryption was primarily designed to thwart Internet Service Providers interference with bittorrent.  Having encryption enabled and allowing incoming legacy (non-encrypted) connections will provide you with the largest pool of seeds/peers to select from.
The settings for these options in Deluge is located at Edit>Preferences>Network
deluge-peer-sources-location
deluge-encryption-setting-locatiojn

No Prioritize

In my install of Deluge, the option to prioritize the first and last pieces for a torrent was enabled at default.  Theoretically, this option will allow you to view the contents of a download (particularly a video) before the download is complete.  This is to avoid a fake download.  Fake downloads can easily be avoided by only downloading content that has comments or ratings that indicate the content is clean and real.  Many search sites also offer "verified" torrents that are clean and real.  This option will slow download speed if enabled and should be disabled for best download speed.
The setting for this in Deluge is at Edit>Preferences>Download
deluge-prioritize-setting



[SOURCE]

Không có nhận xét nào:

Đăng nhận xét