Introduction To Internet Programming: 5ECTS, 2lec, 2lab
Introduction To Internet Programming: 5ECTS, 2lec, 2lab
INSY3081)
1 Internet Programming
Overview
In 1969, the US Department of Defense started a project
to allow researchers and military personnel to
communicate with each other in an emergency.
The project was called ARPAnet and it is the foundation
of the Internet
The Internet is the largest computer network that
connects hundreds of thousands of individual
networks all over the world.
2 Internet Programming
The uses of the Internet
Send e-mail messages.
Join Social Networks
Chat with friends
Send (upload) or receive (down load) files between
computers.
Participate in discussion groups, such as mailing lists,
forums, and newsgroups.
Surfing the web.
3 Internet Programming
What is Web?
The Web (World Wide Web) consists of information
organized into Web pages containing text and graphic
images.
It contains hypertext links, or highlighted keywords
and images that lead to related information.
A collection of linked Web pages that has a common
theme or focus is called a Web site.
The main page that all of the pages on a particular Web
site are organized around and link back to is called the
site’s home page.
4 Internet Programming
How to access the Web?
Once you have your Internet connection, then you need
special software called a browser to access the Web.
Web browsers are used to connect you to remote
computers, open and transfer files, display text and
images.
Web browsers are specialized programs.
Examples of Web browser: Mozilla Firefox, Google
Chrome, and Internet Explorer.
5 Internet Programming
Client/Server Structure of the Web
Web is a collection of files that reside on computers,
called Web servers
7 Internet Programming
Domain Name Addressing
Most web browsers do not use the IP address to locate
Web sites and individual pages.
They use domain name addressing.
A domain name is a unique name associated with a
specific IP address by a program that runs on an
Internet host computer.
This program, which coordinates the IP addresses and
domain names for all computers attached to it, is called
DNS (Domain Name System ) software.
The host computer that runs this software is called a
domain name server.
8 Internet Programming
Domain Name Addressing
9 Internet Programming
Uniform Resource Locators (URL)
The IP address and the domain name each identify a particular
computer on the Internet.
However, they do not indicate where a Web page’s HTML
document resides on that computer.
To identify a Web pages exact location, Web browsers rely on
Uniform Resource Locator (URL).
URL is a four-part addressing scheme that tells the Web
browser:
1. What transfer protocol to use for transporting the file
2. The domain name of the computer on which the file resides
3.The pathname of the folder or directory on the computer on
which the file resides
4.The name of the file
10 Internet Programming
Structure of URL
protocol pathname
http://estudent.ambou.edu.et/estudent/assessments/index
12 Internet Programming
IP(internet protocol)
The internetworking protocol(IP) is the transmission
mechanism used by the TCP/IP protocols.
It is an unreliable and connectionless protocol a best-
effort-delivery service.
The term best effort means that IP provides no error
checking or tracking.
IP assumes the unreliability of the underlying layers and
does its best to get transmission through to its destination,
but with no guarantees.
13 Internet Programming
UDP
User datagram protocol(UDP) is called connectionless,
unreliable transport protocol.
It does not add anything to the services of IP except to
provide process-to- process communication instead of
host to host communication.
Also it performs, very limited error checking
It is used If the process sends small message and does not
care about the reliability.
14 Internet Programming
ICMP
The Internet control message protocol(ICMP) is a
mechanism used by hosts and gateways to send
notification of datagram problems back to the sender.
ICMP sends query and error reporting messages
15 Internet Programming
HTTP
HTTP stands for Hyper Text Transfer protocol
WWW is about communication between web clients and
servers
Communication between client computers and web
servers is done by sending HTTP Requests and receiving
HTTP Responses
Clients are often browsers (Chrome, Edge, Safari), but
they can be any type of program or device.
Servers are most often computers in the cloud.
16 Internet Programming
HTTP Request / Response
Communication between clients and servers is done by
requests and responses:
A client (a browser) sends an HTTP request to the web
A web server receives the request
The server runs an application to process the request
The server returns an HTTP response (output) to the
browser
The client (the browser) receives the response
17 Internet Programming
Static Vs Dynamic web pages
Static
A static web page will always show the same content
every time unless the actual web page file itself is edited
Examples of typical static web page files have
extensions .htm or .html
Dynamic
A dynamic web page is constantly changing
Can draw ever changing Content from external
information sources
Example files with extensions used. .jsp, .php, .asp, .aspx
18 Internet Programming