Data Communication and Networking
Data Communication and Networking
Lecture 2
Figure 4. Two Signals with Same Phase and Frequency, But Different Amplitudes
Periodic Analog Signals (Continue)
Periodic and Frequency
- Period refers to the amount of time, in seconds, a signal needs to
complete 1 cycle.
- Frequency refers to the number of periods in 1 s, in Hertz (Hz).
- Frequency and period are the inverse of each other as the following
formula.
- Figure 5 shows two signals and their frequencies.
- Period is formally expressed in seconds.
- Frequency is formally expressed in Hertz (Hz), which is cycle per
second.
1 1
𝑓= 𝑎𝑛𝑑 𝑇=
𝑇 𝑓
Periodic Analog Signals (Continue)
Figure 6. Three Sine Waves with the Same Amplitude and Frequency ,
But Different Phases
Periodic Analog Signals (Continue)
➢ Looking at Figure 6, it can say that
a. A sine wave with a phase of 0° starts at time 0 with a zero amplitude. The
amplitude is increasing.
b. A sine wave with a phase of 90° starts at time 0 with a peak amplitude.
The amplitude is decreasing.
c. A sine wave with a phase of 180° starts at time 0 with a zero amplitude.
The amplitude is decreasing.
➢ Another way to look at the phase is in terms of shift or offset. It can say
that
a. A sine wave with a phase of 0° is not shifted.
b. A sine wave with a phase of 90° is shifted to the left by ¼ cycle.
However, note that the signal does not really exist before time 0.
c. A sine wave with a phase of 180° is shifted to the left by ½ cycle.
However, note that the signal does not really exist before time 0.
Periodic Analog Signals (Continue)
Example 3
A sine wave offset 1/6 cycle with respect to time 0. What is its phase in
degrees and radians?
Solution: 1/6 × 360 = 60.
= 60 × 2π /360 rad = π/3 rad = 1.046 rad
Wavelength
- Wavelength is another characteristic of a signal traveling through a
transmission medium.
- Wavelength binds the period or the frequency of a simple sine wave to
the propagation speed of the medium as shown in figure 7.
𝑐
λ=
𝑓
Bandwidth
- The bandwidth of a composite signal is the difference between the
highest and the lowest frequencies contained in that signal.
Periodic Analog Signals (Continue)
Figure 14. Two Digital Signals: One with Two Signal Levels and the Other
with Four Signal Levels
Digital Signals (Continue)
Example 7
The digital signal has eight levels. How many bits are needed per level?
Solution: Number of bits per level = Log28 = 3
Bit Rate
- The bit rate is the number of bits sent in 1s, expressed in bits per second
(bps).
Example 8
A digitized voice channel, is made by digitizing a 4-kHz bandwidth analog
voice signal. We need to sample the signal at twice the highest frequency (two
samples per hertz). We assume that each sample requires 8 bits. What is the
required bit rate?
Solution: The bit rate can be calculated as
2 × 4000 × 8 = 64, 000 bps = 64 kbps
Digital Signals (Continue)
Bit Length
- The bit length is the distance one bit occupies on the transmission
medium.
Bit length = propagation speed × bit duration
Transmission of Digital Signals
- A digital signal can be transmitted by using one of two different
approaches: baseband transmission or broadband transmission.
Baseband Transmission
- Baseband transmission means sending a digital signal over a channel
without changing the digital signal to an analog signal.
- Figure 15 shows baseband transmission.
Digital Signals (Continue)
Attenuation
- Attenuation means a loss of energy.
- When a signal, simple or composite, travels through a medium, it loses
some of its energy in overcoming the resistance of the medium.
Transmission Impairment (Continue)
- That is why a wire carrying electric signals gets warm, if not hot, after a
while.
- Some of the electrical energy in the signal is converted to heat.
- To compensate for this loss, amplifiers are used to amplify the signal.
- Figure 20 shows the effect of attenuation and amplification.
Figure 23. Two Cases of SNR: A High SNR and A Low SNR
Transmission Impairment (Continue)
- Because SNR is the ratio of two powers, it is often described in decibel
units, SNRdB , defined as
SNRdB = 10log10SNR
Example 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:
SNR = (10,000 µw)/(1µw)
= 10,000
SNRdB = 10log10 10,000
= 10log10 104
= 40
Data Rate Limits
➢ A very important consideration in data communications is how fast data
can be sent, in bits per second, over a channel.
➢ Data rate depends on three factors:
1. The bandwidth available
2. The level of the signals we use
3. The quality of the channel (the level of noise)
➢ Two theoretical formulas were developed to calculate the data rate: one by
Nyquist for a noiseless channel, another by Shannon for a noisy channel.
Data Rate Limits (Continue)
Noiseless Channel: Nyquist Bit Rate
- Nyquist theorem defines the maximum bit rate of a noiseless channel.
- For a noiseless channel, the Nyquist bit rate formula defines the
theoretical maximum bit rate
BitRate = 2 × bandwidth × log2L
- Where, bandwidth is the bandwidth of the channel
L is the number of signal levels used to represent data
BitRate is the bit rate in bits per second
- Increasing the levels of a signal may reduce the reliability of the system.
Example 12
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
Solution: BitRate = 2 × bandwidth × log2L
= 2 × 3000 × log2 2 = 6000 bps
Data Rate Limits (Continue)
Noisy Channel: Shannon Capacity
- The shannon capacity, to determine the theoretical highest data rate for a
noisy channel:
Capacity = bandwidth × log2 (1 + SNR)
- Where, bandwidth is the bandwidth of the channel
SNR is the signal-to-noise ratio
capacity is the capacity of the channel in bits per second
Example 13
We can calculate the theoretical highest bit rate of a regular telephone line. A
telephone line normally has a bandwidth of 3000 Hz (300 to 3300 Hz)
assigned for data communications. The signal-to-noise ratio is usually 3162.
For this channel the capacity C is calculated as
Solution: C = B log2 (1 + SNR)
= 3000 log2 (1 + 3162)
= 3000 × 11.62 = 34,860 bps
Performance
Throughput
- The throughput is a measure of how fast data can actually be sent
through a network.
Example 14
A network with bandwidth of 10 Mbps can pass only an average of 12,000
frames per minute with each frame carrying an average of 10,000 bits. What is
the throughput of this network?
Solution: Throughput = (12000 × 10000)/60 = 2 Mbps
Latency (Delay)
- 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.
Performance (Continue)
Propagation Time
- Propagation time measures the time required for a bit to travel from the
source to the destination.
Propagation time = Distance / (Propagation Speed)
Example 15
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: Propagation time = (12,000 × 1000) / (2.4 × 108) = 50 ms
Performance (Continue)
Transmission Time
- The transmission time of a message depends on the size of the message
and the bandwidth of the channel.
Transmission time = (Message size)/Bandwidth
Example 16
What are the propagation time and the transmission time for a 2.5-KB
(kilobyte) message (an email) 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: Propagation time = (12,000 × 1000) / (2.4 × 108) = 50 ms
Transmission time = (2500 × 8) / 109 = 0.02 ms
Performance (Continue)
Queuing Time
- The third component in latency is the queuing time, the time needed for
each intermediate or end device to hold the message before it can be
processed.
Bandwidth-Delay Product
- The bandwidth-delay product defines the number of bits that can fill the
link.
Jitter
- Another performance issue that is related to delay is jitter.
Questions for Topic 1
51