0
\$\begingroup\$

One of the disadvantages of some line codes like NRZ-L or RZ is that if a sudden change in polarity occurs, then all received bits will be erroneous (flipped).

  • How can such a sudden change in polarity occur in practice?
  • And is it really a problem?
\$\endgroup\$
9
  • \$\begingroup\$ U are thinking of NRZ-I and this was invented by IBM in 1956 for mag tapes and is obsolete. \$\endgroup\$ Commented Jun 21, 2019 at 7:01
  • \$\begingroup\$ Thanks. Are you implying that polarity inversion is not a problem anymore? I know NRZ-I, and I gave NRZ-L as an example of a line code that is affected by polarity inversion. I am asking about the inversion itself and how it may happen. So are you saying that it is not an issue anymore? \$\endgroup\$ Commented Jun 21, 2019 at 7:05
  • \$\begingroup\$ I was saying glitches inverting polarity only occurs in NRZ-I while -L is simply binary code and that -I is obsolete \$\endgroup\$ Commented Jun 21, 2019 at 7:06
  • \$\begingroup\$ I wouldn't say NRZ-I is obsolete, at all. Isn't it in use, for example, by USB? \$\endgroup\$ Commented Jun 21, 2019 at 7:08
  • \$\begingroup\$ Regardless if they are obsolete or not. My understanding is that NRZ-I almost solves the problem because only one bit will be erroneous unlike NRZ-L. \$\endgroup\$ Commented Jun 21, 2019 at 7:10

1 Answer 1

1
\$\begingroup\$

how can such a sudden change in polarity occur in practice?

In a wireless/bandpass channel, that'd be a 180° phase shift.

I've never seen that occur anywhere on a wired (baseband signaling) link that you'd use NRZ-whatever on, and aside from "blatant bugs in the hardware design", I wouldn't see how this would occur in practice.

and is it really a problem?

Not that I can think of, no.

Even if we came up with a model where we get polarity reversals, they'd be "worst case" errors (our whole line code being designed the fact that the two levels are as strongly not the other as possible, you'd need the maximum physical error to achieve that) – and hence rare (otherwise our line code choice would have been bad, and we should have used a physical layer that is robust against these).

Rare errors on links are typically countered either by checksums and re-requesting broken frames, or by forward error correction. Of the latter, you can definitely devise a scheme that converts a continuous bit flip starting at specific position to a single bit error, which might be well-recoverable with the given code. However, this would have little to do with the line coding.

\$\endgroup\$
1
  • \$\begingroup\$ Comments are not for extended discussion; this conversation has been moved to chat. Any conclusions reached should be edited back into the question and/or any answer(s). \$\endgroup\$ Commented Jun 21, 2019 at 23:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.