什么是转运公司:请朋友帮忙翻译一下,是关于计算机网络的,谢谢

来源:百度文库 编辑:中科新闻网 时间:2024/05/06 17:03:51
2.2.2 Nonpersistent and Persistent Connections
HTTP can use both nonpersistent connections and persistent connections. HTTP/1.0 uses nonpersistent connections. Conversely, use of persistent connections is the default mode for HTTP/1.1.
Nonpersistent Connections
Let us walk through the steps of transferring a Web page from server to client for the case of nonpersistent connections. Suppose the page consists of a base HTML file and 10 JPEG images, and that all 11 of these objects reside on the same server. Suppose the URL for the base HTML file is
www.someSchool.edu /someDepartment/home.index.
Here is what happens:
1. The HTTP client initiates a TCP connection to the server www.someSchool.edu. Port number 80 is used as the default port number at which the HTTP server will be listening for HTTP clients that want to retrieve documents using HTTP.
2. The HTTP client sends a HTTP request message to the server via the socket associated with the TCP connection that was established in step 1. The request message includes the path name/someDepartment/home.index.(We will discuss the HTTP message in some detail below.)
3. The HTTP server receives the request message via the socket associated with the connection that was established in step 1,retrieves the object/someDepartment/home.index from its storage(RAM or disk),encapsulates the object in an HTTP response message ,and sends the response message to the client via the socket.
4. The HTTP client receives the response message. The TCP connection (But TCP doesn’t actually terminate the connection until the client has received the response message intact.)
5. The HTTP client receives the response message .The TCP connection terminate. The message indicates that the encapsulated object is an HTML file .The client extracts the file from the response message, parses the HTML file, and finds references to the 10 JPEG objects.
6. The first four steps are then repeated for each of the referenced JPEG objects

2.2.2 Nonpersistent 和坚持连接
HTTP 可能使用nonpersistent 连接和坚持连接。 HTTP/1.0 使用nonpersistent 连接。 相反地, 对坚持连接的用途是缺省方式为HTTP/1.1 。
Nonpersistent 连接
让我们走通过步转移网页从服务器到客户为nonpersistent 连接盒。 假设页包括基地HTML 文件和10 个JPEG 图象, 并且所有11 这些对象居住在同样服务器。 假设URL 为基地HTML 文件是
万维网。someSchool 。edu/someDepartment/家庭。索引。
这什么发生:
1. HTTP 客户首次与服务器的TCP 连接万维网。someSchool 。edu 。 通道数80 被使用因为http 服务器听着为HTTP 客户想要检索文件使用HTTP 的缺省通道数。
2. HTTP 客户寄发一则HTTP 请求消息到服务器通过插口与相关被建立在步骤1 的TCP 连接。 请求消息包括道路名字someDepartment/家庭。索引。(我们详细将谈论HTTP 消息如下。)
3. http 服务器收到请求消息通过插口与相关被建立在步骤1 的连接,检索对象someDepartment/家庭。索引从它的storage(RAM 或盘),浓缩对象在HTTP 应答信息,并且寄发应答信息到客户通过插口。
4. HTTP 客户收到应答信息。 TCP 连接(仅TCP doesn..t 实际上终止连接直到客户收到了应答信息原封。)
5. HTTP 客户收到应答信息。TCP 连接终止。 消息表明, 被浓缩的对象是HTML 文件。客户从应答信息提取文件, 解析HTML 文件, 并且在10 个JPEG 对象的发现参考。
6. 第一四步然后被重覆为每个参考的JPEG 对象

没什么报酬,一般没人做

同意楼上的!