Dcn Midsem
1. Process of Data Communication and Its Components
Definition:
Data communication is the transfer of data between devices using some form of transmission medium. It involves a sender, receiver, message, medium, protocols, and encoder/decoder.
Components of Data Communication:
Sender (Source):
The device that initiates the communication process.
Examples: A computer sending an email, a mobile phone making a call.
Receiver (Destination):
The device that receives and interprets the message.
Examples: A server receiving a web request, a mobile phone receiving a message.
Message (Data):
The actual information being communicated.
Types of messages:
Text (e.g., SMS, emails)
Audio (e.g., phone calls, music streaming)
Video (e.g., video conferencing)
Images (e.g., sending pictures via WhatsApp)
Transmission Medium:
The pathway through which data travels from sender to receiver.
Two main types:
Wired (Guided Media): Uses cables (e.g., Ethernet, fiber optic).
Wireless (Unguided Media): Uses airwaves (e.g., Wi-Fi, radio waves).
Protocols:
Set of rules that govern how data is transmitted.
Examples:
TCP/IP – Manages Internet communication.
HTTP – Transfers web pages.
FTP – Transfers files.
Encoder/Decoder:
Encoder: Converts digital data into a transmittable signal.
Decoder: Converts received signals back into data.
2. Fundamentals of Computer Networks
Definition:
A computer network is a collection of interconnected devices (computers, servers, routers) that communicate with each other.
Need for Computer Networks:
Resource Sharing: Share printers, storage, and applications.
Data Communication: Emails, video calls, messaging apps.
Remote Access: Work from anywhere using cloud services.
Centralized Management: Control network users and access.
Applications of Computer Networks:
Internet and Web Browsing: Google, Facebook, YouTube, etc.
Cloud Computing: Google Drive, Dropbox.
E-commerce: Amazon, Flipkart, eBay.
Social Media: Facebook, Twitter, Instagram.
Merits of Computer Networks:
Speed: Faster data transfer.
Cost Efficiency: Reduces hardware expenses by sharing resources.
Reliability: Redundant paths ensure availability.
Scalability: Easily expand the network by adding devices.
Demerits of Computer Networks:
Security Risks: Viruses, hacking, data breaches.
Network Failure: A server crash can disrupt services.
Setup Cost: Initial hardware and maintenance costs.
Complexity: Requires trained personnel for troubleshooting.
3. Classifications of Networks
Based on Geographical Coverage:
PAN (Personal Area Network):
Smallest network, within a few meters.
Examples: Bluetooth, smartwatches, wireless keyboards.
LAN (Local Area Network):
Covers a small area (office, school, home).
Uses Ethernet cables or Wi-Fi.
Example: University campus network.
MAN (Metropolitan Area Network):
Covers a city or metropolitan area.
Example: Cable TV network, city-wide Wi-Fi.
WAN (Wide Area Network):
Covers a large geographical area (country, world).
Example: The Internet.
4. Network Architecture
Peer-to-Peer (P2P) Network:
All devices are equal; no central server.
Each device can send and receive data.
Example: BitTorrent, file-sharing networks.
Client-Server Network:
A central server manages resources and security.
Clients request data or services from the server.
Example: Banking systems, cloud storage services.
5. Communication Media
Guided (Wired) Media
Twisted Pair Cable:
Two copper wires twisted together.
Used in LANs, telephone networks.
Coaxial Cable:
Central copper conductor with insulation.
Used in cable TV networks.
Fiber Optic Cable:
Uses light signals instead of electricity.
Very fast and resistant to interference.
Unguided (Wireless) Media
Radio Waves:
- Used in mobile networks, Wi-Fi.
Microwaves:
- Used in satellite communications, TV broadcasting.
Infrared:
- Used in remote controls, short-range communication.
6. Multiplexing
A technique that allows multiple signals to share the same transmission medium.
FDM (Frequency Division Multiplexing): Assigns different frequency bands.
TDM (Time Division Multiplexing): Divides time slots among users.
WDM (Wavelength Division Multiplexing): Used in fiber optics.
7. Network Topologies
Types of Topologies
Bus Topology:
A single backbone cable connects devices.
Problem: If the main cable fails, the whole network is down.
Star Topology:
All devices connect to a central hub/switch.
Problem: If the hub fails, the entire network stops.
Ring Topology:
Each device connects to two other devices in a ring.
Data flows in one direction.
Mesh Topology:
Every device connects to every other device.
Very reliable but expensive.
Hybrid Topology:
- A combination of two or more topologies.
8. Network Connecting Devices
Hub: Broadcasts data to all devices.
Switch: Sends data only to the intended device.
Router: Connects different networks and manages traffic.
Gateway: Converts protocols between networks.
Bridge: Connects similar networks.
Modem: Converts digital to analog signals.
Repeater: Amplifies weak signals.
9. Layered Architecture
Types of Links:
Point-to-Point: Direct connection between two devices.
Multipoint: Multiple devices share the same link.
Types of Addresses:
Unicast: One-to-one communication.
Multicast: One-to-many communication.
Broadcast: One-to-all communication.
10. OSI Model (7 Layers)
Physical Layer – Deals with electrical signals.
Data Link Layer – Handles MAC addresses, error detection.
Network Layer – Manages routing, IP addressing.
Transport Layer – Ensures reliable communication (TCP, UDP).
Session Layer – Maintains connections.
Presentation Layer – Encryption, compression.
Application Layer – User-level protocols (HTTP, FTP).
MAC Sublayer: Access Protocols
MAC (Media Access Control) Address
A MAC address is a unique hardware address assigned to a network device (like a computer, router, or switch). It operates at the Data Link Layer (Layer 2) of the OSI Model.
🔹 Format:
A MAC address is 48-bits long and is represented in hexadecimal (e.g.,
00:A0:C9:14:C8:29).It is burned into the Network Interface Card (NIC) by the manufacturer.
Example:
AA:BB:CC:11:22:33.
🔹 Purpose:
Identifies devices within a local network (LAN).
Helps in frame delivery inside a network.
🔹 Types of MAC Addresses:
Unicast MAC Address – Used for one-to-one communication.
Multicast MAC Address – Used to send data to multiple specific devices.
Broadcast MAC Address – Used to send data to all devices in the network (
FF:FF:FF:FF:FF:FF).
MAC Access Protocols (How Devices Access the Network?)
Since multiple devices share the same network, MAC Access Protocols decide who gets to send data and when.
1. Random Access Protocols (Contention-Based Protocols)
Devices transmit whenever they want, but if two devices transmit at the same time, a collision occurs.
🔹 Types:
(i) ALOHA (Pure & Slotted ALOHA)
Pure ALOHA: Devices send data anytime, but if a collision happens, they retransmit after a random delay.
Slotted ALOHA: Data can only be sent in fixed time slots, reducing collisions.
(ii) CSMA (Carrier Sense Multiple Access)
Before sending, devices check if the channel is free.
CSMA/CD (Collision Detection): Used in Ethernet. If two devices transmit at the same time, they detect the collision, stop, and retry after a random time.
CSMA/CA (Collision Avoidance): Used in Wi-Fi. Devices wait before transmitting to avoid collisions.
2. Controlled Access Protocols
Here, devices take turns to send data.
🔹 Types:
(i) Polling
- A central device (like a hub) asks each device one by one if they want to send data.
(ii) Token Passing
A special token (a small data packet) is passed between devices.
Only the device holding the token can send data.
Used in Token Ring Networks.
3. Channelization Protocols
Here, the entire bandwidth is divided among devices.
🔹 Types:
(i) FDMA (Frequency Division Multiple Access)
Different devices get different frequency bands.
Used in old mobile networks (1G, 2G).
(ii) TDMA (Time Division Multiple Access)
Devices take turns using the same frequency but in different time slots.
Used in GSM mobile networks.
(iii) CDMA (Code Division Multiple Access)
All devices send at the same time but use different codes to separate their data.
Used in 3G networks.
Why is the MAC Sublayer Important?
Prevents data collisions in networks.
Ensures efficient bandwidth usage.
Different protocols are used in Wi-Fi, Ethernet, and mobile networks.