Lecture 02 - Foundation Problem Building A Network
Lecture 02 - Foundation Problem Building A Network
NETWORKS
https://sites.google.com/a/quest.edu.pk/dr-irfana-memon/lecture-slides
Course Content
NO TOPIC
01 Introduction: Motivations of studying networking
HTTP SMTP
IMAP
SNMP
FTP POP
DNS
SIP
Problem:
How to monitor the performance of networks and
manage them to ensure proper operation ?
Building Blocks
• Nodes: PC, special-purpose hardware…
– Hosts
– Switches
– Multiple access …
Point to Point Link
Multiple-access Link
Links connect computers through physical
medium
Wide variety of transmission links:
1) Magnetic media (transported)
2) Copper twisted pair
3) Coaxial cable
4) Optical fiber
5) Wireless media
Direct Link
Multiple-access Link
Switches/ Routers
Hosts, PCs
A network can be defined
recursively as two or more
nodes connected by a
physical link, by two or
more networks connected
by one or more nodes.
Net 2
Net 1 Net 3
1. Addressing
2. Routing messages
3. Support for unicast/ multicast/ broadcast
Internetworking
• An internetwork is defined as two or more computer
network LANs or WAN or computer network segments
are connected using devices, and they are configured by
a local addressing scheme. This process is known
as internetworking.
• An interconnection between public, private,
commercial, industrial, or government computer
networks can also be defined as internetworking.
• An internetworking uses the internet protocol.
• The reference model used for internetworking is Open
System Interconnection(OSI).
Types Of Internetworking
1. Extranet:
f(t)
t
Measuring signal
0.8
0.6
0.4
0.2
de
Amplitu
0
1 22 43 64 85 106 127 148 169 190 211 232 253 274 295 316 337 358 379 400 421 442 463 484 505 526 547 568 589 610 631 652 673 694 715
-0.2
-0.4
-0.6
-0.8
-1
Period
Types of signals
Signals
Continuous-time Discrete-time
• A wave’s amplitude
• Frequency
• Phase
• Digital signals composed of
• pulses
• precise
• positive voltages and zero voltages
Terminology: Periodic (CT/analog
signal )
Period:
•The period of a periodic waveform will be denoted with a
capital T.
•The period is measured in seconds.
•The period is the smallest value of T satisfying
g(t) = g(t + T) for all t. g(t) = g(t ± nT)
•In essence, it's the smallest amount of time it takes for the
function to repeat itself.
•If the period of a function is finite, the function is called
"periodic".
Terminology: Periodic (CT/analog
signal )
Frequency:
•The frequency of a periodic function is the number of
complete cycles that can occur per second.
•Frequency is denoted with a lower-case f.
•It is defined in terms of the period, as follows: f= 1/T
(Hertz/ cycles per seconds)
Terminology: Periodic (CT/analog
signal )
• Both the stations can send and receive the data at the
same time.
Disadvantages Of Full-Duplex
Mode
Direction of communication In simplex mode, the In half-duplex mode, the In full-duplex mode, the
communication is communication is communication is
unidirectional. bidirectional, but one at a bidirectional.
time.
Send/Receive A device can only send the Both the devices can send Both the devices can send
data but cannot receive it or and receive the data, but one and receive the data
it can only receive the data at a time. simultaneously.
but cannot send it.
Performance The performance of half- The performance of full- The Full-duplex mode has
duplex mode is better than duplex mode is better than better performance among
the simplex mode. the half-duplex mode. simplex and half-duplex
mode as it doubles the
utilization of the capacity of
the communication channel.
• Need to know
– Timing of bits - when they start and end
– Signal levels
• Factors affecting successful interpreting of
signals
– Signal to noise ratio
– Data rate
– Bandwidth
Why need signal/channel coding
• => Need channel coding and error control to improve
transmissions
• Channel coding (CC)
= coding (discrete digital) information into a form suitable for
transmission, with emphasis on enhanced reliability
– CC adds redundancy that allows for info restoration or
recovery when needed
• Price paid: need broader bandwidth
– CC ensures proper transmission quality
• Measured by
– Bit error quality (BER) / Frame error quality (FER)
Information to
be transmitted Source Channel
Modulation Transmitter
coding coding
Channel
Information
r
Channel Demodulation Receiver
decoding
Reasons for Choosing Encoding
Techniques
• Digital data, digital signal [wired LAN]
– less complex and expensive
• Analog data, digital signal [codec]
– use modern digital transmission and switching
equipment
• Digital data, analog signal [modem]
– Some transmission media will only propagate analog
signals
E.g., optical fiber and unguided media
• Analog data, analog signal
– transmitted easily and cheaply
– Done with voice transmission over voice-grade lines
Signal Encoding Criteria
• What determines how successful a receiver will be in
interpreting an incoming signal?
– Signal-to-noise ratio
– Data rate
– Bandwidth
• An increase in bandwidth allows an increase in data rate
• An increase in data rate increases bit error rate
• An increase in SNR (Eb/N0) decreases bit error rate
• S=N/r bauds
• S is baud rate
• N is bit rate
• Where r is the number of data bits per signal element
Bit and baud
Bit and Baud
Example1
An analog signal carries 4 bits per signal element. If 1000
signal elements are sent per second, find the bit rate.
Example1
An analog signal carries 4 bits per signal element. If 1000
signal elements are sent per second, find the bit rate.
Solution
In this case, r = 4, S = 1000, and N is unknown. We ca
find the value of N from
Example 3 (Exercise)
An analog signal has a bit rate of 8000 bps and a baud
rate of 1000 baud. How many data elements are
carried by each signal element? How many signal
elements do we need?
Example 3 (Exercise)
An analog signal has a bit rate of 8000 bps and a baud
rate of 1000 baud. How many data elements are
carried by each signal element? How many signal
elements do we need?
Solution
In this example, S = 1000, N = 8000, and r and L are
unknown. We find first the value of r and then the value
of L.
Amplitude Shift Keying (ASK)
• ASK is implemented by changing the amplitude of a
carrier signal to reflect amplitude levels in the digital
signal.
• For example: a digital “1” could not affect the signal,
whereas a digital “0” would, by making it zero.
• The line encoding will determine the values of the
analog waveform to reflect the digital data being
carried.
Describe Amplitude Shift Keying
ASK
Advantages: Simplicity
Solution
For full-duplex ASK, the bandwidth for each direction is BW =
10000 / 2 = 5000 Hz
The carrier frequencies can be chosen at the middle of each band
fc (forward) = 1000 + 5000/2 = 3500 Hz
fc (backward) = 11000 – 5000/2 = 8500 Hz
Exercise
We have an available bandwidth of 100 kHz which spans
from 200 to 300 kHz. What are the carrier frequency and the
bit rate if we modulated our data by using ASK with d = 1?
Exercise
We have an available bandwidth of 100 kHz which spans from
200 to 300 kHz. What are the carrier frequency and the bit
rate if we modulated our data by using ASK with d = 1?
Solution
The middle of the bandwidth is located at 250 kHz. This
means that our carrier frequency can be at fc = 250 kHz. We
can use the formula for bandwidth to find the bit rate (with d
= 1 and r = 1).
Frequency Shift Keying
Frequency Shift Keying
Relationship between baud rate and bandwidth in FSK
what is the Relationship between baud rate
and bandwidth in FSK ?
Frequency Shift Keying
Solution
For FSK
BW = baud rate +
BW = bit rate + fc1 fc0 = 2000 + 3000 = 5000 Hz
Example 2
Find the maximum bit rates for an FSK signal if the
bandwidth of the medium is 12,000 Hz and the difference
between the two carriers is 2000 Hz. Transmission is in
full-duplex mode.
Example 2
Solution
Because the transmission is full duplex, only 6000 Hz is
allocated for each direction.
BW = baud rate + fc1 fc0
Baud rate = BW (fc1 fc0 ) = 6000 2000 = 4000
But because the baud rate is the same as the bit rate, the
bit rate is 4000 bps.
Exercise
We have an available bandwidth of 100 kHz which spans
from 200 to 300 kHz. What should be the carrier frequency
and the bit rate if we modulated our data by using FSK with
d = 1?
Exercise
We have an available bandwidth of 100 kHz which spans
from 200 to 300 kHz. What should be the carrier frequency
and the bit rate if we modulated our data by using FSK
with d = 1?
Solution
we are modulating by using FSK. The midpoint of the band
is at 250 kHz. We choose 2Δf to be 50 kHz; this means
Exercise
We need to send data 3 bits at a time at a bit rate of 3
Mbps. The carrier frequency is 10 MHz. Calculate the
number of levels (different frequencies), the baud rate,
and the bandwidth.
Exercise
We need to send data 3 bits at a time at a bit rate of 3 Mbps. The carrier
frequency is 10 MHz. Calculate the number of levels (different
frequencies), the baud rate, and the bandwidth.
Solution
We can have L = 23 = 8. The baud rate is S = 3 Mbps/3
= 1 Mbaud. This means that the carrier frequencies must be
1 MHz apart (2Δf = 1 MHz). The bandwidth is B = 8 × 1M
= 8M. Figure shows the allocation of frequencies and
bandwidth.
Phase Shift Keying (PSK)
• Use different phased signals to represent binary values
– 0 = in phase with reference
– 1 = out of phase with reference
Reference
• Not practical
0 1 0 1
Amplitude
Time
1 second
Advantage:
• PSK is less susceptible to errors than ASK, while it requires/occupies
the same bandwidth as ASK
•more efficient use of bandwidth (higher data-rate) are possible, compared to
FSK !!!
Disadvantage: more complex signal detection / recovery
process,
Phase Shift Keying (PSK)
Phase Shift Keying (4-PSK)
Phase Shift Keying (8-PSK)
what is the Relationship between baud rate
and bandwidth in PSK ?
Phase Shift Keying
Solution
For PSK the baud rate is the same as the bandwidth,
which means the baud rate is 5000. But in 8-PSK the bit
rate is 3 times the baud rate, so the bit rate is 15,000 bps.
Note:
Quadrature amplitude modulation
is a combination of ASK and PSK so
that a maximum contrast between
each signal unit (bit, dibit, tribit,
and so on) is achieved.
Quadrature Amplitude Modulation
(QAM)
• Combine ASK and PSK such that each signal corresponds to
multiple bits
• More phases than amplitudes
• Minimum bandwidth requirement same as ASK or PSK
3 amplitudes
12 phases
Advantage: higher data rate than in PSK (2 bits per bit interval),
while bandwidth occupancy remains the same
•4-PSK can easily be extended to 8-PSK, i.e. n-PSK
however, higher rate PSK schemes are limited by the ability of
equipment to distinguish small differences in phase
Quadrature Amplitude Modulation
(4-QAM and 8-QAM)
Quadrature Amplitude Modulation
(16-QAM)
Table 1 - Bit and baud rate comparison
16-QAM Quadbit 4 N 4N
32-QAM Pentabit 5 N 5N
64-QAM Hexabit 6 N 6N
128-QAM Septabit 7 N 7N
256-QAM Octabit 8 N 8N
83
Example 1
A constellation diagram consists of eight equally spaced
points on a circle. If the bit rate is 4800 bps, what is the
baud rate?
Example 1
A constellation diagram consists of eight equally spaced
points on a circle. If the bit rate is 4800 bps, what is the
baud rate?
Solution
The constellation indicates 8-PSK with the points 45
degrees apart. Since 23 = 8, 3 bits are transmitted with
each signal unit. Therefore, the baud rate is
4800 / 3 = 1600 baud
Example 2
Compute the bit rate for a 1000-baud 16-QAM signal.
Example 2
Compute the bit rate for a 1000-baud 16-QAM signal.
Solution
A 16-QAM signal has 4 bits per signal unit since
log216 = 4.
Thus,
1000·4 = 4000 bps
Example 3
Compute the baud rate for a 72,000-bps 64-QAM signal.
Example 3
Compute the baud rate for a 72,000-bps 64-QAM signal.
Solution
A 64-QAM signal has 6 bits per signal unit since
log2 64 = 6.
Thus,
72000 / 6 = 12,000 baud
Bandwidth Utilization
Multiplexing
Multiple Access
Multiplexing and De-multiplexing
Multiplexing
• Allows multiple signals to travel simultaneously over
one medium
• In order to carry multiple signals, the medium’s
channel is logically separated into multiple smaller
channels, or sub channels
• A device that can combine many signals on a channel,
a multiplexer (mux), is required at the sending end of
the channel
• At the receiving end, a demultiplexer (demux)
separates the combined signals and regenerates them
in their original form
Multiplexing
The satellite channel is analog. We divide it into four channels, each channel
having a 250-kHz bandwidth. Each digital channel of 1 Mbps is modulated such
that each 4 bits is modulated to 1 Hz. One solution is 16 QAM modulation.
Analog hierarchy
Wavelength-division multiplexing
WDM is an analog multiplexing
technique to combine optical signals.
157
Synchronous Time-division
multiplexing
In synchronous TDM, the data rate of
the link is n times faster, and the unit
duration is n times shorter.
Synchronous Time Division
Multiplexing
• Data rate of medium exceeds data rate of digital signal to
be transmitted
• Multiple digital signals interleaved in time
• May be at bit level of blocks
• Time slots preassigned to sources and fixed
• Time slots allocated even if no data
• Time slots do not have to be evenly distributed amongst
sources
TDM Link Control
• No headers and trailers
• Data link control protocols not needed
• Flow control
– Data rate of multiplexed line is fixed
– If one channel receiver can not receive data, the others
must carry on
– The corresponding source must be quenched
– This leaves empty slots
• Error control
– Errors are detected and handled by individual channel
systems
De-Multiplexing
• If any of several signals was put onto a single carrier, then
at the other end the signals must be separated and each
sent to the appropriate destination.
• One input (the shared channel) is routed to one of
several outputs.
– Like mail, it is possible for me to send a message to any
individual one of you. So there must be a set of
paths from me to each of you, and there must be a
mechanism for selecting one of those paths in a
particular instance.
• In addition to data input, there must be select inputs.
– To select from 2N data outputs requires N select inputs.
Demultiplexing