Professional Documents
Culture Documents
Technology
Internet
The network formed by the co-operative
interconnection of a large number of
computer networks.
Network of networks.
No one owns the internet
Every person who makes a connection
owns a slice of the Internet.
There is no central administration to the
Internet
Network of Networks
NW-4
NW-1
NW-3
NW-2
So Internet ….
A community of people
A collection of resources
A setup to facilitate collaboration
Use the of standard protocol - TCP/IP
protocol.
The Web…
…is a distributed document delivery
system that uses Internet protocols
…links documents stored in computers
communicating by the Internet
Main authority is the W3 Consortium
www.w3.org
Layered Network
Technology
Open systems interconnection (OSI)
reference model.
Seven layer model.
Communication functions are partitioned into a
hierarchical set of layers.
Objective:
Systematic approach to design.
Changes in one layer should not require
changes in other layers.
OSI Model – 7-layer
Layer Functions
Physical
Transmit raw bit stream over a physical
medium.
Data Link
Reliable transfer of frames over a point-to-
point link (flow control, error control).
Network
Establishing, maintaining and terminating
connections.
Routes packets through links.
Layer Functions (contd)
Transport
End-to-end reliable data transfer, with error
recovery and flow control.
Session
Manages sessions.
Presentation
Provides data independence.
Application
Interface point for user applications.
Network data flow
TCP/IP Model
TCP/IP Model – Data flow
TCP/IP Family
Communication between
Applications
Basic Definitions
Web server – machine that services Internet
request
Web client – machine that initiates Internet
request
Browser – software to interact with Internet
data at the web client
TCP/IP – internet data protocol
FTP – internet file transfer protocol
HTTP – hypertext transfer protocol
HTML – hypertext markup language
Servers and Clients
Servers – computer systems at the end of
a network that store files and provide
other services
Network Services IP
1. Client
Makes an HTTP request for a web page
Makes a TCP/IP connection
2. Server accepts request
Sends page as HTTP
3. Client downloads page
4. Server breaks the connection
HTTP is Stateless!
Each operation or transaction makes a
new connection
each operation is unaware of any other
connection
each click is a new connection
HTTP Header fields
General-header fields
used for both requests and responses
Request-header fields
used for responses
extra client information for use by server
optional
Full Request
Uses HTTP version and more methods
method tells server what to do to the
resource requested
Methods
GET
POST
HEAD
GET Method
Request server to retrieve object specified
conditional GET
request message includes
If-Modified-Since in header
HEAD Method
Like GET but does not return the object
returns a header about the resource
requested (meta information)
good way to test link validity
POST Method
Include an object in the request
server should use that object in processing
the request
must include a Content-Length in header
HTTP Response Message
HTTP protocol version
3 digit status code
reason phrase
CRLF
optional header fields
CRLF
Understanding STATUS
Codes
1xx – for information only
2xx – action successful
3xx – further action needed (redirect)
4xx – client request error
5xx – server error
HTTP Transaction
1. Client and server establish a connection
HTML page.
Web Server directory
structure
When a web server is installed:
A http root directory gets created.
For example, “/home/httpd”
There is a directory under the http root that
acts as the http home directory.
For example, “/home/httpd/docs”
There is a directory under the http root under
which all the CGI and other scripts are to be
stored.
For example, “/home/cgi-bin”
Server-side exec permission provided
Web Server directory structure
- contd
Default webpage
There is a default web page that gets
returned by the server if no explicit
document path is specified.
index.htm or index.html.
Any other name can also be specified through
server script configuration.