Chapter 4 Lecture Notes
Chapter 4 Lecture Notes
This Chapter introduces digital transmission – how data is represented as signals for
communication. It covers three main areas:
(1) Digital-to-digital conversion (encoding digital data into digital signals),
(2) Analog-to-digital conversion (digitizing analog signals like voice),
(3) Transmission modes (parallel vs. serial data transfer).
Digital-to-Digital Conversion
Digital-to-digital conversion refers to the process of converting binary data (0s and 1s)
into a digital signal, which is a sequence of voltage pulses that can be transmitted over
a cable. This process is necessary to send data as a stream of bits over networking
media.
In practice, three techniques are used in this conversion:
• Line Coding: is a technique used to convert digital data (0s and 1s) into
electrical or optical signals that can travel over a physical communication medium
like a wire or fiber optic cable. In simple terms, line coding converts the stream of
bits (such as 10110) into a waveform (consisting of voltage or light pulses) that a
cable can carry and the receiver can understand.
Each bit (1 or 0) is represented by a specific voltage level or signal shape. For example,
a high voltage could be represented by a 1, and a low voltage or zero voltage could be
represented by a 0. This waveform travels through the medium, and the receiver reads
the voltages to recover the original data. The types of line coding are:
Page 1 of 6
2- Manchester coding. Here, every bit has a change in the middle. A 1 changes from
low to high , and a 0 changes from high to low . These regular changes help
the receiver stay in sync with the signal, so it is very reliable.
• Block Coding: is a method used with the line coding to make data more reliable
when it is being transmitted. It adds extra bits to your data before sending it. This
helps the receiver stay in sync with the sender, so it knows where each group of bits
starts and ends. And detect errors if something goes wrong during transmission.
Page 2 of 6
carefully designed to appear like normal data but include known “violation pulses”
that help the receiver recognize and reverse the scrambling.
These violations enable the receiver to identify and decode the original data
accurately.
Used in Europe and other regions, it replaces four consecutive 0s with a sequence of
OOOV or BOOV. The reason for two different substitutions is to maintain an even
number of nonzero pulses after each substitution. It has two rules:
1. If the number of nonzero pulses after the last substitution is odd, the substitution
pattern will be OOOV, which makes the total number of nonzero pulses even.
2.If the number of nonzero pulses after the last substitution is even, the substitution
pattern will be BOOV, which makes the total number of nonzero pulses even.
HDB3 Substitution Rules
Case 1: If there are no 4 consecutive zeros
Page 3 of 6
Scrambling is significant because it ensures more stable and accurate data transmission
over digital networks without needing extra bandwidth.
Analog-to-Digital Conversion
Analog-to-digital conversion, also known as digitization, involves converting analog
signals (such as human voices or music) into digital data, represented by bits. It has two
main methods:
• Pulse Code Modulation (PCM) is a method used to convert analog signals, such
as voice, into a digital form. It works in three steps:
The result is a stream of digital bits representing the original analog signal.
Page 4 of 6
• Delta Modulation (DM): Delta modulation is a simpler alternative to PCM. Instead
of encoding absolute sample values, it encodes the change from the previous
sample. it only sends whether the signal has gone up or down compared to the last
time it was checked>>> 1 = gone up , and 0 =gone down.
This method reduces complexity, but it can struggle with accuracy if the signal
changes rapidly.
In practice, DM is proper for specific low-bandwidth analog sources; however, PCM
offers higher reliability.
Transmission Modes
When binary data is transmitted, it can be sent in parallel or serial:
Figure1 parallel transmission
In parallel transmission, multiple bits travel simultaneously, each on its wire. For
example, an 8-bit byte can be sent over eight wires simultaneously. This enables parallel
transfer to occur very quickly. However, parallel links are expensive and typically have
a limited range. Parallel transmission is commonly used within computers or for devices
like old printer ports, where the distance is short and speed is required.
Figure2 serial transmission
Page 5 of 6
In serial transmission, bits are sent one at a time over a single channel, typically a
single wire or fiber. Serial transmission is slower than parallel (only one bit per cycle),
but it’s far more practical for longer distances and has a much lower cost in terms of
wiring. Nearly all network communications between devices use serial transmission –
for example, an Ethernet cable, a fiber optic link.
Despite the per-bit rate being slower, serial links can be clocked at very high speeds,
and they avoid the timing alignment issues associated with parallel wires.
• Synchronous Serial: a continuous stream of bits is sent with no gaps, and the
sender and receiver stay synchronized with each other’s clocks. Data is grouped
into larger frames (multiple bytes) which are sent back-to-back. It’s the receiver’s
job to separate the bit stream into bytes using the agreed frame format. Synchronous
transmission is efficient and fast because it eliminates the per-byte overhead; there
are no start/stop bits between bytes, resulting in higher effective data rates than
asynchronous mode. This mode is used in high-speed network links and
communications between computers and network devices, such as the data link
layer on an Ethernet or a point-to-point link between routers.
Page 6 of 6