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
β
ProtocolNow convert that into computers:
COMPUTER A
Sender
β
Data
β
Transmission Medium
β
COMPUTER B
ReceiverThe entire chapter can be reduced to:
DATA COMMUNICATION
|
βββββββββββββββββΌβββββββββββββββββ
β β β
Who sends? How travels? What rules?
Sender Medium Protocol
β
Receiver11.1 Concept of Communication
Communication means:
Sending or receiving data.
Data can be:
Text
Image
Audio
Video
MultimediaExample:
Phone A
β
"Hello"
β
Mobile network
β
Phone BMemory
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-point11.4 Types of Data Communication
Simplex
Half-duplex
Full-duplex## Simplex
One-way communication.
```text
A ββββββββββ B
Sender ReceiverExamples
Keyboard β computer
Computer β speakerMemory:
Simplex = only one direction
Half-Duplex
Both sides can communicate, but not simultaneously.
A ββββββ B
then
A ββββββ BExample:
Walkie-talkieWhen 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 β BChapter 12 β Security Aspects
π§ MENTAL PICTURE
Imagine your computer as a house:
COMPUTER
βββββββββββ
Internet βββββββββ FIREWALLβ
β β
Malware ββββββββββANTIVIRUSβ
β β
Hacker βββββββββββSECURITY β
βββββββββββYou want to protect:
DEVICE
+
DATA
+
NETWORK12.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
KeyloggerVirus
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 programWorm
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-replicatesRansomware
Mental:
Your Files
β
LOCK / ENCRYPT
β
"Pay money"
β
RansomwareThe chapter uses WannaCry as an example and notes its 2017 global outbreak.
Trojan
Looks legitimate:
Normal-looking program
β
Install it
β
Malicious behaviourUnlike 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 informationKeylogger
Records keys pressed by the user.
Mental:
You type:
PASSWORD123
β
Keylogger records keys
β
Sensitive information leaked12.6 Firewall
Imagine a security guard at a gate:
Internet
β
ββββββββββββ
β FIREWALL β
β GUARD β
ββββββββββββ
β
Private NetworkA 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-replicatesTrojan?
Malware disguised as legitimate softwareRansomware?
Blocks/encrypts data
β demands ransomAntivirus?
Detects/prevents/removes malwareHTTP vs HTTPS?
HTTP β unencrypted textbook model
HTTPS β encrypted communicationFirewall?
Filters network trafficWhite vs Black Hat?
White β ethical
Black β malicious/unethicalDoS vs DDoS?
DoS β denial attack
DDoS β distributed attack using many systemsMalware
β 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




