0% found this document useful (0 votes)
4 views16 pages

Networking

Data communication is the exchange of data between devices using protocols and transmission mediums, ensuring accurate and timely delivery. It encompasses various types such as simplex, half-duplex, and full-duplex communication, as well as signal types like analog and digital. The OSI model outlines seven layers of network communication, while concepts like IP addresses, subnet masks, and CIDR notation are essential for identifying and managing devices within networks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views16 pages

Networking

Data communication is the exchange of data between devices using protocols and transmission mediums, ensuring accurate and timely delivery. It encompasses various types such as simplex, half-duplex, and full-duplex communication, as well as signal types like analog and digital. The OSI model outlines seven layers of network communication, while concepts like IP addresses, subnet masks, and CIDR notation are essential for identifying and managing devices within networks.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

What is Data Communication?

Data communication is the process of exchanging data (information) between two or


more devices through a transmission medium (wired or wireless) using agreed rules
called protocols.

In simple words:

Data communication is how information travels from one point to another


reliably, accurately, and efficiently.

A data communication system does not just send data; it ensures that:

●​ the right data


●​ reaches the right destination
●​ in the correct form
●​ within an acceptable time

Real-life example

When you send a WhatsApp message:

●​ Your phone converts text into binary data


●​ Data travels via Wi-Fi/4G/5G
●​ Routers decide the path
●​ Receiver’s phone reconstructs the message exactly as sent

That entire process is data communication.

Components of Data Communication (Conceptual


Explanation)
1.​ Sender​
The device that initiates data transmission (computer, phone, IoT sensor).
2.​ Receiver​
The destination device that accepts data.
3.​ Message​
The actual data (text, image, video, audio, signals).
4.​ Transmission Medium​
The physical or wireless path (twisted pair, fiber optic, radio waves).
5.​ Protocol​
A set of rules that govern communication (format, timing, error handling).

Without all five, communication fails.


Characteristics of Effective Data Communication
Characteristic Meaning (not keywords)

Delivery Data must reach the correct destination, not just any device

Accuracy Data should arrive without alteration or corruption

Timeliness Data must arrive within a required time (critical for video calls)

Jitter Variation in packet arrival time must be minimal

TYPES OF DATA COMMUNICATION

1. Simplex Communication
Definition:​
Communication is one-directional only. The receiver cannot respond.

Explanation:​
Data flows permanently in one direction. The receiver is completely passive.

Examples:

●​ Keyboard → Computer
●​ TV broadcast
●​ Digital billboard

Key limitation:​
No feedback → errors cannot be corrected immediately.

2. Half-Duplex Communication
Definition:​
Communication happens in both directions, but not at the same time.

Explanation:​
Devices take turns transmitting. When one speaks, the other listens.

Examples:

●​ Walkie-talkie
●​ Old CB radios

Key issue:​
Time is wasted switching roles → lower efficiency.

3. Full-Duplex Communication
Definition:​
Data flows in both directions simultaneously.

Explanation:​
Sender and receiver can transmit and receive at the same time using separate channels or
frequencies.

Examples:

●​ Mobile calls
●​ Video conferencing
●​ Ethernet communication

Advantage:​
High efficiency and real-time interaction.

Comparison of Communication Modes


Feature Simplex Half-Duplex Full-Duplex
Direction One-way Two-way (alternate) Two-way (simultaneous)

Feedback No Yes Yes

Efficiency Low Medium High

Complexity Very low Medium High

Example TV Walkie-talkie Phone call

DATA COMMUNICATION: SIGNAL TYPES


Analog Communication
●​ Continuous signals
●​ Susceptible to noise
●​ Used in old telephone systems, radio

Digital Communication
●​ Discrete binary signals (0s and 1s)
●​ Noise resistant
●​ Used in modern networks

Aspect Analog Digital

Signal Continuous Discrete

Noise immunity Low High

Error correction Difficult Easy

Modern usage Rare Universal


OSI MODEL (OPEN SYSTEMS
INTERCONNECTION)

What is the OSI Model?


The OSI Model is a conceptual framework created by​
International Organization for Standardization (ISO)
It divides network communication into 7 logical layers, where each layer has:

●​ a specific responsibility
●​ a defined interface
●​ independence from other layers

OSI does not perform communication — it explains how communication


should happen.

OSI LAYERS (IN-DEPTH EXPLANATION)


Layer 7 – Application Layer
Purpose:​
Provides network services directly to the user applications.

Explanation:​
This layer interacts with software like browsers and email clients. It does NOT represent
applications themselves, but services used by them.

Protocols:​
HTTP, HTTPS, FTP, SMTP, DNS

Example:​
Typing a URL and pressing Enter triggers HTTP at this layer.

Layer 6 – Presentation Layer


Purpose:​
Ensures data representation compatibility.

Key responsibilities explained:

●​ Translation: ASCII ↔ Unicode


●​ Encryption/Decryption: Secure communication
●​ Compression: Reduce data size

Example:​
HTTPS encryption happens here before data moves down.
Layer 5 – Session Layer
Purpose:​
Manages sessions (connections) between applications.

Explanation:​
It establishes, maintains, and terminates sessions. If a session breaks, it can resume
communication.

Example:​
Video call pause & resume without reconnecting.

Layer 4 – Transport Layer


Purpose:​
Ensures end-to-end delivery and reliability.

Major functions:

●​ Segmentation
●​ Flow control
●​ Error control
●​ Port addressing

Protocols:​
TCP (reliable), UDP (fast)

Example:​
TCP guarantees file download accuracy; UDP streams video faster.

Layer 3 – Network Layer


Purpose:​
Handles logical addressing and routing.

Explanation:​
Decides which path data takes across multiple networks.

Protocols:​
IP, ICMP, routing protocols

Devices:​
Routers
Layer 2 – Data Link Layer
Purpose:​
Ensures node-to-node delivery.

Key tasks explained:

●​ Framing
●​ MAC addressing
●​ Error detection
●​ Access control

Devices:​
Switches, NICs

Layer 1 – Physical Layer


Purpose:​
Transmits raw bits over a medium.

Explanation:​
Defines voltage levels, pin layouts, cable types, radio frequencies.

Devices:​
Cables, hubs, repeaters

OSI LAYERS SUMMARY COMPARISON


Layer Name Core Role

7 Application User interaction

6 Presentatio Format & security


n

5 Session Session control

4 Transport Reliability & ports

3 Network Routing & IP


2 Data Link MAC & framing

1 Physical Bit transmission

OSI MODEL vs TCP/IP MODEL


(IMPORTANT COMPARISON)

OSI Model TCP/IP Model

Conceptual Practical

7 layers 4 layers

ISO standard DARPA model

Rarely implemented fully Used


everywhere

Layer Mapping Concept:

●​ OSI (7,6,5) → TCP/IP Application


●​ OSI (4) → TCP/IP Transport
●​ OSI (3) → TCP/IP Internet
●​ OSI (2,1) → TCP/IP Network Access

Why OSI Model is Still Important


●​ Helps troubleshoot networks
●​ Explains how attacks happen layer-wise
●​ Forms the foundation of networking education
●​ Used in certifications, cybersecurity, protocol design

1. IP Address
Definition

An IP address (Internet Protocol address) is a logical numerical identifier assigned to a


device on a network so that it can be uniquely identified and communicated with.

In IPv4, an IP address is:

●​ 32 bits long​

●​ Written as four 8-bit octets​

●​ Each octet ranges from 0 to 255​

Structure of an IP Address

An IP address is divided into two logical parts:

1.​ Network part – identifies the network​

2.​ Host part – identifies the device within that network​

Example:​
[Link]

●​ 192.168.10 → Network portion​

●​ 25 → Host portion (depends on subnet mask)​

2. Subnet Mask (IP Mask)


Definition

A subnet mask is a 32-bit number that tells the system:


“Which part of the IP address belongs to the network and which part belongs to
the host.”

It works by using:

●​ 1s (or 255) → Network bits​

●​ 0s → Host bits​

Example

Subnet Mask: [Link]

Binary form:

11111111.11111111.11111111.00000000

This means:

●​ First 24 bits → Network​

●​ Last 8 bits → Host​

3. Subnet
Definition

A subnet (sub-network) is a logical subdivision of a larger network created to:

●​ Reduce network congestion​

●​ Improve security​

●​ Efficiently utilize IP addresses​

Why subnetting is needed

Without subnetting:

●​ One big network = more broadcast traffic​


●​ Poor performance​

●​ Hard to manage​

Subnetting divides one network into multiple smaller networks.

4. Prefix (CIDR Notation)


Definition

A prefix (also called CIDR notation) indicates how many bits are used for the network
portion of an IP address.

It is written using a slash (/) followed by a number.

Example

[Link]/24

This means:

●​ /24 → first 24 bits are network bits​

●​ Remaining 8 bits are host bits​

Relationship
Prefix Subnet Mask

/8 [Link]

/16 [Link]

/24 [Link]

/26 [Link]
2

5. Postfix (Host Portion)


Definition
The postfix refers to the remaining bits after the prefix, which are used to identify hosts
within the network.

Formula:

Postfix bits = 32 − Prefix bits

Example:

●​ Prefix = /26​

●​ Postfix = 32 − 26 = 6 bits​

These 6 bits decide:

●​ Number of hosts​

●​ Broadcast address​

●​ Network address​

6. Number of Addresses
Definition

The number of IP addresses in a subnet depends on how many host bits are available.

Formula
Total addresses = 2^(number of host bits)
Usable hosts = 2^(host bits) − 2

Why subtract 2?

●​ One address = Network address​

●​ One address = Broadcast address​

Example
Subnet: /26

●​ Host bits = 32 − 26 = 6​

●​ Total addresses = 2^6 = 64​

●​ Usable hosts = 64 − 2 = 62​

7. Network Address & Broadcast Address (Very


Important)
●​ Network Address​
All host bits = 0​
Used to identify the subnet itself​

●​ Broadcast Address​
All host bits = 1​
Used to send data to all devices in the subnet​

COMPLETE EXAM-STYLE QUESTION


(WITH SOLUTION)
Question
Given the IP address [Link]/27, find:

1.​ Subnet mask​

2.​ Network address​

3.​ Broadcast address​

4.​ Prefix and postfix​

5.​ Number of total addresses​


6.​ Number of usable host addresses​

Step-by-Step Solution
Step 1: Identify Prefix

Given: /27​
So,

●​ Prefix = 27 bits​

●​ Postfix = 32 − 27 = 5 bits​

Step 2: Find Subnet Mask

/27 means:

11111111.11111111.11111111.11100000

Decimal:

[Link]

✅ Subnet Mask = [Link]

Step 3: Calculate Number of Addresses

Host bits = 5

Total addresses = 2^5 = 32


Usable addresses = 32 − 2 = 30

Step 4: Find Block Size

Block size = 256 − last subnet octet


256 − 224 = 32

So subnets increase by 32:

0, 32, 64, 96, 128, 160, 192, 224

Step 5: Locate Network Range

Given IP: [Link]

●​ 35 lies between 32 and 63​

So:

●​ Network Address = [Link]​

●​ Broadcast Address = [Link]​

Final Answers Summary


Item Value

IP Address [Link]

Prefix /27

Postfix 5 bits

Subnet Mask [Link]


4

Network Address [Link]

Broadcast [Link]
Address

Total Addresses 32

Usable Hosts 30

You might also like