Web fundamentals: Clients, Servers, and Communication

Slides:



Advertisements
Similar presentations
Project 1 Introduction to HTML.
Advertisements

1 Web Development & Design Foundations with XHTML Chapter 1 Key Concepts.
The Internet Useful Definitions and Concepts About the Internet.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Web Essentials: Clients, Servers,
1st Project Introduction to HTML.
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
Chapter ONE Introduction to HTML.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. 1.
1 Web Developer & Design Foundations with XHTML Chapter 1 Key Concepts.
1 Web Developer Foundations: Using XHTML Chapter 1 Key Concepts.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. Revised 1/12/2015 by William Pegram 1.
HTML, XHTML, and CSS Sixth Edition Chapter 1 Introduction to HTML, XHTML, and CSS.
CIS 1310 – HTML & CSS 1 Introduction to the Internet.
1 Web Development & Design Foundations with XHTML Chapter 1 Key Concepts.
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. 1.
Introduction to Internet. Chapter 1 Objectives Origins of the Internet Packets and Routers TCP/IP DNS HTTP URL Client-Server.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Chapter 1 Introduction to HTML, XHTML, and CSS HTML5 & CSS 7 th Edition.
INTRODUCTION Dr Mohd Soperi Mohd Zahid Semester /16.
CIS 1203 Web Technologies Introduction to the Internet and the WWW.
1 ** THE INTERNET ** Large, worldwide collection of networks that use a common protocol to communicate with each other A network of networks.
HTML PROJECT #1 Project 1 Introduction to HTML. HTML Project 1: Introduction to HTML 2 Project Objectives 1.Describe the Internet and its associated key.
Internet Essentials. The History of the Internet The Internet started when the Advanced Research Projects Agency (ARPA) of the United States Defense Department.
Web Development & Design Foundations with XHTML Chapter 1 Key Concepts 1.
Internet and World Wide Web Introduction to the Internet.
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.
4.01 How Web Pages Work.
Introduction to the Internet
4.01 How Web Pages Work.
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
Web Development & Design Foundations with HTML5 8th Edition
4.01 How Web Pages Work.
Chapter 10: Web Basics.
Project 1 Introduction to HTML.
Instructor Materials Chapter 5 Providing Network Services
Introduction to the WWW
WWW and HTTP King Fahd University of Petroleum & Minerals
CISC103 Web Development Basics: Web site:
JavaScript and Ajax (Internet Background)
Chapter 1 Introduction to HTML.
CNIT 131 Internet Basics & Beginning HTML
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Introduction To Web Design
E-commerce | WWW World Wide Web - Concepts
Project 1 Introduction to HTML.
E-commerce | WWW World Wide Web - Concepts
Web Design Introduction to the Internet Week One
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
A Brief Introduction to the Internet
Web Development & Design
The Internet and HTTP and DNS Examples
Basics of Web Design Chapter 1 Internet & Web Basics Key Concepts
1 Introduction to the Internet.
E-Business Tenth Edition
ACT102 Introduction to web design
Multimedia and Networks
Web Design & Development
CS134 Web Design & Development
ACT102 Introduction to web design
Chapter 1 Web Essentials: Clients, Servers, and Communication
HyperText Transfer Protocol
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Presentation transcript:

Web fundamentals: Clients, Servers, and Communication

SWE 444:: based on Jeffrey C. Jackson’s slides The Internet Internet: the network of networks connected via the public backbone and communicating using TCP/IP communication protocol SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Internet Protocols Communication protocol: how computers talk how you answer and end call, what language you speak, etc. Internet protocols developed as part of ARPANET research ARPANET began using TCP/IP in 1982 Designed for use both within local area networks (LAN’s) and between networks SWE 444:: based on Jeffrey C. Jackson’s slides

Internet Protocol (IP) IP is the fundamental protocol defining the Internet (as the name implies!) IP address: 32-bit number (in IPv4) connected with at most one device at a time (although device may have more than one) Written as four dot-separated bytes, e.g. 192.0.34.166 SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides IP IP function: transfer data from source device to destination device IP source software creates a packet representing the data Header: source and destination IP addresses, length of data, etc. Data itself If destination is on another LAN, packet is sent to a gateway that connects to more than one network SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides IP Source Network 1 Gateway Destination Gateway Network 3 Network 2 SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides IP Source LAN 1 Gateway Destination Gateway LAN 2 Internet Backbone SWE 444:: based on Jeffrey C. Jackson’s slides

Transmission Control Protocol (TCP) Limitations of IP: No guarantee of packet delivery (packets can be dropped) Communication is one-way (source to destination) TCP adds concept of a connection on top of IP Provides guarantee that packets delivered Provide two-way (full duplex) communication SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides TCP { Source Destination Can I talk to you? Establish connection. OK. Can I talk to you? OK. { Here’s a packet. Send packet with acknowledgment. Got it. { Here’s a packet. Resend packet if no (or delayed) acknowledgment. Here’s a resent packet. Got it. SWE 444:: based on Jeffrey C. Jackson’s slides

Domain Name Service (DNS) DNS is the “phone book” for the Internet Map between host names and IP addresses Host names Labels separated by dots, e.g., www.example.org Final label is top-level domain Generic: .com, .org, etc. Country-code: .us, .il,.sa, etc. SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides World Wide Web Originally, one of several systems for organizing Internet-based information Characteristic of Web: support for hypertext (text containing links) Communication via Hypertext Transport Protocol (HTTP) Document representation using Hypertext Markup Language (HTML) SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides World Wide Web The Web is the collection of machines (Web servers) on the Internet that provide information, above all HTML documents, via HTTP. Machines that access information on the Web are known as Web clients. A Web browser is software used by an end user to access the Web. SWE 444:: based on Jeffrey C. Jackson’s slides

Hypertext Transport Protocol (HTTP) HTTP is based on the request-response communication model: Client sends a request Server sends a response HTTP is a stateless protocol: The protocol does not require the server to remember anything about the client between requests. SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides HTTP Normally implemented over a TCP connection standard browser-server interaction: User enters Web address in browser Browser uses DNS to locate IP address Browser opens TCP connection to server Browser sends HTTP request over connection Server sends HTTP response to browser over connection Browser displays body of response in the client area of the browser window SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides HTTP The information transmitted using HTTP is often totally text Can use the Internet’s Telnet protocol to simulate browser request and view server response SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Client Caching A cache is a local copy of information gets from some other source SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Client Caching Client Server Browser Web Server 1. HTTP request for image 2. HTTP response containing image 3. Store image Cache SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Client Caching Client Server Browser Web Server This… HTTP request for image HTTP response containing image I need that image again… Cache SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Client Caching Client Server Browser Web Server I need that image again… Get image … or this Cache SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Client Caching Cache advantages (Much) faster than HTTP request/response Less network traffic Less load on server Cache disadvantage Cached copy of resource may be invalid (inconsistent with remote version) SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Web Clients Many possible web clients: Text-only “browser” Mobile phones Robots (software-only clients) etc. We will focus on traditional web browsers SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Web Browsers Primary tasks: Convert web addresses (URL’s) to HTTP requests Communicate with web servers via HTTP make (properly display) documents returned by a server SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Web Browsers Standard features Save web page to disk Fill forms automatically (passwords, CC numbers, …) Set preferences (language, character set, cache and HTTP parameters) Modify display style (e.g., increase font sizes) Choose browser themes (skins) View history of web addresses visited Bookmark favorite pages for easy return SWE 444:: based on Jeffrey C. Jackson’s slides

SWE 444:: based on Jeffrey C. Jackson’s slides Web Browsers Additional functionality: Execution of scripts (e.g., drop-down menus) Event handling (e.g., mouse clicks) GUI for controls (e.g., buttons) Secure communication with servers Display of non-HTML documents (e.g., PDF) via plug-ins SWE 444:: based on Jeffrey C. Jackson’s slides

URL Uniform Resource Locator Represents the address of a resource on the Internet. 25 Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson’s slides

Web Standards and the W3C Consortium W3C – World Wide Web Consortium takes a proactive role in developing recommendations and prototype technologies related to the Web produces specifications, called Recommendations, in an effort to standardize web technologies WAI – Web Accessibility Initiative

Web Accessibility WAI – Web Accessibility Initiative Develops recommendations for web content developers, web authoring tool developers, developers of web browsers, and developers of other user agents to facilitate use of the web by those with special needs. Section 508 of the Rehabilitation Act requires that government agencies must give individuals with disabilities access to information technology that is comparable to the access available to others

Markup Languages SGML HTML Standard Generalized Markup Language A standard for specifying a markup language or tag set HTML Hypertext Markup Language The set of markup symbols or codes placed in a file intended for display on a web browser.

Markup Languages (2) XML XHTML eXtensible Markup Langauge A text-based language designed to describe, deliver, and exchange structured information. It is not intended to replace HTML extends the power of HTML by separating data from presentation. XHTML eXtensible Hypertext Markup Language Developed by the W3C as the reformulation of HTML 4.0 as an application of XML. It combines the formatting strengths of HTML 4.0 and the data structure and extensibility strengths of XML.

Markup Languages (3) The relationship between XHTML, HTML, and XML XML Syntax