Bitcoin Forum
April 19, 2014, 04:19:54 AM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: 1 ... 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 [115] 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 ... 415
  Print  
Author Topic: [185 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 693930 times)
kano
Hero Member
*****
Online Online

Activity: 1008


Linux since 1997 RedHat 4


View Profile

Ignore
May 15, 2012, 05:06:58 AM
 #2281

Though ... the IP address of a non-p2pool pool is even less than trivial and doesn't require running p2pool and waiting and hoping to get everyone on p2pool to connect to you.
You get the IP address pretty much immediately when you want to start your DDoS attack and thus leave no pre DDoS trail ...

BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CGMiner developer,  IRC FreeNode #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1397881194
Hero Member
*
Offline Offline

Posts: 1397881194

View Profile Personal Message (Offline)

Ignore
1397881194
Reply with quote  #2

1397881194
Report to moderator
1397881194
Hero Member
*
Offline Offline

Posts: 1397881194

View Profile Personal Message (Offline)

Ignore
1397881194
Reply with quote  #2

1397881194
Report to moderator
forrestv
Sr. Member
****
Offline Offline

Activity: 467


View Profile

Ignore
May 15, 2012, 05:48:25 AM
 #2282

It's trivial to get the IPs of every p2pool miner, and spread the DDoS across them. Many (most?) mining pools can withstand far more bandwidth being thrown at them, than the equivalent in miners' connections, so the DDoS will require less bandwidth to pull off. Furthermore, since such a DDoS takes out the miners' connection, it effectively prevents any failover including solo mining.

To contrast, not only do other pools have higher DDoS resistance in terms of bandwidth, but they generally keep their miners' IPs private, so when/if the pool goes down, the miners are free to failover to another pool.

There are hundreds of P2Pool nodes (my node has heard of 292 active in the past day). Does any pool have a network link that can sustain multiple gigabits per second?

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Luke-Jr
Hero Member
*****
Offline Offline

Activity: 1218



View Profile

Ignore
May 15, 2012, 06:41:35 AM
 #2283

There are hundreds of P2Pool nodes (my node has heard of 292 active in the past day). Does any pool have a network link that can sustain multiple gigabits per second?
Eligius's last DDoS was over 30 gbit/sec. It didn't stop until we overcame it.

Gomeler
Hero Member
*****
Offline Offline

Activity: 602


View Profile

Ignore
May 15, 2012, 05:57:19 PM
 #2284

Is there any way by crawling the p2pool logs to see when a block is found by p2pool and the reward distributed to my wallet? I'm not seeing any notifications in the p2pool logs. Trying to automate a report email so I can start gathering some mining stats with p2pool.
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile

Ignore
May 15, 2012, 06:01:46 PM
 #2285

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

Here's the last block and the payouts.

http://blockchain.info/block-index/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17
Gomeler
Hero Member
*****
Offline Offline

Activity: 602


View Profile

Ignore
May 15, 2012, 07:09:19 PM
 #2286

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

Here's the last block and the payouts.

http://blockchain.info/block-index/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17

I guess I'll have to dig through p2pool to see if there is a way to dump the individual user generated BTC to the logs. I'd hate to have to curl and scrape that page.

The following output gives an URL
GOT BLOCK FROM PEER! Passing to bitcoind! 74b22adc bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc

that could then be scraped with grep, awk and sed

curl http://blockexplorer.com/block/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17 | grep ${btcaddress} | awk '{print $3}' | sed 's|</li>||'

I guess that is a temporary solution. The GOT BLOCK FROM PEER! message should have a way to output this like..

GOT BLOCK FROM PEER! Passing to bitcoind! derpderpderp bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc. Shares: x (y orphan, z dead) Stale rate: xx% Efficiency: yy% Block payout: x.y BTC

Tittiez
Hero Member
*****
Offline Offline

Activity: 588



View Profile

Ignore
May 15, 2012, 08:24:34 PM
 #2287

Mined 3 LTC blocks with P2Pool already in two days with only 21kH/s, good luck for the pool, bad luck for me.  Undecided

JayCoin
Sr. Member
****
Offline Offline

Activity: 370


LOAD "*",8,1


View Profile WWW

Ignore
May 15, 2012, 08:37:53 PM
 #2288

Quote from: Luke-Jr
Uh, what? p2pool is more susceptible to DoS than other pools...

Would you mind explaining how/why?  I usually think of a typical DDoS attack against a public mining pool address, perhaps you are referring to a different DoS method that I'm not considering.
It's trivial to get the IPs of every p2pool miner, and spread the DDoS across them. Many (most?) mining pools can withstand far more bandwidth being thrown at them, than the equivalent in miners' connections, so the DDoS will require less bandwidth to pull off. Furthermore, since such a DDoS takes out the miners' connection, it effectively prevents any failover including solo mining.

To contrast, not only do other pools have higher DDoS resistance in terms of bandwidth, but they generally keep their miners' IPs private, so when/if the pool goes down, the miners are free to failover to another pool.

That's why you should use p2pmining.com to mine p2pool  Grin

Bitvenders.com
Bitcoin Mining Equipment
Buy and Sell Bitcoins AtCoinbase.com
Aseras
Hero Member
*****
Offline Offline

Activity: 658


View Profile

Ignore
May 15, 2012, 08:43:59 PM
 #2289

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

Here's the last block and the payouts.

http://blockchain.info/block-index/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17

I guess I'll have to dig through p2pool to see if there is a way to dump the individual user generated BTC to the logs. I'd hate to have to curl and scrape that page.

The following output gives an URL
GOT BLOCK FROM PEER! Passing to bitcoind! 74b22adc bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc

that could then be scraped with grep, awk and sed

curl http://blockexplorer.com/block/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17 | grep ${btcaddress} | awk '{print $3}' | sed 's|</li>||'

I guess that is a temporary solution. The GOT BLOCK FROM PEER! message should have a way to output this like..

GOT BLOCK FROM PEER! Passing to bitcoind! derpderpderp bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc. Shares: x (y orphan, z dead) Stale rate: xx% Efficiency: yy% Block payout: x.y BTC



why not just call bitcoind listtransactions  it'll show all the mined blocks individually to your address.
Gomeler
Hero Member
*****
Offline Offline

Activity: 602


View Profile

Ignore
May 15, 2012, 09:17:45 PM
 #2290

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

Here's the last block and the payouts.

http://blockchain.info/block-index/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17

I guess I'll have to dig through p2pool to see if there is a way to dump the individual user generated BTC to the logs. I'd hate to have to curl and scrape that page.

The following output gives an URL
GOT BLOCK FROM PEER! Passing to bitcoind! 74b22adc bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc

that could then be scraped with grep, awk and sed

curl http://blockexplorer.com/block/000000000000009743ecaf0e954afc3d1ee59cebbeb47e22d32bb4f6db52cc17 | grep ${btcaddress} | awk '{print $3}' | sed 's|</li>||'

I guess that is a temporary solution. The GOT BLOCK FROM PEER! message should have a way to output this like..

GOT BLOCK FROM PEER! Passing to bitcoind! derpderpderp bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc. Shares: x (y orphan, z dead) Stale rate: xx% Efficiency: yy% Block payout: x.y BTC



why not just call bitcoind listtransactions  it'll show all the mined blocks individually to your address.

I have an unusual case where I cannot SSH in to my boxes but instead have them dumping logs to me via email. I simply want to monitor the hashing rate and btc production remotely and if a box goes down I stop by the upcoming weekend. I have the rigs setup with conservative clocks and usually visit once every other week to install another machine and such.
twmz
Hero Member
*****
Offline Offline

Activity: 737



View Profile

Ignore
May 15, 2012, 09:47:15 PM
 #2291

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

I guess I'll have to dig through p2pool to see if there is a way to dump the individual user generated BTC to the logs. I'd hate to have to curl and scrape that page.

The following output gives an URL
GOT BLOCK FROM PEER! Passing to bitcoind! 74b22adc bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc

Historically, not all blocks get announced in every p2pool node with a message like you listed there.  That has recently changed, in theory.  Once you have the block hash, you can get details of the block either from bitcoind using the getblock RPC call or from blockchain.info's or blockexplorer.com's JSON APIs.

Also, you don't need to scrape p2pool.info to get the list of p2pool block.  There is a JSON API you can just call to get the raw data if you want it:  http://p2pool.info/blocks  Of course you have to do some post processing if you are wanting to confirm that your address was paid in any given block.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG
twmz
Hero Member
*****
Offline Offline

Activity: 737



View Profile

Ignore
May 15, 2012, 09:50:14 PM
 #2292

Is there any way by crawling the p2pool logs to see when a block is found by p2pool and the reward distributed to my wallet? I'm not seeing any notifications in the p2pool logs. Trying to automate a report email so I can start gathering some mining stats with p2pool.

Another alternative to the suggestions already made is to go create a wallet at blockchain.info.  Then add your payment address to that wallet.  You can add it as a public-key-only address and just have blockchain.info monitor the address for transactions without it worrying about having it fully enabled with the private key.  They have an email notification system that can notify you when you receive a payment at that address.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG
Gomeler
Hero Member
*****
Offline Offline

Activity: 602


View Profile

Ignore
May 15, 2012, 10:02:24 PM
 #2293

Go to http://p2pool.info/ and go through each block and look for your payout address, or go to blockchain.info and put your payout address in the search box.

I guess I'll have to dig through p2pool to see if there is a way to dump the individual user generated BTC to the logs. I'd hate to have to curl and scrape that page.

The following output gives an URL
GOT BLOCK FROM PEER! Passing to bitcoind! 74b22adc bitcoin: http://blockexplorer.com/block/00000000000000b8fea2523bd5ba56ab32e6cd6e0a1068d6f983e92074b22adc

Historically, not all blocks get announced in every p2pool node with a message like you listed there.  That has recently changed, in theory.  Once you have the block hash, you can get details of the block either from bitcoind using the getblock RPC call or from blockchain.info's or blockexplorer.com's JSON APIs.

Also, you don't need to scrape p2pool.info to get the list of p2pool block.  There is a JSON API you can just call to get the raw data if you want it:  http://p2pool.info/blocks  Of course you have to do some post processing if you are wanting to confirm that your address was paid in any given block.

Thanks for the info on the JSON output from p2pool.info. I'll use that + blockexplorer to start pulling my btc output and various shares stats.
Krak
Hero Member
*****
Offline Offline

Activity: 542



View Profile WWW

Ignore
May 15, 2012, 10:24:00 PM
 #2294

They have an email notification system that can notify you when you receive a payment at that address.
Blockchain.info's email notifications have always been kinda weird with generated coins for me.

BTC: 1KrakenLFEFg33A4f6xpwgv3UUoxrLPuGn
bitpop
Hero Member
*****
Offline Offline

Activity: 966



View Profile WWW

Ignore
May 16, 2012, 07:05:11 AM
 #2295

http://bitping.net/

Arbitrage opportunities: http://cuarta.info/    Buy Bitcoin: https://buttercoin.com/    Live trades: http://coinslinger.pw/
BTC: 1BitPoPW7jeHYyiEXvngwH8U1Mpk83E26r Any tip is appreciated! | PGP | OpenVPN | KNC Miner
Bitmessage: (bitpop) BM-NC2jK32oc4asYcT274paC17naKKChb1A | Reputation/Free Escrow/Consulting Service
organofcorti
Donator
Hero Member
*
Offline Offline

Activity: 1036


Poor impulse control.


View Profile WWW

Ignore
May 16, 2012, 09:18:56 AM
 #2296

I don't know if this has been covered before, but going through the results on http://p2pool.info/blocks I've noticed a few rounds with negative round shares and negative round duration. Can anyone explain this for me? Most recently occurred on block 179106.

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
twmz
Hero Member
*****
Offline Offline

Activity: 737



View Profile

Ignore
May 16, 2012, 01:01:51 PM
 #2297

I don't know if this has been covered before, but going through the results on http://p2pool.info/blocks I've noticed a few rounds with negative round shares and negative round duration. Can anyone explain this for me? Most recently occurred on block 179106.

Round duration = Timestamp of the block that was just found - Timestamp of the block before that

As previously discussed "round shares" is actually a calculated value that is derived from the round duration and hashrate during that round.

Block timestamps are not precise.  First, they are based on miner's clocks which may not be accurate.  Second, with ntime rolling, they may have been arbitrarily adjusted.  Sometimes when a block that comes very shortly after another block ends up having a timestamp earlier than the block it came after.  When both blocks happen to be p2pool blocks, that makes the round duration (and therefore, also the round shares) negative.

The p2pool.info UI just hides this oddity.  

The small variations in block timestamp go both ways.  Sometimes a block's timestamp will be a little bit ahead and sometimes it will be a little bit behind.  So these small variations average out in the long term.  They are left in the raw data so that the luck calculations will be unaffected.  For example, some rounds will be 100 shares to high while other rounds will be 100 shares too low.  Since luck is basically "SUM(shares in some rounds) / SUM(expected shares for those rounds)" it doesn't matter if the rounds are 105 + 95 or 100 + 100.  As long as the average variation in timestamp is "0", it doesn't affect luck calculations.

And yes, as has been suggested in the past, it would be more accurate to count the actual hashes in the share chain to know exactly how many hashes went into finding a block.  But there are a number of technical challenges to making that work and the improvement in accuracy isn't enough to make it worth it to me to do that work.

Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG
organofcorti
Donator
Hero Member
*
Offline Offline

Activity: 1036


Poor impulse control.


View Profile WWW

Ignore
May 16, 2012, 01:29:55 PM
 #2298

Thanks twmz - I thought it was something like that, and I knew I'd seen something along those lines before, but I wanted to be sure, plus your explanation was very clear.

So: 
Code:
sum(totalRoundShares)/sum(roundDuration) /10^9*2^32
should give a reasonably accurate hashrate estimate?

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
twmz
Hero Member
*****
Offline Offline

Activity: 737



View Profile

Ignore
May 16, 2012, 05:55:28 PM
 #2299

Thanks twmz - I thought it was something like that, and I knew I'd seen something along those lines before, but I wanted to be sure, plus your explanation was very clear.

So: 
Code:
sum(totalRoundShares)/sum(roundDuration) /10^9*2^32
should give a reasonably accurate hashrate estimate?

Yes, that is the reverse of what I did to get the totalRoundShares in the first place.  I take a weighted average of the hashrate data points (taken every 5 minutes) and use that with round duration to calculate the round shares.  If you are looking for the hashrate, it would be easier to just get them directly from http://p2pool.info/stats instead of reverse engineering them from the block data Smiley


Was I helpful?  1TwmzX1wBxNF2qtAJRhdKmi2WyLZ5VHRs
WoT, GPG
check_status
Full Member
***
Offline Offline

Activity: 196


Web Dev, Db Admin, Computer Technician


View Profile

Ignore
May 16, 2012, 06:11:13 PM
 #2300

Quote from: Luke-Jr
It's trivial to get the IPs of every p2pool miner, and spread the DDoS across them. Many (most?) mining pools can withstand far more bandwidth being thrown at them, than the equivalent in miners' connections, so the DDoS will require less bandwidth to pull off. Furthermore, since such a DDoS takes out the miners' connection, it effectively prevents any failover including solo mining.

To contrast, not only do other pools have higher DDoS resistance in terms of bandwidth, but they generally keep their miners' IPs private, so when/if the pool goes down, the miners are free to failover to another pool.

If there is consistently below average (10%) block solutions is this indicative of a possible attack?

In an attack, what would be targeted to disuade people from using p2pool? Of course, something that would effect Bitcoin generation, but what ways specifically could p2pool be attacked that would reduce coin generation?

Would an intermittent DDoS be more difficult to notice but enough to reduce coin generation?

For Bitcoin to be a true global currency the value of BTC needs always to rise.
If BTC became the global currency & money supply = 100 Trillion then ⊅1.00 BTC = $4,761,904.76.
P2Pool Server List | How To's and Guides Mega List |  1EndfedSryGUZK9sPrdvxHntYzv2EBexGA
Pages: 1 ... 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 [115] 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 ... 415
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!