Bitcoin Forum
May 05, 2024, 01:51:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Limiting upload bandwidth in Satoshi bitcoin client  (Read 4884 times)
Epoch (OP)
Legendary
*
Offline Offline

Activity: 922
Merit: 1003



View Profile
February 07, 2013, 04:22:03 PM
Last edit: February 07, 2013, 06:28:52 PM by Epoch
 #1

I'd like to ask if there is any way to configure the standard Satoshi bitcoin blient (current running v0.7.x) to limit its upload bandwidth. If not, are there any plans to introduce it in a future release such as v0.8? Do any of the other clients offer bandwidth limiting?

My service is 10mbit/s download and 0.5mbit/s upload. There are occasions when external nodes connect to my client and start to download the blockchain. This saturates my upload bandwidth (about 50kbytes/s) and my internet latency skyrockets (ping times in the 2000-3000ms range consistently, when normally they would be 20-30ms). During these times, internet browsing and other internet activity becomes virtually unusable.

If I notice this happening, I exit the client and my internet latency returns to normal. If there was a way to limit the bitcoin client's upload bandwidth, this problem should be mitigated.

1714917081
Hero Member
*
Offline Offline

Posts: 1714917081

View Profile Personal Message (Offline)

Ignore
1714917081
Reply with quote  #2

1714917081
Report to moderator
1714917081
Hero Member
*
Offline Offline

Posts: 1714917081

View Profile Personal Message (Offline)

Ignore
1714917081
Reply with quote  #2

1714917081
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
February 11, 2013, 06:24:06 AM
 #2

I'd like to ask if there is any way to configure the standard Satoshi bitcoin blient (current running v0.7.x) to limit its upload bandwidth. If not, are there any plans to introduce it in a future release such as v0.8? Do any of the other clients offer bandwidth limiting?

My service is 10mbit/s download and 0.5mbit/s upload. There are occasions when external nodes connect to my client and start to download the blockchain. This saturates my upload bandwidth (about 50kbytes/s) and my internet latency skyrockets (ping times in the 2000-3000ms range consistently, when normally they would be 20-30ms). During these times, internet browsing and other internet activity becomes virtually unusable.

If I notice this happening, I exit the client and my internet latency returns to normal. If there was a way to limit the bitcoin client's upload bandwidth, this problem should be mitigated.



the only way to deal with this right now is to set QoS... i think windows has some built-in QoS, also some (most?) routers

i used to use netlimiter (for windows)

Epoch (OP)
Legendary
*
Offline Offline

Activity: 922
Merit: 1003



View Profile
February 11, 2013, 02:02:56 PM
 #3

I figured as much, but thought I'd ask. Thanks, zvs.
BladeMcCool
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile
April 05, 2013, 04:06:32 PM
 #4

Hate to necro a thread but as this is only a couple months old I'd like to bring it back up as a concern. I'm having this issue now, my flatmates are complaining about the internet being slow and shutting off bitcoin-qt fixes it.

What spot in the code should I look in to rate-limit the upload and then can someone hold my hand through building bitcoin QT with this new feature?
christop
Member
**
Offline Offline

Activity: 84
Merit: 10



View Profile
April 05, 2013, 04:33:23 PM
 #5

I found that limiting maxconnections to a small value (12 or so) in bitcoin.conf or on the command line helps a lot with limiting its bandwidth. See https://en.bitcoin.it/wiki/Running_Bitcoin for ways to set maxconnections.

The real culprit is bufferbloat. The network buffer between your high-speed LAN and the low-speed WAN is too large and has inadequate queue management, causing high latency (measured in seconds) when it fills up. The offending buffer might be in your router or in your modem or in your ISP's switches. Depending on where the buffer is, you may or may not be able to do anything about it. QoS in your OS or router can mitigate the problem, though.

Tips are always welcome: 17Z63hLi2ox4fCMhDqVJrLTJiXVcBMJpMo
Alpaca socks donations: 1sockzDWcF8mrC59CgiN7HAJm6xL7TiRW
soundasleep
Full Member
***
Offline Offline

Activity: 169
Merit: 100


View Profile
May 01, 2013, 04:28:51 AM
 #6

I just got hit with this, where my connection will occasionally become literally unusable for chunks of time due to the bitcoin and litecoin clients. Shutting them down instantly fixes the problem. I think this means I can no longer be a fulltime full node. The clients need some way to throttle bandwidth. (Due to geographical constraints my connection is limited to 8 Mbps/800 Kbps.)
Epoch (OP)
Legendary
*
Offline Offline

Activity: 922
Merit: 1003



View Profile
May 01, 2013, 02:37:40 PM
 #7

I just got hit with this, where my connection will occasionally become literally unusable for chunks of time due to the bitcoin and litecoin clients. Shutting them down instantly fixes the problem. I think this means I can no longer be a fulltime full node. The clients need some way to throttle bandwidth. (Due to geographical constraints my connection is limited to 8 Mbps/800 Kbps.)
This is just one reason why the default client is still known as *beta*; it is nowhere near ready for prime-time. I'd love to run it full-time, but this bandwidth issue makes that impractical. Honestly, the effort to configure our routers to throttle upstream bitcoind traffic is something that shouldn't be necessary.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 01, 2013, 03:25:07 PM
 #8

learn to search. there are at least 3 threads about this.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
soundasleep
Full Member
***
Offline Offline

Activity: 169
Merit: 100


View Profile
May 01, 2013, 09:46:24 PM
 #9

learn to search. there are at least 3 threads about this.

They all say the same thing, either:

  • install rate limiting software (I've been down that road before, no thanks)
  • use trickle (I'm not on Linux, and trickle isn't on cygwin)
  • reduce maximum number of connections (which just reduces the likelihood of saturation, it can still occur)

The default client should have limiting support built-in, otherwise only people with fast and high-capacity Internet connections can ever use Bitcoin (or at the very least, be a full node, increasing network security). I can only run the client a few hours a day now.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 01, 2013, 10:51:19 PM
Last edit: May 01, 2013, 11:28:55 PM by grue
 #10

learn to search. there are at least 3 threads about this.

They all say the same thing, either:

  • install rate limiting software (I've been down that road before, no thanks)
  • use trickle (I'm not on Linux, and trickle isn't on cygwin)
  • reduce maximum number of connections (which just reduces the likelihood of saturation, it can still occur)

The default client should have limiting support built-in, otherwise only people with fast and high-capacity Internet connections can ever use Bitcoin (or at the very least, be a full node, increasing network security). I can only run the client a few hours a day now.
yes, there's also discussion on that on github. the reason is something along the lines of not easy to implement.

edit: https://github.com/bitcoin/bitcoin/issues/756

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
soundasleep
Full Member
***
Offline Offline

Activity: 169
Merit: 100


View Profile
May 03, 2013, 04:10:54 AM
 #11

yes, there's also discussion on that on github. the reason is something along the lines of not easy to implement.

This should be one of the highest priority issues, yet it's marked as "priority low". Something as simple as (limit upload to X kb/sec) would solve this. I would fix it myself if I had the resources (money, time).

Edit: thanks for the issue link, I've added my voice to the noise.
roy7
Sr. Member
****
Offline Offline

Activity: 434
Merit: 250


View Profile
May 03, 2013, 04:14:10 AM
 #12

yes, there's also discussion on that on github. the reason is something along the lines of not easy to implement.

This should be one of the highest priority issues, yet it's marked as "priority low". Something as simple as (limit upload to X kb/sec) would solve this. I would fix it myself if I had the resources (money, time).

Edit: thanks for the issue link, I've added my voice to the noise.

Better to leave network bandwidth limiting to the tool designed just for it, or qos settings in your router, than have bitcoin itself try to handle that. On Windows one could use Netlimiter and cap the upload speed only on the bitcoin process.

gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
May 03, 2013, 07:10:15 AM
 #13

There is not yet a way to limit it inside bitcoind/bitcoin-qt itself, though it's something that will be done in the future.

Virtually all the bulk users is new users sucking down the chain from you— there has been a _ton_ of new nodes added lately, so it's more obvious than ever. You can prevent this by setting listen=0 in bitcoin.cof or -listen=0 on the commandline.  This will prevent inbound connections, and since only nodes which have most of the chain will listen for outbounds this will mostly opt you out of feeding new clients.

Simplistic network rate limiters don't do anything to tell your peers they should pull from someone else instead, and the Bitcoin software itself isn't yet smart enough to figure it out... so even if (or especially if) you have a network rate limiter, it's probably best to set listen=0 so your ratelimited transmission doesn't cause a slow sync for someone else.

Cheers.
Epoch (OP)
Legendary
*
Offline Offline

Activity: 922
Merit: 1003



View Profile
May 03, 2013, 03:39:53 PM
 #14

... so even if (or especially if) you have a network rate limiter, it's probably best to set listen=0 so your ratelimited transmission doesn't cause a slow sync for someone else.
Thanks for the info; this will help.
LvM
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
May 03, 2013, 05:20:53 PM
 #15

I'd like to ask if there is any way to configure the standard Satoshi bitcoin blient (current running v0.7.x) to limit its upload bandwidth. If not, are there any plans to introduce it in a future release such as v0.8? Do any of the other clients offer bandwidth limiting?

My service is 10mbit/s download and 0.5mbit/s upload. There are occasions when external nodes connect to my client and start to download the blockchain. This saturates my upload bandwidth (about 50kbytes/s) and my internet latency skyrockets (ping times in the 2000-3000ms range consistently, when normally they would be 20-30ms). During these times, internet browsing and other internet activity becomes virtually unusable.

If I notice this happening, I exit the client and my internet latency returns to normal. If there was a way to limit the bitcoin client's upload bandwidth, this problem should be mitigated.



Why not using Electrum ?

BTC violates GAAP, result a MESS  https://bitcointalk.org/index.php?topic=211835.0
Anforderungen an eine PROFESSIONELLE BTC-Anwendung https://bitcointalk.org/index.php?topic=189669
BANKGEHEIMNIS mit BTC gleich NULL!? https://bitcointalk.org/index.php?topic=188383 Antwort: Ja, wenn man nicht höllisch aufpaßt.
cardcomm
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
May 26, 2013, 06:30:20 PM
 #16

learn to search. there are at least 3 threads about this.

Gotta love a helpful post like this one  Angry

Easily see your cgminer status with my cgminerLCDStats app:  http://cardcomm.github.io/cgminerLCDStats/
Did my post help you or make you laugh? Let me know with Bitcoins at: 1CQfpMHQ5zVuZ5i9uxSHSSx4J8ZhehSjn3  Smiley
Malawi
Full Member
***
Offline Offline

Activity: 224
Merit: 100


One bitcoin to rule them all!


View Profile
May 28, 2013, 10:31:52 PM
 #17

The free version of netbalancer can limit up to 3 programs.

BitCoin is NOT a pyramid - it's a pagoda.
kodo
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 29, 2013, 02:05:20 AM
 #18

Nice this is good
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!