2 Data Transmission And Encoding

Network and Data Communications · Unit 2

Data Transmission and Encoding

Exam-focused notes for Data Transmission and Encoding (Network and Data Communications, BIT254): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.

Data Transmission and Encoding in short

Data must be converted into signals before it travels over a link. This chapter covers line coding, modulation, the things that damage signals, and the formulas for data rate and capacity.

Data Transmission and Encoding: notes

Digital signal encoding NRZ-L

In line coding, binary data is changed into a digital signal. In NRZ-L (Non-Return to Zero, Level), the voltage level shows the bit value. The signal never returns to zero inside a bit.

  • Bit 0: positive voltage (in many textbooks).
  • Bit 1: negative voltage.

Example for data 10110:

Bit:     1    0    1    1    0
Level:   -    +    -    -    +

Drawback: a long run of 0s or 1s gives a flat line. The receiver then loses synchronization, because it cannot tell where one bit ends. NRZ-L also has a DC component.

Digital signal encoding NRZ-I

In NRZ-I (Non-Return to Zero, Invert), the signal shows the bit by a change. A bit 1 inverts the level at the start of the bit. A bit 0 keeps the previous level.

For 10110, starting from a low level:

Bit:     1     0     1     1     0
Level:   high  high  low   high  high

NRZ-I handles long runs of 1s well, because each 1 makes a change. A long run of 0s still gives no change, so sync can still be lost.

Manchester encoding

Manchester encoding puts a transition in the middle of every bit. This gives the receiver a clock signal in the data itself, so it is called self-synchronizing.

  • Bit 1: high to low in the middle (IEEE 802.3 convention).
  • Bit 0: low to high in the middle.

Example for 1011:

Bit 1: high -> low
Bit 0: low -> high
Bit 1: high -> low
Bit 1: high -> low

The cost is bandwidth. Each bit needs two signal changes, so Manchester needs twice the bandwidth of NRZ. Ethernet (10 Mbps) used it.

What this unit covers

  • Digital signal encoding NRZ-L
  • Digital signal encoding NRZ-I
  • Manchester encoding
  • Differential Manchester encoding
  • Binary Amplitude Shift Keying
  • Binary Phase Shift Keying
  • Attenuation distortion and noise
  • Shannon capacity calculation
  • Bandwidth and bit rate

Shannon capacity calculation

2082 · 10 marks

What are the services provided by Data Link Layer?A channel has a bandwidth of 5 MHz and a signal-to-noise ratio of 1000. Calculate the Shannon Capacity.[6+4]

Show solved answer

Data Link Layer Services & Shannon Capacity


The Data Link Layer (Layer 2 of the OSI model) provides reliable transit of data across a physical link. Its main services are:

1. Framing

The bit stream received from the Network Layer is divided into manageable units called frames. A header and trailer are added to mark the start and end of each frame.

2. Physical (MAC) Addressing

A header containing the MAC addresses of the sender and receiver is added, enabling frame delivery between devices on the same network.

3. Flow Control

When the sender transmits faster than the receiver can absorb, the layer applies a flow-control mechanism to prevent receiver buffer overflow.

4. Error Control

Mechanisms to detect and retransmit damaged or lost frames are provided, along with prevention of duplicate frames. Techniques include CRC, parity, and checksums.

5. Access Control

On a shared medium, protocols decide which device controls the link at a given moment, avoiding collisions (e.g., CSMA/CD, Token passing).

6. Reliable (Node-to-Node) Delivery

Uses acknowledgements (ACK) and retransmission schemes such as ARQ to ensure error-free node-to-node delivery.


Part B: Shannon Capacity Calculation [4 Marks]

Given data

ParameterValue
Bandwidth $B$$5\ \text{MHz} = 5 \times 10^6\ \text{Hz}$
Signal-to-Noise Ratio (SNR)$1000$

Formula

$$C = B \times \log_2(1 + \text{SNR})$$

Step 1: Substitute

$$C = 5 \times 10^6 \times \log_2(1 + 1000) = 5 \times 10^6 \times \log_2(1001)$$

Step 2: Evaluate the logarithm

$$\log_2(1001) = \frac{\log_{10}(1001)}{\log_{10}(2)} = \frac{3.00043}{0.30103} \approx 9.9672$$

Step 3: Compute capacity

$$C = 5 \times 10^6 \times 9.9672 \approx 49.836 \times 10^6\ \text{bps}$$

$$\boxed{C \approx 49.84\ \text{Mbps} \approx 50\ \text{Mbps}}$$

Interpretation

This is the theoretical maximum data rate of the channel. No transmission scheme, regardless of the number of signal levels, can exceed this limit.

Open this answer on its own page →

2080.2 · 5 marks

Write short notes on a.) Shannon Capacity Write short notes on b.) Connectionless service [2.5+2.5]

Shannon Capacity (also called Shannon's Channel Capacity theorem) defines the theoretical maximum data rate at which information can be transmitted over a noisy communication channel with arbitrarily low error probability. It was formulated by Claude Shannon in 1948 and is given by: $$C = B \log2...

Open this answer on its own page →

Digital signal encoding NRZ-L

2082 · 5 marks

Encode the bit stream 111001011 with: (i) Manchester (ii) NRZ-I and (iii) NRZ-L scheme. [5]

  • Bit stream to encode: $1\ 1\ 1\ 0\ 0\ 1\ 0\ 1\ 1$ (9 bits) - Schemes required: (i) Manchester, (ii) NRZ-I, (iii) NRZ-L Note: These are standard line-coding schemes. I follow the conventions used in Forouzan (TU curriculum standard). Any consistent convention is acceptable, so long as it is stat...
Open this answer on its own page →

2081 · 5 marks

Represent bit sequence 1100100111 by the following waveform: (a) NRZ-L (b) NRZ-I (c) Differential Manchester. [5]

  • Bit sequence: 1 1 0 0 1 0 0 1 1 1 - Encoding schemes required: (a) NRZ-L, (b) NRZ-I, (c) Differential Manchester Convention used (Forouzan standard): - NRZ-L: bit 0 = High, bit 1 = Low (the level directly represents the bit; here I use the common Forouzan mapping). To avoid ambiguity I state th...
Open this answer on its own page →

2080 · 5 marks

Represent bit sequence 100111001 by the following wave forms: NRZ-L, NRZ-I [5]

  • Bit sequence: $1\ 0\ 0\ 1\ 1\ 1\ 0\ 0\ 1$ (9 bits) - Encoding schemes required: NRZ-L, NRZ-I --- Rule (Forouzan convention): - Bit 1 → Low voltage level - Bit 0 → High voltage level The level is set purely by the current bit value (absolute level, no reference to previous bit). Bit Position 1 2...
Open this answer on its own page →

Attenuation distortion and noise

2082 · 5 marks

What are the major differences between noise, distortion and attenuation? [5]

Show solved answer

Differences Between Noise, Distortion, and Attenuation


Definitions and Key Differences

FeatureNoiseDistortionAttenuation
DefinitionUnwanted random signals added to the original signal during transmissionChange in the shape/form of the signal due to different propagation speeds of signal componentsGradual loss of signal strength/energy as it travels through a medium
CauseExternal interference (thermal, electromagnetic, crosstalk)Different frequency components arriving at different timesResistance of the transmission medium
Effect on SignalAdds foreign/random components to the signalAlters the waveform shapeReduces the amplitude/power of the signal
NatureAdditive and randomDeterministic (related to medium properties)Predictable and progressive
ReversibilityDifficult to reversePartially correctable with equalizersCan be corrected using amplifiers or repeaters
ExampleStatic/hiss on a telephone lineSignal spreading in a coaxial cableSignal weakening over long fiber optic cable

Brief Explanations

1. Noise

  • Noise is any unwanted energy that gets mixed with the transmitted signal.
  • It is random and unpredictable.
  • Types include: thermal noise, impulse noise, crosstalk, and intermodulation noise.
  • It degrades the signal-to-noise ratio (SNR).

2. Distortion

  • Distortion occurs when the shape of the signal changes during transmission.
  • It is common in composite signals where each frequency component travels at a different speed.
  • The signal arrives with components out of phase, altering the original waveform.
  • It is a deterministic problem related to medium characteristics.

3. Attenuation

  • Attenuation is the loss of signal energy as the signal propagates through a medium.
  • It increases with distance and frequency.
  • Measured in decibels (dB).
  • It can be compensated by using amplifiers (analog) or repeaters (digital).

Summary

Noise adds unwanted signals, distortion changes the signal shape, and attenuation reduces the signal strength. All three are major impairments in data communication but differ in their cause, nature, and remedy.

Open this answer on its own page →

2080 · 10 marks

Differentiate between noise and attenuation. A pure ALOHA network transmits 200 bit frames using a shared channel with a 50 kbps bandwidth. What is the requirement to make this frame collision free?[10]

Parameter Value ------ Frame size (L) 200 bits Channel bandwidth (B) 50 kbps = 50,000 bps Protocol Pure ALOHA All required data is present. No missing values. --- Feature Noise Attenuation --------- Definition Unwanted electrical/electromagnetic energy added to a signal, degrading its quality Los...

Open this answer on its own page →

2079 · 5 marks

What are the major differences between noise, distortion and attenuation? [5]

Show solved answer

Differences Between Noise, Distortion, and Attenuation


Definitions and Key Differences

FeatureNoiseDistortionAttenuation
DefinitionUnwanted random signals added to the original signal during transmissionAlteration in the shape/form of the signal due to different propagation speeds of signal componentsReduction in the strength (amplitude/power) of the signal as it travels through a medium
CauseExternal interference (thermal, electromagnetic, crosstalk, impulse sources)Different frequency components of a signal traveling at different speeds through the mediumEnergy loss due to resistance, absorption, or scattering in the transmission medium
Effect on SignalAdds unwanted random components to the signalChanges the shape/waveform of the signalWeakens the signal without necessarily changing its shape
NatureAdditive -- foreign energy is added to the signalMorphological -- the signal form is deformedMultiplicative/Loss -- signal energy is reduced
Frequency DependencyGenerally affects all frequencies (especially impulse noise)Strongly frequency-dependent (different frequencies affected differently)Increases with distance and frequency
Solution/RemedyShielding, filtering, error correction codesEqualization techniques, careful medium selectionAmplifiers, repeaters, signal boosters
ExampleStatic/hiss heard on a telephone lineEcho or blurring of a digital pulse over long cablesFaint signal received far from a transmitter

Brief Explanations

1. Attenuation

  • Attenuation means the loss of signal energy as the signal propagates through the medium.
  • The signal becomes weaker with increasing distance.
  • It is measured in decibels (dB).
  • Example: A signal sent over a long copper wire arrives with much lower amplitude.

2. Distortion

  • Distortion means the signal changes its shape.
  • In a composite signal, each frequency component travels at a slightly different speed, causing them to arrive at different times, thus distorting the overall waveform.
  • It is common in wired media carrying composite signals.

3. Noise

  • Noise is any unwanted signal that mixes with the original signal.
  • Types include: thermal noise, induced noise, crosstalk, and impulse noise.
  • It is the most unpredictable of the three impairments.
  • Measured using the Signal-to-Noise Ratio (SNR).

Summary

All three -- attenuation, distortion, and noise -- are types of transmission impairments that degrade signal quality, but they differ in cause, nature, and effect: attenuation reduces signal strength, distortion alters signal shape, and noise adds unwanted random signals.

Open this answer on its own page →

0 · 5 marks

Write short notes on Attenuation and SNMP [5]

--- Attenuation is the loss of signal strength (energy) as it travels through a transmission medium over a distance. As a signal propagates along a cable or through the air, it gradually weakens due to resistance, absorption, and scattering effects of the medium. - Attenuation is measured in deci...

Open this answer on its own page →

Binary Amplitude Shift Keying

2079 · 10 marks

Explain the concept of Binary Amplitude Shift Keying. Represent bit sequence 11001010 by the following waveform a.) Manchester b.) Differential Manchester[10]

--- Binary Amplitude Shift Keying (BASK) is a form of digital modulation in which the amplitude of a carrier signal is varied to represent binary data (0s and 1s), while the frequency and phase remain constant. The BASK signal can be expressed as: $$s(t) = Ai \cos(2\pi fc t), \quad i = 0, 1$$ Whe...

Open this answer on its own page →

Binary Phase Shift Keying

2080.2 · 10 marks

Explain the concept of Binary Phase Shift Keying. Represent bit sequence 111000110 by the following waveform a.) NRZ-I, b) Differential Manchester[10]

  • Bit sequence: 1 1 1 0 0 0 1 1 0 - Required encodings: (a) NRZ-I, (b) Differential Manchester - Assumed initial reference level: LOW (stated explicitly since the question does not specify) --- Definition: BPSK is a digital modulation technique in which the phase of a constant-amplitude, constant...
Open this answer on its own page →