Microsoft interview question

write a protocol (networks)