The CKB P2P Networking layer utilizes a scoring system to mitigate network security threats, specifically targeting 'Eclipse Attacks'. In an Eclipse Attack, a malicious actor attempts to occupy all of a victim node's peer connection slots to filter the victim's view of the blockchain.
To defend against this, CKB clients are expected to implement a scoring system based on three core principles:
- Peer Information Storage: Nodes should store as much peer information as possible.
- Continuous Scoring: Nodes must continuously score peers based on both good and bad behaviors.
- Peer Management: Nodes should prioritize retaining high-score (good) peers and evicting low-score (bad) peers.
This scoring system provides a foundation for implementing more sophisticated security strategies similar to those used in the Bitcoin network to handle generalized network security cases.