When computers communicate with each other, there needs to be a common set of rules and instructions that each computer follows. A specific set of communication rules is called a protocol. The basic role of a protocol is to define what is communicated, how it is communicated and when it is communicated.