Web Server Design Week 6 Old Dominion University

Slides:



Advertisements
Similar presentations
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Advertisements

Web Server Design Week 5 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/10/10.
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.
Web Server Design Week 14 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 4/14/10.
Web Server Design Week 8 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 3/3/10.
Web Server Design Week 4 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/03/10.
Web Server Design Assignment #1: Basic Operations Due: 02/03/2010 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin.
Web Server Design Week 11 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 3/24/10.
Web Server Design Assignment #2: Conditionals & Persistence Due: 02/24/2010 Old Dominion University Department of Computer Science CS 495/595 Spring 2010.
Web Server Design Week 2 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 1/20/10.
Web Server Design Week 7 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/24/10.
Web Server Design Week 13 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 4/7/10.
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 7 Omar Meqdadi Department of Computer Science and Software Engineering University of.
Web Server Design Week 6 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 2/17/10.
Web Server Design Week 10 Old Dominion University Department of Computer Science CS 495/595 Spring 2010 Martin Klein 3/17/10.
Web Server Design Week 5 Old Dominion University Department of Computer Science CS 495/595 Spring 2012 Michael L. Nelson 02/07/12.
Web Programming Week 1 Old Dominion University Department of Computer Science CS 418/518 Fall 2007 Michael L. Nelson 8/27/07.
Web Server Design Week 1 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 1/09/06.
Web Server Design Week 13 Old Dominion University Department of Computer Science CS 495/595 Spring 2012 Michael L. Nelson 04/03/12.
Web Server Design Week 15 Old Dominion University Department of Computer Science CS 495/595 Spring 2009 Michael L. Nelson 4/20/09.
Web Server Design Week 3 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 1/23/06.
Web Server Design Week 6 Old Dominion University Department of Computer Science CS 495/595 Spring 2006 Michael L. Nelson 2/13/06.
What’s Really Happening
Block 5: An application layer protocol: HTTP
HTTP – An overview.
The Hypertext Transfer Protocol
Web Server Design Week 10 Old Dominion University
Web Server Design Week 4 Old Dominion University
Web Server Design Week 1 Old Dominion University
Web Server Design Assignment #2: Conditionals & Persistence
Web Server Design Week 8 Old Dominion University
Web Server Design Week 11 Old Dominion University
Web Server Design Week 7 Old Dominion University
Web Server Design Assignment #5 Extra Credit
Web Server Design Week 4 Old Dominion University
Web Server Design Week 15 Old Dominion University
Web Server Design Week 5 Old Dominion University
Group 3: Olena Hunsicker and Divya Josyula
CS 5565 Network Architecture and Protocols
Web Server Design Assignment #2: Conditionals & Persistence
Web Server Design Week 2 Old Dominion University
Web Server Design Week 8 Old Dominion University
Web Server Design Week 1 Old Dominion University
Web Server Design Week 8 Old Dominion University
Web Server Design Assignment #2: Conditionals & Persistence
Old Dominion University Department of Computer Science
Web Server Design Week 10 Old Dominion University
Web Server Design Week 8 Old Dominion University
Web Server Design Week 3 Old Dominion University
Web Server Design Week 11 Old Dominion University
Web Server Design Week 5 Old Dominion University
Web Server Design Week 11 Old Dominion University
Web Server Design Week 3 Old Dominion University
Web Server Design Week 4 Old Dominion University
HTTP Hypertext Transfer Protocol
Web Server Design Week 16 Old Dominion University
Web Server Design Week 12 Old Dominion University
Web Server Design Week 12 Old Dominion University
Web Server Design Week 14 Old Dominion University
Web Server Design Assignment #1: Basic Operations
Web Server Design Week 6 Old Dominion University
Web Server Design Assignment #5 Extra Credit
Web Server Design Week 3 Old Dominion University
Web Server Design Week 3 Old Dominion University
Old Dominion University Department of Computer Science
Web Server Design Week 7 Old Dominion University
Web Programming Week 1 Old Dominion University
MSc Internet Computing
Web Server Design Week 7 Old Dominion University
Presentation transcript:

Web Server Design Week 6 Old Dominion University Department of Computer Science CS 495/595 Spring 2009 Michael L. Nelson <mln@cs.odu.edu> 2/16/09

History… In the prehistoric days, we used “inetd” http://en.wikipedia.org/wiki/Inetd In the very early days, web pages had few images, so 1 TCP connection per URL was not so bad HTTP/1.0 Keep-Alive extension added (but not officially supported) to say “don’t hang up” HTTP/1.1 Persistent connections (as they are now called) are the norm (see section 19.7.1, RFC 2068; section 19.6.2, RFC 2616)

Latency in HTTP/1.0 image size = 2.5k image size = 45k Figs 6-1 & 6-2 from Padmanabhan & Mogul, “Improving HTTP Latency”,Proceedings of 2nd WWW Conference, 1994 http://dx.doi.org/10.1016/0169-7552(95)00106-1 http://www.geocities.com/archu_s_r/itp/httplatency.pdf

Long-Lived Connections If the client does not send a “Connection: close” header, the server can assume the client wishes to maintain the TCP connection If the server sends a “Connection: close” header, the session is over

Long-Lived Connections AIHT:~/Desktop/cs595-s06 mln$ telnet www.cs.odu.edu 80 | tee 6-1.out Trying 128.82.4.2... Connected to xenon.cs.odu.edu. Escape character is '^]'. HEAD /~mln/teaching/cs595-s06/a1-test/ HTTP/1.1 Host: www.cs.odu.edu HTTP/1.1 200 OK Date: Sun, 12 Feb 2006 20:58:49 GMT Server: Apache/1.3.26 (Unix) ApacheJServ/1.1.2 PHP/4.3.4 Content-Type: text/html HEAD /~mln/teaching/cs595-s06/a1-test/1/ HTTP/1.1 Date: Sun, 12 Feb 2006 20:58:55 GMT HEAD /~mln/teaching/cs595-s06/a1-test/2/ HTTP/1.1 Date: Sun, 12 Feb 2006 20:59:01 GMT Last-Modified: Sun, 29 Jan 2006 18:43:15 GMT ETag: "1f4de2-790-43dd0cc3" Accept-Ranges: bytes Content-Length: 1936 X-Pad: avoid browser bug Connection closed by foreign host. request response request response request response

Pipelining Requests Section 8.1.2.2 “A client that supports persistent connections MAY "pipeline" its requests (i.e., send multiple requests without waiting for each response). A server MUST send its responses to those requests in the same order that the requests were received.”

Pipelined Requests 3 requests 3 responses AIHT:~/Desktop/cs595-s06 mln$ telnet www.cs.odu.edu 80 | tee 6-2.out Trying 128.82.4.2... Connected to xenon.cs.odu.edu. Escape character is '^]'. HEAD /~mln/teaching/cs595-s06/a1-test/ HTTP/1.1 Host: www.cs.odu.edu HEAD /~mln/teaching/cs595-s06/a1-test/1/ HTTP/1.1 HEAD /~mln/teaching/cs595-s06/a1-test/2/ HTTP/1.1 HTTP/1.1 200 OK Date: Sun, 12 Feb 2006 21:08:44 GMT Server: Apache/1.3.26 (Unix) ApacheJServ/1.1.2 PHP/4.3.4 Content-Type: text/html Last-Modified: Sun, 29 Jan 2006 18:43:15 GMT ETag: "1f4de2-790-43dd0cc3" Accept-Ranges: bytes Content-Length: 1936 X-Pad: avoid browser bug Connection closed by foreign host. 3 requests 3 responses

Error Responses in Pipeline AIHT:~/Desktop/cs595-s06 mln$ telnet www.cs.odu.edu 80 | tee 6-3.out Trying 128.82.4.2... Connected to xenon.cs.odu.edu. Escape character is '^]'. HEAD /~mln/teaching/cs595-s06/a1-test/ HTTP/1.1 Host: www.cs.odu.edu HEAD /~mln/teaching/cs595-s06/a1-test/XASDFASDASDF/ HTTP/1.1 HEAD /~mln/teaching/cs595-s06/a1-test/2/ HTTP/1.1 HTTP/1.1 200 OK Date: Sun, 12 Feb 2006 21:19:37 GMT Server: Apache/1.3.26 (Unix) ApacheJServ/1.1.2 PHP/4.3.4 Content-Type: text/html HTTP/1.1 404 Not Found Content-Type: text/html; charset=iso-8859-1 Date: Sun, 12 Feb 2006 21:19:38 GMT Last-Modified: Sun, 29 Jan 2006 18:43:15 GMT ETag: "1f4de2-790-43dd0cc3" Accept-Ranges: bytes Content-Length: 1936 X-Pad: avoid browser bug Connection closed by foreign host. this error does not terminate the session