🌐 Unit 3 – Networks का परिचय · Lesson 18
Networks, Devices और Topologies
Network क्या है?
Computer network computers और devices (nodes) का समूह है जो तारों या wireless links से जुड़े हों ताकि data, devices और Internet share कर सकें।
Networks क्यों?
🖨️
Devices shareपूरे lab के लिए एक printer।📂
Files shareNotes और projects तुरंत भेजें।🌐
Internet shareसबके लिए एक connection।💬
CommunicationEmail, chat, video calls।Networks के प्रकार
Network devices
📞
ModemPhone/cable lines के लिए digital ⇄ analog।🔌
Ethernet card (NIC)Computer को network से जोड़ता है; MAC address होता है।📶
Repeaterदूरी बढ़ाने के लिए कमज़ोर signals दोबारा बनाता है।🔁
HubData सभी जुड़े devices को भेजता है।🔀
SwitchData सिर्फ़ सही device को भेजता है।🧭
Routerअलग networks जोड़ता है और सबसे अच्छा रास्ता चुनता है।🚪
GatewayEntry/exit point; अलग protocols वाले networks जोड़ता है।Hub vs switch
Hub
- हर port पर broadcast
- Intelligent नहीं
- ज़्यादा collisions, धीमा
Switch
- एक ही port पर भेजता है
- MAC addresses सीखता है
- तेज़ और ज़्यादा सुरक्षित
Network topologies
Topology वह layout है जिसमें nodes जुड़े होते हैं।
Python
# How many cables does each topology need for n computers?
def cables(topology, n):
if topology == 'bus':
return 1 # one backbone (plus a drop line per PC)
if topology == 'star':
return n # one cable from every PC to the switch
if topology == 'ring':
return n
if topology == 'mesh':
return n * (n - 1) // 2
for t in ['bus', 'star', 'ring', 'mesh']:
print(t.ljust(5), '-> 6 PCs need', cables(t, 6), 'link(s)')bus -> 6 PCs need 1 link(s)
star -> 6 PCs need 6 link(s)
ring -> 6 PCs need 6 link(s)
mesh -> 6 PCs need 15 link(s)
Topologies की तुलना
| Topology | फ़ायदा | नुकसान |
|---|---|---|
| Star | संभालना आसान; एक PC ख़राब होने से बाकी चलते रहते हैं | बीच का switch ख़राब तो सब बंद |
| Bus | सबसे सस्ती, सबसे कम cable | Backbone टूटे तो सब बंद; ज़्यादा nodes पर धीमी |
| Tree | Groups में बढ़ाना आसान | Root पर निर्भर |
| Mesh | सबसे reliable – कई रास्ते | सबसे ज़्यादा cable और ख़र्च |
Case study
✅ Board-style
एक company के 3 blocks 80 m, 120 m और 250 m दूर हैं जिनमें 40, 25 और 15 computers हैं। Server सबसे ज़्यादा computers वाले block में रखें; हर block में switch और star layout; लगभग 100 m से लंबी cable पर repeater; Internet के लिए server block में modem/router; blocks के बीच speed के लिए optical fibre।
अक्सर पूछे जाने वाले प्रश्न (FAQ)
शहर को कौन सा network cover करता है?
MAN (Metropolitan Area Network), जैसे पूरे शहर में फैला cable TV network।
Modem क्या करता है?
यह computer के digital signals को telephone या cable line के लिए analog में modulate करता है और आने वाले analog signals को वापस digital में demodulate करता है।
ज़्यादातर offices और labs में कौन सी topology होती है?
Star topology, क्योंकि इसे लगाना, संभालना और ख़राबी ढूँढना आसान है; एक computer ख़राब होने से बाकी पर असर नहीं होता।
