The operation of the p2p adopted in production CometBFT networks is HERE.
This is part of an ongoing effort to produce a high-level specification of the operation of the p2p layer.