Add a document about protocol flow