 
      Table of Contents
- What is the Internet?
- How is data transferred?
- What is IP Address
- How to access a website
- Who assigns the IP Address?
- Concept of DNS
- In-depth Working of DNS
- Problems in Data Transfer and MAC Address
- What is Port Numbers
- IPv4 & IPv6
- MAC Address Format
- Port Number Format
- Local Area Network, Switch & Router
- Public and Private Addresses
- Modern Routers
- What is a VPN?
- What is Web Development?
- What is the MERN Stack?
- Who is a Full-Stack Developer?
- Web Browsers
- HTML History
- Key Concepts Summary
What is the Internet?
The Internet is a global network connecting millions of computers for communication and data sharing. It allows devices worldwide to connect and exchange information.
How is data transferred?
Data transfer on the internet occurs through packets. When you send data (like an email or load a webpage), it's broken into small packets that travel through various network devices to reach their destination. These packets are then reassembled at the receiving end.
The process involves:
- Packet Creation: Data is divided into packets with headers containing destination information
- Routing: Packets travel through routers and switches to find the best path
- Transmission: Packets move through cables, wireless networks, or fiber optics
- Reassembly: Packets are put back together at the destination
How to access a website
To access a website, you need to:
- Enter URL: Type the website address (like www.example.com) in your browser
- DNS Resolution: Your computer contacts DNS servers to convert the domain name to an IP address
- Connection: Browser establishes a connection with the web server using the IP address
- Request: Browser sends an HTTP/HTTPS request for the webpage
- Response: Server sends back the HTML, CSS, JavaScript, and other files
- Rendering: Browser interprets and displays the webpage
Who assigns the IP Address?
IP addresses are assigned by:
- Internet Service Providers (ISPs): Assign dynamic IP addresses to home users
- Network Administrators: Assign static IP addresses in corporate networks
- DHCP Servers: Automatically assign IP addresses from a pool
- IANA (Internet Assigned Numbers Authority): Allocates IP address blocks to regional registries
- Regional Registries: ARIN (Americas), RIPE (Europe), APNIC (Asia-Pacific), etc.
In-depth Working of DNS
DNS works through a hierarchical system:
- Root Servers: 13 root servers worldwide that know about top-level domains
- TLD Servers: Handle specific top-level domains (.com, .org, .net, etc.)
- Authoritative Servers: Contain the actual DNS records for domains
- Recursive Resolvers: Your ISP's DNS servers that do the actual lookups
When you type a domain name:
- Browser checks local DNS cache
- Contacts recursive resolver (usually your ISP)
- Resolver queries root servers for TLD information
- Queries TLD servers for authoritative servers
- Queries authoritative servers for the IP address
- IP address is cached and returned to browser
Problems in Data Transfer and MAC Address
Common data transfer problems include:
- Packet Loss: Packets can be lost due to network congestion or errors
- Latency: Delay in packet transmission
- Jitter: Variation in packet arrival times
- Corruption: Data can be corrupted during transmission
MAC Address: Media Access Control address is a unique identifier assigned to network interfaces. It's a 48-bit (6-byte) address typically expressed in hexadecimal format.
MAC addresses are used for:
- Local network communication within the same LAN
- Switching decisions in network switches
- Network interface identification
What is Port Numbers
Port numbers are 16-bit numbers (0-65535) that identify specific applications or services running on a device. They allow multiple applications to use network services simultaneously.
Common Port Numbers:
- Port 80: HTTP (web traffic)
- Port 443: HTTPS (secure web traffic)
- Port 21: FTP (file transfer)
- Port 25: SMTP (email)
- Port 53: DNS (domain name system)
- Port 22: SSH (secure shell)
IPv4 & IPv6
IPv4: Internet Protocol version 4 uses 32-bit addresses (4 bytes) in dotted decimal format (e.g., 192.168.1.1). It provides about 4.3 billion unique addresses.
IPv6: Internet Protocol version 6 uses 128-bit addresses (16 bytes) in hexadecimal format (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334). It provides approximately 340 undecillion unique addresses.
Key Differences:
- IPv4: 32-bit, 4.3 billion addresses
- IPv6: 128-bit, virtually unlimited addresses
- IPv6 includes built-in security features
- IPv6 has improved auto-configuration
MAC Address Format
MAC addresses are 48 bits (6 bytes) long and are typically represented in hexadecimal format with colons or hyphens separating each byte.
Format Examples:
- Colon notation: 00:1B:44:11:3A:B7
- Hyphen notation: 00-1B-44-11-3A-B7
- Dot notation: 001B.4411.3AB7
MAC Address Structure:
- First 24 bits: Organizationally Unique Identifier (OUI)
- Last 24 bits: Network Interface Controller (NIC) specific
- First bit: Indicates unicast (0) or multicast (1)
- Second bit: Indicates globally unique (0) or locally administered (1)
Port Number Format
Port numbers are 16-bit unsigned integers ranging from 0 to 65535.
Port Number Ranges:
- 0-1023: Well-known ports (system ports)
- 1024-49151: Registered ports
- 49152-65535: Dynamic/private ports
Port Number Examples:
| Port | Protocol | Service | 
|---|---|---|
| 80 | TCP | HTTP | 
| 443 | TCP | HTTPS | 
| 53 | UDP/TCP | DNS | 
Local Area Network, Switch & Router
Local Area Network (LAN): A network that connects computers and devices in a limited geographical area like a home, school, or office building.
Network Switch: A device that connects multiple devices on a computer network. It uses MAC addresses to forward data to the correct destination within the LAN.
Router: A device that connects multiple networks together. It routes data packets between different networks using IP addresses.
Key Differences:
- Switch operates at Layer 2 (Data Link) using MAC addresses
- Router operates at Layer 3 (Network) using IP addresses
- Switch creates separate collision domains
- Router creates separate broadcast domains
Public and Private Addresses
Public IP Addresses: Globally unique IP addresses assigned by ISPs that can be accessed from anywhere on the internet.
Private IP Addresses: IP addresses used within private networks that are not routable on the public internet.
Private IP Address Ranges:
- 10.0.0.0 - 10.255.255.255 (Class A)
- 172.16.0.0 - 172.31.255.255 (Class B)
- 192.168.0.0 - 192.168.255.255 (Class C)
Network Address Translation (NAT) allows multiple devices on a private network to share a single public IP address.
Modern Routers
Modern routers combine multiple functions:
- Routing: Forwarding data packets between networks
- Switching: Connecting devices within a LAN
- NAT: Network Address Translation for IP sharing
- DHCP: Dynamic Host Configuration Protocol for IP assignment
- Firewall: Security features to protect the network
- Wi-Fi: Wireless access point functionality
- VPN Server: Virtual Private Network capabilities
Modern routers often include parental controls, Quality of Service (QoS), and guest network features.
What is a VPN?
VPN (Virtual Private Network): A technology that creates a secure, encrypted connection over a less secure network, such as the internet.
How VPN Works:
- User connects to VPN server
- Authentication occurs
- Encrypted tunnel is established
- All internet traffic is routed through the VPN
- Data appears to come from the VPN server's IP address
VPN Benefits:
- Enhanced security and privacy
- Bypassing geo-restrictions
- Access to corporate networks remotely
- Protection on public Wi-Fi
- Anonymity online
What is Web Development?
Web development is the process of creating websites and web applications that run on the internet. It involves:
- Frontend Development: Creating the user interface and user experience
- Backend Development: Server-side logic and database management
- Full-Stack Development: Both frontend and backend development
Web Development Technologies:
- HTML, CSS, JavaScript (Frontend)
- Node.js, Python, PHP, Ruby (Backend)
- React, Angular, Vue.js (Frontend Frameworks)
- MongoDB, MySQL, PostgreSQL (Databases)
Basic HTML Structure Example
<!DOCTYPE html> <html> <head> <title>My First Webpage</title> </head> <body> <h1>Hello, World!</h1> <p>This is my first webpage.</p> </body> </html>
What is the MERN Stack?
MERN Stack: A popular full-stack JavaScript framework for building web applications.
MERN Components:
- MongoDB: NoSQL database for storing data
- Express.js: Backend web application framework for Node.js
- React: Frontend JavaScript library for building user interfaces
- Node.js: JavaScript runtime environment for server-side development
MERN Stack Advantages:
- All components use JavaScript
- Single language throughout the stack
- Large community and ecosystem
- Fast development and deployment
- Scalable and flexible architecture
Who is a Full-Stack Developer?
Full-Stack Developer: A developer who works on both the frontend and backend of web applications.
Responsibilities:
- Designing user interfaces and user experiences
- Developing client-side and server-side logic
- Working with databases and APIs
- Managing deployment and hosting
- Ensuring application performance and security
Skills Required:
- HTML, CSS, JavaScript
- Frontend frameworks (React, Angular, Vue)
- Backend languages (Node.js, Python, PHP)
- Database management (SQL, MongoDB)
- Version control (Git)
- API development and integration
Key Concepts Summary
| Topic | Description | 
|---|---|
| Internet | A global network connecting millions of computers for communication and data sharing. | 
| Web Basics | Interconnected documents and resources accessible via the Internet. | 
| IP Address | A unique number assigned to each device on the network. | 
| DNS | Domain Name System translates domain names to IP addresses. | 
| Web Browsers | Applications that read HTML and display web pages. |