A protocol is an agreed set of rules by which messages passed from one computer system to another are encoded and interpreted.