How Modems work

Index

Why do we need a modem to communiate over telephone lines?
How do these modems work? (up to 33.6Kbps)
Standard Modem protocols.
Data Compression.
Error correction.
File transfer protocols (FTP).
Modem visual indicators (siganl LEDs).
How do 56Kbps modems work?
E-mail and home page links.

Why do we need a modem to communicate with other PCs over phone lines?
The computer operates, and therefore communicates digitally, using on and off electrical pulses, representing the digits 1 and 0 (binary). The normal telephone lines are analogue and can not carry these digital signals unless there is some form of convertion into analogue. The modem (MODulator/ DEMmodulator) converts these digital signals into an analogue signal which can be carried over the standard telephone lines.

Modem example
Back to the index

How do these modems work?
The telephone systems have been specifically designed to carry human speech, and so therefore has a limited bandwidth. The exchange operates in the 300Hz - 3000Hz frequencies range, which is the range of human speech. This limits the speed at which any digital signal can be transmitted over the telephone wires. The first Modems (e.g. 300 baud) used FSK (Fequency shift keying), where two different frequency tones were used to represent each bit. A high frequency and a lower frequency within the 300Hz - 3KHz range representing a 1 and 0. However, this greatly limited the maximum speed anyone would achieve over the existing telephone systems. Two frequency pairs had to be used, one for transmit and one to receive. Example:
Bit 1 0
Transmit 1270 Hz 1070 Hz
Receive 2225 Hz 2025 Hz

To overcome this problem, new modems were developed which used PSK (Phase shift keying) or DPSK (dibit PSK = 2 bits per phase change). A constant carrier frequency is used and the phase is shifted by a different angles to represent the data bits. It must be noted that the relative phase change determines the values, that is to say, the new phase compared to what it was before the change occured. The BELL 212A / V.22 standard using DPSK is used here as an example.
Phase Shift (degrees) 0 +90 -90 +180
Dibit Value 01 00 11 10

At that same time, Amplitude modulation (AM) was also tried. The carrier's amplitude is raised and lowered to represent 1 and 0, while the frequency and phase remain constant.

These methods still left much (very much) to be desired. The real breakthrough in modems arrived when both Phase and Amplitude were used together.
The data bits are represented by both the amplitude and phase of the carrier wave.
This is called Quadrature amplitude modulation (QAM) or Multilevel Modulation .
An example of QAM for three bits per baud by using two amplitudes and four phase shifts could be illustrated as follows:

Bit combination Amplitude Phase shift
000 Low 0 deg
001 High 0 deg
010 Low 90 deg
011 High 90 deg
100 Low 180 deg
101 High 180 deg
110 Low 270 deg
111 High 270 deg

When dealing with amplitude (size) and phase (angle) we normally use vectors to simplify our understanding of these readings.
The figure below (figure 2), represents a very simple example of the above principle. 2 bits are represented by 1 cycle of the carrier, by having the signal modulated with a different phase (in this example 90 degrees difference between each 2 bits represented by the signal). The red points represents what is transmitted and what should be received by the modem on the receiving side. The signal, however, might become distorted before it arrives at the receiving modem and let us assume that what is received is represented by the vector with amplitude A and the angle O.

Vector diagram
figure 2

Since the received signal might not be the same as the transmitted signal, like what happened in the above example, we need a system which will cater for these errors. This problem is solved by assigning an area around the different points, these areas are called the decision areas. In the above diagram, the area covered by the red square is the decision area for the bits 00, meaning that any vector in this area will be treated as 00.
The difference between the transmitted vector and the received one creates a new vector called the error vector (see figure 3).
Each red point in figures 2 and 3 is called a symbol. A symbol is therefore a unique phase and amplitude combination, representing a set of bits.
The chart representing these symbol is called a constellation (since it looks like a whole lot of stars in space).

Error vector
Figure 3
A = symbol B = What was received C = error vector
With V.34 ( 33.6Kbps ), the modem has to use a large number of symbol points, and as a result errors are more likely to be received since the decision areas are very small, and any noise will affect the reliability of the received information.

This not only applies to 33.6Kbps, but also to 14.4Kps. The decision area is too small to receive information with any degree of reliabilty, and so the only option is to increase the decision area, and this is accomplished by using Trellis coded modulation (TCM) .
With Trellis coding, the symbols are divided into a number of constellations, each symbol surrounded by a maximum sized decision area. The receiving modem has to know which constellation to use, and this is achieved by sending an extra bit per symbol (two dimension codes), or per every two symbols (four dimension codes), and then examining the sequence of the received symbols, since each constellation will have different transition states which are generated by this extra bit.

The error vector has been used by certain companies to their advantage with this extra space. The modem at the transmitting end deliberatly offset the transmitted vector slightly to the left or right (but obviously still remaining in the decision area), to represent 0 and 1. The receiving modem, knowing what the actual symbol point is within the decision area then determines the original offset, and knows wherether it represent a 0 or 1.
This information has been used to send diagnostic information between two modems. The information is sent multiple times, due to the probability of noise, and errors are therefore minimised.
The ITU V.61 standard uses this error vector to represent voice samples, therby allowing simultaneous voice and data transmission via the modem without affecting the data rate in any way.

Due to the limited transmitting power (and therefore limited signal amplitude), and noise (both Gaussian and quantization), as well as limited bandwidth, the absolute maximum speed which can be achieved using QAM, with a real-life telephone network noise level of 35dB and a channel bandwidth of 3000Hz, is 34822bps (modems have been standardised to 33.6Kbps).

Back to the index

Standard modem protocols

V.34 - Transmission speed of 33.6kbps (1996)
V.34 - Transmission speed of 28.8kbps. (1994)
V.FC - (28.8kbps) Bootleg protocol used by many companies while waiting for official V.34 Standards. Not fully compatible.
V.32bis - 14.4kbps on a dial-up or leased line. (1991)
V.32 - 9600bps on a dial-up or leased line. (1984)
V.22bis - 2400bps on dial-up line only. (1984)
V.17, V.29, V.27ter - Support FAX Connections, and allow faxes to transmit at higher baud rate without the need for the full duplex circuitry.
Bell Standards - 212A (1200bps) and Bell 103T (300bps)
Back to the index

Data Compression

Compression allows throughput to be enhanced 2-4 times over normal transmission. These standards are used in conjunction with major transmission and error correction protocols.

Data Compression Standards

Back to the index


Error Correction

Most modems with error correction uses a type of mathematical formula called a checksum that examines incoming data for integrity. It the incoming modem detects an error, it can send a request back to the sending modem asking it to retransmit the block.

Error Correction Standards

Back to the index

File Transfer Protocols

File Transfer Protocols vary in terms of packet size, and the percentage of throughput that contains parts of the file (commonly refered to as efficiency). Here is a list of various FTP standards.

Name Efficiency Rate Packet Size
ASCII NA Variable
Kermit 75% (128 bytes) Variable up to 1024 bytes
X-modem 78% 128 bytes
X-modem 1K ? 1024 bytes
Y-modem 80% 1024 bytes
Z-modem 95% Variable
Sea-Link 80% 1024 bytes
Compuserve B 80% Variable

Click here to get detailed information on protocols
Click here to get detailed information on the modem light indicators (signal LEDs)

Back to the index

56Kbps Modems

This modem needs a section of it's own because it differs from the others in the following ways:
1) There is, as yet, no industry standard for 56Kbps modems.
2) The 56Kbps rate is only in one direction, the other direction is still either 28.8Kbps or 33.6Kbps.
3) You cannot communicate between two modems using 56Kbps.
4) The ISP must have a digital link directly to the exchange.
5) The modem uses QAM to transmit but uses Pulse Amplitude Modulation (PAM) to receive data.

Exactly how does the 56kbps modem work then?
The basic theory behind their operation is quite simple. Most modern day telephone exchanges are digital. The exchange will receive an analogue signal from the phone line (which it assumes is human speech), and samples it 8000 times a second, converting the amplitude into an 8 bit digital code. This 8 bit code represent 256 (0 to 255) definable voltage steps. If a modem could receive these voltage steps, and convert them back again at 8000 times per second, it would be possible to receive 8000samples/second x 8bits/sample = 64000 bits/second.
However, the two biggest problems preventing this from being implemented are quantization noise, and the fact that the convertion is logarithmic and not linear.

quantisation noise
Figure 4
Digital signals are defined to exact voltage steps, which usually results in differences between the original analogue signal level at any given time, and the voltage represented by the 8 bit digital code at that same moment. This difference is called a quantization error.
These quantization errors occur when an analogue signal is converted into a digital signal. When converting the digital code back into analogue, the re-contructed signal will be an exact representation of the digital code, which will follow the orignal analogue signal.
What happens when we place our OWN digital code on the exchange? It would result in an analogue signal which represents the digital code to the exact voltage. This would also mean that there are no analogue to digital convertions, thereby eliminating any possible quantisation errors.
To summarise, by making the path from the ISP to the exchange digital, and by keeping the entire path digital until it reaches the lines where the modem gets connected, there would be no analogue to digital convertion at all, thereby eliminating quantiztion noise from the formula. Also, we would be able to get an analogue signal which matches the digital one exactly. This is called Pulse amplitude modulation (PAM).
ISP digital link
Figure 5
This means that in theory we can receive 64 000 bit per second, by making the modem sample the signal it receives 8000 times a second and converting the voltage steps into back to a digital signal.
Note that this is an analgue to digital convertion process (which will cause quantization errors), however, the modems have been optimised to receive these signals (unlike the exchange which is optimised for speech), and by keeping the voltage steps far apart, each voltage step would be easy to distinguish from the next.
So why do we not get 64000bps then?
The answer lies with the fact that the convertion from digital to analogue at the exchange is non-linear. The voltage steps as we get closer to 0 becomes smaller and smaller, making it difficult to distinguish the one step from the next.
The modem designers therefore, have to use the larger voltage steps, and leave out the smaller volatage steps.
By choosing to use half of the available voltage steps (128 instead of all 256), we would be able to discard the smaller steps and still manage to stay with 7 bits. This will then give us 8000 samples/second X 7 bits/sample = 56000 bps.
The path from the modem to the exchange is still analogue, and so we are still faced with the traditional problems when it comes to transmitting data from the modem to the ISP. We therefore have to use QAM to the ISP, limiting that direction's speed to 33.6Kbps.
Back to the index

(c)1997 hda@hotmail.com

I have had Counter since 13/09/97 visitors since 13/11/1997!
Home page
For more, go to my Home Page


This page hosted by
Geocities
Get your very own Free Home Page
1