0% found this document useful (0 votes)
5 views25 pages

Computer Networks UNIT 1

The document outlines fundamental concepts of data communication and networking, covering topics such as protocols, standards, signal propagation, and the differences between analog and digital signals. It explains the characteristics of data communication, including correct, accurate, and timely delivery, as well as the importance of protocols in ensuring effective communication between devices. Additionally, it discusses the bandwidth of signals and mediums, emphasizing the capacity for data transfer in communication systems.

Uploaded by

millanjethwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views25 pages

Computer Networks UNIT 1

The document outlines fundamental concepts of data communication and networking, covering topics such as protocols, standards, signal propagation, and the differences between analog and digital signals. It explains the characteristics of data communication, including correct, accurate, and timely delivery, as well as the importance of protocols in ensuring effective communication between devices. Additionally, it discusses the bandwidth of signals and mediums, emphasizing the capacity for data transfer in communication systems.

Uploaded by

millanjethwani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Computer Networks (BCA230406)

Unit 1:
CH 1: Introduction to Data Communication and Networking
• Introduction
• Fundamental concepts
• Data communications
• Protocols
• Standards
• Signal propagation
• Analog and digital signals
• Bandwidth of a signal and a medium
CH 2: Analog and Digital transmission
• signal, Analog transmission
• Baud Introduction
• Analog signal, Analog transmission
• Digital signal, Digital transmission
• Digital rate and bits per second
• Analog signal, Digital transmission
CH 3: Modes of data transmission
❖ Introduction
❖ Parallel and Serial communication
❖ Asynchronous, Synchronous communication
❖ Simplex, half duplex and full-duplex communication

1
Introduction to Data Communication and Networking
❖ Introduction
➢ Before we understand how computer networks and inter-networks work, it is
essential to know how data can be transmitted from a source to a destination in
the first place.
➢ This forms the basis for all data communications. The principle of signal
propagation is used for this purpose.

❖ Fundamental Concepts
➢ Basic Idea
Communication can be defined as the exchange of information between two
humans. Data communications can be defined the exchange of information
between two computers.

The figure shows one computer (sender) sending a message to another computer
(receiver) over a wire (called transmission medium).

➢ Real Life Data Communication

➢ It contains various components as below:

2
Modem: MODEM receives data from the outside (Internet) and sends
data out (to the Internet). It is the first and only device between your
network and the Internet

Multiplexer & Demultiplexer:


• A multiplexer selects and transmits one of many input signals to a
single output line. It is essentially a data selector, which allows
multiple signals to share the same transmission medium or
resource (like a bus or a communication channel).
• A demultiplexer does the opposite of a MUX: it takes a single
input signal and routes it to one of several output lines based on a
control signal. It distributes a single data stream to multiple
destinations or processes.

Transmission medium: Transmission medium, or wire, transfers data


from the sender to the receiver. Modern data communications can also
be wireless.

❖ Data communications
➢ Data communication refers to the process of transferring data between
devices or systems over a transmission medium, enabling them to share
information.
➢ The data can be in the form of text, images, video, or any other type of digital
or analog information, and it is transmitted using various communication
technologies such as electrical signals, radio waves, or optical signals.
➢ The core goal of data communication is to ensure that information is
exchanged effectively, accurately, and securely between two or more devices.
➢ This is crucial for enabling everything from internet browsing and emailing to
cloud computing and real-time video calls.

➢ Three Characteristics of Data Communication:


Correct delivery: When a sender transmits data for an intended
recipient, the data must reach only the intended recipient and not
someone else.

Accurate delivery: Data sent by the sender must be received by the


receiver in the same form as the one in which it was sent. There must not
be any sort of alterations in it while in transit.

Timely delivery: Data must travel from the sender to the receiver in a
finite amount of time. The term finite is quite vague, and would depend
on the reasons why data communication is taking place.

3
❖ Protocols
➢ A protocol is a set of rules and conventions that govern data
communications.
➢ The sender and the receiver, the two key parties in data communication, must
agree on a common set of rules, i.e., protocols before they can communicate
with each other.
➢ Example: Just as a person speaking only French cannot communicate with
another person who understands only English, two devices that are connected
need not necessarily be able to communicate with each other unless they agree
on a set of data communication protocols.
➢ Two devices wishing to communicate with each other cannot just begin data
transmission arbitrarily. That is, one device cannot simply start sending bit
streams to the other. The two devices must agree on a set of rules before this
transmission can begin. Otherwise, how would the receiver know what the
sender has sent? Conversely, how would the sender know if the receiver has
correctly received the data that it had sent?

➢ A protocol defines the following things:

1. Syntax: (What is to be communicated?)


o Syntax defines the structure or format of data. This means that the
order in which it is to be sent is decided. For instance, a protocol
could define that the first 16 bits of any data transmission must
always contain the receiver’s address.
2. Semantics: (How it is to be communicated?)
o Semantics define the interpretation of the data that is being sent. For
example, the semantics could define that if the last two bits of the
receiver’s address field contain a 00, the sender and the receiver are
on the same network.
o A Protocol That Expects:
o The First 8 Bits of Data are To Be the Sender’s Address
o The Second 8 Bits of Data are To Be the receiver's Address
o The rest of the stream is to be a message.
3. Timing: (When should it be communicated?)
o This refers to an agreement between the sender and the receiver about
data transmission rates and duration. For instance, a protocol could
demand that the sender must send 1000 bytes and then wait for an
acknowledgment from the receiver before sending any more data

4
❖ Standards
➢ Data communication standards can be classified into the following two
categories: de facto (which means by convention) and de jure (which means
by regulation).
➢ De facto standards can be further divided into proprietary and non-proprietary
standards.
Proprietary standard:
• Invented and owned by organizations.
• These standards gain popularity after the owner’s successful
usage. This is because once the products of the organization using
these standards are popular, the standards automatically gain
popularity.
• Another name for proprietary standards is “closed” because
they close off communication with devices/systems of other
vendors.
Non-proprietary standard:
• Non-proprietary or open standards are those that are developed by
an organization/committee/group, which become popular and
vendors start supporting them. They are open because anybody
adhering to those automatically gain access to all others following
those standards.

➢ De jure standards are the standards that have been legislated by an official
body. These are usually led by governments or government-appointed agencies.

❖ Signal propagation
➢ Propagation Is Nothing but Movement from One Place To Another.
➢ Signal Propagation Means Signal Moving from One Place to Another Place.
➢ Suppose you have a steel rod with two ends A and B, with X as an intermediate
point as shown in Fig. 1.3
➢ Now suppose that we apply heat to end A (either by immersing it in hot water
or a furnace) as shown in Fig. 1.4.
➢ Initially, the heat would be felt only at the end of A.
➢ However, after some time, we would also feel the heat at point X.
➢ Why does this happen? This is where the principle of energy transfer
(transmission) and consequently signal propagation comes into the picture.

5
➢ The electrical signal behaves exactly in the same way. Instead of applying heat,
we apply voltage to the electrical wire A-X-B.
➢ Instead of atoms oscillating and transferring kinetic energy, the electrons
transfer electrical charge to adjacent electrons and the graph of voltage versus
time, i.e., electrical signal, you get at point A in the wire is reproduced at point
X after some finite propagation delay and the same is reproduced at point B
after a little more propagation delay.
➢ If this were not true, telephone systems would be impossible. When we talk on
the telephone, our speech generates sound waves, which generate electrical
signals of similar shape as the sound waves.
➢ These signals traverse across the telephone wires through various
switches/exchanges and reach the telephone set of the receiver.
➢ At the receiver’s end, the electrical signal generates sound waves of similar
shape.
➢ Due to the principle of signal propagation discussed above, the shape of the
signal traverses as it was generated, and therefore, we hear the same speech.

❖ Analog and digital signals


Analog Signals

➢ A continuous-time signal is any continuous function of time.


➢ Analog signals are used to create information-carrying signals in a variety of
systems. Both in terms of quantities and time, these signals are continuous.
➢ As technology evolved, digital transmissions repealed the use of analog signals.
Signals that are natural or occur naturally are analog signals.
➢ Since it denotes a quantity that is analogous to another measure, it is called so.
Analog signals are known for use of medium to channelize the flow of
information.
➢ Analog signals can be easily distorted, thereby losing clarity and quality.
➢ Example: Any natural sound, human voice, and data read by analog devices

6
Digital Signals

➢ A discrete-time signal is any series of real numbers separated by equal time


increments (or samples).
➢ A digital signal is one that is a discrete function of time rather than a continuous
signal.
➢ Digital signals are binary in nature and consist of discrete voltage values at
discrete times.
➢ A digital signal, in essence, represents data and information as a sequence of
discrete values at any given time.
➢ The digital signal has a limited number of values.
Basis Analog Signal Digital Signal
Definition Analog signals represent continuous Digital signals are Discrete and quantized, with
variations in magnitude over time. specific values.
Signal Type Continuous waveforms Discrete Signals
Processing Requires complex processing for It is easier to process and manipulate digitally.
manipulation.
Storage Less efficient for storage due to its It is more efficient for storage due to discrete
continuous nature. values.
Bandwidth Typically requires more bandwidth. Requires less bandwidth for transmission.
Examples Analog audio signals, analog radio Digital audio signals, digital data streams,
waves, Human voice, etc. computers, etc.
Errors Susceptible to noise and distortion More resistant to noise and distortion
Circuit Amplifiers, filters, continuous-wave Microprocessors, binary counters, logic gates
Component oscillators
Signal Values Infinite range of values Limited to discrete values
Conversion No conversion required Analog-to-digital conversion (ADC) required
Applications Analog signals are used in electric fan, Digital signals are used in computers, smartphones,
landlines, radio frequency digital sensors, digital imagining, etc.
communications, etc.

7
❖ Bandwidth of a signal and a medium

➢ Bandwidth refers to the capacity or range of data transfer a network or


communication channel can handle over a certain period.
➢ It is typically measured in bits per second (bps), kilobits per second (kbps),
megabits per second (Mbps), or gigabits per second (Gbps). Bandwidth
essentially indicates how much data can be transmitted over a network or
through a connection simultaneously.

➢ A sinusoidal signal is a periodic signal that oscillates smoothly and


repetitively, forming an S-shaped curve.
➢ It's a fundamental signal in communication systems' design, analysis, and
operation.

➢ Amplitude, Period, Frequency and Phase


Amplitude: The y-axis gives the strength of the signal or amplitude at any
point. Thus, the amplitude of a signal is equal to its vertical distance from the
horizontal x-axis. The figure shows that the signal has a maximum value, called
amplitude (A), shown as A at point K. Amplitude is measured in volts
(representing voltage), amperes (representing current), or watts (representing
power), depending on the type of the signal.
What It Is: the height of a wave from the midline, or half the distance from
trough to peak. Amplitude is also known as the size of the wave.
Meaning: It Shows How Strong or Powerful the Wave Is.
Example: Think Of a Speaker’s Volume a Loud Sound= Bigger Amplitude
A Soft Sound= Smaller Amplitude

8
2. Period: The signal reaches the peak and returns to its original starting position
in time T. This time taken for the completion of one cycle is called period, which
is shown as 1/10th of a second in the figure. This is because the particle in our
example of Fig. 1.8(a) was rotating at 10 revolutions per second.
The Time It Takes for One Wave to Complete (One Cycle)
Relationship With Frequency Period= 1/Frequency
Example: If The Frequency Is 2 Hz (2 Wave Per Second).
The Period Is Period=1/2 (0.5) Seconds Per Wave.

3. Frequency: The frequency ( ƒ ) is nothing but the number of cycles or periods


a signal completes in one second. We can notice that this would be the same as the
number of revolutions that our particle would make in one second. Figure 1.9
shows that f = 10.

What It Is: How Many Waves Pass A Point In One Second


Measured In: Hertz (Hz)
E.g.: Imagine Waves at Beach If 5 Waves Hit the Shore Every Second, The
Frequency Is 5 Hz. A Higher Frequency Means More Waves in a Short Time.

4. Phase: The phase of a signal is related to the position of a waveform relative to


time zero. A good way of understanding the concept of the phase of a signal is to
imagine it as something that can be shifted to the left-hand side or the right-hand
side along the x-axis (i.e., relative to time). The shift represents the phase of the
signal. Phase is measured in degrees or radians. Thus, when we say that a signal
has a phase shift of 360 degrees, we mean that a complete signal period has been
shifted. Similarly, a phase shift of 180 and 90 degrees represents a half-and-
quarter shift of the signal’s period.

9
The Position of The Wave at a Specific Time
Example: Imagine 2 people jumping on the Trampoline:
If they jump together, they are in “Phase”
If one jumps and the other one is landing, they are
“Out of the phase”;

Eg For All Together


Think Of An Ocean
Amplitude: How Tall The Waves Are (Strength)
Frequency: How Often The Waves Come.
Period: The Time Between Two Waves
Phase: Whether Two Waves Line Up With Each Other Or Not.

10
Analog and Digital transmission
o There are two major types of signals:
1. Analog Signal
2. Digital Signal
o Analog Signal Can Be Transmitted as It Is, That Is, As an Analog Signal.
o Alternatively, An Analog Signal Can Be Transmitted as A Digital Signal, By
Encoding the Signal By certain methods.
o A Digital Signal Can Be Transmitted as It Is, That Is, As A Digital Signal, Or
It Can Be Encoded As An Analog Signal Before Transmission.
a. There are possible combinations available now:
2. Analog Signal, Analog Transmission
3. Digital Signal, Digital Transmission
4. Digital Signal, Analog Transmission
5. Analog Signal, Digital Transmission

❖ Analog signal, Analog transmission


o The term analog is very common and has been used for decades in the field
of telephony.
o The human voice generates an analog (i.e., continuously varying) signal,
transmitted as an analog signal over the medium.
o On the way, the signal suffers attenuation (attenuation means weakening
or diminishing something.)
o Amplifiers are used to overcome this problem, but then amplifiers amplify
noise along with the original signal.
o The problem with this type of combination is that if the signal gets
distorted, it cannot be reconstructed at all. It is a permanent loss.
o At the destination, it is very difficult to imagine what the signal should have
been from the received distorted signal. This is the reason why this type is
not used where high level of accuracy is desired.

11
❖ Digital signal, Digital transmission
o Information from a computer is in the form of digital signals.
o A digital signal has an Infinite bandwidth, whereas any medium has
only a limited bandwidth.
o A regenerative repeater is a device that amplifies and regenerates a digital signal
to improve data quality.
o We show three points on the path: A, B and C. At point A, the signal is in its
original digital form. It gets distorted at point B. However, you can still
recognize the signal as 0100101.
o The repeater recognizes the bits and outputs the signal in its original form at point C
o Therefore, as the signal is generated, and enters any medium at that point itself,
only limited frequencies are permissible on the medium depending upon its
bandwidth (this has nothing to do with the noise).
o If we add all the frequencies admitted on the medium, the resultant signal
would not be the same as a digital signal. Therefore, the signal is distorted from
the original digital signal to begin with.
o As it traverses over the medium, noise adds further distortion. Beyond a certain
distance, the signal becomes unrecognizable from the original one.
Therefore, hardware equipment called aregenerative repeater or repeater is
used to regenerate the digital signal as shown in Fig. 2.2

o However, only one repeater will not do; many such repeaters as shown in Fig.
2.3 will be required on the line.
o The distance between the repeaters is very crucial. We may like to increase
that distance as much as possible to reduce the cost but then there is also a
disadvantage of this modification.
o If this distance is very large, the original signal may get so distorted that it
may be difficult to differentiate between 0 and 1.
o Reconstruction of the original signal, therefore, would become very difficult
or at best erroneous.

12
❖ Digital rate and bits per second

Digital rate refers to the speed at which digital data (like 0s and 1s) is
transmitted or processed. It tells us how much data is sent or received in a
certain amount of time.
Bits per Second (bps)
• Bits per second (bps) is the unit used to measure digital rate.
• "Bits" are the smallest unit of digital data (like 0 or 1).
• Per second means how many bits are sent or received in one second.

Example:
If a digital rate is 100 bps, it means 100 bits (0s and 1s) are transmitted every
second.
Higher bps = Faster data transfer.
If you download a file, a higher bps means the file downloads faster.
Internet speed is often measured in kilobits per second (Kbps), megabits per
second (Mbps), or gigabits per second (Gbps):
• 1 Kbps = 1,000 bps
• 1 Mbps = 1,000,000 bps
Bits per second (bps) tells us how quickly digital data (0s and 1s) is moving. More
bits per second means faster communication or internet speed.

❖ ANALOG SIGNAL, DIGITAL (STORAGE AND) TRANSMISSION

o Pulse Code Modulation (PCM) using Sampling and Quantizing

13
o The idea is somehow to represent an analog signal into digital bits and then
transmit it as a digital signal. Pulse Code Modulation (PCM) is the most
popular.
The basic steps in PCM are given below
At Source:
1. Sample the analog signal at regular intervals say t as shown in the figure
2. Convert the analog signal into some discrete values.
3. Convert these values into binary numbers by assigning a fixed number of
bits for each value.
4. Convert the binary numbers as a digital signal by concatenating all these
binary numbers.
At destination:
1. Convert the digital signal into binary numbers.
2. Separate the discrete values of signals by using the number of bits for
each discrete value.
3. Reconstruct the original analog signal.

o We require a piece of equipment called codec (Coder/Decoder) at both the


source and the destination to perform these functions. We can also call it
A/D (Analog to Digital) converter and D/A (Digital to Analog)
converter.
o Let us assume that we have the equipment (a codec) to measure its
amplitude at some given time interval (shown as t in the figure). This is as
good as slicing the analog signal. It is called sampling.
o The discrete values of the amplitude shown are 0.21, 0.49, 0.83, 1.04, 1.07,
0.68 and 0.78. We need to represent these as binary numbers. If we represent
these values as they are (i.e., fractions or floating numbers), we will require a
large number of bits—thereby increasing the load on the communication
system even if we can get accuracy in return.
o Therefore, we approximate these values to the nearest numbers such as 0.2,
0.5, 0.8, 1.0, 1.1, 0.7, and 0.8 as shown in the figure. This is obviously at the
expense of some accuracy
o These numbers are still fractions. We still have to use the floating-point
notation to represent these, requiring a huge number of bits for each value.
Therefore, we use a trick here. We multiply each value by 10 to get the
numbers 2, 5, 8, 10, 11, 7 and 8. This whole process is called quantization.
o We now can convert them into binary numbers such as 0010, 0101, 1000,
1010,1011, 0111, and 1000 again.
o At the destination, the equipment at that end (another codec) can now split the
received bit stream into chunks of four bits each, find out its decimal value
(i.e., 2, 5, 8, 10, 11, 7, and 8) to get the values 0.2, 0.5, 0.8, 1.0, 1.1, 0.7 and 0.8 by
14
dividing these by 10, and generate an analog signal with those specific values
at the time interval t.
o Therefore, at the destination, the analog signal generated would have values 0.2,
0.5, 0.8, 1.0, 1.1, 0.7, and 0.8 at times 0t, 1t, 2t, 3t, 4t, and 5t.
o Notice that this signal is slightly different than the original signal due to the
approximation, which we carried out at the source (e.g., 0.21 was
approximated to 0.2). This difference is known as quantization noise or
quantization error.
o The aim of any good PCM strategy would be to reduce the quantization noise
to a negligible level without increasing the load on the network significantly.
The current PCM standard assumes eight bits/sample.

❖ Baud Introduction
o Definition: The number of signal changes or symbols transmitted per
second.
o Key Idea: A single signal change can represent one or more bits depending
on the encoding scheme.
o For example:
▪ If 1 signal = 1 bit, then Baud Rate = Bits per Second (bps).
▪ If 1 signal = 2 bits, then Baud Rate = bps / 2.
o Many people confuse between baud rate and bit rate or bits per second
(bps). They use these terms synonymously. However, there is a difference
between them.
o The baud rate is the number of times the signal level changes in a channel
per second.
o This signal level could be amplitude, frequency, or phase. As we know,
physically, the hardware limits the maximum number of times this signal
change can happen.

15
Modes of data transmission
❖ Introduction
o Digital data can be transmitted in a number ways from the source to the
destination. These modes of data transmission can be outlined as follows:
1. Parallel and Serial Communication
2. Asynchronous, Synchronous and Isochronous Communication
3. Simplex, Half-duplex and Full-duplex Communication

❖ Parallel and Serial communication


o Parallel Communication
o Parallel Transmission sends many bits of data at the same time from one
computer to another.
o It’s faster than Serial and works well for short distances.
o It fits well with how computers are built inside, as they use parallel
systems. Computers and other devices can easily use Parallel
Transmission.
o It’s easy to set up and fix problems with Parallel Transmission. It uses
one cable with a 25-pin port.
o This port has 17 signal lines and 8 ground lines. The 17 lines are split
into 4 lines to start the data transfer, 5 lines to talk and report errors, and
8 lines to move the data.

16
o Problem of Skew
o When the skew happens, the bits 10011001 are sent from the source to
the destination, but they traverse at different speeds.

o At the destination, the measurements of signal values to determine


whether it was a bit 0 or 1 have to be done at the same time for all the
bits.
o Therefore, the problem of skew can result in an inaccurate interpretation
of bits.
o To avoid this problem, parallel transmission is used only for a very short
distance, and there too, all parallel wires have to be identical.
o This method is used for data transmission within the computer system
such as from the CPU registers to the memory or vice versa through the
data bus.
o The data bus essentially implements the parallel transmission of data.
This is done because speed, rather than cost, is of paramount importance
in this case. However, due to the problems outlined above, one cannot
use this method over long distances.

17
o Serial Communication
o In Serial transmission, data is sent bit by bit from one computer to
another using a two-way path.
o Each bit has its timing. In Serial Transmission, 8 bits are sent at a time,
with extra bits at the start and end (called Parity Bits), which are 0 and
1.
o This method uses special cables to send data over long distances. The
data is sent in order. It uses a 9-pin cable shaped like a D to connect
data in a series.

o When data is sent over long distances, it's sent one bit at a time
(serially), rather than all bits at once (parallel). This is because serial
communication is more reliable and requires fewer wires.
o The sender converts parallel data (e.g., a byte, which is 8 bits) into a
serial stream (one bit at a time).
o At the destination, the measurement of signal values is done in the
middle of the bit durations as shown in Fig. 3.3.
o This is because if the values are taken at the edge or a point where The
problem of skew the bit value changes (shown as point A in the figure),
the reading will be indeterminate.
o At the destination, all the bits are collected, measured, and put
together as bytes in the memory of the destination. This requires
conversion from serial to parallel.

18
o In serial data transmission, we have to identify where the character
starts.
o We have to also identify the middle position of each bit interval so that
measurement can be taken.
o Normally, the transmitter and the receiver have two different clocks.
The point is to synchronize the clock of the receiver exactly with that
of the transmitter so that correct readings result and the bit values are
understood correctly.
o This is essentially a problem of synchronization.

o we have to send 8 bits b0 to b7 from point X to point Y as shown in


Fig. 3.4.
o We have circularly arranged the bits to illustrate the point better.
o arms A1 and A2 at points X and Y rotate in clockwise directions.
o When both A1 and A2 point to the bit b0 at X and Y respectively, the
connection is made and the bit b0 is transferred from X to Y.
o Now due to rotation, after some time, A1 will point towards b1 at point
X. At that time A2 also has to point to b1, at point Y, otherwise the bit
will not be transferred correctly.
o The same is true for the transfer of b2 through b7 as A1 and A2 rotate
clockwise. Therefore, the two arms shown as A1 and A2 have to be
perfectly synchronized and they have to rotate at the same speed to
succeed in sending and receiving all the bits accurately.
o To achieve this, initially, we have to adjust and synchronize the clocks
in the electronics of the source and the destination.
o There are three approaches in which this can be achieved. These are
asynchronous, synchronous, and isochronous transmission. We will
look at them very shortly.

19
o A line adapter or interface generally achieves this task of
synchronization. It achieves a few other things also. We will call it
only ‘serial interface’ in this text.
o Electronics devices called Universal Asynchronous Receiver
Transmitter (UART) and Universal Synchronous Asynchronous
Receiver Transmitter (USART) are examples of such an interface.
USART can be used for both the asynchronous and synchronous
transmission. On the other hand, UART is used only when the
transmission is asynchronous.

❖ Asynchronous, Synchronous communication

Asynchronous communication:
o In Asynchronous Transmission, data is sent in the form of bytes or
characters.
o This transmission is the half-duplex type transmission.
o In this transmission start bits and stop bits are added to data. It does not
require synchronization.
o Asynchronous transmission is like sending individual text messages
without knowing exactly when the other person will read them.
o The sender and receiver do not share a common clock signal.
o Instead, data is sent one byte or character at a time, with start and stop
bits indicating the beginning and end of each byte.
o Each piece of data is sent independently, with gaps in between, allowing
the receiver to process each byte as it arrives.
o It’s flexible and simpler to implement, especially useful for
communications where data is sent intermittently.

20
o This diagram illustrates asynchronous communication and the flow of
bits when transmitting data. Let's break it down step-by-step:
1. Idle State:
• When no data is being transmitted, the line stays in an idle
state (binary 1).
• This is the resting state of the communication line.
2. Start Bit:
• To begin the transmission of a character, the sender transmits
a start bit (binary 0).
• The start bit signals the receiver to prepare for incoming
data.
3. Data Bits (b₀ to b₇):
• After the start bit, the actual data (character) is transmitted as
data bits.
• In this example, 8 data bits (b₀ to b₇) are being sent.
• Each bit represents a portion of the character in binary form.
4. Parity Bit (P):
• After the data bits, a parity bit (P) is sent (optional).
• The parity bit is used for error detection:
• It ensures that the total number of 1s in the data bits
and the parity bit is even (even parity) or odd (odd
parity), depending on the agreement between sender
and receiver.
5. Stop Bits:
• Following the parity bit, stop bits are transmitted.
• In this case, 2 stop bits (binary 1) are used to signal the end
of the character.
• The stop bits also return the line to the idle state (binary 1).
6. Next Chapter:
• After the stop bits, the line remains idle until the next
character is ready to be sent.
• The process then repeats: start bit → data bits → parity bit
→ stop bits.

Synchronous Communication
o Synchronous data transmission is a data transfer method which is a
continuous stream of data signals accompanied by timing signals.
o It helps to ensure that the transmitter and the receiver are
synchronized with each other.
o This communication method is mostly used when large amounts of
data need to be transferred from one location to the other.
o In Synchronous Transmission, data is sent in the form of blocks or
frames. This transmission is the full-duplex type.
21
o Between sender and receiver synchronization is compulsory. In
Synchronous transmission, there is no gap present between data.
o It is more efficient and more reliable than asynchronous
transmission to transfer a large amount of data.

Isochronous Communication
o This method combines various approaches of asynchronous and
synchronous communications.
o In this method, as in the asynchronous method, each character has both
start and stop bits.
o However, in the isochronous method, the idle period between the two
characters cannot be random.
o For instance, all idle periods of no transmission consist of an exact
multiple of 1 character time interval.
o Therefore, if the time to transmit a character (including its parity, start,
and stop bits) is t, the time interval between characters cannot be random
as in the asynchronous method.
o It is also not 0 as in the synchronous method. It has to be t, 2t, 3t ... nt
where n is a positive integer in isochronous communication.

22
o Figure 3.10 depicts the differences between the three approaches.
o The main reason for using the isochronous method over asynchronous
method is speed.
o In practice, asynchronous transmission is limited to a data rate of 2,400
bits per second as per the timing precision of the transmitting and
receiving modems.
o By contrast, isochronous transmission can achieve data rates of up to
19,200 bits per second.

❖ Simplex, half-duplex and full-duplex communication


o This classification of data transmission is based on which communicating
devices can send data, and at what point.
o There are three ways this can be done, i.e., Simplex, half-duplex, and Full-
duplex.

1. Simplex Communication:
❖ In simplex mode, the communication is unidirectional only.
❖ This is similar to a one-way street, where vehicles are allowed to drive only in
a single direction.

o Here, one of the communicating devices can only send data, whereas the
other can only receive it like in a radio or a TV nowadays. Keyboard to
computer monitor data transmission is a simple example of this. Another
example is shown in Fig. 3.12, where one host can only send data, whereas
the other can only receive it.

23
2. Half-Duplex Communication:
o Unlike what happens in the simplex mode, in case of half-duplex mode, both
devices can transmit; however, not at the same time.
o When one device is sending data, the other must only receive it, and vice
versa.
o This is conceptually similar to a street that has a single lane for vehicle
traffic.
o When vehicles from one side are coming, the vehicles from the other side
must wait.

o Thus, both sides take turns to send data in the case of half-duplex
transmission.
o This requires a definite turnaround time for the device to change from the
receiving mode to the transmitting mode.
o Due to this delay, half-duplex communication is slower. However, it is more
convenient than Simplex, as both devices can send and receive data.
o Half-duplex is normally implemented by using a two-wire circuit (1 for data,
1 for ground).
o In this case, the full bandwidth of the wire is used while sending the data in
either direction.
o Examples of half-duplex communication are conversations over a walkie-
talkie.

24
3. Full-Duplex Communication:
o In full-duplex (or simply duplex) communication mode, both the devices can
transmit data at the same time.
o It means that both devices are capable of sending as well as receiving data at
the same time.
o This is like a two-way street with traffic flowing in both directions at the
same time. This is shown in Fig. 3.15.
o It is also similar to a telephone conversion, where both parties can talk to
each other simultaneously.

o This can be done using a two-wire circuit or a four-wire circuit.


o In a two-wire circuit, one wire is used for data and one for ground as in half-
duplex.
o However, the bandwidth of the wire for data is divided in two channels for
carrying data in either direction.
o Thus, each channel can use only half the bandwidth normally.

o In a four-wire circuit, there are two wires for data and two for ground.
o Thus, we can have one data wire for transmission in each direction;
increasing the bandwidth and therefore the data rate.

25

You might also like