Friday, March 26, 2010

How to Transfer Data using Bittorrent in LAN

How to Transfer Data using Bittorrent in LAN

Aim of using Bittorrent for data transferring in LAN is manage to get max throughput value that Ethernet interface  can reach or a better value than FTP does.

FTP is not that good transfer protocol if you consider real fast transfer rates in LAN because of nature of File Transfer Protocol. There is a lot of header junk. To avoid this header waste, i decide to go with Bittorrent protocol.

To make this happen,

1) You need a local bittorrent tracker (actually you don't need a tracker in local network if you use DHT, but this tutorial doesn't cover that). It's going to uTorrent in this case.uTorrent is going to be installed in a Windows machine and this PC is going to be the main seeder.
2) You need another computer that connected to same switch with the tracker that i mention above. I use Ubuntu server with rtorrent client.

First we need to configure uTorrent so it can act as a bittorrent tracker

Go to Options>Preferences>Connection and get listening port value, in this case it would be 50012. You will need this value when you creating local tracker address.

Then go to Options>Preferences>Advanced and change bt.enable_tracker true

Apply and Ok

Now you need to create a new torrent file

As you see we select that we want to share (file or directory) and write down your local tracker address. It would be like,
http://:50012/announce

Then click Start seeding and finally create and save as. If you share a large file it takes time to create a new torrent file.

Now our new torrent file is ready and you can put it to other bittorrent client

In rtorrent client (or whatever you're using, it really doesn't matter) you need to point your new torrent file. If everything is ok then your download should be started with high transfer rates like almost 80-90 Mbps. This transfer rate depends many factors (switch quality, disk defrag, dşsk rw speeds, cpu loads etc.) Bottlenecks might be happened in your disk speeds.




I hope you find it useful

Cheers

Typhoon Master

2 comments:

  1. its fantastic trick.thanx for sharing,i tried it.its works.

    ReplyDelete
  2. Knew this before but yours is simple & short
    Thank you

    ReplyDelete