Unit IV
Unit IV
Unit IV
• Two types:
• Single-bit error
• Burst error
Single bit error
2. Retransmission:
A technique in which the receiver detects the occurrence
of an error and asks the sender to resend the message.
Note: Use FEC if the number of errors is small.
Modular Arithmetic
• In modular arithmetic, we use only a limited range of integers.
We define an upper limit, called a modulus N. We then use
only the integers 0 to N - 1.
• For example, if the modulus is 12, we use only the integers 0 to
11.
• In a modulo-N system, if a number is greater than N, it is
divided by N and the remainder is the result.
• Addition and subtraction in modulo arithmetic are simple.
There is no carry when you add two digits in a column. There
is no carry when you subtract one digit from another in a
column
Modulo-2 Arithmetic
• In this arithmetic, the modulus N is 2. We can use only 0
and 1. The following shows how we can add or subtract 2
bits.
• For example, we can call our first coding scheme C(3, 2) with
dmin =2 and our second coding scheme C(5, 2) with dmin = 3.
Hamming Distance and Error
• When a codeword is corrupted during transmission, the
Hamming distance between the sent and received codewords
is the number of bits affected by the error.
• For example, if the codeword 00000 is sent and 01101 is
received, 3 bits are in error and the Hamming distance
between the two is d(00000, 01101) =3.
Note
To guarantee the detection of up to s errors in all cases, the
minimum Hamming distance in a blockcode must be dmin = s + 1.
Linear Block Codes
• A linear block code is a code in which the exclusive OR (addition
modulo-2) of two valid codewords creates another valid
codeword.
• The minimum Hamming distance for a linear block code is the
number of 1’s in the nonzero valid codeword with the smallest
number of 1’s.
• There are mainly 4 types of linear block codes
• Simple Parity Check Code
• Hamming Code
• Cyclic Code
Simple Parity Check Code
• The most familiar error-detecting code is the simple parity-
check code.
• In this code, a k-bit dataword is changed to an n-bit
codeword where n = k + 1.
• The extra bit, called the parity bit, is selected to make the
total number of 1’s in the codeword even.
• Suppose our data is a list of five 4-bit numbers that we want to send to
a destination. In addition to sending these numbers, we send the sum
of the numbers.
• For example, if the set of numbers is (7, 11, 12, 0, 6), we send (7, 11, 12,
0, 6, 36), where 36 is the sum of the original numbers. The receiver
adds the five numbers and compares the result with the sum. If the two
are the same, the receiver assumes no error, accepts the five numbers,
and discards the sum. Otherwise, there is an error somewhere and the
data are not accepted.
• We can make the job of the receiver easier if we send the
negative (complement) of the sum, called the checksum. In
this case, we send (7, 11, 12, 0, 6, −36).
• The receiver can add all the numbers received (including the
Checksum). If the result is 0, it assumes no error; otherwise,
there is an error.
• The sender initializes the checksum to 0 and adds all data
items and the checksum.
• The result is 36. However, 36 cannot be expressed in 4 bits.
• The extra two bits are wrapped and added with the sum to
create the wrapped sum value 6.
• The sum is then complemented, resulting in the checksum
value 9 (15 − 6 = 9).
• The sender now sends six data items to the receiver
including the checksum 9.
Sender site:
1. The message is divided into 16-bit words.
2. The value of the checksum word is set to 0.
3. All words including the checksum are added using one’s
complement addition.
4. The sum is complemented and becomes the checksum.
5. The checksum is sent with the data.
Receiver site:
1. The message (including checksum) is divided into 16-bit words.
2. All words are added using one’s complement addition.
3. The sum is complemented and becomes the new checksum.
4. If the value of checksum is 0, the message is accepted; otherwise, it
is rejected.
Data Communication Equipment
• Digital service units (DSUs) and channel service units (CSUs)
are customer premise equipment (CPE) used to terminate a
digital circuit at a subscriber’s location and allow the
subscriber to connect to a local central telephone office.
Digital Service Unit (DSU)
• At the transmit end, a digital service unit (DSU) converts unipolar digital
signals from a local area network’s digital terminal equipment into self
clocking bipolar digital signals that are capable of being transmitted more
efficiently over a telecommunications line.
• At the receive end, a DSU removes any special codes inserted by the
transmitting DSU and converts the bipolar digital signals back to unipolar.
• A DSU may also provide timing (clock) recovery, control signaling, and
synchronous sampling.
Channel Service Unit (CSU)
• A channel service unit (CSU) serves as the demarcation point between
the digital Station equipment and the telecommunications line.
• A CSU physically terminates the telecommunications line, performs
signal regeneration and reshaping, performs zero substitution, and
converts digital signals to a format more suitable for transmission
over the digital transmission facility.
• CSUs may also perform other functions, such as channel multiplexing
and line conditioning (equalization); execute certain carrier-controlled
tests, such as local and remote loop backs; and provide performance
measurement capabilities and statistical compilations.
Voice-band Data Communication Modems
• The most common type of data communications equipment (DCE) is the data
communications modem.
• The word modem is a contraction derived from the words modulator and
demodulator.
Demodulator circuit
• This receives modulated signals from the band pass filter and
equalizer circuit and converts the digitally modulated analog
signals to digital signals. The output from the demodulator is
directed to the serial interface circuit, where it is passed on
to the serial interface.
Voice-band Modem Classification
• Generally classified as Synchronous or Asynchronous and use one of the
following digital modulation schemes:
• Amplitude Shift Keying (ASK)
• Frequency Shift Keying (FSK)
• Phase Shift Keying (PSK)
• Quadrature Amplitude Modulation (QAM)