As far as I can tell Cabal uses discovery-swarm [1] for connection management.
[0] https://github.com/maxogden/discovery-channel
[1] https://github.com/mafintosh/discovery-swarm