WWW - Lecture 1
WWW - Lecture 1
WWW - Lecture 1
What is WWW?
What is Internet?
Internet & WWW
The internet is a global system of connected networks that consists of millions of
computers, servers, routers, and printers on every network.
Systems communicate using Protocols.
It was called ARPANET in 1969 as a research network by Advanced Research
Projects Agency (ARPA) of the US Defence Department.
World Wide Web (WWW) started in 1989 at the European Particle Physics
Laboratory (CERN) by Tim Berners-Lee.It is a network of computers that serve web
pages that distributed hypermedia information system on the Internet. Information
can be organize, link, and access via client-server protocol.
World Wide Web(WWW) is a part of the Internet that consists of Internet connected
computers called Web Servers that store electronic documents called Web Pages.
Web Page is a specially formatted document that can contain images, text,
interactive elements, and hyperlinks, which links to other pages.
Web Site is a group of related Web Pages.A web site’s primary page known as
Home Page, typically introduces the web site and provide information about the site’s
purpose and content.
A hyperlink, or simply known as link, is a word, phrase or image that connects web
pages.Exploring the Web by jumping from one Web page to another is sometimes
called browsing or surfing the web.
Client server architecture
The Web is a client/server application: Web browsers are clients which send
requests to Web servers, which send responses back.
Internet Layers
Architecturally, the Internet consists of a collection of layers, each one providing
services for the one above it:
The Internet Layer gets packets to their destinations. (inter network
communication)
The Transport Layer provides communication between processes running on hosts
The Application Layer provides high-level services to applications such as Web
browsers
HTTP
HTTP makes use of TCP to open connections between clients and servers and to
pass the requests and responses between them.
When a user clicks a link or types a web address:
A TCP connection is opened between browser and server
Then requests and responses are sent back and forth using HTTP
HTTP is a stateless protocol, meaning each request for data is dealt with in
isolation; once the server sends the response, it forgets everything about the original
request.
URLs
A URL is a type of uniform resource identifier and is address of a resource on the
World Wide Web and the protocol used to access it.
It is used to indicate the location of a web resource to access the web pages.
URLs have 3 components:
A Prefix (usually http:// )
A Hostname: (such as www.cityu.edu.hk)
A Path: (such as /scm/index.htm)
Every computer connected to the Internet must have a unique IP address, no matter
whether it’s a client or a server (or both)
An IP address is just a number that identifies a host on the Internet. Example:
212.171.218.34 or 144.214.5.218
Domain Name System
The Domain Name System (DNS) is a database that matches IP addresses to host
names.
Domain Name System (DNS) translates host names into IP addresses, which are
then used by TCP to establish connections between HTTP clients and servers.
Domain names are administered in such a way that they are guaranteed to be
unique.
Domain names are organised in a hierarchical structure….
DNS Hierarchy
Top Level Domain (TLD)
Mostly country domains:
.uk, .au, .hk, etc.
Generic Top Level Domain (gTLD)
.com
.org
.net
.biz
.info
.name
.ws
.tv
Second level domain:
The actual name of the organisation or service.
Can contain letters
(a to z),
numbers (0 to 9),
dashes ( - )
subdomain – sometimes referred to as “third-level domains.”
“blog.myexample.com” the subdomain address would be “blog.”
Registering Domain Names
Registering a domain name can either be done directly with a registration service,
such as HKDNR, or through a website hosting service.
Either way, you have to pay a fee for domain registration that is separate from any
site hosting fees you may pay.
gTLD domains (.com, .org, .net): US$12 - 15 per year
Country domains in Hong Kong:
.com.hk, .org.hk, .net.hk: HK$200 per year
.hk: HK$250 per year
Linking Domain Names and IP
Addresses
A domain name, once registered, needs to be associated with a fixed IP address of a
web server on the Internet. When you register and setup a new domain name, you
need to enter details of at least 2 nameservers.
These nameservers are special internet servers that implement a name service
protocol.
They may be provided by a web hosting service, or a domain registration service.
They link a domain name to the specific IP address assigned for a website.
Examples: Note: Most commercial hosting services
provide a form of virtual hosting, placing
ns0.directnic.com many websites on a single server, so special
ns1.directnic.com software is used to route domains names to
assigned IP address.
Domain Names… not just websites
Once your domain name is assigned a specific IP host you can:
Set up and run a website (www.cityu.edu.hk)
Set up e-mail accounts (nick.foxall@cityu.edu.hk)
Set up file transfer capabilties (ftp.cityu.edu.hk)
Home Page Naming