LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2010, 06:21 AM   #1
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 0
Cool Internet connection problem while using BitTorrent


I know, that this thread is old one, but I am having the same issue. It does not seem to me to be the problem of single torrent. It is more the way how much do I use my connection. If I have only 1-2 torrents, everything is ok. If I have 10, I get this problem. It is also followed by aprox. 30 secs of no internet connection.

I use Deluge for downloading and my limits are set like this:
max connections: 200
max upload: 300 KiB/s
max upload slots: 5
max connection attempts per sec: 20

The connection outage is really annoying.
 
Old 04-25-2010, 06:30 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
raqua, I've moved your post from where you originally posted to a thread of its own. I've also placed this thread in the Networking forum, so that it may get more adequate exposure. In the future, please try to let dead threads rest in peace.
 
Old 04-30-2010, 10:37 PM   #3
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
What is your maximum upload/download speed? Its possible the line is getting so saturated that it seems like its not functioning.

Who is your ISP? Comcast for example throttles BT traffic.

What type of router do you have? Some older routers do not have enough resources to handle alot of connections and/or nat translations, and belly up when they hit the limit (BT traffic especially causes alot of connections and nat translations due to its inherit nature)
 
Old 04-30-2010, 10:47 PM   #4
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
Mediacom in my area also throttles torrenting, but they aren't very good at it. If I just forward and use any port other than the default, they seem to not notice.
 
Old 05-01-2010, 03:07 AM   #5
KMBS
Member
 
Registered: Oct 2009
Location: Germany
Distribution: Slackware
Posts: 32

Rep: Reputation: 16
I see you throttled the upload speed to 300 kB/s. Is it really kB/s (kByte/s) or more like 300 kbit/s?

I'm asking this because when you throttle the upstream to 300 Kbyte/s that would mean you have some
sort of vDSL/fibreglass line with a download speed of > 3000 kByte/s, hence a 24+ megabit line (presuming your ISP gives you a tenth
of your downstream as upload like they do mostly).
I assume you throttled the upload to keep some bandwith for browsing etc..
If you throttled the upload for that reason but you have for example an ordinary 3 megabit aDSL line (375 kB/s down, 37,5 kB/s up),
throttling the upload to 300 kB/s will have no effect, the torrents might clog your upstream making browsing painfully slow
or even impossible.

Secondly I agree with the others that it might be your router.
I had a similar problem with torrents once.
At a certain point the router closed all connections.
I found out that my router considered a certain number of inbound connections (can't remember the exact value) a DoS attack, so he clipped all of them.
Increasing the max number of connections fixed that.

Last edited by KMBS; 05-01-2010 at 03:09 AM. Reason: Typo
 
Old 05-01-2010, 03:59 AM   #6
raqua
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you for your responses.

My internet link is 30Mbit/4Mbit. I connect to it using wifi. It is not a problem of my internet provider because when my connection breaks, I can not ping router, other PC's connected to the same router work fine.
As was mentioned in the original post I reacted to before this has been moved, when this happens, I can see message this message in kernel log:
Possible SYN flooding on port XXXXX. Sending cookies. (Port number is the one I run torrents on)

My router is DLink DIR-655 which I bought especially because it can handle a lot of connections. According to review at smallnetbuilder.com, it performed great in this regard and was able to handle 200 connections at a time. Maybe even more, but the measurement tools used in the test did not allowed to test more. Anyway, limiting max. connections to 150 did not help.

The thing is, that I had this message in dmesg before, but no connection interruption. Booting older kernel seems to help in this regard, so maybe this is some bug. I will check it next time I download so much at once which I do not do very often.
 
Old 05-02-2010, 02:20 AM   #7
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
If you can't ping the router when this happens, then my first two suggestions are out... and if your other PCs can still access the network then it's not your router either. It almost has to be an issue with your local PC. Maybe your TCP/IP buffer is exceeding its limit? That possibility would be consistent with the SYN logs you're seeing. Google TCP tuning if you're interested. Another thing you want to try, but only when the issue occurs again, is ping your local NIC's IP and ping localhost. Verify both are successful.
 
  


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
Internet connection problem under Linux - "Connection Reset" scmbg Linux - Networking 1 02-25-2010 11:44 AM
downloading bittorrent using a vpn connection 0zon3 Linux - Networking 1 06-07-2009 10:35 AM
Using Bittorrent with (somewhat) Flaky Internet Connection blackhole54 General 4 05-13-2009 05:16 PM
BitTorrent > Question about connection limits pgreptom Linux - Software 1 04-25-2009 01:17 AM
Bittorrent connection problem Synesthesia Linux - Hardware 1 04-14-2008 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 PM.

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