Introduction To Data Communication and Networking
Introduction To Data Communication and Networking
Introduction To Data Communication and Networking
Chapter 2
Data and Signals
3.2
3-1 ANALOG AND DIGITAL
3.3
ANALOG AND DIGITAL SIGNALS
• Analog signal can have an infinite number of values in
a range.
• Digital signal can only a limited number of values.
3.4
PERIODIC AND NONPERIODIC SIGNALS
• Both analog and digital signals can be 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.
• The completion of one full pattern is called a cycle.
• A nonperiodic signal changes without exhibiting a
pattern or cycle that repeat over time.
3.5
3-2 PERIODIC ANALOG SIGNALS
3.6
SINE WAVE
• Can be represented by three parameters: the peak
amplitude, the frequency, and the phase.
3.7
PERIOD AND FREQUENCY
• Period refers to the amount of time, in seconds, a
signal to complete 1 cycle.
• Frequency refers to the number of periods in 1 s.
• Frequency and period are the inverse of each
other.
3.9
PERIOD AND FREQUENCY
• Example 3.1
The power we use at home has a frequency of 60 Hz.
Find the period?
• Example 3.2
Express a period of 100 ms in microseconds.
• Example 3.3
The period of a signal is 100 ms. What is its frequency in
kilohertz?
3.10
PHASE
• Describes the position of the waveform relative to time 0.
3.12
TIME AND FREQUENCY DOMAINS
3.13
TIME AND FREQUENCY DOMAINS
3.14
TIME AND FREQUENCY DOMAINS
• Example 3.4
Figure 3.6 The time domain and frequency domain of three sine waves
3.15
COMPOSITE SIGNALS
• Made of many simple sine wave.
• 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.
3.16
COMPOSITE SIGNALS
• Example 3.5
3.17
BANDWIDTH
• The range of frequencies contained in a composite signal.
3.18
BANDWIDTH
• Example 3.6
A periodic signal has a bandwidth of 20 Hz. The highest frequency
is 60 Hz. What is the lowest frequency? Draw the spectrum if the
signal contains all frequencies of the same amplitude.
Solution
3.19
BANDWIDTH
• Example 3.7
A nonperiodic composite signal has a bandwidth of 200 kHz,
with a middle frequency of 140 kHz and peak amplitude of 20 V.
The two extreme frequencies have an amplitude of 0. Draw the
frequency domain of the signal.
Solution
3.20
3-3 DIGITAL SIGNALS
• In addition to being represented by an analog signal, information can
also be represented by a digital signal.
Figure 3.12 Two digital signals: one with two signal levels and the other with four signal levels
3.21
SIGNAL LEVEL AND DATA LEVEL
• Example 3.8
A digital signal has eight levels. How many bits (data level) are
needed per signal level? We calculate the number of bits from the
formula
• Example 3.9 A digital signal has nine levels. How many bits (data
level) are needed per signal level?
3.22
BIT RATE
• The number of bits sent in 1s, expressed in bits per
second (bps).
• Example 3.10
Assume we need to download text documents at the rate of
100 pages per minute. Each page usually consists of 24 lines.
What is the required bit rate of the channel?
3.23
TRANSMISSION OF DIGITAL SIGNALS
• Digital signal can transmit either by baseband transmission or
broadband transmission (using modulation).
Baseband Transmission
• Sending a digital signal over a channel without changing the
digital signal to an analog signal.
• Requires a low-pass channel, a channel with a bandwidth that
starts from zero.
3.24
TRANSMISSION OF DIGITAL SIGNALS
3.25
TRANSMISSION OF DIGITAL SIGNALS
• Broadband Transmission
• Changing the digital signal to an analog signal for
transmission.
• Requires bandpass channel – a channel with a
bandwidth that does not start from zero.
3.26
3-4 TRANSMISSION IMPAIRMENT
• Transmission impairment means the signal at the
beginning of the medium is not the same as the signal at
the end of the medium. What is sent is not what is
received.
3.28
DISTORTION
• It occurs in a composite signal when the signal changes
its form or shape at the receiver.
• The shape of the composite signal is therefore not the
same.
3.29
NOISE
• Noise is unwanted electrical or electromagnetic energy that
degrades the quality of data and signals.
3.30
NOISE
• Several types of noise may corrupt the signal, such as:
i. Thermal noise - Random motion of electronic in
such wire.
ii. Induced noise – Comes from electonic sources such
as motors and appliances.
iii.Crosstalk – Effects of one wire on other wire.
iv. Impulse noise – Spike (a signal with high energy
in a very short time) that comes from power lines,
lighting, and so on.
3.31
SIGNAL-TO-NOISE RATIO (SNR)
• Defined as
SNR = average signal power
average noise power
SNRdB = 10log10SNR
3.32
SIGNAL-TO-NOISE RATIO (SNR)
• Example 3.11
The power of a signal is 10 mW and the power of the noise is 1
μW. What are the values of SNR and SNRdB ?
Solution
The values of SNR and SNRdB can be calculated as follows:
3.33
3-5 DATA RATE LIMITS
• Data rate depends on three factors:
3.34
NYQUIST AND SHANNON FORMULA
• Nyquist formula defines the bit rate for noiseless
channel:
3.35
NYQUIST AND SHANNON FORMULA
• Example 3.11
Consider a noiseless channel with a bandwidth of 3000 Hz
transmitting a signal with two signal levels. The maximum
bit rate can be calculated as
• Example 3.12
Consider the same noiseless channel transmitting a signal
with four signal levels (for each level, we send 2 bits). The
maximum bit rate can be calculated as
3.36
NYQUIST AND SHANNON FORMULA
• Example 3.13
We need to send 265 kbps over a noiseless channel with a bandwidth
of 20 kHz. How many signal levels do we need?
Solution
We can use the Nyquist formula as shown:
3.37
NYQUIST AND SHANNON FORMULA
• Example 3.14
We can calculate the theoretical highest bit rate of a regular telephone
line. A telephone line normally has a bandwidth of 3000. The signal-
to-noise ratio is usually 3162. Find the capacity?
• Example 3.15
The signal-to-noise ratio is often given in decibels. Assume that
SNRdB = 36 and the channel bandwidth is 2 MHz. What is the
capacity?
3.38
USING BOTH LIMITS
• In practice, both methods need to find the limits and signal levels.
• Example 3.41
We have a channel with a 1MHz bandwidth. The SNR for this
channel is 63. What are the appropriate bit rate and signal level?
Solution
First, we use the Shannon formula to find the upper limit. Second, we
use the Nyquist theorem to get the signal level.
3.39
3-6 PERFORMANCE
3.40
PERFORMANCE
• Bandwidth
• In networking, we use the term bandwidth in two contexts.
1. The first, bandwidth in hertz, refers to the range of
frequencies that a channel can pass.
2. The second, bandwidth in bits per second, refers to the speed
of bit transmission in a channel or link.
• Throughput
• Measure of how fast data can send through a network.
• A link may have a bandwidth of B bps, but can only send T bps
through this link with T always less than B.
• Bandwidth is a potential measurement of a link; the throughput
is actual measurement of how fast data can be send.
3.41
PERFORMANCE
• Latency (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.
• Propagation Time
• Measures the time required for a bit to travel from the source to the
destination.
3.42
PERFORMANCE
• Transmission Time
• Time required for transmission of a message.
• Queuing Time
• The time needed for each intermediate or end device to hold the
message before it can be processed.
3.43