CAP protocol