Modems in Data Communication
Modems in Data Communication
The digital signal ’01’ is sent. The carrier is reduced to 2/3 full
strength to encode a 1 bit and 1/3 strength to encode a 0 bit.
Baud Rate vs. Bit Rate
• Transmission speed can be measured in bits per second(bps).
• Technically, transmission is rated in baud, the number of
changes in the signal per second that the hardware generates.
• Baud rate determines the band width required to send the
signal.
• Baud rate = __________Bit rate_____
No. of Bits/Signal units
= Signal units/sec
• Bit rate = n * Baud rate, Where n is the number of signals in a string
• Baud rate < = Bit rate.
• Using RS-232 standard to communicate, bit rate = baud rate.
Modulation Techniques
• Amplitude shift keying (ASK)
• Frequency shift keying (FSK)
• Phase shift keying (PSK)
Amplitude Shift Keying
• The amplitude (or height) of the sine wave varies to transmit the ones
and zeros
• Major disadvantage is that telephone lines are very susceptible to
variations in transmission quality that can affect amplitude
(Susceptible to sudden gain changes)
• Inefficient
Example of ASK
Bit Values Amplitude
00 A1
01 A2
10 A3
11 A4
Amplitude Shifting Keying (four amplitudes),
two bits per baud
Amplitude Modulation
12
Phase Shift Keying
• Nyquist Theorem suggests that the number of bits sent per cycle can be increased
if the encoding scheme permits multiple bits to be encoded in a single cycle of the
carrier.
• ASK and FSK work well but require at least one cycle of a carrier wave to send a
single bit.
• PSK changes the timing of the carrier wave abruptly to encode data. Such change
is called a phase shift.
• Frequency and amplitude of the carrier signal are kept constant
• The carrier signal is shifted in phase according to the input data stream
• Each phase can have a constant value, or value can be based on whether or not
phase changes (differential keying)
Phase Modulation
15
Differential Phase Shift Keying
(DPSK)
0 1 1 0
16
Frequency Shift Keying (FSK)
18
Frequency Shift Keying
QAM
• Any of the simple techniques can be used with any number of
different signals.
• More signals means a greater bit rate with a given baud rate.
• The problem is that a higher bit rate requires more signals and
reduces the differences among them and makes the receiver’s job
more difficult.
• Another approach is to use a combination of frequencies,
amplitudes, or phase shifts, which allows us to use a larger group
of legitimate signals while maintaining larger differences among
them.(ASK+PSK)
• One technique is Quadrature Amplitude Modulation (QAM), in
which a group of bits is assigned a signal defined by its amplitude
and phase shift.
Performance of Digital to Analog Modulation
Schemes
• Bandwidth
– ASK and PSK bandwidth directly related to bit rate
– FSK bandwidth related to data rate for lower frequencies,
but to offset of modulated frequency from carrier at high
frequencies
• In the presence of noise, bit error rate of PSK and QPSK are
about 3dB superior to ASK and FSK
Analog-to-Digital Conversion
• Usually, A modem examines the incoming signals for
amplitude, frequencies, and phase shifts and generates digital
signals. This works for signals having constant characteristics.
• What about analog signals whose characteristics change
continually such as a voice signal?
Pulse Code Modulation
• One way of making the signal truly digital is to assign
amplitudes from a predefined set to the sample signals.
• This process is called PCM.
Accuracy of PCM
The pulse amplitude is divided into eight values or 23 values.
1. The sampling frequency
2. The number of amplitudes chosen: in Fig 2.47, the
resulted signal becomes distorted.
Modem
30
Illustration of Dial-up Modem
Asynchronous (diagram)
Asynchronous
• Data transmitted on character at a time (5 to 8 bits)
• Timing only needs maintaining within each character. The internal
timing pulses are synchronized repeatedly to leading age of start pulse.
• Resync with each character
• Asynchronous modems can handle data bytes with start and stop bits.
• In a steady stream, interval between characters is uniform (length of
stop element)
• In idle state, receiver looks for transition 1 to 0
• Then samples next seven intervals (char length)
• Then looks for next 1 to 0 for next char
• Simple
• Cheap
• Good for data with large gaps (keyboard)
Synchronous - Bit Level
• Block of data transmitted without start or stop bits
• Clocks must be synchronized
• Can use separate clock line
– Good over short distances
– Subject to impairments
• Embeded clock signal in data
• Need to indicate start and end of block
• Use preamble and post amble
– e.g. series of SYN (hex 16) characters
– e.g. block of 11111111 patterns ending in 11111110
• More efficient (lower overhead) than async
Traditional Configurations
Point-to-point configuration
37
Multipoint configuration
39
Serial Port Speed Buffering
• DTE port speed is fixed (115200 bps)
• DCE link speed is fixed (33600 bps)
• Data compression ratio is variable
• Flow control is required
• All modem applications must use hardware flow
control (RTS/CTS)
40
Digital interface
• front panel lights
• HS high speed (>2400 bps)
• AA auto answer on
• CD carrier detected
• OH off hook
• SD/RD sending/receiving data
• TR terminal ready
• MR modem ready
• RS request to send
• CS clear to send
• SYN synchronous mode
• ARQ data mode under error correction (MNP, V.42)
41
Mechanical Specification
Local and Remote Loopback
Test loops
• 1 Digital loop back : this loop is set up as close as possible to digital interface.
• 2.Remote Digital Loop Back : This loop check line and remote modem. It can be
used only in full duplex modem
• 3.local analogue loop back: the modulated carrier at the transmitter O/P of local
modem is looped backed to receiver I/P. The loopback may require some attenuator to adjust the
level.
• 4. remote analogue loop back: This is applicable for 4 wire connections only.The
two pair at distant end are disconnected from the modem and connected to each other
• 5.local digital loop back and loop forward: Local digital loop back is
provided for local modem and remote digital loopback is provided for remote modem.
• 6.local analogue loop back and loop forward: Local analogue loop back is
provided for local modem and remote analogue loopback is provided for remote modem.