WTD (Week#1.2 Internet)
WTD (Week#1.2 Internet)
Week 1 1
Network
Week 1 2
Types of Networks
Types of Networks:
• Internet (world-wide network of computers)
• Intranet (organisation-wide network of
computers)
• Extranet (an intranet partially accessible to
outside users).
Internet Protocols :
• TCP/IP protocols (4-byte IP address)
• HTTP (Hyper Text Transfer Protocol)
• File Transfer Protocol (FTP)
• Simple Mail Transfer Protocol (SMTP)
• etc.
Week 1 3
Web Concepts
• The world wide web WWW is an international
hypertext system that link together millions of
documents.
• The World Wide Web (WWW or Web) was not
exist until 1980s
Week 1 6
Web Browsers
• web browser retrieves, presents, and traverses
information resources. These include web
pages, images, video, and other multimedia
content
• Internet Explorer, Chrome and Firefox are most
popular web browsers.
Week 1 7
Internet Protocols
• The Internet Protocol Suite includes a number of
standard protocols. The two most common are:
– Transmission Control Protocol (TCP)
– Internet Protocol (IP)
• A computer communication protocol is a
description of the rules computers must follow to
communicate with each other.
• TCP/IP defines how electronic devices (like
computers) should be connected to the Internet,
and how data should be transmitted between
them.
• The TCP/IP protocol is embedded in TCP/IP
software that is part of the operating system (OS)
Week 1 8
TCP/IP
• TCP handles communication between applications
– TCP uses a fixed connection.
– If one application wants to communicate with another
via TCP, it sends a communication request. This request
must be sent to an exact address. After a ‘handshake’
between the applications a communication line opens.
• IP handles communication between computers
– IP is a connection-less protocol. With IP, messages are
broken down into small independent ‘packets’ and are
sent between computers via the Internet. IP is responsible
for ‘routing’ each packet to its correct destination.
– Communicating via IP is like sending a long letter as a
large number of small postcards, each finding its own
(often different) way to the receiver.
Week 1 9
Importance of Internet Protocols
Week 1 10
IP Addresses
• Each computer must have an IP address before
it can connect to the Internet.
• A Website has an IP address or a URL to
identify it
• An IP address is a set of numbers such as
127.0.0.1
• TCP/IP uses four numbers to address a
computer. The numbers are always between 0
and 255.
• IP addresses are normally written as four
numbers separated by a period, like:
192.68.20.50
Week 1 11
IP Addresses IPv4
• 127.0.0.1
• Those four numbers are 32 bits
• 32 bits = 4 bytes
• TCP/IP uses 32 bit addresses.
• A byte can hold 256 different values:
00000000, 00000001, 00000010, 00000011,
00000100, 00000101, 00000110, 00000111,
00001000 .......and all the way up to 11111111.
• 4 Billion different address can be formed.
Week 1 12
HTTP and URL
• The primary TCP-based protocol used for communication
between web servers and browsers is called the Hypertext
Transport Protocol (HTTP),
• Data exchange governed by HTTP.
• HTTP retrieves web page from web server
• Within a HTML document, other documents and location
are addressed by Uniform Resource Locators (URL).
• URL is the global address of documents and other
resources on the World Wide Web. Its main purpose is to
identify the location of a document and other resources
available on the internet.
Example:
http://www.example.com/index.html
13
Uniform Resource Locator URL
• The name that corresponds to an IP address in the DNS is
known as a URL.
• A full Web address is like:
– http://www.komar.edu.iq/courses/html/index.html
• A URL usually follows these syntax rules:
–
scheme://host.domain.country_code:port/path/filename
Week 1 14
Domain Name and Hosting
Website has a unique address, that unique address is
known as the Domain address of that site (or simply
Domain).
Domain can be purchased from Bluehost, Hostgator,
GoDaddy or Namecheap.
Week 1 16
Client/ Server Model of the Web
Week 1 17
Static and Dynamic Websites
• A static website is the simplest kind of website you
can build Static websites are written in HTML and CSS
only, with no scripting. The only form of interactivity
on a static website is hyperlinks.
• A dynamic website is a
website that not only uses
HTML and CSS, but includes
website scripting as well.
Also it uses server
technologies (such as PHP)
to dynamically build a
webpage right when a user
visits the page.
Week 1 18
How does Internet work?
Week 1 19
References
Text book:
WEB TECHNOLOGIES A Computer Science Perspective by Jeffrey C.
Jackson.
Other References:
1. www.w3schools.com
2. Web Design with HTML & CSS3 Comprehensive by Jessica Minnick;
Lisa Friedrichsen, ISBN- 978-1-305-57816-6.
3. HTML5 and CSS3, Visual Quickstart Guide, Seven Edition, by Elizabeth
Castro, Bruce Hyslop ISBN-13: 978-0321-71961-4
4. Internet & World Wide Web, How to program, Fifth Edition, By Paul,
Harvey, Abbey DEITEL, Pearson, ISBN-13: 978-0-13-215100-9
End of Chapter 1
Week 1 30