Bài giảng Chapter 6: Application Layer
Số trang: 74
Loại file: ppt
Dung lượng: 3.44 MB
Lượt xem: 14
Lượt tải: 0
Xem trước 8 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Chapter 6: Application Layer. Overview of Transport Layer, HTPP and Web, domain name, electrical Email, file transfer. Request and response messages, request and status lines, header format, domain name space, domain names and labels, query and response messages, header format
Nội dung trích xuất từ tài liệu:
Bài giảng Chapter 6: Application Layer Chapter 6 Application Layer 27.1 Copyright © The McGrawHill Companies, Inc. Permission required for reproduction or display. Outline Overview of Transport Layer HTPP and Web Domain name Electrical Email File transfer 2 2. HTTP The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web. HTTP functions as a combination of FTP and SMTP. Topics discussed in this section: HTTP Transaction Persistent Versus Nonpersistent Connection 27.3 Note HTTP uses the services of TCP on well- known port 80. 27.4 HTTP transaction 27.5 Request and response messages 27.6 Request and status lines 27.7 Methods 27.8 Status codes 27.9 Status codes (continued) 27.10 Header format 27.11 General headers 27.12 Request headers 27.13 Response headers 27.14 Entity headers 27.15 Example This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. The request line shows the method (GET), the URL, and the HTTP version (1.1). The header has two lines that show that the client can accept images in the GIF or JPEG format. The request does not have a body. The response message contains the status line and four lines of header. The header lines define the date, server, MIME version, and length of the document. The body of the document follows the header (see Figure 27.16). 27.16 Figure 27.17 Example In this example, the client wants to send data to the server. We use the POST method. The request line shows the method (POST), URL, and HTTP version (1.1). There are four lines of headers. The request body contains the input information. The response message contains the status line and four lines of headers. The created document, which is a CGI document, is included as the body (see Figure 27.17). 27.18 Figure 27.19 Example HTTP uses ASCII characters. A client can directly connect to a server using TELNET, which logs into port 80 (see next slide). The next three lines show that the connection is successful. We then type three lines. The first shows the request line (GET method), the second is the header (defining the host), the third is a blank, terminating the request. The server response is seven lines starting with the status line. The blank line at the end terminates the server response. The file of 14,230 lines is received after the blank line (not shown here). The last line is the output by the client. 27.20
Nội dung trích xuất từ tài liệu:
Bài giảng Chapter 6: Application Layer Chapter 6 Application Layer 27.1 Copyright © The McGrawHill Companies, Inc. Permission required for reproduction or display. Outline Overview of Transport Layer HTPP and Web Domain name Electrical Email File transfer 2 2. HTTP The Hypertext Transfer Protocol (HTTP) is a protocol used mainly to access data on the World Wide Web. HTTP functions as a combination of FTP and SMTP. Topics discussed in this section: HTTP Transaction Persistent Versus Nonpersistent Connection 27.3 Note HTTP uses the services of TCP on well- known port 80. 27.4 HTTP transaction 27.5 Request and response messages 27.6 Request and status lines 27.7 Methods 27.8 Status codes 27.9 Status codes (continued) 27.10 Header format 27.11 General headers 27.12 Request headers 27.13 Response headers 27.14 Entity headers 27.15 Example This example retrieves a document. We use the GET method to retrieve an image with the path /usr/bin/image1. The request line shows the method (GET), the URL, and the HTTP version (1.1). The header has two lines that show that the client can accept images in the GIF or JPEG format. The request does not have a body. The response message contains the status line and four lines of header. The header lines define the date, server, MIME version, and length of the document. The body of the document follows the header (see Figure 27.16). 27.16 Figure 27.17 Example In this example, the client wants to send data to the server. We use the POST method. The request line shows the method (POST), URL, and HTTP version (1.1). There are four lines of headers. The request body contains the input information. The response message contains the status line and four lines of headers. The created document, which is a CGI document, is included as the body (see Figure 27.17). 27.18 Figure 27.19 Example HTTP uses ASCII characters. A client can directly connect to a server using TELNET, which logs into port 80 (see next slide). The next three lines show that the connection is successful. We then type three lines. The first shows the request line (GET method), the second is the header (defining the host), the third is a blank, terminating the request. The server response is seven lines starting with the status line. The blank line at the end terminates the server response. The file of 14,230 lines is received after the blank line (not shown here). The last line is the output by the client. 27.20
Tìm kiếm theo từ khóa liên quan:
Application Layer Electrical Email Request and response messages Request and status lines Domain name space Domain names and labelsGợi ý tài liệu liên quan:
-
Bài giảng Lý thuyết mạng máy tính: Chương 3 - ThS. Lương Minh Huấn
73 trang 160 0 0 -
Ebook Computer networking: A top-down approach (Sixth edition): Part 1
462 trang 19 0 0 -
Lecture Network programming: Introduction and review Internet protocol and services
24 trang 18 0 0 -
Lecture Computer networks - Chapter 6: Application layer
61 trang 18 0 0 -
Lecture Data Communication: Lesson 10
14 trang 16 0 0 -
Bài giảng Mạng máy tính: Chương 2 - TS. Trần Quang Diệu
49 trang 14 0 0 -
Lecture Business data communications and networking (8e): Chapter 2 - Jerry Fitzgerald, Alan Dennis
48 trang 14 0 0 -
Ebook Computer networking: Principles, protocols and practice - Part 2
204 trang 14 0 0 -
Managing Small Office WLAN An Ideal Solution from D-Link
4 trang 13 0 0 -
49 trang 13 0 0