IWT Unit 1
IWT Unit 1
UNIT-II HTML CSS AND SCRIPTING: HTML - Introduction, Sgml, Dtd(Document Type
Definition, Basic Html Elements, Tags and usages, HTML Standards , Issues in HTML Dhtml:
Introduction Cascading Style Sheets: Syntax ,Class Selector, Id Selector Dom (Document
ObjectModel) &Dso (Data Source Object) Approaches To Dynamic Pages: Cgi, Java Applets, Plug
Ins, Active X, Java Script –Java Script Object Model, Variables-Constant – Expressions,
ConditionsRelational Operators- Data Types – FlowControl – Functions & Objects-events and event
handlers – Data type Conversion & Equality – Accessing HTML form elements
UNIT-III XML: What is XML – Basic Standards, Schema Standards, Linking & Presentation
Standards, Standards that build on XML, Generating XML data, Writing a simple XML File,
Creating a Document type definition, Documents &Data ,DefiningAttributes & Entities in the DTD
,Defining Parameter Entities & conditional Sections, Resolving a naming conflict,
UsingNamespaces, Designing an XML data structure, Normalizing Data, Normalizing DTDS
UNIT-IV INTERNET SECURITY & FIREWALLS: Security Threats From Mobile Codes, Types Of
Viruses, Client Server Security Threats, Data & Message Security, Various electronic payment
systems, Introduction to EDI, Challenges– Response System, Encrypted Documents And
Emails,Firewalls: Hardened Firewall Hosts, Ip- Packet Screening, Proxy Application Gateways, Aaa
(Authentication, AuthorizationAnd Accounting).
UNIT-V WEBSITE PLANNING & HOSTING: Introduction, Web Page Lay-Outing, Where To
Host Site, Maintenance Of Site, Registration Of Site On Search Engines And Indexes, Introduction
To File Transfer Protocol, Public Domain Software, Types Of Ftp Servers (Including
Anonymous),Ftp Clients Common Command. Telnet Protocol, Server Domain, Telnet Client,
Terminal Emulation. Usenet And Internet Relay Chat
Introduction of Internet:
Internet ek global network hai jo computers aur devices ko connect karta hai, jisse log duniya ke
kisi bhi kone se data exchange kar sakte hain. Internet ka full form hai Interconnected Network,
aur yeh TCP/IP protocol ka use karta hai.
Internet ka shuruaat ek military research project se hui thi, lekin aaj yeh duniya ke har aspect ka ek
important part ban chuka hai, jaise communication, education, business, aur entertainment.
Evolution of Internet:
1. ARPANET (1960s–1970s):
Shuruaat: Internet ka janm ARPANET ke roop me hua, jo ki USA ke Defense Department
ke project ka hissa tha.
Purpose: Military communication ke liye distributed network create karna.
Pehla Milestone: 1969 me ARPANET ne first successful message transmit kiya.
2. Development of TCP/IP (1970s):
Transmission Control Protocol/Internet Protocol (TCP/IP) develop kiya gaya jo alag-alag
networks ko ek common protocol ke zariye connect karta hai.
1983 me ARPANET ko TCP/IP protocol par migrate kiya gaya, jo modern internet ki
shuruaat thi.
3. Emergence of World Wide Web (1990s):
Tim Berners-Lee ne 1989 me World Wide Web (WWW) develop kiya, jo internet ko
globally accessible banata hai.
WWW ke sath URLs, HTML, aur web browsers ka bhi vikas hua.
Pehla browser "Mosaic" (1993) ne web ko user-friendly banaya.
4. Commercialization of Internet (1990s):
Internet ko research aur academic use se hata kar public aur business use ke liye open kiya
gaya.
1995 me Amazon aur eBay jaise platforms ne e-commerce ki shuruaat ki.
5. Broadband and Wireless Era (2000s):
Broadband technology ke aane se internet ki speed aur accessibility badhi.
Wireless technologies (Wi-Fi, 3G, 4G) ke karan internet portable aur mobile ban gaya.
6. Social Media and Web 2.0 (2000s–2010s):
Web 2.0 ki wajah se interactive websites aur user-generated content popular hua.
Social media platforms jaise Facebook, Twitter, aur YouTube ne global communication ko
badhava diya.
7. Modern Internet (2010s–Present):
5G Technology: Faster connectivity aur real-time communication.
IoT (Internet of Things): Devices (smartphones, home appliances) internet se connected ho
gaye.
Cloud Computing: Data aur applications ko remotely access karna possible hua.
AI aur Big Data: Internet ke zariye real-time analytics aur automation ka vikas.
Conclusion:
Internet ne 50+ saalon ke andar ek military tool se lekar ek global necessity ka roop le liya hai. Yeh
aaj ke zamane ka backbone hai, jo education, business, healthcare, aur communication ke har aspect
ko transform kar raha hai.
Key Milestones in Evolution:
1. ARPANET → TCP/IP → WWW
2. Broadband & Wireless → Social Media → IoT & AI
Internet ka vikas aane wale samay me aur zyada advanced technologies ko support karega, jaise 6G
networks aur metaverse.
1. Communication (Sanchar):
Internet ka sabse bada application communication hai. Log apne dosto, parivaar aur colleagues ke
saath asani se connect ho sakte hain.
Examples:
o Email (Gmail, Yahoo Mail)
o Instant Messaging (WhatsApp, Telegram)
o Video Calls (Zoom, Google Meet, Skype)
4. Entertainment (Manoranjan):
Movies, music aur games ke liye bhi internet ka wide use hota hai. OTT platforms aur online
gaming ka craze badh raha hai.
Examples:
o Streaming (Netflix, YouTube, Spotify)
o Online Gaming (PUBG, Call of Duty, Ludo King)
8. Healthcare (Telemedicine):
Doctors aur patients ke beech consultation ab online ho raha hai. Health monitoring apps aur
websites bhi popular hain.
Examples:
o Practo, Apollo 24/7
o Health Tracking Apps (Fitbit, Google Fit)
Conclusion:
Internet ka application har field me hai, jaise communication, education, entertainment, aur finance.
Yeh technology duniya ko chhoti banake hum sab ko ek doosre se jodne ka kaam kar raha hai.
Internet Protocol (IP) Kya Hai?
Internet Protocol (IP) ek communication protocol hai jo data packets ko ek device se doosri device
tak internet ke through bhejne me madad karta hai. Yeh ensure karta hai ki data sahi destination par
pahunch jaye. IP ko network layer protocol bhi kaha jata hai, jo OSI model ke 3rd layer par kaam
karta hai.
Real-Life Example:
1. Website Access: Jab aap www.google.com open karte ho, aapka browser DNS server se
Google ka IP address (jaise 172.217.10.46) fetch karta hai. Uske baad aapka device Google
ke server se data packets exchange karta hai.
2. Video Call: Jab aap video call karte ho, aapka aur samne wale ka device apne IP addresses
ke through ek doosre se connect hote hain.
Working Diagram:
User Device (192.168.1.2) ---> Router ---> Internet ---> Destination Server (172.217.10.46)
1. User device ka IP: 192.168.1.2
2. Server ka IP: 172.217.10.46
3. Router packets ko internet ke through sahi destination tak bhejta hai.
Advantages of IP:
1. Universal Communication: Har device ko ek unique IP milta hai.
2. Routing Efficiency: Routers IP addresses ke basis par packets ko best route ke through
bhejte hain.
3. Scalability: IPv6 ki wajah se unlimited devices internet se connect ho sakte hain.
Summary:
Internet Protocol ek backbone hai jo ensure karta hai ki internet par data safely aur efficiently
exchange ho sake. Iska use har internet-based service, jaise web browsing, email, aur streaming ke
liye hota hai.
Real-Life Example:
1. Website Access: Jab aap www.google.com open karte ho, aapka browser DNS server se
Google ka IP address (jaise 172.217.10.46) fetch karta hai. Uske baad aapka device Google
ke server se data packets exchange karta hai.
2. Video Call: Jab aap video call karte ho, aapka aur samne wale ka device apne IP addresses
ke through ek doosre se connect hote hain.
Working Diagram:
User Device (192.168.1.2) ---> Router ---> Internet ---> Destination Server (172.217.10.46)
1. User device ka IP: 192.168.1.2
2. Server ka IP: 172.217.10.46
3. Router packets ko internet ke through sahi destination tak bhejta hai.
Advantages of IP:
1. Universal Communication: Har device ko ek unique IP milta hai.
2. Routing Efficiency: Routers IP addresses ke basis par packets ko best route ke through
bhejte hain.
3. Scalability: IPv6 ki wajah se unlimited devices internet se connect ho sakte hain.
Summary:
Internet Protocol ek backbone hai jo ensure karta hai ki internet par data safely aur efficiently
exchange ho sake. Iska use har internet-based service, jaise web browsing, email, aur streaming ke
liye hota hai.
Features of UDP:
1. Connectionless Protocol: Data packets (datagrams) ko directly send karta hai bina pehle
connection establish kiye.
2. Faster Transmission: Handshake nahi hota, isliye speed zyada hoti hai.
3. No Reliability: Yeh ensure nahi karta ki data sahi se pahucha ya nahi. Agar packet lost hota
hai, toh usse recover karna sender ka kaam nahi hota.
4. No Flow Control: UDP me flow control ka mechanism nahi hota.
5. Lightweight: Overhead kam hota hai, isliye zyada resources use nahi karta.
Diagram:
+--------------------+--------------------+
| Source Port | Destination Port |
+--------------------+--------------------+
| Length | Checksum |
+--------------------+--------------------+
| Data (Payload) |
+-----------------------------------------+
Advantages of UDP:
1. Faster transmission.
2. Low latency.
3. Best for real-time data transfer.
Disadvantages of UDP:
1. No error correction or retransmission.
2. Data loss possible.
3. Not suitable for sensitive data (e.g., financial transactions).
Summary: UDP fast aur lightweight protocol hai jo un scenarios me use hota hai jaha real-time
data transfer ki zarurat hoti hai, aur data loss ko tolerate kiya ja sakta hai.
Features of HTTP:
1. Stateless Protocol: Server request ko yaad nahi rakhta.
2. Port: HTTP ke liye default port 80 hai.
3. Data Encryption: HTTP me data unencrypted hota hai, jo ise insecure banata hai.
4. Use Cases: Websites ke liye jo sensitive data nahi handle karti hain.
Example of HTTP:
Agar aap ek URL open karte ho, jaise http://example.com, to browser aur server ke beech HTTP
request-response hota hai:
HTTP Request:
GET /index.html HTTP/1.1
Host: example.com
HTTP Response:
HTTP/1.1 200 OK
Content-Type: text/html
<html>
<body>Hello World!</body>
</html>
Features of S-HTTP:
1. Encryption: S-HTTP requests aur responses ko encrypt karta hai.
2. Port: Default port 443 hai (par HTTP ke saath bhi use ho sakta hai).
3. Security: Secure transactions ke liye use hota hai (e.g., payment gateways).
4. Use Cases: Sensitive information transfer karte waqt, jaise online banking, e-commerce.
Example of S-HTTP:
Agar ek user secure website access karta hai, jaise https://secure.example.com, tab browser aur
server encrypted data exchange karte hain.
Encrypted HTTP Request:
GET /secure-page.html HTTP/1.1
Host: secure.example.com
(Encrypted Content)
Encrypted HTTP Response:
HTTP/1.1 200 OK
Content-Type: text/html
(Encrypted Content)
S-HTTP Communication:
+---------+ Encrypted Data (Secure) +---------+
| Browser | -------------------------> | Server |
+---------+ +---------+
Real-World Example:
HTTP: Browsing news websites like http://news.com.
S-HTTP: Online shopping and payments at https://amazon.com.
S-HTTP ke wajah se sensitive data jaise credit card numbers, passwords, aur personal information
safe hoti hai.
Practical Example:
1. IPv4 Address: 192.168.0.1 (Commonly used for home routers).
2. IPv6 Address: 2001:0db8:0000:0042:0000:8a2e:0370:7334.
3. Domain Name: www.youtube.com (Maps to IP: 142.250.190.14).
Is tarah internet addressing ka use devices aur servers ke beech communication ke liye hota hai.
Diagram Representation
+-----------------+ +--------------------+
| IPv4 Address | | IPv6 Address |
+-----------------+ +--------------------+
| 192.168.0.1 | | 2001:0db8::1 |
| 10.0.0.1 | | 2401:db00:3020::1 |
| 172.16.254.1 | | 2001:0db8:85a3::1 |
+-----------------+ +--------------------+
Example:
Host Byte Order (Little-Endian):
Agar ek system me data 0x12345678 store hai:
Memory layout: 78 56 34 12
LSB (78) sabse pehle store hoti hai.
Network Byte Order (Big-Endian):
Same data 0x12345678 ko network pe bhejne se pehle convert karte hain:
Memory layout: 12 34 56 78
MSB (12) sabse pehle bheji jaati hai.
Use Case:
Scenario:
Ek little-endian machine se data send kiya gaya hai, jo ek big-endian machine ko receive karna
hai. Agar byte order same nahi hoga, to data corrupt ya galat interpret ho sakta hai.
Example:
1. Sender (Little-Endian Machine):
Data: 0x12345678 (stored as 78 56 34 12). Before sending: Convert to Big-Endian (12 34 56
78).
2. Receiver (Big-Endian Machine):
Data received in Big-Endian (12 34 56 78).
Interpreted correctly as 0x12345678.
Conclusion:
Network byte order ensures that machines with different architectures (Big-Endian, Little-Endian)
can communicate without data misinterpretation. It’s especially useful in protocols like TCP/IP for
reliable data transfer.
Types of ISPs:
1. Dial-Up ISPs: Old technology, slow speed, telephone lines use karta hai.
2. Broadband ISPs: High-speed internet via DSL, cable, ya fiber-optic.
3. Mobile ISPs: 4G/5G services jo mobile network providers offer karte hain.
4. Satellite ISPs: Remote areas me internet provide karte hain.
Examples of ISPs:
1. India: Jio, Airtel, BSNL, ACT Fibernet.
2. Global: Comcast, AT&T, Verizon, Spectrum.
ISP Ka Diagram:
Internet Backbone (Global Network)
|
----------------
| |
ISP 1 ISP 2
(Jio) (Airtel)
| |
----------------------------
| | |
Home Business Mobile Users
Users Users (4G/5G)
Explanation of Diagram:
1. Internet Backbone: Yeh world-wide interconnected servers aur networks ka global
infrastructure hai.
2. ISPs: Jio aur Airtel jaise companies backbone se connect hokar users ko internet provide
karte hain.
3. End Users: ISPs ke customers jo home, business, ya mobile devices ke through internet
access karte hain.
Conclusion:
ISP ek mediator ki tarah kaam karta hai jo aapko internet backbone se connect karta hai. Har ISP
apni speed, services, aur pricing ke basis par different hota hai, aur users apne requirement ke hisaab
se ISP choose karte hain.
Conclusion:
Dial-up: Simple aur low-cost solution, par outdated hai.
Leased VSAT: Reliable aur fast solution jo aaj bhi rural aur inaccessible areas ke liye
relevant hai.
Both technologies apne-apne use cases ke liye kaam aati hain, but modern scenarios me dial-up ko
mostly broadband aur leased VSAT ne replace kar diya hai.
JSP (Java Server Pages) aur ASP (Active Server Pages) Kya Hain?
1. JSP (Java Server Pages):
JSP ek server-side technology hai jo Java programming language use karke dynamic web pages
banata hai. JSP ka use web applications ke frontend aur backend ke beech ka interaction manage
karne ke liye hota hai.
Developed by: Sun Microsystems (ab Oracle).
Language Used: Java.
Features of JSP:
HTML aur Java code ko mix karke likha jata hai.
Platform-independent hai.
JSP files ka extension .jsp hota hai.
Examples:
JSP Example: Hello World Page
<%@ page language="java" contentType="text/html" %>
<!DOCTYPE html>
<html>
<head>
<title>JSP Example</title>
</head>
<body>
<h1>Hello, World from JSP!</h1>
<%
// Backend logic in Java
String message = "Welcome to Java Server Pages!";
out.println("<p>" + message + "</p>");
%>
</body>
</html>
Diagram (Comparison):
+---------------------+ +---------------------+
| JSP | | ASP |
+---------------------+ +---------------------+
| Uses Java | | Uses VBScript |
| Runs on Apache | | Runs on IIS |
| .jsp files | | .asp files |
+----------+----------+ +----------+----------+
| |
| |
+------------------+ +------------------+
| Web Server | | Web Server |
+------------------+ +------------------+
| |
v v
+----------------+ +----------------+
| Dynamic Web | | Dynamic Web |
| Page Response | | Page Response |
+----------------+ +----------------+
Use Cases:
JSP:
o Enterprise-level applications (e.g., banking systems).
o Cross-platform web applications.
ASP:
o Microsoft ecosystem applications.
o Small to medium web projects on Windows servers.
J2EE and .NET Systems in Hinglish
J2EE (Java 2 Platform, Enterprise Edition) aur .NET dono hi enterprise-level applications banane ke
liye platforms hain. Yeh alag-alag technologies ko support karte hain, aur large-scale applications
me use hote hain, jaise banking systems, e-commerce websites, aur CRM tools.
Is tarah, internet mapping internet ke vast structure ko samajhne aur analyze karne ka powerful tool
hai.
Example:
Let’s consider a simple e-commerce website, like Amazon:
1. Presentation Layer (Client Tier):
o A user uses a web browser to access Amazon’s website to browse products, search,
add to cart, and checkout.
2. Business Logic Layer (Application Tier):
o Amazon’s web servers run application logic, like calculating product prices, user
authentication, inventory management, and payment processing.
o Application servers (like Java EE or .NET) process the logic and interact with the
database layer.
3. Data Layer (Database Tier):
o Amazon stores product, customer, order, and inventory data in databases (like MySQL
or Oracle).
o When a user makes a purchase or searches for products, the application tier interacts
with the database tier to fetch data and send it back to the presentation layer.
This three-tier architecture helps Amazon scale to millions of users, handle large amounts of data,
and maintain fast response times.
DNS Ke Types:
1. Recursive DNS Resolver: Yeh server client ke liye DNS query ko resolve karta hai. Agar
kisi DNS record ka jawab uske paas nahi hota, toh yeh dusre DNS servers se query bhejta
hai.
2. Authoritative DNS Server: Yeh server ek specific domain ke liye authoritative hota hai.
Matlab, yeh domain ka correct IP address provide karta hai.
3. Caching DNS Server: Yeh server recently queried data ko store karta hai, taaki future me jab
wahi request aaye, toh result jaldi mil sake.
Example:
Scenario 1:
Aap "www.amazon.com" ko apne browser me type karte hain.
1. Browser DNS resolver ko request bhejta hai ki "amazon.com" ka IP address chahiye.
2. DNS resolver, authoritative DNS server ko query karta hai.
3. Authoritative DNS server "amazon.com" ke liye IP address (e.g., 205.251.242.103) deta hai.
4. DNS resolver IP address ko browser ko bhejta hai.
5. Browser us IP address ko use karke Amazon ki website ko load kar leta hai.
DNS Ka Diagram:
+-----------------------+
| User's Browser |
| (www.amazon.com) |
+-----------+-----------+
|
v
+-----------------------+
| DNS Resolver | (Finds out the IP address of amazon.com)
| (ISP's DNS Server) |
+-----------+-----------+
|
v
+----------------------------+
| Authoritative DNS Server | (Contains actual DNS records)
| (amazon.com DNS server) |
+----------------------------+
|
v
+-----------------------+
| Browser with IP |
| (205.251.242.103) |
+-----------------------+
|
v
+-----------------------+
| Website Loaded |
| (Amazon Website) |
+-----------------------+
Explanation of Diagram:
1. User's Browser: User "www.amazon.com" type karta hai.
2. DNS Resolver: Yeh request ko DNS server ko bhejta hai.
3. Authoritative DNS Server: Yeh domain "amazon.com" ka IP address provide karta hai.
4. Website Loaded: IP address milne ke baad, browser website ko load kar leta hai.
DNS ka Importance:
Human-readable URLs: DNS system se hum complex IP addresses ke bajaye easily
readable domain names use kar sakte hain.
Fast Internet Navigation: DNS caching aur fast resolution se browsing experience smooth
aur fast hota hai.
Scalability: DNS system globally scalable hai, jisme har website ka unique address manage
hota hai.
In short, DNS humare liye internet browsing ko bahut easy banata hai, jahan hum apni favourite
websites ko domain names ke through access kar sakte hain without needing to remember complex
IP addresses!
IP Address ka Function:
Unique Identification: Har device ko ek unique IP address milta hai jisse wo internet par
easily identify kiya ja sakta hai.
Data Routing: Jab aap kisi website ko access karte hain, to aapka device apne IP address ka
use karta hai taaki data sahi server tak pahunch sake.
IP Address Categories:
IP addresses ko do major categories me divide kiya ja sakta hai:
1. Public IP Address:
o Ye address internet pe devices ko identify karta hai. Har device jo directly internet se
connected hai, uska ek public IP hota hai.
o Example: 8.8.8.8 (Google's DNS server)
2. Private IP Address:
o Ye address sirf internal networks (like home or office) ke liye hota hai. Internet par
directly accessible nahi hota.
o Example (for home networks): 192.168.0.1, 10.0.0.1
Diagram of IP Addressing:
+------------------+
| Computer A |
| IP: 192.168.1.2 |
+------------------+
|
|
+----------------------+
| Router (Private) |
| IP: 192.168.1.1 |
+----------------------+
|
|
+------------------+
| Internet Router |
| Public IP: 203.0.113.5 |
+------------------+
|
|
+------------------+
| Website |
| IP: 8.8.8.8 |
+------------------+
Explanation of Diagram:
Computer A: Apna private IP address (192.168.1.2) use karta hai local network me.
Router: Local network ko internet se connect karta hai, iska apna private IP address
(192.168.1.1) hota hai.
Internet Router: Yeh router internet pe connected hota hai aur ek public IP address
(203.0.113.5) use karta hai.
Website: Jab aap website visit karte hain, to aapke request ko website ka public IP address
(8.8.8.8) par route kiya jata hai.