Académique Documents
Professionnel Documents
Culture Documents
Data Communications
and
Computer Networks
Chapter 2 : Physical Layer and Media
Instructor : Mr Mourad Benchikh
Introduction
This layer is involved in physically carrying information
from one node in the network to the next.
One major task: provides services to the data link layer
One of these services is to convert the data link layer stream of bits
into a signal.
Data and the signals that represent them can take one of the following forms:
Analog form
Digital form
Digital data : refers to information that has discrete states (i.e. takes on discrete values).
Ex.: Text, integers, symbols stored on the computer memory in the form of 1s and 0s.
It is usually converted to a digital signal or modulated into an analog signal to be transmitted across a
medium.
Digital signal
Has only a limited number of defined values.
Each value can be any number, as simple as 0 and 1.
Periodic signal
Aperiodic signals
Change constantly without exhibiting a pattern or cycle that repeats over time (=> no
repetitive pattern).
Periodic
Analog
signals
Periodic analog signal could be classified as:
Simple periodic analog signal
i.e. a sine wave -cannot be decomposed into smaller signals-.
Sine wave
Sine wave is the most fundamental form of periodic analog signal
Sine waves can be represented by three parameters
1) Peak Amplitude, 2) Frequency, and 3) Phase.
Mathematically described as: x(t) = Asin(2pft+ )
x(t): signal at time t; A: Peak Amplitude; f: frequency; :the phase
Periodic
Analog
signals
Sine wave (contd)
2. Period (T) or frequency (f)
Period refers to the amount of time, in seconds, a signal needs to complete 1 cycle.
Frequency refers to the number of periods in 1s.
Frequency = 1/Period; Period = 1/Frequency.
Period is expressed in seconds and the frequency in Hertz (Hz) i.e. cycle per second-.
ms(milli)=10-3s. s(micro)=10-6s, ns(nano)=10-9s,ps(pico)=10-12s.
KHz=103Hz, MHz=106Hz, GHz=109Hz, THz(Tera)=1012Hz.
If a signal does not change at all (maintains a constant voltage value) => its frequency is zero
A DC component ??? (Direct Current)???
If a signal changes instantaneously => its period is zero => its frequency is infinity.
3. Phase (P)
Describes the position of the waveform relative to time 0.
In other words, it is the amount of shift (backward or forward) along the time axis.
Phase is measured in degrees or radians (360 degrees is 2p radians).
1deg = 2p/360 rad; 1rad=360/(2p) deg
Phase changes often occur on common angles:
A phase shift of 360 degrees (i.e 2p) corresponds to a shift of a complete period
- A sine wave with a phase of 0 deg is not shifted
A phase shift of 180 degrees (i.e p) corresponds to a shift of one-half period
- A sine wave with a phase of 180 degrees is shifted to the left by cycle.
A phase shift of 90 degrees (i.e. p/2) corresponds to a shift of a one-quarter of a period.
- A sine wave with a phase of 90 degrees is shifted to the left by cycle.
Examples
The home electricity is a sine wave with a maximal amplitude of 155 volts and a frequency of 60Hz. Write the
mathematical equation.
2pf = 2*3.14*60 = 377 radians/second
x(t) = Asin (2pft+ ) = 155sin (377t + ) ; usually 0.
Write the mathematical equation of the electricity produced by a constant (I.e. DC) six-volt battery.
x(t) = Asin(2pft p/2 ) = Acos(2pft) = Acos(0) = A = 6 volts
Periodic
Analog
signals
Time and frequency domains
The previous plots are time-domain plots.
The time domain plot shows changes in signal amplitude with respect to time
It is an amplitude versus time plot.
Composite signals
Fourier Analysis
Using the Fourier series, a composite periodic signal with period T (frequency f0) can be
decomposed into a series of sine and cosine functions in which each function is an integral harmonic
of the fundamental frequency f0 of the composite signal
The composite signal is decomposed in a series of signals with discrete frequencies
Using the Fourier transform, a composite nonperiodic signal can be decomposed into a combination
of sine waves with continuous frequencies (i.e. frequencies with real values).
Next two first figures shows the time-domain and the frequency-domain
of the fundamental frequency component and the 3rd and 9th harmonic
components.
The third figure shows frequency-domain of the composite periodic
signal resulting from the combination of the three sine waves
(fundamental frequency, 3rd and 9th harmonic components).
The third figure, is something close to a square wave.
We need to add more harmonics to be close to a square wave (all the odd harmonics up to infinity)
Frequency
Amplitude
4A/
3f
4A/3
5f
4A/5
7f
4A/7
Bandwidth
The bandwidth of a composite signal is the width of the frequency spectrum.
In other words, it refers to the range of component frequencies, and frequency
spectrum refers to the element within that range.
To calculate bandwidth, subtract the lowest frequency from the highest frequency of
the range.
Example
The average voice has a frequency range of roughly 300 Hz to 3100 Hz(??).
The spectrum would thus be 300 - 3100 Hz
The bandwidth would be 2800
A periodic signal has a bandwidth of 20 Hz. The highest frequency is 60 Hz. What is the lowest
frequency? Draw the frequency spectrum if the signal contains all integral frequencies of the same
amplitude
B = fh - fl
20 = 60 - fl
fl = 60 - 20 = 40 Hz
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
Lowest frequency: 40KHz
Highest frequency: 240KHz.
Digital signals
In addition to being represented by an analog signal, data can also be represented by a digital
signal.
For example, a 1 can be encoded as a positive voltage and 0 as zero voltage.
A digital signal can have more than two levels.
Can then send more than 1 bit for each level
In general, if a signal has L levels, each level needs log2L bits.
Most digital signals are aperiodic and, thus, period or frequency is not appropriate.
A new term is used to describe digital signals:
Bit rate (instead of frequency) : the number of bits sent in 1 second.
Bit rate = 1/(bit duration) ; bit duration = time to send one bit
Bit rate is expressed in bit per second (bps).
Bit length
The distance one bit occupies on the transmission medium
Bit length = propagation speed * bit duration.
Example.
Digital signals
A digital signal has eight levels. How many bits are needed per level?
Number of bits per level = log28= 3
We need to download text documents at the rate of 100 pages per minute. What is the required bit rate
of the channel?
In average a page contains 24 lines with 80 characters in each line. If one character requires 8 bits the bit rate
is: 100*24*80*8 = 1636000bps = 1.636 Mbps
HDTV (High-Definition TV), used to broadcast high quality video signals, uses a screen of a ratio
16:9 (i.e. a resolution of 1920*1080 pixels per screen). The screen is renewed 30 times per second. 24
bits will represent one color pixel.
The bit rate is : 1920*1080*30*24=1492992000 1.5Gbps
A digital signal is a composite analog signal with an infinite bandwidth (frequencies between
0 and infinity).
Decomposition of a digital signal with Fourier analysis
If the digital signal is periodic (rare in data transmission) the decomposition leads to an infinite bandwidth and
discrete frequencies.
If the digital signal is aperiodic the decomposition leads to an infinite bandwidth and continuous
frequencies.
Digital signals
Two approaches for digital signal transmission: 1) baseband transmission, 2) broadband
transmission.
Baseband transmission
Means sending the digital signal over a channel without changing it into an analog signal.
Baseband transmission of a digital signal that preserves the shape of a digital signal is possible only if
we have a low-pass channel with an infinite or very wide bandwidth.
A low-pass channel is 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.
A low-pass channel with infinite bandwidth is ideal and not found in real life.
Coaxial cable or optical fiber are examples of wide bandwidth medium
Baseband transmission with a low-pass channel with limited bandwidth is possible by approximating
a digital signal with an analog signal. Approximation depends on available bandwidth.
The required bandwidth is proportional to the bit rate. Sends bits faster => more bandwidth.
Digital
signals
Broadband transmission (or modulation)
Means changing the digital signal to an analog signal for transmission when we cannot send the digital signal
directly to the channel.
Broadband transmission allows the use of a bandpass channel.
A bandpass channel is a channel with a bandwidth that does not starts from zero.
More available than low-pass channel.
EX.
An example of a dedicated channel where the entire bandwidth of the medium is used as one single channel is a LAN.
Almost every wired LAN today uses a dedicated channel for two stations communicating with each other.
In a bus topology LAN with multipoint connections, only two stations can communicate with each other at each moment in time (timesharing); the
other stations need to refrain from sending data.
In a star topology LAN, the entire channel between each station and the hub is used for communication between these two entities.
An example of broadband transmission using modulation is the sending of computer data through a telephone subscriber line, the
line connecting a resident to the central telephone office.
Transmission
impairment
Transmission media are not perfect.
These imperfections cause impairments in the signal sent through the medium.
This means that what is sent is not what is received.
Use the concept of decibels (dB) measure to show that a signal has lost or gained strength
dB measures the relative strength of two signals or a signal at two different points.
dB = 10log10(P2/P1)
P1 is the transmitted signal power and P2 is the received signal power.
dB is negative if a signal is attenuated and positive if the signal is amplified.
Example
A signal travels through a transmission medium and its power is reduced to half.
This means P2=(1/2)P1, the attenuation (loss of power) can be calculated as
10log10(P2/P1)= 10log10(0.5*P1/P1)= 10log10(0.5)= 10*(-0.3)= -3dB
Engineers knows that 3dB, or a loss of 3 dB, is equivalent to losing half the power.
Transmission
impairment
Attenuation (contd)
Losses and gains are additive
=> Decibel numbers can be added (or subtracted) when we are talking of several points.
The signal strength after traveling into three points
dB = -3 + 7 3 = +1 ; which means that the signal has gained power.
dB = 10 log10(P2/P1) = -1.5 => P2/P1 = 10-0.15 = 0.71 => P2 = 0.71*P1 = 0.7*2 = 1.4 mW.
Distortion
Means that the signal changes its form or shape.
Occurs in composite signal made of different frequencies.
Each signal component has its own propagation speed through a medium and, so its own delay to arrive at the final destination.
Signal components at the receiver have different phases from those at the sender.
Therefore the composite signal shape is not the same.
Noise
Transmission Impairment
Induced noise
Comes from source such as motors.
These devices act as a sending antenna and the transmission medium acts as the receiving antenna.
Crosstalk
The effect of one wire on the other.
One wire acts a sending antenna and the other as the receiving antenna.
Impulse noise
A spike (a signal with high energy in a very short period of time) that comes from power lines, lightning, and so on
SNR interpretation
High SNR => the signal is less corrupted by noise.
Low SNR => the signal is more corrupted by noise.
SNR is often described in decibel units, i.e. SNRdB= 10log10SNR
Example
The power of a signal is 10 mW and the power of the noise is 1 mW. What are the values of SNR and SNRdB?
SNR = 10000mW/1mW = 10000
SNRdB = 10log10(10000) = 10log10(104) = 40.
Data rate = How fast can the data be sent, in bits per second, over a channel?
Data rate depends on three factors: 1) The available bandwidth, 2) The level of the signal, and
3) The quality of the channel (i.e. the level of the noise).
Noiseless channel : Nyquist bit rate
The theoretical maximum bit rate in a noiseless channel
BitRate = 2*Bandwidth*log2L
Bandwidth : Bandwidth of the channel, L : the number of signal levels used to represent data.
Given a specific bandwidth, increase the bit rate => increase the signal levels.
Pb : increasing the signal levels may reduce the system reliability.
The receiver should be very sophisticated to distinguish between many levels.
Examples.
Consider a noiseless channel with a bandwidth of 3000Hz transmitting a signal with two signal levels. What is
the bit rate?
BitRate = 2*3000*log22 = 6000bps
Consider the same noiseless channel transmitting a signal with four data levels. How many bits are sent at each
levels? What is the maximum bit rate.
L = 4 ; number of bits = log2(4) = 2 bits.
BitRate = 2*3000*log24 = 12000bps
There is no indication of the signal levels => no matter how many levels we have, we cannot achieve
a data rate higher than the capacity of the channel.
Formula defines a characteristic of the channel not the method of transmission.
Data
rate
limits
Noisy channel : Shannon bit rate (contd)
Example
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). What is the capacity of this channel?
This means that the capacity of this channel is zero regardless of the bandwidth. In other words, we cannot receive
any data through this channel.
C =B*log2(1 +SNR) =B*log2 (1 +0) =B*log2(1) =B*0 =0
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. For this channel the capacity is calculated as
C =B*log2(1 +SNR) =3000*log2(1 +3162) =3000 *log2(3163)
Assume that SNRdB = 36 and the channel bandwidth is 2 MHz. what is the theoretical channel capacity?
SNRdB = 10log10SNR => SNR = 10SNRdB/10 => SNR = 103.6 = 3981
In practice need to use both methods to find the limits and signal levels.
Example
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
Although the Shannon formula gives us 6 Mbps, this is the upper limit. For better performance we choose something
lower, for example 4 Mbps. Then we use the Nyquist formula to find the number of signal levels.
4 Mbps =2 1 MHz log2L L =4
The Shannon capacity gives us the upper limit; the Nyquist formula tells us how many signal
levels we need.
Performance
Network Performance: How good is the network?
Network performances terms: 1) Bandwidth, 2) Throughput, 3) Bandwidth-delay product, and
4) Jitter
Bandwidth
This term can be used in two different contexts
The bandwidth, in hertz, refers to the range of frequencies in a composite signal or the range of frequencies that
a channel can pass.
Ex. Bandwidth of a subscriber telephone line is 4KHz.
The bandwidth, in bits per second, refers to the speed of bit transmission in a channel, link, or a network.
Ex.: Bandwidth of a Fast Ethernet Network is a maximum of 100 Mbps.
Throughput
Measures how fast we can actually send data through a network.
A network can have a bandwidth of B in bps but can only send T bps throughput -with B>T Ex. A link with a bandwidth of 1Mbps but the connected devices may handle only 200Kbps
Bandwidth is the potential measurement of a link; throughput is the actual measurement of how fast
we can send data.
Example
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?
Throughput = 12000*10000/60 = 2Mbps
The throughput is almost one-fifth of the bandwidth in this case.
Latency (delay)
Performance
Defines how long it takes for an entire message to completely arrives at the destination
from the time the first bit is sent out from the source :
Latency = propagation Time + Transmission Time + Queuing Time + Processing Time
Latency components:
Propagation time
Measures the time required for a bit to travel from the source to the destination :
Propagation Time = Distance/(Propagation Speed)
Propagation speed of electromagnetic signals depends on the medium and on the signal frequency.
Light is propagated with a speed of 3*108m/s in a vacuum. It is lower in air; it is much lower in cable.
Transmission time.
Necessary time to send a message.
Depends on the size of the message and the bandwidth of the link :
Transmission Time = (Message size)/Bandwidth
Queuing time.
Time needed for each intermediate (ex. Router) or end device to hold the message before it can be
processed. Not a fixed time but changes with the load imposed on the network.
Processing delay.
Example
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.
Delay (contd)
Performance
Example (contd)
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.
Jitter
The jitter issue is related to delay.
Jitter is a problem for time-sensitive applications (ex. Audio and video) if different packets of data
encounter different delays.
If the delay of the first packet is 20ms, for the second is 45ms, and for the third is 40ms => the real-time
applications that uses the packets endures jitter
Bandwidth-Delay product
Defines the number of bits that can fill the link.
EX.
Consider a link with 1bps and the link delay is equal to 5s. The product 1*5 is the maximum number of bits that
can fill the link.
This measurement is important if we need to send data in bursts and wait for the acknowledgement of
each burst before sending the next burst.
To use the maximum capability of the link, need to make the size of a burst = 2*Bandwidth*Delay
Digital-to-Digital
conversion
Three techniques to convert digital data to digital signals: 1) Line coding, 2) Block coding,
and 3) Scrambling.
Line coding is always needed. The two others may or may not be needed
Line coding
At the sender, converts a sequence of bits to a digital signal.
At the receiver, the digital data are recreated by decoding the digital signal.
2) Polar schemes
The voltage are on both sides of the time axis.
Ex. The voltage level for 0 can be positive and the voltage level for 1 can be negative.
Drawback
Require more bandwidth than the NRZ because of the transition at the middle of each bit and perhaps at the
end of each bit.
3.2) Pseudoternary
Bits 1 are represented by zero voltage and bits 0 are represented by altering voltage levels.
4) Multilevel schemes
Goal: increase the number of bits per baud by encoding a pattern of m data elements into a pattern of n signal
elements.
A group of m data elements produce a combination of 2m data patterns.
Different types of signal elements produced by allowing different signal levels.
With L levels, we can produce Ln combinations of signal patterns.
Ln=2m => each data pattern encoded into one signal element.
2m>Ln => data patterns occupy only a subset of signal patterns.
2m<Ln => not possible because some of data patterns cannot be encoded.
Bipolar AMI, however has a narrow bandwidth and does not create DC-component.
However, a long sequence of 0s upsets the synchronization.
Scrambling
Modify part of AMI to provide synchronization with a long sequence of 0s
Two techniques : B8ZS and HDB3
Analog-to-Digital conversion
A digital signal is superior to an analog signal.
The tendency today is to change an analog signal to digital data.
Two techniques can be used
PCM
Delta modulation.
Sampling
Analog-to-Digital
conversion:
PCM
Sampling
The sampling method
Ideal (not easily implemented): pulses from the analog signal are sampled.
Natural: A high-speed switch is turned on for only the small period of time when sampling occurs.
The result is a sequence of samples that retains the shape of the analog signal.
Sample and hold: creates flat-top samples by using a circuit. Most common method.
Sampling rate
Nyquist theorem: to reproduce the original analog signal the sampling rate should be at least equal to twice the
highest frequency of the original signal.
Example
Telephone companies digitize voice assuming a maximum frequency of 4000Hz.
The sampling rate is therefore 8000 samples per second.
What sampling rate is needed for a signal with a bandwidth of 10000Hz [1000,11000]Hz?
The sampling rate must be twice the highest frequency of the signal
Sampling rate = 2*11000 = 22000 samples/second.
A complex low-pass signal has a bandwidth of 200KHz. What is the minimum sampling rate for
this signal?
The bandwidth of a low-pass signal is between 0 and f (f is the maximum frequency).
So f=200KHz and the sampling is done at : 2*200KHz=400000 samples/s.
V m ax V m in
L
Quantization levels
The choice of L, the number of levels, depend on the range of the amplitudes of the analog signal and the
accuracy to recover the signal.
If the amplitude fluctuates between two levels => L=2.
With audio digitizing => L=256.
Quantization errors
The input values to the quantizer are the real values.
The output values are the approximate values and are chosen in the middle of the zone.
The difference between the real values and the approximate values is the quantization error.
Example
Assume a sample signal with the sample amplitudes in [-20,20]V. Nine samples are shown using
ideal sampling.
Quantization levels with L=8 => =5
Encoding
After each sample has been quantized and the number of bit per samples is decided, each sample can
be changed to an nb-bit code word.
The number of bits for each sample is determined from the number of levels L: nb = log2L
Previous example
nb = log2L = 3bits. A quantization code of 2 is encode as 010.
Encoding (contd)
Bit rate = sampling rate * number of bits per sample => Bit rate = fs* nb
Example
What is the bit rate to digitize the human voice assuming 8 bits per sample.
Frequencies of the human voice [0,4000]Hz. Sampling rate = 4000*2 = 8000 samples/s Bit rate = 8000*8 = 64000 bps = 64
Kbps.
Signal recovery
Requires a PCM decoder.
The decoder converts the code words into a pulse that holds the amplitude until the next pulse.
The resultant staircase signal is passed through a low-pass filter to smooth it into an analog signal.
The filter has the same cutoff frequency as the original signal at the sender.
If the signal has been sampled >= the Nyquist sampling rate and if there is enough quantization levels
=> the original signal will be recreated.
The minimum and maximum values of the original signal can be achieved by using amplification.
Transmission modes
Transmission of binary data across a link can be one of the following modes
Parallel mode
Data is grouped into groups of n bits.
n bits are sent with each clock tick.
Use n wires to send these n bits at a time.
The n wires are typically bundled into a cable with a connector at each end.
Advantage: speed
Can increase the speed by a factor of n over serial transmission
Drawback : cost
Requires n communication wires.
=> usually limited to short distance.
Serial mode
One bit is sent in each clock tick.
Needs only one communication channel between the two communicating devices
Advantages: reduced cost
Only one communication channel is used.
Parallel transmission
Transmission modes
Serial transmission
Asynchronous transmission
The timing of the signal is unimportant.
Agreed patterns allow the receiver to retrieve the information without regard to the rhythm in which
it is sent.
Patterns based on grouping bit stream into bytes (usually 8 bits)
The sender handles each byte independently.
It sends the byte into the link whenever ready without regard to a timer
Transmission
modes:
serial
Asynchronous transmission (contd)
Start bit stop bit
Start bit (usually 0)
An extra bit added to the beginning of each byte to alert the receiver of the arrival of a new byte.
The transmission of each byte may then be followed by a gap of varying duration.
The gap is represented by an idle channel or by a stream of additional stop bits
Meaning of asynchronous
At the byte level, the sender and the receiver need not to be synchronized.
Within each byte, although, the receiver must be synchronized with the incoming stream.
When the receiver detects the start-bit, it sets a timer and begins counting bits as they come in
After n bits, the receiver looks for a stop bit.
Advantages
Cheaper and effective.
Used for slow-speed communication (keyboard-computer)
Drawbacks
Slow because of the insertion of start-bit, stop-bit, and gaps
There may be uneven gaps between frames filled with idle (special sequence of 0s and 1s).
Timing is important because to allow the receiver to keep an accurate count of the bits as they come.
Byte synchronization is accomplished in the data link layer.
Advantages
Speed because of no extra bits or gaps.
Helpful for high-speed transmission (computer-computer)
Isochronous transmission
Guarantees that the data arrive at a fixed rate.
Uneven delays between frames (i.e. synchronous transmission) are not acceptable.
TV images are broadcast at the rate of 30 images/s to be viewed.
If each image is sent by using one or more frame, they should be no delays between frames.
Synchronization between characters is not enough, entire stream of bits must be synchronized.
Recall
Analog transmission
Analog conversions
Digital-to-analog conversion
Converting digital data to a bandpass signal.
Analog-to-analog conversion
Converting a low-pass analog signal to a bandpass analog signal.
Digital-to-analog conversion
Process of changing one of the characteristics of an analog signal based on the information in digital data.
Change one of the characteristic of a sine wave (amplitude, frequency, and phase) to represent digital data.
Change of one of these characteristics gives a different version of the wave.
In analog transmission, the sender produces a high-frequency signal that acts as a base for the
Multilevel FSK
Use more than one frequency.
Ex.: use 4 frequencies (f1, f2, f3, and f4) to send 2 bits at a time.
Ex.: use 8 frequencies to send 3 bits at a time.
Example
Show the constellation diagram of an ASK (OOK), BPSK, and QPSK signals.
- ASK: Binary 0 has an amplitude of 0 and binary 1 has an amplitude of 1V for example.
- BPSK: 2 different signal elements are used, one with amplitude 1V and in-phase and the other with an
amplitude 1V and 180 out-of phase.
- QPSK: for example, the point representing 11 is made of two combined signal elements, both with an
amplitude of 1V. One element is represented by an in-phase carrier and the other element by a quadrature carrier.
The amplitude of the final element sent for this 2-bits data element is 21/2, and the phase is 45 degree.
AM
The carrier signal is modulated so that its amplitude varies with the changing amplitudes of the
modulating signal.
Phase and frequency of the carrier remain the same.
AM (contd)
FM
The frequency of the carrier signal is modulated to follow the voltage level (amplitude) of the
modulated signal.
The peak amplitude and the phase of the carrier signal remain constant.
FM (contd)
Standard Bandwidth Allocation for FM Radio
PM
The phase of the carrier signal is modulated to follow the changing amplitude of the modulated signal.
The peak amplitude and the frequency of the carrier signal remain constant.
Proved mathematically: PM is the same as FM.
Bandwidth Utilization
Bandwidth Utilization is the wise use of the available bandwidth to achieve specific goals.
Bandwidth utilization categories
Multiplexing : how to combine several channels into one for an efficiency goal.
Spreading: how to expand the bandwidth of a channel for privacy and antijamming goals.
Used with WLANs.
Multiplexing
Share a link when its bandwidth is greater than the needs of the devices.
Multiplexing: set of techniques that allows the simultaneous transmissions of multiple signals across
a single data link
Multiplexed system: N lines share the bandwidth of one link
The multiplexer (MUX) combines the n transmission streams into a single stream (many-to-one).
The demultiplexer (DEMUX) separates the stream back to its component transmissions and directs them to
their corresponding lines (one-to-many).
The link refers to the physical path.
The channel refers to the portion of a link that carriers a transmission between a given pair of lines.
One link can have many (n) channels.
Multiplexing techniques
Frequency-division multiplexing : used for analog signal.
Wavelength-division multiplexing: used for analog signals.
Time-division multiplexing: used for digital signals.
Demultiplexing process
The DMUX uses a series of filter to decompose the multiplexed signal into its component signals.
Individual signals are passed to a demodulator to extract them from the carrier and pass them to the output
lines.
EX.
Assume that a voice channel occupies a bandwidth of 4 kHz. We need to combine three voice channels into a
link with a bandwidth of 12 kHz, from 20 to 32 kHz. Show the configuration, using the frequency domain.
Assume there are no guard bands.
We shift (modulate) each of the three voice channels to a different bandwidth, as shown in the figure.
Use the 20- to 24-kHz bandwidth for the first channel, the 24- to 28-kHz bandwidth for the second channel, and the 28- to
32-kHz bandwidth for the third one.
Then combine them as shown in the Figure.
Five 100KHz-bandwidth channels are to be multiplexed together. What is the needed minimum bandwidth of
the link if a guard band of 10 KHz is used between the channels.
Five channels need at least four guards.
=> required bandwidth at least = 5*100 + 4*10 = 540KHz.
Wavelength
Another characteristic of a sine wave (like phase, etc.) which binds the period or the frequency to
the propagation speed.
Wavelength = propagation speed * period
WDM applications
SONET network
Allows several connections to share the high bandwidth of a link by sharing the time.
Each connection occupies a portion of time in the link.
If an input unit duration = T s => {an slot duration = T/n ; frame duration = T }
Output link data rate = n * a_connection_data_rate
Synchronization bits, called framing bits, are added at the beginning of each frame to allow the demultiplexer to synchronize
with the incoming bit stream
Four channels are multiplexed using TDM. If each channel sends 100bytes/s and we multiplex 1 byte per
channel, find : a) the frame size, b) the frame duration, c) the frame rate, and d) the bit rate for the link.
a) Each frame carries 1 byte from each channel => the frame size = 4 bytes = 32 bits.
b) Frame duration = 1/100s.
c) Frame rate = 100frames/s=400bytes/s = 3200 bps
d) Link date rate = 400bytes/s = 3200 bps.????
Three strategies, or a combination of them, can be used to handle the disparity in the input data rates.
1) multilevel multiplexing, 2) multiple-slot allocation, and 3) pulse stuffing.
Applications: 1) Telephone companies (with T lines), 2) 2nd generation cellular telephone companies
Statistical TDM
Slots are dynamically allocated to improve the bandwidth efficiency especially when some
input lines do not have data to send.
A slot is allocated only if the input line has a slot to send.
Addressing
A slot needs to carry data as well as the address of the destination.
Simplest form: n bits to define N different output lines with n=log2N
Slot size
The ratio of the data size to address size must be reasonable to make transmission efficient. => a
block of data is usually many bytes while the address is just a few bits.
Bandwidth
The capacity of the link is normally less than the sum of the capacities of each channel.
The capacity of the link is based on the statistics of the load of each channel.
if on average only x percent of the input slots are filled, the capacity of the link reflects this.
Transmission Media
Transmission media is below the physical layer and is directly controlled by it.
Transmission medium is usually free space, metallic cable, or fiber-optic
cable.
Signals, representing data, are transmitted from one device to another in the
form of electromagnetic energy propagated through the transmission media.
Electromagnetic energy includes power, radio waves, infrared light, visible light,
ultraviolet light, and X, gamma, and cosmic rays.
Each of these constitute a portion of the electromagnetic spectrum.
Guided media
Guided media provide a conduit from one device to another.
A signal transmitted along any of these media is directed and contained by the physical medium.
External influences -Interference (noise) and crosstalk- can affect both wires and created
unwanted signals.
If the two wires were parallel
The effect of these unwanted signals will not be the same in both wires because of the different
locations relative to the external influences sources.
This will result in a difference at the receiver.
Twisting makes it probable that both wires are equally affected by external influences.
The receiver, which calculate the difference between the two, receives no unwanted signals => unwanted
signals are mostly cancelled out.
The number of twists per unit of length (i.e. inch) has some effect on the quality of the cable.
TP cable (contd)
EIA (Electronic Industries Association) has developed standards to classify UTP cable into seven
categories
Categories are determined by cable quality (1 lowest and 7 the highest)
Each category is suitable for a specific use.
UTP
Connectors
Most common connector is the RJ45 (Registered Jack)
Application
Used in telephone lines to provide voice and data channels.
The local loop the line connecting the subscriber to the central telephone office- commonly consists of UTP cables.
The outer conductor is also enclosed in an insulating sheath and the whole cable is protected by a plastic cover.
Standards
Coaxial cables are categorized by their RG (Radio Government).
Each RG number denotes a unique set of physical specifications
Wire gauge of the inner conductor, thickness and type of the inner insulator, the construction of the shield, and the size and type of
the outer casing.
Each cable defined by an RG rating is adapted for a specialized function.
Performance
Although a coaxial cable has a much higher bandwidth, the signal weakens rapidly and requires the frequent use
of repeaters.
Application
Was widely used in analog telephone networks, and later with digital telephone networks.
Cable TV networks use coaxial cables (RG-59) at the network boundaries.
Today, fiber-optic cables has replaced the coax cable in telephone and TV networks.
Fiber-Optic Cable
Optic-cable is made of glass or plastic and transmits signals in the form of light.
Light characteristic
Light travels in straight line as long it is moving though a single uniform substance.
If a ray of light traveling through one substance suddenly enters another substance (of a different density), the
ray changes direction according to the angle of incidence (I).
If I < critical angle => the ray refracts and moves closer to the surface.
If I = critical angle => the light bends along the interface
If I>critical angle => the ray reflects (makes a turn) and travel again in the denser substance.
The critical angle is a property of the substance and differs from one substance to another.
Multimode graded-index
The fiber is with a varying density.
Highest at the center of the core and decrease gradually to its lowest at the edge.
=> Decrease the distortion of the signal through the cable.
Single-mode
Uses step-index fiber and a highly focused source of light that limits beam to a small range of
angles, all close to the horizontal.
Such a fiber is manufactured with a much small diameter and with lower density. The decrease in the density
results in a critical angle of 90 degrees to make the beam propagation almost horizontal
Propagations of different beams is almost identical and delays are negligible.
All the beams arrive at the destination together and can be recombined with little distortion of the signal
Fiber sizes
Defined by the ratio of the diameter of their core to the diameter of their cladding, both in micrometers
Connectors
Three types of connectors
SC (Subscriber Channel) connector: used for TV cable.
ST (Straight-Tip) connector: used for connecting cable to networking devices.
MT-RJ connector: has the same size as RJ45.
The attenuation (attenuation versus wavelength) is flatter than in the case of twisted-pair cable and
coaxial cable.
The performance is such that we need fewer repeaters when we use fiber-optic cable.
Application
Often used as backbone networks (like SONET) because its wide bandwidth is cost-effective.
Actually, with WDM we can transfer data at rate of 1600 Gbps.
Some cable TV companies use a hybrid network: combination of optical-fiber and coaxial cable.
LAN such as 100Base-FX network (Fast Ethernet) and 1000Base-X.
Advantages
1) Higher Bandwidth, 2) Less signal attenuation, 3) Immunity to electromagnetic interference, 4)
Resistance to corrosive materials, 5) Light weight, and 6) Greater immunity to tapping.
Disadvantages
1) Installation and maintenance, 2) Unidirectional light propagation, and 3) Coast.
Switching
With large networks point-to-point or multipoint communications are not practical.
Point-to-point connection between each pair of devices (i.e. mesh topology): cost, idle links.
Multipoint connection (i.e. a bus topology) : the distance between the devices and their number increase beyond
the capacity of the media.
Some of these nodes are connected to end systems (computers, telephones, etc.).
Other are used only for routing.
End systems (communicating devices) labeled A, B, E, etc.
Switches labeled I, II, IV, etc. Each switch is connected to multiple links.
Message-switched networks
Phased out but still has networking applications (e-mail)
Communications phases
Connection setup phase: End system A needs to request a connection to end system M that must be accepted
by all the switches and by M.
A circuit (channel) is reserved on each link and the combination of these circuits defines the dedicated path.
During data transfer, the data are not delayed at each switch.
Application
Traditional telephone networks used the circuit-switching approach.
Efficiency : such networks are not efficient because of the resource allocation during the entire connection duration.
Virtual-circuit identifier (VCI): identifier used for data transfer and has only a switch scope.
When a frame arrives, it has a VCI. When it leaves, it has a different VCI.
Each switch has a table with an entry for each active virtual circuit.
Used with switched WANs such as Frame Relay and ATM networks.
Switching
Input ports: performs the physical and data link functions of the switch.
Output ports: same as above but in the reverse order.
Routing table: performs the function of the network layer.
Switching fabric: responsible to move packets from the input queue to the output queue.
Telephone network
Telephone networks, or POTS (Plain Old Telephone System), uses circuit switching.
It was originally an analog system using analog signals to transmit voice.
In 1980, telephone network began to carry data in addition to voice.
The network is now digital and analog.
Telephone network major components
1) Local loops, 2) Trunks, and 3) Switching offices: with several levels : end offices, tandem offices, and
regional offices.
Local loops
A twisted-pair cable that connects the subscriber to the nearest end office or local central office.
When used for voice, it has a bandwidth of 4KHz.
The first three digits of a local phone number define the office, and the next four digits define the local loop number.
Trunks
Transmission media that handle the communication between offices usually optical fibers or satellite links.
A trunk normally handles hundreds of thousands of communication through multiplexing.
Switches are located in a switching offices to avoid having a permanent physical link between any two subscribers.
A switching office connects several local loops or trunks and allow a connection between different subscribers.
Out-band signaling
Signaling becomes automatic.
The switches use, the digital signal defining the caller telephone number, to create a connection with the called parties.
A portion of the voice bandwidth is used for signaling. The voice bandwidth and the signaling bandwidth were separate.
The data transfer network is, for the most part, a circuit-switched network although it can also be a packet-switch network.
Digital services: less sensitive to noise and interference. The two most common services
are
Switched/56 service: is the digital version of an analog switched line. Data rates up to 56Kbps.
Digital data service: is the digital version of an analog leased line. Data rates up to 64Kbps.
Dial-up modems
Traditional telephone lines carry frequencies in [300,3300]Hz
This bandwidth = 3000Hz is used for voice transmission.
To ensure data integrity, only the range [600,3000](B=2400Hz) Hz is used for data
communication.
Modem standards: most of the popular modems are based on the V-series standards
V.32 and V.32bis
V.32 uses a combined modulation and encoding technique called Trellis-coded modulation.
Essentially QAM plus a redundant bit (=> 5 bits) for error detection.
=> Data rate = 4*2400=9600bps.
V.32bis uses 128-QAM transmission (7 bit/baud with one bit for error control)
=> Data rate = 6*2400=14400bps.
Inclusion of automatic fall-back and fall-forward feature to adjust the speed depending on the quality of the line.
Provides a bit rate of 28800 with a 960-point constellation and a bit rate of 336000bps with a 1664-point constellation.
V.90
V.92
Can adjust their speed, and if the noise allows, the upload rate can be 48Kbps. The download rate is always 56Kbps.
Technology used to provide higher-speed access to the Internet over the local loop
Such a technology appeared after the traditional modems reached their peak data rate.
A set of technologies, referred as xDSL, each differing in the first letter: ADSL, VDSL, etc
ADSL (Asymmetric DSL)
Asymmetric: Higher bit rate in the downstream direction than in the upstream direction.
The available bandwidth of the local loop is divided unevenly for the residential customer
Not suitable for business customers.
The filter at the end office (where the local loop terminates) is removed
=> This makes the entire 1.1MHz of a twisted-pair available for data and voice communications.
Factors like the distance, the cable size, etc. affect this bandwidth.
The ADSL data rate is not fixed (adaptive) and changes according to conditions and type of local loop.
Modulation technique used is DMT (Discrete Multitone Technique) which combines QAM and
FDM.
Typically, the available bandwidth of 1.104MHz is divided into 256 channels each uses a bandwidth of 4.312KHZ
Voice (channel 0) ; idle (channels 1 to 5) provide a gap between voice and data communication.
Upstream data and control (channels 6 to 30) ; Downstream data and control (channels 31 to 255) with
DSL (contd)
ADSL
ADSL modem
Installed at the customers site.
The local loop connects to a splitter which separates voice and data communications.
Suitable for business that need to send and to receive data in large volume in both directions.