Lesson 8_data Transmission-part 1
Lesson 8_data Transmission-part 1
DAT TRANSMISSION
LESSON 8
Building on that foundation, this section focuses on how digital data can be
represented using digital signals — a fundamental concept in data
transmission.
DIGITAL-TO-DIGITAL CONVERSION
This process is known as Digital-to-Digital Conversion, where binary data
(sequences of 0s and 1s) is transformed into a format suitable for transmission
over a digital communication channel. This is essential for:
❖ Accurate data representation
❖ Efficient transmission
❖ Synchronization between sender and receiver
❖ Minimizing error and noise impact
Each bit (0 or 1)
corresponds to a particular
signal level or pattern.
LINE CODING
Desirable Characteristics of Line Coding:
• Self-synchronization: The receiver should be able to identify the bit boundaries
without a separate clock.
• No DC component: Long strings of constant voltage can be problematic for
some channels.
• Error detection capability: Some coding schemes naturally allow errors to be
spotted.
• Efficient bandwidth usage
• Low complexity and implementation cost
LINE CODING
Digital data (bits: 0s and 1s) is converted into a digital signal (a sequence of
voltage pulses) for transmission over a digital medium. Each group of bits is
represented by one or more voltage levels, forming the actual signal that moves
through the communication channel.
𝑐𝑁
𝑆𝑎𝑣𝑒 =
𝑟
where: Save is the average baud rate (Signal rate)
N is the Bit rate (data rate)
r is Number of bits per signal element
c is the case factor
LINE CODING
Example: A Network transmits data using Non-Return-to-Zero (NRZ) encoding. The bit
rate of the transmission is 2400 bits per second. What is the baud rate?
Example: A communication system uses a multilevel scheme where each signal element
represents 2 bits of information. If the baud rate of the transmission is 1200 baud, what is
the bit rate?
Example: A digital communication channel uses a signal encoding technique where each
signal element carries 4 bits. If the bit rate of the system is 12kbits per second, what is the
baud rate?
Example: A signal is carrying data in which one data element is encoded as one signal
element (r = 1). If the bit rate is 100 kbps, what is the average value of the baud rate if c is
between 0 and 1? We assume that the average value of c is ½.
LINE CODING
Previously discussed that a digital signal carrying information is nonperiodic. We also
demonstrated that the bandwidth of a nonperiodic signal is continuous and
theoretically infinite. However, most digital signals we encounter in practice have a
finite bandwidth. Therefore, the effective bandwidth is finite.
Example: If a line coding scheme transmits at 1000 bps and each signal element
represents 1 bit, the baud rate is 1000 baud. However, if a multilevel scheme allows
2 bits per signal element, the baud rate drops to 500 baud — effectively cutting the
required bandwidth in half.
LINE CODING
Important Line Coding Considerations:
1. Baseline Wandering
❖ Occurs when there are long sequences of 0s or 1s (i.e., no signal transitions).
❖ Causes the receiver’s baseline (average voltage) to drift, making it hard to detect small
signal changes.
❖ Solution: Use line codes with regular transitions (e.g., Manchester, Scrambling
techniques).
2. DC Component
❖ A DC component is the average voltage of the signal over time.
❖ High DC components are problematic in media that cannot pass low frequencies (e.g.,
transformers, capacitive links).
❖ Solution: Use bipolar or balanced schemes (e.g., AMI, Manchester) which ensure zero
or low DC bias.
LINE CODING
Important Line Coding Considerations:
3. Self-Synchronization
❖ The receiver must recognize where each bit starts and ends.
❖ This requires transitions in the signal to synchronize clocks.
❖ Codes like Manchester and Differential Manchester have built-in transitions to aid
synchronization.
❖ Schemes like NRZ lack this and may require additional mechanisms (e.g., block
coding, scrambling).
4. Built-in Error Detection
❖ Some line codes inherently provide basic error detection features.
❖ Example: AMI (Alternate Mark Inversion) — a pattern violation indicates a potential
error.
❖ Also seen in block coding and schemes that use redundant or reserved patterns.
LINE CODING
Important Line Coding Considerations:
5. Immunity to Noise and Interference
❖ Good line coding should maintain data integrity even in the presence of noise.
❖ Differential encoding (like Differential Manchester) is more immune to polarity reversal
errors.
❖ Balanced signals (equal positive and negative voltages) help resist common-mode noise.
6. Complexity
❖ Complexity affects the cost and feasibility of implementation.
❖ Simple schemes like NRZ are easy to implement but lack desirable features.
❖ Advanced schemes (e.g., 8B/10B, multilevel coding) improve performance but require more
complex encoding/decoding circuits.
LINE CODING
Important Line Coding Considerations:
Summary of Line Coding Desirables
Feature Benefit
Regular transitions Ensures synchronization
Example: A system is using NRZ-I to transfer 10-Mbps data. What are the
average signal rate and minimum bandwidth?
LINE CODING SCHEMES
POLAR SCHEMES
The main issue with NRZ encoding is that if the sender and receiver clocks aren't
synchronized, the receiver can't tell when one bit ends and the next begins. One alternative
is the return-to-zero (RZ) scheme, which uses three voltage levels: positive, negative, and
zero. In RZ, the signal goes to zero in the middle of each bit and stays there until the next bit
starts.
However, RZ has several downsides. It
requires two signal changes to represent a
single bit, which uses more bandwidth. The
same problem of sudden polarity changes,
where all 0s might be seen as 1s and vice
versa, still occurs, but there’s no DC
component issue. Additionally, it is more
complex because it uses three voltage levels.
For these reasons, RZ is not commonly used ❖ Bit period is split in half: signal
today and has been largely replaced by more returns to 0 in the middle
effective methods like Manchester and ❖ Better synchronization than NRZ,
differential Manchester encoding but uses more bandwidth
LINE CODING SCHEMES
POLAR SCHEMES
Manchester encoding combines RZ
(which has a transition in the middle of
the bit) and NRZ-L. In this scheme,
each bit is split into two halves: the
voltage stays at one level during the
first half and switches to another level
in the second half. This transition helps
with synchronization.
Differential Manchester also has a
middle transition but determines the bit
value at the beginning. If the next bit is
0, there’s a transition; if it’s 1, there
isn’t.
LINE CODING SCHEMES
POLAR SCHEMES
Both Manchester and Differential Manchester schemes solve many problems of NRZ-L
and NRZ-I. They avoid issues like baseline wandering and DC components because
each bit uses both positive and negative voltage. However, the signal rate is double
that of NRZ due to the extra transitions. These encoding methods are also called
biphase schemes.
Key Points:
Pseudoternary is a variation of AMI where binary 1s are encoded as zero voltage, and binary
0s are represented by alternating positive and negative voltages. Less common than AMI
LINE CODING SCHEMES
BIPOLAR SCHEMES
The bipolar encoding scheme was created as an alternative to NRZ encoding. Both have
the same signal rate, but bipolar encoding does not have a DC component, while NRZ
tends to concentrate energy near zero frequency, making it less effective for poor
channels. Bipolar encoding, on the other hand, concentrates energy around frequency N/2.
Bipolar encoding lacks a DC component because long sequences of 1s alternate between
positive and negative voltages, while long sequences of 0s maintain a constant zero
voltage.
AMI is frequently used for long-distance communication but can face synchronization
issues with long sequences of 0s. Later will discuss scrambling techniques to overcome this
problem.
LINE CODING SCHEMES
MULTILEVEL SCHEMES
To increase data rates or reduce bandwidth, various encoding schemes have been
developed. The objective is to encode a pattern of m data elements (0s and 1s)
into n signal elements, allowing for more bits to be represented per signal. Since there
are only two data elements, m data elements can produce 2m combinations of
patterns. By using more than two voltage levels, we can represent multiple bits with
each signal element.
Multilevel schemes use more than two voltage levels used to represent multiple
bits per signal element.
The code designers have classified these types of coding as mBnL, where m is the
length of the binary pattern, B means binary data, n is the length of the signal pattern,
and L is the number of levels in the signaling.
A letter is often used in place of L: B (binary) for L = 2, T (ternary) for L = 3, and Q
(quaternary) for L = 4.
LINE CODING SCHEMES
MULTILEVEL SCHEMES
2B1Q. Two binary, one quaternary (2B1Q), uses data patterns of size 2 and
encodes the 2-bit patterns as one signal element belonging to a four-level
signal.
LINE CODING SCHEMES
MULTILEVEL SCHEMES
8B6T. A very interesting scheme is eight binary, six ternary (8B6T). This code is
used with 100BASE-4T cable. The idea is to encode a pattern of 8 bits as a pattern
of six signal elements, where the signal has three levels (ternary).
To create DC
balance, the sender
inverts the actual
signal.
In this type of scheme, we can have 28 = 256 different data patterns and 36 = 729 different
signal patterns. There are 729 − 256 = 473 redundant signal elements that provide
synchronization and error detection. Refer to the mapping table for all possible values.
LINE CODING SCHEMES
MULTILEVEL SCHEMES
19. Which of the following does not add extra bits to the
data stream?
A. 8B/10B coding
B. Scrambling
C. 4B/5B coding
D. Block coding
ASSESSMENT:
Choose the letter of the correct answer.