go-ethereum/light
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
..
lightchain_test.go core, light: get rid of the dual mutexes, hard to reason with 2019-01-11 15:27:47 +02:00
lightchain.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
nodeset.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
odr_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
odr_util.go light: enforce camel case variable names (#19054) 2019-02-14 17:18:32 +02:00
odr.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
postprocess.go cmd, core, eth, light, trie: add trie read caching layer 2018-11-15 12:22:13 +02:00
trie_test.go light: fix duplicated argument in bytes.Equal call 2018-12-10 14:29:34 +03:00
trie.go light: enforce camel case variable names (#19054) 2019-02-14 17:18:32 +02:00
txpool_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
txpool.go light: make transaction pool receiver names consistent (#19000) 2019-02-07 12:53:00 +02:00