Transmission Techniques
Data Encoding
Data encoding is the process of converting digital data into a format suitable for transmission over a communication channel. This is crucial because digital signals (bits, 0s and 1s) cannot always be directly transmitted through analog channels like telephone lines or radio waves. Encoding ensures that the data is represented in a way that the receiver can correctly interpret it, while also considering factors like clocking, error detection, and efficiency.
Line Coding Schemes
Line coding is a method of encoding digital data into digital signals. It involves mapping sequences of input bits to specific output signal patterns. Different line coding schemes have varying properties regarding signal energy, bandwidth requirements, and error detection capabilities.
Unipolar Encoding
In unipolar encoding, only one polarity of voltage is used to represent bits. Typically, a positive voltage represents a '1' and zero voltage represents a '0'. This is the simplest form of line coding but suffers from a lack of synchronization and DC component issues.
- NRZ (Non-Return-to-Zero): The voltage level remains constant throughout the bit duration. For NRZ-L (Level), a high level represents '1' and a low level represents '0'. For NRZ-I (Invert), a '1' causes a transition, and a '0' causes no transition.
Polar Encoding
Polar encoding uses two different voltage levels, one positive and one negative, to represent bits. This scheme overcomes the DC component issue of unipolar encoding.
- RZ (Return-to-Zero): The signal returns to zero voltage in the middle of each bit duration. A high voltage for the first half and low for the second represents '1', while low for the first half and high for the second represents '0'. This provides synchronization but uses more bandwidth.
- NRZ (Non-Return-to-Zero): As described under unipolar, but using positive and negative voltages. NRZ-L uses distinct levels for 0 and 1. NRZ-I uses a transition for '1' and no transition for '0'.
- Manchester Encoding: Each bit is represented by a transition in the middle of the bit duration. A transition from low to high represents '0', and a transition from high to low represents '1'. This scheme provides both synchronization and error detection but requires twice the bandwidth of NRZ.
- Differential Manchester Encoding: The presence or absence of a transition at the beginning of the bit period indicates the bit value. A transition indicates a '0', and no transition indicates a '1'. There is always a transition in the middle of the bit period for synchronization.
Bipolar Encoding
Bipolar encoding uses three voltage levels: positive, negative, and zero. A '0' is typically represented by zero voltage. '1's are represented by alternating positive and negative voltages. This scheme is efficient in bandwidth usage and helps in error detection.
- AMI (Alternate Mark Inversion): A '0' is sent as zero voltage. A '1' is sent as a positive pulse, the next '1' as a negative pulse, and so on. This prevents long strings of zeros from causing synchronization loss.
- B8ZS (Bipolar 8-Zero Substitution): A variation of AMI where eight consecutive zeros are replaced by a special pattern that includes a bipolar violation to maintain synchronization.
Block Coding
Block coding involves breaking the bit stream into fixed-size blocks and then mapping each block to a larger block of bits for transmission. This is often used to add redundancy for error detection and correction, or to improve synchronization properties. For example, 4B/5B encoding replaces every 4-bit block with a 5-bit code word.
Modulation
Modulation is the process of encoding information onto a carrier wave. In digital communications, this involves converting digital data into analog signals for transmission over analog channels (like radio waves or telephone lines). Conversely, demodulation is the reverse process at the receiver.
Amplitude Shift Keying (ASK)
In ASK, the amplitude of the carrier wave is varied to represent digital data. For example, a high amplitude might represent '1', and a low amplitude (or zero amplitude) might represent '0'.
- Two-level ASK (OOK - On-Off Keying): Carrier ON for '1', Carrier OFF for '0'.
- Multi-level ASK: Uses different amplitude levels to represent multiple bits simultaneously.
Frequency Shift Keying (FSK)
In FSK, the frequency of the carrier wave is varied to represent digital data. For example, one frequency represents '1', and another frequency represents '0'.
- Two-level FSK: Uses two distinct frequencies.
- Multi-level FSK: Uses multiple frequencies for higher data rates.
Phase Shift Keying (PSK)
In PSK, the phase of the carrier wave is varied to represent digital data.
- BPSK (Binary PSK): Uses two phases (0° and 180°) to represent '0' and '1'. A transition in phase occurs when the bit changes.
- QPSK (Quadrature PSK): Uses four phases (0°, 90°, 180°, 270°) to represent two bits at a time. This doubles the data rate compared to BPSK for the same bandwidth.
- M-ary PSK: Uses M different phases to encode log2M bits per symbol.
Quadrature Amplitude Modulation (QAM)
QAM combines both amplitude and phase modulation. It uses different combinations of amplitude levels and phases to represent multiple bits per symbol. This allows for very high data rates within a given bandwidth. For instance, 16-QAM uses 16 different symbol states, each representing 4 bits (log216 = 4).
Data Encoding is converting digital bits into digital signals (e.g., NRZ, Manchester). Modulation is converting digital bits into analog signals (e.g., ASK, FSK, PSK, QAM) for transmission over analog channels.
Broadband and Baseband Transmission
These terms describe how signals are transmitted over a communication medium, particularly concerning the frequency spectrum used.
Baseband Transmission
In baseband transmission, digital signals are transmitted directly over the medium without modulation. The entire bandwidth of the channel is used to transmit a single signal at a time. This is typically used for short-distance communication, like in Ethernet LANs. The signal is essentially a stream of digital pulses.
- Characteristics:
- Uses the entire channel bandwidth for one signal.
- Digital signals are transmitted directly.
- Requires less complex hardware.
- Suitable for short distances.
- Examples: Ethernet (10Base-T, 100Base-TX), DSL (in the context of the local loop).
Broadband Transmission
Broadband transmission uses modulation to divide the channel's bandwidth into multiple frequency bands or channels. Each channel can carry a separate signal, allowing multiple users or services to share the same physical medium simultaneously. This is a form of frequency division multiplexing (FDM).
- Characteristics:
- Divides bandwidth into multiple channels.
- Uses modulation to shift signals to different frequencies.
- Supports multiple signals simultaneously.
- Suitable for long-distance communication.
- Examples: Cable TV networks, DSL (over the longer-distance part of the network), cellular networks.
Multiplexing
Multiplexing is a technique that allows multiple data streams or signals to be combined and transmitted over a single communication channel. This is essential for efficient use of network resources, reducing the need for separate physical lines for each communication.
Frequency Division Multiplexing (FDM)
FDM combines signals by allocating a unique frequency band to each signal. The total bandwidth of the channel is divided into several non-overlapping frequency sub-bands. Each sub-band carries a separate data stream. Modulators shift each input signal to its assigned frequency band, and a multiplexer combines them. Demultiplexers at the receiver use filters to separate the signals.
- Analogy: Like different radio stations broadcasting on different frequencies over the airwaves.
- Requirements: Guard bands (small unused frequency ranges) are needed between adjacent channels to prevent interference.
- Applications: Traditional telephone networks (voice channels), cable TV.
Time Division Multiplexing (TDM)
TDM combines signals by dividing the transmission time into fixed-length time slots. Each input data stream is assigned a specific time slot during which it can transmit its data. The multiplexer cycles through the time slots, sending a piece of data from each stream in turn. This is suitable for digital signals.
- Synchronous TDM (STDM): Each device gets a fixed time slot, whether it has data to send or not. This can be wasteful if a device is idle.
- Asynchronous TDM (Statistical TDM - StatTDM): Time slots are allocated dynamically based on demand. Data is buffered, and time slots are assigned only to devices that have data ready. This is more efficient but requires more complex control mechanisms.
- Analogy: A group of people taking turns to speak for a fixed duration in a meeting.
- Applications: Digital telephone systems (e.g., T1/E1 lines), mobile communication systems.
Wavelength Division Multiplexing (WDM)
WDM is a variation of FDM used in fiber optic communication. It combines multiple optical signals, each carried on a different wavelength (color) of light, over a single optical fiber. Each wavelength acts as a separate channel.
- Applications: High-capacity backbone networks, long-haul telecommunications.
- Variations: Coarse WDM (CWDM) and Dense WDM (DWDM) differ in the spacing between wavelengths and the number of channels they can support. DWDM supports many more channels with very close spacing.
Code Division Multiplexing (CDM)
CDM allows multiple users to share the same frequency band and time slot simultaneously. Each user is assigned a unique spreading code. The data bits are multiplied by this code, spreading the signal over a wider bandwidth. The receiver, knowing the code, can selectively extract the desired signal while ignoring others.
- Principle: Orthogonal codes are used so that signals from different users do not interfere with each other when decoded.
- Applications: Some cellular technologies (e.g., CDMA - Code Division Multiple Access), GPS.
Frequency = Fixed Bands (like radio stations) Time = Turns (taking turns) Wavelength = Waves (different colors of light) Code = Codes (unique keys to unlock signals)
Transmission Media
Transmission media are the physical pathways through which data travels from one point to another in a network. They can be broadly classified into guided (wired) and unguided (wireless) media.
Guided Media (Wired)
These media provide a physical path for data to travel. They are generally less susceptible to interference than unguided media.
Twisted-Pair Cable
Consists of pairs of insulated copper wires twisted together. The twisting helps reduce electromagnetic interference (EMI) from adjacent pairs and external sources.
- Unshielded Twisted Pair (UTP): Most common type, used in Ethernet LANs. Lacks metallic shielding, making it more susceptible to interference but cheaper and more flexible.
- Shielded Twisted Pair (STP): Has a metallic shield around the pairs or around each pair, offering better protection against EMI. More expensive and less flexible than UTP.
- Categories: Cat 5e, Cat 6, Cat 6a, Cat 7, Cat 8 define performance standards (speed, bandwidth, crosstalk resistance).
- Applications: Ethernet networks, telephone lines.
Coaxial Cable
Consists of a central copper conductor surrounded by an insulating layer, which is then surrounded by a braided metallic shield, and finally an outer insulating jacket. The shield provides excellent protection against EMI.
- Structure: Central conductor, insulator, shield, jacket.
- Applications: Cable TV distribution, older Ethernet networks (e.g., 10Base2, 10Base5), broadband internet access.
Fiber Optic Cable
Transmits data as pulses of light through thin strands of glass or plastic. It offers very high bandwidth, immunity to EMI, and long transmission distances.
- Structure: Core (where light travels), cladding (reflects light back into the core), buffer coating (protection), strength members, outer jacket.
- Types of Core:
- Single-Mode Fiber (SMF): Very thin core (around 9 µm), allows only one mode (path) of light to propagate. Used for long distances and high bandwidth (e.g., backbone networks, long-haul telecommunications).
- Multi-Mode Fiber (MMF): Larger core (50 µm or 62.5 µm), allows multiple modes of light to propagate. Causes modal dispersion (different light paths arrive at different times), limiting distance and bandwidth. Used for shorter distances (e.g., within buildings, data centers).
- Advantages: High bandwidth, low attenuation, immunity to EMI, security.
- Disadvantages: Higher cost, requires specialized installation and equipment.
Unguided Media (Wireless)
These media transmit data through the air or vacuum using electromagnetic waves. They are more flexible but also more susceptible to interference and attenuation.
Radio Waves
Broadcast over a wide range of frequencies. They can penetrate walls and travel long distances.
- Frequencies: Low frequencies (LF) for long-range, high frequencies (HF) for shorter range, Very High Frequency (VHF) and Ultra High Frequency (UHF) for FM radio, TV, and mobile communications.
- Applications: AM/FM radio, television broadcasting, cordless phones, Wi-Fi (2.4 GHz and 5 GHz bands), Bluetooth, cellular networks.
Microwaves
High-frequency radio waves (typically 1 GHz to 300 GHz). They travel in straight lines (line-of-sight) and are used for point-to-point communication.
- Applications: Satellite communication, terrestrial microwave links (e.g., between cell towers), radar, Wi-Fi (higher bands).
- Characteristics: High bandwidth, susceptible to atmospheric conditions (rain fade).
Infrared (IR)
Electromagnetic waves with frequencies higher than microwaves but lower than visible light. They are used for short-range communication and cannot penetrate solid objects.
- Applications: TV remote controls, short-range wireless communication between devices (e.g., older PDAs, some mobile phones).
Fiber Optic Cable > Coaxial Cable > Twisted-Pair Cable (UTP/STP) > Wireless (Microwaves > Radio Waves > Infrared)
Note: Specific performance varies greatly with technology, category, and implementation.
Error Handling Mechanisms
Errors can occur during data transmission due to noise, interference, distortion, or attenuation. Error handling mechanisms are essential to detect and, if possible, correct these errors to ensure data integrity.
Error Detection
These techniques add redundant bits to the data to allow the receiver to check if the data has been corrupted.
Parity Check
A single parity bit is added to a block of data. The parity bit is set so that the total number of '1's in the block (including the parity bit) is either even (even parity) or odd (odd parity).
- Even Parity: The number of 1s is even.
- Odd Parity: The number of 1s is odd.
- Limitation: Can detect only single-bit errors. If two bits are flipped, the parity remains correct, leading to undetected errors.
Checksum
The sender treats the data as a sequence of binary numbers, sums them up, and transmits the sum (or a part of it, like the one's complement) as the checksum. The receiver performs the same calculation and compares the result with the received checksum.
- Process: Data is divided into fixed-size blocks. These blocks are added together using one's complement arithmetic. The result is the checksum.
- Detection Capability: Better than simple parity, can detect some multi-bit errors, but not all.
Cyclic Redundancy Check (CRC)
A more powerful error detection technique based on polynomial division. The sender appends a fixed number of CRC bits (calculated by dividing the data block by a generator polynomial) to the data. The receiver performs the same division. If the remainder is zero, the data is assumed to be error-free.
- Process: Data is treated as a polynomial. It's divided by a pre-defined generator polynomial (also a polynomial). The remainder is the CRC code, which is appended to the data.
- Detection Capability: Highly effective at detecting common errors like burst errors (multiple consecutive bit errors). Different CRC standards (e.g., CRC-12, CRC-16, CRC-32) offer different levels of protection.
- Example: CRC-32 is widely used in Ethernet and Wi-Fi.
Error Correction
These techniques not only detect errors but also attempt to correct them at the receiver without requiring retransmission. This is crucial for applications where retransmission is not feasible or too slow (e.g., satellite communication, storage media).
Hamming Codes
Hamming codes are a type of linear error-correcting code. They add redundant parity bits in specific positions within the data word. The receiver recalculates these parity bits. By examining which parity checks fail, the receiver can pinpoint the exact location of a single-bit error and flip it to correct the data.
- Capability: Can detect up to two-bit errors and correct single-bit errors.
- How it works: Parity bits are placed at positions that are powers of 2 (1, 2, 4, 8, ...). Each parity bit checks a specific combination of data bits.
Interleaving
Interleaving is a technique where data bits are rearranged before transmission and then rearranged back at the receiver. This is particularly effective against burst errors. By spreading out the bits of a single data block across multiple transmitted blocks, a burst error that corrupts a few consecutive bits in the transmission stream will only affect a single bit in many different data blocks at the receiver, making it easier for single-bit error correction codes to handle.
Forward Error Correction (FEC)
A broader category that includes techniques like Hamming codes, Reed-Solomon codes, and convolutional codes. FEC adds sufficient redundancy to the data so that the receiver can not only detect errors but also correct them, even without retransmission.
- Trade-off: Requires more overhead (more redundant bits) than simple error detection.
- Applications: Satellite communication, deep space probes, digital TV broadcasting, storage devices (CDs, DVDs).
| Technique | Type | Capability | Primary Use |
|---|---|---|---|
| Parity Check | Detection | Single-bit errors | Simple error detection |
| Checksum | Detection | Some multi-bit errors | Basic error detection |
| CRC | Detection | Burst errors, most common errors | Network data integrity (Ethernet, Wi-Fi) |
| Hamming Code | Correction | Correct single-bit errors, detect two-bit errors | Memory systems, some communication links |
| FEC (e.g., Reed-Solomon) | Correction | Multiple-bit errors, burst errors | Broadcasting, storage, satellite comms |