Download presentation
Presentation is loading. Please wait.
Published byMyles Miles Modified over 9 years ago
1
The Application Layer Chapter 7 7.3
2
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The World Wide Web a)Architectural overview b)Static web pages c)Dynamic web pages, web applications d)The hypertext transfer protocol e)The mobile web f)Web search
3
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (1) a)Architecture of the Web.
4
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (2) a)Three questions had to be answered before a selected page could be displayed: b)What is the page called? c)Where is the page located? d)How can the page be accessed?
5
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (3) a)Steps that occur when link is selected: b)Browser determines the URL c)Browser asks DNS for the IP address of the server d)DNS replies e)The browser makes a TCP connection f)Sends HTTP request for the page g)Server sends the page as HTTP response h)Browser fetches other URLs as needed i)The browser displays the page j)The TCP connections are released
6
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (4) a)Some common URL schemes.
7
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (5) a)(a) A browser plug-in. (b) A helper application.
8
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (6) a)Steps server performs in main loop b)Accept a TCP connection from client c)Get path to page, name of file requested. d)Get the file (from disk). e)Send contents of the file to the client. f)Release the TCP connection.
9
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (7) a)A multithreaded Web server with a front end and processing modules.
10
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (8) a)A processing module performs a series of steps: b)Resolve name of Web page requested. c)Perform access control on the Web page. d)Check the cache. e)Fetch requested page from disk or run program f)Determine the rest of the response g)Return the response to the client. h)Make an entry in the server log.
11
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Architectural Overview (9) a)Some examples of cookies
12
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Static Web Pages (1) a)The HTML for a sample Web page.
13
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Static Web Pages (2) a)The formatted page.
14
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Static Web Pages (3) a)Some differences between HTML versions.
15
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Static Web Pages (4) a)The HTML for an order form.
16
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Static Web Pages (5) a)The formatted page.
17
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (1) a)Dynamic pages
18
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (2) a)(a) A Web page containing a form. (b) A PHP script for handling the output of the form. (c) Output from the PHP script when the inputs are ‘‘Barbara’’ and ‘‘32’’, respectively. (a) (b) (c)
19
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (3) a)Use of JavaScript for processing a form.
20
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (4) (a)Server-side scripting with PHP. (b)Client-side scripting withJavaScript.
21
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (5) a)AJAX Technologies b)HTML and CSS: present information as pages. c)DOM: change parts of pages while they are viewed. d)XML: let programs exchange data with the server. e)An asynchronous way to send and retrieve XML data. f)JavaScript as a language to bind all this together.
22
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (6) a)The DOM tree for the HTML in Fig. 7-30(a).
23
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (7) a)A simple XML document.
24
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 Dynamic Web Pages, Web Applications (8) a)Various technologies used to generate dynamic pages.
25
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (1) a)HTTP with (a) multiple connections and sequential requests. b)(b) A persistent connection and sequential requests. c)(c) A persistent connection and pipelined requests.
26
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (2) a)The built-in HTTP request methods.
27
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (3) a)The status code response groups
28
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (4) a)Some HTTP message headers....
29
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (5) a)Some HTTP message headers....
30
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The HyperText Transfer Protocol (6) a)HTTP caching.
31
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Mobile Web (1) a)Difficulties for mobile phones browsing the web b) Relatively small screens c) Limited input capabilities, lengthy input. d) Network bandwidth is limited e) Connectivity may be intermittent. f) Computing power is limited
32
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Mobile Web (2) a)The XHTML Basic modules and tags.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.