Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.

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

Understand Web Page Development Software Development Fundamentals LESSON 4.1.
PART 6 Application Layer
Kyung Hee University 1 1 Application Layer. 2 Kyung Hee University Position of Application Layer.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
Layer 7- Application Layer
Introduction to Web Database Processing
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
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)
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Chapter 27 HTTP and WWW.
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
1st Project Introduction to HTML.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
Chapter ONE Introduction to HTML.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Chapter 16 The World Wide Web. 2 Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic HTML.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction of Web programming Ins. Elaf Alhazmi LECTURE 1.
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.
Chapter 1: Introduction to Web
Chapter 16 The World Wide Web Chapter Goals ( ) Compare and contrast the Internet and the World Wide Web Describe general Web processing.
Chapter 33 CGI Technology for Dynamic Web Documents There are two alternative forms of retrieving web documents. Instead of retrieving static HTML documents,
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
DATA COMMUNICATION DONE BY: ALVIN SAMPATH CARLVIN SAMPATH.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
CPS120: Introduction to Computer Science The World Wide Web Nell Dale John Lewis.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
World Wide Web Hypertext model Use of hypertext in World Wide Web (WWW) WWW client-server model Use of TCP/IP protocols in WWW.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Write basic.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
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 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
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.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
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
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
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.
Distributed Control and Measurement via the Internet
WWW and HTTP King Fahd University of Petroleum & Minerals
Chapter 1 Introduction to HTML.
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 27 WWW and HTTP.
Web Page Concept and Design :
Chapter 16 The World Wide Web.
PART 6 Application Layer
INFS 230 L Internet Technology
Presentation transcript:

Kyung Hee University 1 1 Application Layer

2 Kyung Hee University Position of Application Layer

3 Kyung Hee University Role of Application Layer  Enables the user, whether human or software, to access the network  Provides user interfaces and support for services such as electronic mail, remote file access and transfer, and access to the World Wide Web

4 Kyung Hee University General Issues of Application Layer  Client-server Paradigm

5 Kyung Hee University General Issues of Application Layer  Addressing  address  address to access a web page  Types of Service  Application layer is designed to give different services to the user or user programs. l SMTP l FTP l WWW l HTTP

6 Kyung Hee University Chapter 27 WWW and HTTP

7 Kyung Hee University 27.1 ARCHITECTURE The WWW today is a distributed client/server service, in which a client using a browser can access a service using a server. However, the service provided is distributed over many locations called sites. Client (Browser) Server Uniform Resource Locator Cookies Topics discussed in this section:

Kyung Hee University 8 8 ARCHITECTURE  The WWW today is a distributed client/server service, in which a client using a browser can access a service using a server.  The service provided is distributed over many locations called sites.

Kyung Hee University 9 9  Web page  Each site holds one or more documents, refer to as Web pages.  Each web page can contain a link to other pages in the same site or at other sites.  The page can be retrieved and viewed by using browsers. ARCHITECTURE

Kyung Hee University  Client (Browser)  Browsers interpret and display a Web document.  Each browser usually consists of three parts. lThe controller receives input from the key board or the mouse. - After the document has been accessed, the controller uses one of the interpreters to display the document on the screen. lThe client protocol can be one of the protocols such as HTTP. lThe interpreter can be HTML, JAVA, or JavaScript, depending on the type of document. ARCHITECTURE

Kyung Hee University  Server  The Web page is stored at the server.  Each time a client request arrives, the corresponding document is sent to the client.  To improve efficiency, servers normally store requested files in a cache in memory.  A server can also become more efficient through multithreading or multiprocessing. lA server can answer more than one request at a time. ARCHITECTURE

Kyung Hee University  Uniform Resource Locator  A client that wants to access a Web page needs the address.  To facilitate the access of documents distributed through the world, HTTP uses locators.  The Uniform Resource Locator (URL) is a standard for specifying any kind of information on the Internet.  The URL defines 4 things: protocol, host computer, port, and path. ARCHITECTURE

Kyung Hee University  Uniform Resource Locator (cont’d)  PROTOCOL : The client/server program used to retrieve the document. The most common today is HTTP. l http, ftp, and so on.  HOST : The computer on which the information is locate, although the name of the computer can be an alias. lComputers are given alias names that usually begin to the computers “WWW”.  PORT : The URL can optionally contain the port No. of the server. lIf the port is included, it is inserted between the host and the path, and separate from the host by a colon.  PATH : The path name of the file where the information is located. ARCHITECTURE

Kyung Hee University  Cookies  Information the server has gathered about the client such as name, registration number, and so on.  Creation and storage of Cookies lWhen a server receives a request from a client, it stores information about the client in a file or a string. lThe information may include the domain name of the client, the contents of the cookie, timestamp, and other information depending on the implementation. lThe server includes the cookies in the response that it sends to the client. lWhen the client receives the response, the browser stores the cookies in the cookie directory, which is sorted by the server name. ARCHITECTURE

Kyung Hee University WEB DOCUMENTS The documents in the WWW can be grouped into three broad categories: static, dynamic, and active. The category is based on the time at which the contents of the document are determined. Static Documents Dynamic Documents Active Documents Topics discussed in this section:

Kyung Hee University WEB DOCUMENTS  Categories of Web documents

Kyung Hee University Static Documents  Static documents are fixed-content documents that are created and stored in a server.  The client can get only a copy of the document.  The contents of the file are determined when the file is created, not when it is used.  Of course, the contents in the server can be changed, but the user cannot change them.  The user can then use a browsing program to display the document.

Kyung Hee University HTML (Hypertext Markup Language)  HTML is a language for creating Web pages  The term markup language comes from the book publishing industry.  A markup language allows us to embed formatting instructions in the file itself.  The instructions are included with the text.  In this way, any browser can read the instructions and format the text according to the specific workstation.

Kyung Hee University HTML (Hypertext Markup Language)  The Web page is made of two parts : the head and the body  Head : contains the title of the page and other parameters that the browser will use.  Body : includes the text (actual information in a page) and the tag.  Tag : define the appearance of the document.

Kyung Hee University HTML (Hypertext Markup Language)  One commonly used tag category is the text tags such as and ; and ; and and  Bold Tag  We put beginning and ending boldface tags (marks) in the text. Figure 27.5 Boldface tags Figure 27.6 Effect of boldface tags

Kyung Hee University HTML  Common tags Beginning Tag Ending Tag Meaning Skeletal Tags Defines an HTML document Defines the head of the document Defines the body of the document Title and Header Tags Defines the title of the document Defines the title of the document

Kyung Hee University HTML  Common tags Beginning Tag Ending Tag Meaning Text Formatting Tags Boldface Italic Underlined Subscript Superscript Data Flow Tag Centered Line break

Kyung Hee University HTML Beginning Tag Ending Tag Meaning List Tags Ordered list Unordered list An item in a list Image Tag Defines an image Hyperlink Tag Defines an address (hyperlink) Executable Contents The document is an applet

Kyung Hee University HTML (Hypertext Markup Language)  Image Tag  Another interesting tag category is the image tag.  Nontextual information such as digitized photos or images is not a physical part of an HTML document.  But we can use an image tag to point to the file of a photo or image.

Kyung Hee University HTML (Hypertext Markup Language)  Hyperlink Tag  A third interesting category is the hyperlink tag, which is needed to link documents together.  Any item (word, phrase, or image) can refer to another document through a mechanism called an anchor.  The anchor is defined by and tags, and displayed, the anchored item is underlined, blinking, or boldfaced.  The user can click on the anchored item to go to another document. Author

Kyung Hee University Dynamic Documents Dynamic Documents  Dynamic document  Dynamic documents do not exist in a predefined format.  Dynamic document is created by a Web server whenever a browser requests the document. lBecause a fresh document is created for each request, the contents of a dynamic document can vary from one request to another. Ex) The retrieval of the time and date from a server. Time and date are kinds of information that are dynamic in that they change from moment to moment.  The server sends the result of the program to the client (browser).

Kyung Hee University Dynamic Documents  Dynamic document  does not exist in a predefined format.  is created by a Web server whenever a browser requests the document.

Kyung Hee University CGI (Common Gateway Interface)  A technology that creates and handles dynamic document.  CGI is a set of standards that defines lhow a dynamic document is written lHow data are input to the program lAnd how the output result is used.  CGI is not a new language; l instead, it allows programmers to use any of several languages such as C, C++, Bourne Shell, C shell or Perl. lThe only thing that CGI defines is a set of rules and terms that the programmer must follow.

Kyung Hee University CGI (Common Gateway Interface)  CGI  Common : defines a set of rules that is common to any language or platform.  Gateway : A CGI program can be used to access other resources such as database, graphical package and so on.  Interface : There is a set of predefined terms, variables, calls and so on, that can be used in any CGI program.

Kyung Hee University Figure 27.8 Dynamic document using CGI CGI (Common Gateway Interface)

Kyung Hee University Scripting Technologies  Scripting Technologies for Dynamic Document  The problem with CGI technology is the inefficiency that results if part of the dynamic document that is to be created is fixed and not changing from request to request.  The solution is to create a file containing the fixed part of the document using HTML and embed a script, a source code, that can be run by the server to provide the varying section. lA few technologies have been involved in creating dynamic documents using scripts. l Among the most common are Hypertext Preprocessor (PHP); Java Server Pages (JSP); Active Server Pages (ASP) and ColdFusion.

Kyung Hee University Figure 27.9 Dynamic document using server-site script Dynamic documents are sometimes referred to as server-site dynamic documents. Scripting Technologies

Kyung Hee University Active Documents  Active document  A program or a script to be run at the client site are called Active document.  The program definitely needs to be run at the client site where the animation or interaction takes place. Ex) want to run a program that creates animation graphics on the screen or a program that interacts with the user.  When a browser requests an active document, the server sends a copy of the document or a script.  The document is then run at the client (browser) site.

Kyung Hee University Active Documents  Java Applets  One way to create an active document is to use Java applets.  Java is a combination of a high-level programming language, a run-time environment, and a class library that allows a programmer to write an active document (an applet) and a browser to run it.  It can also be a stand-alone program that doesn’t use a browser.  An applet is a program written in Java on the server.

Kyung Hee University Active Documents 서버사이트에서 프로그래머는 소스 코드로 된 프로그램을 작성하고, 파일로 저장 서버사이트에서 프로그램은 컴파일 되고, 2 진 코드가 생성되어, 파일로 저장 - 식별자는 2 진 옵셋 주소로 참조 클라이언트 ( 브라우저 ) 는 2 진 코드 복사본 요청 - 복사본은 압축되어 서버 - 클라이언트로 전송 클라이언트는 그 자신의 S/W 를 사용하여, 2 진 코드를 실행 가능한 코드로 변환 클라이언트 프로그램을 수행하고, 에니메이션이나, 사용자와의 상호 작용을 할 수 있는 결과를 출력 Applet

Kyung Hee University Figure Active document using client-site script Active documents are sometimes referred to as client-site dynamic documents. Active Documents

Kyung Hee University Active Documents  Java Script  The idea of scripts in the dynamic documents can also be used for active documents.  If active part of the document is small, it can be written in a scripting language; then it can be interpreted and run by the client at the same time.  The script is in source code (text) and not in binary form.  The scripting technology used in this case is usually JavaScript.  JavaScript, which bears a small resemblance to Java, is a very high level scripting language developed for this purpose.

Kyung Hee University Web 2.0  Web 2.0 is a term describing the trend in the use of World Wide Web technology and web design that aims to enhance creativity, information sharing, and, most notably, collaboration among users.

Kyung Hee University Thank you !!