这是用户在 2024-7-4 12:09 为 https://mooc1.chaoxing.com/mooc-ans/mooc2/work/view?courseId=200963392&classId=96484844&cpi=26291297... 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?

Chapter2 作业

题量: 15 满分: 100

作答时间:04-06 19:0504-20 23:59

100

一. 单选题(共7题,46.2分)

1. (单选题)Suppose within your Web browser you use http://ip/url.html to obtain a Web page. Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object()
1. (单选题)假设在您的 Web 浏览器中使用 http://ip/url.html 来获取网页。进一步假设与链接关联的网页只包含一个对象,该对象由少量 HTML 文本组成。让 RTT0 表示本地主机和包含该对象的服务器之间的 RTT。假设对象的传输时间为零,则从客户端点击链接到客户端收到 object() 经过了多少时间

  • A. RTT0
  • B. 2×RTT0
  • C. 3×RTT0
  • D. 4×RTT0
我的答案: B :2×RTT0; 正确答案: B :2×RTT0;
6.6
答案解析:


2. (单选题)

Suppose within your Web browser you use http://ip/url.html to obtain a Web page. Further suppose that suppose the HTML file references two very small objects on the same server, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses using Non‐persistent HTTP with no parallel TCP connections()?
假设在 Web 浏览器中,您使用 http://ip/url.html 来获取网页。进一步假设 HTML 文件引用了同一服务器上的两个非常小的对象,由少量 HTML 文本组成。让 RTT0 表示本地主机和包含该对象的服务器之间的 RTT。假设对象的传输时间为零,那么使用没有并行 TCP 连接的非持久性 HTTP ()需要多少时间?

  • A. 2*RTT0
  • B. 3*RTT0
  • C. 4*RTT0
  • D. 6*RTT0
我的答案: D :6*RTT0; 正确答案: D :6*RTT0;
6.6

3. (单选题)Suppose within your Web browser you use http://ip/url.html to obtain a Web page. Further suppose that suppose the HTML file references eight very small objects on the same server, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object using Non‐persistent HTTP with the browser configured for 5 parallel connections()?
3. (单选题)假设在您的 Web 浏览器中,您使用 http://ip/url.html 来获取网页。进一步假设 HTML 文件引用了同一服务器上的八个非常小的对象,由少量 HTML 文本组成。让 RTT0 表示本地主机和包含该对象的服务器之间的 RTT。假设对象的传输时间为零,从客户端点击链接到客户端使用非持久性 HTTP 接收对象,浏览器配置为 5 个并行连接(),经过了多少时间?

  • A. 14*RTT0
  • B. 10*RTT0
  • C. 8*RTT0
  • D. 6*RTT0
我的答案: D :6*RTT0; 正确答案: D :6*RTT0;
6.6
答案解析:

Note: setup connection once+ request 5 files concurrently +request 3 files concurrently

=2RTT0+2RTT0+2RTT0


4. (单选题)Suppose within your Web browser you use http://ip/url.html to obtain a Web page. Further suppose that suppose the HTML file references eight very small objects on the same server, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object using persistent HTTP connection with pipelining()?
4. (单选题)假设在您的 Web 浏览器中,您使用 http://ip/url.html 来获取网页。进一步假设 HTML 文件引用了同一服务器上的八个非常小的对象,由少量 HTML 文本组成。让 RTT0 表示本地主机和包含该对象的服务器之间的 RTT。假设对象的传输时间为零,那么从客户端点击链接到客户端使用带有 pipelining() 的持久 HTTP 连接接收对象需要多少时间?

  • A. RTT0
  • B. 2*RTT0
  • C. 3*RTT0
  • D. 4*RTT0
我的答案: C :3*RTT0; 正确答案: C :3*RTT0;
6.6
答案解析:

setup connection once+ receive 8 files without additional request

=2*RTT0+RTT0

=3*RTT0

5. (单选题)Suppose within your Web browser you use http://ip/url.html to obtain a Web page. Further suppose that suppose the HTML file references eight very small objects on the same server, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object using persistent HTTP connection without pipelining, without parallel connections()?

  • A. 10*RTT0
  • B. 6*RTT0
  • C. 12*RTT0
  • D. 3*RTT0
我的答案: A :10*RTT0; 正确答案: A :10*RTT0;
6.6
答案解析:

2*RTT0+8*RTT0

6. (单选题)下面关于DNS说法不正确的是()

  • A.

    DNS的作用是域名和IP地址的映射

  • B.

    DNS协议运行在UDP协议之上

  • C.

    DNS协议端口号为53

  • D. 为了避免冲突,每个域中只能有一个DNS服务器
我的答案: D :为了避免冲突,每个域中只能有一个DNS服务器; 正确答案: D :为了避免冲突,每个域中只能有一个DNS服务器;
6.6

7. (单选题)下面不属于DNS记录类型的是()

  • A. MX
  • B. A
  • C. EXT
  • D. NS
我的答案: C :EXT; 正确答案: C :EXT;
6.6
答案解析:

缩写

全称


SOA

Start Of Authority Record
权限记录的开始

起始授权记录
A(v4)、AAAA(v6)

Address Record  地址记录

地址记录

CNAME

Canonical Name Record 规范名称记录

规范(别名)记录

MX

Mail eXchange Record 邮件交换记录

邮件交换记录

NS

Name Server Record 名称服务器记录

域名服务器记录

PTR

PoinTer Record PoinTer 记录

记录用于定义与IP地址相关的名称


二. 多选题(共1题,6.6分)

8. (多选题)以下有关域名解析,正确的是()

  • A. 可以分为区域查询和全面查询 
  • B. 可以分为正向查询和反向查询 
  • C. 可以分为迭代查询和递归查询
  • D. 可以分为即时查询和等待查询 
我的答案: BC :可以分为正向查询和反向查询 ; 可以分为迭代查询和递归查询; 正确答案: BC :可以分为正向查询和反向查询 ; 可以分为迭代查询和递归查询;
6.6

三. 判断题(共7题,47.2分)

9. (判断题)

A user requests a Web page that consists of some text and three images. For this page, the client will send one request message and receive four response messages.
用户请求一个由一些文本和三个图像组成的网页。对于此页面,客户端将发送一条请求消息并接收四条响应消息。

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6

10. (判断题)

Two distinct Web pages (for example, www.mit.edu/research.html and www.mit.edu/students.html ) can be sent over the same persistent connection.
两个不同的网页(例如,www.mit.edu/research.html 和 www.mit.edu/students.html )可以通过同一个持久连接发送。

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6
答案解析:

-If the connection did not timeout, then it can be used to send another html request over the same port
- 如果连接没有超时,则可以使用它通过同一端口发送另一个html请求

11. (判断题)

 With nonpersistent connections between browser and origin server, it is possible for a single TCP segment to carry two distinct HTTP request messages.
通过浏览器和源服务器之间的非持久连接,单个 TCP 段可以携带两个不同的 HTTP 请求消息。

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6
答案解析:

False – One TCP segment can carry only one HTTP request message.
False – 一个 TCP 段只能携带一条 HTTP 请求消息。

12. (判断题)

The Date: header in the HTTP response message indicates when the object in the response was last modified.

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6
答案解析:

False – the time in the response message indicates when the request was generate.

13. (判断题)HTTP response messages never have an empty message body.

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6
答案解析:

True – not matter the response of the request is successes or not, at least the Status response should be returned. 

14. (判断题)在实际的应用中,DNS客户端会先向DNS服务器查询,从中查找是否有所查询的IP地址;如果找不到时,再查询Hosts文件。 

  • A. 对
  • B. 错
我的答案: 正确答案:
6.6

15. (判断题)在缺省情况下DNS服务器采用递归查询

  • A. 对
  • B. 错
我的答案: 正确答案:
7.6
46.2 一. 单选题(46.2分)
6.6 二. 多选题(6.6分)
47.2 三. 判断题(47.2分)