Data Communications and Networking
Data Communications and Networking
Reading: Book Chapter 3 Data and Computer Communications, 8th edition By William Stallings
Outline
Concepts and Terminology Analog and Digital Data Transmission Transmission Impairments Channel Capacity
time
4
Usually, if data rate becomes higher, it is more difficult for the receiver to recognize the signal
higher data rate results in higher bit error rate
In order to achieve high data rate with low bit error rate, we need to study the principle of data communications
Terminology (1)
Data transmission occurs between transmitter and receiver over some transmission medium. Signal: electromagnetic waves
Can propagate along the transmission medium
Transmission Medium
Guided medium: the signals are guided along a physical path
e.g., twisted pair, coaxial cable, optical fiber
Terminology (2)
Direct link
Refer to the transmission path between the transmitter and receiver in which signals propagate directly with no intermediate devices, other than amplifiers or repeaters used to increase signal strength. Note that it can apply to both guided and unguided media
Point-to-point
Terminology (3)
Simplex transmission
Signals are transmitted in only one direction
e.g. Television
Half duplex
Signals can be transmitted in either direction, but only one way at a time.
e.g. police radio
Full duplex
Both stations may transmit simultaneously.
e.g. telephone
Digital signal
The signal intensity maintains a constant level for some period of time and then changes to another constant level.
10
Periodic Signals
Concept of periodic signal
The same signal pattern repeats over time. Otherwise, a signal is aperiodic.
s(t)=Asin(2 ft+)
Peak Amplitude (A)
Frequency (f)
Rate of change of signal Hertz (Hz) or cycles per second Period = time for one repetition (T) T = 1/f
Phase ()
Figure (a) displays the value of a signal at a given point in space as a function of time.
11
12
It can be shown (by Fourier analysis) that any signal is made up of components at various frequencies, in which each component is a sinusoid.
By adding together enough sinusoidal signals, each with the appropriate amplitude, frequency, and phase, any electromagnetic signal can be constructed. Any electromagnetic signal can be shown to consist of a collection of periodic analog signals (sine waves) at different amplitudes, frequencies, and phases.
13
This signal has only two frequency components: (1) frequency f (2) frequency 3f
14
(4/)sin2ft
(4/3)sin2(3f)t
15
17
Bandwidth = 6f
Bandwidth = infinity
18
19
Effective Bandwidth
Effective bandwidth is one property of transmission system. If the effective bandwidth of the input signal is larger than the bandwidth of transmission system, the output signal will be distorted a lot! The signals bandwidth should match the bandwidth supported by the transmission system.
Input signal Transmission System Output signal
20
Signals
electromagnetic representations of data
Transmission
The communication of data by the propagation and processing of signals
How aloud is the sound? How bright is the color? What is your weight?
Digital data
Discrete values, e.g., text, integers
Digital signal
A sequence of voltage pulses Almost unlimited bandwidth
23
24
25
27
Analog Data
28
Analog Transmission
Analog transmission is a means of transmitting analog signals without regard to their content.
The signals may represent analog or digital data. In either case, the analog signal will become weaker after a certain distance. Therefore, the analog transmission system includes amplifiers to boost the energy in the signal. Unfortunately, the amplifier also amplifies noise. With amplifiers cascaded to achieve long distances, the signal becomes more and more distorted.
For analog data such a voice, quite a bit of distortion can be tolerated and the data remain intelligible. For digital data, cascaded amplifiers will introduce bit errors.
29
Digital Transmission
Digital transmission is concerned with the content of the signal.
It can use digital signal, or analog signal.
30
Data integrity
With the use of repeaters, the effects of noise and other impairments are not cumulative. Thus it is possible to transmit data longer distances and over lower quality lines while maintaining the integrity of the data.
Capacity utilization
High bandwidth links become economical. High degree of multiplexing is easier with digital techniques.
Integration
By treating both analog and digital data digitally, all signals have the same form and can be treated similarly. Thus economies of scale and convenience can be achieved by integrating voice, video, and digital data.
31
32
33
Attenuation
Attenuation: signal strength falls off with distance. Depends on medium
For guided media, the attenuation is generally exponential and thus is typically expressed as a constant number of decibels per unit distance. For unguided media, attenuation is a more complex function of distance and the makeup of the atmosphere.
These two problems are dealt with by the use of amplifiers or repeaters.
35
Attenuation Distortion
(Following the previous slide)
3. Attenuation is often an increasing function of frequency. This leads to attenuation distortion: some frequency components are attenuated more than other frequency components.
Attenuation distortion is particularly noticeable for analog signals: the attenuation varies as a function of frequency, therefore the received signal is distorted, reducing intelligibility.
36
Delay Distortion
Delay distortion occurs because the velocity of propagation of a signal through a guided medium varies with frequency. Various frequency components of a signal will arrive at the receiver at different times, resulting in phase shifts between the different frequencies. Delay distortion is particularly critical for digital data
Some of the signal components of one bit position will spill over into other bit positions, causing intersymbol interference, which is a major limitation to maximum bit rate over a transmission channel.
37
Noise (1)
For any data transmission event, the received signal will consist of the transmitted signal, modified by the various distortions imposed by the transmission system, plus additional unwanted signals that are inserted somewhere between transmission and reception. The undesired signals are referred to as noise, which is the major limiting factor in communications system performance. Four categories of noise:
Thermal noise Intermodulation noise Crosstalk Impulse noise
38
Noise (2)
Thermal noise (or white noise)
Due to thermal agitation of electrons It is present in all electronic devices and transmission media, and is a function of temperature. Cannot be eliminated, and therefore places an upper bound on communications system performance.
Intermodulation noise
When signals at different frequencies share the same transmission medium, the result may be intermodulation noise. Signals at a frequency that is the sum or difference of original frequencies or multiples of those frequencies will be produced. E.g., the mixing of signals at f1 and f2 might produce energy at frequency f1 + f2. This derived signal could interfere with an intended signal at the frequency f1 + f2.
39
Noise (3)
Crosstalk
It is an unwanted coupling between signal paths. It can occur by electrical coupling between nearby twisted pairs. Typically, crosstalk is of the same order of magnitude as, or less than, thermal noise.
Impulse noise
Impulse noise is non-continuous, consisting of irregular pulses or noise spikes of short duration and of relatively high amplitude. It is generated from a variety of cause, e.g., external electromagnetic disturbances such as lightning. It is generally only a minor annoyance for analog data. But it is the primary source of error in digital data communication.
40
Bandwidth
In cycles per second, or Hertz Constrained by transmitter and the nature of the medium
Error rate
The rate at which errors occur, where an error is the reception of a 1 when a 0 was transmitted or the reception of a 0 when a 1 was transmitted.
We would like to make as efficient use as possible of a given bandwidth, i.e., we would like to get as high a data rate as possible at a particular limit of error rate for a given bandwidth.
41
Two Formulas
Problem: given a bandwidth, what data rate can we achieve? Nyquist Formula
Assume noise free
42
Nyquist Formula
Assume a channel is noise free. Nyquist formulation: if the rate of signal transmission is 2B, then a signal with frequencies no greater than B is sufficient to carry the signal rate.
Given bandwidth B, highest signal rate is 2B.
Given binary signal (two voltage levels), the maximum data rate supported by B Hz is 2B bps.
One signal represents one bit
43
Nyquist Formula
Signals with more than two levels can be used, i.e., each signal element can represent more than one bit.
E.g., if a signal has 4 different levels, then a signal can be used to represents two bits: 00, 01, 10, 11
Nyquists formula indicates that, if all other things are equal, doubling the bandwidth doubles the data rate.
44
All of these concepts can be tied together neatly in a formula developed by Claude Shannon.
For a given level of noise, we would expect that a greater signal strength would improve the ability to receive data correctly. The key parameter is the SNR: Signal-to-Noise Ratio, which is the ratio of the power in a signal to the power contained in the noise. Typically, SNR is measured at receiver, because it is the receiver that processes the signal and recovers the data.
45
Example
Consider an example that relates the Nyquist and Shannon formulations. Suppose the spectrum of a channel is between 3 MHz and 4 MHz, and SNRdB = 24dB. So, B = 4 MHz 3 MHz = 1 MHz SNRdB = 24 dB = 10 log10(SNR) SRN = 251 Using Shannons formula, the capacity limit C is: C = 106 x 1og2(1+251) 8 Mbps. If we want to achieve this limit, how many signaling levels are required at least? By Nyquists formula: C = 2Blog2M We have 8 x 106 = 2 x 106 x log2M M = 16.
47
KEY POINTS
All of the forms of information can be represented by electromagnetic signals. Depending on the transmission medium and the communications environment, either analog or digital signals can be used to convey information. Any electromagnetic signals, analog or digital, is made up of a number of constituent frequencies. A key parameter that characterizes the signal is bandwidth, which is the width of the range of frequencies that comprises the signal. In general , the greater the bandwidth of the signal, the greater its informationcarrying capacity.
48
KEY POINTS
A major problem in designing a communications facility is transmission impairment, including attenuation, distortion, and various types of noise. For analog signals, transmission impairments introduce random effects that degrade the quality of the received information and may affect intelligibility. For digital signals, transmission impairments may cause bit errors at the receiver.
49
KEY POINTS
The designer of a communications facility must deal with four factors: the bandwidth of the signal, the data rate that is used for digital information, the amount of noise and other impairments, and the level of error rate that is acceptable. The bandwidth is limited by the transmission medium and the desire to avoid interference with other nearby signals. Because bandwidth is a scarce resource, we would like to maximize the data rate that is achieved in a given bandwidth. The data rate is limited by the bandwidth, the presence of impairments, and the error rate that is acceptable.
50