This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathConnectionManager.cs
585 lines (480 loc) · 24 KB
/
ConnectionManager.cs
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using NBitcoin;
using Stratis.Bitcoin.AsyncWork;
using Stratis.Bitcoin.Configuration;
using Stratis.Bitcoin.Configuration.Logging;
using Stratis.Bitcoin.Configuration.Settings;
using Stratis.Bitcoin.Consensus;
using Stratis.Bitcoin.Interfaces;
using Stratis.Bitcoin.P2P;
using Stratis.Bitcoin.P2P.Peer;
using Stratis.Bitcoin.P2P.Protocol.Payloads;
using Stratis.Bitcoin.Utilities;
using Stratis.Bitcoin.Utilities.Extensions;
namespace Stratis.Bitcoin.Connection
{
public sealed class ConnectionManager : IConnectionManager
{
/// <summary>Provider of time functions.</summary>
private readonly IDateTimeProvider dateTimeProvider;
/// <summary>The maximum number of entries in an 'inv' protocol message.</summary>
public const int MaxInventorySize = 50000;
/// <summary>Logger factory to create loggers.</summary>
private readonly ILoggerFactory loggerFactory;
/// <summary>Instance logger.</summary>
private readonly ILogger logger;
/// <inheritdoc/>
public Network Network { get; private set; }
/// <inheritdoc/>
public INetworkPeerFactory NetworkPeerFactory { get; private set; }
/// <summary>Global application life cycle control - triggers when application shuts down.</summary>
private readonly INodeLifetime nodeLifetime;
/// <inheritdoc/>
public NodeSettings NodeSettings { get; private set; }
/// <inheritdoc/>
public ConnectionManagerSettings ConnectionSettings { get; private set; }
/// <inheritdoc/>
public NetworkPeerConnectionParameters Parameters { get; }
/// <inheritdoc/>
public IEnumerable<IPeerConnector> PeerConnectors { get; private set; }
/// <summary>Manager class that handles peers and their respective states.</summary>
private readonly IPeerAddressManager peerAddressManager;
/// <summary>Async loop that discovers new peers to connect to.</summary>
private readonly IPeerDiscovery peerDiscovery;
private readonly List<IPEndPoint> ipRangeFilteringEndpointExclusions;
private readonly NetworkPeerCollection connectedPeers;
/// <summary>Registry of endpoints used to identify this node.</summary>
private readonly ISelfEndpointTracker selfEndpointTracker;
public IReadOnlyNetworkPeerCollection ConnectedPeers
{
get { return this.connectedPeers; }
}
/// <inheritdoc/>
public List<NetworkPeerServer> Servers { get; }
/// <summary>Maintains a list of connected peers and ensures their proper disposal.</summary>
private readonly NetworkPeerDisposer networkPeerDisposer;
private readonly IVersionProvider versionProvider;
private readonly IAsyncProvider asyncProvider;
private IConsensusManager consensusManager;
private readonly IAsyncDelegateDequeuer<INetworkPeer> connectedPeersQueue;
/// <summary>Traffic statistics from peers that have been disconnected.</summary>
private readonly PerformanceCounter disconnectedPerfCounter;
public ConnectionManager(IDateTimeProvider dateTimeProvider,
ILoggerFactory loggerFactory,
Network network,
INetworkPeerFactory networkPeerFactory,
NodeSettings nodeSettings,
INodeLifetime nodeLifetime,
NetworkPeerConnectionParameters parameters,
IPeerAddressManager peerAddressManager,
IEnumerable<IPeerConnector> peerConnectors,
IPeerDiscovery peerDiscovery,
ISelfEndpointTracker selfEndpointTracker,
ConnectionManagerSettings connectionSettings,
IVersionProvider versionProvider,
INodeStats nodeStats,
IAsyncProvider asyncProvider)
{
this.connectedPeers = new NetworkPeerCollection();
this.dateTimeProvider = dateTimeProvider;
this.loggerFactory = loggerFactory;
this.logger = loggerFactory.CreateLogger(this.GetType().FullName);
this.Network = network;
this.NetworkPeerFactory = networkPeerFactory;
this.NodeSettings = nodeSettings;
this.nodeLifetime = nodeLifetime;
this.asyncProvider = asyncProvider;
this.peerAddressManager = peerAddressManager;
this.PeerConnectors = peerConnectors;
this.peerDiscovery = peerDiscovery;
this.ConnectionSettings = connectionSettings;
this.networkPeerDisposer = new NetworkPeerDisposer(this.loggerFactory, this.asyncProvider);
this.Servers = new List<NetworkPeerServer>();
this.Parameters = parameters;
this.Parameters.ConnectCancellation = this.nodeLifetime.ApplicationStopping;
this.selfEndpointTracker = selfEndpointTracker;
this.versionProvider = versionProvider;
this.ipRangeFilteringEndpointExclusions = new List<IPEndPoint>();
this.connectedPeersQueue = asyncProvider.CreateAndRunAsyncDelegateDequeuer<INetworkPeer>($"{nameof(ConnectionManager)}-{nameof(this.connectedPeersQueue)}", this.OnPeerAdded);
this.disconnectedPerfCounter = new PerformanceCounter();
this.Parameters.UserAgent = $"{this.ConnectionSettings.Agent}:{versionProvider.GetVersion()} ({(int)this.NodeSettings.ProtocolVersion})";
this.Parameters.Version = this.NodeSettings.ProtocolVersion;
nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, this.GetType().Name, 1100);
}
/// <inheritdoc />
public void Initialize(IConsensusManager consensusManager)
{
this.consensusManager = consensusManager;
this.AddExternalIpToSelfEndpoints();
if (this.ConnectionSettings.Listen)
this.peerDiscovery.DiscoverPeers(this);
foreach (IPeerConnector peerConnector in this.PeerConnectors)
{
peerConnector.Initialize(this);
peerConnector.StartConnectAsync();
}
if (this.ConnectionSettings.Listen)
this.StartNodeServer();
// If external IP address supplied this overrides all.
if (this.ConnectionSettings.ExternalEndpoint != null)
{
if (this.ConnectionSettings.ExternalEndpoint.Address.Equals(IPAddress.Loopback))
this.selfEndpointTracker.UpdateAndAssignMyExternalAddress(this.ConnectionSettings.ExternalEndpoint, false);
else
this.selfEndpointTracker.UpdateAndAssignMyExternalAddress(this.ConnectionSettings.ExternalEndpoint, true);
}
else
{
// If external IP address not supplied take first routable bind address and set score to 10.
IPEndPoint nodeServerEndpoint = this.ConnectionSettings.Bind?.FirstOrDefault(x => x.Endpoint.Address.IsRoutable(false))?.Endpoint;
if (nodeServerEndpoint != null)
{
this.selfEndpointTracker.UpdateAndAssignMyExternalAddress(nodeServerEndpoint, false, 10);
}
else
{
this.selfEndpointTracker.UpdateAndAssignMyExternalAddress(new IPEndPoint(IPAddress.Parse("0.0.0.0").MapToIPv6Ex(), this.ConnectionSettings.Port), false);
}
}
}
/// <summary>
/// If -externalip was set on startup, put it in the registry of known selves so
/// we can avoid connecting to our own node.
/// </summary>
private void AddExternalIpToSelfEndpoints()
{
if (this.ConnectionSettings.ExternalEndpoint != null)
this.selfEndpointTracker.Add(this.ConnectionSettings.ExternalEndpoint);
}
private void StartNodeServer()
{
var logs = new StringBuilder();
logs.AppendLine("Node listening on:");
foreach (NodeServerEndpoint listen in this.ConnectionSettings.Bind)
{
NetworkPeerConnectionParameters cloneParameters = this.Parameters.Clone();
NetworkPeerServer server = this.NetworkPeerFactory.CreateNetworkPeerServer(listen.Endpoint, this.ConnectionSettings.ExternalEndpoint, this.Parameters.Version);
this.Servers.Add(server);
var cmb = (cloneParameters.TemplateBehaviors.Single(x => x is IConnectionManagerBehavior) as ConnectionManagerBehavior);
cmb.Whitelisted = listen.Whitelisted;
server.InboundNetworkPeerConnectionParameters = cloneParameters;
try
{
server.Listen();
}
catch (SocketException e)
{
this.logger.LogCritical("Unable to listen on port {0} (you can change the port using '-port=[number]'). Error message: {1}", listen.Endpoint.Port, e.Message);
throw e;
}
logs.Append(listen.Endpoint.Address + ":" + listen.Endpoint.Port);
if (listen.Whitelisted)
logs.Append(" (whitelisted)");
logs.AppendLine();
}
this.logger.LogInformation(logs.ToString());
}
public void AddDiscoveredNodesRequirement(NetworkPeerServices services)
{
IPeerConnector peerConnector = this.PeerConnectors.FirstOrDefault(pc => pc is PeerConnectorDiscovery);
if ((peerConnector != null) && !peerConnector.Requirements.RequiredServices.HasFlag(services))
{
peerConnector.Requirements.RequiredServices |= services;
foreach (INetworkPeer peer in peerConnector.ConnectorPeers)
{
if (peer.Inbound) continue;
if (!peer.PeerVersion.Services.HasFlag(services))
peer.Disconnect("The peer does not support the required services requirement.");
}
}
}
private void AddComponentStats(StringBuilder builder)
{
// The total traffic will be the sum of the disconnected peers' traffic and the currently connected peers' traffic.
long totalRead = this.disconnectedPerfCounter.ReadBytes;
long totalWritten = this.disconnectedPerfCounter.WrittenBytes;
void AddPeerInfo(StringBuilder peerBuilder, INetworkPeer peer)
{
var chainHeadersBehavior = peer.Behavior<ConsensusManagerBehavior>();
var connectionManagerBehavior = peer.Behavior<ConnectionManagerBehavior>();
string peerHeights = $"(r/s/c):" +
$"{(chainHeadersBehavior.BestReceivedTip != null ? chainHeadersBehavior.BestReceivedTip.Height.ToString() : peer.PeerVersion != null ? peer.PeerVersion.StartHeight + "*" : "-")}" +
$"/{(chainHeadersBehavior.BestSentHeader != null ? chainHeadersBehavior.BestSentHeader.Height.ToString() : peer.PeerVersion != null ? peer.PeerVersion.StartHeight + "*" : "-")}" +
$"/{chainHeadersBehavior.GetCachedItemsCount()}";
string peerTraffic = $"R/S MB: {peer.Counter.ReadBytes.BytesToMegaBytes()}/{peer.Counter.WrittenBytes.BytesToMegaBytes()}";
totalRead += peer.Counter.ReadBytes;
totalWritten += peer.Counter.WrittenBytes;
string agent = peer.PeerVersion != null ? peer.PeerVersion.UserAgent : "[Unknown]";
peerBuilder.AppendLine(
(peer.Inbound ? "IN " : "OUT ") + "Peer:" + (peer.RemoteSocketEndpoint + ", ").PadRight(LoggingConfiguration.ColumnLength + 15)
+ peerHeights.PadRight(LoggingConfiguration.ColumnLength + 14)
+ peerTraffic.PadRight(LoggingConfiguration.ColumnLength + 7)
+ " agent:" + agent);
}
var oneTryBuilder = new StringBuilder();
var whiteListedBuilder = new StringBuilder();
var addNodeBuilder = new StringBuilder();
var connectBuilder = new StringBuilder();
var otherBuilder = new StringBuilder();
var addNodeDict = this.ConnectionSettings.RetrieveAddNodes().ToDictionary(ep => ep.MapToIpv6(), ep => ep);
var connectDict = this.ConnectionSettings.Connect.ToDictionary(ep => ep.MapToIpv6(), ep => ep);
foreach (INetworkPeer peer in this.ConnectedPeers)
{
bool added = false;
var connectionManagerBehavior = peer.Behavior<ConnectionManagerBehavior>();
if (connectionManagerBehavior.OneTry)
{
AddPeerInfo(oneTryBuilder, peer);
added = true;
}
if (connectionManagerBehavior.Whitelisted)
{
AddPeerInfo(whiteListedBuilder, peer);
added = true;
}
if (connectDict.ContainsKey(peer.PeerEndPoint))
{
AddPeerInfo(connectBuilder, peer);
added = true;
}
if (addNodeDict.ContainsKey(peer.PeerEndPoint))
{
AddPeerInfo(addNodeBuilder, peer);
added = true;
}
if (!added)
{
AddPeerInfo(otherBuilder, peer);
}
}
int inbound = this.ConnectedPeers.Count(x => x.Inbound);
builder.AppendLine();
builder.AppendLine($"======Connection====== agent {this.Parameters.UserAgent} [in:{inbound} out:{this.ConnectedPeers.Count() - inbound}] [recv: {totalRead.BytesToMegaBytes()} MB sent: {totalWritten.BytesToMegaBytes()} MB]");
if (whiteListedBuilder.Length > 0)
{
builder.AppendLine(">>> Whitelisted:");
builder.Append(whiteListedBuilder.ToString());
builder.AppendLine("<<<");
}
if (addNodeBuilder.Length > 0)
{
builder.AppendLine(">>> AddNode:");
builder.Append(addNodeBuilder.ToString());
builder.AppendLine("<<<");
}
if (oneTryBuilder.Length > 0)
{
builder.AppendLine(">>> OneTry:");
builder.Append(oneTryBuilder.ToString());
builder.AppendLine("<<<");
}
if (connectBuilder.Length > 0)
{
builder.AppendLine(">>> Connect:");
builder.Append(connectBuilder.ToString());
builder.AppendLine("<<<");
}
if (otherBuilder.Length > 0)
builder.Append(otherBuilder.ToString());
}
private string ToKBSec(ulong bytesPerSec)
{
double speed = ((double)bytesPerSec / 1024.0);
return speed.ToString("0.00") + " KB/S";
}
/// <inheritdoc />
public void Dispose()
{
this.logger.LogInformation("Stopping peer discovery.");
this.peerDiscovery?.Dispose();
foreach (IPeerConnector peerConnector in this.PeerConnectors)
peerConnector.Dispose();
foreach (NetworkPeerServer server in this.Servers)
server.Dispose();
this.networkPeerDisposer.Dispose();
}
/// <inheritdoc />
public void AddConnectedPeer(INetworkPeer peer)
{
this.connectedPeers.Add(peer);
this.connectedPeersQueue.Enqueue(peer);
}
private Task OnPeerAdded(INetworkPeer peer, CancellationToken cancellationToken)
{
// Code in this method is a quick and dirty fix for the race condition described here: https://github.com/stratisproject/StratisBitcoinFullNode/issues/2864
// TODO race condition should be eliminated instead of fixing its consequences.
if (this.ShouldDisconnect(peer))
peer.Disconnect("Peer from the same network group.");
return Task.CompletedTask;
}
/// <summary>
/// Determines if the peer should be disconnected.
/// Peer should be disconnected in case it's IP is from the same group in which any other peer
/// is and the peer wasn't added using -connect or -addNode command line arguments.
/// </summary>
private bool ShouldDisconnect(INetworkPeer peer)
{
// Don't disconnect if range filtering is not turned on.
if (!this.ConnectionSettings.IpRangeFiltering)
{
this.logger.LogTrace("(-)[IP_RANGE_FILTERING_OFF]:false");
return false;
}
// Don't disconnect if this peer has a local host address.
if (peer.PeerEndPoint.Address.IsLocal())
{
this.logger.LogTrace("(-)[IP_IS_LOCAL]:false");
return false;
}
// Don't disconnect if this peer is in -addnode or -connect.
if (this.ConnectionSettings.RetrieveAddNodes().Union(this.ConnectionSettings.Connect).Any(ep => peer.PeerEndPoint.MatchIpOnly(ep)))
{
this.logger.LogTrace("(-)[ADD_NODE_OR_CONNECT]:false");
return false;
}
// Don't disconnect if this peer is in the exclude from IP range filtering group.
if (this.ipRangeFilteringEndpointExclusions.Any(ip => ip.MatchIpOnly(peer.PeerEndPoint)))
{
this.logger.LogTrace("(-)[PEER_IN_IPRANGEFILTER_EXCLUSIONS]:false");
return false;
}
byte[] peerGroup = peer.PeerEndPoint.MapToIpv6().Address.GetGroup();
foreach (INetworkPeer connectedPeer in this.ConnectedPeers)
{
if (peer == connectedPeer)
continue;
byte[] group = connectedPeer.PeerEndPoint.MapToIpv6().Address.GetGroup();
if (peerGroup.SequenceEqual(group))
{
this.logger.LogTrace("(-)[SAME_GROUP]:true");
return true;
}
}
return false;
}
/// <inheritdoc />
public void RemoveConnectedPeer(INetworkPeer peer, string reason)
{
this.connectedPeers.Remove(peer);
this.disconnectedPerfCounter.Add(peer.Counter);
}
/// <inheritdoc />
public void PeerDisconnected(int networkPeerId)
{
this.consensusManager.PeerDisconnected(networkPeerId);
}
public INetworkPeer FindNodeByEndpoint(IPEndPoint ipEndpoint)
{
return this.connectedPeers.FindByEndpoint(ipEndpoint);
}
public INetworkPeer FindNodeById(int peerId)
{
return this.connectedPeers.FindById(peerId);
}
/// <summary>
/// Adds a node to the -addnode collection.
/// <para>
/// Usually called via RPC.
/// </para>
/// </summary>
/// <param name="ipEndpoint">The endpoint of the peer to add.</param>
public void AddNodeAddress(IPEndPoint ipEndpoint, bool excludeFromIpRangeFiltering = false)
{
Guard.NotNull(ipEndpoint, nameof(ipEndpoint));
if (excludeFromIpRangeFiltering && !this.ipRangeFilteringEndpointExclusions.Any(ip => ip.Match(ipEndpoint)))
{
this.logger.LogDebug("{0} will be excluded from IP range filtering.", ipEndpoint);
this.ipRangeFilteringEndpointExclusions.Add(ipEndpoint);
}
this.peerAddressManager.AddPeer(ipEndpoint.MapToIpv6(), IPAddress.Loopback);
if (!this.ConnectionSettings.RetrieveAddNodes().Any(p => p.Match(ipEndpoint)))
{
this.ConnectionSettings.AddAddNode(ipEndpoint);
IPeerConnector addNodeConnector = this.PeerConnectors.FirstOrDefault(pc => pc is PeerConnectorAddNode);
if (addNodeConnector != null)
addNodeConnector.MaxOutboundConnections++;
}
else
this.logger.LogDebug("The endpoint already exists in the add node collection.");
}
/// <summary>
/// Disconnect a peer.
/// <para>
/// Usually called via RPC.
/// </para>
/// </summary>
/// <param name="ipEndpoint">The endpoint of the peer to disconnect.</param>
public void RemoveNodeAddress(IPEndPoint ipEndpoint)
{
INetworkPeer peer = this.connectedPeers.FindByEndpoint(ipEndpoint);
if (peer != null)
{
peer.Disconnect("Requested by user");
this.RemoveConnectedPeer(peer, "Requested by user");
}
this.peerAddressManager.RemovePeer(ipEndpoint);
// There appears to be a race condition that causes the endpoint or endpoint's address property to be null when
// trying to remove it from the connection manager's add node collection.
if (ipEndpoint == null)
{
this.logger.LogTrace("(-)[IPENDPOINT_NULL]");
throw new ArgumentNullException(nameof(ipEndpoint));
}
if (ipEndpoint.Address == null)
{
this.logger.LogTrace("(-)[IPENDPOINT_ADDRESS_NULL]");
throw new ArgumentNullException(nameof(ipEndpoint.Address));
}
if (this.ConnectionSettings.RetrieveAddNodes().Any(ip => ip == null))
{
this.logger.LogTrace("(-)[ADDNODE_CONTAINS_NULLS]");
throw new ArgumentNullException("The addnode collection contains null entries.");
}
foreach (var endpoint in this.ConnectionSettings.RetrieveAddNodes().Where(a => a.Address == null))
{
this.logger.LogTrace("(-)[IPENDPOINT_ADDRESS_NULL]:{0}", endpoint);
throw new ArgumentNullException("The addnode collection contains endpoints with null addresses.");
}
// Create a copy of the nodes to remove. This avoids errors due to both modifying the collection and iterating it.
List<IPEndPoint> matchingAddNodes = this.ConnectionSettings.RetrieveAddNodes().Where(p => p.Match(ipEndpoint)).ToList();
foreach (IPEndPoint m in matchingAddNodes)
this.ConnectionSettings.RemoveAddNode(m);
}
public async Task<INetworkPeer> ConnectAsync(IPEndPoint ipEndpoint)
{
var existingConnection = this.connectedPeers.FirstOrDefault(connectedPeer => connectedPeer.PeerEndPoint.Match(ipEndpoint));
if (existingConnection != null)
{
this.logger.LogDebug("{0} is already connected.");
return existingConnection;
}
NetworkPeerConnectionParameters cloneParameters = this.Parameters.Clone();
var connectionManagerBehavior = cloneParameters.TemplateBehaviors.OfType<ConnectionManagerBehavior>().SingleOrDefault();
if (connectionManagerBehavior != null)
{
connectionManagerBehavior.OneTry = true;
}
INetworkPeer peer = await this.NetworkPeerFactory.CreateConnectedNetworkPeerAsync(ipEndpoint, cloneParameters, this.networkPeerDisposer).ConfigureAwait(false);
try
{
this.peerAddressManager.PeerAttempted(ipEndpoint, this.dateTimeProvider.GetUtcNow());
await peer.VersionHandshakeAsync(this.nodeLifetime.ApplicationStopping).ConfigureAwait(false);
}
catch (Exception e)
{
peer.Disconnect("Connection failed");
this.logger.LogTrace("(-)[ERROR]");
throw e;
}
return peer;
}
}
}