Introduction to Data Communication
Data communication is the exchange of data between two or more devices through a
transmission medium such as a cable, fiber-optic link, or wireless channel.
A data communication system aims to transfer information accurately, efficiently, and reliably
from a source to a destination.
Example
When a student sends an email:
• Sender: Student's computer
• Message: Email and attachment
• Medium: Wi-Fi/Internet
• Receiver: Recipient's computer
• Protocol: TCP/IP, SMTP
Components of Data Communication
A data communication system has five fundamental components.
1. Sender
The device that generates and sends the data.
Examples: Computer, smartphone, sensor, server.
2. Receiver
The device that receives the transmitted data.
Examples: Computer, smartphone, printer, server.
3. Message
The information being transmitted.
It can be:
• Text
• Numbers
• Images
• Audio
• Video
• Files
4. Transmission Medium
The path through which data travels.
Examples:
• Twisted-pair cable
• Coaxial cable
• Fiber optic
• Radio waves
• Microwave
5. Protocol
A set of rules governing communication between devices.
Examples:
• TCP/IP
• HTTP/HTTPS
• Ethernet
• SMTP
• FTP
Data Representation
Data can be represented in several forms before being transmitted through a network.
Text
Characters are represented using coding schemes such as ASCII and Unicode.
Example:
A → Binary representation → 01000001
Numbers
Numbers are converted into binary form for digital transmission.
Images
Images are represented as collections of pixels, with each pixel represented by binary values.
Audio
Sound can be converted into digital data through sampling and quantization.
Video
Video consists of a sequence of images or frames, usually accompanied by audio.
Data Flow
Data flow describes the direction in which data travels between communicating devices.
There are three basic modes.
A. Simplex
Communication occurs in only one direction.
Sender ─────────────────► Receiver
The receiver cannot send data back to the sender.
Example: Traditional television broadcasting.
B. Half-Duplex
Communication occurs in both directions, but not simultaneously.
Device A ───────────────► Device B
◄───────────────
One direction at a time
Example: Walkie-talkie communication.
C. Full-Duplex
Communication occurs in both directions simultaneously.
Device A ═══════════════► Device B
◄═══════════════
Simultaneously
Example: Telephone or video call.
Comparison
Mode Direction Simultaneous? Example
Simplex One-way No TV broadcast
Half-duplex Two-way No Walkie-talkie
Full-duplex Two-way Yes Telephone
Network Criteria
A computer network is generally evaluated using the following criteria:
1. Performance
Indicates how efficiently a network transfers data.
Important factors include:
• Throughput
• Bandwidth
• Delay/latency
• Response time
2. Reliability
Indicates the ability of the network to operate correctly and recover from failures.
It depends on:
• Failure frequency
• Recovery time
• Fault tolerance
3. Security
Protects network resources and data from unauthorized access.
Security mechanisms include:
• Authentication
• Encryption
• Access control
• Firewalls
Categories of Networks
Networks can be categorized according to their geographical coverage.
The four common categories are:
PAN → LAN → MAN → WAN
A. PAN — Personal Area Network
A PAN covers a very small area around an individual.
Typical range: A few meters.
Examples:
• Smartphone and smartwatch
• Smartphone and Bluetooth earbuds
• Personal computer and wireless keyboard
Technologies: Bluetooth, USB, etc.
B. LAN — Local Area Network
A LAN connects devices within a limited geographical area.
Examples:
• Home
• Office
• Laboratory
• School building
Characteristics:
• High data rate
• Relatively low delay
• Usually privately owned
• Ethernet and Wi-Fi are commonly used
Example: Computer laboratory network.
C. MAN — Metropolitan Area Network
A MAN connects multiple LANs across a metropolitan or city-wide area.
Example: Connecting several university campuses located within the same city.
Characteristics:
• Larger than LAN
• Smaller than WAN
• Often uses high-speed fiber links
D. WAN — Wide Area Network
A WAN connects networks over large geographical areas.
It may cover:
• Multiple cities
• States
• Countries
• Continents
Example: A multinational company's network connecting offices in India, Europe, and the USA.
The Internet is the most prominent example of a WAN-like global interconnection.
Transmission Media
Transmission media is the communication path through which signals travel between devices.
Wired Transmission Media
A. Twisted-Pair Cable
It consists of two insulated copper wires twisted together.
Characteristics
• Low cost
• Easy to install
• Flexible
• Suitable for short and medium distances
• More susceptible to interference than fiber
Types
• UTP: Unshielded Twisted Pair
• STP: Shielded Twisted Pair
Applications
• Ethernet LANs
• Telephone systems
• Office networks
Coaxial Cable
Coaxial cable consists of a central conductor surrounded by insulation and a metallic shield.
Characteristics
• Better shielding than twisted pair
• Good resistance to interference
• More rigid than twisted pair
• Supports relatively high bandwidth
Applications
• Cable television
• Broadband networks
• CCTV systems
Fiber-Optic Cable
Fiber-optic cable transmits data using light pulses through glass or plastic fibers.
Characteristics
• Very high bandwidth
• Long-distance transmission
• Very low signal loss
• Immune to electromagnetic interference
• Lightweight
• More expensive and comparatively complex to install
Applications
• Internet backbone
• Data centers
• Long-distance telecommunications
• Submarine communication cables
• High-speed campus networks
Wireless Transmission Media
Wireless transmission uses electromagnetic waves through free space.
Common types
Medium Characteristics Applications
Radio waves Broad coverage, mobile Wi-Fi, Bluetooth, cellular
Microwave Directional, high-frequency Satellite, cellular, point-to-point links
Infrared Short range Remote controls, sensors
Advantages
• Mobility
• Easy deployment
• No physical cable required
• Useful in difficult-to-wire locations
Limitations
• Interference
• Security concerns
• Signal attenuation
• Limited range depending on technology
Network Topologies
A network topology describes the physical or logical arrangement of devices and
communication links in a network.
The major topologies are:
1. Star
2. Bus
3. Ring
4. Mesh
A. Star Topology
All devices are connected to a central hub or switch.
Advantages
• Easy to install and manage
• Failure of one link generally affects only one device
• Easy to add or remove devices
• Good network performance
Disadvantage
• Failure of the central switch/hub can affect the entire network.
• Requires more cable.
Example
Modern Ethernet LAN.
B. Bus Topology
All devices share a single backbone cable.
Advantages
• Simple design
• Low installation cost
• Requires less cable
Disadvantages
• Backbone failure can affect the entire network.
• Performance decreases as traffic increases.
• Difficult to troubleshoot large networks.
Example
Older Ethernet networks such as 10Base2/10Base5.
C. Ring Topology
Each device is connected to two neighboring devices, forming a closed loop.
Advantages
• Predictable data transmission
• Every device has a defined position in the ring.
Disadvantages
• Failure of a link/device can disrupt communication in a basic ring.
• Adding or removing devices can be difficult.
Example
Traditional Token Ring and some ring-based network systems.
D. Mesh Topology
In a mesh topology, devices have multiple interconnections.
A fully connected mesh connects every device to every other device.
Advantages
• Very high reliability
• Multiple alternative paths
• Excellent fault tolerance
Disadvantages
• Expensive
• Requires many links and ports
• Complex to install and maintain
Applications
• Backbone networks
• Critical communication systems
• Some wireless mesh networks
Comparison of Network Topologies
Feature Star Bus Ring Mesh
Structure Centralized Backbone Circular Multiple links
Cost Moderate Low Moderate High
Reliability High Low Moderate Very high
Scalability Good Limited Moderate Difficult
Good for individual
Fault tolerance Poor Moderate Excellent
links
Common Legacy Ring Backbone/critical
Ethernet LAN
application Ethernet networks networks
Interconnection of Networks
Interconnection of networks means connecting two or more networks so that devices can
communicate with each other.
It can be understood in two ways:
Intra-Network Communication
Intra-network communication occurs within the same network.
A computer in a laboratory communicating with another computer in the same laboratory LAN is
an example of intra-network communication.
Internetwork Communication
Internetwork communication occurs between different networks.
Routers are commonly used to connect different IP networks.
Difference
Feature Intra-Network Internetwork
Communication Within one network Between different networks
Example PC to PC in same LAN Office LAN to cloud server
Common devices Switch, access point Router, Layer-3 switch
Addressing MAC/local addressing and IP IP addressing and routing
Main purpose Local communication Network-to-network communication