Data Communication and Network Basics
Data Communication and Network Basics
Data communication ka matlab hai data ka transfer hona ek jagah se doosri jagah. Ye
process do ya usse zyada devices ke beech
hota hai, jaise ki computers, smartphones, ya koi aur electronic devices.
** Basic Concepts:
Data: Ye wo information hai jo hum transfer karte hain, jaise text, images, audio,
etc.
Devices: Ye woh machines hain jo data ko send ya receive karte hain. Jaise computer,
mobile phone, ya server.
Transmission Medium: Ye wo raasta hai jisse data transfer hota hai. Ye wired (jaise
cables) ya wireless (jaise Wi-Fi) ho sakta hai.
Protocols: Ye rules hain jo define karte hain ki data kaise exchange hoga. Jaise
HTTP (web browsing ke liye) ya FTP (files transfer karne ke liye).
Real-time Communication: Aaj kal logon ko real-time me data exchange karna zaroori
hai, jaise video calls ya online gaming.
Networking: Data communication se devices ek dusre se connect hote hain, jisse
internet aur networks bante hain.
Automation: Ye industrial processes ko automate karne me madad karta hai, jaise
smart factories.
** Conclusion:
Data communication ek essential part hai modern technology ka, jo humein information
share karne aur communicate karne ki ability deta hai.
Iski samajh aaj ke digital duniya me bahut zaroori hai.
Computer Network ka matlab hai ek aisa system jisme multiple computers aur devices
ek dusre se connected hote hain, taaki wo data share kar
sakein aur communicate kar sakein. Networks ka use information exchange,
resource sharing, aur communication ke liye hota hai.
!!!Star Topology:
Isme sab devices ek central hub ya switch se connected hote hain.
Data hub ke through travel karta hai.
* Advantages: Agar ek device fail ho jaye, toh baaki devices kaam karte rahenge.
* Disadvantages: Agar central hub fail ho jaye, toh poora network down ho jayega.
!!!!Ring Topology:
Isme devices ek circular loop me connected hote hain.
Data ek direction me travel karta hai.
* Advantages: Data transmission speed achhi hoti hai.
* Disadvantages: Agar ek device fail ho jaye, toh poora network disrupt ho sakta
hai.
!!!Tree Topology:
Ye star aur bus topology ka combination hota hai.
Isme multiple star networks ek central bus se connected hote hain.
* Advantages: Flexible aur scalable.
* Disadvantages: Agar root node fail ho jaye, toh usse connected sub-nodes fail ho
sakte hain.
*** Conclusion
Har topology ke apne advantages aur disadvantages hain. Network topology ka
selection aapke requirements, budget, aur network size par
depend karta hai. Inka samajhna zaroori hai taaki aap ek efficient aur reliable
computer network design kar sakein.
1. Based on Size:
Personal Area Network (PAN):
Ye chhote area ke liye hota hai, jaise ek ghar ya ek kamra.
Iska use personal devices jaise smartphones, tablets, aur laptops ko connect karne
ke liye hota hai.
Example: Bluetooth devices.
2. Based on Topology:
Bus Network: Ek single cable par sab devices connected hote hain.
Star Network: Sab devices ek central hub se connected hote hain.
Ring Network: Devices ek circular loop me connected hote hain.
Mesh Network: Har device directly doosre devices se connected hota hai.
Tree Network: Star aur bus topology ka combination hota hai.
3. Based on Purpose:
Intranet:
Ye ek private network hota hai jo sirf ek organization ke members ke liye accessible
hota hai.
Iska use internal communication aur resource sharing ke liye hota hai.
Extranet:
Ye bhi ek private network hai, lekin isme authorized external users ko access diya
jata hai.
Iska use business partners ya clients ke saath collaboration ke liye hota hai.
*** Conclusion
Computer networks ki classification unki size, topology, aur purpose ke basis par
hoti hai. Ye samajhna zaroori hai kyunki aapko
apni requirements ke hisab se sahi network design karne me madad milti hai.
Data transmission ka matlab hai data ko ek device se doosre device tak bhejna. Isme
do main methods hain: Serial Transmission aur
Parallel Transmission. In dono ke apne advantages aur disadvantages hain.
1. Serial Transmission:
Definition: Isme data bits ek ke baad ek sequence me transfer hote hain, yani ek
time par sirf ek bit hi bheji jaati hai.
Example: USB ports ya RS-232 serial ports.
Advantages:
Simplicity: Iska design simple hota hai, kyunki sirf ek wire ya channel ki zaroorat
hoti hai.
Long Distance: Ye long distances par effective hota hai, kyunki interference kam
hoti hai.
Disadvantages:
Speed: Iska speed parallel transmission se thoda kam hota hai, kyunki data ek ke
baad ek bhejna padta hai.
2. Parallel Transmission:
Definition: Isme multiple data bits ek sath transfer hote hain, yani ek time par kai
bits bheje jaate hain.
Example: Old printers aur computer buses.
Advantages:
Speed: Ye fast hota hai kyunki multiple bits ko ek sath bheja ja sakta hai.
Disadvantages:
Complexity: Iska design complex hota hai, kyunki isme zyada wires ya channels ki
zaroorat hoti hai.
Distance Limitations: Ye long distances par effective nahi hota, kyunki signals me
interference ho sakti hai.
******Transmission Models
Data transmission models ko samajhne se humein ye pata chalta hai ki data kaise send
aur receive hota hai. Kuch common transmission models hain:
Simplex:
Definition: Isme data sirf ek direction me flow karta hai. Ek device data send karta
hai aur doosra sirf receive karta hai.
Example: Keyboard to computer connection.
Half-Duplex:
Definition: Isme data dono directions me flow kar sakta hai, lekin ek time par sirf
ek direction me.
Example: Walkie-talkies, jahan ek person bolta hai aur doosra sunta hai.
Full-Duplex:
Definition: Isme data dono directions me simultaneously flow kar sakta hai. Dono
devices ek sath send aur receive kar sakte hain.
Example: Telephone calls, jahan dono parties ek sath baat kar sakte hain.
*** Conclusion
Serial aur parallel transmission methods alag-alag situations me use hoti hain, aur
transmission models humein batate hain ki data
kaise communicate hota hai. Inka samajhna zaroori hai taaki hum efficient data
communication systems design kar sakein.
Transmission Channel
Transmission Channel ka matlab hai wo medium jiske through data ek device se doosre
device tak transfer hota hai. Ye channels different
types ke ho sakte hain, jaise:
* Wired Channels:
Isme physical cables ya wires ka use hota hai.
Example: Ethernet cables, coaxial cables, aur fiber optic cables.
Advantages: Generally faster aur more reliable hote hain.
* Wireless Channels:
Isme data bina kisi physical connection ke transmit hota hai.
Example: Wi-Fi, Bluetooth, aur cellular networks.
Advantages: Mobility provide karte hain, lekin kabhi-kabhi signal interference ho
sakti hai.
* Data Rate:-
Data Rate ya Bit Rate ka matlab hai ki ek transmission channel par data kitni speed
se transfer hota hai. Isse usually bits per second
(bps) me measure kiya jata hai.
****Channel Bandwidth:
Ye channel ki capacity hoti hai ki wo kitna data ek time par transfer kar sakta hai.
Zyada bandwidth hone par zyada data transfer hota hai.
** Noise and Interference:
Agar channel me noise ya interference zyada ho, toh data rate kam ho sakta hai,
kyunki data ko sahi se transfer karne me dikkat aati hai.
Distance:
Distance bhi data rate ko affect karta hai. Zyada distance par signal weaken ho jata
hai, jo ki data rate ko reduce kar sakta hai.
** Conclusion
Transmission channel aur data rate dono hi communication systems ke liye bahut
important hain. Channel ki type aur data rate ki understanding
se humein efficient data transfer aur communication design karne me madad milti
hai.
** Bandwidth
Bandwidth ka matlab hai ek communication channel ki capacity, yani wo kitna data ek
time par transfer kar sakta hai. Isse usually bits per
second (bps) me measure kiya jata hai.
High Bandwidth: Iska matlab hai ki channel zyada data transfer kar sakta hai. Ye
fast internet connections ya fiber optics me hota hai.
Low Bandwidth: Iska matlab hai ki channel kam data transfer kar sakta hai. Ye
dial-up connections ya chhote wireless networks me hota hai.
Example: Agar aapka internet connection 100 Mbps bandwidth provide karta hai, toh
iska matlab hai ki aap ek second me 100 million bits
transfer kar sakte hain.
*** Signal
Signal data ka wo representation hota hai jo transmission channel me send kiya jata
hai. Ye signals do tarah ke hote hain:
** Analog Signal:
Ye continuous signals hote hain aur inki value time ke sath change hoti rehti
hai.
Example: Audio signals ya radio waves.
** Digital Signal:
Ye discrete signals hote hain aur inki value fixed intervals par change hoti
hai, jise 0s aur 1s me represent kiya jata hai.
Example: Computer data ya digital audio.
** Encoding Schemes
Encoding Schemes wo methods hote hain jinke through data ko signals me
convert kiya jata hai. Kuch common encoding schemes hain:
:::::Data Compression
Data Compression ka matlab hai data ki size ko reduce karna bina important
information khoe. Ye do tarike se hota hai:
Lossless Compression:
Isme original data ko bilkul waisa hi restore kiya ja sakta hai.
** Lossy Compression:
Isme kuch data loss hota hai, lekin compressed file size bahut chhota hota hai.
Example: JPEG images ya MP3 audio files.
*** Conclusion
Bandwidth, signals, encoding schemes, aur data compression sabhi communication
systems ke essential parts hain. Inhe samajhna
zaroori hai taaki efficient data transmission aur storage kiya ja sake.
* Attenuation:
Iska matlab hai signal ka kam hona ya weak hona jab wo distance tay karta hai. Jaise
jaise signal door jata hai, uski strength kam hoti hai.
* Noise:
Ye unwanted signals hote hain jo original data ke saath mix ho jaate hain, jisse
data ko samajhna mushkil ho jata hai. Example: static noise in audio.
* Distortion:
Isme signal ka shape change ho jata hai. Jaise composite signals me alag-alag parts
ka distortion ho sakta hai, jisse
data galat interpret hota hai.
* Interference:
Ye do ya zyada signals ke beech me conflict hota hai, jisse data transmission me
dikkat aati hai. Example: ek Wi-Fi network
ka doosre se interfere hona.
***** Layering:----
Layering networking architecture ka ek concept hai jisme communication system ko
multiple layers me divide kiya jata hai.
Har layer apne specific tasks aur functions ko handle karti hai. Iska fayda ye hai
ki system ko manage karna aur troubleshoot karna aasaan ho jata hai.
Network Layer:
Is layer me data packets ko route kiya jata hai. Ye decide karta hai ki data kahan
jana hai.
Transport Layer:
Is layer me end-to-end communication hoti hai. Ye data ki reliability aur flow
control ko manage karti hai.
Application Layer:
Is layer me user applications aur services hoti hain, jaise web browsers ya email
clients.
Scalability:
System ko aise design karna chahiye ki jab users ya devices ki sankhya badhe, toh
bhi wo achhe se kaam kare.
Reliability:
Network ko reliable banana zaroori hai, taaki data loss na ho aur connections
kabhi-kabhi fail na ho.
Security:
Data aur network ko secure karna bahut important hai, jisse unauthorized access se
bacha ja sake.
Performance:
Network ki performance ko ensure karna chahiye, yani data transfer speed aur
response time achha hona chahiye.
*** Conclusion
Transmission impairments, layering, aur design issues sabhi networking systems ke
liye important concepts hain. Inhe samajhne se
hum better communication systems design kar sakte hain aur unhe efficiently manage
kar sakte hain.
Physical Layer:
Ye layer physical connection aur data transmission ko handle karti hai. Jaise
cables, switches, aur signals.
Network Layer:
Is layer ka kaam data packets ko route karna hota hai. Ye decide karti hai ki data
kahan jana hai.
Transport Layer:
Is layer me end-to-end communication hoti hai. Ye data ka reliability aur flow
control manage karti hai.
Session Layer:
Ye layer sessions ko establish, manage, aur terminate karti hai. Yani connections ko
control karti hai.
Presentation Layer:
Is layer me data ki format conversion hoti hai. Ye data ko application layer ke liye
suitable format me convert karti hai.
Application Layer:
Ye layer user applications aur services ko handle karti hai, jaise web browsers ya
email clients.
*****TCP/IP Model
TCP/IP Model (Transmission Control Protocol/Internet Protocol Model) networking ka
ek practical framework hai jo internet par data
transmission ke liye use hota hai. Is model me 4 layers hoti hain:
Link Layer:
Is layer me network interface cards (NICs) aur physical transmission medium ki baat
hoti hai. Ye OSI ke Data Link aur Physical layers ko combine karti hai.
Internet Layer:
Is layer ka kaam data packets ko route karna aur addressing provide karna hota hai.
Ye OSI ke Network layer ke equivalent hai.
Transport Layer:
Is layer me data transmission ka reliability aur flow control hota hai. Ye OSI ke
Transport layer se milti-julti hai. Isme TCP aur UDP protocols ka use hota hai.
Application Layer:
Ye layer user applications aur services ko handle karti hai. Ye OSI ke Application,
Presentation, aur Session layers ko combine karti hai.
====== Comparison
Layer Count: OSI Model me 7 layers hain, jabki TCP/IP Model me sirf 4 layers hain.
Purpose: OSI Model theoretical hai, jabki TCP/IP Model practical applications ke
liye design kiya gaya hai.
Flexibility: OSI Model zyada flexible hai kyunki isme alag-alag layers ke functions
clearly defined hain.
***** Conclusion
OSI Model aur TCP/IP Model dono hi networking ke important frameworks hain. OSI
model theoretical understanding ke liye hai, jabki TCP/IP model real-world
applications me use hota hai, jaise internet communication. In dono models ko
samajhna networking ke liye zaroori hai.
1. Layers::::::--
OSI Model:
2. Purpose
OSI Model:
Ye ek theoretical framework hai jo networking concepts ko samajhne me madad karta
hai. Iska use communication protocols ko define karne ke liye hota hai.
TCP/IP Model:
Ye ek practical framework hai jo internet par data transmission ke liye design kiya
gaya hai. Ye real-world applications me zyada use hota hai.
3. Development
OSI Model:
Isse International Organization for Standardization (ISO) ne develop kiya tha. Ye ek
standard model hai.
TCP/IP Model:
Isse ARPANET ke liye develop kiya gaya tha, jo ek research project tha. Ye protocols
ka set hai jo internet ko chalata hai.
4. Flexibility
OSI Model:
Ye zyada flexible hai kyunki isme har layer ka function clearly defined hai.
TCP/IP Model:
Ye thoda less flexible hai kyunki isme kuch layers combine ki gayi hain.
5. Protocols
OSI Model:
Ye specific protocols ko define nahi karta, lekin har layer ke liye alag-alag
protocols ka use hota hai.
TCP/IP Model:
Isme specific protocols hain, jaise TCP (Transmission Control Protocol) aur IP
(Internet Protocol), jo communication ke liye zaroori hote hain.
*** Conclusion
Summary:
OSI Model 7 layers ka theoretical framework hai, jabki TCP/IP Model 4 layers ka
practical framework hai.
OSI model communication concepts ko
samajhne me madad karta hai, jabki TCP/IP model real-world internet communication ko
support karta
In dono models ko samajhna networking ke liye zaroori hai.
1. Functionality
Framing:
Data Link Layer data ko frames me convert karti hai. Frame ek structured unit hota
hai jo data, address, aur error-checking information ko contain karta hai.
Flow Control:
Flow control ka matlab hai data transmission ki speed ko manage karna taaki sender
aur receiver dono ke beech balance bana rahe. Isse
data loss ya overload se bacha ja sakta hai.
2. Addressing
MAC Address:
Data Link Layer devices ko unique identifiers provide karti hai, jise MAC (Media
Access Control) address kaha jata hai. Ye address har
device ke liye unique hota hai aur isse data ko specific device tak bhejne me madad
milti hai.
3. Protocols
Data Link Layer ke kuch common protocols hain:
Ethernet: Ye sabse popular LAN (Local Area Network) technology hai.
Wi-Fi: Wireless communication ke liye use hota hai.
PPP (Point-to-Point Protocol): Ye point-to-point connections ke liye use hota hai.
*** Conclusion
Data Link Layer networking ka ek crucial part hai jo data ko frames me organize
karna, errors ko detect aur correct karna, aur devices
ko uniquely identify karna jaise functions perform karti hai. Ye layer ensure karti
hai ki data reliable aur efficient tarike se
transmit ho. Is layer ka samajhna networking ke liye bahut zaroori hai.
:-- @@@topics:- Data Link Layer:Need for Data Link Control, Frame Design
Consideration,------
Data Link Layer: Need for Data Link Control & Frame Design Considerations
Data Link Control aur Frame Design Data Link Layer ke important aspects hain. Inhe
samajhna zaroori hai kyunki ye data transmission
ko reliable aur efficient banate hain. Chaliye in dono concepts ko simplify karte
hain:
Flow Control:
Flow control ensure karta hai ki sender aur receiver ke beech data ka flow balanced
rahe. Agar sender bahut tezi se data bhej raha
hai aur receiver usse process nahi kar paa raha, to data loss ho sakta hai. Flow
control is problem ko prevent karta hai.
Reliable Communication:
Data Link Control reliable communication provide karta hai. Ye ensure karta hai ki
data packets sahi order me aur bina kisi loss ke receive hon.
Access Control:
Jab multiple devices ek hi medium (jaise Wi-Fi) par data bhej rahe hote hain, to
unhe pata hona chahiye ki kab aur kaise bhejna hai.
Data Link Control is access ko manage karta hai taaki collision (data packets ka ek
saath bhejna) na ho.
Frame Structure:----
Frame ka structure aisa hona chahiye ki isme sab zaroori information ho, jaise:
Header: Isme source aur destination MAC addresses hote hain.
Data: Ye wo actual information hoti hai jo transmit ki ja rahi hai.
Trailer: Isme error checking information hoti hai (jaise CRC - Cyclic Redundancy
Check).
Frame ka size bhi important hai. Bahut choti frames se overhead badh sakta hai (har
frame ke liye header aur trailer lagana padta hai),
aur bahut badi frames se transmission time badh sakta hai. Isliye frame size ko
optimize karna zaroori hai.
Synchronization:
Frame design me synchronization bits bhi include karne chahiye taaki sender aur
receiver dono ko pata chale ki frame shuru aur khatam kab hota hai.
**** Conclusion:---------
Data Link Control ki zarurat reliable aur efficient data transmission ke liye hai,
jabki Frame Design se ensure hota hai ki data properly
organized hai aur easily transmit ho raha hai. In dono aspects ko samajhna
networking me important hai, kyunki ye data communication ko
behatar banate hain.
1. Flow Control
Flow Control ka matlab hai data transmission ki speed ko manage karna taaki sender
aur receiver ke beech data ka flow balanced rahe. Iska
main purpose hai data loss ya overload se bachna. Yahan kuch key points hain:
Stop-and-Wait Protocol:
Isme sender ek frame bhejta hai aur receiver se acknowledgment (ACK) ka wait karta
hai pehle frame ke liye. Jab ACK milta hai, tab wo agla
frame bhejta hai. Ye simple hai lekin slow bhi ho sakta hai.
2. Error Control
Error Control ka matlab hai data transmission ke dauran agar koi error hota hai to
usse detect aur correct karna. Ye ensure karta hai ki jo
data receiver tak pahunch raha hai wo sahi hai. Yahan kuch key points hain:
** Error Detection:
Parity Bits: Ye ek additional bit hoti hai jo data ke sath attach hoti hai. Ye even
ya odd parity check karti hai. Agar transmitted data ka
parity match nahi karta, to error detect hota hai.
Checksums: Sender data ka sum calculate karta hai aur ye checksum value bhejta hai.
Receiver bhi apne end par checksum calculate karta hai.
Agar dono match nahi hoti, to error detect hota hai.
Automatic Repeat reQuest (ARQ): Agar receiver ko error detect hota hai, to wo sender
ko request bhejta hai ki wo frame ko dobara bheje.
Forward Error Correction (FEC): Isme sender data ke sath additional redundant
information bhejta hai, taaki receiver khud hi errors ko correct
kar sake bina kisi request ke.
****Conclusion======
Flow Control aur Error Control Data Link Layer ke crucial functions hain. Flow
Control sender aur receiver ke beech data transmission ki
speed ko manage karta hai, jabki Error Control ensure karta hai ki transmitted data
sahi hai. In dono techniques ka istemal karke networking
ko reliable aur efficient banaya ja sakta hai.
Access Control:
Jab multiple devices ek hi medium par data bhej rahe hote hain, to unhe pata hona
chahiye ki kab data bhejna hai. MAC Sublayer is access
ko control karta hai taaki collision (data packets ka ek saath bhejna) na ho.
Techniques:
CSMA/CD (Carrier Sense Multiple Access with Collision Detection): Ye technique
Ethernet networks me use hoti hai. Isme devices pehle
medium ko sunte hain (carrier sense) aur agar koi aur device data bhej raha hai to
wo wait karte hain. Agar collision hota hai, to
devices data ko dobara bhejte hain.
CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance): Ye technique Wi-Fi
networks me use hoti hai. Isme devices pehle medium
ko sunte hain aur agar khali hota hai to wo data bhejte hain. Ye collision ko avoid
karne ke liye kuch additional steps lete hain, jaise random backoff time.
3. Frame Handling
Framing:
MAC Sublayer frames ko create aur manage karti hai. Ye data packets ko frames me
convert karti hai jisme source aur destination MAC
addresses hote hain, taaki data sahi device tak pahunch sake.
Error Checking:
MAC Sublayer bhi kuch error checking mechanisms include karti hai, jaise CRC (Cyclic
Redundancy Check), taaki ensure ho sake ki data
sahi tarike se transmit hua hai.
** Conclusion
MAC Sublayer Data Link Layer ka ek crucial part hai jo devices ke beech data
transmission ko organize karta hai. Ye addressing, access
control, frame handling, aur error checking jaisi functionalities provide karta
hai. Isse data communication reliable aur efficient
banta hai, khaas taur par jab multiple devices ek hi medium ka istemal kar rahe
hote hain.
:-- @@@topics:- Data Link Layer: contention based and polling based MAC
protocols------
Devices pehle medium ko sunte hain (carrier sensing) aur agar medium khali hota hai,
to wo data bhejne ki koshish karte hain.
Agar ek hi samay par do ya zyada devices data bhejne ki koshish karte hain, to
collision hota hai (data packets ka ek saath bhejna).
Example Protocols:
Advantages:
Simple aur cost-effective hain kyunki isme koi central controller nahi hota.
Disadvantages:
Jab network me bahut saare devices hote hain, to collision ke chances badh jate
hain, jo performance ko affect kar sakta hai.
Master device ek ek karke sab devices se poochta hai (polling) ki kya unke paas data
hai. Agar kisi device ke paas data hai,
to wo usse bhejta hai.
Ye process tab tak chalta hai jab tak sab devices ko check nahi kar liya jata.
Example Protocols:
Token Ring: Isme ek token pass hota hai aur sirf wo device jo token hold karta hai,
wo data bhej sakta hai. Isse collision ka
chance khatam ho jata hai.
Advantages:
Collision ka koi issue nahi hota, kyunki har device ko sequentially allow kiya jata
hai data bhejne ke liye.
Disadvantages:
Agar master device fail ho jata hai, to poora system ruk jata hai. Ye protocols
thode complex bhi hote hain aur additional overhead generate karte hain.
**** Conclusion:--
Contention-based MAC protocols me devices apne aapas me compete karte hain data
bhejne ke liye, jabki Polling-based MAC protocols
me ek central controller sequentially devices se poochta hai. Dono protocols ke
apne advantages aur disadvantages hain, aur inka
istemal specific scenarios aur requirements par depend karta hai.
Network Layer
Network Layer OSI (Open Systems Interconnection) model ka third layer hai. Iska main
function data packets ko source se destination
tak bhejna hota hai. Chaliye isko asan tarike se samjhte hain:
Logical Addressing:
Network Layer har device ko ek unique logical address assign karta hai, jise IP
Address kaha jata hai. Ye address devices ko identify
karne me madad karta hai. Jaise, [Link] ek IP address hai.
Routing:
Ye layer data packets ko sahi path par bhejne ke liye routing protocols ka use karti
hai. Routing ka matlab hai data ko sahi route
se bhejna, taaki wo jaldi aur efficiently apne destination tak pahunch sake.
Routers: Ye special devices hote hain jo different networks ke beech data packets ko
route karte hain. Ye path ko decide karte hain ki
data kis tarike se travel karega.
**** Conclusion:---
Network Layer data packets ko source se destination tak bhejne ke liye responsible
hai. Ye logical addressing, routing, fragmentation,
aur reassembly jaise functions perform karta hai. Is layer ka role bahut important
hai, kyunki ye ensure karta hai ki data efficiently
aur reliably transfer ho.
1. Routing
Routing ka matlab hai data packets ko sahi path se bhejna. Ye ensure karta hai ki
data apne destination tak jaldi aur efficiently pahunch sake.
Routers:
Routing ka kaam routers karte hain. Ye special devices hote hain jo different
networks ke beech data packets ko route karte hain.
Jab ek packet kisi router tak pahunchta hai, to router check karta hai ki packet ka
destination address kya hai aur phir decide karta hai
ki packet ko kis direction me bhejna hai.
Routing Tables:
Routers ke paas routing tables hote hain jisme unhe pata hota hai ki kaun se
networks kahan hain. Ye tables help karte hain routers ko
ye decide karne me ki packets ko kaunse path se bhejna hai.
Routing Protocols:
Different routing protocols (jaise RIP, OSPF, BGP) use hote hain jo routers ko
batate hain ki kaise packets ko route kiya jaye. Ye protocols
ensure karte hain ki network me data ka flow smooth rahe.
2. Congestion Control
Congestion Control ka matlab hai network me data traffic ko manage karna taaki
overload na ho. Jab bahut saare devices ek saath data bhejne
lagte hain, to network congested ho sakta hai, jis se data loss ya delay ho sakta
hai.
Causes of Congestion:
Jab network par zyada traffic hota hai, to routers ya switches overloaded ho jate
hain.
Agar multiple users video streaming ya large files download kar rahe hain, to
congestion hone ke chances badh jate hain.
Traffic Shaping: Is technique me data ko control kiya jata hai taaki ek samay me
sirf certain amount of data hi transmit ho. Isse congestion reduce hota hai.
Queue Management: Jab packets congestion ke samay me delay hote hain, to routers
packets ko queue me rakhte hain. Ye ensure karta hai
ki packets ko orderly process kiya jaye.
Feedback Mechanisms: Kuch protocols feedback dete hain jab congestion hota hai.
Jaise TCP (Transmission Control Protocol) me sender
ko bataya jata hai ki usse data bhejne ki speed ko kam karna chahiye.
**Conclusion
Routing aur Congestion Control dono Network Layer ke essential functions hain.
Routing data packets ko sahi path se bhejne me madad
karta hai, jabki Congestion Control network traffic ko manage karta hai taaki
overload na ho. In dono processes se network communication
reliable aur efficient banta hai.
Internetworking me har device ko ek unique address diya jata hai, jise IP Address
kaha jata hai. Ye address devices ko identify karne me madad karta hai.
Isse alag-alag networks me devices ko easily locate kiya ja sakta hai.
Routing:
Jab data ek network se doosre network me travel karta hai, to routers ka use hota
hai. Routers data packets ko sahi path par bhejte hain.
Routing tables aur protocols (jaise RIP, OSPF) ka istemal karke routers ye decide
karte hain ki packets kis route se jayenge.
Encapsulation:
Data packets ko bejne se pehle, unhe encapsulate kiya jata hai. Iska matlab hai ki
data ko headers aur trailers ke sath wrap kiya
jata hai, jisse data ko sahi tarike se transmit kiya ja sake.
Jaise, ek IP header add kiya jata hai jo source aur destination address ko define
karta hai.
Fragmentation:
Agar data packet ka size network ke maximum transmission unit (MTU) se bada ho, to
Network Layer us data ko chhote packets me
tod deta hai (fragmentation).
Ye chhote packets phir destination par pahunchne par wapas se assemble (reassemble)
hote hain.
4. Importance of Internetworking
Scalability:
Internetworking se networks ko easily expand kiya ja sakta hai. Naye devices ya
networks ko existing infrastructure me integrate karna aasaan hota hai.
Interoperability:
Alag-alag types ke networks (jaise wired, wireless) ko connect karne ki suvidha
milti hai, jis se communication seamless hota hai.
Resource Sharing:
Different networks ke resources (jaise printers, servers) ko share karne ki suvidha
milti hai, jisse efficiency badhti hai.
*** Conclusion
Internetworking principles Network Layer ke through alag-alag networks ko connect
karne aur communicate karne me madad karte hain.
Logical addressing, routing, encapsulation, aur fragmentation jaise concepts is
process ko facilitate karte hain, jisse data
smoothly transfer hota hai aur networks efficiently operate karte hain.
2. IPv4 Addressing
Structure:
IPv4 address 4 octets me hota hai, jise decimal format me likha jata hai. Jaise:
[Link].
Har octet 0 se 255 tak ka value le sakta hai.
** Classes of IP Addresses:
3. IPv4 Functions
Packet Delivery:
IPv4 ensure karta hai ki data packets sahi tarike se source se destination tak
pahunch rahe hain. Ye logical addressing aur routing ke through hota hai.
Fragmentation:
Agar data packet ka size bade network ke MTU se zyada ho, to IPv4 us packet ko
chhote packets me tod deta hai, jisse wo easily transmit ho sake.
Error Handling:
IPv4 error messages bhejne ke liye ICMP (Internet Control Message Protocol) ka use
karta hai. Agar koi packet deliver nahi hota, to ICMP error message bhejta hai.
4. Limitations of IPv4
Address Exhaustion:
IPv4 addresses ki total supply limited hai (approximately 4 billion). Abhi ke samay
me, ye addresses khatam hone lage hain, kyunki internet users aur devices ki sankhya
badh rahi hai.
Lack of Security:
IPv4 me built-in security features nahi hote. Is wajah se, data transmission ke
dauran security risks hote hain.
5. Transition to IPv6
IPv6:
IPv6 (Internet Protocol version 6) ko is problem ka solution dene ke liye develop
kiya gaya hai. Ye 128-bit addresses use karta hai, jis se address space kaafi badh
jata hai.
Isme better security features bhi hain.
****Conclusion
IPv4 Network Layer ka ek important protocol hai jo internet par data packets ko
bhejne aur unhe route karne me madad karta hai.
Iska addressing system, packet delivery process, aur fragmentation ke concepts isse
efficient banate hain. Lekin, kuch limitations hain,
jinke liye IPv6 ko introduce kiya gaya hai. IPv4 ki understanding internet
communication ke liye essential hai.
1. Packet Format
Packet Format ka matlab hai ki data packets kis tarike se structured hote hain jab
wo network me transmit hote hain. Ek packet do main parts me divided hota hai:
Header:
Ye packet ke baare me important information rakhta hai, jaise:
Payload:
Ye wo actual data hota hai jo sender se receiver tak bhejna hota hai. Ye data kisi
bhi form me ho sakta hai, jaise text, images, files, etc.
2. Hierarchical Addressing
Hierarchical Addressing ka matlab hai ki IP addresses ko ek structured way me
organize kiya jata hai. Isse networks me devices ko identify karna aasaan hota hai.
IP Address Structure:
IPv4 address 32-bit ka hota hai aur isse 4 octets me divide kiya jata hai (e.g.,
[Link]).
Isme pehla part network ko represent karta hai aur doosra part device ko represent
karta hai.
Subnet Mask:
Subnet mask ye define karta hai ki IP address ka kaunsa hissa network part hai aur
kaunsa host part hai.
Example: Agar IP address [Link] hai aur subnet mask [Link] hai, to isme
192.168.1 network part hai aur .1 host part hai.
3. Subnetting
Subnetting ka matlab hai ek bade network ko chhote-chhote networks (subnets) me
divide karna. Isse network ko manage karna aur efficient banana aasaan hota hai.
***Benefits of Subnetting:
Improved Performance: Jab network chhote subnets me divided hota hai, to broadcast
traffic kam hota hai, jisse performance improve hoti hai.
Enhanced Security: Alag-alag subnets ko alag security policies apply ki ja sakti
hain.
Efficient IP Address Management: Subnetting se IP addresses ka better utilization
hota hai, kyunki alag-alag departments ya groups ko unki requirement ke hisaab se IP
addresses diye ja sakte hain.
*Example of Subnetting:
*****Conclusion
Packet format, hierarchical addressing, aur subnetting Network Layer ke essential
components hain. Packet format data transmission ka structure define karta hai,
hierarchical addressing devices ko organized tarike se identify karta hai, aur
subnetting networks ko chhote manageable parts me divide karta hai. In concepts ka
understanding network communication ko efficient aur effective banata hai.
Dynamic Mapping:
Ye IP addresses aur MAC addresses ke beech dynamic mapping karta hai, jo ki network
me changes hone par bhi kaam karta hai.
Encapsulation:
PPP data packets ko encapsulate karta hai, yaani headers aur trailers add karta hai,
jisse data transmission ke dauran integrity maintain rahe.
Link Control Protocol (LCP):
Ye ek part hai PPP ka jo link establishment, configuration, aur testing ke liye
responsible hai. LCP ensure karta hai ki dono
devices ke beech connection sahi hai.
Importance of PPP
Versatility:
PPP alag-alag types ke networks (jaise serial links, ISDN, DSL) me use ho sakta hai.
Error Detection:
Ye data transmission ke dauran errors ko detect karne ki capability rakhta hai,
jisse reliable communication hota hai.
Authentication:
PPP authentication mechanisms (jaise PAP, CHAP) provide karta hai, jo security ke
liye zaroori hai.
******Conclusion:-
ARP aur PPP Network Layer ke do crucial protocols hain. ARP IP addresses ko MAC
addresses me convert karke local network communication ko
facilitate karta hai, jabki PPP do directly connected devices ke beech reliable
data transmission ke liye use hota hai. In protocols ka
understanding network communication ko efficient aur secure banata hai.
3. IPv6 Addressing:
Format: IPv6 addresses hexadecimal format mein likhe jaate hain aur colon (:) se
separate hote hain. Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Unicast, Multicast, Broadcast:
Unicast: Ek specific device ko data bhejna.
Multicast: Ek group of devices ko data bhejna.
Anycast: Pehle available device ko data bhejna jo ki group ka member ho.
5. IPv6 Benefits:
Zyada Devices Connect Karne Ki Capacity: Har device ko unique IP address milta hai.
Better Security: Data transfer zyada secure hota hai.
Efficient Routing: Data packets ka routing process fast aur efficient hota hai.
*** Conclusion:
IPv6 ek advanced protocol hai jo internet ki zarooraton ko fulfill karta hai. Yeh
zyada devices ko connect karne, better
security, aur efficient data transfer ke liye design kiya gaya hai.
Is tarah se aap IPv6 ke basics ko samajh sakte hain aur exam ke liye tayaar ho sakte
hain.
**** Conclusion:
IPv4 aur IPv6 dono hi important protocols hain, lekin IPv6 ne zyada address space,
better security, aur efficient communication provide kiya hai. IPv4 ab bhi use hota
hai, lekin duniya bhar mein devices ki badhti sankhya ke saath, IPv6 ki zaroorat
badh rahi hai.
Is tarah se aap IPv4 aur IPv6 ke beech ke differences ko samajh sakte hain aur exam
ke liye tayaar ho sakte hain.
:-- @@@topics:- Network Layer:Bridges, Routers.------
:-- @@@topics:- Network Layer: All Types of devices such asbridges ,hub ,switch,
etc .------
1. Hub
Kya Hai?: Hub ek basic networking device hai jo multiple devices ko connect karta
hai.
Function: Data packets ko sabhi connected devices par broadcast karta hai.
Layer: Physical Layer (Layer 1).
** Use Case: Chhote networks mein use hota hai, lekin zyada efficient nahi.
2. Switch
Kya Hai?: Switch ek intelligent device hai jo devices ke beech data packets ko
forward karta hai.
Function: Data ko MAC addresses ke basis par specific devices tak bhejta hai.
Layer: Data Link Layer (Layer 2).
** Use Case: Local Area Networks (LANs) mein use hota hai, jahan zyada efficiency
chahiye hoti hai.
3. Bridge
Kya Hai?: Bridge do ya do se zyada LANs ko connect karta hai.
Function: Data packets ko filter aur forward karta hai, collision domains ko reduce
karta hai.
Layer: Data Link Layer (Layer 2).
**Use Case: Alag-alag segments ko connect karne ke liye use hota hai.
4. Router
Kya Hai?: Router alag networks ko connect karta hai.
Function: IP addresses ke basis par data packets ko route karta hai.
Layer: Network Layer (Layer 3).
Use Case: Internet access aur WAN connections ke liye use hota hai.
5. Gateway
Kya Hai?: Gateway ek device hai jo do alag networks ko connect karta hai, chahe unka
protocol alag ho.
Function: Data ko ek format se dusre format mein convert karta hai.
Layer: Network Layer (Layer 3) aur higher layers par bhi.
**Use Case: Different types of networks (jaise LAN aur WAN) ko connect karne ke
liye.
6. Repeater
Kya Hai?: Repeater signal ko amplify aur regenerate karta hai taaki uski range badh
sake.
Function: Weak signals ko strong banata hai.
Layer: Physical Layer (Layer 1).
**Use Case: Long distances par data transmission ke liye use hota hai.
7. Access Point
Kya Hai?: Wireless Access Point (WAP) wireless devices ko wired network se connect
karta hai.
Function: Wireless signals ko transmit aur receive karta hai.
Layer: Data Link Layer (Layer 2).
Use Case: Wi-Fi networks mein istemal hota hai.
**** Conclusion:
Yeh devices networking ke liye bahut zaroori hote hain, har ek ka apna unique role
hota hai. Hub aur repeater basic
connectivity provide karte hain, jabki switch aur router data ko intelligently
manage karte hain. Bridge aur gateway
alag networks ko connect karne mein madad karte hain.
Is tarah se aap networking devices ke types aur unke functions ko asani se samajh
sakte hain aur competitive exams ke liye tayaar ho sakte hain.
** Conclusion:
Data Link Layer ka role data transmission ko reliable aur efficient banana hai. Yeh
framing, addressing, error detection, flow control,
aur access control jaisi functionalities provide karta hai. Is layer ke
bina, network communication itna effective nahi hota.
Flow Control: Data Link Layer flow control implement karti hai, jisse sender aur
receiver ke beech data loss na ho. Yeh ensure
karta hai ki receiver data ko process kar sake bina overload ke.
Access Control: Jab multiple devices same medium share karte hain, toh Data Link
Layer access control protocols (jaise CSMA/CD ya CSMA/CA)
ka istemal karti hai taaki collisions se bacha ja sake.
Network Layer: Transport Layer segment ko Network Layer ko pass karti hai, jo packet
bana kar data ko route karta hai.
UNIT :- 4:-- @@@topics:- Datalink Layer: Socket meaning and socket address ------
Data Link Layer: Socket Meaning and Socket Address - Simplified in Hinglish
1. Socket Kya Hai?
Definition: Socket ek endpoint hai do programs ke beech communication ke liye. Yeh
ek tarah ka interface hai jo network par
data exchange karne mein madad karta hai.
Use: Jab ek application (jaise web browser) doosri application (jaise web server) se
connect hoti hai, toh yeh socket ka
istemal karti hai. Socket ko samajhne ke liye sochiye ki yeh ek telephone ki tarah
hai; jaise aapka telephone ek specific
number par call karne ke liye use hota hai, waise hi socket bhi data bhejne ke liye
use hota hai.
**** Structure:
IP Address: Yeh device ka unique address hota hai jo network par uski location
batata hai.
Port Number: Yeh specific application ya service ko identify karta hai jo IP address
par run ho rahi hoti hai.
Example: Agar kisi server ka IP address [Link] hai aur woh web service ke liye
port 80 ka use kar raha hai, toh iska socket address hoga:
[Link]:80
4. Socket Types:
Stream Sockets (TCP): Yeh reliable connection-oriented communication provide karte
hain. Jaise ki web browsing (HTTP).
Datagram Sockets (UDP): Yeh connectionless communication provide karte hain. Yeh
fast hote hain lekin reliable nahi hote. Jaise ki video streaming.
*** Conclusion:--
Sockets communication ka ek important part hain, jo network par applications ke
beech data exchange karne mein madad karte hain. Socket address IP address aur port
number ka combination hota hai, jo ensure karta hai ki data sahi destination par
pahunche.
Data Link Layer: Jab packet Data Link Layer tak pahunchega, tab yeh usse frame mein
convert karegi aur physical address (MAC address) ke saath transmit karegi.
*** Conclusion
Data Link Layer process-to-process communication ka part nahi hai, lekin yeh data
transmission mein crucial role play karti hai. Yeh framing, error detection, flow
control, aur access control jaisi functionalities provide karti hai, jisse ensure
hota hai ki data sahi tarike se ek device se doosre device tak pahunche.
** Example:
Jab aapka web browser (HTTP) aur email client (SMTP) ek hi network connection ka
istemal karte hain, toh data link
layer dono applications ke data packets ko alag-alag frames mein wrap karke bhejti
hai. Yeh upward multiplexing hai.
**Advantages:
Multiple applications ko ek saath run karne ki flexibility.
Bandwidth ka efficient utilization.
*** Example:
Agar ek device Ethernet aur Wi-Fi dono interfaces ka istemal kar raha hai, toh data
link layer in dono
interfaces ke signals ko manage karegi. Yeh downward multiplexing hai.
** Advantages:
Different physical media ke beech seamless communication.
Flexibility in choosing the best transmission medium.
==== Downward Multiplexing: Data link layer physical layer se signals receive karti
hai aur unhe process karke upper layers ko forward
karti hai. Yeh ensure karta hai ki data sahi tarike se different media
par transmit ho sake.
*** Conclusion
Upward aur downward multiplexing data link layer ki important functionalities hain
jo multiple applications aur physical media
ke beech efficient communication ensure karte hain. In techniques ka istemal karne
se network resources ka achha utilization
hota hai aur performance improve hoti hai.
*** Features:
Connectionless: UDP kisi bhi connection ko establish nahi karta; data directly bheja
jata hai.
No Acknowledgment: Sender ko yeh nahi pata hota ki kya receiver ne data receive kiya
ya nahi.
Low Overhead: Isme header size chhota hota hai, isliye data jaldi transmit hota hai.
** Use Cases:
Video streaming
Online gaming
Voice over IP (VoIP)
*** Features:
Data Unit: TPDU actual data packets hain jo network par transfer hote hain.
Protocol Specific: TPDU ka structure protocol ke hisab se alag ho sakta hai (UDP ya
TCP ke liye).
Importance: TPDU ko samajhna zaroori hai kyunki yeh define karta hai ki data kaise
format hota hai aur kis tarike
se transport layer se data link layer tak pahuncha jata hai.
*** Example: Jab aap ek online game khel rahe hote hain, toh game data UDP ke
through transmit hota hai aur yeh data
TPDU ke form mein hota hai. Yeh ensure karta hai ki data jaldi se transfer ho sake,
chahe kuch packets miss bhi ho jayein.
**** Conclusion:--
UDP ek fast aur connectionless protocol hai jo data transmission ke liye use hota
hai, jabki TPDU data
packets ka representation hai jo transport layer protocols ke liye use hota hai. In
dono ka samajhna
important hai, kyunki yeh network communication ke fundamental aspects hain.
Application Layer -
1. Application Layer Kya Hai?
Definition: Application layer OSI (Open Systems Interconnection) model ka topmost
layer hai. Yeh layer
user ke applications aur network services ke beech interaction ko facilitate karti
hai.
* Role: Application layer user ko network services provide karne mein madad karti
hai, jaise email bhejna,
web browsing, file transfer, etc. Is layer par hi end-user software run hota hai.
** Conclusion:----
Application layer network communication ka important part hai, jo users ko
applications ke madhyam se network
resources tak pahunchne ki suvidha deti hai. Is layer ka samajhna zaroori hai
kyunki yeh directly user ke experience ko affect karti hai.
***Features:
Stateless Protocol: Har request independent hoti hai, yani previous requests ka koi
context nahi hota.
Request-Response Model: Client (browser) server se data maangta hai, aur server uska
response bhejta hai.
Use Case: Web browsing ke liye, jaise jab aap kisi website ko visit karte hain, toh
aap HTTP ka istemal karte hain.
***Features:
Connection-Oriented: FTP pehle ek connection establish karta hai, phir files
transfer karta hai.
Supports Authentication: Aapko username aur password ki zaroorat hoti hai files
access karne ke liye.
Use Case: Websites ke files ko upload/download karne ke liye, jaise jab aap apni
website ke liye images ya documents server par bhejte hain.
3. Telnet
Definition: Telnet ek protocol hai jo remote computers ko access karne ke liye use
hota hai. Isse aap kisi doosre
computer par command line interface ke through directly commands bhej sakte hain.
****Features:
Text-Based Interface: Telnet command-line interface par kaam karta hai, jahan aap
commands type karte hain.
No Encryption: Telnet secure nahi hai, kyunki data plain text mein transfer hota
hai, isliye sensitive information share nahi karni chahiye.
Use Case: Network devices ya servers ko remotely manage karne ke liye, jaise kisi
server par configuration changes karna.
****Conclusion:---
HTTP web browsing ke liye popular hai, FTP files transfer karne ke liye use hota
hai, aur Telnet remote
access ke liye use hota hai. In protocols ka samajhna zaroori hai, kyunki yeh
application layer ki key functionalities ko define karte hain.
Is tarah se aap Application Layer ke HTTP, FTP, aur Telnet ko asani se samajh sakte
hain aur competitive exams ke liye tayaar ho sakte hain!
**Features:
Push Protocol: Iska matlab hai ki yeh emails ko sender se receiver ke mail server
tak push karta hai.
Text-Based: SMTP commands aur responses text format mein hoti hain.
***Working:
Jab aap email bhejte hain, toh aapka email client SMTP ke through email ko aapke
mail server par bhejta hai.
Phir aapka mail server is email ko recipient ke mail server tak forward karta hai.
Use Case: Emails bhejne ke liye, jaise jab aap Gmail ya Outlook se kisi ko email
karte hain.
** Features:
Network Monitoring: Isse network performance ko track kiya ja sakta hai, jaise
bandwidth usage aur device health.
Alerts: Agar koi device fail hota hai ya issue hota hai, toh SNMP alerts generate
karta hai.
*** Components:
Manager: Yeh system hai jo network devices se data collect karta hai.
Agent: Yeh network device par run hota hai aur manager ko data provide karta hai.
Use Case: Network administration ke liye, jaise agar aapko apne network ki health
check karni hai ya kisi problem ko identify karna hai.
** Conclusion
SMTP emails ko bhejne ke liye use hota hai, jabki SNMP network devices ko monitor
aur manage karne ke liye.
In protocols ka samajhna zaroori hai kyunki yeh application layer ki key
functionalities ko define karte hain.
Is tarah se aap Application Layer ke SMTP aur SNMP ko asani se samajh sakte hain aur
competitive exams ke liye tayaar ho sakte hain!
2. Network Topologies
Definition: Network ka layout ya structure define karta hai.
** Types:
Star: Central hub ke through sab devices connected hote hain.
Bus: Ek single central cable par sab devices connected hote hain.
Ring: Devices ek circular path mein connected hote hain.
Mesh: Har device doosre devices se directly connected hota hai.
** Types:
LAN (Local Area Network): Chhote area mein, jaise ghar ya office.
WAN (Wide Area Network): Badi geographical area ko cover karta hai, jaise internet.
MAN (Metropolitan Area Network): Ek city ya campus tak limited hota hai.
5. Transmission Models
**** Models:
!!! OSI Model: 7 layers (Application, Presentation, Session, Transport, Network,
Data Link, Physical).
!!! TCP/IP Model: 4 layers (Application, Transport, Internet, Network Interface).
6. Transmission Channel
Definition: Medium jisse data transfer hota hai, jaise copper wires, fiber optics,
ya wireless signals.
9. Data Compression
Definition: Data ka size chhota karna taaki transmission fast ho. Lossy (quality
loss) aur Lossless (quality maintained) types hote hain.