Internet Fundamentals क्या है?#
Internet Fundamentals का मतलब है Internet के basic concepts और उसके काम करने के तरीके को समझना।
अगर आप web developer, software developer या IT professional बनना चाहते हैं, तो सिर्फ HTML, CSS और JavaScript जानना काफी नहीं है।
आपको यह भी समझना चाहिए कि:
- Browser website तक कैसे पहुँचता है?
- Domain name क्या होता है?
- IP Address क्या है?
- DNS क्या करता है?
- HTTP और HTTPS क्या हैं?
- Client और Server क्या होते हैं?
- Data Internet पर कैसे travel करता है?
- Port क्या होता है?
- Request और Response क्या होते हैं?
Simple words में:
Internet Fundamentals आपको यह समझने में मदद करता है कि जब आप browser में कोई website खोलते हैं, तो background में क्या होता है।
Internet क्या है?#
Internet दुनिया भर में connected computers और networks का एक विशाल network है।
Simple example:
जब आप browser में:
https://example.comopen करते हैं, तो आपका device Internet के through दूसरे computer/server से communicate करता है।
Basic flow:
Your Device
↓
Internet
↓
Remote Server
↓
Website / DataInternet की मदद से हम:
- Websites access करते हैं
- Emails भेजते हैं
- Files transfer करते हैं
- Videos stream करते हैं
- Online applications use करते हैं
- APIs से data लेते हैं
- Cloud services use करते हैं
Internet और Web में क्या Difference है?#
Internet और World Wide Web (Web) same चीजें नहीं हैं।
Internet
Internet interconnected networks का infrastructure है।
Web
Web Internet के ऊपर चलने वाली एक service है जिसमें websites और web applications शामिल हैं।
Simple analogy:
Internet = Roads का पूरा network
Web = उन roads पर चलने वाली एक serviceInternet पर web के अलावा email, file transfer और अन्य network services भी चल सकती हैं।
Internet कैसे काम करता है?#
जब आप browser में website खोलते हैं, तो simplified flow कुछ ऐसा होता है:
Browser
↓
Domain Name
↓
DNS
↓
IP Address
↓
Server
↓
HTTP/HTTPS Request
↓
Server Response
↓
Browser
↓
Web Pageइसे step-by-step समझते हैं।
Step 1: आप URL Enter करते हैं#
मान लीजिए आपने browser में लिखा:
https://example.comयह एक URL (Uniform Resource Locator) है।
URL browser को बताता है कि आपको किस resource तक पहुँचना है और किस protocol का use करना है।
Step 2: Browser Domain को Identify करता है#
URL में:
example.comdomain name है।
Humans के लिए domain name याद रखना आसान है।
लेकिन network communication में server को identify करने के लिए IP Address की जरूरत होती है।
यहीं DNS काम आता है।
Step 3: DNS Domain को IP में Resolve करता है#
DNS का पूरा नाम है:
Domain Name System
DNS domain name को corresponding IP address से resolve करने में मदद करता है।
Example:
example.com
↓
DNS
↓
IP Addressइसका फायदा यह है कि हमें numeric IP address याद रखने की जरूरत नहीं होती।
Step 4: Browser Server से Connect करता है#
IP address मिलने के बाद browser उस destination server तक connection establish करने की कोशिश करता है।
इसके बाद appropriate network protocols और port के through communication होता है।
Common web ports:
HTTP → 80
HTTPS → 443Step 5: Browser HTTP/HTTPS Request भेजता है#
Browser server को request भेज सकता है।
Example:
GET / HTTP/1.1
Host: example.comRequest में यह information हो सकती है:
- Method
- URL/path
- Headers
- Cookies
- Body
Request का exact structure HTTP version और request type पर depend करता है।
Step 6: Server Response भेजता है#
Server request process करने के बाद response भेजता है।
Example:
HTTP/1.1 200 OK
Content-Type: text/htmlResponse में हो सकता है:
- Status code
- Headers
- Body
- HTML
- JSON
- Images
- Other resources
Step 7: Browser Page Render करता है#
अगर response में HTML है, तो browser उसे process करता है।
फिर website के लिए:
HTML
CSS
JavaScript
Images
Fonts
APIsजैसे resources load हो सकते हैं।
अंत में browser user को webpage दिखाता है।
Client क्या है?#
Client वह device या software होता है जो किसी service/resource की request करता है।
Web में आपका browser एक client की तरह काम करता है।
Examples:
Chrome
Firefox
Safari
Edge
Mobile AppSimple:
Client → RequestServer क्या है?#
Server वह system है जो requests receive करके services या resources provide करता है।
Example:
Browser
↓ Request
Server
↓ Response
BrowserServer पर हो सकता है:
- Website
- API
- Database connection
- Images
- Files
- Application logic
Client-Server Model#
Internet applications को समझने के लिए Client-Server model बहुत important है।
Request
Client -----------> Server
<-----------
ResponseExample:
जब आप shopping website खोलते हैं:
Browser
↓
Request
↓
Web Server
↓
Application
↓
Database
↓
Response
↓
BrowserIP Address क्या है?#
IP Address network पर किसी device या interface को identify/address करने के लिए इस्तेमाल होने वाला address है।
IPv4 का example:
192.168.1.10IPv4 address में चार numeric parts होते हैं।
Example:
192 . 168 . 1 . 10IPv6 का example:
2001:db8::1IPv6 बहुत बड़े address space के लिए design किया गया है।
Public और Private IP Address#
Public IP
Internet पर externally reachable addressing के लिए use किया जा सकता है।
Example:
203.0.113.10Private IP
Local/private network में devices के लिए use किया जाता है।
Common private IPv4 ranges में:
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16शामिल हैं।
Home Wi-Fi में आपका laptop और phone private IP addresses use कर सकते हैं।
IPv4 और IPv6#
| IPv4 | IPv6 |
|---|---|
| 32-bit address | 128-bit address |
Example: 192.168.1.10 | Example: 2001:db8::1 |
| Limited address space | बहुत बड़ा address space |
| अभी भी widely used | Modern networks में increasingly used |
MAC Address क्या है?#
MAC Address network interface से associated hardware/link-layer address होता है।
Example:
00:1A:2B:3C:4D:5EIP और MAC अलग concepts हैं।
Simple difference:
IP Address
→ Network-level addressing
MAC Address
→ Local network/link-layer addressingDomain Name क्या है?#
Domain name website का human-readable name होता है।
Example:
example.comInstead of remembering:
numeric IP addressहम:
example.comजैसा domain use करते हैं।
Domain के Parts#
Example:
www.example.comयहाँ:
www → subdomain/host name
example → domain name
.com → top-level domain (TLD)एक और example:
blog.example.comयहाँ:
blog.example.comएक hostname/domain structure का example है।
URL क्या है?#
URL का पूरा नाम है:
Uniform Resource Locator
Example:
https://example.com/products?id=10इसके major parts:
https://
example.com
/products
?id=10Scheme
https://Protocol/scheme बताता है।
Host
example.comDestination host/domain है।
Path
/productsRequested resource/path को identify करता है।
Query String
?id=10Additional parameters provide कर सकती है।
URL और URI#
आपको development में URI term भी मिलेगी।
URI resource को identify करने के लिए broader concept है।
URL URI का एक प्रकार है जो resource का location/access mechanism भी बताता है।
Practical web development में URL term बहुत commonly use होती है।
DNS क्या है?#
DNS (Domain Name System) domain names को IP addresses से resolve करने में मदद करता है।
Example:
google.com
↓
DNS
↓
IP AddressDNS को याद रखने का simple तरीका:
DNS = Internet का phonebook जैसा concept
लेकिन यह analogy सिर्फ basic understanding के लिए है; actual DNS system इससे काफी अधिक complex है।
DNS Resolution का Basic Flow#
जब browser को domain का IP चाहिए:
Browser
↓
DNS Resolver
↓
DNS Servers
↓
IP Address
↓
BrowserDNS caching की वजह से हर request में पूरा lookup process repeat होना जरूरी नहीं है।
DNS के Common Record Types#
A Record
Domain को IPv4 address से map करता है।
example.com → IPv4AAAA Record
Domain को IPv6 address से map करता है।
example.com → IPv6CNAME
एक hostname को दूसरे hostname की ओर point करने के लिए use होता है।
Example:
www.example.com
↓
example.comMX Record
Email delivery के लिए mail servers specify करता है।
TXT Record
Text-based DNS information के लिए use होता है, जैसे domain verification और कुछ email/security configurations।
HTTP क्या है?#
HTTP का पूरा नाम है:
Hypertext Transfer Protocol
यह web पर client और server के बीच communication के लिए इस्तेमाल होने वाला application-layer protocol है।
Basic flow:
Client
↓
HTTP Request
↓
Server
↓
HTTP Response
↓
ClientHTTPS क्या है?#
HTTPS = HTTP Secure
HTTPS में HTTP communication को TLS के through secure किया जाता है।
इससे communication में:
- Encryption
- Server authentication
- Data integrity
जैसी security properties मिलती हैं।
Website में अक्सर:
https://देखने को मिलता है।
HTTP और HTTPS में Difference#
| HTTP | HTTPS |
|---|---|
| HTTP protocol | HTTP over TLS |
| Communication secure नहीं होती by default | TLS security प्रदान करता है |
| Common port: 80 | Common port: 443 |
| Sensitive data के लिए suitable नहीं | Secure web communication के लिए designed |
Important:
HTTPS का मतलब यह नहीं कि website automatically trustworthy है। यह connection को secure करने में मदद करता है, लेकिन website की content/trustworthiness अलग concern है।
HTTP Methods#
HTTP में different methods अलग types के operations express करते हैं।
GET
Resource retrieve करने के लिए:
GET /productsPOST
Data submit/create जैसे operations के लिए:
POST /usersPUT
Resource को replace/update करने के लिए commonly use होता है।
PUT /users/10PATCH
Resource के partial update के लिए:
PATCH /users/10DELETE
Resource delete करने के लिए:
DELETE /users/10HTTP Status Codes#
Server response में status code आता है।
1xx — Informational
Request processing से related informational responses।
2xx — Success
Example:
200 OKमतलब request successfully process हुई।
201 Createdमतलब resource create हुआ।
3xx — Redirection
Example:
301
302
3044xx — Client-side Error
Example:
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found5xx — Server-side Error
Example:
500 Internal Server Error
502 Bad Gateway
503 Service UnavailableQuick memory:
2xx → Success
3xx → Redirect
4xx → Client-side request problem
5xx → Server-side problemPort क्या है?#
एक device पर multiple network services चल सकती हैं।
Port number network communication को specific service/application endpoint तक direct करने में मदद करता है।
Common examples:
HTTP → 80
HTTPS → 443
SSH → 22
DNS → 53Example:
IP Address + Port
192.168.1.10:8080यह किसी network service endpoint को represent कर सकता है।
Localhost क्या है?#
localhost current computer को refer करता है।
Common IPv4 loopback:
127.0.0.1Example:
http://localhost:3000यह usually आपके अपने computer पर चल रहे application को access करने के लिए use होता है।
localhost और 127.0.0.1#
localhost
↓
127.0.0.1यह common local loopback setup है।
लेकिन exact hostname/address behavior environment configuration पर depend कर सकता है।
localhost:3000 में 3000 क्या है?#
Example:
http://localhost:3000यहाँ:
localhost → Current machine
3000 → Port
Development frameworks में 3000, 5173, 8000 जैसे ports commonly देखे जा सकते हैं।
Example:
React/Vite App
http://localhost:5173TCP क्या है?#
TCP (Transmission Control Protocol) transport layer protocol है जो reliable, ordered data delivery provide करने के लिए designed है।
Simple idea:
Application
↓
TCP
↓
IP
↓
NetworkTCP में:
- Connection-oriented communication
- Reliable delivery
- Ordered data
- Retransmission mechanisms
जैसी properties होती हैं।
UDP क्या है?#
UDP (User Datagram Protocol) connectionless transport protocol है।
यह TCP की तरह delivery reliability और ordering guarantee नहीं देता।
Simple comparison:
| TCP | UDP |
|---|---|
| Connection-oriented | Connectionless |
| Reliable delivery mechanisms | No delivery guarantee |
| Ordered data | Ordering guarantee नहीं |
| More protocol overhead | Lower overhead |
Different applications अपनी requirements के अनुसार TCP या UDP जैसे transport protocols use कर सकती हैं।
TCP/IP क्या है?#
TCP/IP Internet communication में use होने वाले protocols का family/suite है।
Simplified model:
Application
↓
Transport
↓
Internet
↓
LinkExamples:
Application → HTTP, DNS
Transport → TCP, UDP
Internet → IP
Link → Ethernet, Wi-FiReal networking stack इससे अधिक detailed हो सकता है, लेकिन learning के लिए यह model useful है।
Packet क्या है?#
Internet पर data generally छोटे network units में transmit होता है जिन्हें broadly packets कहा जाता है।
Simple example:
Large Data
↓
Packets
↓ ↓ ↓ ↓
Network
↓ ↓ ↓ ↓
Destination
↓
Reassembled Dataहर packet के साथ network-related information होती है ताकि वह destination तक पहुँच सके।
Router क्या है?#
Router अलग networks के बीच packets को forward करने वाला network device है।
Home network में:
Laptop
↓
Wi-Fi Router
↓
InternetRouter traffic को appropriate network path की ओर forward करने में मदद करता है।
ISP क्या है?#
ISP = Internet Service Provider
यह वह organization/company होती है जो customers को Internet connectivity provide करती है।
Example flow:
Your Device
↓
Home Router
↓
ISP
↓
Internet
↓
Website ServerBandwidth और Speed#
Bandwidth
Network connection की data carrying capacity को describe करने के लिए bandwidth term use होती है।
Example:
100 MbpsLatency
Data को destination तक जाने और response आने में लगने वाले delay को latency के रूप में देखा जा सकता है।
Simple:
Bandwidth → कितना data
Latency → कितना delayHigh bandwidth का मतलब automatically low latency नहीं होता।
Upload और Download#
Download
Internet से आपके device की तरफ data आना:
Internet
↓
Your DeviceExample:
- Video देखना
- File download करना
Upload
आपके device से Internet की तरफ data जाना:
Your Device
↓
InternetExample:
- Photo upload करना
- Video upload करना
- File server पर भेजना
API क्या है?#
API (Application Programming Interface) अलग software components को communicate करने का defined interface provide करता है।
Web applications में API अक्सर HTTP requests के through data exchange करती हैं।
Example:
Frontend
↓
GET /api/products
↓
Backend
↓
Database
↓
JSON Response
↓
FrontendExample response:
{
"id": 10,
"name": "Laptop",
"price": 50000
}JSON क्या है?#
JSON (JavaScript Object Notation) structured data exchange का commonly used format है।
Example:
{
"name": "Rahul",
"age": 25,
"city": "Chandigarh"
}Web APIs में JSON बहुत commonly दिखाई देता है।
Browser क्या करता है?#
जब आप website open करते हैं, browser सिर्फ HTML display नहीं करता।
Browser:
- DNS/network communication में participate करता है
- HTTP/HTTPS requests करता है
- HTML parse करता है
- CSS apply करता है
- JavaScript execute करता है
- Images/fonts/resources load करता है
- Page render करता है
Basic flow:
URL
↓
DNS
↓
Connection
↓
HTTP/HTTPS
↓
Response
↓
HTML/CSS/JS
↓
RenderWeb Server और Application Server#
Simple architecture:
Browser
↓
Web Server
↓
Application
↓
DatabaseExample:
Browser
↓
Nginx
↓
PHP / Node.js / Symfony / Laravel
↓
MySQLReal architecture project के हिसाब से काफी different हो सकती है।
Static और Dynamic Website#
Static Website
Content mostly predefined files से serve होता है।
Example:
HTML
CSS
JavaScript
ImagesDynamic Website
Content request/user/data के according dynamically generate हो सकता है।
Example:
Browser
↓
Backend
↓
Database
↓
Dynamic ResponseWordPress, e-commerce applications और many modern web applications dynamic behavior use करती हैं।
Browser DevTools से Internet Concepts कैसे देखें?#
Browser में DevTools खोलें:
Right Click → Inspectफिर:
Networktab खोलें।
Website reload करें।
आप देख सकते हैं:
- Requests
- Response status
- Request method
- URL
- Headers
- Response
- Timing
- Resources
Example:
GET /api/products
Status: 200
Type: fetchयह Internet Fundamentals को practically समझने का बहुत अच्छा तरीका है।
Practical Example: Website Open होने पर क्या होता है?#
मान लीजिए आप खोलते हैं:
https://theeasymaster.com/Simplified process:
1. Browser URL पढ़ता है
↓
2. Domain identify करता है
↓
3. DNS resolution
↓
4. Server का network address मिलता है
↓
5. HTTPS connection establish होता है
↓
6. HTTP request भेजी जाती है
↓
7. Server response देता है
↓
8. Browser HTML receive करता है
↓
9. CSS / JS / Images load होते हैं
↓
10. Browser page render करता हैReal-world network stack इससे ज्यादा complex है, लेकिन fundamentals समझने के लिए यह mental model useful है।
Common Internet Problems#
1. Website नहीं खुल रही
Possible reasons:
DNS issue
Network issue
Server down
Wrong URL
Firewall
TLS/HTTPS problem2. 404 Not Found
इसका मतलब server को requested resource नहीं मिला।
Example:
https://example.com/abcअगर /abc resource available नहीं है तो 404 मिल सकता है।
3. 500 Internal Server Error
Server-side application में error होने पर 500 response आ सकता है।
यह generally client के browser की basic problem नहीं होती; actual cause server/application logs में देखना पड़ सकता है।
4. DNS Problem
अगर domain resolve नहीं हो रहा:
Domain
↓
DNS
X
IP नहीं मिलातो website तक पहुँचना fail हो सकता है।
5. Connection Refused
Example:
localhost:3000अगर उस port पर application listening नहीं कर रही, तो connection refused जैसी error आ सकती है।
Internet Security Basics#
Internet use करते समय कुछ basic security concepts समझना जरूरी है।
HTTPS Use करें
Sensitive communication के लिए HTTPS important है।
Passwords Secure रखें
Passwords को plain text में store या share नहीं करना चाहिए।
API Keys Public न करें
Code repository में:
API_KEY=...जैसी sensitive values accidentally commit न करें।
Phishing से सावधान रहें
हर website सिर्फ इसलिए trustworthy नहीं होती क्योंकि URL में https:// है।
Domain carefully check करें।
Internet Fundamentals Quick Reference#
| Concept | Simple Meaning |
|---|---|
| Internet | Interconnected networks का global system |
| Web | Internet पर चलने वाली web service |
| Client | Request करने वाला software/device |
| Server | Request process करके service/resource देने वाला system |
| IP Address | Network addressing |
| Domain | Human-readable website name |
| DNS | Domain को IP से resolve करने की system |
| URL | Resource locator |
| HTTP | Web communication protocol |
| HTTPS | HTTP secured with TLS |
| Port | Network service endpoint पहचानने में मदद करता है |
| TCP | Reliable transport protocol |
| UDP | Connectionless transport protocol |
| Router | Networks के बीच packets forward करता है |
| ISP | Internet connectivity provider |
| API | Software communication interface |
| JSON | Structured data format |
| localhost | Current machine का local hostname |
Important Ports Quick Reference#
| Service | Common Port |
|---|---|
| HTTP | 80 |
| HTTPS | 443 |
| SSH | 22 |
| DNS | 53 |
| Development apps | Project-dependent |
याद रखें:
HTTP → 80
HTTPS → 443
SSH → 22
DNS → 53Ports protocol/service के commonly used defaults हैं; applications अलग ports पर भी configure की जा सकती हैं।
Internet को एक Simple Mental Model से समझें#
पूरे topic को इस तरह याद रखें:
Domain
↓
DNS
↓
IP Address
↓
Server
↓
Port
↓
HTTP / HTTPS
↓
Request
↓
Response
↓
Browser
↓
Web Pageऔर network layers का basic idea:
Application
HTTP / DNS
↓
Transport
TCP / UDP
↓
Internet
IP
↓
Link
Wi-Fi / EthernetKnowledge Check#
Q1. Internet क्या है?
A. केवल websites का collection
B. Interconnected networks का global system
C. केवल browser
D. केवल Wi-Fi
Answer: B
Q2. DNS का main purpose क्या है?
A. Website design करना
B. Domain name को IP address से resolve करने में मदद करना
C. Password generate करना
D. Database create करना
Answer: B
Q3. HTTPS में security किस technology के through provide होती है?
A. HTML
B. CSS
C. TLS
D. DNS
Answer: C
Q4. HTTP का commonly used port कौन सा है?
A. 22
B. 53
C. 80
D. 443
Answer: C
Q5. HTTPS का commonly used port कौन सा है?
A. 21
B. 22
C. 80
D. 443
Answer: D
Q6. localhost:3000 में 3000 क्या represent करता है?
A. IP address
B. Domain
C. Port
D. Protocol
Answer: C
Q7. Browser और server के बीच basic communication किस model को follow करता है?
A. Client-Server
B. Peer-only
C. File-System
D. Database-only
Answer: A
Practical Exercises#
Exercise 1 — अपना Public IP देखें
अपने browser में search करें:
What is my IPअपने public IP concept को समझें।
Exercise 2 — DNS को Practice करें
Terminal में:
nslookup example.comया:
dig example.comअगर dig आपके system पर available है।
Output में domain के DNS-related information को observe करें।
Exercise 3 — HTTP Request देखें
Browser में किसी website को खोलें।
फिर:
Inspect → Networkकरें।
Page reload करें और देखें:
Request URL
Request Method
Status Code
Response
HeadersExercise 4 — Localhost पर App चलाएं
किसी development project को run करके देखें:
http://localhost:3000फिर identify करें:
localhost → Host
3000 → Port
http → Schemeअगर आपका framework दूसरा port use करता है, तो वही port देखें।
Exercise 5 — URL को Break करें
इस URL को parts में divide करें:
https://example.com/products?id=10Identify करें:
Scheme
Host
Path
Query StringSummary#
Internet Fundamentals को आसान तरीके से ऐसे याद रखें:
Browser किसी website तक पहुँचने के लिए network के कई components और protocols का use करता है।
Basic journey:
URL
↓
DNS
↓
IP
↓
Server
↓
HTTP/HTTPS
↓
Request
↓
Response
↓
Browserआपको इन concepts को अच्छी तरह समझना चाहिए:
Internet
Web
Client
Server
IP Address
Domain
DNS
URL
HTTP
HTTPS
TCP
UDP
Ports
Router
ISP
API
JSON
localhostइन fundamentals की अच्छी understanding आगे DNS, HTTP/HTTPS, Browser DevTools और Web Development जैसे topics को समझना आसान बनाती है।