Sample Chapter

Back to Home

About the Book

What's New

Sample Chapter

Instructor Support

References

Glossary

Concepts Reinforced

  • I-P-O Model
  • Protocols & Compatibility
  • Basic telecommunications infrastructure
Concepts Introduced
  • Character Encoding Modulation/Demodulation
  • Serial vs. Parallel Analog Vs. Digital
  • Physical Interfaces vs. Transmission Protocols
  • Serial Transmission Standards Modulation Techniques
  • Two-wire vs. four wire Carrier Waves
  • Dial-up vs. leased line half-duplex vs. full-duplex
  • Baud rate vs. transmission rate synchronous vs. asynchronous transmission
  • Transmission services echo cancellation

OBJECTIVES

Upon successful completion of this chapter, you should be able to:

  1. Distinguish between the following related concepts and understand the proper application of each:
    • analog digital
    • synchronous asynchronous
    • full duplex half duplex
    • two wire four wire
    • serial parallel
    • bps baud rate
    • Leased line dial-up/switched line

  2. Understand the concepts, processes and protocols involved with completing a modem-based, point to point data communications session, including the following;
    • character encoding
    • serial/parallel conversion
    • serial transmission
    • modulation/demodulation

  3. Understand the impact and limitations of various modulation techniques.

  4. Understand the differences and proper application of a variety of carrier transmission services


Introduction

As new vocabulary and concepts are introduced in this chapter, it's important to understand that these words and concepts will be used throughout your study of data communications. Future concepts will be built upon the foundation of a thorough understanding of the vocabulary in this chapter.

This is the time to begin to speak to this foreign language which we call data communications. Don't be timid. Try to get together with other data communications students or professionals outside of class and practice your new vocabulary.

Discussions of specific technology will be kept to a minimum in this chapter, concentrating instead on the conceptual aspects of the "how" of data transmission. Although modems will be mentioned in this chapter, the in-depth study of technology, including its business impact, will begin in Chapter 3.

End-to-end data communications

Figure 2-1 serves as a roadmap for all of the concepts to be studied in Chapter 2. An end-to-end communication session between two PCs (personal computers) and their associated modems via a dial-up phone line offers an overall scenario into which most data communication concepts can be introduced. In this manner, each concept can be understood individually as well as in terms of its contribution to the overall end-to-end data communication session.

Another reason for choosing a modem-based communication session as a means of introducing basic data communications concepts is the likelihood of encountering modems and dial-up connections in real life. This contributes to familiarity with the process as we begin this study, and a greater understanding of this common data communications opportunity at the conclusion of the chapter.

However, it is important to understand that the concepts outlined on Figure 2-1 and explained throughout the chapter are not specific to only PCs or modems. These are basic data communications concepts that form the basis of the vast majority of data communications technology. Likewise, although PC modems are discussed in this chapter, modems also have many other applications such as communicating with mainframe computers as described in Chapter 9.

Figure 2-1 Basic data communications concepts: end-to-end modem-based data communications session

The end-to-end data communications session between two PCs and its constituent concepts and processes as illustrated in Figure 2-1 can be logically sub-divided into three major sections:

  • From the computer to the modem
  • Within the modem
  • From the modem to the phone service

In turn, each of these major sub-sections is divided into several constituent processes. Each of these processes will be described conceptually. In addition, any significant protocols or standards currently governing these processes, as listed in Figure 2-1, will be explored.

More detailed information on the operation of the carrier network and services will be provided in:

  • Chapter 4 - Voice Communications Concepts and Technology
  • Chapter 8 - Wide Area Networks: Concepts, Architecture, Services and Technology

Computer to Modem

Character Encoding

In order to get data from its source PC to its destination PC, it must be transformed from its humanly understandable form (letters, numbers, voices, images) to an electronically-based machine understandable form. The process of transforming humanly readable characters into machine readable code is known as character encoding.

Using a particular encoding scheme, characters are turned into a series of ones and zeroes. Why ones and zeroes? The one and zero are used as symbols to represent two discrete states, much like a light switch being on or off. These discrete states can be easily represented electrically by discrete voltages of electricity. In turn, these discrete voltages of electricity representing coded characters can then be easily transmitted, received, and examined by data communications equipment.

The individual 1's and 0's which constitute a given character are known as bits. The series (usually 8 ) of bits representing the entire encoded letter is known as a byte. These 1's and 0's , or digits, represented by discrete voltages of electricity are in digital format and known as digital data. Now that the humanly-readable character is in machine readable form, it (these bits) can now be transmitted in a process generally known as data communications.

Characters can be encoded according to a variety of protocols or standards. A few of the currently popular encoding standards are described in the following paragraphs.

ASCII

American Standard Code for Information Interchange (ASCII) is one standardized method for encoding humanly readable characters. ASCII uses a series of 7 bits to represent 128 (27= 128) different characters including upper and lower case letters, numerals, punctuation and symbols, and specialized control characters. One use of control characters will be explained further in Chapter 3. An eight bit, known as a parity bit, is added to 7-bit ASCII for error detection. Error detection and parity checking will also be described in Chapter 3. Figure 2-2 is an ASCII table.

Figure 2-2 ASCII Table

EBCDIC

Extended Binary Coded Decimal Interchange Code (EBCDIC) is an eight bit code capable of representing 256 different characters, numerals, and control characters (28 = 256). EBCDIC is the primary coding method used in IBM mainframe applications. Figure 2-3 is an EBCDIC table.

Figure 2-3 EBCDIC Table

Using ASCII and EBCDIC Tables

Using ASCII or EBCDIC tables to interpret character encoding is relatively straightforward. The tables are arranged according to groups of bits otherwise known as bit patterns. The bit patterns are divided into groups. In the case of ASCII, bits 6 through 4 are known as the most significant bits (MSB) while bits 3 through 0 are known as the least significant bits (LSB). In the case of EBCDIC, bits 0 through 3 are known as the MSB and bits 4 through 7 are known as the LSB.

In order to find the bit pattern of a particular character, one needs to just combine the bit patterns which intersect in the table at the character in question, remembering that most significant bits always come before least significant bits. In the case of ASCII, this means that bits are arranged from bit 6 to bit 0, while EBCDIC is arranged from bit 0 to bit 7. As an example, representative characters, numerals, and control characters and their bit patterns are highlighted with shading in the ASCII and EBCDIC tables and are displayed in Figure 2-4 in humanly readable, ASCII, and EBCDIC formats.

Humanly ReadableASCIIEBCDIC
A100000111000001
x111100010100111
5011010111110101
LF (Line Feed)000101000100101

Figure 2-4 Humanly readable, ASCII, and EBCDIC coding

UNICODE and ISO 10646

ASCII and EBCDIC coding schemes have sufficient capacity to represent letters and characters familiar to people whose alphabets use the letters A, B, C etc. However, what happens if the computer needs to support communication in Chinese or Arabic? It should be obvious that 128 or 256 possible characters will not suffice when other languages and alphabets are considered.

In view of this fact, an international effort was undertaken to establish a new coding standard which could support many more alphabets and symbols than ASCII or EBCDIC. Although Unicode and ISO (International Standards Organization) 10646 were initiated separately, Unicode Version 1.1 and ISO 10646 are identical and were released in 1993.

Unicode is a 16 bit code supporting up to 65,536 possible characters (216= 65,536). It is backward compatible with ASCII as the first 128 Unicode characters are identical to the ASCII table. In addition, Unicode includes over 2000 Han characters for languages such as Chinese, Japanese, and Korean. It also includes Hebrew, Greek, Russian, and Sanskrit alphabets as well as mathematical and technical symbols, publishing symbols, geometric shapes, and punctuation marks.

Application programs which display text on a monitor must encode characters according to an encoding scheme understood by the computer's operating system. It is up to the operating systems vendors to include support for particular encoding schemes such as Unicode/ISO 10646. Microsoft's Windows NT is one example of an operating system which supports Unicode.

Serial vs. Parallel Transmission

These bits which represent humanly-readable characters can be transmitted in either of two basic transmission methodologies. They can be transmitted either simultaneously (parallel transmission) or in a linear fashion, one after the other (serial transmission). The advantages, limitations and typical applications of each transmission methodology are summarized in Figure 2-5 and illustrated in Figure 2-6.

Transmission CharacteristicSerialParallel
Transmission DescriptionOne bit after another, one at a timeAll bits in a single character transmitted simultaneously
Comparative SpeedSlowerFaster
Distance LimitationFartherShorter
ApplicationBetween two computers, from a computer to an external modem, from a computer to a relatively slow printer Within a computer along the computer's bus, from a computer to parallel high speed printers
Cable DescriptionAll bits travel down a single wire, one bit at a time Each bit travels down its own wire simultaneously with other bits.
Figure 2-5 Serial transmission vs. parallel transmission

Figure 2-6 Serial and parallel transmission illustrated

Physical Interfaces vs. Transmission Protocols

With either parallel or serial transmission, it is important to distinguish between those standards which describe the connectors or physical interfaces which are used to connect appropriate cables to a computer's parallel or serial ports, and the standards which describe the electrical characteristics, or transmission protocol of either serial or parallel transmission. These differences in standards are highlighted in the sections on serial and parallel transmission which follow.

Serial Interface Standards

Figure 2-7 illustrates three of the most common physical interfaces for serial transmission:
  • a typical 25 pin serial port, known as a DB-25 connector
  • a 9 pin serial port most often found on personal computers, known as a DB-9 connector.
  • an M block connector used in high speed serial transmissions

Figure 2-7 Serial transmission physical interfaces

It is important to note that the designators DB-25, DB-9, and M Block only describe the physical connectors and do not imply anything regarding the transmission protocol which defines the electrical specifications for transmission using one of these physical interfaces. As will be seen, these physical interfaces can be employed using a variety of different transmission protocols.

Serial Transmission Standards

Serial transmission is the basis of most data communications between computers and therefore, deserves further investigation. The transmission of data between two PCs via modems as illustrated in Figure 2-1 is an example of serial transmission.

RS-232

In the case of the DB-25 connector illustrated in Figure 2-7, the presence or absence of an electrical charge on each of these 25 pins has been designated as having a specific meaning in data communications. These standard definitions are officially known as RS-232-C, were issued by the Electronics Industries Association (EIA), and are listed in Figure 2-8.

Although all 25 pins are defined, in most cases, ten or fewer of the pins are actually used in the majority of serial transmission applications. On some PC's, such as personal computers as well as many notebook and laptop computers, the serial port has only 9 pins (DB-9 connector) and the RS-232 serial transmission protocol is supported as listed in Figure 2-8.

Figure 2-8 RS-232 Serial Transmission Protocol as defined for DB-25 and DB-9 connectors

Recalling that character encoding ensures that all characters can be represented as a series of 1s and 0s, it is the job of the transmission protocol to represent these 1s and 0s as discrete electrical signals. RS-232 defines voltages of between +5 and +15 volts DC on a given pin to represent a logical zero, otherwise known as a space, and voltages of between -5 and -15 volts DC to represent logical ones, otherwise known as a mark.

Modem Cables

So how are these meaningful electrical signals transported from the serial port on the local PC to a similar looking port, or interface on the local modem? The answer is:
  • Either buy or make a data cable in a configuration known as a modem cable.

The cable has several small insulated wires within an outer jacket. These cables come with different numbers of "inner" wires depending on how many signals need to be transferred from one serial port to another. Each signal to be carried, or RS-232 pin to be supported, requires its own individual inner wire.

The next question is: Which of the possible 25 signals are most meaningful, and therefore worth transferring over the modem cable in this example? Figure 2-9 summarizes the 12 signals which are most commonly included in modem cables and designates which signals are assigned to which pins on both DB-9 and DB-25 connectors. The RS-232 signals described in Figure 2-9 are arranged in logical pairs in order to increase understanding rather than in order of DB-25 pin number.


RS-232    DB-25    DB-9    Abbr.  From   To  Explanation
Signal     Pin Pin

Protective   1       5      PG                A reference voltage used to
Ground                                        protect circuit boards
                                              inside PC.

Signal       7       5      SG                A reference voltage used to
Ground                                        determine proper signal
                                              voltage for 1s and 0s. 

Transmit     2       3      TXD    DTE  DCE   Discrete voltages
Data                                          representing characters
                                              encoded as 1s and 0s
                                              are transmitted on
                                              this pin to deliver
                                              the actual data message.

Receive     3       2       RXD    DCE  DTE   Discrete voltages 
Data                                          representing characters
                                              encoded as 1s and 0s are
                                              received on this pin to
                                              receive the actual data
                                              message.

Request     4       7       RTS    DTE  DCE   Used in conjunction with 
to Send                                       CTS to perform
                                              modem-to-modem flow
                                              control allowing modems
                                              to take turns
                                              transmitting to each other.

Clear to    5       8       CTS    DCE  DTE   Used in conjunction with 
Send                                          RTS to perform
                                              modem-to-modem flow
                                              control allowing modems
                                              to take turns
                                              transmitting to each other.

Data Set    6       6       DSR    DCE  DTE   Used for initial
Ready                                         handshaking between
                                              local modem and local PC
                                              to indicate local modem
                                              is functional.

Data        20      4       DTR    DTE  DCE   Used for initial 
Terminal                                      handshaking between
Ready                                         local modem and local PC
                                              to indicate local PC is
                                              functional.

Transmit    15              TC     DTE  DCE   Clocking signal
Clock                                         transmitted on this
                                              pin. Required for
                                              synchronous modems
                                              only.

Receive     17              RC     DCE  DTE   Clocking signal
Clock                                         received on this pin.
                                              Required for synchronous
                                              modems only.

Carrier      8      1       CD     DCE  DTE   Indicates that the local
Detect                                        modem has successfully
                                              contacted the remote
                                              modem and is ready to
                                              transmit data.

Ring        22      9       RI     DCE  DTE   Indicates to the local
Indicator                                     modem that a call is
                                              incoming and that the
                                              modem should auto-answer
                                              the call.


Figure 2-9 Most commonly used RS-232 signals

The modem cables will have 12 data leads or inner wires, one for each of the commonly used RS-232 pins outlined in Figure 2-9. The wires will be pinned "straight-through", in other words, the wire from pin #2 on the DTE (PC) end will go "straight through" to pin #2 on the DCE (modem) end, and so on with the remaining pins.

Constructing modem cables or connecting any two devices for data communications involves choosing between a variety of media types. Coaxial cable, unshielded twisted pair, shielded twisted pair, and fiber optic cable are but a few of the possible options. Although media alternatives will be explored in detail in Chapter 6, it is important to understand that media choices are present in every data communications opportunity.

DCE vs. DTE

In addition to being able to identify certain signals according to their pin numbers, it is necessary to also be able to identify which end of the cable goes to the PC and which goes to the modem. The PC and the modem in our example are given generic designations of DTE (Data Terminal Equipment) and DCE (Data Communications Equipment) respectively. DCE is also expanded as Data Circuit Terminating Equipment.

Many of the RS-232 pins and signals have a directionality to them. In other words, either the terminal is informing the modem of something by raising or lowering electrical voltages to a certain pin, or the modem is informing the terminal of something by the same means. Figure 2-9 outlines the directionality of the signals of commonly used RS-232 pins in the columns labeled "FROM" and "TO".

In Sharper Focus: Other Serial Transmission Standards

RS-232 is officially limited to 20Kbps (kilobits per second) for a maximum distance of 50 ft. The fact of the matter is that dependent on the type of media used and the amount of external interference present, RS-232 can be transmitted at higher speeds and/or over greater distances. Other serial transmission standards overcome both the speed and distance limitations of RS-232 and are listed in Figure 2-10.
Standard   Standards   Physical       Description
Name       Body        Interface
Connector

RS-422     EIA         DB9 DB25   An electrical specification usually
                       DB37       associated with RS-449 (DB37 Connector).
                                  Each signal pin has its own ground line
                                  (balanced) rather than sharing a common
                                  ground.  Up to 10Mbps over 1200 meters.
                                  Use of DB25 or DB9 also possible. 

RS-423    EIA          DB9 DB25   An electrical specification usually
                       DB37       associated with RS-449 (DB37 Connector).
                                  Signal pins share a common ground wire.
                                  (Unbalanced signaling)  Up to 10Mbps over
                                  1200 meters. Use of DB25 or DB9 also
                                  possible.
								  
RS-449    EIA        DB37 plus    A physical/mechanical specification for a
                     DB9          DB-37 (37 pin connector) plus an additional
                                  DB-9 if required.  Usually associated with
                                  either RS-422 or RS-423 electrical
                                  specifications.

RS-485    EIA        DB9 DB25     Can be used in multipoint applications in
                     DB37         which one computer controls multiple (up to
                                  64) devices. Often used in computer
                                  integrated manufacturing operations or in
                                  telecommunications management networks.

RS-530    EIA        DB25         A physical/mechanical specification which
                                  works with RS-422 or RS-423 over a DB-25
                                  connector rather than a DB-37 connector.
                                  Allows speeds of up to 2Mbps.

V.35      ITU        M-Block      An international standard for serial
                                  transmission up to 48Kbps defined for an
                                  M-block connector. Often used on data
                                  communications equipment which must
                                  interface to high speed carrier services.

Figure 2-10 Other serial transmission standards

Parallel Transmission

As can be seen from Figure. 2-6, parallel transmission is primarily limited to transmission of data within a computer and between a computer's parallel port and a parallel printer. Common physical interfaces associated with parallel transmission are the DB-25 connector and the Centronics connector. The Centronics connector is a 36 pin parallel interface. In addition to the physical plug and socket, the Centronics parallel standard also defines electrical signaling for parallel transmission and is a defacto standard. DB-25 and Centronics parallel physical interfaces are illustrated in Figure 2-11.

Figure 2-11 Parallel transmission physical interfaces

Serial/Parallel Conversion: UARTs

Remember that data travels via parallel transmission within a PC over the PC's main data highway, known as a bus. The data emerging from the serial port and out into a modem must be in serial format however. Therefore, somewhere inside the PC a parallel to serial conversion must be taking place. A specialized computer chip known as a UART (Universal Asynchronous Receiver Transmitter) acts as the interface between the parallel transmission of the computer bus and the serial transmission of the serial port. UARTs differ in performance capabilities based on the amount of on-chip buffer memory. The 16550 UART chip contains a 16 byte on-chip buffer memory for improved serial/parallel conversion performance. In the case of internal modems, the UART is included on the internal modem card, thereby bypassing the system UART.

Given the transmission speed of today's modems, it is especially important that PCs are equipped with the 16550 UART with its 16 byte buffer rather than previous UARTs which only contained a 1 byte buffer.

Transmission Monitoring and Manipulation: Breakout Boxes

In order to effectively troubleshoot serial or parallel transmissions, it is necessary to be able to monitor and manipulate the electrical signaling on individual signaling pins. Devices known as breakout boxes are used to monitor and manipulate electrical signaling. Breakout boxes are built to monitor a particular electrical transmission specification. As a result, separate breakout boxes are required to monitor RS-232, V.35, RS-449, or parallel transmission. Figure 2-12 illustrates a typical breakout box.

Figure 2-12 Breakout box

Within the Modem

So exactly what does a modem do? In order to analyze what any piece of data communications equipment does, the Input-Processing-Output or I-P-O analysis model, introduced in Chapter 1, is employed.

The I-P-O Model

The I-P-O model provides a framework in which to focus on the difference between the data that came into the modem (I) and the data that came out of the modem (O). By defining this difference, we have defined how the modem processed the data (P).

In general terms, based upon what we have learned thus far, we could say:

  • Input Data (I): From the PC: A series of 1's and 0's representing characters and transmitted as discrete voltages of electricity in digital format.

  • Output Data (O): To the Public Phone Network on a normal phone line.

It should be obvious that in order to better understand the processing (P) which goes on in a modem, it is first necessary to have a better understanding of (O), data transmission over a "normal" or dial-up phone line.

Digital vs. Analog Transmission

A switched or dial-up line is the type of phone line which you would typically have installed in your home or place of business. To place a call, you pick up the receiver or handset, wait for a dial-tone, and dial the number of the location you wish to call. This ordinary type of phone service is sometimes called POTS or Plain Old Telephone Service. More formally, the phone network is referred to as the Public Switched Telephone Network (PSTN).

As introduced in chapter one, a large switch in a telephone company building called a central office or CO, connects your phone equipment to the phone equipment of the party you wished to call by finding an available circuit or path to your desired destination. It is important to understand at this point that the CO switch tries to find a path as quickly as possible to your destination. The actual circuits it chooses represent the best path available at that time. The particular circuits or path chosen may vary from one occasion to another, even for calls to the same location. Calls placed over dial-up lines through CO switches which have connections built from available circuits are called circuit-switched connections. In order to interface transparently to the PSTN, modems must be able to dial and answer phone calls to and from other modems.

The next important characteristic related to transmitting data over a dial-up phone line has to do with how the data is represented on that phone line. First, it is important to realize that today's dial up phone network was originally designed to carry voice conversations efficiently and with reasonable sound quality. This "efficiency of design with reasonable sound quality" meant reproducing a range of the frequencies of human speech and hearing just wide enough to produce reasonable sound quality. That range of frequencies, or bandwidth, is 3100 Hz (From 300 Hz to 3400 Hz), and is the standard bandwidth of today's voice-grade dial up circuits (phone lines). Hz is the abbreviation for hertz. One hertz is one cycle per second. The higher the number of hertz or cycles per second, the higher the frequency. Frequency, wavelength, hertz, and cycles per second will be explained further later in this chapter.

This 3100 Hz is all the bandwidth with which the modem operating over a dial-up circuit has to work. Remember also that because today's dial-up phone network was designed to be able to mimic the constantly varying tones or frequencies which characterize human speech, only these continuous, wave-like tones or frequencies can travel over the dial-up phone network in this limited bandwidth.

The challenge for the modem, then, is to represent the discrete, digitized 1's and 0's from the input (PC) side of the modem in a continuous or analog form within a limited bandwidth so that the data may be transmitted over the dial-up network. Figure 2-13 summarizes the results of I-P-O analysis involving modems and the PSTN.

Figure 2-13 I-P-O Analysis: Modems and the PSTN

Modulation/Demodulation

It should be clear that a modem's job must be to convert digital data into analog data for transmission over the dial-up phone network and to convert analog data received from the dial-up network into digital data for the terminal or PC. The proper names for these processes are modulation and demodulation as illustrated in Fig. 2-14. In fact, the word modem is actually a contraction for Modulator/demodulator.

Figure 2-14 Modulation vs. demodulation

Carrier Waves

In order to represent the discrete-state 1's and 0's or bits of digitized data on a dial-up phone line, an analog or voice-like wave must be able to be changed between at least two different states. This implies that a "normal" or "neutral" wave must exist to start with, which can be changed to represent these 1's and 0's.

This "normal" or "neutral" wave is called a carrier wave as illustrated in Figure 2-15. The RS-232 pin #8 - Carrier Detect refers to this carrier or reference wave. Modems generate carrier waves which are then altered (modulated) to represent bits of data as 1's and 0's. When a local and remote modem are trying to establish communications, you may have heard a series of high-pitched screeches before the Carrier Detect indicator lights on your modem. These screeches are the two modems trying to detect a common carrier wave in order to establish communication. Once the carrier wave has been detected by both modems, the actual data transmission can begin as the modems manipulate this common carrier wave to represent ones and zeroes.

Figure 2-15 Carrier Wave

How can the carrier wave be manipulated to represent ones and zeroes? There are only three physical characteristics of this wave which can be altered or modulated:

  1. amplitude
  2. frequency
  3. phase

As will be seen later in this section, in some modulation schemes more than one of these characteristics are altered simultaneously.

Amplitude Modulation

Figure 2-16 illustrates the Amplitude Modulation of a carrier wave. Notice how only the amplitude changes, while frequency and phase remain constant. In this example, the portions of the wave with increased height (altered amplitude) represent 1's and the lower wave amplitude represent 0's. Together, this portion of the wave would represent the letter "A" using the ASCII-7 character encoding scheme.

Each of the vertical lines in Figure 2-16 separate the one opportunity to identify a 1 or 0 from another. These timed opportunities to identify ones and zeroes by sampling the carrier wave are known as signaling events. The proper name for one signaling event is a baud.

Figure 2-16 Amplitude Modulation

Frequency Modulation

Figure 2-17 represents the frequency modulation of a carrier wave. Frequency modulation is often referred to as frequency shift keying or FSK. The frequency can be thought of as how frequently the same spot on two subsequent waves pass a given point. Waves with a higher frequency will take less time to pass while waves with a lower frequency will take a greater time to pass.

The distance between the same spots on two subsequent waves is called the wavelength. The longer the wavelength, the lower the frequency and the shorter the wavelength, the greater the frequency. Notice in Figure 2-17 how the higher frequency (shorter wavelength) part of the wave represents a 1 and the lower frequency (longer wavelength) part of the wave represents a 0, while amplitude and phase remain constant. Again, the entire bit stream represents the letter "A" in ASCII-7.

Figure 2-17 Frequency modulation

Phase Modulation

Figure 2-18 illustrates an example of Phase modulation also known as phase shift keying or PSK. Notice how the frequency and amplitude remain constant in the diagram. Phase modulation can be thought of as a shift or departure from the "normal" continuous pattern of the wave. Notice in Fig. 2-18 how we would expect the pattern of the wave to follow the broken line, but suddenly the phase shifts and heads off in another direction. This phase shift of 180 degrees is a detectable event with each change in phase representing a change in state from 0 to 1 or 1 to 0 in this example.

Figure 2-18 Phase modulation

Measuring Phase Shift

In Figure 2-18, the detected analog wave was either the carrier wave with no phase shift, or it was phase shifted 180 degrees. Given that phase shifts are measured in degrees, it should stand to reason that we could shift the phase of carrier waves by varying degrees other than just 180 degrees. By increasing the number of possible phase shifts, we increase the number of potential detectable events. As illustrated in Figure 2-19, when we had just two potential detectable events (no phase shift, or 180 degree phase shift), those two events represented a 0 or a 1 respectively. However, by introducing 4 potential phase shifts (0, 90, 180, 270), we are able to associate two bits with each potential detectable event.

Figure 2-19 Relationship between number of phase shifts and number of potential detectable events

A simpler and perhaps clearer way to represent phase shifts as illustrated in Figure 2-19 is through the use of constellation points. Using a four quadrant representation of the 360 degrees of possible phase shift, individual points represent each different shifted wave. Note that when represented in a constellation diagram, a phase shift of 270 degrees is represented as -90 degrees. Phase shift modulation with four different phases is more properly referred to as quadrature phase shift keying or QPSK.

Baud Rate vs. Transmission Rate

The number of signaling events per second is more properly known as the baud rate. Although baud rate and bps (bits per second)or transmission rate are often used interchangeably, the two terms are in fact related, but not identical. In the first illustration in Figure 2-19, only two detectable events were possible meaning that only one bit was interpreted at each signaling event (one bit/baud). Therefore, in this case the baud rate was equal to the transmission rate as expressed in bps (bits per second).

However, in the second illustration in Figure 2-19, four detectable events are possible for each signaling event, making it possible to interpret two bits per baud. In this case, the bit rate or transmission rate as measured in bps would be twice the baud rate.

More sophisticated modulation techniques are able to interpret more than one bit per baud. In these cases, the bps is greater than the baud rate. For example, is the baud rate of a modem was 2400 signaling events per second and the modem was able to interpret 2 bits per signaling event, then the transmission speed would be 4800 bps. Mathematically, the relationship between baud rate and transmission rate can be expressed as:

Transmission rate (bps) = Baud rate x bits/baud

In Sharper Focus: More than one bit/baud

There are really only two ways in which a given modem can transmit data faster:
  1. As mentioned previously, increase the signaling events per second, or baud rate.
  2. Find a way for the modem to interpret more than one bit per baud.

By modifying a phase modulation technique such as that illustrated in Figure 2-19, a modem can detect, interpret, and transmit more than one bit per baud. The mathematical equation which describes the relationship between the number of potential detectable events and the numbers of bits per baud that can be interpreted is as follows:

Number of states = Number of potential detectable eventsbits/baud

  • Number of states = always 2 (Data is either a 1 or 0)
  • Number of potential detectable events = 4 different phase angles (0, 90, 180, 270) as illustrated in the second illustration in Figure 2-19.

To solve:

  • 2 (the number of states) raised to what power equals 4 (the number of different detectable events)?

The answer is 2, meaning that 2 bits/baud can be interpreted at a time. Two bits at a time are known as a dibit. By extending the mathematical equation above, it should be obvious that:



Number of Potential     Number of bits/baud       Also known as
Detectable Events

       8                        3                     tribit
      16                        4                     quadbit
      32                        5
      64                        6
     128                        7
     256                        8
     512                        9


Quadrature Amplitude Modulation

How far can we go with increasing the number of phase shift angles or potential detectable events ? One limiting factor to increasing the bits/baud in phase shift modulation is:

Given that the modem is being used on a dial-up line of unpredictable quality, how small (least number of degrees) a phase shift can be reliably detected? Sixteen different phase shifts would require reliable detection of phase shifts of as little as 22.5 degrees. Remembering that phase is not the only wave characteristic which can be varied, sixteen different detectable events can also be produced by varying both phase and amplitude. Many of today's high speed modems use a modulation technique which varies both phase and amplitude known as quadrature amplitude modulation or QAM

16QAM, with its sixteen different potential detectable events, would allow 4 bits/baud or quadbits to be produced or detected per signaling event. In this case the transmission rate in bps would be 4 times the baud rate. Figure 2-20 illustrates a representative set of constellation points and associated quadbits for a QAM modulation scheme. Differences in phase are represented in degrees around the center of the diagram while differences in amplitude are represented by linear distance from the center of the diagram. Each point is uniquely identified by combining one of three potential amplitudes (.311V, .850V and 1.161V) with one of twelve potential phase shifts (15, 45, 75, 105, 135, 175, -165, -135, -105, -75, -45, -15 degrees). Obviously, all potential combinations of these two sets of variables are not used in 16QAM.

Figure 2-20 QAM Constellation Points and quadbits

In Sharper Focus: Nyquist's Theorem and Shannon's Law

What are the underlying factors which limit the carrying capacity of a given circuit ? The work of Harry Nyquist and Claude Shannon help to answer that question.

Nyquist's Theorem

The constellation points illustrated in Figure 2-20 are sometimes referred to as symbols. It should stand to reason that as the number of constellation points (symbols) increases and symbols are in closer proximity to each other on the constellation diagram, that the chance for a modem to misinterpret constellation points increases. Interference between symbols which can cause misinterpretation is known as intersymbol interference. Nyquist investigated the maximum data rate (measured in bps) that can be supported by a given bandwidth (measured in Hz) due to the effect of intersymbol interference. He found the relationship between bandwidth (W) and maximum data rate (C) to be:

C = 2W

Considering a voice grade circuit: W = 3100 Hz, therefore maximum theoretical data rate C = 6200 bps. However, this fails to account for the ability of modern modems to interpret more than one bit per baud by being able to distinguish between more than just two symbols or potential detectable events. Taking this ability into account, if we call the number of potential detectable events (M), Nyquist's Theorem becomes:

C = 2W log2 M

Again, considering a voice grade circuit: if M = 16 potential detectable events, then log2M = 4 and C = 24,800 bps.

Shannon's Law

The data rates theorized by Nyquist's Theorem are not achieved in reality due to the presence of noise on phone lines. Noise is measured as a ratio of the strength of the data signal to the strength of the background noise. This ratio is known as the signal to noise ratio (S/N) and is computed as follows:

(S/N)dB = 10 log (signal power/noise power)

S/N is expressed in decibels (dB). Decibels are a logarithmic measurement using a reference of 0 dB for comparison. As a result, a noise level of 10dB is 10 times more intense than a noise level of 0 dB , a noise level of 20 dB is 100 times more intense than a noise level of 0 dB , and a noise level of 30 dB is 1000 times more intense than a noise level of 0 dB .

Shannon found that the higher the data rate, the more interference is caused by a given amount of noise, thus causing a higher error rate. This should make sense since at higher data rates, more bits are traveling over a circuit in a fixed length of time, and a burst of noise for the same length of time will effect more bits at higher data rates. By taking into account the signal to noise ratio, Shannon expresses the maximum data rate of a circuit (C) as:

C = W log2 (1 + S/N)

Considering a voice grade circuit: if W = 3100 Hz and the S/N = 30dB , and remembering that a S/N of 30dB yields a ratio of 1000, then C = 30,894 bps. Depending on the value inserted into Shannon's Law for S/N or for W, C will vary accordingly. 24,000 bps is also a common value for C using Shannon's Law. By substituting different values for W and for S/N , it should become obvious that data channel capacity (C) can be more drastically effected by changes in bandwidth (W) , than by changes in the signal to noise ratio (S/N).

Finally, it should be noted that there are numerous other line impairments such as attenuation, delay distortion, and impulse noise which Shannon's Law does not take into account. As a result, the data channel capacity (C) derived from Shannon's Law is theoretical and is sometimes referred to as error-free capacity.

Synchronous vs. Asynchronous transmission

Potential detectable events must be produced on one modem, transmitted over the public phone network, and detected reliably on a remote modem. In a modem with a baud rate of 2400 baud (signaling events) per second, the remote modem has exactly .416 milliseconds (1 divided by 2400) to accurately detect and interpret the incoming data.

Obviously, the modems must have a reliable way to know exactly when to sample the line for data. Somehow, the local and remote modems must establish and maintain some type of timing between them so that these detectable events are produced, transmitted, and detected accurately. There are two main alternatives to establishing and maintaining the timing for the sampling of detectable events. These two timing alternatives are known as:

  • Asynchronous Transmission
  • Synchronous Transmission

Figure 2-21 summarizes some important characteristics about asynchronous and synchronous transmission methods. The most noticeable difference is that the synchronization, or detectable event timing, itself is re-established with the transmission of each character in asynchronous transmission via the use of start and stop bits and with each block of characters in synchronous transmission. In asynchronous transmission, there may be 1, 1.5, or 2 stop bits. The timing in the case of synchronous transmission is supplied by a clock which may be supplied by either the remote or local modem, or by the carrier.

Secondly, when comparing idle time activity, synchronization is maintained, thanks to the ever-present clocking signal, in synchronous transmission and dropped in asynchronous transmission while no characters are being transmitted. The effect of these characteristics on transmission efficiency is illustrated in Figure 2-21

Figure 2-21 Asynchronous vs. Synchronous transmission

In terms of application, PC modems use asynchronous transmission as do asynchronous terminals such as a VT-100 to an asynchronous minicomputer such as a VAX. Synchronous transmission is used between mainframe terminals such as IBM 3270 and IBM mainframe computers. Synchronous transmission is also used for most high-speed WAN services such as 64Kbps or T-1.

Modem to Phone Service

Transmission Concepts

In order to understand the capabilities and limitations of a variety of phone services available to the consumer, it is first necessary to gain a better understanding of some of the concepts of the phone network infrastructure responsible for delivering those services.

Two-wire vs. four-wire circuits

Most local loops which are used for connection to the PSTN to supply switched, dial-up phone service are physically described as two-wire circuits. Since one of these two wires serves as a ground wire for the circuit, that leaves only one wire between the two ends of the circuit for data signaling. Dial-up or switched circuits generate a dial-tone and are connected at a central office-based switch that completes connections to the circuit corresponding to the dialed phone number.

A four-wire circuit is comprised of two wires capable of simultaneously carrying a data signal each with its own dedicated ground wire. Typically, four wire circuits are reserved for leased lines, otherwise known as dedicated lines or private lines. These circuits bypass telephone company switching equipment. They have no dial tone and are always operational between the locations specified by the customers ordering the leased lines.

Half-duplex vs. full-duplex

Given that two-wire dial-up circuits only have one wire for data signaling, only one modem could be transmitting at a time while the other modem could only be receiving data. This one direction at a time transmission is known as half-duplex.

Modems which interfaced to a dial-up circuit had to support this half-duplex transmission method. What this meant was that once the two modems completed initial handshaking, one modem would agree to transmit while the other received. In order for the modems to reverse roles, the initially transmitting DTE (terminal or computer) drops its RTS (request to send) RS-232 Pin # 4 , the transmitting DCE (modem) drops its CTS (clear to send) RS-232 Pin # 5, and perhaps its carrier wave. Next, the initially receiving DTE must raise RTS, the initially receiving DCE (modem) must generate a carrier wave and raise CTS, and the role reversal is complete.

This role reversal is known as turnaround time and can take two-tenths of a second or longer. This may not seem like a very long time, but if this role-reversal needed to be done several thousand times over a long distance circuit, charged by usage time, it may have a large dollar impact.

Full-duplex transmission supports simultaneous data signaling in both directions. Full-duplex transmission might seem to be impossible on two-wire circuits. Until the advent of the V.32 9600 bps full duplex modem, the only way to get full duplex transmission was to lease a four wire circuit. Two wires (signal & ground) were for transmitting data and two wires (signal & ground) were for receiving data. There was no "role reversal" necessary and therefore, no modem turnaround time delays.

Modems manufactured to the CCITT's V.32 standard (and the later V.34 standard) can transmit in full-duplex mode, thereby receiving and transmitting simultaneously over dial-up two-wire circuits. These modems use sophisticated echo cancellation techniques and, at least when they were first introduced, were significantly more expensive than slower, half-duplex modems. Figure 2-22 highlights the differences between half-duplex and full-duplex transmission.

Figure 2-22 Half-Duplex vs. full-duplex transmission

Echo cancellation

Echo cancellation takes advantage of sophisticated technology known as digital signal processors (DSP) which are included in modems that offer echo cancellation. By first testing the echo characteristics of a given phone line at modem initialization time, these DSPs are able to actually distinguish the echoed transmission of the local modem from the intended transmission of the remote modem. By subtracting or canceling the echoed local transmission from the total data signal received, only the intended transmission from the remote modem remains to be processed by the modem and passed on to the local PC.

Transmission Services

Having reviewed the processes involved to move a data signal from a computer through a modem, the final step in the overall process is to interface that modem to a transmission service purchased from the local carrier or phone company. Figure 2-23 summarizes some of the potential transmission services which can be purchased from local carriers. Most of these services will be explored further in later chapters.

Service Name               Dial-up Analog    2-wire  Rates:  Transmission

/Digital  /4-wire   Flat   Rate
/Leased                  or

                          Usage

ANALOG

POTS                       D           A        2       U    28.8Kbps w/V.34
                                                             modem

Voice Grade Leased         L           A        4       F    28.8Kbps w/V.34
                                                             modem

NARROWBAND DIGITAL

DDS                        L           D        4       F    9.6Kbps,
                                                             19.2Kbps, 56Kbps

DS-0                       L           D        4       F    64Kbps

BROADBAND DIGITAL

T-1                        L           D        4       F    1.544Mbps

T-3                        L           D      Fiber     F    44.736Mbps

DIGITAL DIAL-UP

ISDN                       D           D     2 or 4     U    144Kbps

Switched 56K               D           D        4       U    56Kbps

Figure 2-23 Transmission Services

Analog Services

Modems modulate digital input from computers into analog output compatible with the phone company's analog voice network. As will be seen in our study of data communications technology in Chapter 3, modems may be able to interface to analog dial-up services, analog leased lines, or both.

An analog or voice grade leased line is a normal voice grade line which bypasses the carrier's switching equipment. When the service is ordered, you must name the two or more locations which are to be connected. A new circuit is installed into these locations with a new RJ-11 jack interface added at each circuit location. There is no dial-tone on this new line because it does not go through any switching equipment. With only two locations connected, the circuit is called point-to-point, with more than two locations, the circuit is called multipoint.

For leased lines, charges include both an installation charge as well as a flat monthly charge. The installation charge may be significant, especially if the circuit crosses LATAs. The flat monthly fee does not vary by usage, unlike the dial-up voice grade circuits. The circuit is exclusively yours to use, 24 hours per day, 7 days per week.

Digital Services

As can be seen in Figure 2-23, digital transmission services available from carriers can be either dial-up or leased. One very important point to remember about interfacing to digital services is that a modem is not used since there is no need to modulate the computer's digital signaling into an analog signal. Rather than terminating the circuit with a modem, a CSU/DSU (Channel Service Unit/Data Service Unit) is employed. CSU/DSUs will be explored further in Chapter 3.

Narrowband Digital Services

In addition to being differentiated as either dial-up or leased, digital services can also be differentiated as to amount of bandwidth delivered. Digital services which deliver less than 1.544Mbps of bandwidth are generally considered as narrowband digital services.

When ordering a narrowband digital circuit the speed of that circuit must be specified to the phone company at the time the order is placed. Typical choices are:

  • Digital Data Services (DDS) at speeds of 2400, 4800, 9600, 19.2K, or 56Kbps
  • DS-0 (Digital Service Level 0) at 64Kbps.

This "declaring your speed" brings up a key difference in operation of analog and digital circuits.

When an analog circuit, dial-up or leased, degrades or has some kind of transmission impairment, many modems use fallback or lower speeds automatically and continue with data transmissions. With a digital circuit, the speed of the circuit is set at the CO, the CSU/DSUs are set to the speed of the circuit, and if there is a problem with the line, the data transmission ceases. It should be pointed out that digital circuits tend to be more error free than analog circuits. Simply stated, the key determining factor in the transmission speed of an analog circuit is the modem, while the key determining factor in the case of a digital circuit is the configured speed of the circuit itself.

Broadband Digital Services

Higher capacity digital services are also available. T-1 (1.544Mbps) and T-3 (45Mbps) leased lines are among the most popular services available. Although these services offer flat monthly rates, these rates usually vary with distance. T-1 lines can easily cost thousands of dollars per month while T-3 lines can easily cost tens of thousands of dollars per month.

Dial-up Digital Services

Digital dial-up services have become increasingly popular and more available with the tremendous increase in interest in Internet access. Integrated Services Digital Network (ISDN) is a dial up digital service which can offer up to 144Kbps (most often 128Kbps). Accessing an ISDN service from your home computer requires a device which performs the same basic functions as a CSU/DSU but is called a terminal adapter, network termination unit (NTU), or a digital modem. The term "digital modem" is really a contradiction in terms. Another digital dial-up service is known as Switched 56K. Interfacing to a Switched 56K service requires a Switched 56K CSU/DSU.

ISDN service, Switched 56K service, or any of the digital services listed in Figure 2-23, are not necessarily available at any given home or business location. One should never assume that any particular transmission service is available at any network location when performing network planning and design.






Back to Top

Wiley MIS Page | Wiley College Page | Wall Street Journal Business Extra
Who's My Rep | How to Order | Join the Mailbag!

Copyright © 1997 Wiley & Sons. All rights reserved.