The Web: some jargon. User agent for Web is called a browser: Web page: Most Web pages consist of: Server for Web is called Web server:



Similar documents
Application Layer: HTTP and the Web. Srinidhi Varadarajan

Network Technologies

Protocolo HTTP. Web and HTTP. HTTP overview. HTTP overview

The Web History (I) The Web History (II)

1. When will an IP process drop a datagram? 2. When will an IP process fragment a datagram? 3. When will a TCP process drop a segment?

CONTENT of this CHAPTER

CS640: Introduction to Computer Networks. Applications FTP: The File Transfer Protocol

1 Introduction: Network Applications

DATA COMMUNICATOIN NETWORKING

Lecture 8a: WWW Proxy Servers and Cookies

Lecture 8a: WWW Proxy Servers and Cookies

Application-layer protocols

Cookies Overview and HTTP Proxies

HTTP. Internet Engineering. Fall Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

Internet Technologies. World Wide Web (WWW) Proxy Server Network Address Translator (NAT)

World Wide Web. Before WWW

The Hyper-Text Transfer Protocol (HTTP)

Project #2. CSE 123b Communications Software. HTTP Messages. HTTP Basics. HTTP Request. HTTP Request. Spring Four parts

Content'Delivery'Infrastructure' HTTP'Overview' A'Web'Page' Computer Networks. Lecture'9:'HTTP'

Outline Definition of Webserver HTTP Static is no fun Software SSL. Webserver. in a nutshell. Sebastian Hollizeck. June, the 4 th 2013

By Bardia, Patit, and Rozheh

Evolution of the WWW. Communication in the WWW. WWW, HTML, URL and HTTP. HTTP Abstract Message Format. The Client/Server model is used:

HTTP Protocol. Bartosz Walter

Hypertext for Hyper Techs

Review of Networking Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

Computer Networks. Lecture 7: Application layer: FTP and HTTP. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

WHAT IS A WEB SERVER?

Chapter 27 Hypertext Transfer Protocol

Lecture 2. Internet: who talks with whom?

reference: HTTP: The Definitive Guide by David Gourley and Brian Totty (O Reilly, 2002)

Data Communication I

Internet Technologies 4-http. F. Ricci 2010/2011

INF3190 Application Layer DNS, Web, Mail

CloudOYE CDN USER MANUAL

Lektion 2: Web als Graph / Web als System

URLs and HTTP. ICW Lecture 10 Tom Chothia

No. Time Source Destination Protocol Info HTTP GET /ethereal-labs/http-ethereal-file1.html HTTP/1.

Modern Web Development From Angle Brackets to Web Sockets

THE PROXY SERVER 1 1 PURPOSE 3 2 USAGE EXAMPLES 4 3 STARTING THE PROXY SERVER 5 4 READING THE LOG 6

Internet Technologies Internet Protocols and Services

Web. Services. Web Technologies. Today. Web. Technologies. Internet WWW. Protocols TCP/IP HTTP. Apache. Next Time. Lecture # Apache.

Architecture of So-ware Systems HTTP Protocol. Mar8n Rehák


Evolution of the WWW. Communication in the WWW. WWW, HTML, URL and HTTP. HTTP - Message Format. The Client/Server model is used:

Web Programming. Robert M. Dondero, Ph.D. Princeton University

CS 5480/6480: Computer Networks Spring 2012 Homework 1 Solutions Due by 9:00 AM MT on January 31 st 2012

1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; SMTP.

CTIS 256 Web Technologies II. Week # 1 Serkan GENÇ

FTP: the file transfer protocol

Chapter 2 Application Layer

Application layer Web 2.0

Transport Layer Security Protocols

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 20

Application Example: WWW. Communication in the WWW. WWW, HTML, URL and HTTP. Loading of Web Pages. The Client/Server model is used in the WWW

BITS-Pilani Hyderabad Campus CS C461/IS C461/CS F303/ IS F303 (Computer Networks) Laboratory 3

APACHE HTTP SERVER 2.2.8

COMP 112 Assignment 1: HTTP Servers

HTTP Caching & Cache-Busting for Content Publishers

Computer Networking LAB 2 HTTP

SWE 444 Internet and Web Application Development. Introduction to Web Technology. Dr. Ahmed Youssef. Internet

Modern snoop lab lite version

Streaming Stored Audio & Video

S y s t e m A r c h i t e c t u r e

CS 188/219. Scalable Internet Services Andrew Mutz October 8, 2015

ATS Test Documentation

Using TestLogServer for Web Security Troubleshooting

Introduction to LAN/WAN. Application Layer (Part II)

Application Layer Protocols

Cyber Security Workshop Ethical Web Hacking

Lab 5: HTTP Web Proxy Server

The Application Layer. CS158a Chris Pollett May 9, 2007.

loss-tolerant and time sensitive loss-intolerant and time sensitive loss-intolerant and time insensitive

Alteon Browser-Smart Load Balancing

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

APACHE WEB SERVER. Andri Mirzal, PhD N

Proxies. Chapter 4. Network & Security Gildas Avoine

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

Table of Contents. Open-Xchange Authentication & Session Handling. 1.Introduction...3

Web Services April 21st, 2009 with Hunter Pitelka

Domain Name System (DNS)

Ethical Hacking as a Professional Penetration Testing Technique

FTP: the file transfer protocol

Instructor: Betty O Neil

CS 213, Fall 2000 Lab Assignment L5: Logging Web Proxy Assigned: Nov. 28, Due: Mon. Dec. 11, 11:59PM

HTTP Response Splitting

Installation Guide For Choic Enterprise Edition

Repeater. BrowserStack Local. browserstack.com 1. BrowserStack Local makes a REST call using the user s access key to browserstack.

Understanding Slow Start

Introduction to ServerIron ADX Application Switching and Load Balancing. Module 6: Content Switching (CSW) Revision 0310

TCP/IP Networking An Example

Elluminate Live! Access Guide. Page 1 of 7

Divide and Conquer Real World Distributed Port Scanning

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

Transcription:

The Web: some jargon Web page: consists of objects addressed by a URL Most Web pages consist of: base HTML page, and several referenced objects. URL has two components: host name and path name: User agent for Web is called a browser: MS Internet Explorer Netscape Communicator Server for Web is called Web server: Apache (public domain) MS Internet Information Server www.someschool.edu/somedept/pic.gif 2: Application Layer 1

The Web: the http protocol http: hypertext transfer protocol Web s application layer protocol client/server model client: browser that requests, receives, displays Web objects server: Web server sends objects in response to requests http1.0: RFC 1945 http1.1: RFC 2068 PC running Explorer Mac running Navigator http request http response http request http response Server running NCSA Web server 2: Application Layer 2

The http protocol: more http: TCP transport service: client initiates TCP connection (creates socket) to server, port 80 server accepts TCP connection from client http messages (applicationlayer protocol messages) exchanged between browser (http client) and Web server (http server) TCP connection closed http is stateless server maintains no information about past client requests aside Protocols that maintain state are complex! past history (state) must be maintained if server/client crashes, their views of state may be inconsistent, must be reconciled 2: Application Layer 3

time http example Suppose user enters URL www.someschool.edu/somedepartment/home.index 1a. http client initiates TCP connection to http server (process) at www.someschool.edu. Port 80 is default for http server. 2. http client sends http request message (containing URL) into TCP connection socket (contains text, references to 10 jpeg images) 1b. http server at host www.someschool.edu waiting for TCP connection at port 80. accepts connection, notifying client 3. http server receives request message, forms response message containing requested object (somedepartment/home.index), sends message into socket 2: Application Layer 4

http example (cont.) time 5. http client receives response message containing html file, displays html. Parsing html file, finds 10 referenced jpeg objects 6. Steps 1-5 repeated for each of 10 jpeg objects 4. http server closes TCP connection. 2: Application Layer 5

Non-persistent and persistent connections Non-persistent HTTP/1.0 server parses request, responds, and closes TCP connection 2 RTTs to fetch each object Each object transfer suffers from slow start But most 1.0 browsers use parallel TCP connections. Persistent default for HTTP/1.1 on same TCP connection: server, parses request, responds, parses new request,.. Client sends requests for all referenced objects as soon as it receives base HTML. Fewer RTTs and less slow start. 2: Application Layer 6

http message format: request two types of http messages: request, response http request message: ASCII (human-readable format) request line (GET, POST, HEAD commands) header lines Carriage return, line feed indicates end of message GET /somedir/page.html HTTP/1.0 User-agent: Mozilla/4.0 Accept: text/html, image/gif,image/jpeg Accept-language:fr (extra carriage return, line feed) 2: Application Layer 7

http request message: general format 2: Application Layer 8

http message format: respone status line (protocol status code status phrase) data, e.g., requested html file header lines HTTP/1.0 200 OK Date: Thu, 06 Aug 1998 12:00:15 GMT Server: Apache/1.3.0 (Unix) Last-Modified: Mon, 22 Jun 1998... Content-Length: 6821 Content-Type: text/html data data data data data... 2: Application Layer 9

http response status codes In first line in server->client response message. A few sample codes: 200 OK request succeeded, requested object later in this message 301 Moved Permanently requested object moved, new location specified later in this message (Location:) 400 Bad Request request message not understood by server 404 Not Found requested document not found on this server 505 HTTP Version Not Supported 2: Application Layer 10

Trying out http (client side) for yourself 1. Telnet to your favorite Web server: telnet www.eurecom.fr 80 Opens TCP connection to port 80 (default http server port) at www.eurecom.fr. Anything typed in sent to port 80 at www.eurecom.fr 2. Type in a GET http request: GET /~ross/index.html HTTP/1.0 By typing this in (hit carriage return twice), you send this minimal (but complete) GET request to http server 3. Look at response message sent by http server! 2: Application Layer 11

User-server interaction: authentication Authentication goal: control access to server documents stateless: client must present authorization in each request authorization: typically name, password authorization: header line in request if no authorization presented, server refuses access, sends WWW authenticate: header line in response client usual http request msg 401: authorization req. WWW authenticate: usual http request msg + Authorization:line usual http response msg usual http request msg + Authorization:line usual http response msg server time Browser caches name & password so that user does not have to repeatedly enter it. 2: Application Layer 12

User-server interaction: cookies server sends cookie to client in response mst Set-cookie: 1678453 client presents cookie in later requests cookie: 1678453 server matches presented-cookie with server-stored info authentication remembering user preferences, previous choices client usual http request msg usual http response + Set-cookie: # usual http request msg cookie: # usual http response msg usual http request msg cookie: # usual http response msg server cookiespectific action cookiespectific action 2: Application Layer 13

User-server interaction: conditional GET Goal: don t send object if client has up-to-date stored (cached) version client: specify date of cached copy in http request If-modified-since: <date> server: response contains no object if cached copy upto-date: HTTP/1.0 304 Not Modified client http request msg If-modified-since: <date> http response HTTP/1.0 304 Not Modified http request msg If-modified-since: <date> http response HTTP/1.1 200 OK <data> server object not modified object modified 2: Application Layer 14

Web Caches (proxy server) Goal: satisfy client request without involving origin server user sets browser: Web accesses via web cache client sends all http requests to web cache if object at web cache, web cache immediately returns object in http response else requests object from origin server, then returns http response to client client client http request http response http request http response Proxy server http request http response http request http response origin server origin server 2: Application Layer 15

Why Web Caching? Assume: cache is close to client (e.g., in same network) smaller response time: cache closer to client decrease traffic to distant servers link out of institutional/local ISP network often bottleneck institutional network public Internet 1.5 Mbps access link 10 Mbps LAN origin servers institutional cache 2: Application Layer 16