Chapter 3 - The Physical Layer-Data Rate Limits
Chapter 3 - The Physical Layer-Data Rate Limits
A very important consideration in data communications is how fast we can send data, 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)
Conti
Two theoretical formulas were developed to calculate the data rate:1. By Nyquist for a noiseless channel
2.
Two digital signals: one with two signal levels and the other with four signal levels
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.
Conti
According to a formula, we can have any bit rate by increasing the number of signal levels. It is theoretically correct but practically there is limit.
When we increase the number of signal levels, we impose the burden on receiver. If the number of levels in a signal is just 2 then the receiver can easily distinguish between 0 and 1.
Conti
If the level of signal is 64 then receiver must be able to distinguish between 64 different levels.
IMP Note:Increasing the levels of a signal reduces the reliability of the system.
Example1
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 Bit Rate = 2 3000 log2 2 = 6000 bps
Example2
Consider the same noiseless channel, transmitting a signal with four signal levels (for each level, we send two bits). The maximum bit rate can be calculated as:
Conti
In Shannon formula there is no indication of a signal level. This means that no matter how many levels we have, we can not achieve a data rate higher than the capacity of the channel.
10
Example1
Consider an extremely noisy channel in which the value of the signal-to-noise ratio is almost zero. In other words, the noise is so strong that the signal is faint. For this channel the capacity is calculated as C = B log2 (1 + SNR) = B log2 (1 + 0) = B log2 (1) =B0 =0
11
Example2
We can calculate the theoretical highest bit rate of a regular telephone line. A telephone line normally has a bandwidth of 4KHz. The signal-to-noise ratio is usually 3162. For this channel the capacity is calculated as C = B log2 (1 + SNR) = 3000 log2 (1 + 3162) = 3000 log2 (3163) C = 3000 11.62 = 34,860 bps
12
Example3
We have a channel with a 1 MHz bandwidth. The SNR for this channel is 63; what is the appropriate bit rate and signal level? First, we use the Shannon formula to find our upper limit.
C = B log2 (1 + SNR) = 106 log2 (1 + 63) = 106 log2 (64) = 6 Mbps
Then we use the Nyquist formula to find the number of signal levels.
13
Conti
Note:-
The Shannon capacity gives us the upper limit Whereas The Nyquist formula tells us how many signal levels we need.
14
Performance
One important issue in networking is the performance of the networkhow good is it? 1. 2. 3. 4. 5. Bandwidth Throughput Latency (Delay) Bandwidth-Delay Product Jitter
15
1. Bandwidth
One characteristics that measures network performance is bandwidth. However the term can be used in two different context with two different measuring values: 1. Bandwidth in Hertz 2. Bandwidth in bits per second
16
Bandwidth in Hertz
Bandwidth in Hertz is the range of frequencies contained in a composite signal or the range of frequencies a channel can pass. Bandwidth of a subscriber telephone line is 4kHz.
17
18
19
2. Throughput
Throughput is a measure of how fast we can actually send data through a network. Network throughput is measured in bits per second (bps).
20
Conti
Throughtput is the actual measurement of how fast we can send data. E.g. We may have a link with a bandwidth of 1Mbps, but the devices connected to the end of the link may handle only 200kbps. This means that we can not send more than 200kbps through this link.
21
Conti
22
3. 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. Latency is made of four components:A. Propagation Time B. Transmission Time C. Queuing Time D. Processing Time
Latency=Propagation time + Transmission time + Queuing Time + Processing Time
23
A. Propagation Time
Propagation time measures the time required for a bit to travel from the source to the destination. Propagation Time= Distance/Propagation Speed
The propagation speed of electromagnetic signals depends on the medium and the frequency of the signal. E.g. In a vacuum , light is propagated with a speed of 3*10m/s. It is lower in air; much lower in cable.
24
B. Transmission Time
In data communication we dont send just 1 bit, we send a message. The first bit may take a time equal to the propagation time to reach its destination; the last bit may also take the same amount of time. However , there is the time between the first bit leaving the sender and the last bit arriving the receiver.
25
Conti
The first bit leaves earlier and arrives earlier and the last bit leaves later and arrives later. The time required for transmission of a message depends on the size of the message and the bandwidth of the channel. Transmission time=Message size/Bandwidth
26
C. Queuing Time
Queuing Time is the time needed for each intermediate or end device to hold the message before it can be processed. It is not a fixed factor.
27
Conti
An intermediate device such as router, queues the arrived messages and processes them one by one. If there are many messages, each message have to wait.
28
29
30
31
32