Title: Data
1Data Signals
2Analog Digital Data
- Data can be analog or digital
- Analog data is continuous information.
- Digital data is information with discrete states.
3Signals
- Signals are used to transport data typically in
the form of electromagnetic waves. - Signals can be either analog or digital
- AM and FM Radio transmissions are analog.
- Digital signals take on discrete values.
4Figure 3.1 Comparison of analog and digital
signals
5Analog Digital Signals
- An analog signal can be a combination of one or
more continuous frequencies. - A pure digital signal is made up of constant
output levels over a fixed amount of time.
6Periodic Signals
- Can be either analog or digital
- Periodic signals repeats a pattern over identical
time periods.
7Periodic Analog Signals
- Are
- simple a single sine wave that cannot be
decomposed into simpler signals. - composite a combination of sine waves that can
be decomposed into individual sine waves.
8Periodic Signals
- Any composite signal is a combination of simple
sine waves with varying frequencies, amplitudes,
and phases. - A composite periodic signal is made up of
discrete frequencies. - A composite non-periodic signal is made up of
continuous frequencies.
9Figure 3.9 A composite periodic signal
10Non-Periodic Signals
- Can be analog or digital
- Changes over time but does not repeat a pattern.
11Figure 3.1 non-periodic analog and digital
signals
12Sine Wave Properties
- Wavelength the distance covered by one period
of the waveform. Note ? c / f - Phase position of the waveform relative to time
0. - Period the amount of time required to complete
one full waveform cycle. - Frequency is the number of periods in one second.
- Amplitude distance from the midline to peak or
trough. - Phase a shift in time.
13Figure 3.2 A sine wave
14sin function
- g(t) A sin( Bt P )
- The magnitude of A is the amplitude.
- B angular frequency (assume B gt 0)
- P phase shift, P 2 p f h, where h
horizontal shift - T 2 p/B, where T period
- f frequency, f B/(2 p), B 2p f
- T 1/f
15Figure 3.4 Two signals with the same amplitude
and phase, but different
frequencies
16Figure 3.5 Three sine waves with the same
amplitude and frequency,
but different phases
17Frequency vs time
- A sine wave in time vs Amplitutde, can be
represented using a single spike using a
frequency vs Amplitude plot
18Time Frequency
- A periodic sine wave in the time domain is a
single spike in the frequency domain sharing the
same amplitude.
19Composite Signals
- Any composite signal is a combination of simple
sine waves with varying frequencies, amplitudes,
and phases. - A composite periodic signal is made up of a
finite number of discrete frequencies. - A composite non-periodic signal is made up of an
infinite number of continuous frequencies.
20Figure 3.9 A composite periodic signal
21Figure 3.10 Decomposition of a composite
periodic signal in the time and
frequency domains
22Figure 3.11 The time and frequency domains of a
nonperiodic signal
23Bandwidth
- Bandwidth difference between highest and lowest
frequencies.
24Figure 3.12 The bandwidth of periodic and
nonperiodic composite signals
25Digital Signals
- Let L be the number of signal levels.
- Let n be the number of bits
26Figure 3.16 Two digital signals one with two
signal levels and the other
with four signal levels
27Digital Signals
28Bit Rate Bit Length
- Bits per second or bps.
- Similar to the analog frequency
- Bit length speed bit duration
- Similar to analog wavelength
- The number of samples required for a signal is
twice the highest frequency of the signal. - The worst case for digital data is alternating
ones and zeros. This can be thought of as a peak
and trough in a sin wave.
29Figure 3.16 Two digital signals one with two
signal levels and the other
with four signal levels
30Figure 3.17 The time and frequency domains of
periodic and nonperiodic
digital signals
31Digital Signal Bandwidth
- A pure digital signal has bandwidth from 0Hz to
infinity Hz. - 0 Hz frequency is constant output (signal never
changes). - Sudden vertical change has infinite bandwidth
32Baseband
- Sending a digital signal without changing it to
an analog signal - Must include 0 Hz
- Perfect transmission of a digital signal requires
a bandwidth from 0 to infinity. - By including more frequencies, the signal will
resemble the square wave more accurately.
33Figure 3.9 contains the 1, 3, and 5 harmonics
34Figure 3.19 Bandwidths of two low-pass channels
35Figure 3.20 Baseband transmission using a
dedicated medium
36Figure 3.21 Rough approximation of a digital
signal using the first harmonic
for worst case
37Fig 3.21
- Let N bit rate.
- Note that f N/2 repeats twice as often as f
N/4. - N/2 represents the worst case, alternating ones
and zeros. - A better approximation includes the odd
harmonics 3N/2 5N/2 7N/2,
38Figure 3.22 Simulating a digital signal with
first three harmonics
39Bandwidth for Baseband Transmission
- The highest frequency determines the bps
bandwidth. - If B bandwidth, and B 500Hz, then the bps is
about 1000bps - B N/2
- Adding harmonics increases the required bandwidth.
40Table 3.2 Bandwidth requirements
41Broadband Transmission
- Most transmission media have limited bandwidth
and cannot send a baseband transmission. - Broadband changes the digital signal to an analog
signal for transmission. - Example Amplitude modulation of a frequency.
42Figure 3.24 Modulation of a digital signal for
transmission on a bandpass
channel
43Transmission Impairment
- Attenuation loss of energy
- Distortion undesired signal changes
- Noise unwanted signal energy
44Figure 3.25 Causes of impairment
45Attenuation
- Measure attenuation dB 10 log10( p2/p1 )
- Pn is measured in power units watts. It can also
be measured in volts. - DB 20log10(v2/v1)
46Figure 3.26 Attenuation
47Figure 3.27 Decibels for Example 3.28
48Distortion
- Each signal component travels with its own
propagation speed. - The components will arrive at their destination
at different times. - The phase differences caused by the different
arrival times induce distortion.
49Figure 3.28 Distortion
50Noise
- Thermal noise caused by excited electrons in
the transmission media. - Crosstalk wires will act as an antenna and
receiver. Each wire transmits a signal and each
wire receives signals from the other wires. - Impulse noise caused by power surges
- Induced noise generated by magnetic fields near
your transmission media.
51Noise
- Signal noise ratio SNR.
- SNR avg signal power / avg noise power
- SNR(db) 10log10(SNR)
52Figure 3.29 Noise
53Data Rate Limits
- Bandwidth available
- Level of signal
- Quality of the channel due to the amount of noise.
54Data Rate Limits
- Nyquist Bit Rate defines the theoretical
maximum bit rate. - Shannon Capacity the theoretical highest data
rate for a noisy channel.
55Nyquist Bit Rate
- Theoretical Bit Rate 2 bandwidth log2(L) ,
Where L is the number of signal levels. - In practice, increasing the number of levels
reduces reliability. The receiver must be able to
distinguish the levels to work correctly.
56Shannon Capacity
- C bandwidth log2( 1 SNR )
- Where C capacity in bps.
57Data Rate Limits
- Given the SNR, the Shannon capacity will give an
upper bound on the transmission rate. - Use the Nyquist bit rate to determine the number
of levels that will not exceed the Shannon
capacity. - The number of levels should be a power of 2.
58Example
- A telephone line has a bandwidth from 100 to 4100
Hz and a SNR(db) of 40 db. What is the capacity
in bps of the line?
59Example
- SNR(db) 10log10(SNR)
- SNR10(SNR(db)/10)
- C bandwidthlog2(1SNR)
-
- about 53kbps
60Performance
- Bandwidth
- Throughput
- Latency aka delay
- Bandwidth delay product
- Jitter
61Performance Bandwidth
- Range of frequencies measured in hertz.
- Bits per second
62Performance Throughput
- Throughput lt Bandwidth
- The actual amount of data transferred.
63Performance Latency
- The amount of time required for a complete
message to arrive at its destination. - Latency is the sum of
- Propagation time
- Transmission time
- Queuing time
- Processing delay
64Latency
- Propagation time
- Propagation time Distance / Propagation speed
- Transmission time
- Transmission time Message size / bandwidth
- Queuing time A router will queue messages as
they arrive before forwarding them. - Processing delay The compute time required by
the hardware to process the message.
65Bandwidth Delay Product
- The product of the bandwidth and the delay is the
number of bits that can fill the link.
66Figure 3.31 Filling the link with bits for case 1
67Figure 3.32 Filling the link with bits in case 2
68Example
- How much data should be sent using a full duplex
channel? - 2bandwidthdelay
- When the first bit arrives, an acknowledgement
is sent back. By the time the sender gets the
acknowledgement, the channel is ready for the
next burst.
69Jitter
- When packets of information do not arrive at
uniform time intervals. - This is an issue for real-time connections like
video and sound. - E-mail is not impacted by jitter.