Doc protocol level handshake.