11
\$\begingroup\$

Supposing a computer gets data over telephone wire, it has to send/recieve signals, but how do things work?

Does it use analog signal or a digital bits? How does it send/recieve "1"s and "0"s?

\$\endgroup\$
18
\$\begingroup\$

Over several decades of time analog telephony modem technology has evolved quite a bit. To understand the basics it is essential to understand Frequency Shift Keying, (in my opinion) the mother of all modulation schemes for digital signals.

Essentially what is happening is that a byte is broken up into separate bits, which will be sent one after the other. Next a couple of extra bits are introduced to simplify error detection and synchronization to the signal. If you miss a single bit, you don't want to corrupt the rest of the data stream too.

Unfortunately a telephone line cannot transmit logic levels on its own, the frequency band that it allows is too small (I believe 300-4000Hz) and thus you need a way to change the bits into something that can be transmitted across the telephone line => tones. This is just what FSK does, it changes a logic 0 into a tone of a certain frequency and a logic 1 into a tone of a different frequency.

For example a simple modulation scheme would work like this:

  • Serialize the bits at a given rate, say 1200 bits per second. This was once a very common bitrate.
  • For every 0 insert a single sine wave at 1200Hz
  • For every 1 insert two subsequent sine waves at 2400Hz.

Notice how 1200Hz and 2400Hz are right in the supported bandwidth of the telephone line (300-4000Hz).

enter image description here

At the receiving end it is you do the reverse, if you detect a 1200Hz wave, you shift out a 0 and if you detect two 2400Hz wave, you shift out a 1.

Now you can pick two other frequencies for the communication in the other direction.

To increase bitrate there are many options. You can use multiple frequencies, multiple amplitudes and some schemes can even synchronize on the clock noise of the remote modem.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ And consequently, the transmitted signal is analog but it represents digital information. \$\endgroup\$ – sherrellbc Jun 24 '14 at 12:52
  • \$\begingroup\$ This is a nice clear explanation of FSK. It is worth noting though that the widely deployed 1200 baud modems used to support bidirectional communication were the Bell 212A standard, a more complicated modulation scheme offering non-interfering paths in each direction. The described 1200 baud FSK cannot fit two channels in a phone line, and resembles Bell 202 which only permits signalling in one direction or protocols where the ends take turns (it did find a lot of use in packetized radio communication between computers). \$\endgroup\$ – Chris Stratton Aug 1 '14 at 16:52
12
\$\begingroup\$

The MODEM is a critical hardware component in this process. MODEM stands for MODulator DEModulator.

When you send voice down a telephone wire, this is analogue signal (think of waves).

The modem at your PC will speak to another modem at your ISP (internet serive provider), they speak in analogue but can convert this signal into digital data.

If you were to listen to the conversation between two modems, it would sound like screaming. This high frequency noise is the language that the modems use to communicate.

Here's an image of a dial-up modem handshake. As you can see, the handshake is expressed in Frequencies measured in Hz (Larger image here). Modem handshaking

Essentially, the modem at your end will hear a series of specific frequencies and know what the other modem is trying to tell it.

Think about morse code, how do we know what the other party is trying to say? beep beep BEEEEP beep beep, it's all sound, but it has meaning when conveyed in a certain way.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ This answer is only correct if we assume that by telephone we mean what is commonly called plain old telephone service. Some newer services such as ISDN for example does not use modems since it's digital. Instead it uses terminal adapters, which interface the computer to the network. In some other types of set-ups, the analog part of the network may end in the user's own home. This can be seen in the so-called cable telephony where cable TV infrastructure is used to provide telephony service. Similar set-ups exits for fiber to the home also. \$\endgroup\$ – AndrejaKo May 10 '13 at 7:41
  • 3
    \$\begingroup\$ ISDN does use modems, as does DSL, T1/E1 and upwards... anything that puts data down a wire (or fibre optic, or radio link) is, broadly speaking, a modem (Modulator/Demodulator). There is a lot of work needed to fire data reliably down a long distance, and all communications equipment must do it. \$\endgroup\$ – John U May 10 '13 at 8:22
  • \$\begingroup\$ Isn't ISDN digital data over analog but using higher "out of band" frequencies that aren't passed to the POTS phone? That's my recollection. \$\endgroup\$ – Duncan C Aug 2 '14 at 2:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.