DCN 01
DCN 01
Interfacing Routing
Flow Control
Transmission\Communication Mode
Simplex
Half-duplex
Full-duplex
Networks
Performance
Number of users
Hardware capabilities
Software efficiency
Reliability
Security
Errors
Malicious users
Physical Structure of Network
Type of connections
Timeshared connections
Physical Topology
Type of connections
Physical Topology (Network Topology)
Topology
Advantages Disadvantages
Advantages Disadvantages
Degraded Performance
Advantages Disadvantages
Advantages Disadvantages
Add checkpoints
Provides authorization
OSI Model
Presentation layer:
Determines the format used to exchange data
Encryption/decryption
OSI Model
Application layer:
Used by network applications. For example, Google chrome, Skype etc.
Protocols: HTTP (for web services), FTP (for transferring files), SMTP (for e-
mail service) etc.
OSI Model
Summary of layers
TCP/IP Protocol Suite
TCP/IP Protocol Suite
TCP/IP (Transmission Control Protocol/Internet
Protocol) is a protocol suite used in the Internet
today
Original TCP/IP had four layers
host-to-network
internet
transport
application
A sine wave
Periodic Analog Signals
Period:
The amount of time, in seconds, a signal needs to complete 1 cycle
Frequency:
The number of cycles in one second. It is formally expressed in Hertz
(Hz)
Peak amplitude:
The peak amplitude of a signal is the absolute value of its highest
intensity, proportional to the energy it carries
It is normally measured in volts
Two signals with the same phase and frequency, but different amplitudes
Two signals with the same amplitude and phase, but different frequencies
Example 1:
The power we use at home has a frequency of 50 Hz. Find
out the period of this sine wave.
𝟏 𝟏
T= = = .02 s = 20 ms
𝒇 𝟓𝟎
Example 2:
The period of a signal is 100 ms. What is its frequency in
kilohertz?
Solution: First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3 kHz)
Periodic Analog Signals
Note:
Frequency is the rate of change with respect to time
Change in a short span of time means high frequency
Change over a long span of time means low frequency
If a signal does not change at all, its frequency is zero
If a signal changes instantaneously, its frequency is infinite
Phase:
Phase describes the position of the waveform relative to time 0
It is measured in degrees or radians [360o = 2 Π rad]
Periodic Analog Signals
Three sine waves with the same amplitude and frequency, but different
phases
Example 3
A sine wave has offset 1/6 cycle with respect to time 0. What is
its phase in degrees and radians?
Solution:
We know that 1 complete cycle is 360°. Therefore, 1/6 cycle is
Wavelength and period
Example 1
Assume we need to download text documents at the rate of 100 pages
per second. What is the required bit rate of the channel?
A page contains an average of 24 lines with 80 characters in each line.
If we assume that one character requires 8 bits, the bit rate is
Solution:
Digital Signal as a Composite Analog
Signal
A digital signal is a composite analog signal with an infinite bandwidth.
Transmission of Digital Signals
Baseband Transmission [Local area network]
For signals to be both sent and received, the transmission media must be
split into two channels. Alternatively, two cables can be used: one to send
and one to receive transmissions
● This means that 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
Causes of impairment
Attenuation
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. To compensate for this loss, amplifiers are used to amplify the
signal
The decibel (dB) measures the relative strengths of two signals or one
signal at two different points
dB = 10 log10 P2/P1
Example 1
Suppose a signal travels through a transmission medium and its power is
reduced to one-half. This means that P2 is (1/2)P1. In this case, the attenuation
(loss of power) can be calculated as
Example 2
A signal travels through an amplifier, and its power is increased 10 times. This
means that P2 = 10P1. In this case, the amplification (gain of power) can be
calculated as
Distortion
Distortion means that the signal changes its form or shape
It can occur in a composite signal made of different frequencies. Each
signal component has its own propagation speed through a medium and,
therefore, its own delay in arriving at the final destination. Differences in
delay may create a difference in phase
Noise
Several types of noise, such as thermal noise, induced noise,
crosstalk, and impulse noise, may corrupt the signal
Thermal noise is the random motion of electrons in a wire, which
creates an extra signal not originally sent by the transmitter
Induced noise comes from sources such as motors and appliances
Crosstalk is the effect of one wire on the other
Impulse noise is a spike (a signal with high energy in a very short
time) that comes from power lines, lightning etc.
Signal-to-Noise Ratio
To find the theoretical bit rate limit, we need to know the ratio of the
signal power to the noise power. The signal-to-noise ratio is defined as:
A high SNR means the signal is less corrupted by noise; a low SNR means
the signal is more corrupted by noise
Since SNR is the ratio of two powers, it is often described in decibel units:
SNRdB = 10log10SNR
Example
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 = 10 log10 104 = 40 dB
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:
The bandwidth available
The level of the signals we use
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
● For a noiseless channel, the Nyquist bit rate formula defines the
theoretical maximum bit rate
BitRate = 2 * bandwidth * log2L
where L is the number of signal levels used to represent data
Example
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
Noisy Channel: Shannon Capacity
In reality, we cannot have a noiseless channel. In 1944, Claude Shannon
introduced a formula, called the Shannon capacity, to determine the
theoretical highest data rate for a noisy channel:
Capacity = bandwidth x log2 (1 + SNR)
Example 1
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 C is calculated as
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
Example 2
We have a channel with a 1 MHz 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
The Shannon formula gives us 6 Mbps, the upper limit. For better
performance we choose something lower, 4 Mbps, for example. Then we
use the Nyquist formula to find the number of signal levels
BitRate = 2 * bandwidth * log2L
Note: The Shannon capacity gives us the upper limit; the Nyquist
formula tells us how many signal levels we need
Performance
● One important issue in networking is the performance of the
network. One characteristic that affect network performance is
bandwidth
● In networking, we use the term bandwidth in two contexts
The first, bandwidth in hertz, refers to the range of frequencies in a
composite signal or the range of frequencies that a channel can pass
The second, bandwidth in bits per second, refers to the speed of bit
transmission in a channel or link
Solution:
We can calculate the throughput as
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
×10 8 m/s in cable.
Latency (Delay)
The transmission time of a message depends on the size of the
message and the bandwidth of the channel.
Example
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 ×10 8
m/s .
Bandwidth-Delay Product
Digital Transmission
Digital-to-digital Conversion
We can represent digital data by using digital signals
The conversion involves three techniques:
Line coding
Block coding
Scrambling
Line coding is always needed; block coding and scrambling may or
may not be needed
Baseline Wandering
● Baseline : a running average of the received signal power
● Baseline Wandering :
A long string of 0s or 1s can cause a drift in the baseline
● It makes difficult for the receiver to decode correctly.
● A good line coding scheme needs to prevent baseline wandering.
DC Components
● When the voltage level in a digital signal is constant for a while
● It creates very low frequencies around zero
● Creates problems for a system that cannot pass low frequencies
● For example, a telephone line cannot pass frequencies below 200 Hz.
Line coding characteristics
Self-synchronization
● A self-synchronizing digital signal includes timing information in the
data being transmitted.
● If the receiver clock is faster or slower, the receiver might
misinterpret the signals
● In the following figure, receiver has a shorter bit duration
Line coding characteristics
Self-synchronization : Example
● In a digital transmission, the receiver clock is 0.1 percent faster than
the sender clock. How many extra bits per second does the receiver
receive if the data rate is 1 kbps? How many if the data rate is 1
Mbps?
Line coding characteristics
Complexity
● A complex scheme is more costly to implement than a simple one.
Line coding schemes
Unipolar NRZ (Nonreturn to Zero) scheme
Unipolar: All the signal levels are on one side of the time axis, either above
or below
● Signal does not return to zero at the middle of the bit
Unipolar NRZ:
● 0 = low level
● 1 = high level
Polar schemes: NRZ-L (Nonreturn to Zero-Level )
and NRZ-I (Nonreturn to Zero Inverted)
● Polar schemes: The voltages are on both sides of the time axis
● In NRZ-L the level of the voltage determines the value of the bit.
In NRZ-I the inversion or the lack of inversion determines the
value of the bit
NRZ-L:
● 0 = high level
● 1 = low level
NRZ-I:
● 0 = no transition at
beginning of interval
● 1 = transition at
beginning of interval
NRZ-S and NRZ-M (Two versions of NRZ-I)
Mark: Binary 1
Space: Binary 0
● The main problem with NRZ encoding occurs when the sender and
receiver clocks are not synchronized
● In RZ, the signal changes not between bits but during the bit
● In RZ, signal goes to 0 in the middle of each bit and it remains
there until the beginning of the next bit
RZ:
● 0 = low level to zero
● 1 = high level to zero
Polar biphase: Manchester and differential Manchester schemes
Manchester:
● 0 = transition from high to low
● 1 = transition from low to high
Differential Manchester:
Always a transition in middle of
interval
● 0 = transition at beginning of
interval
● 1 = no transition at beginning
of interval
Bipolar schemes: AMI (alternate mark inversion) and pseudoternary
AMI:
● 0 = neutral zero voltage
(or no line signal)
● 1 = positive or negative
level, alternating for
successive ones
Pseudoternary:
● 0 = positive or negative
level, alternating for
successive zeros
● 1 = no line signal
Multilevel: mBnL
● 2B1Q scheme uses data pattern of size 2 and encodes the 2-bit
patters as 1 signal element belonging to a four-level signal
● Codes can be created that are differential at the bit level forcing
transitions at bit boundaries.
Summary of line coding schemes
Block Coding
For a code to be capable of error detection, we need to add
redundancy, i.e., extra bits to the data bits.
division,
substitution and
combination
Block Coding
Block Coding
Solution
The bandwidth of a low-pass signal is between 0 and
f, where f is the maximum frequency in the signal.
Therefore, we can sample this signal at 2 times the
highest frequency (200 kHz). The sampling rate is
therefore 400,000 samples per second.
Pulse Code Modulation (PCM)
Pulse Code Modulation (PCM)
Quantization Levels
The midpoint of each zone is assigned a value from 0 to
L-1 (resulting in L values)
Each sample falling in a zone is then approximated to
the value of the midpoint.
Encoding
Each quantized sample can be changed to an n-bit code
word.
The bit rate can be found from the formula
Pulse Code Modulation (PCM)
Pulse Code Modulation (PCM)
Modulator
The process records the small positive or negative
changes, called delta δ.
Adaptive DM
The value of delta is not fixed.
Bandwidth
Carrier Signal
B = (1+d)S
B = (1+d)S +2 f
Binary FSK (BFSK)
Implementation of binary FSK
Phase Shift Keying (PSK)
The digital data stream changes the phase of the carrier signal, fc.
B = (1+d)S
BAM = 2B
Frequency Modulation(FM)
The modulating signal changes the freq. fc of the carrier signal.
Solution:
We can answer the questions as follows:
a. The input bit duration is the inverse of the bit rate:
1/1 Mbps = 1 μs
b. The output bit duration is one-fourth of the input bit duration, or ¼
μs
Example 1 (Contd…)
c. The output bit rate is the inverse of the output bit duration or
1/(4μs) or 4 Mbps.
This can also be deduced from the fact that the output rate is 4
times as fast as any input rate; so the output rate = 4 × 1 Mbps
= 4 Mbps
Data Rate Management
Not all input links maybe have the same data rate.
6.172
Data rate matching
Multilevel: used when the data rate of the input links
are multiples of each other.