Data and Signals Lecture 1
Data and Signals Lecture 1
Forouzan Chapter 3
Graduate Program in Telecommunications, GMU 1 TCOM 500 - 2012
Introduction
Information: text, numbers, audio, images, video. The term analog data refers to information that is continuous; digital data refers to information that has discrete states. Analog data take on continuous values. Digital data take on discrete values.
1/24/2012
Introduction
Central questions for this course: How is information represented in digital form? -Where do bits come from? How is digital information processed and transmitted? -What is the best way to send digital information to a remote location? What are the properties and limitations of transmission media? How does one make exchange of digital information reliable and secure?
Digitizing Information
Text: Unicode and ASCII (see appendix A) In ASCII, 8 bits are used to encode characters that are common in English text (plus a number of control characters). Unicode uses 32 bits to represent a symbol or character used in any language in the world. Numbers: Decimal to binary conversion.
Audio: Analog to Digital Converters (ADCs) are used to digitize a speech signal.
1/24/2012
Digitizing Information
Images
To digitize an image, light is projected onto an array of light-sensitive sensors . The most prevalent transducers used in digital cameras are charge-coupled devices (CCD). CCDs were invented in 1969 at Bell Labs by Boyle and Smith (2009 Nobel Prize for Physics).
Digitizing Information
Images The output voltage of each CCD is sampled and A/D converted and then transferred to memory CCDs transduce the intensity of the incident light. This leads to grey scale (B&W) images. To create color images, filters for red, blue, and green light are used. Pixels will indicate only how much red, green, or blue light is present at its location. Video Video signals are created by periodic (in time) capture of images. In addition to the spatial sampling involved in capturing an image, temporal sampling is needed for creating video.
1/24/2012
Both analog and digital signals can take one of two forms: periodic or nonperiodic. A periodic signal completes a pattern within a measurable time frame, called a period, and repeats that pattern over subsequent identical periods. A nonperiodic signal changes without exhibiting a pattern or cycle that repeats over time. In data communications, we commonly use periodic analog signals and nonperiodic digital signals.
1/24/2012
A sine wave is the most fundamental form of a periodic analog signal. A sine wave can be represented by three parameters: the peak amplitude, the frequency, and the phase.
Graduate Program in Telecommunications, GMU 9 TCOM 500 - 2012
10
1/24/2012
Period is expressed in seconds and frequency is expressed in Hertz (Hz), which is cycles per second.
11
Two signals with the same amplitude and phase, but different frequencies.
Graduate Program in Telecommunications, GMU 12 TCOM 500 - 2012
1/24/2012
13
14
1/24/2012
wavelength
c f
The propagation speed of EM signals depends on the medium and on the frequency of the signal. eg.. c= 3x108 m/s in vacuum and c 2x108 m/s in data cable.
Graduate Program in Telecommunications, GMU 15 TCOM 500 - 2012
16
1/24/2012
17
Composite signals
A single-frequency sine wave is not useful in data communications; we need to send a composite signal, a signal made of many simple sine waves. If the composite signal is periodic, the decomposition gives a series of signals with discrete frequencies. If the composite signal is nonperiodic, the decomposition gives a combination of sine waves with continuous frequencies.
18
1/24/2012
19
20
10
1/24/2012
21
In time domain representation of this composite signal, there are an infinite number of simple sine frequencies (frequencies are continuous). Although the number of frequencies in human voice is infinite, the range is limited. A voice signal contains a continuous range of frequencies between 0 and 4 KHz.
Graduate Program in Telecommunications, GMU 22 TCOM 500 - 2012
11
1/24/2012
Signal Bandwidth
The range of frequencies contained in a composite signal is its bandwidth. It is the difference between the highest and lowest frequencies contained in that signal.
23
Signal Bandwidth
An example of a nonperiodic composite signal is the signal propagated by an AM or FM radio station. In the United States, each AM radio station is assigned a 10-kHz bandwidth. The total bandwidth dedicated to AM radio ranges from 530 to 1700 kHz. Each FM radio station is assigned a 200-kHz bandwidth. The total bandwidth dedicated to FM radio ranges from 88 to 108 MHz.
24
12
1/24/2012
Digital Signals
A digital signal can have two or more levels. In general, if a signal has L levels, each level represents log2L bits.
25
Most digital signals are nonperiodic, and thus frequency and period are not appropriate characteristics. Bit rate and bit length are used to describe digital signals instead. Bit rate is the number of bits sent in 1 second, expresses in bits per sec (bps). The bit length is the distance one bit occupies on the transmission medium. Bit length = propagation speed x bit duration.
26
13
1/24/2012
What is the bit rate for high-definition TV (HDTV)? HDTV uses digital signals to broadcast high quality video signals. The HDTV screen is normally a ratio of 16 : 9. There are 1920 by 1080 pixels per screen, and the screen is renewed 30 times per second. Twenty-four bits represents one color pixel.
28
14
1/24/2012
Note that both bandwidths are infinite, but the periodic signal has discrete frequencies while the nonperiodic signal has continuous frequencies.
Graduate Program in Telecommunications, GMU 29 TCOM 500 - 2012
30
15
1/24/2012
Baseband transmission
Baseband transmission requires that we have a low-pass channel, a channel with a bandwidth that starts from zero. This is the case if we have a dedicated medium with a bandwidth constituting only one channel.
31
Baseband transmission
Baseband transmission of a digital signal that preserves the shape of the digital signal is possible only if we have a low-pass channel with an infinite or very wide bandwidth.
32
16
1/24/2012
Bandpass transmission
If the available channel is a bandpass channel, we cannot send the digital signal directly to the channel; we need to convert the digital signal to an analog signal before transmission.
33
Transmission Impairments
34
17
1/24/2012
Decibel
The decibel (dB) measures the relative strengths of two signals or one signal at two different points. The decibel value is negative if the signal is attenuated and positive if the signal is amplified. Relative power gain or attenuation in decibels is given by
PdB
Ohms Law equations to voltage.
P
10 log 10
V2 R
P2 P 1
VdB
20 log 10
V2 V1
TCOM 500 - 2012
35
Decibel
Suppose a signal travels through a transmission medium and its power is reduced to one-half. This means that P2 is (1/2)P1. In this case, the attenuation (loss of power) can be calculated as
A signal travels through an amplifier, and its power is increased 10 times. This means that P2 = 10P1 . In this case, the amplification (gain of power) can be calculated as
36
18
1/24/2012
Decibel
One reason that engineers use the decibel to measure the changes in the strength of a signal is that decibel numbers can be added (or subtracted) when we are measuring several points (cascading) instead of just two. In Figure 3.27 a signal travels from point 1 to point 4. In this case, the decibel value can be calculated as
37
Decibel
Sometimes the decibel is used to measure signal power in milliwatts. In this case, it is referred to as dBm and is calculated as dBm = 10 log10 Pm , where Pm is the power in milliwatts. Calculate the power of a signal with dBm = 30. Solution We can calculate the power in the signal as
38
19
1/24/2012
Decibel
The loss in a cable is usually defined in decibels per kilometer (dB/km). If the signal at the beginning of a cable with 0.3 dB/km has a power of 2 mW, what is the power of the signal at 5 km? Solution The loss in the cable in decibels is 5 (0.3) = 1.5 dB. We can calculate the power as
39
Distortion
Distortion can occur in a composite signal made of different frequencies. Different frequency component experience different transmission delays.
40
20
1/24/2012
Noise
Several types of noise, such as thermal noise, induced noise, crosstalk, and impulse noise, may corrupt the signal.
41
42
21
1/24/2012
43
44
22
1/24/2012
45
Since this result is not a power of 2, we need to either increase the number of levels or reduce the bit rate. If we have 128 levels, the bit rate is 280 kbps. If we have 64 levels, the bit rate is 240 kbps.
46
23
1/24/2012
47
This means that the highest bit rate for a telephone line is 34.860 kbps. If we want to send data faster than this, we can either increase the bandwidth of the line or improve the signal-to-noise ratio. The signal-to-noise ratio is often given in decibels. Assume that SNRdB = 36 and the channel bandwidth is 2 MHz. The theoretical channel capacity can be calculated as
48
24
1/24/2012
The Shannon formula gives us 6 Mbps, the upper limit. For better performance we choose something lower, 4 Mbps, for example. Then we use the Nyquist formula to find the number of signal levels.
The Shannon capacity gives us the upper limit; the Nyquist formula tells us how many signal levels we need.
49
Performance
Bandwidth: In networking, we use the term bandwidth in two contexts: The first, bandwidth in hertz, refers to the range of frequencies in a composite signal or the range of frequencies that a channel can pass. The second, bandwidth in bits per second, refers to the speed of bit transmission in a channel or link. Throughput: It is a measure of how fast we can actually send data through a network.
50
25
1/24/2012
Latency
The latency or delay defines how long it takes for an entire message to completely arrive at the destination from the time the first bit is sent out from the source. Latency = propagation time + transmission time + queuing delay + processing delay
51
Latency
Propagation time Distance Propagation speed
What is the propagation time if the distance between the two points is 12,000 km? Assume the propagation speed to be 2.4 108 m/s in cable. Solution We can calculate the propagation time as
The example shows that a bit can go over the Atlantic Ocean in only 50 ms if there is a direct cable between the source and the destination.
52
26
1/24/2012
Latency
Transmission time Message size Bandwidth
What are the propagation time and the transmission time for a 2.5-kbyte message (an e-mail) if the bandwidth of the network is 1 Gbps? Assume that the distance between the sender and the receiver is 12,000 km and that light travels at 2.4 108 m/s. Solution We can calculate the propagation and transmission time as shown :
Note that in this case, because the message is short and the bandwidth is high, the dominant factor is the propagation time, not the transmission time. The transmission time can be ignored.
Graduate Program in Telecommunications, GMU 53 TCOM 500 - 2012
Latency
What are the propagation time and the transmission time for a 5-Mbyte message (an image) if the bandwidth of the network is 1 Mbps? Assume that the distance between the sender and the receiver is 12,000 km and that light travels at 2.4 108 m/s. Solution We can calculate the propagation and transmission times as shown:
Note that in this case, because the message is very long and the bandwidth is not very high, the dominant factor is the transmission time, not the propagation time. The propagation time can be ignored.
54
27