CS601 - Data Communication Updated Handouts
CS601 - Data Communication Updated Handouts
CS601 - Data Communication Updated Handouts
Communication: Sharing of
Information (Local or
remote)
Telecommunications:
Communication at a
Distance (includes
telephony, telegraph, and
television etc.)
Data communications:
Exchange of data between
two devices via some form
of transmission media
Effectiveness of a Data
Communication System:
• Delivery
• Accuracy
• Timeliness
• Jitter
• Text
• Numbers
• Images
• Audio
• Video
• Simplex
• Half-Duplex
• Full-Duplex
• Network:
Interconnection of a set of
devices capable of
communication
• Host
• Connecting Device
• Performance
✓ Throughput
✓ Delay
• Reliability
• Security
• Link
• Type of Connection
✓ Point-to-Point
✓ Multipoint
• Physical Topologies:
✓ Mesh
✓ Star
✓ Bus
✓ Ring
• Network classification:
✓ Size
✓ Geographical
Coverage
✓ Ownership
• Host Address
• Interconnects connecting
devices such as switches,
routers, or modems
• Point-to-Point WAN
• Switched WAN
• Internetwork
• Internet draft
• Internet draft
• Protocol Layering
Simple Communication:
only one simple protocol
Complex Communication,
we need a protocol at each
layer, or Protocol Layering
Abdul Subhan Bhambhani (03137375444)
Protocol Layering - Example Scenario 1
• Disadvantages
✓ None Really!
• Two Principles
✓ Bidirectional
Communication → Each
Layer performs two
opposite tasks in each
direction
• Logical Connections
✓ Imaginary connection
between each layer
• Logical Connections
✓ Imaginary connection
between each layer
• Logical Connections
between TCP/IP Layers
• Important Concept in
Internet Protocol Layering
• Layer Header
• Physical Layer is an
exception
• Physical Layer is an
exception
• Application (TCP/IP) =
Application + Presentation
+ Session (OSI)
✓ Performance of
TCP/IP better than
that of OSI
• International Organization
for Standardization (ISO)
• Close to three-fourths of
countries represented
• Analog Data →
Continuous
• Signals represent
Data
• Signals → Analog
or Digital
• Analog Signal →
Infinite Levels of
Intensity over
time
• Digital Signal →
Limited number
of defined values
Abdul Subhan Bhambhani (03137375444)
Analog & Digital Signals
• Analog/Digital Signal →
Periodic or Non-periodic
• Periodic Signal →
Pattern
• Non-Periodic → No
Pattern
• Composite Periodic
Analog signal→
Composed of multiple
sine waves
• Analog Data →
Continuous
• f = 1/T or T = 1/f
Value
•••
Time
•••
Time
Amplitude
f 3f 9f Frequency
Bandwidth
Bandwidth in
Bandwidth in
Hertz
bps
Range of frequencies No. of bits a channel, link
in a composite signal or network can transmit
• Range of frequencies
contained in a Composite
Signal
• The bandwidth is
normally a difference
between two frequencies
(the highest and the
lowest)
log2 4 = 2 bits
• Range of frequencies
contained in a Composite
Signal
• The bandwidth is
normally a difference
between two frequencies
(the highest and the
lowest)
• Number of bits
sent in 1 second
• Bit Rate is
expressed in bits
per second (bps)
• Most digital
signals are non-
periodic, and
thus period and
frequency are
not appropriate
characteristics
Abdul Subhan Bhambhani (03137375444)
Bit Rate
The TV stations
reduce this rate to
20 to 40 Mbps
through
compression.
Abdul Subhan Bhambhani (03137375444)
Bit Length
We discussed the concept of
the wavelength for an analog
signal: the distance one cycle
occupies on the transmission
medium. We can define
something similar for a
digital signal: the bit length.
The bit length is the distance
one bit occupies on the
transmission medium.
• Infinite Bandwidth
The TV stations
reduce this rate to
20 to 40 Mbps
through
compression.
Abdul Subhan Bhambhani (03137375444)
Baseband Transmission
• Modulation
allows us to use
a bandpass
channel—a
channel with a
bandwidth that
does not start
from zero
• Cause Signal
impairments
• Modulation
allows us to use
a bandpass
channel—a
channel with a
bandwidth that
does not start
from zero
• Cause Signal
impairments
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
• Crosstalk is the
effect of one
wire on the
other.
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
• Crosstalk is the
effect of one
wire on the
other.
Solution
The values of SNR
and SNRdB can be
calculated as
follows:
• Data Rate
depends on 3
factors:
✓ The
Bandwidth
available
✓ The level of
the signals
we use
Abdul Subhan Bhambhani (03137375444)
✓ The level of
Data Rate Limits
✓ another by Shannon
for a noisy channel
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
• In reality, we
cannot have a
noiseless
channel; the
channel is always
noisy
• In 1944, Claude
Shannon
introduced a
formula, to
determine the
theoretical
highest data rate
for a noisy
Abdul Subhan Bhambhani (03137375444)
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. For this
channel the
capacity C is
calculated as
Theoretical highest
bit rate of a
Telephone line with
a Bandwidth of
3000 Hz assigned
for data
communication.
SNR is usually
3162. The capacity
is calculated as:
• Finding balance
between Bit rate
and System
Reliability
Network
Performance
• Bandwidth can
be used in two
different contexts
with two
different
measuring
values:
• Bandwidth in
Hertz
Abdul Subhan Bhambhani (03137375444)
• Bandwidth in
Example 3.42
The bandwidth of a
subscriber line is 4
kHz for voice or
data. The
bandwidth of this
line for data
transmission
can be up to 56,000
bps using a
sophisticated
modem to change
the digital signal to
analog.
Bandwidth
Bandwidth in
Bandwidth in
Hertz
bps
Range of frequencies No. of bits a channel, link
in a composite signal or network can transmit
• Measure of how
fast we can
actually send
data through a
network.
• Bandwidth is not
the same as
Throughput
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?
• Data transmission
(in form of Signal)
over a network
and how network
behaves is
important
• More important
is the
performance of
the network
Network
Performance
• Bandwidth can
be used in two
different contexts
with two
different
measuring
values:
• Bandwidth in
Hertz
Abdul Subhan Bhambhani (03137375444)
• Bandwidth in
Example 3.42
The bandwidth of a
subscriber line is 4
kHz for voice or
data. The
bandwidth of this
line for data
transmission
can be up to 56,000
bps using a
sophisticated
modem to change
the digital signal to
analog.
Bandwidth
Bandwidth in
Bandwidth in
Hertz
bps
Range of frequencies No. of bits a channel, link
in a composite signal or network can transmit
• Measure of how
fast we can
actually send
data through a
network.
• Bandwidth is not
the same as
Throughput
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?
(12,000X10,000)/60 =
2Mbps
The throughput is
almost one-fifth of
the bandwidth in this
case.
• Jitter is a
problem if
different packets
of data encounter
different delays
and the
application using
the data at the
receiver site is
time-sensitive
(audio and video
data, for
example)
• Signals → Analog or
Digital
• Digital Transmission
• Analog Transmission
Digital
Transmission
Digital to Digital
Conversion
Case
2
• Signals → Analog or
Digital
• Digital Transmission
• Analog Transmission
• mB/nB encoding
technique
• We need Redundancy to
ensure Synchronization
• mB/nB encoding
technique
• We need Redundancy to
ensure Synchronization
• mB/nB encoding
technique
• We need Redundancy to
ensure Synchronization
• mB/nB encoding
technique
• We need Redundancy to
ensure Synchronization
• High-density bipolar
3-zero (HDB3)
• Process of Digitization
• Two techniques:
✓ Pulse Code
Modulation (PCM)
✓ Delta Modulation
(DM)
• Quantization
• Encoding
• High-density bipolar
3-zero (HDB3)
• Quantization
• Encoding
✓ Sampling
✓ Quantization
✓ Encoding
• Decoding
✓ fs = 4f (2 times the
Nyquist rate)
✓ fs = 2f (Nyquist rate)
✓ fs = f (one-half the
Nyquist rate)
• Delta modulation is a
simpler technique
• No code words
• Do we send 1 bit at a
time; or do we group
bits into larger groups
and, if so, how?
• Parallel or Serial
Transmission
• Process of Digitization
• Two techniques:
✓ Pulse Code
Modulation (PCM)
✓ Delta Modulation
(DM)
• Delta modulation is a
simpler technique
• No code words
• Only one
communication channel
rather than ‘n’ to
transmit data
• Do we send 1 bit at a
time; or do we group
bits into larger groups
and, if so, how?
• Parallel or Serial
Transmission
• Synchronization
between characters is
not enough
• Isochronous guarantees
fixed rate data
• Only one
communication channel
rather than ‘n’ to
transmit data
• Bandwidth Required ∝
Signal Rate (except FSK)
• Carrier Signal
Direction of flow
Frame Frame Frame
• Signal element is
represented as a dot
• Amplitude Modulation
(AM)
• Frequency Modulation
(FM)
• Amplitude Modulation
(AM)
• Frequency Modulation
(FM)
VCO
d/dt
BPM = 2(1 + b )B
0
fc
• Signals generated by
each sending device
modulate different
carrier frequencies
• Amplitude Modulation
(AM)
• Frequency Modulation
(FM)
= 540 KHZ
VCO
d/dt
BPM = 2(1 + b )B
0
fc
• Multiplexing allows us to
combine several lines into
one
• Statistical TDM
• Bandwidth allocated to
each station needs to be
larger than what is
needed to allow
Redundancy
• Frequency Hopping
Spread Spectrum (FHSS)
• STP
• Bandwidth allocated to
each station needs to be
larger than what is
needed to allow
Redundancy
• Often referred to
wireless communication
• Electromagnetic waves
ranging in frequencies
between 1 and 300 GHz
are called microwaves
• Microwaves are
unidirectional
• When an antenna
transmits microwaves,
they can be narrowly
focused
• Prevents interference
between one system and
another
Abdul Subhan Bhambhani (03137375444)
Switching
• A network is a set of
connected devices
• Problem of how to
connect multiple devices
to make one-to-one
communication possible
• Switched network
consists of a series of
switches
✓ Circuit Switching
✓ Packet Switching
✓ Message switching
✓ Connection Setup
✓ Data Transfer
✓ Connection
Teardown
• Often referred to
wireless communication
• Electromagnetic waves
ranging in frequencies
between 1 and 300 GHz
are called microwaves
• Microwaves are
unidirectional
• When an antenna
transmits microwaves,
they can be narrowly
focused
✓ The Space-Division
switch
✓ The Time-Division
switch
• If a packet is to travel
from a host to another
host, it needs to pass
through these networks
✓ Framing
✓ Flow Control
✓ Error Control
✓ Congestion Control
✓ Point-to-point link or
a
✓ Broadcast link
FF:FF:FF:FF:FF:FF
✓ Point-to-point link or
a
✓ Broadcast link
✓ Block Coding
✓ Convolution Coding
• dmin= s+1
where,
s →no. of detectable
errors
dmin→ minimum
hamming distance
• Cyclic redundancy
check (CRC) is used in
networks such as LANs
and WANs
• Cyclic redundancy
check (CRC) is used in
networks such as LANs
and WANs
✓ Single-bit error
means that only 1 bit
of a given data unit
(such as a byte,
character, or packet)
is changed from 1 to
0 or from 0 to 1
Abdul Subhan Bhambhani (03137375444)
Cyclic Code Analysis using Polynomials
• Easy Implementation
• Fast Implementation
R = P1 + P2 +…+ Pi + … + PN
This means:
Pi = P1 + P2 +…+ R +. . .+ PN
R = P1 + P2 +…+ Pi + … + PN
• dmin= s+1
where,
s →no. of detectable
errors
dmin→ minimum
hamming distance
DLC Services
Framing
Flow Control
Error Control
• Framing separates a
message by adding a
sender address and a
destination address
• If a codeword is
cyclically shifted
(rotated), the result is
another codeword
• If 1011000 is a
codeword and we
cyclically left-shift, then
0110001 is also a
codeword
Abdul Subhan Bhambhani (03137375444)
Cyclic Redundancy Check (CRC)
• Subset of Cyclic Codes
• Cyclic redundancy
check (CRC) is used in
networks such as LANs
and WANs
• In order to avoid
confusing the receiver,
we use Byte Stuffing
✓ If a frame is corrupted,
it is silently discarded
and if it is good, it is
delivered to network
layer
✓ If frame is corrupted,
it is silently discarded
and if it is good, an
acknowledgement is
sent to sender
Abdul Subhan Bhambhani (03137375444)
Connectionless and Connection-Oriented
• A DLC protocol can be
either connectionless or
connection-oriented
• Connectionless: No
relationship between the
frames
• Connection-Oriented:
Frames are numbered
and sent in order
• Then we interleave m
rows and send the bits
column by column
✓ List of actions to be
performed
• To detect corrupted
frames, we add a CRC
code
• To detect corrupted
frames, we add a CRC
code
• It implements Stop-and-
Wait protocol
✓ Normal Response
Mode (NRM) &
✓ Asynchronous
Balanced Mode (ABM)
✓ List of actions to be
performed
PPP
Authentication
Password Challenge
Authentication Handshake
Protocol Authentication
(PAP) Protocol
(CHAP)
✓ Normal Response
Mode (NRM) &
✓ Asynchronous
Balanced Mode (ABM)
• Potential collisions in
this arrangement as the
medium is shared
between the stations
Abdul Subhan Bhambhani (03137375444)
ALOHA
• When a station sends
data, another station
may attempt to do so at
the same time
✓ The Contention
Window
✓ Acknowledgements
• Acknowledgement:
Positive
acknowledgement and
time-out timer can help
guarantee that the
receiver has received the
frame
• Potential collisions in
this arrangement as the
medium is shared
between the stations
Abdul Subhan Bhambhani (03137375444)
ALOHA
• When a station sends
data, another station
may attempt to do so at
the same time
• Three controlled-access
methods:
✓ Reservation
✓ Polling
✓ Token Passing
• Possession of TOKEN
gives the station the
right to send the data
• TOKEN Management is
required to manage
possession time, Token
monitoring, priority
assignment etc.
• Three protocols:
✓ Frequency Division
Multiple Access (FDMA)
• Three protocols:
✓ Frequency Division
Multiple Access (FDMA)
✓ The Contention
Window
✓ Acknowledgements
• Most implementations
have moved to later
evolutions
• In each interval, a
reservation frame
precedes the data
frames sent in that
interval
4A:30:10:21:10:1A
To find the type of the address, we need to look at the second hexadecimal
digit from the left. If it is even, the address is unicast. If it is odd, the address
is multicast. If all digits are Fs, the address is broadcast. Therefore, we have
the following:
• Three protocols:
✓ Frequency Division
Multiple Access (FDMA)
• Three protocols:
✓ Frequency Division
Multiple Access (FDMA)
✓ Bridged Ethernet
✓ Switched Ethernet
✓ Full-Duplex Ethernet
• Most implementations
have moved to later
evolutions
• To make it compatible
with the Standard
Ethernet, the MAC
sublayer was left
unchanged
• Four implementations
are most common:
• As telephone networks
evolved into a complex
network, the
functionality of the
signaling system
increased
✓ Bridged Ethernet
✓ Switched Ethernet
✓ Full-Duplex Ethernet
• DSL technology
provides high-data-
rate connections for
residential subscribers
over the local loop BUT
UTP is susceptible to
Interfence
Abdul Subhan Bhambhani (03137375444)
Cable TV for Data Transfer
• This imposes an upper
limit on the data rate.
A solution is the use
of the cable TV
network
• Architecture of a
SONET system consists
of signals, devices, and
connections
Abdul Subhan Bhambhani (03137375444)
SONET Architecture
• Signals
✓ Synchronous Transport
Signals (STS)
✓ Optical Carriers (OCs)
✓ Synchronous Transport
Module (STM)
• SONET Devcies
✓ STS Mux/Demux
✓ Regenerators
✓ Add-Drop Multiplexer
and Terminals
• Connections
✓ Section
✓ Line
✓ Path
Abdul Subhan Bhambhani (03137375444)
SONET Signals
• As telephone networks
evolved into a complex
network, the
functionality of the
signaling system
increased
✓ Frame Networks
✓ Mixed Network
Traffic
• Solution
✓ Cell Networks
✓ Asynchronous TDM
• Architecture of a
SONET system consists
of signals, devices, and
connections
Abdul Subhan Bhambhani (03137375444)
Architecture
• ATM is a cell-switched
network
• The user access devices,
called the endpoints, are
connected through a
user-to-network
interface (UNI) to the
switches inside the
network
✓ Medium
✓ Hosts
✓ Isolated LANs
✓ Connection to other
Networks
✓ Moving between
Environments
Abdul Subhan Bhambhani (03137375444)
SONET Frames
• Each synchronous
transport signal STS-n is
composed of 8000
frames
✓ Attenuation
✓ Interference
✓ Multipath
Propagation
✓ Error
Abdul Subhan Bhambhani (03137375444)
Access Control
• Most important issue in
a wireless LAN is how a
wireless host can get
access to the shared
medium (air)
• CSMA/CD does not
work in wireless LANs
for three reasons:
1. Wireless hosts
don’t have power
to send and receive
at the same time
• It is sometimes called
Wireless Ethernet
✓ The Extended
service set (ESS)
• BSS-Transition
Mobility
• ESS-Transition
Mobility
✓ Linear Networks
✓ Ring Networks
✓ Mesh networks
Abdul Subhan Bhambhani (03137375444)
MAC Sub-layer
• IEEE 802.11 defines two
MAC sub-layers:
✓ The Distributed
Coordination
Function (DCF) ; and
✓ The Point
Coordination
Function (PCF)
✓ Frame Networks
✓ Mixed Network
Traffic
• Solution
✓ Cell Networks
✓ Asynchronous TDM
• Control Frames
• Data Frames
✓ 902–928 MHz
✓ 2.400–4.835 GHz
✓ 5.725–5.850 GHz
• A Bluetooth LAN is an ad
hoc network
✓ Piconet
✓ Scatternet
✓ Medium
✓ Hosts
✓ Isolated LANs
✓ Connection to other
Networks
✓ Moving between
Environments
Abdul Subhan Bhambhani (03137375444)
Multiple-Secondary Communication
✓ The Extended
service set (ESS)
✓ Piconet
✓ Scatternet
• BSS-Transition
Mobility
• ESS-Transition
Mobility
NAV
• Connecting devices
connect hosts together
to make a network or
connect networks
together to make an
internet
• As a physical-layer
device, it regenerates
the signal it receives
• As a link-layer device,
the link-layer switch can
check the MAC
addresses (source and
destination) contained
in the frame
Abdul Subhan Bhambhani (03137375444)
Switch versus Hub
• Switch has the
‘Filtering’ capability
• Unlike hub, a switch
can check the
destination address of
a frame and decide on
outgoing port
• Switch eliminates
collisions and does not
require carrier sensing
• Switches connect
heterogeneous devices
✓ Which station
belongs to which
VLAN; and
✓ The membership
of stations
connected to other
switches
• HFC
• FTTx
• Connecting devices
connect hosts together
to make a network or
connect networks
together to make an
internet
• Problems:
✓ How to get high
speed lines out to
each customer?
✓ How to future-proof
the architecture?
• Solution: FTTH