Professional Documents
Culture Documents
AGENDA Client-Server Computing Web Server HTTP Protocol IP Address Port Number Domain Name System URL
1
References
The following materials are used to make this presentation.
Dr. Sam Chungs own thoughts. Dr. M. L. Lius lecture material in TCSS 558. Dr. Steve Hankss lecture material in the previous TCSS 460
Client process
Server process
Web Server
Specialized software that responds to client requests by providing resources
When users enter URL into Web browsers, they request specific documents from Web server It maps URL to a file(s) on server and returns the requested document to client. It communicates with client using HTTP, which is a protocol for transferring requests and files over the Internet.
HTTP Protocol
A protocol to transfer documents written in the HTML language
It serves a document based on a request involving a URL (GET) It serves information (only) about a document (HEAD) It receives information to process in a serverspecific way (based on the URI) (POST) It returns status information about the request 2xx => success, 3xx => redirected, 4xx => client error, 5xx => server error It supports caching, user authentication, redirection, etc.
10
Using the TCP/IP protocol Listening at port 80 Returning (HTTP) documents and meta-information
12
13
an Internet host subnets The Internet backbone The Internet Topology Model
14
IP Address - IPv4
Unique address for locating computers on Internet In IP version 4, each address is 32 bit long. The address space accommodates 232 (4.3 billion) addresses in total. Addresses are divided into 5 classes (A through E)
byte 0 byte 1 byte 2 byte 3
class A address 0 class B address 1 0 class C address 1 1 0 multcast address 1 1 1 0 reserved address 1 1 1 1 0 multicast group
reserved reserved
16
More IP Addresses
Subdividing the host portion of an Internet address:
byte 0 byte 1 network address byte 2 byte 3 host portion
class B address
10
A class A/C address space can also be similarly subdivided.. Which portion of the host address is used for the subnet identification is determined by a subnet mask.
17
18
19
20
root
top-level domain com edu gov net in the U.S. org mil
country code
organization
Top-level domain name has to be applied for. Subdomain hierachy and names are assigned by the organization.
... ...
subdomain
host name
21
.com
.gov
.edu
.mil
.net
.org
ucsb.edu ...
calpoly.edu
...
cs ...
ece ...
csc ...
22
Logical Ports
host A host B
...
process
...
port
24
25
Well-known ports
Assignment of some well-known ports
Protocol echo daytime ftp telnet smtp time finger http RMI Registry special web server Port 7 13 21 23 25 37 79 80 1099 8080 Service IPC testing provides the current date and time file transfer protocol
remote, command-line terminal session
simple mail transfer protocol provides a standard time provides information about a user web server
registry for Remote Method Invocation
26
27
URL
A URL has the format of:
protocol://host address[:port]/directory path/file name#section
A sampl e URL:
http://www.csc.calpoly.edu:8080/~mliu/CSC369/hw.html # hw1
section name file name host name protocol of server directory path port number of server process
Other protocols that can appear in a URL are: file ftp gopher news telnet WAIS
29
Relative Path
The path in a URL is relative to the document root of the server.
http://repos.insttech.washington.edu/~chungsa/i ndex.htm
A URL may appear in a document in a relative form: < a href=another.html> and the actual URL referred to will be another.html preceded by the protocol, hostname, directory path of the document .
30