Sitemap

Data Communication

🧠 MENTAL PICTURE

Imagine two people talking through a telephone:

Person A
(Sender)
↓
Message
↓
Telephone Network
(Medium)
↓
Person B
(Receiver)
Both must follow
the same rules
↓
Protocol

Now convert that into computers:

COMPUTER A
Sender
↓
Data
↓
Transmission Medium
↓
COMPUTER B
Receiver

The entire chapter can be reduced to:

               DATA COMMUNICATION
|
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
↓ ↓ ↓
Who sends? How travels? What rules?
Sender Medium Protocol
↓
Receiver

11.1 Concept of Communication

Communication means:

Sending or receiving data.

Data can be:

Text
Image
Audio
Video
Multimedia

Example:

Phone A
↓
"Hello"
↓
Mobile network
↓
Phone B

Memory

Data Communication = Exchange of data between connected devices.

Now expand only this picture:

DATA COMMUNICATION
β”‚
β”œβ”€β”€ Components
β”‚ β”œβ”€β”€ Sender
β”‚ β”œβ”€β”€ Receiver
β”‚ β”œβ”€β”€ Message
β”‚ β”œβ”€β”€ Medium
β”‚ └── Protocol
β”‚
β”œβ”€β”€ Capacity
β”‚ β”œβ”€β”€ Bandwidth β†’ Hz
β”‚ └── Data Rate β†’ bps
β”‚
β”œβ”€β”€ Direction
β”‚ β”œβ”€β”€ Simplex β†’ A ──→ B
β”‚ β”œβ”€β”€ Half Duplex β†’ A ←→ B, one at a time
β”‚ └── Full Duplex β†’ A ⇄ B, simultaneously
β”‚
β”œβ”€β”€ Switching
β”‚ β”œβ”€β”€ Circuit β†’ dedicated path
β”‚ └── Packet β†’ break message into packets
β”‚
β”œβ”€β”€ Transmission
β”‚ β”œβ”€β”€ Wired
β”‚ β”‚ β”œβ”€β”€ Twisted Pair
β”‚ β”‚ β”œβ”€β”€ Coaxial
β”‚ β”‚ └── Optical Fibre
β”‚ β”‚
β”‚ └── Wireless
β”‚ β”œβ”€β”€ Radio
β”‚ β”œβ”€β”€ Microwave
β”‚ └── Infrared
β”‚
β”œβ”€β”€ Mobile
β”‚ └── 1G β†’ 2G β†’ 3G β†’ 4G β†’ 5G
β”‚
└── Protocol
β”œβ”€β”€ HTTP β†’ Web
β”œβ”€β”€ FTP β†’ File transfer
└── PPP β†’ Point-to-point

11.4 Types of Data Communication

Simplex
Half-duplex
Full-duplex
## Simplex

One-way communication.

```text
A ─────────→ B
Sender Receiver

Examples

Keyboard β†’ computer
Computer β†’ speaker

Memory:

Simplex = only one direction

Half-Duplex

Both sides can communicate, but not simultaneously.

A ─────→ B

then
A ←───── B

Example:

Walkie-talkie

When one person talks, the other listens. NCERT

Memory:

Half-duplex = both directions, one at a time.

Full-Duplex

Both sides communicate at the same time.

A ⇄ B

Chapter 12 β€” Security Aspects

🧠 MENTAL PICTURE

Imagine your computer as a house:

COMPUTER
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
Internet ───────→│ FIREWALLβ”‚
β”‚ β”‚
Malware ────────→│ANTIVIRUSβ”‚
β”‚ β”‚
Hacker ─────────→│SECURITY β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

You want to protect:

DEVICE
+
DATA
+
NETWORK

12.2 Malware

Malware means:

MALicious softWARE

It is software intentionally designed to damage systems, steal data or cause other trouble. NCERT

Important types:

Virus
Worm
Ransomware
Trojan
Spyware
Adware
Keylogger

Virus

A virus inserts/copies malicious code into another program or executable.

Get Niraj Paul’s stories inΒ yourΒ inbox

Join Medium for free to get updates fromΒ thisΒ writer.

It normally becomes active when the infected file is executed. NCERT

Mental:

Host Program
+
Virus code
↓
Infected program

Worm

A worm:

Does NOT require a host program
Can work independently
Can self-replicate
Can spread through networks

### Virus vs Worm

Virus
β†’ needs host/infected file
β†’ typically user triggering

Worm
β†’ standalone
β†’ self-replicates

Ransomware

Mental:

Your Files
↓
LOCK / ENCRYPT
↓
"Pay money"
↓
Ransomware

The chapter uses WannaCry as an example and notes its 2017 global outbreak.

Trojan

Looks legitimate:

Normal-looking program
↓
Install it
↓
Malicious behaviour

Unlike a worm, a Trojan does not self-replicate; it relies on user interaction such as opening/downloading it.

Spyware

Secretly collects information.

Examples of targeted information include:

Internet usage
Passwords
Bank information
Identity information

Keylogger

Records keys pressed by the user.

Mental:

You type:
PASSWORD123
↓
Keylogger records keys
↓
Sensitive information leaked

12.6 Firewall

Imagine a security guard at a gate:

Internet
↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ FIREWALL β”‚
β”‚ GUARD β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
↓
Private Network

A firewall monitors and controls incoming and outgoing network traffic according to security rules.

12.7 Cookies

A cookie is a small piece of information a website uses to remember information associated with a user’s browsing/session.

Examples:

Login/authentication

Session timeout

Remembering information

πŸ”₯ FOLLOW-UP QUESTIONS β€” Security

Virus vs Worm?

Virus
β†’ requires a host
β†’ usually triggered by user

Worm
β†’ standalone
β†’ self-replicates

Trojan?

Malware disguised as legitimate software

Ransomware?

Blocks/encrypts data
β†’ demands ransom

Antivirus?

Detects/prevents/removes malware

HTTP vs HTTPS?

HTTP β†’ unencrypted textbook model
HTTPS β†’ encrypted communication

Firewall?

Filters network traffic

White vs Black Hat?

White β†’ ethical
Black β†’ malicious/unethical

DoS vs DDoS?

DoS β†’ denial attack
DDoS β†’ distributed attack using many systems
Malware
β†’ malicious software

Virus
β†’ malicious code requiring host/infected file

Worm
β†’ standalone self-replicating malware

Ransomware
β†’ locks/encrypts data for ransom

Trojan
β†’ malicious software disguised as legitimate

Firewall
β†’ network traffic filter

HTTPS
β†’ encrypted web communication

White Hat
β†’ ethical hacker

DoS
β†’ deny service by overwhelming resource

DDoS
β†’ distributed DoS from many machines

Snooping
β†’ secret traffic capture/analysis

Eavesdropping
β†’ real-time interception
                   DATA COMMUNICATION
|
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
↓ ↓ ↓
COMPONENTS MEDIA PROTOCOLS
| | |
Sender/Receiver Wired HTTP
Message Wireless FTP
Medium PPP
Protocol
|
Communication Type
/ | \
Simplex Half Full


SECURITY
|
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
↓ ↓ ↓
MALWARE PROTECTION THREATS
| | |
Virus/Worm Antivirus DoS
Ransomware Firewall DDoS
Trojan HTTPS Intrusion
Spyware Updates Snooping
Keylogger Backup Eavesdropping

Senior iOS Developer & Mobile Architect | 11+ Years | Swift, SwiftUI, tvOS & OTT | Building Apps, Exploring AI & Share https://resume.nirajpaul.com