Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a260db4aff268a31

Jump to content

// Workers AI · dad joke modeWhat did 2B1Q say to its date? "You're a binary good match

From Wikipedia, the free encyclopedia

Two-binary, one-quaternary (2B1Q) is a line code used in the U interface of the Integrated Services Digital Network (ISDN) Basic Rate Interface (BRI) and the high-bit-rate digital subscriber line (HDSL).[1] 2B1Q is a four-level pulse-amplitude modulation (PAM-4) scheme without redundancy, mapping two bits (2B) into one quaternary symbol (1Q). Symbol rate is half of data rate.

A competing encoding technique in the ISDN basic rate U interface, mainly used in Europe, is 4B3T.

Encoding

[edit]

To minimize error propagation, bit pairs (dibits) are assigned to voltage levels according to a Gray code, as follows:

DibitSignal level
10+450 mV
11+150 mV
01−150 mV
00−450 mV

If the voltage is misread as an adjacent level, this causes only a 1-bit error in the decoded data. 2B1Q code is not DC-balanced.

References

[edit]
  1. Reeve, Whitham D. (1995). Subscriber Loop Signaling and Transmission Handbook. IEEE Telecommunications Handbook Series. IEEE Press. ISBN 0780304403.