plugeth/p2p
Felföldi Zsolt c2003ed63b les, les/flowcontrol: improved request serving and flow control (#18230)
This change

- implements concurrent LES request serving even for a single peer.
- replaces the request cost estimation method with a cost table based on
  benchmarks which gives much more consistent results. Until now the
  allowed number of light peers was just a guess which probably contributed
  a lot to the fluctuating quality of available service. Everything related
  to request cost is implemented in a single object, the 'cost tracker'. It
  uses a fixed cost table with a global 'correction factor'. Benchmark code
  is included and can be run at any time to adapt costs to low-level
  implementation changes.
- reimplements flowcontrol.ClientManager in a cleaner and more efficient
  way, with added capabilities: There is now control over bandwidth, which
  allows using the flow control parameters for client prioritization.
  Target utilization over 100 percent is now supported to model concurrent
  request processing. Total serving bandwidth is reduced during block
  processing to prevent database contention.
- implements an RPC API for the LES servers allowing server operators to
  assign priority bandwidth to certain clients and change prioritized
  status even while the client is connected. The new API is meant for
  cases where server operators charge for LES using an off-protocol mechanism.
- adds a unit test for the new client manager.
- adds an end-to-end test using the network simulator that tests bandwidth
  control functions through the new API.
2019-02-26 12:32:48 +01:00
..
discover p2p/discover: make maximum packet size a constant (#19061) 2019-02-19 12:27:29 +01:00
discv5 vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
enode p2p/discover, p2p/enode: rework endpoint proof handling, packet logging (#18963) 2019-01-29 17:39:20 +01:00
enr p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
nat p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
netutil p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
protocols p2p/protocols: fix possible metrics loss in AccountingMetrics (#18956) 2019-01-29 15:19:54 +01:00
simulations les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
testing p2p/testing, swarm: remove unused testing.T in protocol tester (#18500) 2019-01-24 17:23:34 +01:00
dial_test.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
dial.go p2p: meter peer traffic, emit metered peer events (#17695) 2018-10-16 00:40:51 +02:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
message.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
metrics.go metrics, p2p: add ephemeral registry (#18067) 2018-11-09 10:20:51 +01:00
peer_error.go p2p: fix some golint warnings (#16577) 2018-05-08 13:08:43 +02:00
peer_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
peer.go p2p: add enode URL to PeerInfo (#17838) 2018-10-04 18:13:21 +03:00
protocol.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
rlpx_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
rlpx.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
server_test.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
server.go p2p: use errors.New instead of fmt.Errorf (#18193) 2018-11-30 22:38:37 +01:00