萨尔纳迦:请朋友帮忙翻译一下

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 05:51:56
As the browser receives the Web page , it displays the page to the user. Two different browsers may interpret(that is ,display to the user) a Web page in somewhat different ways. HTTP has nothing to do with how a Web page is interpreted by a client. The HTTP specifications([RFC 1945]and [RFC 2616]) only define the communication protocol between the client HTTP program and the server HTTP program
The steps above use nonpersistent connections because each TCP connection is closed after the server sends the object-the connection does not persist for other objects. Note that each TCP connection transports exactly one request message and one response message. Thus, in this example, when a user requests the Web page,11 TCP connections are generated.
In the steps described above, we were intenyionally vague about whether the client obtained the 10 JPEGs over 10 serial TCP connections , or whether some of the JPEGs are obtained over parallel TCP connections. Indeed, users can configure modern browsers to control the degree of parallelism. In their default modes , most browsers open 5 to 10 parallel TCP connections, and each of these connections handles one request-response transaction. If the user prefers , the maximum unmber of parallel connections can be set to 1, in which case the 10 connections are established serially, As we shall see in the next chapter, the use of parallel connections shortens the response time.

当浏览器收到网络页面的数据时,它会把网页的内容显示给用户。对于同样的网页,两个不同的浏览器的解释(也就是显示)也许会有些许的差别。HTTP并不关心客户端(在这里是浏览器)解释网页的方式。HTTP的规范([RFC 1945]and [RFC 2616]) 只是定义了在网页服务器端和客户端之间的通信协议。

以上的步骤(根据上下文,这里的以上应该在本翻译文字段之前)中,并不存在连续的TCP连接,因为当服务器传送完每个Object之后,就会关闭它的TCP的连接。值得注意的是每个TCP连接的传送都是以"请求消息-->回应消息"的模式的。也就是说,在这个例子中,当用户请求此网页时,一共需要建立11个TCP连接。

以上步骤中,我们故意(intentionally)没有提及客户端是如何获取10个JPEG(图片)的,是用顺序的10个TCP连接还是并行的TCP连接?事实上,现在的浏览器中,这是可以被用户设定的。默认情况下,它们一般同时打开5到10个并行的TCP连接,每个连接用来处理一个"请求消息-->回应消息"传送任务。如果用户愿意,完全可以把最大的并行TCP连接数设置为1,如果这样的话,例子中的10个TCP连接就只能一个接着一个地顺序建立了。在下一章中我们将会看到,使用并行连接将会缩短所需的回应时间。

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
基本就是这个意思了,翻译的过程也是学习的过程,不保证正确性,有问题还是参照原文吧 :)