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: a225711a989acdd8

Jump to content

4B3T

From Wikipedia, the free encyclopedia
(Redirected from MMS43)

4B3T, which stands for 4 (four) binary 3 (three) ternary, is a line encoding scheme used for ISDN PRI interface. 4B3T represents four binary bits using three pulses.

Description

[edit]

It uses three output levels:

  • + (positive pulse),
  • 0 (no pulse), and
  • − (negative pulse).

This means we have 24 = 16 input combinations to represent, using 33 = 27 output combinations. 000 is not used to avoid long periods without a transition. 4B3T uses a paired disparity code to achieve an overall zero DC bias: six triplets are used which have no DC component (0+−, 0−+, +0−, −0+, +−0, −+0), and the remaining 20 are grouped into 10 pairs with differing disparity (e.g. ++− and −−+). When transmitting, the DC bias is tracked and a combination chosen that has a DC component of the opposite sign to the running total.

This mapping from 4 bits to three ternary states is given in a table known as Modified Monitoring State 43 (MMS43). A competing encoding technique, used for the ISDN basic rate interface where 4B3T is not used, is 2B1Q.

The sync sequence used is the 11-symbol Barker code, +++−−−+−−+− or its reverse, −+−−+−−−+++.

Encoding table

[edit]

Each 4-bit input group is encoded as a 3-symbol group (transmitted left to right) from the following table. Encoding requires keeping track of the accumulated DC offset, the number of + pulses minus the number of − pulses in all preceding groups. The starting value is arbitrary; here we use the values 1 through 4, although −1.5, −0.5, +0.5 and +1.5 is another possibility.

MMS 43 coding table[1]
InputAccumulated DC offset
Hex Binary 1234
0 0000 + 0 +   (+2)0−0 (−1)
1 0001 0 − +   (+0)
2 0010 + − 0   (+0)
3 0011 0 0 +   (+1)− − 0   (−2)
4 0100 − + 0   (+0)
5 0101 0 + +   (+2)− 0 0   (−1)
6 0110 − + +   (+1)− − +   (−1)
7 0111 − 0 +   (+0)
8 1000 + 0 0   (+1)0 − −   (−2)
9 1001 + − +   (+1)− − −   (−3)
A 1010 + + −   (+1)+ − −   (−1)
B 1011 + 0 −   (+0)
C 1100 + + +   (+3)− + −   (−1)
D 1101 0 + 0   (+1)− 0 −   (−2)
E 1110 0 + −   (+0)
F 1111 + + 0   (+2)0 0 −   (−1)

This code forces a transition after at most five consecutive identical non-zero symbols, or four consecutive zero symbols.

Decoding table

[edit]

Decoding is simpler, as the decoder does not need to keep track of the encoder state, although doing so allows greater error detection. The 000 triplet is not a legal encoded sequence, but is typically decoded as binary 0000.

TernaryBinary Hex TernaryBinaryHex TernaryBinaryHex
0 0 0N/a − 0 001015 + − −1010A
+ 0 +00000 − + +01106 + 0 −1011B
0 − 000000 − − +01106 + + +1100C
0 − +00011 − 0 +01117 − + −1100C
+ − 000102 + 0 010008 0 + 01101D
0 0 +00113 0 − −10008 − 0 −1101D
− − 000113 + − +10019 0 + −1110E
− + 001004 − − −10019 + + 01111F
0 + +01015 + + −1010A 0 0 −1111F

8B/6T

[edit]

A similar paired-disparity code was used in the short-lived 100BASE-T4 Fast Ethernet standard. This achieved the same ratio of 4/3 bits per baud while needing to keep track of only two levels of accumulated DC offset by using a larger 256-entry coding table. 6 ternary symbols allow 140 balanced codes (30 permutations of +0000−, 90 permutations of ++00−−, and 20 permutations of +++−−−), and 126 codes with disparity +1 (6 permutations of +00000, 60 permutations of ++000−, and 60 permutations of +++0−−). The codes with disparity +1 are inverted whenever the running disparity is high. From the total of 266 code words, 256 are used as follows:

8B/6T coding table[2]
8B6T 8B6T 8B6T 8B6T 8B6T 8B6T 8B6T 8B6T
00+−00+− 2000−++− 40+0+00− 600−0++0 80+−+00− A00−0++− C0+−+0+− E0+−0++−
010+−+−0 21−−+00+ 41++00−0 6100−+0+ 81++−0−0 A100−+−+ C1++−+−0 E10+−+−+
02+−0+−0 22++−0+− 42+0+0−0 620−0+0+ 82+−+0−0 A20−0+−+ C2+−++−0 E2+−0+−+
03−0++−0 23++−0−+ 430++0−0 63−00+0+ 83−++0−0 A3−00+−+ C3−+++−0 E3−0++−+
04−0+0+− 2400+0−+ 440++00− 64−00++0 84−++00− A4−00++− C4−++0+− E4−0+++−
050+−−0+ 2500+0+− 45++0−00 6500−0++ 85++−−00 A500−−++ C5++−−0+ E50+−−++
06+−0−0+ 2600−00+ 46+0+−00 660−00++ 86+−+−00 A60−0−++ C6+−+−0+ E6+−0−++
07−0+−0+ 27−−+++− 470++−00 67−000++ 87−++−00 A7−00−++ C7−++−0+ E7−0+−++
08−+00+− 28−0−++0 48000+00 68−+−++0 880+000− A8−+−++− C80+00+− E8−+0++−
090−++−0 29−−0+0+ 49000−++ 69−−++0+ 8900+0−0 A9−−++−+ C900++−0 E90−++−+
0A−+0+−0 2A−0−+0+ 4A000+−+ 6A−+−+0+ 8A0+00−0 AA−+−+−+ CA0+0+−0 EA−+0+−+
0B+0−+−0 2B0−−+0+ 4B000++− 6B+−−+0+ 8B+000−0 AB+−−+−+ CB+00+−0 EB+0−+−+
0C+0−0+− 2C0−−++0 4C000−+0 6C+−−++0 8C+0000− AC+−−++− CC+000+− EC+0−++−
0D0−+−0+ 2D−−00++ 4D000−0+ 6D−−+0++ 8D00+−00 AD−−+−++ CD00+−0+ ED0−+−++
0E−+0−0+ 2E−0−0++ 4E000+−0 6E−+−0++ 8E0+0−00 AE−+−−++ CE0+0−0+ EE−+0−++
0F+0−−0+ 2F0−−0++ 4F000+0− 6F+−−0++ 8F+00−00 AF+−−−++ CF+00−0+ EF+0−−++
10+0+−−0 30+−00−+ 50+0+−−+ 70−++000 90+−+−−+ B00−000+ D0+−+0−+ F0+−000+
11++0−0− 310+−−+0 51++0−+− 71+−+000 91++−−+− B100−0+0 D1++−−+0 F10+−0+0
12+0+−0− 32+−0−+0 52+0+−+− 72++−000 92+−+−+− B20−00+0 D2+−+−+0 F2+−00+0
130++−0− 33−0+−+0 530++−+− 7300+000 93−++−+− B3−000+0 D3−++−+0 F3−0+0+0
140++−−0 34−0+0−+ 540++−−+ 74−0+000 94−++−−+ B4−0000+ D4−++0−+ F4−0+00+
15++00−− 350+−+0− 55++0+−− 750−+000 95++−+−− B500−+00 D5++−+0− F50+−+00
16+0+0−− 36+−0+0− 56+0++−− 76+0−000 96+−++−− B60−0+00 D6+−++0− F6+−0+00
170++0−− 37−0++0− 570+++−− 770+−000 97−+++−− B7−00+00 D7−+++0− F7−0++00
180+−0+− 38−+00−+ 58+++0−− 780−−+++ 980+0−−+ B8−+−00+ D80+00−+ F8−+000+
190+−0−+ 390−+−+0 59+++−0− 79−0−+++ 9900+−+− B9−−+0+0 D900+−+0 F90−+0+0
1A0+−++− 3A−+0−+0 5A+++−−0 7A−−0+++ 9A0+0−+− BA−+−0+0 DA0+0−+0 FA−+00+0
1B0+−00+ 3B+0−−+0 5B++0−−0 7B−−0++0 9B+00−+− BB+−−0+0 DB+00−+0 FB+0−0+0
1C0−+00+ 3C+0−0−+ 5C++0−−+ 7C++−00− 9C+00−−+ BC+−−00+ DC+000−+ FC+0−00+
1D0−+++− 3D0−++0− 5D++000− 7D00+00− 9D00++−− BD−−++00 DD00++0− FD0−++00
1E0−+0−+ 3E−+0+0− 5E−−+++0 7E++−−−+ 9E0+0+−− BE−+−+00 DE0+0+0− FE−+0+00
1F0−+0+− 3F+0−+0− 5F00−++0 7F00+−−+ 9F+00+−− BF+−−+00 DF+00+0− FF+0−+00
Unused N/a+++−−− N/a+−0000 N/a−+0000 N/a+00000 N/a0+0000
N/a−−−+++ N/a0000−+ N/a0000+− N/a00000+ N/a0000+0

See also

[edit]

Other line codes that have 3 states:

References

[edit]
  1. "Wired Communications T-SMINTO 4B3T Second Gen. Modular ISDN NT (Ordinary)" (PDF) (Data sheet). Version 1.1. Infineon. November 2001. PEF 80902.
  2. Feit, Sidnie (June 19, 2000). "Appendix B.2: 8B/6T Tables". Local Area High Speed Networks. New Riders Publishing. ISBN 1-57870-113-9.