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
- Physical Layer in Computer Networks
- Transmission Media in Computer Networks
- Analog and Digital Signals
- Data Rate and Bandwidth
- Encoding Techniques
- Multiplexing in Computer Networks
- Transmission Modes in Computer Networks
- Data Link Layer
- Framing in Data Link Layer
- Flow Control in Data Link Layer
- Error Control in Data Link Layer
- Error Detection and Correction in Computer Networks
- Stop and Wait Protocol
- Sliding Window Protocol
- SDLC(Synchronous Data Link Control) Protocol
- High-Level Data Link Control (HDLC) Protocol
- Point-to-Point Protocol (PPP)
CN Part-3
- MAC Sublayer and MAC Addressing
- Channel Allocation Methods
- ALOHA Protocol (Pure and Slotted ALOHA)
- CSMA/CD and CSMA/CA in Computer Networks
- Ethernet (IEEE 802.3)
- Wireless LANs (IEEE 802.11, Wi-Fi, and Bluetooth Basics)
- Network Layer and Design Issues
- IPv4 and IPv6 Protocols
- Addressing: IP Address, Subnetting, and Supernetting
- Routing Algorithms: Static vs Dynamic, Distance Vector, and Link State
- Routing Protocols: RIP, OSPF, and BGP
- Packet Switching and IP Fragmentation
- Network Layer Protocols: ICMP, ARP, RARP, DHCP, and NAT
CN Part-4
- Transport Layer and Functions
- Process-to-Process Delivery, Ports, and Sockets
- TCP Segment and Three-Way Handshake Connection Establishment
- UDP (User Datagram Protocol): Format and Features
- Flow Control and Error Control in Transport Layer
- Congestion Control: Leaky Bucket, Token Bucket, and TCP Congestion Control
CN Part-5
- Application Layer Architecture and Principles
- Domain Name System (DNS)
- Email Protocols: SMTP, POP3, and IMAP
- File and Web Protocols: FTP, HTTP, and HTTPS
- Remote Access Protocols: Telnet and SSH
- World Wide Web (WWW) and Web Architecture
- Network Security Basics: SSL, TLS, and Cryptography Fundamentals
Client-Server vs Peer-to-Peer Network
Computer networks do tarike se design kiye ja sakte hain:
-
Client-Server Network
-
Peer-to-Peer (P2P) Network
Chaliye dono ko simple language mein samajhte hain.
1. Client-Server Network
Kya hota hai?
Is type ke network mein ek central computer (Server) hota hai jo baaki sab computers (Clients) ko data ya service provide karta hai.
Examples:
-
Jab aap Gmail, Facebook, ya college ki website use karte ho
-
Aapka mobile (Client) server se data maangta hai
Diagram:
[ Client 1 ]
|
[ Client 2 ]
|
[Client 3] [Client 4]
\ /
[ Server ]
Kaise kaam karta hai?
-
Client server ko request bhejta hai
-
Server wo request process karke reply karta hai
Features:
-
Centralized system → ek server sabko control karta hai
-
Security zyada achhi hoti hai
-
Maintenance easy hai (sirf server update karo)
-
Server crash ho gaya to sab clients ruk jaate hain
-
Server powerful hona chahiye
2. Peer-to-Peer (P2P) Network
Kya hota hai?
Is network mein har computer ek jaisa hota hai — koi server ya client nahi. Sab computers ek dusre ke saath directly data share karte hain.
Examples:
-
Bluetooth file sharing
-
LAN gaming
-
Torrent download karna (BitTorrent)
Diagram:
[PC1]——[PC2]
| |
[PC3]——[PC4]
Kaise kaam karta hai?
-
Har computer doosre computer se direct connect hota hai
-
Koi central server nahi hota
-
Sab computers data share bhi karte hain aur receive bhi
Features:
-
Sasta setup (no server required)
-
Small network ke liye best
-
Security kam hoti hai
-
Zyada users hone par slow ho jaata hai
-
Maintenance thoda tough (har system alag update karna padta hai)
Client-Server vs Peer-to-Peer: Side-by-Side Comparison
| Feature | Client-Server | Peer-to-Peer (P2P) |
|---|---|---|
| Structure | Server + Multiple Clients | Sab computers equal (Peers) |
| Control | Server control karta hai | Sab control apna-apna karte hain |
| Security | Zyada secure | Kam secure |
| Cost | Mehenga (Server chahiye) | Sasta (server nahi chahiye) |
| Speed | Fast | Slow (users badhne par) |
| Use Case | Websites, Offices, Colleges | Ghar ka LAN, File Sharing |
| Maintenance | Easy (server update karo) | Hard (sabko update karo) |
| Dependency | Server pe depend karta hai | Koi ek point fail nahi hota |
Real Life Example:
Client-Server:
-
College library: Ek librarian (Server), students (Clients)
-
Students book maangte hain, librarian deta hai
-
Librarian nahi hua to books nahi milengi
Peer-to-Peer:
-
4 doston ka LAN game khelna
-
Har kisi ke paas game hai
-
Sab ek dusre se connect hoke game khel rahe hain
-
Koi central system nahi
Summary:
-
Client-Server ka use tab karo jab:
-
Network bada ho (college, office, banking)
-
Security aur control important ho
-
-
Peer-to-Peer ka use tab karo jab:
-
Chhota network ho
-
Jaldi aur saste mein setup chahiye
-