Wednesday 14 December 2011

How to Schedule Torrent Downloads


Have you ever thought of keeping the computer ON and going to sleep while it downloads all of your stuff in a specified time range.Then you have come to the right place.

Requirement:
Bittorrent client (Eg:Utorrent)

How to:
There are 2 modes of connecting to the internet for a modem/router - Bridge mode & PPPoE mode

In PPPoe mode, computer is connected to internet as soon as modem is switched on.
In Bridge mode, a dialer is to be created and computer is manually connected to the internet.
  
THIS TUTORIAL IS FOR THOSE WHO USE BRIDGE MODE
 
Create a Dialer:

Start>Control Panel>Network Connections>Create New Connection>Connect to the internet>Setup my connection manually>Connect using a broadband connection
Provide ISP name(connection name), username, password and create a dialer.

Scheduled Task:

1) Create a new text file & type 'rasdial ConnectionName username password' & save it as 'Connect.bat'.

2) Create another text file & type 'rasdial ConnectionName /disconnect' & save it as 'Disconnect.bat'.

3) Take Accessories>System tools>Scheduled tasks & create 3 new scheduled tasks for connecting,diconnecting internet and shutdown tasks as below.

4) For 1st scheduled task browse to 'Connect.bat' & for the 2nd browse to 'Disconnect.bat' and provide required timing.

5) The 3rd one is ONLY NEEDED if you want to automatically switch off your computer after downloading. The file needed for this is located in the below path.

C:\WINDOWS\system32\shutdown.exe
After creating the 3rd one, open it & change the Run under the Task tab to as given below after providing timing.

C:\WINDOWS\system32\shutdown.exe -s -t 05 -f


[[Here 05 means the system will shutdown after 5 seconds has passed after executing the scheduled task]]

6) You have successfully scheduled your downloads as per your needs. Happy Downloading :)


Torrent Scheduling(OPTIONAL):


UTorrent comes with simple Scheduler features that you can access through the Preferences. In uTorrent, go to Options > Preferences, then find Scheduler in the sidebar. Tick the box next to "Enable Scheduler" and you'll see a grid of green boxes light up. The grid runs Monday through Sunday, midnight to midnight (or 0:00 to 23:59), one box per hour. Here's how it works:
  • Dark green boxes indicate that uTorrent will download and upload at full speed (or whatever you've set as its full speed).
  • Light green boxes indicate limited download and upload rates.
  • White boxes indicate that uTorrent will not download or upload any content.
  • Pink boxes indicate that uTorrent will only seed, not download. I'm not exactly sure when one would be inclined to use this, but it's there if you want it.

How to Increase Torrent Speed


First of all, you need a Bittorrent client like Utorrent.All the settings given are for a 256k connection.Scroll to the bottom to configure settings according to your connection.

Options>Preferences>Network
  1. Under ‘Port used for incomming connections’, enter any port number. It is best to use a port number above 10000. I use 45682.
  2. Randomize port each time utorrent starts: UNCHECKED. I leave this unchecked because I have a router. If you do not have a router or a firewall, and want extra security,check this option.
  3. Enable UPnP port mapping (Windows Xp or later only): UNCHECKED. I leave this unchecked because I have experienced it slowing down speeds. It is not needed if you manually port forward.
  4. Add utorrent to Windows Firewall exceptions (Windows XP SP2 or later only): UNCHECKED (do this only if you have windows firewall disabled)
  5. Global Maximum upload rate (kb/s): [0: unlimited]: 22 (for 256k connection)
  6. Protocol Encryption: ENABLED.
Some ISPs constrict bandwidth for P2P protocols. Protocol Encryption in most of the torrent clients helps to override this bandwidth shaping. Enable outgoing protocol encryption and put a checkmark on Allow Incoming Legacy Connections.
  1. Allow incoming Legacy Connections: CHECKED

 Options>Preferences>Torrents

  1. Global Maximum Number of Connections: 130 (for 256k connection)
It gives the maximum number of connections that a BitTorrent client can make for any P2P exchange. Setting this too high does NOT mean higher speeds. Setting it too high would take up useless bandwidth and too low a figure would miss out on peers.
  1. Maximum Number of connected peers per torrent: 70 (for 256k connection)
It gives the maximum number of peers that a BitTorrent client can connect to for any P2P exchange. Experiment by setting this number close to the available peers for a particular torrent.
  1. Number of upload slots per torrent: 3 (for 256k connection)
It gives the maximum number of peers that a BitTorrent client will upload to for any P2P exchange. A low setting may affect downloads.
  1. Use additional upload slots if upload speed <90%: CHECKED
  1. Maximum number of active torrents: 2 (for 256k connection)
  2. Maximum number of active downloads: 1 (for 256k connection)
  3. Enable DHT Network: CHECKED.This is recommended to be checked to improve speeds. More people will be available for sharing if this is checked.
  4. Enable DHT for new torrents: CHECKED
  5. Enable Peer Exchange: CHECKED
  6. Enable scrapping: CHECKED
  7. Pre-allocate all files: CHECKED
  8. Append .!ut to incomplete files: UNCHECKED

Options>Preferences>Advanced

net.max_halfopen: 50

If you use Windows XP SP2, patch tcpip.sys with Lvllords Patch to get better performance.
DO NOT CHANGE THIS OPTION unless you have Windows XP SP2 and have patched tcpip.sys.

Maximum upload speed
If you use your Maximum upload speed, there won’t be enough speed left for the files you are downloading. So you have to cap your upload speed.
This is how I calculate my optimal upload speed…
upload speed * 80%

Maximum download speed

Setting your maximum download speed to unlimited will hurt your connection. So use this to calculate your optimal setting.
download speed * 90%

Maximum connected peers per torrent

upload speed * 1.3

Maximum upload slots

1 + (upload speed / 6)

How to Increase Internet Speed


Tweaking Group Policy Editor
  1. Start > Run > type gpedit.msc (Not Available in Home Edition).
  2. Expand the Local Computer Policy branch.
  3. Expand the Administrative Templates branch.
  4. Expand the Network branch.
  5. Highlight the "QoS Packet Scheduler" in left window.
  6. In right window double click the "limit reservable bandwidth" setting.
  7. On setting tab check the ENABLED item.
  8. Change "Bandwidth limit %" to 0 (Zero).
  9. Close gpedit.msc.
Lvllords Patch

1)Download Lvllords Patch from the below link.


2) Extract the patch and run it.

3) Press "C" to change the limit and set it to 100.

4) Press "Y". After you do that, you'll be prompted with a Windows XP message saying that your original files are being replaced and stuff. Thats normal so DONT PANIC. Click "Ignore" or "Cancel" to that window, and press "Yes" after it asks for a confirmation.

5) You'll get a message that your patch was successfully executed. Exit and reboot your computer.

TCP Optimizer

1)Download TCP Optimizer from the below link.


2) Choose your connection speed - mine is 256 kbps. Go down and select "Optimal Settings". Click on Apply changes after that. You'll be promoted with a box.

3) Click OK, and click "Yes" to reboot your computer.

Tweaking Firefox

1) Type about:config in the address bar and then press Enter.



And you will see a confirmation message like this:



Now click I’ll be careful, I promise!
2) You will see a label there Filter, just next to it type network.http.pipelining. Now be sure the value field is set true, if not double-click to set true.


3) Go back to the Filter search bar and type network.http.pipelining.maxrequests Double-click this option and set its value to 8.



4) In the Filter search bar and type network.http.proxy.pipelining Once opened double-click on it and set it to true.



5) Type network.dns.disableIPv6 in the filter search bar and set this option to true by double clicking on it.


6) CONTENT INTERRUPT PARSING

This preference controls if the application will interrupt parsing a page to respond to UI events. It does not exist by default.

Right-click (Apple users ctrl+click) anywhere in the about:config window, select New and then Boolean from the pop-up menu. Then:



A. Enter content.interrupt.parsing in the New boolean value pop-up window and click OK.



B. When prompted to choose the value for the new boolean, select true and click OK.



7) Rather than wait until a page has completely downloaded to display it to the user, Mozilla applications will regularly render what has been received to that point. This option controls the maximum amount of time the application will be unresponsive while rendering pages.
Right-click (Apple users ctrl+click) anywhere in the about:config window, select New and then Integer from the pop-up menu.


A. Enter content.max.tokenizing.time in the New integer value pop-up window and click OK.



B. You will be prompted to enter a value. Enter 2250000 and click OK.



8) CONTENT NOTIFY INTERVAL

This option sets the minimum amount of time to wait between reflows. Right-click (Apple users ctrl+click) anywhere in the about:config window, select New and then Integer from the pop-up menu.


A. Type content.notify.interval in the New integer value pop-up window and click OK.



B. You will be prompted to enter a value. Enter 750000 and click OK.



9) CONTENT NOTIFY ONTIMER
A. This option sets if to reflow pages at an interval any higher than that specified by content.notify.interval. Right-click (Apple users ctrl+click) anywhere in the about:config window and select New and then Boolean from the pop-up menu.



B. Type content.notify.ontimer in the New boolean value pop-up window and click OK.



C. You will be prompted to choose the value for the new boolean. Select true and click OK.



10) Notify Backoffcount

This option controls the maximum number of times the content will do timer-based reflows. After this number has been reached, the page will only reflow once it is finished downloading. Right-click (Apple users ctrl+click) anywhere in the about:config window and select New and then Integer from the pop-up menu.


A. Enter content.notify.backoffcount in the New integer value pop-up window and click OK.



B. You will be prompted to enter a value. Enter 5 and click OK.



11) CONTENT SWITCH THRESHOLD

You can interact with a loading page when content.interrupt.parsing is set to true. When a page is loading, the application has two modes: a high frequency interrupt mode and a low frequency interrupt mode. The first one interrupts the parser more frequently to allow for greater UI responsiveness during page load.
The low frequency interrupt mode interrupts the parser less frequently to allow for quicker page load. The application enters high frequency interrupt mode when you move the mouse or type on the keyboard and switch back to low frequency mode when you had no activity for a certain amount of time. This preference controls that amount of time. Right-click (Apple users ctrl+click) anywhere in the about:config window and select New and then Integer from the pop-up menu.


A. Enter content.switch.threshold in the New integer value pop-up window and click OK.



B. You will be prompted to enter a value. Enter 750000 and click OK.



12) NGLAYOUT INITIALPAINT DELAY

Mozilla applications render web pages incrementally, they display what??™s been received of a page before the entire page has been downloaded. Since the start of a web page normally doesn’t have much useful information to display, Mozilla applications will wait a short interval before first rendering a page. This preference controls that interval. Right-click (Apple users ctrl+click) anywhere in the about:config window and select New and then Integer from the pop-up menu.


A. Enter nglayout.initialpaint.delay in the New integer value pop-up window and click OK.



B. You will be prompted to enter a value. Enter 0 and click OK.



That’s it! Now restart Firefox and your browsing as well as downloading speed will be much more faster.