A protocol consists of a set of rules that determine the exchange of messages between two or more principals.