Communication Protocols
Communication Protocols
A communication protocol is a set of rules, conventions, and standards that govern how data is
exchanged and transmitted between devices in a network or communication system.
Types of Communication :
One way to categorize communication is that there are two types of communication-Parallel and
Serial communication. In parallel communication, information is sent by conveying multiple bits of
data simultaneously while in serial communication, information is sent– “bit-by-bit”. So, naturally,
parallel communication is way faster than the serial communication. Also, it is easier to program.
But,it requires more transmission channel than serial communication which increases the cost of
transmission. Another thing is- it’s going to consume a lot of bandwidth to transmit the data.
• Half Duplex: It means that information is conveyed in one direction at a time. i.e. either
from master to slave or from slave to master but not both.Example: Walkie-talkie in which
message is sent one at a time and messages are sent in both directions.
• Full Duplex: Information is two way. The information can be transferred from transmitter to
receiver and from receiver to transmission at the same time.
Example: Telephone Network in which there is communication between two persons by a
telephone line, through which both can talk and listen at the same time.
• Bit rate :
Bit rate is the number of binary bits (1s or 0s) transmitted per second.
Bit rate = number of bits transmitted/ total time (in seconds)
• Baud rate : Baud rate is the rate at which the number of signal elements or changes to the
signal occurs per second when it passes through a transmission medium. The higher a baud
rate is the faster the data is sent/received.
Baud rate = number of signal elements/total time (in seconds)
• Number of signal elements (marked in red color) = 3, Number of bits transmitted (1, 0, 1) =
3. So, Here Bit rate = 3/1 = 3 bits per second. And, Baud rate = 3/1 = 3 baud per second.
• Number of signal elements (marked in red color) = 6, Number of bits transmitted (1, 1, 0) =
3. So, Here Bit rate = 3/1 = 3 bits per second. and, Baud rate = 6/1 = 6 baud per second.
Signal element:A signal element is the smallest unit of a digital signal. A signal is one of several
voltages, phase changes, or frequencies. For Digital signals 1 signal element is a signal with
constant amplitude. For Analog signals, 1 signal element is a signal with the same amplitude, phase,
and frequency.
• Synchronous Transmission:
• In Synchronous Transmission, data is sent in form of blocks or frames. This transmission is
the full-duplex type. Between sender and receiver, synchronization is compulsory. In
Synchronous transmission, There is no gap present between data. It is more efficient and
more reliable than asynchronous transmission to transfer a large amount of data.
• Example:
• Chat Rooms
• Telephonic Conversations
• Video Conferencing
•Asynchronous Transmission:
In Asynchronous Transmission, data is sent in form of byte or character. This transmission is the
half-duplex type transmission. In this transmission start bits and stop bits are added with data. It
does not require synchronization.
•Example:
•Email
•Forums
•Letters
•NRZ_Format:In NRZ encoding, the voltage level remains constant during a bit period,either
at a high or low level, to represent the binary values 1 and 0. There is no return to zero voltage
between bits, hence the name "Non-Return-to-Zero."
Here's a simple example of NRZ encoding using a microcontroller:
Suppose we want to transmit the binary sequence "10110" using NRZ encoding.
• Binary Data: 10110
• NRZ Encoding: The high and low voltage levels represent 1 and 0, respectively.
Binary: 1 0 1 1 0
Voltage: H L H H L
Binary: 1 0 1 1 0
Voltage: H L H H L
In the NRZ encoding example above, "H" represents a high voltage level, and "L" represents a low
voltage level. The voltage level remains constant for each bit period, and there is no return to zero
voltage in between. This is how NRZ encoding works to transmit binary data.