Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.

Slides:



Advertisements
Similar presentations
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Advertisements

PART 6 Application Layer
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
World Wide Web Basics Original version by Carolyn Watters (Dalhousie U. Computer Science)
Hypertext Transfer Protocol Kyle Roth Mark Hoover.
The Application Layer Chapter 7. Electronic Mail Architecture and Services The User Agent Message Formats Message Transfer Final Delivery.
The Internet Useful Definitions and Concepts About the Internet.
Introduction to Web Database Processing
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
Introduction to Web Interface Technology (CSE2030)
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Know how HTTP accesses data on the WWW Objectives.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Internet – Part II. What is the World Wide Web? The World Wide Web is a collection of host machines, which deliver documents, graphics and multi-media.
Chapter 27 HTTP and WWW.
2/9/2004 Web and HTTP February 9, /9/2004 Assignments Due – Reading and Warmup Work on Message of the Day.
Chapter 30 Electronic Mail Representation & Transfer
INTRODUCTION TO WEB DATABASE PROGRAMMING
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Lecture Lecture 29 Lecture Goals Development of a little Web Server Development of a little Web Server Web Server will server HTTP requests sent.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Internet Applications  DNS   TELNET  FTP  Web browsing.
Chapter 1: Introduction to Web
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
FTP (File Transfer Protocol) & Telnet
Lesson 2 — The Internet and the World Wide Web
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
TCP/IP Protocol Suite 1 Chapter 22 Upon completion you will be able to: World Wide Web: HTTP Understand the components of a browser and a server Understand.
1 Computer Communication & Networks Lecture 28 Application Layer: HTTP & WWW p Waleed Ejaz
World Wide Web Hypertext model Use of hypertext in World Wide Web (WWW) WWW client-server model Use of TCP/IP protocols in WWW.
TCP/IP Protocols Dr. Sharon Hall Perkins Applications World Wide Web(HTTP) Presented by.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
Chapter 29 World Wide Web & Browsing World Wide Web (WWW) is a distributed hypermedia (hypertext & graphics) on-line repository of information that users.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 27 HTTP and WWW.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Introduction to the World Wide Web & Internet CIS 101.
The Internet, Fourth Edition-- Illustrated 1 The Internet – Illustrated Introductory, Fourth Edition Unit B Understanding Browser Basics.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
Free Powerpoint Templates Page 1 Free Powerpoint Templates CHAPTER 1 LAB 1.1 Web Server.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
WWW and HTTP King Fahd University of Petroleum & Minerals
HTTP – An overview.
JavaScript and Ajax (Internet Background)
CNIT 131 Internet Basics & Beginning HTML
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Tutorial (4): HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
Chapter 27 WWW and HTTP.
HyperText Transfer Protocol
PART 6 Application Layer
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Traditional Internet Applications
Presentation transcript:

Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents HTTP 1

WWW: How A Browser Works WWW project was initiated by CERN (European Laboratory for Particle Physics) to create a system to handle resources necessary for scientific research. Web browsing uses client-server paradigm Browser: – Makes TCP connection – Sends request for page – Reads page If a page contains several images, Each different item - e.g., tag (image) - requires separate TCP connection HyperText Transport Protocol (HTTP) specifies commands and client-server interaction 2 Fig (text book)

How The World Wide Web Works Use client-server interaction The client: – browser program uses the Internet to contact a remote server The server: – returns a copy of the requested page with additional information A URL (Uniform Resource Locator) tells a browser which server to contact – Each URL uniquely identifies a page of information by giving the name of a remote computer and a specific page of information available from the server URL specifies – an access protocol – the domain name of the remote computer on which the server runs – any specific item 3 Fig (text book)

Inside a Browser Program Examples: Netscape Communicator, Microsoft IE A Web Browser Architecture usually consists of 3 parts: – controller: receives and interpret input from the keyboard or the mouse calls other components to perform operations specified by users (e.g., uses a client program to access a document) – client programs: uses different protocols HTTP client fetches HTML documents from WWW server optional clients: FTP client and client FTP client - access file transfer service client - send & receive s – interpreters: HTML interpreter displays HTML-formatted documents 4

Inside a Browser Program 5

Web Documents Documents in WWW can be grouped into 3 categories: – static documents: fixed-content, created and stored in the a server. – dynamic documents: created by a Web server whenever a browser requests the document. contents can vary from one request to another. – active documents: contain program to be run at the client side, e.g. animation stored in the form of binary code. transported to the client in a binary form. 6

Static Documents 7 Fig (text book) (1) A user enters a URL, causing a browser to contact a Web server and request the item (2) the server extracts the specified item from its local disk and sends a copy to the browser.

Dynamic Documents 8 Figure 24.3 (text book) (1) A browser requests a URL that corresponds to a CGI program, causing the server to start the program (2) the CGI program computes a response, which the server returns to the browser.

Dynamic Documents Dynamic documents: – e.g. documents generated using CGI A server follows these steps: – it examines the URL to find if it defines a dynamic document, e.g. with extension.cgi – if it is dynamic, then it executes the program. – it sends the output of the program to the client. 9

Active Documents 10 Figure 24.4 (text book) (1) A browser requests a URL that corresponds to an active document, (2) Server sent a copy of active program to client (browser) (3) the browser runs a copy of the active document, which then controls the screen.

Active Documents Active documents: – e.g. documents containing Javascript. Its execution is as follows: – the binary code of the program is created and stored at the server side. – upon client request, the binary code is transported to the client. – the client uses its own software to change the binary code into executable code. – the client runs the program. 11

Comparing Static, Dynamic & Active Documents Static Document Advantages: – Simplicity: straightforward formatting specifications – can be created by non-technical person – Reliability: after it has been created and tested thoroughly, a static document remains valid indefinitely – Performance: browser can (1) display static documents more rapidly and (2) place a copy on cache to speed up future requests Disadvantage: – Inflexibility: must be revised whenever information changes; not useful for reporting information that changes frequently 12

Comparing Static, Dynamic & Active Documents Dynamic Document Advantage: – Able to report current information Disadvantage: – Increase cost: more expensive to develop than static document – Inability to update information continuously: Do not deliver a continuous stream of images 13

Comparing Static, Dynamic & Active Documents Active Document Advantages: – ability to update information continuously – Ability to change the display quickly enough to show an animated image Disadvantage: – Additional cost (more programming skills needed, requires more sophisticated browser software and more powerful computer) 14

HTTP HTTP (Hypertext Transfer Protocol) – protocol used to access data on the WWW. – uses one TCP connection on well-known port 80. – two types of http messages: request, response – transfer data in the form of plain text, hypertext, audio, video, and so on. – data transferred look like SMTP messages (see Lecture note 2). 15

HTTP HTTP requests use the concept of resource locator (URL). In more detail, URL defines four things: method, host computer, port and path – Method is the protocol used to retrieve the document, e.g. FTP, & HTTP. An access protocol (see slide 3) – Host is the computer where the information is located. Domain name of the computer (see slide 3) – Port: port number of the server (optional) – Path is the pathname of the file where the information is located. Specify a specific item to request (see slide 3) 16

HTTP: Request and Response 17

HTTP: Request and Response 18 Status Line Request Line

HTTP Example: Retrieving a File 19

HTTP Example: Retrieving a File Request line – request type (method): GET – path: /usr/bin/image1 – HTTP version: 1.1 client can accept images in GIF and JPEG formats status line: – HTTP version: 1.1 – status code (a 3 digit number): 200 – status phrase: OK (200 OK indicates request is successful) Header lines defines: – date: 04-Jan-99 – server name: challenger – MIME version: (MIME (Multipurpose Internet Mail Extensions) is an SMTP extension to allow non-ASCII data to be sent through SMTP.) – length of document: 2048 bytes 20