当前位置:文档之家› 网络通信课后练习题和答案

网络通信课后练习题和答案

1.There is no difference. Throughout this text, the words “host” and “end system” areused interchangeably. End systems include PCs, workstations, Web servers, mail servers, PDAs, Internet-connected game consoles, etc.2.3.HFC bandwidth is shared among the users. On the downstream channel, all packetsemanate from a single source, namely, the head end. Thus, there are no collisions in the downstream channel.1.3.11 与分组交换网络相比,电路交换网路有哪些优点?在电路交换网络中,TDM比FDM有哪些优点?答:电路交换在连接期间能保持恒定的传输速率,而分组交换则可能因分组多而变的拥塞。

而且电路交换在通信所提供的资源会被预留下来。

TDM适合数字信号传输,而FDM适合模拟信号传输,因为现在通信网络多是传输数字信号,所以TDM比FDM好。

23.Routers process network, link and physical layers (layers 1 through 3). (This is a littlebit of a white lie, as modern routers sometimes act as firewalls or cachingcomponents, and process Transport layer as well.) Link layer switches process link and physical layers (layers 1 through2). Hosts process all five layers.4.a)d prop= m / s seconds.b)d trans= L / R seconds.c)d end-to-end=(m / s + L / R)seconds.d)The bit is just leaving Host A.e)The first bit is in the link and has not reached Host B.f)The first bit has reached Host B.g)Wantm = Ls =120 (2.5 ⨯108)= 536 km.56 ⨯10 3R第二章:1.No. In a P2P file-sharing application, the peer that is receiving a file is typically theclient and the peer that is sending the file is typically the server.2.The process which initiates the communication is the client; the process that waitsto be contacted is the server.2.2.11 为什么HTTP,FTP,SMTP,POP3都运行在TCP而不是UDP之上?答:因为这些都要求可靠的数据传输,所以都运行在TCP上。

16.The message is first sent from Alice’s host to her mail server over HTTP. Alice’smail server then sends the message to Bob’s mail server over SMTP. Bob then transfers the message from his mail server to his host over POP3.假定Alice 使用一个基于web的电子邮件账户(如Hotmail或gmail)向Bob发报文,而Bob使用pop3访问他的邮件服务器来获取自己的邮件。

讨论报文是怎样从Alice主机到达Bob主机的。

列出在两台主机间移动该报文时所使用的各种应用层协议。

答:从Alice的代理到Alice的邮件服务器是HTTP协议,而从Alice的邮件服务器到Bo d的邮件服务器是SMTP协议,从Bob的邮件服务器到Bob的代理是POP3协议。

R25没找到26.For the TCP application, as soon as the client is executed, it attempts to initiate a TCPconnection with the server. If the TCP server is not running, then the clie nt will fail to make a connection. For the UDP application, the client does not initiate connections (or attempt to communicate with the UDP server) immediately upon execution2.7.28 对于2.7节所描述的运行在TCP之上的客户机/服务器应用程序,服务器程序为什么必须先于客户机程序运行?对于2.8节所描述的运行在UDP之上的客户机/服务器应用程序,客户机为什么可以先于服务器程序运行?答:因为运行在TCP之上的客户机/服务器应用程序在客户机运行后,它会尝试向服务器进程发起连接,而此时如果服务器进程没有运行,客户机进程就可能认为服务器不可达,从而返回错误信息;而运行在UDP之上的客户机/服务器应用程序在客户机进程运行之后不会向服务器进程发起连接,而是等待用户输入,因此客户程序可以先于服务器程序运行。

R28没有Problem 3Application layer protocols: DNS and HTTPTransport layer protocols: UDP for DNS; TCP for HTTPProblem 5a)The status code of 200 and the phrase OK indicate that the server was able tolocate the document successfully. The reply was provided on Tuesday, 07 Mar 2008 12:39:45 Greenwich Mean Time.b)The document index.html was last modified on Saturday 10 Dec 2005 18:27:46GMT.c)There are 3874 bytes in the document being returned.d)The first five bytes of the returned document are : <!doc. The server agreed to apersistent connection, as indicated by the Connection: Keep-Alive fieldP5p24没有第三章:a. 主机A通过一条TCP连接向主机B发送一个大文件。

假设主机B没有数据发往主机A。

因为主机B不能随数据捎带确认信息,所以主机B将不向主机A发送确认。

b. 在连接的整个过程中,TCP的RcvWindow的长度不会变化。

c. 假设主机A通过一条TCP连接向主机B发送一个大文件。

主机A发送的未被确认的字节数不会超过接收缓存的大小。

d. 假设主机A通过一条TCP连接向主机B发送一个大文件。

如果对于这次连接的一个报文段序列号为m,则对于后继报文段的序列号必然为m+1。

e. TCP报文段在它的首部中有一个RcvWindow字段。

f. 假定在一条TCP连接中最后的SampleRTT等于1s,那么对于这一连接的TimeoutInter Val的当前值必定≥1s。

g. 假定主机A通过一条TCP连接向主机B发送一个序号为38的4字节报文段。

这个报文段的确认号必定是42。

答(a):错误。

TCP连接中,如果主机B没有数据要发往主机,它就不能随数据捎带确认信息,但是,TCP要求B必须发送确认,因此B将向A发送非捎带的确认信息。

答(b):错误。

RcvWindow的值是动态的,它是表示连接的缓存中还有多少空间。

答(c):正确。

答(d):错误。

顺序号的设定是以传送的字节流为单位,而不是以报文段为单位。

一个报文段的顺序号是该报文段中数据段的第一个字节在字节流中的编号。

答(e):正确。

答(f):错误。

超时时间是EstimatedRTT 和SampleRTT的函数,不能由一个Sample RTT值决定。

答(g):错误。

在某些情况下接受方会发送一个重复的ACK,所以确认号还是42。

3.5.15 假定主机A通过一条TCP连接向主机B连续发送两个TCP报文段。

第一个报文段的序号为90,第二个报文段的序号为110。

a.第一个报文段中有多少数据?b.假设第一个报文段丢失而第二个报文段到达主机B,那么在主机B发往主机A的确认报文中,确认号应该是多少?答(a):20个字节数据。

答(b):确认号是90。

3 .7.18 是非判断题。

考虑TCP的拥塞控制,发送方定时器超时时,其阀值将被设置为原来值的一半。

答:错误。

它将被设置为拥塞值的一半。

15.R/2P32没有第四章:4.1.2 在数据报网络中,网络层最重要的两个功能是什么?在虚电路网络中,网络层的3个最重要的功能是什么?答:转发和选路;连接建立,转发和选路。

R15没有4.4.13 IP地址223.1.3.27的32比特二进制等价形式是什么?答:11011111.00000001.00000011.00011100。

Problem 10a)Prefix Match Link Interface11100000 00 011100000 01000000 11110000 211100001 1 3otherwise 3b)Prefix match for first address is 5t h entry: link interface 3 Prefix matchfor second address is 3nd entry: link interface 2 Prefix match for thirdaddress is 4t h entry: link interface 3P10P13P23没有Problem 37a)eBGPb)iBGPc)eBGPd)iBGP第五章:5.1.2 链路层协议能够向网络层提供哪些可能的服务?在这些链路层服务中,哪些在IP中有对应的服务?答:成帧,IP和TCP页有自己的数据报。

相关主题