LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2010, 05:00 AM   #1
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Rep: Reputation: 25
rTorrent and Dynamic IP address


Hi Guys,

I have been using rTorrent for a week now and I am faced with sluggish download/upload torrent. When I say sluggish, I am not going above 10Ko/s. Here is how it happens.
I start uploading a torrent and it all goes fine for a while. Then after about 30 minutes, the upload and download start to slow down drastically until I go below 10Ko/s. I realized that my ISP might be throttling my bandwidth but I don't think so. I have a dynamic public IP address which I think is causing the issue.
As per manual, rTorrent has a couple of options to deal with Dynamic IP address. One of them is a very interesting one. I am putting an extract here (taken from --> http://libtorrent.rakshasa.no/wiki/RTorrentUser) :

"Using the -i <ip> flag or "ip = <ip>" option you may change your ip address that is reported to the tracker. If you have a dynamic ip address then "schedule = ip_tick,0,1800,ip=my_address" may be used to update the ip address every 30 minutes.

The client may spend as much as 60 seconds trying to contact a UDP tracker, so if you are behind a firewall that blocks the reply packets you should tell the client to skip the UDP tracker. Set "use_udp_trackers = no" in your configuration file or in the command line option. "

As per this advice, I have modified this option with my Public IP address:
schedule = ip_tick,0,1800,ip=my_address (Public IP address)
Which seems to be a lot better but still leaves me with one question in mind: When my IP is going to change again, how is the change going to be reflected in the configuration file ?

At the same level, I have the bind option:
"schedule = bind_tick,0,1800,bind=127.0.1.1"
I have tried 127.0.1.1, my external IP address (impossible to bind), and my internal IP address which gives DHT error. I really don't know what to put there ??


There are a couple of other options in .rtorrent.rc file that I would need confirmation on:

bind = a.b.c.d
Bind listening socket and outgoing connections to this network interface address.
What exactly do I have to put here ?
Is it a useful option to fine tune my networking ? Or can I just leave it ?

ip = a.b.c.d,
ip = hostname
Set the address reported to the tracker.
Is this option useful to tune up the network connection or it simply does what it says; address being reported to the tracker..

I have forwarded all my ports through my router
Version of rTorrent: rTorrent 0.8.6/0.12.6

Thanks for your help Guys,

Kind Regards,

Last edited by riganta; 08-29-2010 at 05:08 AM. Reason: clarity
 
Old 08-30-2010, 03:55 PM   #2
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
on the same note, I am faced with this error message (if that is an error message)

Inactive: Hash check on download completion found bad chunks, consider using "safe_sync"

Now, I know this seems to be a bug: As per this article, "http://libtorrent.rakshasa.no/ticket/483", there is a big argument to try to understand whether or not this is a rtorrent or file system bug. For my part, I am voting for a filesystem bug ( who died and made me king of the Linux World) Nevertheless, I was just posting to see if anyone had a workaround. Some guru out there might have come up with some codes to patch this all up. Would be much appreciated if this Guru would make himself known to mankind so that I can download my torrents in piece of mind This bug not only consumes my time but also my bandwidth..

Yesterday I posted my issues with rtorrentrc config file. I seem to have found a workaround for my dynamic IP address. I am using "dyndns" which offer a free dynamic DNS service.
I have populated the option "schedule = ip_tick,0,1800,ip=my_address (Public IP address)" with my new dyndns DNS name. I have also installed a client that makes my IP known every 30 minutes or so to the "dyndns" server. The client is called "ddclient". It works very well. I still am not sure with what IP Adress I should populated the option "schedule = bind_tick,0,1800,bind=127.0.1.1" with. I am guessing my local IP address (lan). I tried and get too many DHT connection errors. Anyone care to help ?

Kind Regards,

Last edited by riganta; 08-31-2010 at 01:52 PM.
 
Old 08-30-2010, 03:59 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
at first glance,.. i would say that your provider is limiting your bandwidth due to the type of traffic you are creating.

comcast used to do that around here.
 
Old 09-04-2010, 07:32 AM   #4
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Hi,

A bit of news on my quest to better torrenting/networking with a small bandwidth.

First of all, Thanks, szboardstretcher, for your reply, but I would have to disagree on that. I am generating a lot of traffic, that is a fact but my ISP is not throttling my bandwidth and here is why.
I have had for a long time, rubbish in my logs about my wireless card. I am pasting some sample of it below:

wpa_supplicant[953]: Failed to initiate AP scan.

LPS leave: notify AP we are awaked ++++++++++ SendNullFunctionData
May 22 11:19:51 vortex kernel: [ 946.038568] ===>rtl8192se_link_change():ieee->iw_mode is 2
May 22 11:19:52 vortex kernel: [ 947.660097] ===>rtl8192se_link_change():ieee->iw_mode is 2

My wireless is working well besides my logs filling up very fast and up to this day I have not been able to find out why and most importantly how to stop it from talking to me that way I dont deserve it: Back to the point. That lead me to go from DHCP to static IP address on my network.

I turned off dhclient.conf in /etc/dhcp3/ and added a couple of lines in /etc/network/interfaces as such:

auto lo
iface lo inet loopback

# The Primary network
auto wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
wireless-key xxxxxxxxxx
wireless-essid "xxxxx"
pre-up wpa_supplicant -Bw -Drtl819xSE -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
post-down killall -q wpa_supplicant

Finally, I decide to create a wpa_supplicant.conf file. I do not know if that is a good thing and my guess is that I should not need it since I am using Gnome Network Manager but still I created it; here is the extract of the wpa_supplican.conf file:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
ap_scan=1
network={
ssid="xxxx"
key_mgmt=NONE
wep_key="xxx"
priority=5

Finally, after documenting myself, I created a small internal DNS server. I am using BIND9.

I am now downloading my torrents at 150 and up 350 kb/s. I have no idea if all the modifications as a whole did the trick or just one of them but that really made a difference.

PS: As per DNS server, i can now use the fonction "bind_tick2 in my rtorrent.rc file (may be that helped as well). I still have the networking rubbish in my logs and would really appreciate if any Guru out there could tell me why and how I can stop it ?

I understand that this post is not entirely linux software but for clarity i had to step over to networking a bit.

Regards,
 
Old 09-04-2010, 10:24 PM   #5
wsbg2008
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
good.~!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rtorrent keyboard commands unresponsive when starting rtorrent in detached screen MheAd Linux - Software 1 09-05-2010 07:00 AM
Dynamic IP address with PTR record versus Fixed IP address without ruyterb Linux - Networking 1 05-07-2010 11:43 AM
Getting Dynamic IP Address landysaccount Linux - Newbie 5 01-14-2009 02:44 PM
[SOLVED] Converting static IP-address to dynamic IP-address Blue_Ice Linux - Networking 3 07-20-2006 03:35 AM
Fix ip address vs Dynamic ip address yenonn Linux - Networking 5 04-13-2004 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration