Unit 1
Unit 1
Data Communications
School of Computer Science and Engineering
D r. Ye r r i s w a m y T
y e r r i s w a m y. t @ r e v a . e d u . i n
AY: 2023-2024
Data Communications
D e fi n i t i o n
DATA COMMUNICATIONS
Definition
Data communications are the exchange of data between two devices via some form of
transmission medium.
Data Communications
Characteristics
DATA COMMUNICATIONS
Characteristics
The effectiveness of a data communications system depends on four fundamental characteristics.
4. 2.
Jitter Accuracy
Data that have been altered
in transmission and left
3. uncorrected are unusable
The system must deliver data in a
timely manner. Data delivered late Timeliness
are useless.
Data Communications
Components
DATA COMMUNICATIONS
Components
1. Message: is the data to be communicated - text, numbers, pictures, audio, and video
2. Sender: is the device that sends the data message - computer, workstation, telephone
handset, video camera.
3. Receiver: is the device that receives the message - a computer, workstation, telephone
handset, television.
4. Transmission medium: is the path by which a message travels from sender to receiver -
twisted-pair wire, coaxial cable, fiber-optic cable, and radio waves.
5. Protocol: is a set of rules that govern data communications, an agreement between the
communicating devices. Without a protocol, two devices may be connected but not communicating.
DATA COMMUNICATIONS
Components
Data Communications
Data Flow
DATA COMMUNICATIONS
Data Flow
Simplex mode
Half-duplex
mode
Full-duplex
mode
DATA COMMUNICATIONS
Data Flow
Simplex mode
Half-duplex
mode
Full-duplex
mode
Data Communications
Data Representation
DATA COMMUNICATIONS
Data Representation Numbers
Text
Images
Video Audio
Data Communications
D a t a R e p r e s e n t a t i o n - Te x t
DATA COMMUNICATIONS
Data Representation - Text
The set of bit patterns have been designed to represent text symbols is called a code.
After an image is divided into pixels, each pixel is assigned a bit pattern.
Describe Network
Describe Internet
• In 1973
TCP/IP • End to end delivery of data – encapsulation, datagram, gateway functions.
• In 1983 – official protocol for accessing internet.
• In 1983
MILNET • ARPANET – for military network (MILNET) and for non-military users.
NETWORKS
History of Internet
Performance
Security Reliability
NETWORKS
Network Criteria - Performance
Performance can be measured in many ways: transit time and response
time.
Transit time is the amount of time required for a message to travel from
one device to another.
Performance
NETWORKS
Network Criteria - Performance
The performance of a network depends on:
The number of users The type of transmission medium The efficiency of the software.
throughput
delay.
NETWORKS
Network Criteria - Reliability
The probability of the system keep being available (not fail) over
certain period of time.
NETWORKS
Network Criteria - Security
•
Network •
Authentication
Confidentiality
Security • Integrity
services • Non-repudiation
Networks
Ty p e o f C o n n e c t i o n
NETWORKS
Type of Connection
A link is a communications pathway that transfers data from one device to another.
Multi Point-
point to-Point
NETWORKS
Type of Connection – Point to
Point
A point-to-point connection provides a dedicated link between two devices
The entire capacity of the link is reserved for transmission between those two devices.
use wire or cable to connect the two ends
microwave or satellite links are also possible.
NETWORKS
Type of Connection –
Multipoint
A multipoint connection is one in which more than two specific devices share a single link.
The capacity of the channel is shared
spatially shared connection
timeshared connection
Networks
P h y s i c a l To p o l o g y
NETWORKS
Physical Topology
Two or more devices connect to a link; two or more links form a topology.
The topology of a network is the geometric representation of the relationship of all the links
and linking devices to one another.
NETWORKS
Physical Topology - Mesh
Ap • High-speed LANs
pli • Homes and offices.
cat
io
ns:
NETWORKS
Physical Topology - Star
Advantages:
Disadvantages:
1) The dependency of the whole topology on one single point, the hub. If the hub goes down,
the whole system is dead.
NETWORKS
Physical Topology - Bus
A bus topology, is multipoint.
One long cable acts as a backbone to link all the devices in a network.
A drop line is a connection running between the device and the main cable.
A tap is a connector that either splices into the main cable or punctures the sheathing of a
cable to create a contact with the metallic core.
1) Ease of installation.
3) Redundancy is eliminated
Disadvantages:
Ap
pli • LAN inside an office/building
cat
io
ns:
NETWORKS
Physical Topology - Ring
Advantages:
Disadvantages:
1) Unidirectional traffic.
• Automated Industry.
Ap
pli • Banks.
cat • Research Organizations.
io
ns:
Classification of Networks
LAN
CLASSIFICATION OF
NETWORKS
LAN - Local Area Network
A local area network is privately owned and links the devices in a single office, building, or
campus.
A LAN can be as simple as two PCs and a printer in someone’s home office
It can extend throughout a company and include audio and video peripherals.
The most common LAN topologies are bus, ring, and star.
Provides long-distance transmission of data, image, audio, and video information over
large geographic areas that may comprise a country, a continent, or even the whole world.
A WAN can be as complex as the backbones that connect the Internet or as simple as a
dial-up line that connects a home computer to the Internet.
when it is communicated.
PROTOCOLS AND
STANDARDS
Protocols
In computer networks, communication occurs between entities in
different systems.
However, two entities cannot simply send bit streams to each other
and expect to be understood.
Standards are essential in creating and maintaining an open and competitive market
for equipment manufacturers and in guaranteeing national and international
interoperability of data and telecommunications technology and processes.
two categories:
de facto de jure
( “by fact” or “by (“by law” or “by
convention”) regulation”).
PROTOCOLS AND
STANDARDS
Internet Standards
Internet Standards
Internet Draft
Maturity Levels
PROTOCOLS AND
STANDARDS
Internet Administration
ISOC
IAB
IETF
IRTF
Layered Tasks & OSI model
Introduction
LAYERED TASKS & OSI
MODEL
Introduction
Layers are work as one by sharing the services provided by each other.
Layering allows reuse functionality i.e., lower layers implement common once.
ISO standard covers all aspects of network communications is the Open Systems
Interconnection (OSI) model.
The OSI model is not a protocol; it is a model for understanding and designing a network
architecture that is flexible, robust, and interoperable.
Network interface
layers
LAYERED TASKS & OSI
MODEL
OSI model
LAYERED TASKS & OSI
MODEL
Interaction between layers in the OSI
model Interfaces between Layers
peer-to-peer processes.
Layered Tasks & OSI model
Encapsulation
LAYERED TASKS & OSI
MODEL
Encapsulation
The data portion of a packet at level N - 1 carries the whole packet (data and header and
maybe trailer) from level N. The concept is called encapsulation.
Layers in OSI model
Physical Layer
LAYERS IN OSI MODEL
Physical Layer
The physical layer is responsible for movements of individual bits from one hop (node) to
the next.
LAYERS IN OSI MODEL
Functions of Physical Layer
Physical characteristics of interfaces and medium.
Representation of bits.
Data rate
Synchronization of bits.
Line configuration
Physical topology
Transmission mode
Layers in OSI model
Data link Layer
LAYERS IN OSI MODEL
Data link Layer
The data link layer is responsible for moving frames from one hop (node) to the next.
LAYERS IN OSI MODEL
Functions of Data link Layer
Framing
Physical Addressing
Flow Control
Error Control
Access control
LAYERS IN OSI MODEL
Data link Layer: Hop-to-hop
delivery
Layers in OSI model
Network Layer
LAYERS IN OSI MODEL
Network Layer
The network layer is responsible for the delivery of individual packets from the source host to
the destination host.
LAYERS IN OSI MODEL
Functions of Network Layer
Logical addressing
Routing
LAYERS IN OSI MODEL
Network Layer: Source-to-destination
delivery
Layers in OSI model
Tr a n s p o r t L a y e r
LAYERS IN OSI MODEL
Transport Layer
The transport layer is responsible for the delivery of a message from one process to another.
LAYERS IN OSI MODEL
Transport Layer
Reliable process-to-process delivery of a message.
LAYERS IN OSI MODEL
Functions of Transport Layer
Service-point addressing
Flow Control
Error Control
Connection control
Layers in OSI model
Session Layer
LAYERS IN OSI MODEL
Session Layer
The session layer is responsible for dialog control and synchronization.
LAYERS IN OSI MODEL
Functions of Session Layer
Dialog control
Synchronization
Layers in OSI model
Presentation Layer
LAYERS IN OSI MODEL
Presentation Layer
The presentation layer is responsible for translation, compression, and encryption.
The presentation layer is concerned with the syntax and semantics of the information
exchanged between two systems
LAYERS IN OSI MODEL
Functions of Presentation
Layer
Translation
Encryption
Compression
Layers in OSI model
Application Layer
LAYERS IN OSI MODEL
Application Layer
The application layer is responsible for providing services to the user.
LAYERS IN OSI MODEL
Services of Application Layer
Mail services
Directory services
LAYERS IN OSI MODEL
Summary of Layers
TCP/IP Protocol suite
Introduction
TCP/IP PROTOCOL SUITE
Introduction
TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and
application.
The first four layers provide physical standards, network interfaces, internetworking, and
transport functions that correspond to the first four layers of the OSI model
The three topmost layers in the OSI model, are represented in TCP/IP by a single layer called the
application layer.
Error Control
TCP/IP PROTOCOL SUITE
TCP/IP and OSI model
TCP/IP Protocol suite
Physical and Data link Layer
TCP/IP PROTOCOL SUITE
Functions of Physical Layer
Transmission media
Signal transmission
Framing
Error handling
Physical Addressing
Error Control
At the physical and data link layers, TCP/IP does not define any specific protocol.
TCP/IP Protocol suite
Network Layer
TCP/IP PROTOCOL SUITE
Functions of Network Layer
The application layer in TCP/IP is equivalent to the combined session, presentation, and
application layers in the OSI model.
Error Control
File Transfer Protocol
It is included in the frame used by the data link layer. It is the lowest-level address.
Ethernet uses a 6-byte (48-bit) physical address that is imprinted on the network interface card
(NIC).
ADDRESSING
Physical Addresses -
Représentation
Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits;
every byte (2 hexadecimal digits) is separated by a colon.
07:01:02:01:2C:4B
Logical addresses are necessary for universal communications that are independent of underlying
physical networks.
A logical address in the Internet is currently a 32 or 128-bit address that can uniquely define a
host connected to the Internet.
No two publicly addressed and visible hosts on the Internet can have the same IP address.
ADDRESSING
Logical Addresses -
Représentation
ADDRESSING
Logical Addresses
Each computer is connected to only one link and therefore has only one pair of addresses.
ADDRESSING
Logical Addresses
Addressing
Port Addresses
ADDRESSING
Port Addresses
Computers are devices that can run multiple processes at the same time. The end objective of
Internet communication is a process communicating with another process.
Note that although physical addresses change from hop to hop, logical and port addresses remain
the same from the source to destination
3000
Some applications have user-friendly addresses that are designed for that specific address.
Note that although physical addresses change from hop to hop, logical and port addresses remain
the same from the source to destination
E-mail Address.
Whenever we have multiple devices, we have the problem of how to connect them to make
one-to-one communication possible.
Switches are devices capable of creating temporary connections between two or more
devices linked to the switch.
SWITCHED NETWORKS
Introduction
Some of the nodes are connected to the end systems (computers or telephones).
Connectionless
In circuit switching, the resources need to be reserved during the setup phase.
Circuit-switched networks are not as efficient as the other two types of networks.
SWITCHED NETWORKS
Circuit-Switched Network - Three
Phases
SWITCHED NETWORKS
Circuit-Switched Network - Delay
The delay is minimal. The total delay is the time needed to create the connection, transfer
data, and disconnect the circuit.
Data Switch
Switched Networks
Packet Switching
SWITCHED NETWORKS
Packet Switching
In packet-switched network, message is divided into packets of fixed or variable size.
The size of the packet is determined by the network and the governing protocol.
Datagram Networks
When the switch receives the packet, this destination address is examined; the routing table
is consulted to find the corresponding port through which the packet should be forwarded.
The destination address in the header of a packet in a datagram network remains the same
during the entire journey of the packet.
waiting times (w 1 + w 2)
SWITCHED NETWORKS
Virtual Circuit Switching
The network has switches that allow traffic from sources to destinations
A source or destination can be a computer, packet switch, bridge, or any other device that
connects other networks.
SWITCHED NETWORKS
Virtual Circuit Switching -
Addressing
In a virtual-circuit network, two types of addressing are involved: Global and Local (virtual-
circuit identifier) addresses.
Global Addressing: address that can be unique in the scope of the network.
Virtual-Circuit Identifier (VCI): The identifier that is actually used for data transfer is called
the VCI. A VCI, is a small number that has scope within the switch.
Teardown phase
SWITCHED NETWORKS
Virtual Circuit Switching - Connection Setup phase
In the setup phase, the source and destination use their global addresses to help
switches make table entries for the connection.
In the setup phase, a switch creates an entry for a virtual circuit. For example,
suppose source A needs to create a virtual circuit to B.
Setup Request A setup request frame is sent from the source to the destination.
SWITCHED NETWORKS
Virtual Circuit Switching - Connection Setup phase
A special frame, called the acknowledgment frame, completes
Acknowledgment the entries in the routing tables.
SWITCHED NETWORKS
Virtual Circuit Switching - Data Transfer phase
The table holds four pieces of information for each virtual circuit that is already set up.
The data transfer phase is active until the source sends all its frames to the
destination.
SWITCHED NETWORKS
Virtual Circuit Switching – Teardown
phase
source A, after sending all frames to B, sends a special frame called a
teardown request.
Here, all packets belonging to the same source and destination travel the same path.
The packets may arrive at the destination with different delays if resource allocation is on
demand.
Datagram Switching Message Switching
Delay Comparison
SWITCHED NETWORKS
Twisted-pair cable
UTP connectors: The most common UTP connector is RJ45 (RJ stands for registered jack)
which can be inserted in UTP
only connectors
one way.
TRANSMISSION MEDIA
Twisted-Pair Cable
Categories of unshielded twisted-pair cables
UTP connectors
Transmission Media
Guided Media- Coaxial Cable
TRANSMISSION MEDIA
Coaxial Cable
Coaxial cable carries signals of higher frequency ranges than those in twisted-pair cable.
Twisted-pair cable
Coax has a central core conductor of solid or stranded wire (usually copper) enclosed in an
insulating sheath.
TRANSMISSION MEDIA
Coaxial Cable
BNC connectors
Twisted-pair cable
Used to connect the end of the
cable to a device such as TV set. Used at the end of the cable to
prevent the reflection of the signal.
Optical fibers use reflection to guide light through a channel. Twisted-pair cable
Below the Kevlar is another plastic coating to cushion the fiber. The fiber is at the center of
the cable, and it consists of cladding and core.
Transmission Media
U n - G u i d e d M e d i a : W I R E L E SS
TRANSMISSION MEDIA
Un-Guided Media: WIRELESS
Electromagnetic waves having frequencies between 1 and 300 GHz are called microwaves.
Electromagnetic waves ranging in frequencies from 300GHz to 400 THz are Infrared waves.
Infrared waves, can be used for short-range Twisted-pair cable
communication.
Infrared waves, having high frequencies,
cannot penetrate walls.
Microwave communication needs
unidirectional antennas.
Analog & Digital Signals
Introduction
ANALOG & DIGITAL SIGNALS
Introduction
Analog data take on continuous values. Digital data take on discrete values.
ANALOG & DIGITAL SIGNALS
Introduction
ANALOG & DIGITAL SIGNALS
Introduction
A nonperiodic signal changes without exhibiting a pattern or cycle that repeats over time.
Analog & Digital Signals
S i n e Wa v e
ANALOG & DIGITAL SIGNALS
Sine Wave
The sine wave is the most fundamental form of a periodic analog signal.
it as a simple oscillating curve, its change over the course of a cycle is smooth and consistent, a
continuous, rolling flow
ANALOG & DIGITAL SIGNALS
Sine Wave
A sine wave can be represented by three parameters: the peak amplitude, the frequency, and the
phase.
The peak amplitude of a signal is the
absolute value of its highest intensity,
proportional to the energy it carries.
1. Peak Amplitude
3. Frequency 2. Phase
Frequency is the rate of change
with respect to time. The term phase describes the
position of the waveform relative to
time zero (0).
ANALOG & DIGITAL SIGNALS
Sine Wave- Peak amplitude
Two signals with the same phase and frequency, but different amplitudes.
ANALOG & DIGITAL SIGNALS
Sine Wave - Frequency and period
Wavelength binds the period or the frequency of a simple sine wave to the propagation speed of
the medium
ANALOG SIGNALS & DIGITAL
SIGNALS
Wavelength
Let f h be the highest frequency, f l the lowest frequency, and B the bandwidth
ANALOG SIGNALS & DIGITAL SIGNALS
Bandwidth
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.
Data Rate Limits
Introduction
DATA RATE LIMITS
Introduction
A very important consideration in data communications is how fast we can send data, over a
channel.
Data rate depends on three factors: bandwidth availability, Level of the signals we use,
quality of the channel (the level of noise)
Increasing the levels of a signal may reduce the reliability of the system.
DATA RATE LIMITS
Noiseless Channel: Nyquist Bit Rate
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
Consider the same noiseless channel transmitting a signal with four signal levels (for each
level, we send 2 bits). The maximum bit rate can be calculated as
Data Rate Limits
Noisy Channel: Shannon Capacity
DATA RATE LIMITS
Noisy Channel: Shannon Capacity
In reality, we cannot have a noiseless channel; the channel is always noisy.
The Shannon capacity, determine the theoretical highest data rate for a noisy
channel.
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.
DATA RATE LIMITS
Noisy Channel: Shannon Capacity
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
This means that the highest bit rate for a telephone line is 34.860 kbps. If we want to send
data faster than this, we can either increase the bandwidth of the line or improve the signal-
to-noise ratio.
Data Rate Limits
Performance
DATA RATE LIMITS
Performance
1. Bandwidth
Propagation time measures the time required for a bit to travel from the source to
the destination.
Transmission time measures the time required for transmission of a whole
message
queuing time measures time needed for each intermediate or end device to hold
the message before it can be processed
DATA RATE LIMITS
Performance - 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?
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.
The example shows that a bit can go over the Atlantic Ocean in only 50 ms if there is a direct
cable between the source and the destination.
DATA RATE LIMITS
Performance - Transmission time
What are the propagation time and the transmission time for a 5-Mbyte message (an image)
if the bandwidth of the network is 1 Mbps? Assume that the distance between the sender
and the receiver is 12,000 km and that light travels at 2.4 × 108 m/s.
The example shows that a bit can go over the Atlantic Ocean in only 50 ms if there is a
direct cable between the source and the destination.
Overview of PCM and DM
PCM
OVERVIEW OF PCM AND DM
PCM-Introduction
To convert an analog signal to digital data we use two techniques, pulse code
modulation(PCM) and delta modulation(DM).
PCM consists of three steps to digitize an analog signal: Sampling, Quantization, Binary
encoding.
OVERVIEW OF PCM AND DM
PCM- Sampling
Analog signal is sampled every TS secs.
if the pulse at time tn+1 is higher in amplitude value than the pulse at time tn, then a
single bit, say a “1”, is used to indicate the positive value.
This scheme works well for small changes in signal values between samples.
Created analog signal, needs to pass through a low-pass filter for smoothing.
Transmission Modes and
Analog-to-Analog Conversion
Tr a n s m i s s i o n M o d e s
TRANSMISSION MODES &ANALOG-TO-ANALOG
Transmission Modes
CONVERSION
The transmission of binary data across a link can be accomplished in either parallel or serial
mode.
TRANSMISSION MODES &ANALOG-TO-ANALOG
Transmission Modes - Serial and Parallel
CONVERSION
transmission
The frequency and phase of the carrier remain the same; only the amplitude changes.
TRANSMISSION MODES &ANALOG-TO-ANALOG
Analog-to-Analog Conversion - Frequency
CONVERSION
Modulation
the frequency of the carrier signal is modulated to follow the changing voltage level
(amplitude) of the modulating signal.
The amplitude and phase of the carrier remain the same; only the frequency changes.
TRANSMISSION MODES &ANALOG-TO-ANALOG
Analog-to-Analog Conversion - Phase Modulation
CONVERSION
the phase of the carrier signal is modulated to follow the changing voltage level (amplitude)
of the modulating signal.
The amplitude and frequency of the carrier remain the same; only the phase changes.
Digital-to-Analog Conversion
Introduction
DIGITAL-TO-ANALOG CONVERSION
Introduction
Digital-to-analog conversion is the process of changing one of the characteristics of an
analog signal based on the information in digital data.
DIGITAL-TO-ANALOG CONVERSION
Types
Digital-to-analog conversion is the process of changing one of the characteristics of an
analog signal based on the information in digital data.
DIGITAL-TO-ANALOG CONVERSION
Aspects
Data Element • A data element is the smallest piece of information to be exchanged, the bit. A
Versus Signal signal element is the smallest unit of a signal that is constant.
Element • Data elements are being carried; signal elements are the carriers.
• The data rate defines the number of data elements (bits) sent in 1s. bits per
Data Rate Versus second (bps).
Signal Rate • The signal rate is the number of signal elements sent in 1s. The unit is the baud.
Binary • In binary PSK we have two signal elements, one with a phase of 0°, and the
PSK other with a phase of 180°. Advantage—it is less susceptible to noise.
DIGITAL-TO-ANALOG CONVERSION
BPSK
Implementation
DIGITAL-TO-ANALOG CONVERSION
QPSK
Implementation
THANK YOU