Module 1
Module 1
Module Number: 1
Module Name:
Introduction to the Internet and
the World Wide Web
1
CONTENTS
• Introduction to Internet
• Internet Protocols
3
Client and Server
Client Client
Server
Request
Client Client
Reply
4
Client Server Analogy
Server is like waiter
Clients are like customers
-Asks the server for food
-Not allowed in to the kitchen
5
Client Server Communication
The process of establishing a connection between a client and a server is called as
Client-Server Communication
6
Have you sent an email to a friend living in United States?
7
How is it possible for you to communicate with a friend who might be on a different
continent?
You and your friend both need to be connected to the internet to be able to do all these
things.
8
So What is Internet?
Internet is a global network of interconnected networks and devices that exchange
information.
9
Evolution of Internet
Inter-network
Standalone Computers • These networks were
• When computers were then connected together
first created they were to create what is today
stand alone. called the ‘Internet’.
Networks
• The need for sharing resources
among the computers led to
Need for sharing connecting computers into a
network.
resources led to the
creation of networks
and ultimately the
‘Internet’.
Internet – How it came to be?
Reference Material – Provided and to be used for learning purposes only 10
History of Internet
• The Advanced Research Projects Agency Network or ARPANET funded by the United
States Department of Defense in 1969.
• In 1971 Ray Tomlinson developed a system to send electronic mail.
• Dr. Robert M. Metcalfe developed Ethernet in 1973.
• In the early 80s the, the current versions of Transmission Control Protocol (TCP) and IP
(Internet Protocol) were developed.
• In 1992, The Computer Emergency Rescue Team (CERT) released the first version of
the “World Wide Web”.
• In 1996, IPV6 – Internet Protocol Version 6 was created.
• In 1999, a wireless technology called 802.11b or popularly known as “Wi-Fi” was
standardized.
The Beginning
• In 1964, when Packet Switching was invented it opened the doors for computers to
connect and communicate.
• Unlike Circuit Switching, which required a dedicated channel for the duration of
transmission, packet switching divided the data into small parts called ‘packets’ which
were then transmitted over the network.
• In 1972, the initial network application – the electronic mail was introduced.
• March Ray Tomlinson wrote the basic email software motivated by the need of the
ARPANET users for an easy and better coordination mechanism.
• Email remained the largest network application for over a decade.
Ethernet Cable
In 1974, ARPANET adopted the TCP/IP protocol created by Robert Kahn and Vint Cerf. By
mid 70s.
Introduction to Internet
19
Self Assessment Quiz
2. The data sent over the internet is very secure in all ways.
A. True
B. False
Answer: B
20
Self Assessment Quiz
Answer: C
Answer: A
21
Self Assessment Quiz
5. The device that splits a network connection into multiple computers is called:
A. Hub
B. Switch
Answer: A
Answer: B
22
Self Assessment Quiz
Answer: 4
Answer: true
9. _____________ is the protocol that helps a user login and retrieve messages from the
mailbox.
A. SMTP
B. POP3
Answer: B
23
Self Assessment Quiz
Answer: C
24
Self Assessment Quiz
12. Ethernet is a:
A. Server
B. Hub
C. Router
D. Network technology
Answer: D
25
Internet Design Principles
26
“The internet design philosophy has changed considerably from the first
proposal to the current standards.”
- Dave Clark
3. Types of Services
The internet must support multiple types of services.
5. Distributed management
The critical resources are managed in a distributed fashion by various entities to
ensure the fundamental right to freedom is not violated.
6. Cost effectiveness
Making this technology affordable will ensure it is accessible to all and avoid info-
exclusion.
7. Host attachment
connecting a device to the internet should be as effortless as possible to ensure less
overhead and better experience.
8. Accountability
Accountability is not intrinsic to the current internet architecture, migration towards the
accountability framework is ongoing through Host Identity Protocol (HIP) and
Accountable Internet Protocol (AIP).
Answer: B
2. Multiplexing means:
A. Multi-tasking
B. Sharing the available resources.
Answer: B
30
Self Assessment Quiz
3. The Internet Protocol at the network level does not guarantee that the data packets reach
the destination. State true or false.
Answer: true
4. TCP is a more reliable and faster protocol than UDP. State true or false.
Answer: False
31
Self Assessment Quiz
Answer: A
6.The present internet architecture provides good support in identifying the sender of a
particular data. State true or false.
Answer: False
32
Internet Protocols
33
What is a Protocol ?
Internet Protocol (IP) has the task of delivering packets from the source host to the
destination host solely based on the IP addresses in the packet headers.
• IP Version 4 (IPv4)
• IP Version 6 (IPv6)
• “Domain Name is the name given for any website” (ex: yahoo.com).
• “Domain Name System (DNS) is like a phone directory which stores all the
domain names across the web“.
Domain Name Server(DNS) maps a domain name with its corresponding IP address.
49
Self Assessment Quiz
1. A protocol is:
A. A software.
B. A set of rules that govern communication between computers.
Answer: B
4. Full-duplex operation means that you can send and receive data at the same time.
A. Yes
B. No
Answer: Yes
50
Self Assessment Quiz
Answer: False
Answer: B
51
Self Assessment Quiz
9. IP address is:
A. Host name of a computer.
B. The numeric address of a computer
Answer: B
10. The maximum number of addresses that can be created using ipv4 are:
A. 3.4 billion
B. 4.3 billion
Answer: B
52
Self Assessment Quiz
Answer: C
Answer: A
53
Self Assessment Quiz
13. Which protocol is used for retrieving e-mail from a remote server?
A. SMTP
B. POP3
C. FTP
D. SSL
Answer: B
14. The ______________ protocol is a mail protocol that stores all incoming and outgoing mail
on the server for access by clients from anywhere.
A. Interactive Mail Access Protocol(IMAP)
B. Simple Mail Transfer Protocol (SMTP)
Answer: A
54
Self Assessment Quiz
15.Simple Mail Transfer Protocol uses port 25. State true or false.
Answer: True
16. The File Transfer Protocol uses control connection for sending ______________ and data
connection for sending __________.
Answer: The File Transfer Protocol uses control connection for sending control information and
data connection for sending files.
55
Self Assessment Quiz
Answer: B
Answer: A
56
Self Assessment Quiz
Answer: B
20. TELNET is secure enough to be used over the internet. State true or false.
Answer: False
57
World Wide Web
58
Is the Internet same as the World Wide Web?
In 1994, Tim Berners-Lee with the help of Massachusetts Institute of Technology founded
the World Wide Web Consortium (W3C), an international community which is devoted to
developing ‘Open web standards’.
The W3C describes itself as,
http://www.example.com/specials/polar.gif
Uniform Resource
Locator
Uniform Resource
Identifier
Uniform Resource
Name
http:// Scheme
www.yahoo.com Address
Resource
/images/logo.gif location
76
Self Assessment Quiz
2. WWW is:
A. Same as the internet.
B. A system of interlinked hypertext documents accessed via the internet.
Answer: B
Answer: A
77
Self Assessment Quiz
Answer: A
78
Self Assessment Quiz
Answer: A, B
79
Self Assessment Quiz
9. Communication between the web client and web server happens using:
A. HTTP
B. TCP
Answer: A
12. _______ serves as a unique resource name for a resource on the web.
80
Hyper Text Transfer Protocol
81
Hyper Text Transfer Protocol
Hyper Text Transfer Protocol or HTTP is the protocol that is used to enable a web
browser and a web server to communicate.
HTTP Request
Client Server
HTTP Response
Method URI HTTP version HTTP version Status code Start line
Body
Requested Resource
Method Description
GET Used to get a named resource from the server using URI.
HEAD Similar to GET, but transfers the status line and header
section of the message
90
Self Assessment Quiz
Answer: A
Answer: A
91
Self Assessment Quiz
Answer: B
Answer: D
92
Self Assessment Quiz
6. HTTP is a :
A. Connectionless protocol
B. Connection based but stateless protocol
C. Connectionless and stateless protocol
Answer: C
Answer: A
8. Processing of all HTTP requests after the first request are dependent on the previous
request.
A. Yes
B. No
Answer: B
93
Self Assessment Quiz
Answer: B
10. The HTTP method used to send credit card information is:
A. GET
B. PUT
C. POST
Answer: C
Answer: A
94
Web Applications
95
Web Application
A Web application (Web app) is an application program that is stored on a remote server
and delivered over the Internet through a browser interface.
It can be:
Static Web Application
• A collection of related web pages that may contain text, links, audio, images and videos.
• It requires only client-side processing.
Dynamic Web Application
• A dynamic web application is interactive.
• They can automatically update different sections based on information from other
applications or databases. Users see different inputs based on the input given.
• Dynamic web applications require back-end processing in addition to client-side
processing.
• Facebook app is an example of dynamic web application.
Reference Material – Provided and to be used for learning purposes only 96
Static and Dynamic Web Applications
Different web technologies are required to accomplish these functions. Web development
can be divided into two categories:
1. Front-end Web Development
2. Back-end Web Development
Back-end development - Most of the code that makes a web application work is on the
back-end.
• The back-end code runs on the server therefore, a back-end developer must have a good
understanding of the programming languages, database and server architecture.
• The server-side programming can be divided into four main components:
The Servers
Databases
Middleware
2. Different users are shown different output based on the input given in a:
A. Static application
B. Dynamic application
3. Static web applications require backend processing as well as client side programming.
State true or false.
5. Middleware is a software that connects the application’s front-end to its back-end. State
true or false.
10
0
Web Technologies
Web Services
10
1
Web Technologies
Web technologies is a general term referring to the many languages and multimedia
packages that are used in conjunction with one another, to produce dynamic web sites. Some
of the important technologies are:
• Hyper Text Markup Language (HTML) - HTML is the standard markup language
for creating web pages and web applications.
• Cascading Style Sheets (CSS) - the Cascading Styling Sheets is used to style an HTML
document.
• JavaScript - It is a dynamic programming language which when applied to a HTML
document can make the websites interactive with the user.
• Extensible Markup Language (XML) - it is an extensible language which can be used
to create specific mark-up languages such as chemical mark-up.
• ASP.NET - ASP .NET is a web framework for building dynamic web sites, web
applications and web services.
10
Reference Material – Provided and to be used for learning purposes only
2
Web Technologies
• Servlets – It is a server-side programming language. An efficient and powerful solution
for creating dynamic web content.
• Java Server Pages (JSP) - The Java Server Pages is a server-side technology that is
used to create dynamic web pages based on HTML, XML or other document types. Java
code is inserted into HTML using JSP tag <% ----Java code----%>.
• Hypertext Preprocessor (PHP) - PHP is an open source general purpose scripting
language for server-side development. It can be embedded in HTML.
• Asynchronous JavaScript And XML (AJAX) - AJAX is not a programming language
in itself. It uses the XMLHttpRequest object to request data from the server and java
script and HTML DOM to display or use the data. The most appealing characteristic of
the AJAX is that it can communicate with the server, exchange data and update a page
without even refreshing the page.
We will learn about HTML, CSS, JavaScript, XML and PHP in the coming chapters.
10
Reference Material – Provided and to be used for learning purposes only
3
Web Services analogy
Consider the aircraft reservation software,
• In addition to doing reservations, the software also requires to communicate with e-
commerce sites like PayPal for payments made online.
• But we know that the reservation system and the PayPal software are separate systems
written in different languages.
• Communication between the two heterogeneous software systems happens through a
special kind of web application known as a web service.
Web
Services
10
Reference Material – Provided and to be used for learning purposes only
4
Web Services
• Web service is a service offered by one electronic device to another via the World Wide
Web.
10
Reference Material – Provided and to be used for learning purposes only
5
Web Service Components
10
Reference Material – Provided and to be used for learning purposes only
6
SOAP – Simple Object Access Protocol
SOAP is an XML based messaging protocol which allows programs running on different
operating systems such as Windows and Linux to communicate using HTTP and XML.
INTERNET
10
Reference Material – Provided and to be used for learning purposes only
7
REST – Representational State Transfer
• REST was defined by Roy Fielding in 2000.
• REST is an architectural style for developing web services. It uses HTTP for accessing
resources, but unlike SOAP the web service developed using REST are light weight and
use less bandwidth.
10
Reference Material – Provided and to be used for learning purposes only
8
REST – Representational State Transfer
• REST defines a way of accessing resources such as documents, pictures or videos which
reside on a different environment.
• The key elements of RESTful implementation are:
1. Resources – the resource itself.
2. Request Verbs – to describe what to do with the resource. The verbs include GET, POST,
DELETE, PUT.
3. Request Header – additional information such as authorization details.
4. Request Body – contains Data, usually sent when POST is used.
5. Response Body – an XML document with the data.
6. Response Status Codes – returned with the response indicating whether there is any error or
response has been sent.
10
Reference Material – Provided and to be used for learning purposes only
9
REST - Example
Let us assume a RESTful web service is defined at a particular location. The client can use
any HTTP verbs to make the request. For Example,
• POST – This would be used to create a new employee using the RESTful web service
• GET - This would be used to get a list of all employee using the RESTful web service
• PUT - This would be used to update all employee using the RESTful web service
• DELETE - This would be used to delete all employee using the RESTful web service
WSDL
Defines Defines
Web Client
Web Service
Application
WEB
• UDDI is a standard for describing, publishing, and discovering the web services
provided by a particular service provider.
• It acts as a repository on which the WSDL files are hosted.
11
3
Self Assessment Quiz
1. _____________ is a standard language for creating web pages.
A. HTML
B. CSS
Answer: A
Answer: A
11
4
Self Assessment Quiz
4. ASP .NET is a web framework for building dynamic web sites, web applications and web
services. State true or false.
Answer: true
11
5
Self Assessment Quiz
6. PHP is:
A. A client-side scripting language.
B. An open source scripting language for server side programming.
Answer: B
7. AJAX is a:
A. Front-end development technology
B. Back-end development technology
C. A group of technologies which enable web page update without reloading
D. A web service
Answer: C
11
6
Self Assessment Quiz
9. SOAP is an:
A. Web technology
B. XML-based messaging protocol
C. a web service
D. a web application
Answer: B
10. Web Services Description Language is an XML file describing what the web service does
and where it is located. (True/False)
Answer: True
11
7
Self Assessment Quiz
Answer: B
11
8
Self Assessment Quiz
14. UDDI is a:
A. a protocol.
B. an architectural style for developing web services.
C. a repository for WSDL files.
D. a language for developing web services.
Answer: C
11
9
E-book Links
Module
Keyword/Topic E-Book Name Chapter Page Number URL Comments
/Unit
https://passhojao.com/atta
chments/7c8727519c30b
8baa05ee92432e1d9ecdb
8075d7/store/9f2d8d0629
Web Technologies
6185d04b4eb79f6536879
Introduction and - Acomputer Defines internet and
639111d3feef8464d5574
1 history of Science Chapter 1 Page No: 1-4 explains the history of
7a803923/Web+Technolo
internet Perspective by internet.
gies+-
Jeffery C. Jackson
+A+Computer+Science+
Perspective+-
+J.+Jackson+%28Pearso
n%2C+2007%29.pdf
https://passhojao.com/atta
chments/7c8727519c30b
8baa05ee92432e1d9ecdb
8075d7/store/9f2d8d0629
Web Technologies
6185d04b4eb79f6536879
- Acomputer Defines the basic
Internet 639111d3feef8464d5574
2 Science Chapter 1 Page No: 4-9 internet protocols like
Protocols 7a803923/Web+Technolo
Perspective by TCP, IP and UDP.
gies+-
Jeffery C. Jackson
+A+Computer+Science+
Perspective+-
+J.+Jackson+%28Pearso
n%2C+2007%29.pdf
12
0
E-book Links
Module
Keyword/Topic E-Book Name Chapter Page Number URL Comments
/Unit
12
1
Assignment
12
2
Assignment
Based on the understanding of Subject in Unit I, You need to find solution of below problem
statement:
1. Using the http://whatismyipaddress.com/ link find the IP address of your computer.
2. You can use Google and find out how you can use ipconfig command to find the IP of
your computer and write down the detailed steps.
3. Prepare a document to show how Hyper Text Transfer Protocol works and illustrate
using an example.
4. Find the ISP and speed of internet for your educational institution.
5. Prepare a list of ipv4 and corresponding ipv6 addresses for all computers in the
computer lab.
12
Reference Material – Provided and to be used for learning purposes only
3