Week 11
Week 11
1. Message
• The message can be of any size from one byte to Mega byte.
2. Sender
• The sender is any device that is capable of sending the data (message).
• The sender device could be in form of a computer, mobile, telephone,
laptop, video camera, or a workstation, etc.
• The sender device must keep high memory buffer for the sending large data
/ information to medium.
• Sender should transmit its data with speed as that of transmission media
bandwidth(speed).
• Sender device must be loaded with network operating system that contains
all protocols of transmission.
Figure 1.1 Components of a data communication system
3. Receiver
• It is a device that receives message.
• Same as sender, receiver can also be in form of a computer, telephone
mobile, workstation, etc.
• The receiver device must keep high memory buffer for the large large data /
information from medium.
• Receiver should receives its data with speed as that of transmission media
bandwidth(speed).
• Receiver device must be loaded with network operating system that
contains all protocols of transmission.
Figure 1.1 Components of a data communication system
4. Transmission Medium
5. Protocols
1. Delivery: The data should be delivered to the correct destination and correct
user.
2. Accuracy / Integrity : The communication system should deliver the data
accurately, without introducing any errors. The data may get corrupted during
transmission affecting the accuracy of the delivered data.
3. Timeliness: Audio and Video data has to be delivered in a timely manner
without any delay; such a data delivery is called real time transmission of data.
4. Jitter: It is the variation in the packet arrival time. Uneven Jitter may affect the
timeliness of data being transmitted.
Figure 1.1 Characteristics of Data Communication
1.17
Figure 1.2 Data flow / Transmission modes in communication systems
(simplex, half-duplex, and full-duplex)
The Transmission mode is divided into three categories
• Simplex mode
• Half-duplex mode
• Full-duplex mode
1.18
Figure 1.2 Data flow / Transmission modes in communication systems
(simplex, half-duplex, and full-duplex)
1.19
Figure 1.2 Data flow / Transmission modes in communication systems - simplex
1.20
Figure 1.2 Data flow / Transmission modes in communication systems - simplex
1.21
Figure 1.2 Data flow / Transmission modes in communication systems - simplex
1.22
Figure 1.2 Data flow / Transmission modes in communication systems - Half-
Duplex mode
1.24
Figure 1.2 Data flow / Transmission modes in communication systems - Half-
Duplex mode (Stop – and – Wait Protocol)
1.25
Figure 1.2 Data flow / Transmission modes in communication systems - Half-
Duplex mode
Examples of Half Duplex Transmission modes:
• A Walkie-talkie: In Walkie-talkie, one party speaks, and another party
listens. After a pause, the other speaks and first party listens. Speaking
simultaneously will create the distorted sound which cannot be
understood.
• WhatsApp Messenger, Facebook messenger, Mobile Messenger etc.
• ATM Machine, Bus Ticket machines
1.27
Figure 1.2 Data flow / Transmission modes in communication systems - Half-
Duplex mode
1.28
Figure 1.2 Data flow / Transmission modes in communication systems - Full-
Duplex mode
1.31
Figure 1.2 Data flow / Transmission modes in communication systems - Full-
Duplex mode
1.32
PROTOCOL
1.36
TCP/IP PROTOCOL
1.37
TCP/IP PROTOCOL
1.38
Elements of a Protocol
There are three key elements of a protocol:
A. Syntax:
• It makes the structure or format of the data.
• It arranges the data frames in a particular order.
B. Semantics:
• It tells the meaning of each section of bits and indicates the
interpretation of each section.
• It also tells what action/decision is to be taken based on the
interpretation.
• Error Handling.
C. Timing:
• It tells the sender about the readiness of the receiver to receive the
data.
• It tells the sender at what rate the data should be sent to the
receiver to avoid overwhelming the receiver.
DATA & SIGNALS
To transmit, data over medium, it must be transformed to electromagnetic
signals. • Data can be Analog or Digital:
ANOLOG DATA & SIGNALS
• Analog data refers to information that is continuous; ex. sounds made by
a human voice
• Analog Signal: They have infinite values in a range.
• Signals which repeat itself after a fixed time period are called Periodic
Signals.
• In data communications, we commonly use periodic analog signals and
non-periodic digital signals.
DIGITAL DATA & SIGNALS
• Digital data refers to information that has discrete states. Digital data take
on discrete values.
• For example, data are stored in computer memory in the form of Os and
1s.
• Digital Signal: They have limited number of defined values
• Signals which do not repeat itself after a fixed time period are called Non-
Periodic Signals.
• In data communications, we commonly use periodic analog signals and
non-periodic digital signals.
DATA & SIGNALS
To transmit, data over medium, it must be transformed to electromagnetic
signals. • Data can be Analog or Digital:
4.53
Conversion of Analog signals to Digital signals
i) Sampling
• In analog signals, there are continuous electrical signals
that vary with time. With the help of subsystem, a sampler
extracts continuous signals for the sampling of signals.
Conversion of Analog signals to Digital signals
i) Sampling
Analog signal is sampled every TS secs.
Ts is referred to as the sampling interval.
fs = 1/Ts is called the sampling rate or sampling
frequency.
There are 3 sampling methods:
Ideal - an impulse at each sampling instant
Natural - a pulse of short width with varying
amplitude.
Flattop - sample and hold, like natural but
with single amplitude value
The process is referred to as pulse amplitude
modulation PAM and the outcome is a signal with
analog (non integer) values
Conversion of Analog signals to Digital signals
Figure 4.22 Three different sampling methods for PCM
4.56
Conversion of Analog signals to Digital signals
Quantization
• It is a process of image processing, in which continuous and
time-varying values of analog signals are divided into non-
overlapping discrete and unique values assigned to each
subrange.
• Sampling and quantization are opposite to each other.
Sampling is done along the x-axis but quantization is done
along the y-axis.
• In the image processing, the sampled image is considered as a
digital value. When there is a transition of states between
time-varying values of image function and its digital equivalent
signifies quantization.
Conversion of Analog signals to Digital signals
Quantization
Conversion of Analog signals to Digital signals
ii) Quantization
Sampling results in a series of pulses of
varying amplitude values ranging between
two limits: a min and a max.
The amplitude values are infinite between
the two limits.
We need to map the infinite amplitude
values onto a finite set of known values.
This is achieved by dividing the distance
between min and max into L zones, each of
height
= (max - min)/L
Conversion of Analog signals to Digital signals
Quantization Levels
The midpoint of each zone is assigned a value
from 0 to L-1 (resulting in L values).
Each sample falling in a zone is then
approximated to the value of the midpoint.
Quantization Zones
Assume we have a voltage signal with amplitutes
Vmin=-20V and Vmax=+20V.
We want to use L=8 quantization levels.
Zone width = (20 - -20)/8 = 5
The 8 zones are: -20 to -15, -15 to -10, -10 to -5, -5
to 0, 0 to +5, +5 to +10, +10 to +15, +15 to +20
The midpoints are: -17.5, -12.5, -7.5, -2.5, 2.5, 7.5,
12.5, 17.5
Conversion of Analog signals to Digital signals
Assigning Codes to Zones
Each zone is then assigned a binary code.
The number of bits required to encode the zones, or
the number of bits per sample as it is commonly
referred to, is obtained as follows:
nb = log2 L
Given our example, nb = 3
The 8 zone (or level) codes are therefore: 000, 001,
010, 011, 100, 101, 110, and 111
Assigning codes to zones:
000 will refer to zone -20 to -15
001 to zone -15 to -10, etc.
Figure 4.26 Quantization and encoding of a sampled signal
Conversion of Digital signals to Analog signals
PCM Decoder
To recover an analog signal from a digitized signal
we follow the following steps:
We use a hold circuit that holds the amplitude
value of a pulse till the next pulse arrives.
We pass this signal through a low pass filter with
a cutoff frequency that is equal to the highest
frequency in the pre-sampled signal.
The higher the value of L, the less distorted a signal
is recovered.
Figure 4.27 Components of a PCM decoder
Figure 4.31 Data transmission methods
Figure 4.32 Parallel transmission
Figure 4.33 Serial transmission
Note
Client/Server network
Fundamentals of Computer Networks
Peer-To-Peer Network Architecture
Fundamentals of Computer Networks
Peer-To-Peer Network Architecture
Peer-To-Peer network is a network in which all the computers
are linked together with equal privilege and responsibilities for
processing the data.