Computer Networks
CN Part-1
- What is a Computer Network?
- Goals and Applications of Computer Networking
- Computer Network Components
- Types of Computer Networks
- Network Topology
- Difference between Client Server and Peer to Peer Network
- Layered Architecture in Computer Networks
- Protocol Hierarchy in Computer Networks
- Interfaces and Services in Computer Networks
- Connection Oriented and Connectionless Services
- Service Primitives
- OSI Model
- TCP/IP Model
- Difference between OSI Model and TCP/IP Model
- Encapsulation and Decapsulation in Computer Networks
- Queueing Models in Computer Network
CN Part-2
Service Primitives in Computer Networks
Service Primitives kya hote hain?
Computer network mein Service Primitives ka matlab hota hai basic actions ya commands jo ek layer doosri layer ke saath communicate karne ke liye use karti hai.
Simple words mein: Ye woh steps hain jo ek system ya program use karta hai connection banane, data bhejne, ya connection band karne ke liye.
Jaise hum communication mein “start”, “send”, “receive” aur “stop” jaise verbs use karte hain, waise hi network mein service primitives use hote hain.
Service Primitives ki zarurat kyun hoti hai?
Ye ensure karte hain ki:
-
Network layers ke beech communication properly structured ho
-
Application ko network services sahi tareeke se mil sakein
-
Connection aur data transfer easy aur safe ho
5 Basic Service Primitives
Primitive | Matlab / Use | Kaun use karta hai? |
---|---|---|
REQUEST |
Kisi kaam ko shuru karna | Sender (jo bhej raha ho) |
INDICATION |
Notify karna ki kuch hone wala hai | Receiver (jo receive kare) |
RESPONSE |
Request ka jawab dena (accept/reject) | Receiver |
CONFIRM |
Bataana ki request successful hui | Sender |
DATA |
Actual data bhejna/paana | Dono (Sender/Receiver) |
Ek-ek primitive ko samjhte hain:
-
REQUEST
→ Jab sender kisi service ko shuru karna chahta hai
Example: Aap video call start kar rahe ho -
INDICATION
→ Jab receiver ko bataya jaata hai ki koi request aayi hai
Example: Friend ke phone mein ringtone bajti hai -
RESPONSE
→ Jab receiver accept ya reject karta hai
Example: Friend call receive karta hai -
CONFIRM
→ Jab sender ko confirm hota hai ki request accept ho gayi
Example: Aapke phone pe aata hai “Call Connected” -
DATA
→ Jab dono taraf actual data exchange hota hai
Example: Aap dono baat karte ho (voice data jaa raha hai)
Connection Setup Flow (Service Primitives ka Flow)
+--------+ +----------+
| Sender | | Receiver |
+--------+ +----------+
| REQUEST |
|--------------------->|
| INDICATION |
|<---------------------|
| RESPONSE |
|--------------------->|
| CONFIRM |
|<---------------------|
Baad mein, dono taraf DATA
primitive use hoti hai to send/receive data.
Summary
-
Service Primitives basic actions hote hain jo ek network layer doosri layer ke saath communication ke liye use karti hai
-
5 important primitives hote hain:
REQUEST
,INDICATION
,RESPONSE
,CONFIRM
, aurDATA
-
Ye primitives network communication ko smooth aur manageable banate hain