Lesson
15 of 26
Translate

Internet & Its Protocols

HTTP, HTTPS, FTP, SMTP, OSI model, TCP/IP, IP addressing, NAT, DNS, ports, and web protocols for UPSSSC AGTA.

What is the Internet?

The Internet is a global network of interconnected computers that communicate using standardized protocols. It originated from ARPANET (Advanced Research Projects Agency Network), created by the US Department of Defense in 1969.

Internet vs WWW: The Internet is the physical network (cables, routers, servers). The World Wide Web (WWW) is a service that runs on the Internet — a collection of web pages linked by hyperlinks. WWW was invented by Tim Berners-Lee in 1989 at CERN.

TermMeaning
InternetGlobal network of networks
WWWCollection of web pages (a service on Internet)
IntranetPrivate network within an organization
ExtranetIntranet extended to authorized external users

OSI Model — 7 Layers

The OSI (Open Systems Interconnection) model divides network communication into 7 layers. It was developed by ISO (International Organization for Standardization).

Mnemonic (top to bottom): All People Seem To Need Data Processing

LayerNameFunctionProtocol/Device
7ApplicationUser interface, email, browsingHTTP, FTP, SMTP, DNS
6PresentationData formatting, encryption, compressionSSL/TLS, JPEG, MPEG
5SessionEstablishes/manages sessionsNetBIOS, RPC
4TransportReliable data delivery, error checkingTCP, UDP
3NetworkRouting, IP addressingIP, ICMP, Router
2Data LinkFrame delivery, MAC addressEthernet, Switch, Bridge
1PhysicalBits over cables, signalsHub, Repeater, Cables

Remember: Data flows down at sender (Application → Physical) and up at receiver (Physical → Application).


TCP/IP Model — 4 Layers

The TCP/IP model is the practical model used by the Internet. It has 4 layers:

TCP/IP LayerOSI EquivalentFunction
ApplicationApplication + Presentation + SessionHTTP, FTP, SMTP, DNS
TransportTransportTCP (reliable), UDP (fast)
InternetNetworkIP addressing, routing
Network AccessData Link + PhysicalPhysical transmission

TCP vs UDP

FeatureTCPUDP
Full FormTransmission Control ProtocolUser Datagram Protocol
ConnectionConnection-orientedConnectionless
ReliabilityReliable (acknowledgment)Unreliable (no ack)
SpeedSlowerFaster
UseWeb, email, file transferVideo streaming, gaming, DNS
ExampleHTTP, FTP, SMTPVoIP, live video, DHCP

Important Protocols & Port Numbers

ProtocolFull FormPortPurpose
HTTPHyperText Transfer Protocol80Web page access (unencrypted)
HTTPSHTTP Secure443Encrypted web (SSL/TLS)
FTPFile Transfer Protocol20 (data), 21 (control)File upload/download
SMTPSimple Mail Transfer Protocol25Sending emails
POP3Post Office Protocol 3110Receiving email (downloads)
IMAPInternet Message Access Protocol143Receiving email (server sync)
TELNETTelecommunication Network23Remote access (unencrypted)
SSHSecure Shell22Secure remote access
DNSDomain Name System53Domain → IP resolution
DHCPDynamic Host Configuration Protocol67/68Auto-assigns IP addresses
SNMPSimple Network Management Protocol161Network device monitoring

HTTPS = HTTP + SSL/TLS encryption. Banks and login pages always use HTTPS (look for the lock icon in the browser).


IP Addressing

An IP address uniquely identifies every device on a network.

IPv4

IPv4 uses 32 bits written as 4 octets separated by dots (e.g., 192.168.1.1).

ClassRangeDefault Subnet MaskUse
A1.0.0.0 – 126.255.255.255255.0.0.0Large networks
B128.0.0.0 – 191.255.255.255255.255.0.0Medium networks
C192.0.0.0 – 223.255.255.255255.255.255.0Small networks (most common)
D224.0.0.0 – 239.255.255.255Multicasting
E240.0.0.0 – 255.255.255.255Research/Experimental
  • 127.0.0.1 = Loopback address (localhost) — device refers to itself
  • Total IPv4 addresses: ~4.3 billion (2³²)

IPv6

IPv6 uses 128 bits written in 8 groups of hexadecimal (e.g., 2001:0db8:85a3::8a2e).

  • Total addresses: 2¹²⁸ (virtually unlimited)
  • No need for NAT
  • Built-in security (IPSec)

NAT (Network Address Translation)

NAT allows multiple devices on a private network to share a single public IP address to access the Internet.

  • Why needed: IPv4 addresses are limited; NAT conserves public IPs
  • How it works: Router translates private IPs (192.168.x.x) to a public IP for internet communication
  • Types: Static NAT (1:1 mapping), Dynamic NAT (pool of public IPs), PAT/NAT Overload (many-to-one using port numbers — most common)

URL Structure

A URL (Uniform Resource Locator) is the address of a web resource:

https://www.example.com:443/path/page.html?id=1#section
  |        |          |    |              |      |
Protocol  Domain     Port  Path         Query  Fragment

Web Browsers & Search Engines

Web BrowsersSearch Engines
Google ChromeGoogle
Mozilla FirefoxBing (Microsoft)
Safari (Apple)Yahoo
Microsoft EdgeDuckDuckGo
OperaBaidu (China)

A browser displays web pages; a search engine finds them. Google is a search engine accessed through a browser.


History of the Internet — Key Facts

FactDetails
ARPANET First MessageSent from UCLA to Stanford on Oct 29, 1969 — only “LO” was transmitted (system crashed before completing “LOGIN”)
WWW InventorTim Berners-Lee invented WWW at CERN (Switzerland) in 1989; first website: info.cern.ch
Father of InternetVint Cerf and Bob Kahn — designed the TCP/IP protocol
ICANNInternet Corporation for Assigned Names and Numbers — manages domain names globally
ISPInternet Service Provider — provides internet access (e.g., Jio, Airtel, BSNL in India)

Bandwidth vs Latency

TermMeaningAnalogy
BandwidthMaximum data capacity of a connectionWidth of a water pipe
LatencyTime delay for data to travel from source to destinationTime for water to flow through the pipe

High bandwidth + low latency = best internet experience. Bandwidth is measured in bps (bits per second); latency in ms (milliseconds).


Protocol Transport — TCP vs UDP Usage

Uses TCP (Reliable)Uses UDP (Fast)
HTTP, HTTPSDNS
FTPDHCP
SMTPSNMP
SSHTFTP
TELNETVoIP (Voice over IP)

Port Number Ranges

RangeNameDescription
0 – 1023Well-known portsReserved for standard services (HTTP=80, FTP=21, SSH=22)
1024 – 49151Registered portsUsed by specific applications (MySQL=3306, PostgreSQL=5432)
49152 – 65535Dynamic/Private portsTemporary ports assigned by OS for client connections

Subnet Mask & Private IP Ranges

A subnet mask determines which part of an IP address is the network portion and which is the host portion.

  • Example: 255.255.255.0 (Class C) means first 3 octets = network, last octet = host
  • Used by routers to decide if traffic stays local or goes to another network

Private IP Address Ranges (Not Routable on Internet)

ClassPrivate IP RangeSubnet MaskNo. of Addresses
A10.0.0.0 – 10.255.255.255255.0.0.0~16.7 million
B172.16.0.0 – 172.31.255.255255.255.0.0~1 million
C192.168.0.0 – 192.168.255.255255.255.255.065,536

Your home WiFi router typically uses 192.168.x.x (Class C private range). These addresses are free to use internally but need NAT to access the internet.


Key Takeaways

  • ARPANET first message: UCLA → Stanford, Oct 29, 1969 — only “LO” transmitted (crashed before “LOGIN”)
  • WWW invented by Tim Berners-Lee at CERN (1989); first website: info.cern.ch
  • Father of Internet: Vint Cerf & Bob Kahn — designed TCP/IP protocol
  • OSI has 7 layers (mnemonic: All People Seem To Need Data Processing); TCP/IP has 4 layers
  • TCP = reliable + slow (HTTP, FTP, SMTP, SSH); UDP = unreliable + fast (DNS, DHCP, VoIP, SNMP)
  • HTTP (port 80), HTTPS (443), FTP (20/21), SMTP (25), SSH (22), TELNET (23), DNS (53)
  • Port ranges: Well-known (0-1023), Registered (1024-49151), Dynamic/Private (49152-65535)
  • IPv4 = 32-bit, ~4.3 billion addresses; IPv6 = 128-bit, unlimited, built-in IPSec
  • Private IP ranges: Class A (10.x.x.x), Class B (172.16-31.x.x), Class C (192.168.x.x)
  • Subnet mask determines network vs host portion of IP (e.g., 255.255.255.0 for Class C)
  • NAT converts private IPs to public IPs; PAT/NAT Overload = many-to-one using port numbers
  • Bandwidth = max data capacity (bps); Latency = time delay (ms) — high BW + low latency = best
  • ICANN manages domain names globally; ISP provides internet access
  • 127.0.0.1 = localhost (loopback); URL structure: Protocol://Domain:Port/Path?Query#Fragment

Summary Cheat Sheet

ConceptKey Details
ARPANETFirst internet (1969), US DoD
ARPANET First MessageUCLA → Stanford, Oct 29, 1969 — only “LO” sent (crashed before “LOGIN”)
WWWTim Berners-Lee, 1989, CERN (Switzerland)
First Websiteinfo.cern.ch
Father of InternetVint Cerf & Bob Kahn — designed TCP/IP
ICANNManages domain names globally
ISPInternet Service Provider (Jio, Airtel, BSNL)
Internet vs WWWInternet = physical network; WWW = web pages (service on Internet)
Intranet / ExtranetIntranet = private org network; Extranet = intranet + authorized external users
OSI Model7 layers — Application to Physical (mnemonic: APSTNDP)
TCP/IP Model4 layers — Application, Transport, Internet, Network Access
TCPReliable, connection-oriented, slower — HTTP, FTP, SMTP, SSH, TELNET
UDPFast, connectionless, unreliable — DNS, DHCP, SNMP, TFTP, VoIP
HTTP/HTTPSPort 80/443, web access
FTPPort 20 (data) / 21 (control), file transfer
SMTPPort 25, sending email
POP3 / IMAPPort 110 / 143, receiving email (download vs server sync)
SSHPort 22, secure remote access
TELNETPort 23, unencrypted remote
DNSPort 53, domain → IP resolution
DHCPPort 67/68, auto-assigns IP addresses
SNMPPort 161, network device monitoring
Well-known Ports0–1023 — reserved standard services (HTTP=80, SSH=22)
Registered Ports1024–49151 — specific apps (MySQL=3306)
Dynamic Ports49152–65535 — temporary OS-assigned client ports
IPv432-bit, 4 octets, ~4.3 billion (2^32)
IPv6128-bit, 8 hex groups, unlimited, built-in IPSec
Class A1–126.x.x.x, large networks, mask 255.0.0.0
Class B128–191.x.x.x, medium networks, mask 255.255.0.0
Class C192–223.x.x.x, small/most common, mask 255.255.255.0
Class D / ED = multicasting (224–239); E = experimental (240–255)
127.0.0.1Loopback / localhost
Private IP: Class A10.0.0.0 – 10.255.255.255 (~16.7M addresses)
Private IP: Class B172.16.0.0 – 172.31.255.255 (~1M addresses)
Private IP: Class C192.168.0.0 – 192.168.255.255 (65,536 addresses)
Subnet MaskDetermines network vs host portion (e.g., 255.255.255.0)
NATPrivate → Public IP translation
PAT / NAT OverloadMany-to-one NAT using port numbers — most common type
BandwidthMax data capacity of connection (measured in bps) — like pipe width
LatencyTime delay source → destination (measured in ms) — like water travel time
SSL/TLSEncryption for HTTPS
URL StructureProtocol://Domain:Port/Path?Query#Fragment

Knowledge Check

Take a dynamically generated quiz based on the material you just read to test your understanding and get personalized feedback.

Lesson Doubts

Ask questions, get expert answers

Lesson Doubts is a Pro feature.Upgrade