There is a chapter in the MPI standard about this. Usually, people will use comm accept/connect to do such kind of things. No need to have your own communication protocol.george.
Thank you very much. Exactly the information I was looking for! Best regards Timm