Skip to content
Sahithyan's S3
1
Sahithyan's S3 — Data Communication and Networking

Encoding & Decoding

Encoding is the process of taking a signal and converting it into a form that can be transmitted over a communication medium.

Data can either be analog or digital. Signals can either be analog or digital. Encoding must be done between the 2 types, thus 4 variations. For this module, digital data to digital signals is focused most.

One logic state represented by positive voltage and other by negative voltage.

All signal elements have the same sign.

Aka. duration of a bit. Time taken for transmitter to emit a bit. Larger the bit length, lesser the data rate but convenient for the devices. If the bit length is too short, it might be difficult for the receiver to detect the signal elements accurately.

For digital signals: entire medium carries only one data signal at a time. Example: ethernet.

For analog signals: original frequency range of an analog signal before it is modulated.

Any type of signal transmission technique that carries two or more different data in separate channels.

Data is represented in voltage levels. Less reliable due to noise and interference.

Data is represented by changes rather than levels. More reliable detection. More complicated than level encoding.

Examples:

A return-to-zero type encoding. 2 non-zero levels and zero level are used. Standard bipolar encodings are designed to be DC-balanced.

Examples:

A violation of the bipolar encoding. Where 2 pulses of the same polarity occur without an intervening pulse of the opposite polarity. Indicates an error in transmission.

Uses transitions to represent bits. Combines clock and data. Fixes synchronization issues due to prolonged constant voltages.

Pros:

  • Self-clocking
  • No DC component
  • Error detection using absent mandatory transition

Cons:

  • At least 1 transition per bit (possibly 2)
  • Requires more bandwidth
  • Maximum modulation is 2 times of NRZ

Examples: