Physical Layer

Sending signals

Voltage and current Time domain Frequency domain

Data rate and bandwidth

Since data is encoded into a signal, the faster that you can signal, the faster that you can communicate. Fast signals have small periods and large frequencies. Large frequency components mean high bandwidth signals. So the faster you communicate, the higher the bandwidth in the signal, and the more bandwidth you need in the medium. Or, looked at the other way, the bandwidth of the medium limits the speed at which you can communicate.

The rate at which the signal can change is the baud rate. Baud means signals per second.

Example of human speech

Nothing prevents us from using more than two possible signals, though this is the obvious means of communicating binary data. Since we can put more information (bits) onto a signal than just one, we can have a higher data rate (bps) than we have baud rate (or lower, I suppose).

Example of human speech

Fourier Analysis

Any continuous, periodic function can be represented as a sum of indvidiual sinusoidal components. In terms of the lab bench, this means that you can re-create any reasonable periodic function by hooking together an infinite number of sinusoidal signal generators adjusted to a set of harmonic frequencies and tweaking their amplitudes.

Since the bandwidth of a signal is determined by the difference between the highest and lowest frequencies, and the Fourier series for a waveform may have an infinite number of frequency terms, do we need infinite bandwidth to transmit certain waveforms? Luckily no, because the amplitudes of the individual components are decreasing with frequency. Include just a few of the lower harmonics and you get a pretty good representation of the signal being sent.

<figure 2-1>

Square waves

One easy means of representing binary data in a signal is to use a square wave. A positive voltate V will be a 1, and a negavtive voltage V will be a 0.

A square wave is composed of the sum of an infinite number of sinusoidal waves, its Fourier series.

A square wave with frequency f has a positive pulse and a negative pulse in each period. So each pulse lasts 1/2f seconds long (since each is 1/2 the period). Since each pulse can represent a bit, 2f bits are being transmitted per second on this waveform.

To get a square wave from sinusoids, we add sinusoids of frequencies f and 3f. This gives us a crude approximation. Note that the amplitude of the frequency components is not constant. The higher frequencies contribute less to the signal than does the main frequency.

If we keep adding frequencies, we get a better and better square wave. We need an infinite number of them for a perfect square wave. But this gives us infinite bandwidth.

How is data transmission rate related to bandwidth? The higher the data rate, the higher bandwidth is required.

Example

Questions

Channel Capacity

Nyquist determined the theoretical capacity of a noiseless channel of a given bandwidth.

A band-limited signal of W Hz can be perfectly reconstructed from a set of samples taken at frequency 2W. This is known as the Sampling Theorem.

Since the signal may have any number of different levels M, and we can encode our binary data into those levels, we can transmit
    log2 M bits per signal
using our sampled signal of 2W Hz, so the maximum data capacity of this noiseless channel is
   C =  2W log2 M bps

Questions

Signal Strength

An excellent reference for understanding decibels is http://otto.cmr.fsu.edu/~elec4mus/topics/decibel.html.

Expressed in decibels (logarithmic relation) because power often falls exponentially in real media. Using a log scale means that cascaded amplifiers and losses become simiple add/subtract power in dB. The ratio of power P1 to power P2 in dB is

Example Attenuation in media - energy is lost to heat, light is usually given by some figure per distance (dB/km) at a given frequency.

Signal/Noise ratio (SNR)

Noise

Many sources: thermal, impulse, crosstalk, intermodulation

Shannon extended Nyquist's work to determine a channel capacity for noisy channels. The only sort of noise his formula considers is thermal, or white, noise.

Data rate for error-free communication down a noisy channel

(the S/N is not in units of dB, but rather the "raw" ratio)

Does not account for anything but thermal (white) noise, so this is a best-case sort of limit. Applying this result to a voice-grade telephone channel you have W=3000Hz, SNR = 35dB and S/N = 3160, so C is about 35,000 bps.

What does this say about 56kbps modems?

Analog versus digital signals

Digital signals use a limited set of discrete values to represent their state. The bits are encoded into these states in some manner. A digital signal is like the set of answers on a multiple choice test; you must pick one of N values.

Analog signals are continuous; they may take any of an infinite number of possible values within some range. An analog signal is like the sound pressure wave that comes from a musical instrument.

Since any kind of signal (analog or digitial) degrades in strength during trasmission, signals must be amplified or boosted after some distance. Noise also creeps into the signal as it travels along. With analog signals the boosting is an amplifier. The amplifier can't know anything about the original signal, so it has no choice but to amplifiy both the signal and the noise.

A digital signal can be re-generated to be a perfect copy of the original. Digital transmission systems use repeaters, rather than amplifiers. This gives digital signals one big advantage over analog signals: noise is not cummulative as it travels from point to point in a multihop transmission.

An example of this can be seen by taking a picture and making a copy of it on a photocopy machine. Then make a copy of the copy, then a copy of the copy of the copy, etc. Each copy gets a litle worse, a little noisier. The SNR decreases with each copy. This is like an analog signal and amplifier. In contrast to this, think of how many times you could ftp a digital representation of the same image without any degradation.

<example copies>

Media

Electromagnetic spectrum

telephone voice: 300-3400 Hz
co-axial cable: 100KHz - 1GHz
AM radio: 100 kHz - 1MHz
FM radio, TV: 10MHz - 1000 MHz
microwave: 1 GHz - 100 GHz
infrared: 1000 GHz - 100 THz
visible: 100 THz - 1000 THz
ultraviolet: 1000 THz - 10,000 THz

Guided

Two open wires

The simplest scheme: signal on one and ground reference on another.
The signal is the voltage difference between the two wires.
Commonly used for connecting DTEs to DCE (data communication equip)
Susceptible to noise and crosstalk, since it is unshielded. Open wires are great antennas (broadcast and receive)
Limited in distance (50m) and speed (19.2k) because of this

Twisted pair

Twist the two wires together and you gain some immunity to interference
Shield the wires and things are even better
Can be used for 10Mbps Ethernet over 50m
Cat 3 and Cat 5 are common in office buildings

Coaxial cable

Skin effect at higher frequencies limits use of single wires.
Coaxial wires reduce these problems, as the fields travel in the insulator between the conductors
50ohm (RG58) used for digital signalling (Ethernet) good to max 1-2Gbps over 1km
75ohm used for analog, broadband signalling good for 400-500MHz and 100km

Optical fiber

Single optical fiber used to send light to a photo detector
Each fiber is: core, cladding, jacket, usually multiple fibers are bundled in a single sheathing
Core/Classing diameters are typical 8/125 microns (single mode) and 50/125 (multimode)
Core acts as waveguide for light of 10^14 to 10^15 Hz (lamba = c / freq)
0.2 dB loss per kilometer (factor of 2 in 15 km, 3db)

Single-mode (more expensive, higher bandwidth, narrower hence one angle) vs Multi-mode (cheaper, lower bandwidth, thicker hence multiple angles transmitted)
Attenuation of light in glass (of course frequeny dependent) determines wavelengths used (0.85, 1.30, 1.55 microns)
Light source: cheap LED or semiconductor laser
Used for 100s of Mbps (lab demos to 5Gbps, 100km repeater)
Used to be hard to join
Immune to electrical noise - tapping, interference properties

Dispersion (pulses spread due to dealy being frequency dependent) can be fought using specially shaped pulses known as solitons.

By comparison to copper, fiber is much lighter (like 100x), much smaller (100x ?), much higher capacity. Size and weight make it much easier to install, so no new copper is being installed anywhere.

The cost of fiber is very cheap. The manufacture of the fiber cable, and the installation of the cable is what is expensive.
40,000 km installed in 1999

Optical amplifiers

short loop of doped Erbium fiber
no electrical components, no repeating signal
100 - 1000 times amplification
enables long fibers, undersea
go 100s of km with these
terrestial links use electronic repeaters every 250km, all optical in between
Wavelength multiplexing
30 year old fiber works just fine - compare that to other media, IT infrastructure
increase capacity of previously installed fiber
combine with optical amplifier - saves lots of money since you would need N separate repeaters, one for each wavelength
32 available 1999, 64 and 128 are coming soon
160 x 10 G bps = 1.6 Tbps for sale from Nortel 2000
Project Oxygen
cables all over the world
WDM
2 T bps on a single cable
Limits?
50 THz of bandwidth on fiber, if you go up to 0.4 dB/km - 50-100 Tbps
once the limit is hit, go for better spectral efficiency
the limit will be reached in 10 years(?)
new weird fibers with holes like Swiss cheese to reduce losses
All optical repeater
when the electronics can't keep up
wavelength converters
complete optical repeater is possible
available 5-10 years from now
Plastic optical fiber (POF)
250 M bps, easy to handle, cheap, short distances - home networks

Unguided

Unguided, or wireless, media have advantages for Traditional wireless techniques are narrow-band; the energy is concentrated in a narrow range of frequencies reserved for a particular communication application.

Another possibility is to spread the energy over many frequencies. There are several ways of doing this, all known as spread spectrum techniques. Advantages include privacy, since the signal at any particular frequency isn't any higher than the background noise (frequency domain picture helpful here), and channel sharing, since many simultaneous conversations may occupy the same spectrum without interference.

The frequency of the energy used determines many of the characteristics and problems involved. For instance, low frequency energy goes through obstacles like walls, but is attenuated very strongly in air (say proportional to the cube of the distance travelled). At higher frequencies energy is blocked by obstacles, or bounces off, but doesn't attenuate as rapidly, so travels further.

Radio Frequency

Send your signals like a radio station: AM and FM are examples
Energy broadcast, or slightly focused
Channel characteristics highly dependent on frequency (e.g. AM bounces, FM doesn't)

Microwave

Line-of-sight (highly focused)  means distance limited by curvature of earth, height of tower
100m towers means approximately 80km between repeaters
Towers may be cheaper than aquiring right-of-way for fiber over the same distance, depending on location of path.
Data rates of 12-274 Mbps
Susceptible to electrical interference, but has very high capacity
2GHz and up, mulitple channels are multiplexed together

Infrared

cheap, unfocused, don't go through obstacles, limited distance
good for remote controls, consumer electronics apps
beginning to see applications in LANs, peripherals, PDAs

Satellites

transponders act as repeaters/amplifiers low earth satelites move with respect to a fixed point on the ground geosynchronous orbit satellites are fixed satellites have certain advantages over fiber, even though fiber has huge capacity:

Cellular Radio

References

Mobile users drive the need for wireless communication. The first service to be widely availble on wireless was voice: cellular telephones, cordless phones, pagers. This is now expanding to data connections to PDAs, laptops, phones, pagers, etc.

Analog cellular phones

AMPS (TACS in England)

Digital cellular phones

http://www.smu.edu/~mbarthol/globaltelecomm.htm#_Toc385155572

US

Europe, and much of the rest of the world PCS/PCN

Telephone System

Just going to do this briefly to introduce some of the important ideas found in the PSTN system.

Architecture: local loop - end office - toll office - switching office

<figure 2-37, telephone switch network hierarchy>

All but the local loop is now digital. The system used is called PCM (pulse code modulation).

PCM

Telephone signals require sampling at 8KHz, since the highest necessary frequency in human voice is 4KHz (Sampling theorem).

Analog data -> Sampler -> Quantizer

The analog data is sampled and the amplitude of a narrow pulse is set to the sample value (PAM).  If the values of the signal are rounded off to an integer, then you have PCM.  Each pulse represents log2M bits where M is the number of levels.

The quantizer introduces noise, since it is approximating the value of each pulse by rounding it off to the nearest integer level.  This noise can be expressed as a formula involving the number of bits used and a constant:

Non-linear quantization can improve the SNR.

Good voice reproduction can be done with 128 levels (7 bits) of PCM data.  8000 samples/second * 7 bits/sample = 56k bps. Another bit is used by each channel for signalling, so the total data rate is 64kbps per voice channel.

Modems

The local loop is how your home computer joins a packet-switched network like the Internet. The challenge is we want to send digital data over a system designed to transmit analog voice signals. The irony is that now almost all of the phone system except the local loop is digital.

The fact that your modem converts a digital signal into an analog signal for the benefit of the PSTN, only to have the modern PSTN equipment re-convert it into a digital PCM signal isn't just ironic, it introduces quantization noise. Even if you had a perfectly noiseless local loop this quantization process puts a "noise floor" on the SNR of 35 to 36 dB. This means with a 3000Hz spectrum Shannon's limit is 34,822 bps.

V.32

TCM (trellis coded modulation) adds redundancy
signal constellation
send 32 possible phase/amplitude pairs
4 data bits, 1 trellis bit

2400 baud x 4 bits/baud = 9600 bps

echo cancellation - subtract out your own signal from what you received
provides for full duplex, full bandwidth in each direction (need a fast DSP)

V.32bis

128 constellation points (6 data, 1 trellis)
2400 baud * 6 bits/signal = 14,400 bps

Compression: V.42bis/MNP5

compression done by the modem, factor of 3.5 - 4 to 1

looks for patterns of 32 bits, encodes as a single character, adds to library
receiving modem learns library and decompresses
transparent to software and kernel

V.34

The highest V.34 rate uses a carrier of 1959 hz, and a symbol rate of 3429 symbols per second, giving a bandwidth from about 244 hz to 3674 hz. The constellation is such that you have 1,664 symbols, or 10.7 bits per symbol, for a maxium data rate of 36,690 bps. A technique called "fractional bit rates" allows for 10.7 bits per symbol.

USRobotics X2

See 3Com U.S. Robotics - x2 Technology for a simple reference to this new modem technology.  For a more complexte and complex description of modem technology in general and 56k technology in particular, try  Rockwell Semiconductor Systems and follow the path to the K56 technologoy page; the "Whitepaper" is good.

Recently introduced by USRobotics (aka 3Com) to get 56kbps over analog phone lines. The key to getting passed the theoretical limit of around 30kbps on a 3kHz phone line was recognizing that only the local loop was still analog, and that it was generally short and of high quality so that it could pass a digital PAM signal in 4kHz.

56k modems works by having the ISPs modems skip the digital to analog conversion (avoids the noise of quantization) by sending PCM encoded signals directly through the network and to the line card connecting the home modem to the end office. This gives the full, digital, 64kbps data rate from the ISP to the house, and is possible when the ISP buys special equipment that let it connect directly to the switching trunks (and hence do the digital signalling). The signalling technique being used downstream is therefore not a phase or frequency modulation technique like V.34, but PAM (pulse amplitude modulation) where each of the 8 bit symbols is assigned one of 256 particular voltage levels.

To achieve 56kbps requires only that 128 levels of the possible 256 are used, so the max is 56kbps. If the phone lines don't allow for even 128 levels to be distinguished, then the modems fall back to using fewere levels (and hence fewer bits per symbol). The typical speed is in the mid 40s kbps. This has not hindered USR marketing efforts.

Going the other direction all digital is impossible, since the local loops go to the end offices which expect to receive an analog signal from the homes, so V.34 is used for upstream traffic. This is a good match to current uses of temporary Internet connections (think of how you use the Web).

N-ISDN

ISDN was designed to replace the PSTN by integrating data and voice networks. It hasn't, and probably won't. ISDN is a CCITT effort, first approved in 1984

ISDN Services

ISDN Evolution

PSTN system infrastructure is too expensive to just junk, particularly the local loop. ISDN has been shaped by need to coexist and phase in. 20,000 end offices in US, 1 billion twisted pair connections to them. Lots of copper - can't replace them all with fiber, but have replaced trunks with fiber. ISDN had to live with these facts.

Available capacity is only 2Mbps for 80% of short loops, less for rest.

To use ISDN your switching office must be ISDN capable, you must have an ISDN terminal or computer, and the place you are calling must have ISDN.

ISDN Architecture

two way digital bit pipe - end devices can be anything
channel is divided by TDM into independent channels
low channel - for home use
high channel - for business use

<picture of ISDN exchange, network terminating device, home bus>

network terminating device is smart
assigns addresses automatically
supports 8 devices on bus
does contention resolution
monitors performance, does maintenance
adaptors can be used to connect RS232 terminals to ISDN PBXs

A - 4KHz analog phone
B - 64kbps digital channel for voice or data
C - 8 or 16 kbps digital
D - 16 or 64 kbps digital for out-of-band signalling
E - 64 kbps for internal ISDN signalling
H - 384, 1536, 1920 kbps digital channel

Standard combinations are

Technology moves so quickly that standards are obsolete before available (e.g.digital voice only requires 16kbps now, not 64kbps). ISDN not enough for televsion, so separate cable TV still needed.

Digital Subscriber Line (DSL)

1980s Lechleider proposed using the actual bandwidth available from copper pair phone lines and using multilevel encoding to achieve 800 kbps in each direction over 4000 m. This symmetric scheme was known as HDSL (high bandwidth DSL).

At about the same time Cioffi at Stanford proposed a discrete multitone signalling scheme of dividing the channel into 256 discrete subchannels of approximately 4 k Hz each. The result was 8 M bps over 1600 meters.

The discrete multitone system became an international standard and was used to give 6 M bps "downstream" or coming into the house, and 0.6 M bps for the upstream connection for Asymmetric DSL.

ADSL can avoid using the 300 - 3300 Hz used by a voice channel, so you can have data and voice on a single line, something not true of symmetrical or HDSL.

By trading off speed for distance you can reach more houses (up to 5500 m from the CO) and still achieve high data rates. G.Lite is an international standard of ADSL that yields 1.5 Mbps downstream and 0.5 Mbps upstream.

From the CO DSL lines are multiplexed onto OC-3 155 Mbps lines.

Broadband ISDN & ATM

We've talked about circuit and packet switching. ATM uses a strategy which gets the best characteristics of both.

ATM switching

ATM uses cell switching (like packet switching, but with very small cells) technology but provides connection-oriented or circuit switching services. This is called virtual circuit switching. Routing tables in each node of the network make entries which define a virtual circuit through the network. The cells then follow this virtual circuit. Note that there is still set-up time with this scheme. The switches may also reserve capacity for a virtual circuit to guarantee performance.

ATM also allows for permanent virtual circuits where a reservation is made by contract with the PSTN and the circuit is dedicated to a particular customer. This eliminates the set-up time for the virtual circuit.

Pros

Cons

Transmission

The A in ATM stands for asynchronous and refers to the fact that the cells flowing through a channel are in no particular source order. The existing telephone carrier standards (e.g. T1, T3) are synchronous in that each frame is divided into separate bytes and the nth byte of each frame is dedicated to the nth source using the channel.

<figure 2-44>

ATM links are always point-to-point and are unidirectional. Two lines must be used for bi-directional traffic. ATM may be carried on fiber or short turns of UTP. The details are taken care of by the PMD sublayer.

The initial ATM speeds of 155M and 622M were chosen to be compatible with a signalling standard for fiber called SONET.

ATM switches are tricky things to design because they must operate very quickly, provide virtual circuit services, and be able to guarantee various quality of service parameters.

Controller Area Network (CAN)

Used in automotive, other industrial applications.

Two wire interface running over S-TP, UTP or ribbon cable. Data rates between 20 kbps and 1 Mbps. Lengths up to 1 km (40m at 1 Mbps).

Asycnronous signalling is NRZ and bit-stuffing is used as necessary to guarantee enough bit transitions to maintain synchronization.

Start and stop bits are sent around each character of data.

Frame format is: Arbitration, Control, Data, CRC, ACK.

The data frame is 0-8 bytes. Frame is defined by start of frame, end of frame symbols.

11 bit identifier for each message (Control field?). 7 bits of this are address for total of 128 devices. 4 bits are for the message type (SYNC, TIME STAMP, EMERGENCY, PDO TX, PDO RX, etc).

The 8 bytes of data are process data objects (PDOs).

Supports synchronous polling of devices for data. High priority SYNC message causes modules to respond with data.