summaryrefslogtreecommitdiff
path: root/55/eb5c50ac67b82c106a50af8bb372de66342642
blob: 017ca9ad22bf3ff8551eb9c692897cde48d7babc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191]
	helo=mx.sourceforge.net)
	by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76)
	(envelope-from <decker.christian@gmail.com>) id 1R0r9W-0002RW-0f
	for bitcoin-development@lists.sourceforge.net;
	Tue, 06 Sep 2011 08:37:06 +0000
Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com
	designates 209.85.210.42 as permitted sender)
	client-ip=209.85.210.42;
	envelope-from=decker.christian@gmail.com;
	helo=mail-pz0-f42.google.com; 
Received: from mail-pz0-f42.google.com ([209.85.210.42])
	by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-MD5:128)
	(Exim 4.76) id 1R0r9V-0004Dz-00
	for bitcoin-development@lists.sourceforge.net;
	Tue, 06 Sep 2011 08:37:05 +0000
Received: by pzk37 with SMTP id 37so9976501pzk.1
	for <bitcoin-development@lists.sourceforge.net>;
	Tue, 06 Sep 2011 01:36:59 -0700 (PDT)
Received: by 10.68.66.133 with SMTP id f5mr3532091pbt.263.1315298219074; Tue,
	06 Sep 2011 01:36:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.59.166 with HTTP; Tue, 6 Sep 2011 01:36:19 -0700 (PDT)
In-Reply-To: <4E65DA06.9060403@gmail.com>
References: <4E65CEE6.7030002@gmail.com> <4E65DA06.9060403@gmail.com>
From: Christian Decker <decker.christian@gmail.com>
Date: Tue, 6 Sep 2011 10:36:19 +0200
Message-ID: <CALxbBHUajARXc1oA-NjD+U8hW5uSqF=u4ZHHBfcmT_O8GjpNiA@mail.gmail.com>
To: shadders.del@gmail.com
Content-Type: multipart/alternative; boundary=bcaec544eefc1f244c04ac41bb4a
X-Spam-Score: -0.6 (/)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
	See http://spamassassin.org/tag/ for more details.
	-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
	sender-domain
	0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
	(decker.christian[at]gmail.com)
	-0.0 SPF_PASS               SPF: sender matches SPF record
	1.0 HTML_MESSAGE           BODY: HTML included in message
	-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
	author's domain
	0.1 DKIM_SIGNED            Message has a DKIM or DK signature,
	not necessarily valid
	-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-Headers-End: 1R0r9V-0004Dz-00
Cc: bitcoin-development@lists.sourceforge.net
Subject: Re: [Bitcoin-development] Building a node crawler to map network
X-BeenThere: bitcoin-development@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: <bitcoin-development.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=bitcoin-development>
List-Post: <mailto:bitcoin-development@lists.sourceforge.net>
List-Help: <mailto:bitcoin-development-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/bitcoin-development>,
	<mailto:bitcoin-development-request@lists.sourceforge.net?subject=subscribe>
X-List-Received-Date: Tue, 06 Sep 2011 08:37:06 -0000

--bcaec544eefc1f244c04ac41bb4a
Content-Type: text/plain; charset=ISO-8859-1

Hi Steve,

before attempting to hack BitcoinJ to use NIO you might want to take a look
at BitDroid (https://github.com/cdecker/BitDroid-Network), which is my
attempt to build an easily extensible network client (no crypto stuff so
far) on top of NIO and a simple publish-subscribe architecture. I build a
crawler like yours with just a single class that subscribes to events
published and closes and opens connections to crawl.

HTH,
Christian

On Tue, Sep 6, 2011 at 10:29 AM, Steve <shadders.del@gmail.com> wrote:

> **
>
>
> While I'm asking questions I'll add one more regarding the getaddr message.
>
>
>
> Talking to myself here.  I just sent this message then found this brilliant
> set of articles in the Dev & Tech forum which answers the question very
> nicely: *https://bitcointalk.org/index.php?topic=41722.0<https://bitcointalk.org/index.php?board=6.0>
> *
> Anyway just as an FYI I've been running v0.0.0.0.0.0.0.0.1 for about an
> hour.  It's only running 10 concurrent connections due to girlfriend
> complaining she couldn't watch youtube but here's some early results.
>
> New nodes: 19319 // node address discovered but no contact attempt made yet
> Contacted nodes: 754
> Uncontactable nodes: 3253
> Limbo nodes: 9 //not as exciting as it sounds, just nodes with connect in
> progress
> Total nodes: 23335 // about 5000 from initial IRC discover, the rest are
> from getaddr
>
> Versions: {
> 300=1,
> 31900=7,
> 31902=1,
> 32000=2,
> 32001=7,
> 32002=22,
> 32100=100,
> 32200=24,
> 32300=277,
> 32400=317,
> 32500=2}
>
> Fails: {
> ConnectException: Connection refused=377,
> IOException: Socket is disconnected=87,
> SocketException: Network is unreachable=2,
> ProtocolException: Error deserializing message =1,
> NoRouteToHostException: No route to host=115,
> SocketException: Connection reset=149,
> SocketTimeoutException: connect timed out=2521}
>
>
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitcoin-development
>
>

--bcaec544eefc1f244c04ac41bb4a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Steve,<br><br>before attempting to hack BitcoinJ to use NIO you might wa=
nt to take a look at BitDroid (<a href=3D"https://github.com/cdecker/BitDro=
id-Network">https://github.com/cdecker/BitDroid-Network</a>), which is my a=
ttempt to build an easily extensible network client (no crypto stuff so far=
) on top of NIO and a simple publish-subscribe architecture. I build a craw=
ler like yours with just a single class that subscribes to events published=
 and closes and opens connections to crawl.<br>

<br>HTH,<br>Christian<br><br><div class=3D"gmail_quote">On Tue, Sep 6, 2011=
 at 10:29 AM, Steve <span dir=3D"ltr">&lt;<a href=3D"mailto:shadders.del@gm=
ail.com">shadders.del@gmail.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex;">

<u></u>

 =20
   =20
   =20
 =20
  <div bgcolor=3D"#ffffff" text=3D"#000000"><div class=3D"im">
    <br>
    <blockquote type=3D"cite">
      <br>
      While I&#39;m asking questions I&#39;ll add one more regarding the ge=
taddr
      message. <br>
    </blockquote>
    <br></div>
    Talking to myself here.=A0 I just sent this message then found this
    brilliant set of articles in the Dev &amp; Tech forum which answers
    the question very nicely: <b><a href=3D"https://bitcointalk.org/index.p=
hp?board=3D6.0" target=3D"_blank">https://bitcointalk.org/index.php?topic=
=3D41722.0</a><br>
    </b><br>
    Anyway just as an FYI I&#39;ve been running v0.0.0.0.0.0.0.0.1 for abou=
t
    an hour.=A0 It&#39;s only running 10 concurrent connections due to
    girlfriend complaining she couldn&#39;t watch youtube but here&#39;s so=
me
    early results.<br>
    <br>
    New nodes: 19319 // node address discovered but no contact attempt
    made yet<br>
    Contacted nodes: 754<br>
    Uncontactable nodes: 3253<br>
    Limbo nodes: 9 //not as exciting as it sounds, just nodes with
    connect in progress<br>
    Total nodes: 23335 // about 5000 from initial IRC discover, the rest
    are from getaddr<br>
    <br>
    Versions: {<br>
    300=3D1, <br>
    31900=3D7, <br>
    31902=3D1, <br>
    32000=3D2, <br>
    32001=3D7, <br>
    32002=3D22, <br>
    32100=3D100, <br>
    32200=3D24, <br>
    32300=3D277, <br>
    32400=3D317, <br>
    32500=3D2}<br>
    <br>
    Fails: {<br>
    ConnectException: Connection refused=3D377, <br>
    IOException: Socket is disconnected=3D87, <br>
    SocketException: Network is unreachable=3D2, <br>
    ProtocolException: Error deserializing message =3D1, <br>
    NoRouteToHostException: No route to host=3D115, <br>
    SocketException: Connection reset=3D149, <br>
    SocketTimeoutException: connect timed out=3D2521}<br>
    <br>
    <br>
  </div>

<br>-----------------------------------------------------------------------=
-------<br>
Special Offer -- Download ArcSight Logger for FREE!<br>
Finally, a world-class log management solution at an even better<br>
price-free! And you&#39;ll get a free &quot;Love Thy Logs&quot; t-shirt whe=
n you<br>
download Logger. Secure your free ArcSight Logger TODAY!<br>
<a href=3D"http://p.sf.net/sfu/arcsisghtdev2dev" target=3D"_blank">http://p=
.sf.net/sfu/arcsisghtdev2dev</a><br>_______________________________________=
________<br>
Bitcoin-development mailing list<br>
<a href=3D"mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-develo=
pment@lists.sourceforge.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/bitcoin-development=
" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-de=
velopment</a><br>
<br></blockquote></div><br>

--bcaec544eefc1f244c04ac41bb4a--