Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.

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

Chapter 1 © 2014 by Pearson Education A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
IST 535 Week 1 Class Orientation / Review of Web Basics.
Chapter 1 © 2002 by Addison Wesley Longman, Inc. 1 Chapter 1 Sebesta: Programming the World Wide Web.
IST 221 Internet Concepts and Applications Internet, WWW and HTML 1.
1 The HyperText Transfer Protocol: HTTP Nick Smith Stuart Alley Tara Tjaden.
COS 381 Internet/Intranet Programming DAY 1. © 2006 Pearson Addison-Wesley. All rights reserved. 1-2 Agenda Roll Call Introductions Blackboard Syllabus.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
Lecture 4 Web browsers, servers and HTTP Boriana Koleva Room: C54
Linux Operations and Administration
CSCI 323 – Web Development Chapter 1 - Setting the Scene We’re going to move through the first few chapters pretty quick since they are a review for most.
G51WPS Web Programming and Scripting Boriana Koleva Room: C54 Phone:
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 1. Fundamentals.
Introduction to Web Programming ICS213, 1 / 2011 Dr. Seung Hwan Kang.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Chapter 1: Introduction to Web
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Funded by DoD - Purpose:
Chapter 1 © 2003 by Addison-Wesley, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For.
Copyright © Curt Hill The Internet An Introduction.
Chapter 1 © 2005 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
1Computer Sciences Department. Web Design 3Computer Sciences Department.
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
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.
Copyright (c) 2010, Dr. Kuanchin Chen1 The Client-Server Architecture of the WWW Dr. Kuanchin Chen.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Chapter 1 Fundamentals. © 2006 Pearson Addison-Wesley. All rights reserved A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and.
Chapter 1 © 2013 by Pearson A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability - For ARPA-funded.
Chapter 1 Fundamentals. © 2006 Pearson Addison-Wesley. All rights reserved. 1-2 인터넷 응용프로그래밍 평가방법 – 중간고사 15%, 기말고사 10%, 실기시험 20% – 리포트 15% – 쪽지시험, 기타 5%
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Chapter 1 © 2003 by Addison-Wesley, Inc. 1 Chapter 1 Fundamentals.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
CHAPTER 1 Internet & World Wide Web. Topics A Brief Introduction to the Internet The World Wide Web Web Browsers Web Servers Uniform Resource Locator.
Chapter 1 Fundamentals. © 2006 Pearson Addison-Wesley. All rights reserved A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and.
1 Seminar on Service Oriented Architecture Principles of REST.
CS2043 Internet Visual Prog. / Appl. An introduction to Internet visual programming and applications. Major topics include object-oriented concepts, graphical.
Chapter 1 Fundamentals. Internet History Internet Protocols.
Chapter 1 © 2009 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
CITA 310 Section 2 HTTP (Selected Topics from Textbook Chapter 6)
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals.
Web Technologies Lecture 1 The Internet and HTTP.
Web Design A Brief Intro to the Internet Internet History Internet Protocols 2.
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.
Fundamentals. A Brief Intro to the Internet - Origins - ARPAnet - late 1960s - Network reliability - For ARPA-funded research organizations - BITnet,
JavaScript and Ajax (Internet Background) Week 1 Web site:
Simple Web Services. Internet Basics The Internet is based on a communication protocol named TCP (Transmission Control Protocol) TCP allows programs running.
Chapter 1 © 2009 by Addison Wesley Longman, Inc A Brief Intro to the Internet - Origins - ARPAnet - late 1960s and early 1970s - Network reliability.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
 J.C.R. Licklider › envisioned "Galactic Network" concept - a globally interconnected set of computers through which everyone could quickly access data.
National College of Science & Information Technology.
HTTP – An overview.
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.
Chapter 27 WWW and HTTP.
Chapter 1 Fundamentals.
1.1 A Brief Intro to the Internet
1.1 A Brief Intro to the Internet
PART 6 Application Layer
1.1 A Brief Intro to the Internet
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Fundamentals

1-2 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 A Brief Intro to the Internet Internet History Internet Protocols

1-3 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 Internet History Origins ARPAnet - late 1960s and early 1970s Network reliability For ARPA-funded research organizations BITnet, CSnet - late 1970s & early 1980s and file transfer for other institutions NSFnet Originally for non-DOD funded places Initially connected five supercomputer centers By 1990, it had replaced ARPAnet for non-military uses Soon became the network for all (by the early 1990s) NSFnet eventually became known as the Internet

1-4 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 Internet History What the Internet is: A world-wide network of computer networks At the lowest level, since 1982, all connections use TCP/IP TCP/IP hides the differences among devices connected to the Internet

1-5 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 Internet Protocols Internet Protocol (IP) Addresses Every node has a unique numeric address Form: 32-bit binary number New standard, IPv6, has 128 bits (1998) Organizations are assigned groups of IPs for their computers Problem: By the mid-1980s, several different protocols had been invented and were being used on the Internet, all with different user interfaces (Telnet, FTP, Usenet, mailto

1-6 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Web or Internet It is important to understand that the Internet and the Web are not the same thing. The Internet is a collection of computers and other devices connected by equipment that allows them to communicate with each other. The Web is a collection of software and protocols that has been installed on most, if not all, of the computers on the internet.

1-7 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 Internet Protocols Domain names Form: host-name.domain-names First domain is the smallest; last is the largest Last domain specifies the type of organization Fully qualified domain name - the host name and all of the domain names DNS servers - convert fully qualified domain names to IPs

1-8 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Domain Names movies.comedy.marxbros.com movies – host machine comedy – domain, contains movies marxbros – domain, contains comedy com – domain, specifies a company edu – educational institutions com – for profit companies org – non-profit companies gov – U.S. government in other countries, country name is often the largest domain, i.e., se for Sweden

1-9 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Figure 1.1 Domain name conversion

1-10 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Client and Server Clients and Servers are programs that communicate with each other over the Internet A Server runs continuously, waiting to be contacted by a Client Each Server provides certain services Services include providing web pages A Client will send a message to a Server requesting the service provided by that server The client will usually provide some information, parameters, with the request

1-11 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.2 The World-Wide Web A possible solution to the proliferation of different protocols being used on the Internet Origins Tim Berners-Lee at CERN proposed the Web in 1989 Purpose: to allow scientists to have access to many databases of scientific work through their own computers Document form: hypertext Pages? Documents? Resources? We’ll call them documents Hypermedia – more than just text – images, sound, etc.

1-12 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.2 The World-Wide Web Web or Internet? The Web uses one of the protocols, http, that runs on the Internet--there are several others (telnet, mailto, etc.)

1-13 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.3 Web Browsers Browsers are clients - always initiate, servers react (although sometimes servers require responses) Mosaic - NCSA (Univ. of Illinois), in early 1993 First to use a GUI, led to explosion of Web use Initially for X-Windows, under UNIX, but was ported to other platforms by late 1993 Most requests are for existing documents, using HyperText Transfer Protocol (HTTP) But some requests are for program execution, with the output being returned as a document

1-14 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.4 Web Servers Provide responses to browser requests, either existing documents or dynamically built documents Browser-server connection is now maintained through more than one request-response cycle All communications between browsers and servers use Hypertext Transfer Protocol (HTTP)

1-15 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.4 Web Server Operation Web servers run as background processes in the operating system – Monitor a communications port on the host, accepting HTTP messages when they appear All current Web servers came from either 1.The original from CERN 2.The second one, from NCSA

1-16 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.4 Web Server Operation Details Web servers have two main directories: 1.Document root (servable documents) 2.Server root (server system software) Document root is accessed indirectly by clients – Its actual location is set by the server configuration file – Requests are mapped to the actual location Virtual document trees Virtual hosts Proxy servers Web servers now support other Internet protocols

1-17 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.4 Web Server Operation : Apache Apache (open source, fast, reliable) – Directives (operation control): ServerName ServerRoot ServerAdmin, DocumentRoot Alias Redirect DirectoryIndex UserDir

1-18 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.4 Web Server Operation : IIS IIS -Operation is maintained through a program with a GUI interface

1-19 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.5 URLs General form: scheme:object-address The scheme is often a communications protocol, such as telnet or ftp For the http protocol, the object-address is: fully qualified domain name/doc path For the file protocol, only the doc path is needed

1-20 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.5 URLs Host name may include a port number, as in zeppo:80 (80 is the default, so this is silly) URLs cannot include spaces or any of a collection of other special characters (semicolons, colons,...) The doc path may be abbreviated as a partial path The rest is furnished by the server configuration If the doc path ends with a slash, it means it is a directory

1-21 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.6 Multipurpose Internet Mail Extensions (MIME) Originally developed for Used to specify to the browser the form of a file returned by the server (attached by the server to the beginning of the document) Type specifications Form: type/subtype Examples: text/plain, text/html, image/gif, image/jpeg

1-22 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.6 Multipurpose Internet Mail Extensions (MIME) Server gets type from the requested file name’s suffix (.html implies text/html) Browser gets the type explicitly from the server Experimental types Subtype begins with x- e.g., video/x-msvideo Experimental types require the server to send a helper application or plug-in so the browser can deal with the file

1-23 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.7 The HyperText Transfer Protocol The protocol used by ALL Web communications Request Phase Form: HTTP method domain part of URL HTTP ver. Header fields blank line Message body An example of the first line of a request: GET /degrees.html HTTP/1.1

1-24 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.7 The HyperText Transfer Protocol: Methods GET - Fetch a document POST - Execute the document, using the data in body HEAD - Fetch just the header of the document PUT - Store a new document on the server DELETE - Remove a document from the server

1-25 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Table 1.1 HTTP Request Methods

1-26 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.7 HTTP Headers Four categories of header fields: General, request, response, & entity Common request fields: Accept: text/plain Accept: text/* If-Modified_since: date Common response fields: Content-length: 488 Content-type: text/html -Can communicate with HTTP without a browser > telnet blanca.uccs.edu http GET /respond.html HTTP/1.1 Host: blanca.uccs.edu

1-27 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.7 HTTP Response Form: Status line Response header fields blank line Response body Status line format: HTTP version status code explanation Example: HTTP/ OK (Current version is 1.1) Status code is a three-digit number; first digit specifies the general status 1 => Informational 2 => Success 3 => Redirection 4 => Client error 5 => Server error The header field, Content-type, is required

1-28 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.7 HTTP Response Example HTTP/ OK Date: Tues, 18 May :45:13 GMT Server: Apache (Red-Hat/Linux) Last-modified: Tues, 18 May :38:38 GMT Etag: "841fb-4b-3d1a0179" Accept-ranges: bytes Content-length: 364 Connection: close Content-type: text/html, charset=ISO Both request headers and response headers must be followed by a blank line

1-29 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Table 1.2 First Digits of HTTP Status Codes

1-30 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 The Web Programmer’s Toolbox Document languages and programming languages that are the building blocks of the web and web programming XHTML Plug-ins Filters XML Javascript Java, Perl, Ruby, PHP

1-31 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 XHTML To describe the general form and layout of documents An XHTML document is a mix of content and controls Controls are tags and their attributes Tags often delimit content and specify something about how the content should be arranged in the document Attributes provide additional information about the content of a tag

1-32 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Creating XHTML documents XHTML editors - make document creation easier Shortcuts to typing tag names, spell-checker, WYSIWYG XHTML editors Need not know XHTML to create XHTML documents

1-33 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 Plugins and Filters Plug ins Integrated into tools like word processors, effectively converting them to WYSIWYG XHTML editors Filters Convert documents in other formats to XHTML

1-34 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 Plugins and Filters: Advantages and Disadvantages Advantages of both filters and plug-ins: Existing documents produced with other tools can be converted to XHTML documents Use a tool you already know to produce XHTML Disadvantages of both filters and plug-ins: XHTML output of both is not perfect - must be fine tuned XHTML may be non-standard You have two versions of the document, which are difficult to synchronize

1-35 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 XML A meta-markup language Used to create a new markup language for a particular purpose or area Because the tags are designed for a specific area, they can be meaningful No presentation details A simple and universal way of representing data of any textual kind

1-36 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 JavaScript A client-side HTML-embedded scripting language Only related to Java through syntax Dynamically typed and not object-oriented Provides a way to access elements of HTML documents and dynamically change them

1-37 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 Java General purpose object-oriented programming language Based on C++, but simpler and safer Our focus is on applets, servlets, and JSP

1-38 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 Perl Provides server-side computation for HTML documents, through CGI Perl is good for CGI programming because: Direct access to operating systems functions Powerful character string pattern-matching operations Access to database systems Perl is highly platform independent, and has been ported to all common platforms Perl is not just for CGI

1-39 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.8 PHP A server-side scripting language An alternative to CGI Similar to JavaScript Great for form processing and database access through the Web