The set of rules whereby two devices exchange information. The devices may be computers, modems, or a computer and a peripheral. (Or maybe even diplomats.)