HDB3 and B8ZS
High density bipolar 3, scrambling techniques.
HDB3 and B8ZS are zero substitution techniques developed to overcome the fundamental synchronization problem of AMI line coding when long sequences of binary zeros are present. Both schemes replace consecutive zero sequences with special patterns that include deliberate AMI rule violations, thereby forcing signal transitions even in zero-heavy data streams. These techniques are critical for practical operation of T1, E1, and ISDN transmission systems, and are examined in GATE under the topic of baseband line coding.
The Problem That HDB3 and B8ZS Solve
AMI line coding represents binary 0 as 0V. A long string of zeros in the data therefore produces a flat zero-voltage signal with no transitions. Without transitions, the receiver's clock recovery circuit (typically a phase-locked loop) loses synchronization because it has no signal edges to lock onto. In T1 systems, the specification typically allows a maximum of 15 consecutive zeros before sync is lost. In practice, clock recovery circuits require transitions at minimum every 8 to 16 bit periods depending on the PLL design.
Both HDB3 and B8ZS solve this by monitoring the transmitted data stream and replacing predefined zero sequences with special coded patterns. These patterns include pulses that are deliberate AMI rule violations (same polarity as the previous pulse), called V pulses (violation pulses). When the receiver detects a V pulse, it knows the preceding pattern was a substituted zero sequence and reconstructs the original zeros. The data is perfectly recovered at the receiver, and the substituted pattern only exists on the transmission medium.
HDB3: High Density Bipolar Order 3
HDB3 replaces every sequence of four consecutive zeros with one of two special four-bit patterns, depending on the polarity context. The rule exists to ensure the overall DC balance (zero DC component) is maintained even after substitution.
The decision rule for HDB3 substitution is: count the number of 1 bits (marks) that have occurred since the last substitution. If that count is odd, replace the four zeros with 000V (three zeros followed by a violation pulse). If the count is even, replace with B00V (a balancing pulse, two zeros, then a violation pulse). The balancing pulse B has the polarity that follows AMI rules (opposite to the previous 1), while V has the same polarity as B in this case (violating AMI). The B pulse is included when needed to keep the count of positive and negative pulses equal, maintaining zero DC.
The key identifier at the receiver is the V pulse (violation). The receiver detects a V pulse by checking whether the received non-zero pulse has the same polarity as the previous non-zero pulse. If yes, it is a violation and the four-bit block containing it is the substituted pattern, which is replaced with four zeros. A B pulse is also detectable because it appears in a specific position relative to V.
B8ZS: Bipolar with 8-Zero Substitution
B8ZS replaces every sequence of eight consecutive zeros with a fixed eight-bit pattern that contains two deliberate AMI violations. The exact pattern depends on the polarity of the last transmitted non-zero pulse. If the last pulse was positive (+1), the eight zeros are replaced with: 0 0 0 + 0 - + -. If the last pulse was negative (-1), the pattern is: 0 0 0 - 0 + - +. In both cases, positions 4 and 7 of the substituted pattern contain AMI violations.
The receiver identifies a B8ZS substitution by detecting two consecutive violations within an eight-bit window. Upon detection, it replaces the eight-symbol pattern with eight zeros. The B8ZS pattern is fixed and does not depend on counting 1s since the last substitution, which makes the encoding algorithm simpler than HDB3. B8ZS is used in T1 carrier systems in North America, standardized by ANSI T1.102, while HDB3 is used in European E1 carrier systems standardized by ITU-T G.703.
Mathematical and Spectral Properties
Both HDB3 and B8ZS inherit the spectral properties of AMI: the bandwidth equals R_b and the DC component remains zero. The substitution patterns are designed specifically to preserve DC balance. In HDB3, the B pulse ensures that the total number of positive and negative non-zero pulses remains equal. In B8ZS, the fixed pattern containing pairs of violations (+V and -V) naturally cancels out in terms of DC contribution.
The maximum run of zeros before substitution is 3 bits in HDB3 (since substitution happens after 4 zeros, and the V pulse in the 000V pattern breaks the run at the 4th position) and 7 bits in B8ZS (since substitution happens after 8 zeros, with the first violation at position 4). Both schemes guarantee transitions frequent enough for practical PLL-based clock recovery.
Numerical Example
Encoding a data sequence using HDB3 requires tracking the polarity of the last AMI pulse and counting marks since the last substitution. The V pulse violates AMI and the B pulse follows AMI polarity rule. Understanding how to manually encode a sequence using these rules is a key GATE skill.
Given:
Data sequence: 1 0 0 0 0 1 1
Last pulse before sequence: assumed positive (+)
Encoding scheme: HDB3
Why this formula applies:
HDB3 replaces every 4 consecutive zeros with 000V or B00V.
If marks since last substitution = odd → 000V
If marks since last substitution = even → B00V
Step-by-step encoding:
Bit 1: transmit -1 (AMI: alternates from last +)
Bits 2-5: four consecutive zeros detected
Marks since last substitution = 1 (ODD)
Use 000V pattern
V must have same polarity as last pulse = -1 polarity
Pattern: 0, 0, 0, -V
Bit 6: transmit +1 (AMI continues)
Bit 7: transmit -1
Final Answer:
HDB3 output: -1, 0, 0, 0, -V, +1, -1
Receiver detects -V after previous -1 = VIOLATION = substituted 4 zeros
Data recovered: 1, 0, 0, 0, 0, 1, 1 (original sequence)Exam Tip: HDB3 is used in E1 (Europe, 2.048 Mbps) and B8ZS is used in T1 (North America, 1.544 Mbps). HDB3 replaces 4 zeros, B8ZS replaces 8 zeros. In GATE, the most common question type is: identify the substitution pattern or decode the received sequence. Always check polarity of last non-zero pulse first before applying HDB3 rules.
HDB3 and B8ZS Mechanism Summary
- AMI problem: long zero strings produce no transitions, causing clock recovery failure. HDB3 and B8ZS are solutions.
- HDB3: replaces every group of 4 zeros with 000V (if odd marks since last substitution) or B00V (if even marks). Used in E1 systems.
- B8ZS: replaces every group of 8 zeros with a fixed pattern containing 2 AMI violations at positions 4 and 7. Used in T1 systems.
- V pulse = AMI violation (same polarity as previous non-zero pulse). B pulse = balancing pulse (follows AMI polarity rules).
- Both preserve zero DC component. Bandwidth remains equal to R_b (same as AMI and NRZ).
- Maximum consecutive zeros on the line: 3 for HDB3, 7 for B8ZS. Both are well within PLL clock recovery tolerance.
- Receiver decodes substitution by detecting violation patterns and replacing them with the original zeros. No overhead bits are added.
Quick Revision
- HDB3 replaces 4 consecutive zeros. B8ZS replaces 8 consecutive zeros with coded patterns to ensure transitions.
- HDB3 rule: Odd marks since last sub = 000V. Even marks since last sub = B00V.
- B8ZS pattern: 000+0-+- (if last pulse was +) or 000-0+-+ (if last pulse was -). Positions 4 and 7 are violations.
- V pulse violates AMI. B pulse follows AMI but is needed for DC balance in HDB3 even-case.
- HDB3 used in E1 (2.048 Mbps, Europe). B8ZS used in T1 (1.544 Mbps, North America).
- Bandwidth = R_b. DC component = 0. All AMI spectral properties are preserved.
- Exam trap: In HDB3, the B00V pattern has B at position 1 (not position 4). V is always at the last position of the substitution block.
HDB3 and B8ZS Quiz
Test your knowledge of HDB3 and B8ZS zero-suppression scrambling techniques for AMI-based systems.
Q1.HDB3 (High Density Bipolar 3) substitution replaces a sequence of four consecutive zeros with a code word that contains a deliberate bipolar violation. What is the purpose of this violation?
Related Articles
Scrambling Techniques
Ensuring transition density for clock recovery.
4 min read
Baseband Transmission Basics
Digital signals over low-pass channels, limitations.
4 min read
Equalization Basics
Zero forcing, MMSE equalizers, adaptive equalization overview.
5 min read
Matched Filter
Maximizes SNR at sampling instant, impulse response h(t) = s(T-t).
7 min read
Correlative Coding
Duobinary signaling, controlled ISI.
11 min read