Chapter 2 - The Physical Layer

The physical layer is primarily concerned with physically transmitting data over some medium such as wire, optical fiber or electromagnetic. Usual concerns are: how far and how fast does the medium allow data transmission, how is data represented, and how efficiently is the medium utilized.

2.1 Theoretical Basis for Data Communication

Computers operate on binary data. To be transmitted over some physical medium, binary data are generally converted into electrical or optical signals.

 

 

2.1.1 Fourier Analysis

The key insight to draw from this section is that a reasonably behaved periodic wave, such as a square wave used in digital communication, can be approximated by summing a number of sine and cosine waves of different frequencies and amplitudes. Jean-Bapiste Fourier developed the method given in the text for computing the appropriate amplitudes and frequencies of the individual waves that change over time.

To see how this method works we'll start with Figure 1, the fundamental frequency having a period of 1/10 second. By adding sine waves to produce:

Figure 4 = Figure 1 + Figure 2 + Figure 3

where

Figure 1:    f1=10 Hz., A1=1

Figure 2:    f2=30 Hz., A2=0.3

Figure 3:    f3=50 Hz., A3=.2

we produce a reasonable approximation of a square wave in Figure 4. By adding more, higher frequency sine waves, the approximation more closely resembles a square wave. In general, the periodic sine function examined here can be expressed as the infinite series:

A1 sin(t) + A2 sin(3t) + A3 sin(5t) + A4 sin(7t) + ....

where t= time and A=amplitude; adding higher frequencies produce a better approximation of a square wave. Note that the general case stated in the text is required for the analysis of any given wave. Here we are approximating a square wave by combining higher frequency waves that are multiples of the fundamental frequency but at a lower amplitude

Figure 1  10 Hz.

Figure 2  30 Hz.

Figure 3  50 Hz.

Figure 4 = Figure 1 + Figure 2 + Figure 3

Exercise

Practical application of Fourier analysis

There is a practical observation for us from Fourier's result. Due to capacitance and resistance the signal sent over a conductor degrades as distance increases, and the higher frequency signals are the most sensitive to distortion.

Because higher frequency waves travel slower than low frequency waves, the high frequency component of one data bit are eventually overtaken by the low frequency components of a later bit.

From the figures above, Fourier analysis shows us that as higher frequencies with lower amplitudes are added the resulting wave more closely approximates a square wave. Conversely, if higher frequencies are removed, the square wave signal degrades to look more like the fundamental frequency wave, not good news when sending a digital signal that must approximate a square wave. 

The following illustrates in (a) the ideal digital signal sent, (b) the fundamental or first harmonic, and progressively better approximations by adding additional, higher frequency and lower amplitude signals.

2.1.2 Bandwidth-Limited Signals

Consider the figure at right where two voltage levels are encoded for binary 0 = -12v and 1 = +12v versus four voltage levels where binary 00 = 0v, 01 = 2v, 10 = 4v, and 11 = 6v. In the same time period the four voltage level encoding transmits twice the number of bits, 0001101100 versus 01010 using the two level encoding. 

What is 25?

How many levels of encoding are needed to encode 5 bits?

Baud - The number of changes in a data signal per second. A four-level encoding yields two bits per voltage change at a baud rate of 100 (100 signal changes per second) gives a bit per second (bps) rate of 200. Using two-level encoding, the baud rate and the bits per second are the same since each change yields one bit of data.

How many voltage levels are required to send 8 bits per baud?

How many bits could be sent per baud using an 32 level encoding scheme? 

A 256 level encoding yields 8 bits per baud. What is the bit rate at 100 baud?

It is common for data signals to only transmit 1 bit per baud. Why not transmit at the much higher rate of 8 bits per baud and send 8 times bits per second?

Problem - How successful would you expect to be able to transmit data over a voice grade phone line? Consider sending 8 bits at b bps. The table below illustrates the practical relation that as the data rate increases demanding higher frequency signal components, the number of harmonics sent decreases, which we have seen degrades the signal fidelity.

Relation between data rate and harmonics
Bps T First Harmonic (f Hz=1/T) # Harmonics Sent
10  .8 sec.  1/0.8 sec. = 1.25 Hz.  3000 Hz./ 1.25 Hz. = 2400
100  .08 sec.  1/0.08 sec. = 12.5  Hz.  3000 Hz./12.5 Hz. = 240
1000  .008 sec.  1/0.008 sec. = 125 Hz. 3000 Hz./125 Hz. = 24
10000 .0008 sec.  1/0.0008 sec. = 1250 Hz. 3000 Hz./1250 Hz. = 2

For example, to send 8 bits at 100 bps, each bit occupies 0.01 seconds on the wire so that 8 bits are sent in T=0.08 seconds. The first harmonic is the lowest frequency wave with f = 1/T = 1/0.08 sec. = 12.5 Hz. Recall that 12.5 Hz. means that there are 12.5 cycles of the signal wave in 1 second. With a maximum signal bandwidth of 3000 Hz. the highest multiple (the harmonic) of the first harmonic is 3000 Hz./12.5 Hz. = 240. That implies that at 100 bps the 8 bits can be represented by waves with frequency components a multiple of 240 times the fundamental frequency. From the table, one should expect the square wave representing the 8 bits to transmit much more reliably sent at 100 bps than if sent at 1000 bps or 10000 bps.

2.1.3 The Maximum Data Rate of a Channel

 

 

 

2.2 Transmission Media

2.2.2 Twisted Pair - The most common media used for local phone and local area networks. Consists of two copper wires twisted together in a specific pattern to reduce interaction between the signals (cross-talk) on nearby wires.

Signals on wires running in parallel at a close proximity tend to interact producing cross-talk, the twists reduce interference. Advantages of wire is low cost, ease of installation and connections, and relatively high data rates of 2 Mbps for up to several kilometers are possible. Limitations include low data rate for connecting networks over long distances and need for regenerating the original signal.

  • Category 3 - Consists of 4 twisted pairs (8 total wires) commonly used for phones and early LANs such as 10 Mbps Ethernet.
  • Category 5 - Similar to Category 3 but with more strategically placed twists to reduce cross-talk. Can be used for phones and LANs including 100Mbps Ethernet over short distances.

2.2.3 Baseband Coaxial Cable - Baseband systems support a single frequency and a single transmitter at a time. The cable consists of a copper core conductor wrapped in an insulator wrapped in a braided outer conductor covered by a protective plastic insulator. Commonly used for digital broadcast transmission for LAN (e.g. Ethernet). With better shielding has higher data rate over longer distance, up to 1 or 2 Gbps over 1 kilometer. Generally used in backbones to connect twisted-pair networks but recently being replaced by fiber optics. Somewhat more difficult to install than twisted pair because of cable stiffness.

2.2.4 Broadband Coaxial Cable - Broadband systems support multiple frequencies and multiple transmitters. Standard cable television cabling supports multiple stations. Similar to baseband coaxial cable but used for analog transmission. Has bandwidth of 300 Mhz over 100 kilometers since analog signaling of TV, etc. is much less critical than digital. The bandwidth can be divided in multiple channels with each channel used to carry a different transmission, data, television, telephone, etc. Transmitting digital data requires converting the digital signal to analog, transmitting, then converting back to digital. For data communications, one channel can be allocated for sending and another for receiving over same cable.

2.2.5 Fiber Optics - Fiber optics avoids the limitations of wire due to resistance and capacitance, is impervious to electrical noise, is smaller than wire, has nearly unlimited bandwidth potential. As the text points out, it is now possible to transmit data faster than a computer can generate data. Today at least, computation is somewhat slower than communication.

The system consists of three components: light source (an LED for lower cost, lower data rate, and shorter distance or semiconductor laser), the optical fiber, and the light detector. Refraction of light at the surface of the fiber transmits the light waves long distances with little loss. Though more expensive to install and purchase, it is the medium of choice for fixed connections of over a few meters long given its many other advantages over copper.

2.3 Wireless Transmission

l = wavelength, the distance between maxima or minima of two wave peaks. Usually given in meters.

f = frequency in Hertz

c = speed of light, slightly less than 3x108 mps.

lf = c

l = c/f = 3x108 meters per second/3x108 waves per second = 1 meter per wave.

l = c/f = 3x108 meters per second/3x106 waves per second = 100 meters per wave.

 

2.5 The Telephone System - Read the text pages 118-124, it is both entertaining and enlightening.

2.5.3 The Local Loop - Conductor generally is copper having the limitations of signal transmission examined earlier. Each instance of an impairment to a digital signal increases the likelihood that the transmitted data will be incorrectly received. Due to these problems it is unwise to send a wide range of frequencies, unfortunately digital signals are made up of square waves, which have been shown to consist of a low frequency fundamental wave and many higher frequency waves.

(a) DC signaling    (b) AC signaling

The major transmission problems associated with baseband (i.e. DC or sending discrete voltages to form a square wave representing a digital value) signaling at high speeds and long distances are:

Modems - Modulator/demodulator, accepts serial bit stream and produces a modulated carrier signal as output. The reverse occurs on the receiver, where a modulated carrier signal is converted into a bit stream.

The figure below illustrates in (a) a sine wave shifted 0 degrees or starting at y=sine 0 = 0 and in (b) a shift of 90 degrees or starting at y=sine 90 = 1.


Figure 8. a) binary signal. b) Amplitude modulation. c) Frequency modulation. d) Phase modulation

An example of the types of modulation is given in Figure 8. The binary signal of Figure 8a, is modulated in the successive figures.

Amplitude - In Figure 8b, when the carrier wave frequency is present a 1 is transmitted, when no carrier a 0 is transmitted.

Frequency - In Figure 8c, a high frequency indicates a 1 while a low frequency is a 0.

Phase - In Figure 8d, the phase is shifted (part of the normal sine wave is missing) by a fixed number of degrees. Apparently, when the data is 0 a phase shift indicates the next data is a 1 or vice versa, and no shift is a continuation of the same bit value. A phase shift of 180 degrees is used when sending a 1 after a 0 and 315 degrees for 0 after a 1.

Figure 9. a) 3 bits/baud modulation. b) 4 bits/baud modulation.

Combined modulation - Figure 9a illustrates the use of two amplitude levels and four phase shifts giving a total of eight distinct modulation values; amplitude is the distance from the origin; phase the angle relative to the right horizontal axis. One possible encoding of the amplitude/phase modulation is given in the table below.

Figure 9b is a 4 bit/baud amplitude/phase modulation called QAM (Quadrature Amplitude Modulation) used to transmit 9600 bps over a 2400 baud capable line using 2 voltage levels and 12 phase shifts. Higher bit rates are possible by increasing the bits/baud rate if the modulations can be reliably distinguished.

Amplitude/Phase encoding of 
Figure 9a
Voltage Phase Binary
5 0 000
10 0 001
5 90 010
10 90 011
5 180 100
10 180 101
5 270 110
10 270 111

How many different encodings can be sent with a 4-level amplitude? Give example diagram.  How many bits per baud? 

With a 4-phase shift? Give example diagram.  How many bits per baud? 

Combining both? Give example diagram.  How many bits per baud?  Give a possible encoding table.

Figure 9c illustrates the amplitude and phase shifts of 3 bit per baud QAM encoding for 7200 bits per second at 2400 baud. For example, interval 2 has amplitude of A1 and phase shift of 90 degrees to send the 3 bits of 010 at each change or baud. At 2400 baud 7200 bps is sent. Interval 3 has a phase shift of 180 degrees and interval 8 a phase shift of 270 degrees.

Figure 9c


 

For interval 6: What is the phase shift? What is the amplitude?

For interval 7: What is the phase shift? What is the amplitude?

 

2.5.4 Trunks and Multiplexing - Multiplexing in communications is the use of a single channel to carry multiple transmissions. The basic multiplexing categories are:

 

 

 

On the transmitting end of a T1, a codec (coder-encoder) samples the analog amplitude of 24 4000 Hz. voice lines each at 8000 samples per second (recall that the Nyquist theorem states that a a signal must be sampled at twice the signal frequency) or one sample every 1/8000=125 microseconds for each of the 24 lines. A total of 8000*24= 192000 samples per second are taken, converted from analog to a 7 bit digital value by the codec and one bit is added for signaling and the 8 bit number is transmitted (8 bits provides 256 different values with which to represent the transmitted voice digitally), for a total of 1,536,000 bps.

Figure 10 illustrates the format in which one group of 24 samples are transmitted 8000 times per second. In addition to the data bits an additional 8000 framing bits (one to separate each 24 sample group) is transmitted, giving a total gross transmission rate of 1,544,000 bps for a T1. At the receiving end, the 8 bit value is converted from digital to analog, and demultiplexed onto one of the 24 outgoing lines. Connecting computers over a T1 is fully digital data transmission and does not require the analog to digital and digital to analog conversion necessary for telephone conversations.

Figure 10 - T1 carrier (1.544 Mbps)

What is being sampled on a phone conversation?

Why sample a phone conversation at 8000 per second?

What is the maximum raw data rate of a single channel?

Assuming the input voltage range of the codec is -10 to 10 volts, what would be a reasonable 7-bit encoding for 10 volts? For -10 volts? For 0 volts?

Figure 11 - Delta modulation

What is the likely effect of delta encoding on phone conversation when rapid volume changes occur?

Is this practical for data communications? Why or why not?

2.5.5 Switching -  Voice communication tends to be short duration but continuous. Computer communication tends to be bursty with long periods of no transmission.  Because of these differences, voice is often transmitted over a fixed, dedicated channel or circuit while data is normally transmitted in an occasional packet, as needed, over a temporary or shared channel. Figure 12 graphically illustrates the overall time required by three switching methods to transmit a message.

Figure 12 - Timing of events in a) circuit switching, b) message switching, c) packet switching

Crossbar switch - Used for circuit switching and conceptually simple, a crossbar switch consists of n intersecting input and output lines. At each intersection is a switch that can be closed to form the connection. Normally only one switch is closed in any row or column though closing all switches would broadcast all transmissions. For line 3 to connect to line 2 the switch at row 3, column 2 must be closed. If the connection is full duplex (both directions) there is no need to close the row 2 column 3 switch. In fact only half the switches as possible connections are required.  The main problem is that the number of connecting switches grows at roughly n2 or exponentially.

What are the connected station numbers?

What is the total number of switches needed for full interconnectivity when half-duplex is used? Full duplex?

Time division switches - Used for switching digital data channels such as a T1 that use time division multiplexing.

The array tables in TDSs grows linearly with the number of lines but are limited primarily by the access speed of memory used to store connection table and received data.

Assuming the diagram above is used for switching 4800 bps RS-232 communications of 10 bits per character, what is the memory access speed required? Hint: Consider 4 lines with 10 bits of new input arriving on each line 480 times per second. 

Narrowband ISDN - Integrated Services Digital Network is a fully digital, circuit switched phone system designed to provide end-to-end digital service, integrating voice and non-voice services. Voice services would be digital also, a digital phone might use PCM. Other services would be digital data communication for networking or connecting to other customer digital devices (alarms, imaging, etc.).

ISDN System Architecture - Current phone system is analog from customer to carrier office, ISDN would bring a digital bit pipe to most customers using the existing phone wire, an important financial consideration. The pipe supports multiple channels. The basic rate is two B channels (a 64  kbps channel similar to a single PCM voice channel that requires 8000 per second 8 bit samples) and one D channel (a 16 kbps channel for signaling: dial tone, dialing numbers, etc.). The basic rate is designed to replace the current analog system to homes. The primary rate is essentially a T1 line consisting of 23 B channels and 1 D channel, designed for businesses to connect digital PBX, networking, etc.

Broadband ISDN and ATM (Asynchronous Transfer Mode) - Broadband ISDN would increase the bandwidth over narrowband ISDN (to 156 Mbps) but require new local loop cabling (Category 5 or fiber) and use ATM (of packet switching rather than current circuit switching).

Virtual Circuits versus Circuit Switching - Broadband ISDN provides connection oriented service that is implemented internally using packet switching.

Transmission in ATM Networks - Contrast ATM with a T1 carrier.


Document last modified: