Basics of Computer Networking Easy Notes
Basics of Computer Networking Easy Notes
Open System: Jo system network se connected hota hai aur communica on ke liye
ready hota hai. (Jaise internet se connected laptop ya phone)
2. Computer Network
Ek network tab banta hai jab mul ple devices (jise hosts bhi kaha jata hai) ek doosre se
connected hote hain taaki data ya media send/receive kiya ja sake.
Kuch important network devices jo network communica on ko improve karte hain:
Router: Internet ya network signals ko devices tak pahunchane ka kaam karta hai.
Wireless Router: Ye ek normal router ka wireless version hai jo Wi-Fi provide karta
hai.
Switch: Ye hub se smart hota hai aur specific devices ko data send karta hai.
Wireless Bridge: Do wireless networks ko connect karne ke liye use hota hai.
3. Network Topology
Star: Ek center device (jaise switch) hota hai, jo sabhi devices ko connect karta hai.
Mesh: Har device ek doosre se connected ho hai, isse reliable aur fast network
banta hai.
Daisy Chain: Ek linear arrangement hota hai jisme ek ke baad ek devices connected
ho hain.
Tree: Hierarchical structure hota hai, jisme ek root device ho hai aur usse mul ple
branches nikal hain.
1. OSI Model (Open Systems Interconnec on)
Ye 7 layers ka model hota hai, jisme har ek layer ka specific func on hota hai.
Kuch common protocols jo OSI model ke layers par kaam karte hain: TCP, IP, UDP,
ARP, DHCP, FTP etc.
(A) Hostname
Har network device ka ek unique name hota hai, jise Hostname kehte hain.
IP Address ek logical address hota hai jo har device ko unique iden fy karta hai.
IPv6: Ye 128-bit address hota hai aur zyada devices support karta hai.
MAC Address ek physical address hota hai jo Network Interface Card (NIC) ke sath
a ached hota hai.
4. Port Number
Port ek logical channel hota hai jisme se data send/receive hota hai.
Port Number ek 16-bit integer hota hai, is wajah se total 65,536 ports hote hain.
Port Categories
Well-Known Ports: Standard services ke liye use hote hain (e.g., HTTP - 80, HTTPS -
443, FTP - 21).
Ek unique combina on hota hai jo network communica on mein use hota hai.
Example: Agar ek device ko data bhejna hai, to ARP uska MAC address find karega.
Obsolete ho gaya hai kyunki ab DHCP use hota hai (Dynamic Host Configura on
Protocol).
3. Goals of Networks
Network ek system hai jo mul ple devices ko jodne ke liye use hota hai.
Media: Copper wire, op cal fiber, microwave, satellite etc. use kiya ja sakta hai.
4. Networking Elements
5. Network Criteria
(A) Performance
Users kitne hain (Jitne zyada users honge, utna load padega).
2. Reliability (Bharosemandi)
3. Security (Suraksha)
Example: Office workers ek hi printer, fax, ya scanner use kar sakte hain.
Agar ek computer fail ho jaye, toh baaki machines data ko access kar sak hain.
Do alag-alag loca ons ke users network ke through communicate kar sakte hain.
5. Other Goals
Compa bility (Different hardware aur so ware ek sath kaam kar sake).
Example: Ek ghar ya chho office me phone, laptop, printer, aur Wi-Fi router ka
network.
Ek chho area me computers aur devices ko connect karta hai (e.g., office, school,
ya ek chho company).
Routers ka use karke ise WAN (Wide Area Network) se bhi connect kiya ja sakta hai.
LAN jaisa hi hota hai, but yeh Wi-Fi ka use karta hai instead of physical cables.
Wireless technology use karta hai, isliye zyada flexible hota hai.
LAN se bada hota hai, but Metropolitan Area Network (MAN) se chhota hota hai.
Mul ple buildings ko connect karta hai, jisse log resources share kar sakein.
Ek pura town ya city ka network hota hai, jo LAN aur WAN ka combina on hota hai.
Example: Internet itself ek WAN hai jo pure world ke computers ko connect karta
hai.
LAN ya WAN ka use nahi karta, balki dedicated storage network hota hai.
Example: Data centers ya large businesses jo massive data storage manage kar
hain.
Mostly cluster compu ng aur processor-to-processor applica ons me use hota hai.
Tradi onal LAN ka advanced version hai, jo op cal fiber ka use karta hai.
PoE (Power over Ethernet) aur structured cabling ke saath compa ble hota hai.
Signal ko split karne ke liye op cal spli ers ka use hota hai (be er speed &
efficiency).
Ek business ka private network hota hai jo uske mul ple offices ko securely connect
karta hai.
Example: Ek MNC jo apne India, US, aur UK offices ke beech secure communica on
establish kar hai.
Users securely data bhej aur receive kar sakte hain jaise wo private network se
connected ho.
1. Repeater
Signal ko amplify nahi karta, sirf original strength par copy karta hai.
2. Hub
Ek mul port repeater hai jo mul ple computers ko connect karta hai.
Data filtering nahi karta, har packet ko sabhi devices tak bhejta hai.
Types of Hub:
1. Ac ve Hub – Power supply ho hai, signal ko boost aur relay karta hai.
2. Passive Hub – Signal sirf forward karta hai, boost nahi karta.
3. Intelligent Hub – Ac ve hub jaisa hota hai but remote management aur traffic
monitoring features bhi ho hain.
3. Bridge
Doh LANs ko connect karta hai aur MAC addresses ke basis par filtering karta hai.
1. Transparent Bridge
Network reconfigura on ki zaroorat nahi pad agar bridge add ya remove hota hai.
Rou ng opera on source sta on kar hai, jo frame ke andar route define kar hai.
Ek special discovery frame bhejkar host possible paths explore karta hai.
4. Switch
Ek mul port bridge hai jo buffer aur intelligent design use karta hai.
Collision domain ko divide karta hai, lekin broadcast domain same rehta hai.
Error checking aur selec ve forwarding karta hai, jisse sirf valid data packets aage
jaate hain.
Zyada ports hone ke bawajood traffic kam hota hai, efficiency bad hai.
5. Router
Switch ki tarah hota hai, but data packets ko IP address ke basis par route karta hai.
LANs aur WANs ko connect karta hai aur dynamic rou ng table maintain karta hai.
6. Gateway
Messenger agent ki tarah kaam karta hai, jo data ko interpret karke dusre system
tak bhejta hai.
Protocol converters bhi kahte hain, aur kisi bhi network layer par kaam kar sakta
hai.
7. Brouter (Bridging Router)
Data link layer ya network layer par kaam kar sakta hai.
Router ki tarah packets ko route karta hai aur bridge ki tarah local traffic ko filter
karta hai.
LAN establish karne ke liye computer mein install kiya jata hai.
Har NIC card ka ek unique ID hota hai jo chip par likha hota hai.
Physical aur data link layer dono par kaam karta hai.
1. Mesh Topology
Total links = 5 × 4 / 2 = 10
✔ Robust hai, ek link fail hone par bhi network kaam karta hai.
✔ Fault detec on easy ho hai, kyunki dedicated channels use hote hain.
✔ Security aur privacy be er ho hai, kyunki har device direct connect ho hai.
Disadvantages:
Setup aur configura on difficult hota hai.
Cables kaafi lag hain, isliye cost zyada ho hai.
Maintenance bhi costly hota hai.
2. Star Topology
Protocols Used:
🖥 Example:
4 systems ek HUB se connected hain (Figure 2).
Star Topology
Bus Topology
🖥 Example: Figure 3 mein Bus Topology dikhayi gayi hai, jisme Nodes ek Backbone
Cable se connected hain via drop lines.
Ring Topology
✔ Saari devices ek ring form me connected ho hain, jisme har device sirf apne do
neighbors se connected ho hai.
✔ Agar network me bohot zyada nodes hain, toh data ek node se dusri tak jane ke liye
mul ple nodes cross karega.
✔ Repeaters ka use hota hai taaki data loss na ho aur signal weak na pade.
✔ Transmission usually unidirec onal ho hai, par Dual Ring Topology use karke
bidirec onal bhi ki ja sak hai.
✔ Ring Topology me Token Ring Protocol ka use hota hai, jisme data sirf tab transmit
hota hai jab ek sta on token hold karta hai.
1⃣ Monitor Sta on – Ek sta on ko monitor banaya jata hai jo opera ons handle karta hai.
2⃣ Token System – Data bhejne ke liye sta on ko token hold karna padta hai. Jab tak
token nahi milega, transmission nahi ho sak .
3⃣ Token Circula on – Jab koi sta on data nahi bhej raha hota, tab token network me
circulate hota rehta hai.
4⃣ Token Release Types:
Early Token Release – Jaise hi data transmit hota hai, token release ho jata hai.
Delay Token Release – Token tabhi release hota hai jab receiver se
acknowledgment mil jata hai.
Example: Figure 4 dikhata hai ki 4 sta ons ek ring topology me connected hain.
✔ Pros:
Collision nahi ho – Ek me pe sirf ek sta on data bhej sakta hai, is wajah se
collision chances minimum hote hain.
Sas aur scalable – Setup aur expansion easy hota hai, zyada cost nahi lag .
Cons:
⚠ Troubleshoo ng mushkil ho hai – Agar koi ek sta on ya link fail ho jaye toh pura
network affect ho sakta hai.
⚠ Intermediate sta on remove/add karna risky hai – Ek bhi node remove ho jaye toh
pura topology disturb ho sakta hai.
⚠ Security issues – Data ek hi path follow karta hai, agar koi a acker isme interfere kare
toh security risk badh jata hai.
✔ Ye ek Star Topology ka advanced version hai jisme hierarchical data flow hota hai.
✔ Protocols jaise ki DHCP aur SAC use hote hain for automa c configura on.
Mul -point connec on hota hai, lekin agar backbone fail ho jaye toh pura network
crash ho sakta hai.
Figure 5 Explained:
✔ Advantages:
Mul ple devices ek central hub se connect ho sakte hain, jisse signal ka travel
distance kam ho jata hai.
Network isolate karna easy hota hai aur alag-alag computers ke liye priority set ki ja
sak hai.
Problems:
⚠ Central hub fail ho jaye toh pura system down ho jata hai.
⚠ Cabling cost zyada ho hai because har device ko directly hub se connect karna padta
hai.
✔ Defini on:
Hybrid topology ek mixture hota hai different topologies ka (Ring, Star, Bus, etc.).
✔ Flexibility ho hai, kyunki nodes kisi bhi structure me arrange kiye ja sakte hain.
✔ Har topology apna specific protocol use kar hai, jo pehle discuss kiya gaya hai.
Figure 6 Explana on: