计算机网络原理习题讲解

计算机网络原理习题讲解
计算机网络原理习题讲解

Chapter I

1. What is the difference between a host and an end system? List the types of end systems. Is a

Web server an end system?

2. What is a client program? What is a server program? Does a server program request and

receive services from a client program?

3. List six access technologies. Classify each one as residential access, company access, or

mobile access.

4. Dial-up modems, HFC, and DSL are all used for residential access. For each of these access

technologies, provide a range of transmission rates and comment on whether the transmission rate is shared or dedicated.

5. Describe the most popular wireless Internet access technologies today. Compare and

contrast them.

6. What advantage does a circuit-switched network have over a packet-switched network?

What advantages does TDM have over FDM in a circuit-switched network?

7. Consider sending a packet from a source host to a destination host over a fixed route. List the

delay components in the end-to-end delay. Which of these delays are constant and which are variable?

8. How long does it take a packet of length 2,000 bytes to propagate over a link of distance

2,000 km, propagation speed 8

102? m/s, and transmission rate 2 Mbps? More generally, how long does it take a packet of length L to propagate over a link of distance d, propagation speed s, and transmission rate R bps? Does this delay depend on packet length? Does this delay depend on transmission rate?

9. What are the five layers in the Internet protocol stack? What are the principal responsibilities

of each of these layers?

10. Which layers in the Internet protocol stack does a router process? Which layers does a

link-layer switch process? Which layers does a host process?

11. What is an application-layer message? A transport-layer segment? A network-layer datagram?

A link-layer frame?

12. This elementary problem begins to explore propagation delay and transmission delay, two

central concepts in data networking. Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B.

a. Express the propagation delay, prop d , in terms of m and s.

b. Determine the transmission time of the packet,trans d , in terms of L and R.

c. Ignoring processing and queuing delays, obtain an expression for the end-to-end delay.

d. Suppose Host A begins to transmit the packet at time t = 0. At time trans d t =,where is the last bit of the packet?

e. Suppose prop d is greater than trans d . At time t = trans d ,where is the first bit of the packet?

f. Suppose prop d is less than trans d . At time t = trans d , where is the first bit of the packet?

g. Suppose 8105.2?=s , L = 100bits, and R = 28 kbps. Find the distance m so that prop d equals trans d .

13. In modern packet-switched networks, the source host segments long, application-layer

messages (for example, an image or a music file) into smaller packets and sends the packets into the network. The receiver then reassembles the packets back into the original message. We refer to this process as message segmentation. Figure 1.24 illustrates the end-to-end transport of a message with and without message segmentation. Consider a message that is 6108? bits long that is to be sent from source to destination in Figure 1.24. Suppose each link in the figure is 2 Mbps. Ignore propagation, queuing, and processing delays.

a. Consider sending the message from source to destination without message segmentation. How long does it take to move the message from the source host to the first packet switch? Keeping in mind that each switch uses store-and-forward packet switching, what is the total time to move the message from source host to destination host?

b. Now suppose that the message is segmented into 4,000 packets, with each packet being 2,000 bits long. How long does it take to move the first packet from source host to the first switch? When the first packet is being sent from the first switch to the second switch, the second packet is being sent from the source host to the first switch. At what time will the second packet be fully received at the first switch?

c. How long does it take to move the file from source host to destination host when message segmentation is used? Compare this result with your answer in part (a) and comment.

d. Discuss the drawbacks of message segmentation.

14. 下列说法中,正确的是( )。

A.在较小范围内布置的一定是局域网,币在较大范围内布置的一定是广域网

B.城域网是连接广域网而覆盖园区的网络

C.城域网是为淘汰局域网和广域网而提出的一种网络技术

D.局域网是基于广播技术发展起来的网络,广域网是基于交换技术发展起来的向络

解答:D。

通常而言,局域网的覆盖范围较小,而广域网的覆盖范围较大,但这并不绝对。有时候在一个不大的范围内采用广域网,这取决于应用的需要和是否采用单一网络等多种因素。特别是局域网技术的进步,使得其覆盖范围越来越大,达到几十千米的范围。

城域网是利用广域网技术、满足一定区域需求的一种网络,事实上,城域网的范围弹性非常大。

最初的局域网采用广播技术,这种技术一直被沿用,而广域网最初使用的是交换技术,也一直被沿用。?

15.相对于o⒏的7层参考模型的低4层,TCP/IP协议集内对应的层次有( )。

A.传输层、互联网层、网络接口层和物理层

B.传输层、互联网层、网络接口层

C.传输层、互联网层、ATM层和物理层

D.传输层、网络层、数据链路蜃和物理层

解答:B。

根据TCP/P分层模型可知,其对应OSI低4层的分别是传输层、互联网层、网络接口层。

16.在C/S模式的网络中,最恰当的是( )。

A.客户机提出请求,服务器响应请求、进行处理并返回结果

B.服务器有时可以同时为多个客户机服务

C.客户机可以将服务器的资源各份在本地,以避免向服务器请求服务

D.服务器永远是网络的瓶颈

解答:A。

根据C/S模式的定义,选项A描述了C/S模式的基本工作流程。服务器必须总能而不是有时可以同时为多个客户机服务,否则网络就没有了存在的价值。

由于服务器的资源太庞大,而且很多资源因为知识产权、保密、管理复杂等一系列的原因, 使客户机不可能都把服务器的资源备份到本地。

从表面上看,服务器可能是网络的瓶颈, 但事实上:在多数情况下网络的主要瓶颈不在服务器,而在通信线路。

17.比较分组交换与报文交换,说明分组交换优越的原因。

解答:报文交换网络与分组交换的原理都是:将用户数据加上源地址、自的地址、长度、校验码等辅助信息封装成PDU,发送给下一个节点。下一个节点收到后先暂存报文,待输出线路空闲时再转发给下一个节点,重复这一过程直到到达目的节点。每个PDU可单独选择到达目的节点的路径。这种方式也称为存储―转发方式。

两者的不同之处是:分组交换所生成的PDU的长度较短,而且是固定的;而报文交换的PDU 的长度不是固定的。正是这一差别,使得分组交换具有独特的优点:缓冲区易于管理;分组的平均延迟更小,网络中占用的平均缓冲区更少;更易标准化;更适合应用。所以现在的主流网络基本上都可以看成是分组交换网络。

18.单顶选择题

【1】第一个分组交换网是(A)。

A.ARPAnet

B.X.25

C.以太网

D.Internet

【2】在大多数网络中,数据链路层都是用请求重发已损坏了帧的办法来解决发送出错问题。如果一个帧被损坏的概率是p,而且确认信息不会丢失,则发送一帧的平均发送次数是( d )

A.1+p

B. I-p

C.1/(1+p)

D. 1/(1-p)

【3】物理层的电气特性规定的特性包括( b )

A.接插件的形式

B.信号的电压值

C.电缆的长度

D.各引脚的功能

【4】网卡是完成( b )的功能。

A.物理层

B.数据链路层

C.物理层和数据链路层

D.数据链路层和网络层【5】通信子网不包括( d )。

A.物理层

B.数据链路层

C.网络层

D.传输层

【6】当数据由端系统A传至端系统B时,不参与数据封装工作的是( a )。

A.物理层

B.数据链路层

C.应用层

D.表示层

【7】RFC是()。(重庆大学2007年试题)

A.因特网标准的形式

B.一种网络协议

C.一种网络文件格式

D.一种网络技术

解析:所有的因特网标准都是以RFC的形式在因特网上发表。RFC(reguest for comments)的意思就是“请求评论”。所有的RFC文档都可以从因特网上免费下载。但应注意,并非所有的RFC文档都是因特网标准,只有一小部分RFC文档最后才能变成因特网标准。RFC接收到时间的先后从小到大编上序号(即RFCxxxx,这里xxxx是阿拉伯数字)。一个RFC文档更新后就使用一个新的编号,并在文档中指出原来老编号的RFC文档已成为陈旧的。简言之,RFC是因特网标准的形式。所以选项A为正确答案。

答案:A

【8】在OSI的七层模型中,工作在第三层以上的网间连接设备是( )。(华中科技大学2003年试题)

A.集线器

B.网关

C.网桥

D.中继器

解析:集线器属于LAN与大型机以及LAN与WAN的互连。

网挢工作于数据链数据通信系统中的基础设备,应用于OSI参考模型第一层。集线器的设计目标主要是优化网络布线结构,简化网络管理,主要功能是对接收到的信号进行再生整形放大,以扩大网络的传输距离,同时把所有节点集中在以它为中心的结点上。

网关亦称网间协议转换器,工作于OSI/RM的传输层、会话层、表示层和应用层。网关不仅具有路由器的全部功能,同时还可以完成因操作系统差异引起的通信协议之间的转换。网关可用于LAN-LAN、路层。它要求两个互连网络在数据链路层以上采用相同或兼容的网络协议。

中继器是最简单的网络互连设备,主要完成物理层的功能,负责在两个结点的物理层上按位传递信息,完成信号的复制、调整和放大功能,以此来延长网络的长度。它位于0SI参考模型中物理层。

由此可知,网关工作于OSI/RM的传输层、会话层、表示层和应用层。所以选项B为正确答案。

答案:B

【9】在OSI七层结构模型中,处于数据链路层于传输层之间的是()(华中科技大学2003年试题)

A.物理层 B. 网络层 C. 会话层 D. 表示层

解析:OSI/RM网络结构模型将计算机网络体系结构的通信协议规定为物理层、数据链路层、网络层、传输层、会话层、表示层、应用层,共七层。因此,网络层处于数据链路层与传输层之间。所以选项B为正确答案。

答案:B

【10】完成路径选择功能是在OSI参考模型的()。(华中科技大学2003年试题)

A.物理层

B.数据链路层

C.网络层

D.传输层

解析:物理层:主要是利用物理传输介质为数据链路层提供物理连接,以便透明地传递比特流。数据链路层:分为MAC和LLC,传送以帧为单位的数据,采用差错控制,流量控制方法。

网络层:实现路由选择、拥塞控制和网络互连功能,使用TCP和UDP协议。

传输层:是向用户提供可靠的端到端服务,透明地传送报文,使用TCP协议。

由此可知,网络层具有路径选择的功能。所以选项C为正确答案。

答案:C

【11】在TCP/IP协议簇的层次中,解决计算机之间通信问题是在()。(华中科技大学2003年试题)

A.网络接口层

B.网际层

C.传输层

D.应用层

解析:TCP/IP协议族把整个协议分成四个层次:

(1)网络接口层:负责接收P数据报,并把该数据报发送到相应的网络上。从理论上讲,该层不是TCP/IP协议的组成部分,但它是TCP/IP协议的基础,是各种网络与TCP/IP协议的接口。.

(2)网络层(也叫网际层):网络层解决了计算机到计算机通信的问题。因特网在该层的协议主要有网络互联协议IP、网间控制报文协议ICMP、地址解析协议ARP等。

(3)传输层:传输层提供一个应用程序到另一个应用程序之间端到端的通信。因特网在该层的协议主要有传输控制协议TCP、用户数据报协议UDP等。

(4)应用层:是TCP/IP协议的最高层,与0sI参考模型的上三层的功能类似。因特网在该层的协议主要有文件传输协议FTP、远程终端访问协议Telnet、简单邮件传输协议sMTP和域名服务协议DNS等。由此可知,网际层解决了计算机到计算机通信的问题。所以选项B为正确答案。

答案:B

【12】TCP/IP参考模型的网际层用于实现地址转换的协议有( )。

A.ARP

B.ICMP

C. UDP

D.TCP

解析:ARP地址解析协议就是主机在发送帧前,将目标IP地址转换成目标MAC地址的过程。ARP协议的基本功能就是通过目标设备的IP地址,查询目标设备的MAC地址,以保证通信的顺利进行。所以选项A正确。

ICMP协议是TCP/IP协议集中的一个子协议,属于网络层协议,主要用于在主机与路由器之间传递控制信息,包括报告错误、交换受限控制和状态信息等。因此,ICMP协议不具备地址转换功能,排除选项B。

用户数据报协议(UDP)是ISO参考模型中一种无连接的传输层协议,提供面向事务的简单不可靠信息传送服务。UDP协议基本上是IP协议与上层协议的接口。由此可知,UDP不具备地址转换功能,排除选项C。

TCP是面向连接的传输层协议,,它提供的是一种虚电路方式的运输服务。因此,排除选项D。

19.简述面向连接服务于面向非连接服务的特点。

解析:面向连接服务是电话系统服务模式的抽象。每一次完整的数据传输都必须经过建立连接、数据传输和终止连接三个过程。

无连接服务是邮政系统服务模式的抽象。在无连接服务的情况下,两个实体之间的通信不需要先建立好一个连接,因此其下层的有关资源不需要事先进行预定保留。这些资源将在数据传输时动态地进行分配。

答案:面向连接服务的特点是,在数据交换之前,必须先建立连接。当数据交换结束后,则应终止这个连接。在数据传输过程中,各数据报地址不需要携带目的地址,而是使用连接号。接收到的数据与发送方的数据在内容和顺序上是一致的。~

无连接服务的特点,每个报文带有完整的目的地址,每个报文在系统中独立传送。无连接服务不能保证报文到达的先后顺序,先发送煦报文不一定先到。无连接服务不保证报文传输的可靠性。

Chapter 2

1. For a communication session between a pair of processes, which process is the client and

which is the server?

2. What is the difference between network architecture and application architecture?

3. What information is used by a process running on one host to identify a process running on

another host?

4. Suppose you wanted to do a transaction from a remote client to a server as fast as possible.

Would you use UDP or TCP? Why?

5. List the four broad classes of services that a transport protocol can provide. For each of the

service classes, indicate if either UDP or TCP (or both) provides such a service.

6. Why do HTTP , FTP , SMTP , and POP3 run on top of TCP rather than on UDP?

7. What is meant by a handshaking protocol?

8. Suppose Alice, with a Web-based e-mail account (such as Hotmail or gmail), sends a message

to Bob, who accesses his mail from his mail server using POP3. Discuss how the message gets from Alice's host to Bob's host. Be sure to list the series of application-layer protocols that are used to move the message between the two hosts.

9. From a user's perspective, what is the difference between the download-and-delete mode

and the download-and-keep mode in POP3?

10. Is it possible for an organization's Web server and mail server to have exactly the same alias

for a hostname (for example, foo. com )? What would be the type for the RR that contains the hostname of the mail server?

11. Why is it said that FTP sends control information "out-of-band"?

12. True or false?

a. 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.

b. Two distinct Web pages (for example, https://www.360docs.net/doc/1610951214.html,/research.Html and https://www.360docs.net/doc/1610951214.html,/students. html) can be sent over the same persistent connection.

c. With nonpersistent connections between browser and origin server, it is possible for a single TCP segment to carry two distinct HTTP request messages.

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

13. Suppose within your Web browser you click on a link to obtain a Web page. The IP address

for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT of n RTT RTT ,...,1. Further suppose that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Let 0RTT 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?

14.Referring to Problem P7, suppose the HTML file references three very small objects on the

same server. Neglecting transmission times, how much time elapses with

a. Non-persistent HTTP with no parallel TCP connections?

b. Non-persistent HTTP with parallel connections?

c. Persistent HTIP?

通知

第二次试验

时间:11月8日,上午10:00 ~ 12:00

地点:九教北401

试验内容:《实验指南》实验四、实验五、实验六;

参考GBN源代码资料存储在:

?邮箱:net_class_test@https://www.360docs.net/doc/1610951214.html,

?密码:123456abcd

Chapter 3

1.(教材R3)Describe why an application developer might choose to run an application over

UDP rather than TCP.

A: An application developer may not want its application to use TCP’s congestion control, which can throttle the application’s sending rate at times of congestion. Often, designers of IP telephony and IP videoconference applications choose to run their applications over UDP because they want to avoid TCP’s congestion control. Also, some applications do not need the reliable data transfer provided by TCP.

2.(教材R4)Why is it that voice and video traffic is often sent over TCP rather than UDP in

today's Internet. (Hint: The answer we are looking for has nothing to do with TCP's congestion-control mechanism.)

A: Since most firewalls are configured to block UDP traffic, using TCP for video and voice traffic lets the traffic though the firewalls.

3.(教材R5)Is it possible for an application to enjoy reliable data transfer even when the

application runs over UDP? If so, how?

A: Yes. The application developer can put reliable data transfer into the application layer protocol. This would require a significant amount of work and debugging, however.

4.(教材R6)Consider a TCP connection between Host A and Host B. Suppose that the TCP

segments traveling from Host A to Host B have source port number X and destination port number y. What are the source and destination port numbers for the segments traveling from Host B to Host A?

A: Source port number y and destination port number x.

5.(教材R7)Suppose a process in Host C has a UDP socket with port number 6789. Suppose

both Host A and Host B each send a UDP segment to Host C with destination port number 6789. Will both of these segments be directed to the same socket at Host C? If so, how will the process at Host C know that these two segments originated from two different hosts?

A: Yes, both segments will be directed to the same socket. For each received segment, at the socket interface, the operating system will provide the process with the IP addresses to determine the origins of the individual segments.

6.(教材R9)In our rdt protocols, why did we need to introduce sequence numbers?

A: Sequence numbers are required for a receiver to find out whether an arriving packet contains new data or is a retransmission.

7.(教材10)In our rdt protocols, why did we need to introduce timers?

A: To handle losses in the channel. If the ACK for a transmitted packet is not received within the duration of the timer for the packet, the packet (or its ACK or NACK) is assumed to have been lost. Hence, the packet is retransmitted.

8.(教材R14)Suppose Host A sends two TCP segments back to back to Host B over a TCP

connection. The first segment has sequence number 90; the second has sequence number 110.

a. How much data is in the first segment?

b. Suppose that the first segment is lost but the second segment arrives at B. In the

acknowledgment that Host B sends to Host A, what will be the acknowledgment number?

A: a) 20 bytes b) ack number = 90

9.(教材R15)True or false?

a. The size of the TCP RcvWindow never changes throughout the duration of the connection.

b. Suppose Host A is sending Host B a large file over a TCP connection. The number of

unacknowledged bytes that A sends cannot exceed the size of the receive buffer.

c. Host A is sending Host B a large file over a TCP connection. Assume Host B has no data to

send Host A. Host B will not send acknowledgments to Host A because Host B cannot piggyback the acknowledgmens on data.

d. The TCP segment has a field in its header for RcvWindow.

e. Suppose Host A is sending a large file to Host B over a TCP connection. If the sequence

number for a segment of this connection is m, then the sequence number for the subsequent segment will necessarily be m + 1.

f. Suppose that the last SampleRTT in a TCP connection is equal to 1 sec. The current value of

Timeoutrnterval for the connection will necessarily be>1 sec.

g. Suppose Host A sends one segment with sequence number 38 and 4 bytes of data over a

TCP connection to Host B. In this same segment the acknowledgment number is necessarily

42.

A: a) false;

b) false; need consider retransmit packet

c) false;

d) true;

e) false;

f) false;

g) false;

10.(教材P1)Suppose client A initiates a Telnet session with Server S. At about the same time,

client B also initiates a Telnet session with Server S. Provide possible source and destination port numbers for

a. The segments sent from A to S.

b. The segments sent from B to S.

c. The segments sent from S to A.

d. The segments sent from S to B.

e. If A and B are different hosts, is it possible that the source port number in the segments

from A to S is the same as that from B to S?

f. How about if they are the same host?

A:

11.(教材P2)Consider Figure 3.5. What are the source and destination port values in the

segments flowing from the server back to the clients' processes? What are the IP addresses in the network-layer datagram carrying the transport-layer segments?

A: Suppose the IP addresses of the hosts A, B, and C are a, b, c, respectively. (Note that a,b,c are distinct.)

?To host A: Source port =80, source IP address = b, dest port = 26145, dest IP address = a ?To host C, left process: Source port =80, source IP address = b, dest port = 7532, dest IP address = c

?To host C, right process: Source port =80, source IP address = b, dest port = 26145, dest IP address = c

12.(教材P19)Answer true or false to the following questions and briefly justify your answer:

a. With the SR protocol, it is possible for the sender to receive an ACK for a packet that falls

outside of its current window

b. With GBN, it is possible for the sender to receive an ACK for a packet that falls outside of its

current window.

c. The alternating-bit protocol is the same as the SR protocol with a sender and receiver

window size of 1.

d. The alternating-bit protocol is the same as the GBN protocol with a sender and receiver

window size of 1.

Answer:

a)True. Suppose the sender has a window size of 3 and sends packets 1, 2, 3 at t0 . At t1

(t1 > t0) the receiver ACKS 1, 2, 3. At t2 (t2 > t1) the sender times out and resends 1, 2, 3.

At t3 the receiver receives the duplicates and re-acknowledges 1, 2, 3. At t4 the sender receives the ACKs that the receiver sent at t1 and advances its window to 4, 5, 6. At t5 the sender receives the ACKs 1, 2, 3 the receiver sent at t2 . These ACKs are outside its window.

b)True. By essentially the same scenario as in (a).

c)True.

d)True. Note that with a window size of 1, SR, GBN, and the alternating bit protocol are

functionally equivalent. The window size of 1 precludes the possibility of out-of-order packets (within the window). A cumulative ACK is just an ordinary ACK in this situation, since it can only refer to the single packet within the window.

13.(教材P24)Host A and B are communicating over a TCP connection, and Host B has already

received from A all bytes up through byte 358. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 50 and 80 bytes of data, respectively. In the first segment, the sequence number is 359, the source port number is 1028, and the destination port number is 80. Host B sends an acknowledgement whenever it receives a segment from Host A.

a. In the second segment sent from Host A to B, what are the sequence number, source port number, and destination port number?

b. If the first segment arrives before the second segment, in the acknowledgement of the first arriving segment, what is the acknowledgment number, the source port number, and the destination port number?

c. If the second segment arrives before the first segment, in the acknowledgement of the first arriving segment, what is the acknowledgment number?

d. Suppose the two segments sent by A arrive in order at B. The first acknowledgement is lost and the second acknowledgement arrives after the first timeout interval. Draw a timing diagram, showing these segments and all other segments and acknowledgements sent. (Assume there is no additional packet loss.) For each segment in your figure, provide the sequence number and the number of bytes of data; for each acknowledgement that you add, provide the acknowledgement number.

Answer:

a)In the second segment from Host A to B, the sequence number is 409, source port

number is 1028 and destination port number is 80.

b)If the first segment arrives before the second, in the acknowledgement of the first

arriving segment, the acknowledgement number is 409, the source port number is 80 and the destination port number is 1028.

c)If the second segment arrives before the first segment, in the acknowledgement of

the first arriving segment, the acknowledgement number is 359, indicating that it is still waiting for bytes 359 and onwards.

d)

14.(教材P25)Host A and B are directly connected with a 200 Mbps link. There is one TCP

connection between the two hosts, and Host A is sending to Host B an enormous file over this connection. Host A can send application data into the link at 100 Mbps but Host B can read out of its TCP receive buffer at a maximum rate of 50 Mbps. Describe the effect of TCP flow control.

Answer: Host A sends data into the receive buffer faster than Host B can remove data from the buffer. The receive buffer fills up at a rate of roughly 50Mbps. When the buffer is full, Host B signals to Host A to stop sending data by setting RcvWindow = 0. Host A then stops sending until it receives a TCP segment with RcvWindow > 0. Host A will thus repeatedly stop and start sending as a function of the RcvWindow values it receives from Host B. On average, the long-term rate at which Host A sends data to Host B as part of this connection is no more than 50Mbps.

15.(教材P30)In Section 3.5.4, we saw that TCP waits until it has received three duplicate ACKs

before performing a fast retransmit. Why do you think the TCP designers chose not to perform a fast retransmit after the first duplicate ACK for a segment is received?

Answer: Suppose packets n, n+1, and n+2 are sent, and that packet n is received and ACKed. If packets n+1 and n+2 are reordered along the end-to-end-path (i.e., are received in the order n+2, n+1) then the receipt of packet n+2 will generate a duplicate ack for n and would trigger a retransmission under a policy of waiting only for second duplicate ACK for retransmission. By waiting for a triple duplicate ACK, it must be the case that two???three packets after packet n are correctly received, while n+1 was not received. The designers of the triple duplicate ACK scheme probably felt that waiting for two packets (rather than 1) was the right tradeoff between triggering a quick retransmission when needed, but not retransmitting prematurely in the face of packet reordering.

16.(教材P34)Consider the following plot of TCP window size as a function of time.

Assuming TCP Reno is the protocol experiencing the behavior shown above, answer the following questions. In all cases, you should provide a short discussion justifying your answer.

a. Identify the intervals of time when TCP slow start is operating.

b. Identify the intervals of time when TCP congestion avoidance is operating.

c. After the 16th transmission round, is segment loss detected by a triple duplicate ACK or by

a timeout?

d. After the 22nd transmission round, is segment loss detected by a triple duplicate ACK or by

a timeout?

e. What is the initial value of Threshold at the first transmission round?

f. What is the value of Threshold at the 18th transmission round?

g. What is the value of Threshold at the 24th transmission round?

h. During what transmission round is the 70th segment sent?

i. Assuming a packet loss is detected after the 26th round by the receipt of a triple duplicate

ACK, what will be the values of the congestion window size and of Threshold?

Answer:

a)TCP slowstart is operating in the intervals [1,6] and [23,26]

b)TCP congestion advoidance is operating in the intervals [6,16] and [17,22]

c)After the 16th transmission round, packet loss is recognized by a triple duplicate ACK. If

there was a timeout, the congestion window size would have dropped to 1.

d)After the 22nd transmission round, segment loss is detected due to timeout, and hence

the congestion window size is set to 1.

e)The threshold is initially 32, since it is at this window size that slowtart stops and

congestion avoidance begins.

f)The threshold is set to half the value of the congestion window when packet loss is

detected. When loss is detected during transmission round 16, the congestion windows size is 42. Hence the threshold is 21 during the 18th transmission round.

g)The threshold is set to half the value of the congestion window when packet loss is

detected. When timer out event occurred during transmission round 23, the congestion windows size is 26. Hence the threshold is 13 during the 24th transmission round.

h)During the 1st transmission round, packet 1 is sent; packet 2-3 are sent in the 2nd

transmission round; packets 4-7 are sent in the 3rd transmission round; packets 8-15 are sent in the 4th transmission round; packets 15-31 are sent in the 5th transmission round;

packets 32-63 are sent in the 6th transmission round; packets 64 – 96 are sent in the 7th transmission round. Thus packet 70 is sent in the 7th transmission round.

i)The congestion window and threshold will be set to half the current value of the

congestion window (8) when the loss occurred. Thus the new values of the threshold and window will be 4.

17.(教材P38)Host A is sending an enormous file to Host B over a TCP connection. Over this

connection there is never any packet loss and the timers never expire. Denote the transmission rate of the link connecting Host A to the Internet by R bps. Suppose that the process in Host A is capable of sending data into its TCP socket at a rate S bps, where S = 10*R. Further suppose that the TCP receive buffer is large enough to hold the entire file, and the send buffer can hold only one percent of the file. What would prevent the process in Host A from continuously passing data to its TCP socket at rate S bps? TCP flow control? TCP congestion control? Or something else? Elaborate.

Answer: In this problem, there is no danger in overflowing the receiver since the receiver’s receive buffer can hold the entire file. Also, because there is no loss and acknowledgements are returned before timers expire, TCP congestion control does not throttle the sender. However, the process in host A will not continuously pass data to the socket because the send buffer will quickly fill up. Once the send buffer becomes full, the process will pass data at an average rate or R << S.

18.在TCP协议中,为了使通信不致发生混乱,引入了所谓套接字的概念,这里,套接字由( )

和IP地址两部分组成。

A。端口号 B.域名C。接口D。物理地址

解析:端口号和IP地址合起来,称为套接字,套接字可以在全网范围内唯一标识一个端口。在TCP协议中,一条连接两端的套接字就可以唯一标识该连接了。所以选项A为正确答案。

答案:A

19.面向连接的传输有三个过程:连接建立、( )和连接释放。

A.连接请求B。连接应答C。数据传输D。数据共享

解析:面向连接服务具有连接建立、数据传输和连接释放这三个阶段。所以选项C为正确答案。

答案:C

20. 试述UDP 和TCP 协议的主要特点及它们的使用场合。(华中科技大学2003年试题)

解析:用户数据报协议是对IP 协议组的扩充,它增加了一种机制,发送方使用这种机制可以区分一台计算机上的多个接收者。每个UDP 报文除了包含某用户进程发送数据外,还有报文目的端口的编号和报文源端口的编号,从而使UDP 的这种扩充,在两个用户进程之间的递送数据报成为可能。

TCP 提供的是一种可靠的数据流服务。当传送受差错干扰的数据,或基础网络故障,或网络负荷太重而使网络基本传输系统(无连接报文递交系统)不能正常工作时,就需要通过TCP 这样的协议来保证通信的可靠。

答案:UDP 是一个简单的面向数据报的传输层协议。应用进程的每个输出操作都产生一个UDP 数据报,并组装成一份待发送的IP 数据报中发送。UDP 提供不可靠、无连接的数据报服务,它把应用程序传给IP 层的数据发送出去,但是并不保证它们能到达目的地。因此,uDP 通常用于不要求可靠传输的场合,另外也常用于客户机/服务器模式中。

TCP 协议被用来在一个不可靠的互联网中为应用程序提供可靠的端点间的字节流服务。所有TCP 连接都是全双工和点对点的,因而TCP 不支持广播和组播的功能。TCP 实体间以“段”为单位进行数据交换。为实现可靠的数据传输服务,TCP 提供了对段的检错、应答、重传和排序的功能,提供了可靠地建立连接和拆除连接的方法,还提供了流量控制和阻塞控制的机制。TCP 适用于传输大量重要数据的场合。

21. 在使用TCP 协议传送数据时,如果有一个确认报文段丢失了,也不一定会引起对方数据的

重传。试说明为什么?

解析:本题考查的是TCP 重传机制。

TCP 连接的一个重要的特性就是为上层服务提供了一个可靠的数据流。由于TCP 是建立在不可靠的IP 层的基础之上的,因此就必然涉及报文丢失的问题,这样,报文的重传就成了保证数据可靠到达的一个重要机制。这方面TCP 采取了超时重传的策略,对每个TCP 连接都维护一个计时器,每发送一个报文:就设置一次计时器,只要计时器设置的重传时间已到但仍然没有收到相应的确认信息,就重传这一报文。

答案:对方还未来得及重传,就收到了对更高序号的确认,相当于对连同被丢失确认的报文段一并确认。

22. 在连续ARQ 协议中,设编号用3位,而发送窗口T W =8,试找出一种情况,使得在此情况下协

议不能正常工作。

解答:发送端: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0

接收端: 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0

当发送方发送0~7数据帧,因发送窗口已满,发送暂停,接收方收到所有数据帧,并对每一个帧都发送确认帧,若所有的确认帧都没有到达发送方,经过发送方计时器控制的超时后,发送方会再次发送之前的8个数据帧,而接收方收到这8个帧却无法判断是新的数据帧或是重传的数据帧。

23. 在选择重传ARQ 协议中,设编号用3位。再设发送窗口T W =6,而接收窗口R W =3。试找出

一种情况,使得在此情况下协议不能正常工作。解答:发送端:0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0

接收端:0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0

Chapter 4

1.(R2,答案R3)What is the difference between routing and forwarding?

2.(R3,答案R2)What are the two most important network-layer functions in a datagram

network? What are the three most important network-layer functions in a virtual-circuit network?

3.(R4,答案R4)Do the routers in both datagram networks and virtual-circuit networks use

forwarding tables? If so, describe the forwarding tables for both classes of networks.

4.(R6,答案R9)Describe how packet loss can occur at input ports. Describe how packet loss

at input ports can be eliminated (without using infinite buffers).

5.(R9,答案R10)Describe how packet loss can occur at output ports.

6.(R11,答案R11)What is HOL blocking? Does it occur in input ports or output ports?

7.(R12,答案R13)What is the 32-bit binary equivalent of the IP address 223.1.3.27?

8.(R13,答案R?)Do routers have IP addresses? If so, how many?

9.(R22,答案R23)Is it necessary that every autonomous system use the same intra-AS

routing algorithm? Why or why not?

10.(R24,答案R24)Consider Figure 4.35. Starting with the original table in D, suppose that D

receives from A the following advertisement:

Will the table in D change? If so how?

11.(R27,答案R22)Why are different inter-AS and intra-AS protocols used in the Internet?

12.(P8,答案P8,但具体值不对)Consider a datagram network using 32-bit host addresses.

Suppose a router has five links, numbered 0 through 4, and packets are to be forwarded to the link interfaces as follows:

Destination Address Range Link Interface

11100000 00000000 00000000 00000000

Through 0

11100000 00000000 11111111 11111111

11100000 00000001 00000000 00000000

Through 1

11100000 00000001 11111111 11111111

11100000 00000010 00000000 00000000

Through 2

11100000 11111111 11111111 11111111

11100001 00000000 00000000 00000000

Through 3

11100001 11111111 11111111 11111111

Otherwise 4

a. Provide a forwarding table that has five entries, uses longest prefix matching, and forwards

packets to the correct link interfaces.

Prefix Match Link Interface

11100000 00000000 0

11100000 00000001 1

11100000 2

11100001 3

Otherwise 4

b. Describe how your forwarding table determines the appropriate link interface for

datagrams with destination addresses:

11001000 10010001 01010001 01010101

11100000 10101101 11000011 00111100

11100001 10000000 00010001 01110111

13.(P9,答案P9)Consider a datagram network using 8 bit host addresses. Suppose a router

the number of addresses in the range.

(14、15、16可选讲)

14.(P11,答案P11,但值不对)Consider a router that interconnects three subnets: Subnet 1,

Subnet 2, and Subnet 3. Suppose all of the interfaces in each of these three subnets are required to have the prefix 220.2.240/20. Also suppose that Subnet 1 is required to support up to 2000 interfaces, and Subnets 2 and 3 are each required to support up to 1000 interfaces. Provide three network addresses (of the form a.b.c.d/x) that satisfy these constraints.

总共的地址空间包括232-20=212=4096

220.2.240.0/20 = 11011100 00000010 11110000 00000000

Subnet 1需要2000个IP,因此分配

220.2.240.0/21= 11011100 00000010 11110000 00000000

Subnet 2和3需要1000个IP,因此将剩下的/21均分为两个/22

Subnet 2:220.2.248.0/22 = 11011100 00000010 11111000 00000000

Subnet 3:220.2.252.0/22 = 11011100 00000010 11111100 00000000

计算机网络原理习题讲解

Chapter I 1. What is the difference between a host and an end system? List the types of end systems. Is a Web server an end system? 2. What is a client program? What is a server program? Does a server program request and receive services from a client program? 3. List six access technologies. Classify each one as residential access, company access, or mobile access. 4. Dial-up modems, HFC, and DSL are all used for residential access. For each of these access technologies, provide a range of transmission rates and comment on whether the transmission rate is shared or dedicated. 5. Describe the most popular wireless Internet access technologies today. Compare and contrast them. 6. What advantage does a circuit-switched network have over a packet-switched network? What advantages does TDM have over FDM in a circuit-switched network? 7. Consider sending a packet from a source host to a destination host over a fixed route. List the delay components in the end-to-end delay. Which of these delays are constant and which are variable? 8. How long does it take a packet of length 2,000 bytes to propagate over a link of distance 2,000 km, propagation speed 8 102? m/s, and transmission rate 2 Mbps? More generally, how long does it take a packet of length L to propagate over a link of distance d, propagation speed s, and transmission rate R bps? Does this delay depend on packet length? Does this delay depend on transmission rate? 9. What are the five layers in the Internet protocol stack? What are the principal responsibilities of each of these layers? 10. Which layers in the Internet protocol stack does a router process? Which layers does a link-layer switch process? Which layers does a host process? 11. What is an application-layer message? A transport-layer segment? A network-layer datagram? A link-layer frame? 12. This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. a. Express the propagation delay, prop d , in terms of m and s. b. Determine the transmission time of the packet,trans d , in terms of L and R. c. Ignoring processing and queuing delays, obtain an expression for the end-to-end delay. d. Suppose Host A begins to transmit the packet at time t = 0. At time trans d t =,where is the last bit of the packet?

《计算机网络原理》复习题及答案知识分享

《计算机网络原理》复习题及答案

《计算机网络原理》讲义 第一部分选择题 1、在Internet网络管理的体系结构中,SNMP协议定义在【 B 】 A.网络访问层 B.网际层 C.传输层 D.应用层 2、在网络管理标准中,通常把【 B 】层以上的协议都称为应用层协议。 A.应用 B.传输 C.网络 D.数据链路 3、TCP提供面向【 B 】的传输服务。 A、无连接 B、连接、 C、地址 D、端口 4、路由协议分类中,外部网关协议是指【 A 】 A.在自治系统之间的路由协议 B.在一个Intranet 内的路由协议 C.在一个局域网内的路由协议 D.在一个校园网内的路由协议 5、TCP提供一个或多个端口号作为通信主机中应用进程的【 B 】 A.进程号 B.地址 C.作业号 D.计数器 6、光纤分为单模光纤和多模光纤,这两种光纤的区别是【 D 】。 A. 单模光纤的数据速率比多模光纤低 B. 多模光纤比单模光纤传输距离更远 C. 单模光纤比多模光纤的价格更便宜 D. 单模光纤的纤芯小,多模光纤的纤芯大 7、IEEE802.3规定的最小帧长为64字节,这个帧长是指【 B 】。A.从前导字段到校验和字段的长度 B.从目标地址到校验和的长度C.从帧起始符到校验和的长度 D.数据字段的长度 8、TCP协议使用【 C 】次握手机制建立连接。 A.1 B.2 C.3 D.4 9、RIP协议默认的路由更新周期是【 A 】秒。 A.30 B.60 C.90 D.100 10、DNS是用来解析下列各项中的哪一项【 D 】

A. IP地址和MAC地址 B. 主机名和MAC地址 C.主机名和TCP端口地址 D. 主机名和IP地址 11、计算机网络是一门综合技术的合成,其主要技术是:【 B 】 A、计算机技术与多媒体技术 B、计算机技术与通信技术 C、电子技术与通信技术 D、数字技术与模拟技术 12、在因特网中,由网络和连接这些网络的路由器组成的部分叫做:【 D 】 A、传输部分 B、交换部分 C、边缘部分 D、核心部分 13、对于信噪比来说,当S/N=1000时,信噪比为。【 C 】 A、 30 B、 10 C、 30 dB D、 10 dB 14、数据链路层的数据单位称为:【 C 】 A、比特 B、字节 C、帧 D、分组 15、通常把运行域名服务器程序的机器称为。【 A 】 A. 域名服务器 B. FTP服务器 C. 邮件服务器 D. WWW服务器 16、RIP协议允许一条路径最多只能包含个路由器。 【 B 】 A.10 B. 15 C.50 D. 100 17、1Gb/s网卡发送125Byte的数据量,则发送时延为秒。【 A 】 A 1*10-6 B 5*10-6 C 1*10-9 D 1*10-3 18、物理层的主要任务为: __ 。【 B 】 A 提供传输介质 B 透明地传输比特流 C 实现通信双方的比特同步 D 提供调制与解调功能 19、MTU指的是。【】 A 帧的长度上限 B帧的长度下限 C帧数据部分的长度上限 D 帧数据部分的长度下限 20、在顶级域名中,表示公司的是。【 A 】

全国自考《计算机网络原理》历年真题试题及答案

2015年10月高等教育自学考试全国统一命题考试 计算机网络原理试卷 (课程代码04741) 本试卷共4页,满分100分。考试时间150分钟。 考生答题注意事项: 1.本卷所有试题必须在答题卡上作答。答在试卷上无效,试卷空白处和背面均可作草稿纸。2.第一部分为选择题。必须对应试卷上的题号使用2B铅笔将“答题卡”的相应代码涂黑。3.第二部分为非选择题。必须注明大、小题号,使用0.5毫米黑色字迹签字笔作答. 4.合理安排答题空间,超出答题区域无效。 第一部分选择题 一、单项选择题(本大题共24小题,每小题1分,共24分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其选出并将“答题卡” 的相应代码涂黑。未涂、错涂或多涂均无分。 1.局域网LAN一般采用的传输方式为 A.“高速”方式B.“无线传输”方式 C.“广播”方式D.“存储-转发”方式 2.首次使用分组交换方式的网络是 A.ARPANET B.SNA网C.无线局域网D.DNA网 3.采用广播信道通信子网的基本拓扑中不包括 A.树形B.总线形C.环形D.网状形 4.下列关于星形拓扑特点的描述中错误的是 A.故障诊断和隔离容易B.通常采用分布式通信控制策略 C.控制简单且方便服务D.中央节点负担较重,形成瓶颈 5.因特网的标准都具有的一个编号是 A.ITU编号B.EIA编号C.RFC编号D.ISO编号 6.OSl参考模型包括的三级抽象中不含有 A.实现描述B.体系结构C.服务定义D.协议规范 7.将协议数据单元称为“分组”的是 A.应用层B.传输层C.网络层D.物理层 8.下列关于无连接通信服务特点的描述中错误的是 A.分组要携带目的节点地址B.数据分组可能丢失 C.传输过程中不需建立连接D.收发数据顺序不变 9.TCP/IP是一组协议的代名词,一般来说IP提供 A.应用层服务B.网络层服务C.传输层服务D.物理层服务 10.若采用HDLC规程发送的数据为1100,则接收的实际数据应为 A.10 B.110 C 11 11.局域网IEEE802标准中采用的帧同步方法是 A.字节计数法B.比特填充的首尾标志法 C.违法编码法D.字符填充的首尾定界符法

计算机网络原理2011年7月份真题

全国2011年7月高等教育自学考试 计算机网络原理试题 课程代码:04741 一、单项选择题(本大题共24小题,每小题1分,共24分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分。 1.Internet采用的拓扑结构是( ) A.星型结构 B.环型结构 C.树型结构 D.网状结构 2.按照网络传输技术,可将计算机网络分为( ) A.A TM网和虚拟网 B.报文交换网和分组交换网 C.局域网和广域网 D.广播式网络和点对点网络 3.OSI参考模型包括的“三级抽象”是( ) A.语法、语义和定时 B.体系结构、服务定义和协议规范 C.分层结构、网络协议和层间接口 D.体系结构、功能定义和实现方法 4.TCP/IP参考模型的4个层次从低到高的顺序是( ) A.应用层、传输层、互连层、主机—网络层 B.互连层、主机—网络层、传输层、应用层 C.应用层、主机—网络层、传输层、互连层 D.主机—网络层、互连层、传输层、应用层 5.下列协议中,属于TCP/IP参考模型应用层的是( ) A.DNS B.UDP C.TCP D.ARP 6.下列关于光纤传输介质的叙述中错误 ..的是( ) A.光纤具有不受电磁干扰的特征 B.光纤普遍应用于点到点的链路 C.一条光纤线路只能传输一个载波 D.对光载波的调制属于移幅键控法 7.对于带宽为3KHz的无噪声信道,若一个码元可取的离散值个数为4,则该信道码元 的极限速率和最大数据传输速率分别为( ) A.6KBaud和12Kbps B.6KBaud和24Kbps C.12KBaud和6Kbps D.12KBaud和24Kbps 8.对于采用窗口机制的流量控制方法,若窗口尺寸为4,则在发送3号帧并收到2号帧的确认后,还可连续发送( ) A.4帧 B.3帧 C.2帧 D.1帧 9.在HDLC的帧中,帧检验序列的长度为( ) A.64bit B.48bit C.32bit D.16bit 10.逆向路径转发算法是一种( ) A.静态路由选择算法 B.动态路由选择算法 C.多播路由选择算法 D.广播路由选择算法 11.因特网的互连层协议中不包括 ...( ) A.ICMP B.SNMP C.IP D.RARP

计算机网络原理课后习题答案

第1章 PSE:分组交换设备 PAD:分组装配、拆卸装备 NCC:网络控制中心 FEP:前端处理机 IMP:接口信息处理机 PSTN:电话交换网 ADSL:非对称用户环路 DDN:数字数据网 FR:帧中继 ATM:异步转移模式 ISDN:综合服务数字网 VOD:电视点播 WAN:广域网 LAN:局域网 MAN:城域网 OSI:开放系统互连基本模型 ITU:国际电信联盟 IETF:英特网工程特别任务组 第2章 1.说明协议的基本含义,三要素的含义与关系。 答:为计算机网络中进行数据交换而建立的规则、标准或约定的集合就称为协议。协议三要素: (1)语义:涉及用于协调与差错处理的控制信息。 (2)语法:涉及数据及控制信息的格式、编码及信号电平等。

(3)定时:涉及速度匹配和排序等。 3.计算机网络采用层次结构模型的理由是什么?有何好处? 答:计算机网络系统是一个十分复杂的系统。将一个复杂系统分解为若干个容易处理的子系统,然后“分而治之”逐个加以解决,这种结构化设计方法是工程设计中常用的手段。分层就是系统分解的最好方法之一。 分层结构的好处在于使每一层实现一种相对独立的功能。每一层的功能相对简单而且易于实现和维护。具有很大的灵活性。分层结构有利于交流、理解和标准化。 6.请比较面向连接服务和无连接服务的异同点。 答:面向连接服务和电话系统的工作模式相类似。数据传输过程前必须经过建立连接、维护连接和释放连接的3个过程;在数据传输过程中,各分组不需要携带目的的节点的地址。面向连接数据传输的手法数据顺序不变,传输可靠性好,需通信开始前的连接开销,协议复杂,通信效率不高。 无连接服务与邮政系统的信件投递过程相类似。每个分组都是要携带完整的目的节点的地址,各分组在通信子网中是独立传送的。数据传输过程不需要经过建立连接、维护连接和释放连接的3个过程;目的节点接收到的数据分组可能出现乱序、重复与丢失的现象。可靠性不是很好,通信协议相对简单、效率较高。 9.试比较OSI/RM与TCP/IP的异同点。 答:相同点:两者都以协议栈的概念为基础,并且协议栈中的协议彼此相互独立,而且两个模型中都采用了层次结构的概念,各个层的功能也大体相似。 不同点:(1)OSI模型有七层,TCP/IP是四层,它们都有网络层、传输层和应用层,但其它的层并不相同。 (2)无连接和面向连接的通信范围有所不同。 第3章 3.请说明和比较双绞线、同轴电缆与光纤3种常用介质的特点。 答:双绞线:由螺线状扭在一起的两根、四根或八根绝缘导线组成,线对扭在一起可以减少相互间的辐射电磁干扰。双绞线是最常用的传输介质,可用于模拟信号和数字信号的传输。 同轴电缆:也像双绞线一样由一对导体组成,但它们是按“同轴”形式构成线对。最里层是内芯,向外依次为绝缘层、屏蔽层,最外是起保护作用的塑料外套,内芯和屏蔽层构成一对导体。适用于点到点和多点连接。

计算机网络原理试题

计算机网络原理试题 TYYGROUP system office room 【TYYUA16H-TYY-TYYYUA8Q8-

2016年4月高等教育自学考试全国统一命题考试 计算机网络原理试卷 (课程代码04741) 本试卷共4页,满分l00分。考试时间l50分钟。 考生答题注意事项: 1.本卷所有试题必须在答题卡上作答。答在试卷上无效,试卷空白处和背面均可作草稿纸。 2.第一部分为选择题。必须对应试卷上的题号使用2B铅笔将“答题卡”的相应代码涂黑。 3.第二部分为非选择题。必须注明大、小题号,使用0.5毫米黑色字迹签字笔作答。 4.合理安排答题空间,超出答题区域无效。 第一部分选择题 一、单项选择题(本大题共24小题,每小题l分,共24分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其选出并将“答题卡” 的相应代码涂黑。未涂、错涂或多涂均无分。 1.电信业一般认为,宽带骨干网的传输速率至少应达到 2.电子银行的核心功能是 A.自动存取款作业 B.金融交易卡服务 C.电子汇款与清算 D.销售点自动转账 3.下列关于环形拓扑优点的表述中错误的是 A.电缆长度短 B.网络性能稳定 C.可使用光纤 D.故障检测容易 参考模型中处理端到端的差错控制和流量控制的是 A.数据链路层 B.网络层 C.传输层 D.应用层 5.下列协议中不属于TCP/IP参考模型互连层协议的是 6.下列关于交换技术的说法中错误的是 A.电路交换适用于猝发式通信 B.报文交换不能满足实时通信 C.报文交换的电路利用率高 D.分组交换适用于交互式通信 7.对于正交相移键控QPSK调制,若数据传输速率达到9600bps,则码元速率为 8.计算机网络中使用最广泛的交换技术是

计算机网络原理习题答案

计算机网络原理习题答案

Review Questions Section 2.1 1)List five non-proprietary(非专有的)Internet applications and the application-layer protocols that they use. 列举五种非专用的英特网应用以及它们所使用的应用层协议。 2)For a communication session(会议) between two hosts, which host is the client and which is the server? 对俩主机之间的通信会话,哪个主机是客户机,哪个主机是服务器? The process which initiates(发起)the communication is the client; the process that waits to be contacted is the server. 3) What information is used by a process running on one host to identify a process running on another host? 运行在一台主机上的进程使用什么信息标识运行在另一台主机上的进程? The IP address of the destination host and the port number of the destination socket.

3)List the various network-application user agents that you use on a daily basis. 列举你每天都会使用的网络应用程序用户代理。 Web browser E-mail application user agent File Transfer user agent P2p user agent audio/video user agent 5) Referring to Figure 2.1-2, we see that not none of applications listed in the table require both "no data loss" and "timing". Can you conceive of an application that requires no data loss and that is also highly time sensitive? 参见图2.1-2,我们可以看到表中所列举的应用没有一个既要求没有数据丢失又要求定时。你能设想 出一个应用,既既要求没有数据丢失又要求定时吗? There are no good examples of an application that requires no data loss and timing. Sections 2.2-2.5 6) What is meant by a handshaking protocol? 握手协议的意义? A protocol uses handshaking if the two communicating entities first exchange control packets before sending data to each other. SMTP uses handshaking at the application layer whereas HTTP does not. 7) Why do HTTP, FTP, SMTP, POP3 and IMAP run on top of TCP rather than UDP? 为什么HTTP,FTP,SMTP,POP3 和IMAP 都运行在TCP 协议而不是UDP协议上? The applications associated with those protocols require that all application data be received in the correct order and without gaps. TCP provides this service whereas UDP does not.

2015年4月04741计算机网络原理试题及答案

2015年4月04741计算机网络原理试题及答案

全国2015年4月高等教育自学考试 计算机网络原理试题 一、单项选择题(本大题共24小题,每小题1分,共24分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其选出并将“答题纸”的相应代码涂黑。错涂、多涂或未涂均无分。1.被称为计算机网络技术发展里程碑的网络是A.Internet B.无线局域网 C.ARPA网 D.多媒体网络 2.下列关于星形拓扑结构优点的表述中错误的是 A.控制简单B.站点分布处理能力高 C.方便服务 D.故障诊断和隔离容易3.点对点式网络与广播式网络的重要区别之一是 A.分布范围不同 B.传输带宽不同 C.传输距离不同D.传输技术不同4.负责管理与发布Internet RFC技术文件的组织是 A.IETF B.IEEE C.ECMA D.ANSI

5.“涉及数据及控制信息的格式、编码及信号电平等”的网络协议要素是 A.语义 B.标准 C.语法 D.定时 6.在OSI参考模型中,负责处理端到端的差错控制和流量控制问题的是 A.应用层 B.传输层 C.网络层 D.数据链路层 7.下列网络协议中,属于应用层协议的是A.DNS B.ARP(互连层) C.UDP(传输层) D.TCP(传输层)8.规定了接口信号的来源、作用以及与其它信号之间关系的物理层特性是 A.机械特性 B.电器特性 C.功能特性 D.规程特性 9.在蜂窝移动通信系统中,主要采用的接入方法不包括 A.频分多址FDMA B.时分多址TDMA C.码分多址CDMA D.波分多址 10.若传输1000字节的二进制数时出错的位数为4比特,则该传输时的误码率为 A.4×10-3 B.0.5×10-4

计算机网络原理计算题及答案

计算机网络原理计算题 1.设利用12MHz的采样频率对信号进行采样,苦量化级为4,试计算出在无噪声信道中的数据传输速率和所需的信道带宽。 解析: 根据R = 采样频率*log2(N); 数据传输率R =12MHz*log2(4)=24Mbps; 根据采样定律:被采样信号带宽=采样频率/2; 所需信号带宽=12MHz/2=6MHz; 2.设信道带宽为2400Hz,采用PCM编码,采样周期为125us,每个样本量化为128个等级,则信道的数据速率为? 解析: 采样频率f = 1/T = 1/0.000125 = 8000Hz 传输速率R = F * log2(N) = 56Kbps 3.设信号的采样量化级为256,若要使数据传输速率达到64Kbps,试计算出所需的无噪声信道的带宽和信号调制速率。(要求写出计算过程) 解析:根据奈圭斯特公式 C = 2H * log2(N) 即64000 = 2H * log2(256) H = 64000/2/8 = 4KHz 信号调制速率 B = 2H 即B = 8000 (baud) 4.有一受随机噪声干扰的信道,其带宽为4KHz,信噪比为30dB。试求出最大数据传输速率。 解析: 根据香农公式 C = H * log2(1+S/N) C = 4000 * log2(1+10^(30/10)) = 4000 * log2(1001) ≈40Kbps 5.假设使用调制解调器,并采用1位起始位、1位停止位、无校验位的异步传输模式,在1分钟内传输7200个汉字(双字节),调制解调器至少应达到的传输速率为多少? 解析: 一个汉字两个字节,7200个汉字就是7200*2,1个起始位8个数据位1们停止位共10位组成一帧,求1分钟的传输速率,则: (7200*2)*(1+8+1) /60 = 2400bps; 6.调制解调器的传输速率为4800bps,并采用1位起始位,1位停止位,1位奇偶校验位的异步传输模式,求传输2400个汉字所需要的时间。(要求写出计算过程) 解析: 一个汉字两个字节.2400个汉字就是2400*2, 1个起始位8个数据位1个奇偶校验位1个终止位,一共11个位组成1帧,每帧传送一个字节,那就需:

计算机网络第三章习题答案解析

第三章数据链路层 3-01 数据链路(即逻辑链路)与链路(即物理链路)有何区别? “电路接通了”与”数 据链路接通了”的区别何在? 答:数据链路与链路的区别在于数据链路出链路外,还必须有一些必要的规程来控制数 据的传输,因此,数据链路比链路多了实现通信规程所需要的硬件和软件。 “电路接通了”表示链路两端的结点交换机已经开机,物理连接已经能够传送比特流了 ,但是,数据传输并不可靠,在物理连接基础上,再建立数据链路连接,才是“数据链 路接通了”,此后,由于数据链路连接具有检测、确认和重传功能,才使不太可靠的物 理链路变成可靠的数据链路,进行可靠的数据传输当数据链路断开连接时,物理电路连 接不一定跟着断开连接。 3-02 数据链路层中的链路控制包括哪些功能?试讨论数据链路层做成可靠的链路层 有哪些优点和缺点. 答:链路管理帧定界流量控制差错控制 将数据和控制信息区分开透明传输寻址可靠的链路层的优点和缺点取决于所应用的环境:对于干扰严重的信道,可靠的链路层可以将重传范围约束在局部链路,防止全网络的传输效率受损;对于优质信道,采用可靠的链路层会增大资源开销,影响传输效率。 3-03 网络适配器的作用是什么?网络适配器工作在哪一层? 答:适配器(即网卡)来实现数据链路层和物理层这两层的协议的硬件和软件 网络适配器工作在TCP/IP协议中的网络接口层(OSI中的数据链里层和物理层) 3-04 数据链路层的三个基本问题(帧定界、透明传输和差错检测)为什么都必须加以 解决? 答:帧定界是分组交换的必然要求;透明传输避免消息符号与帧定界符号相混淆; 差错检测防止有差错的无效数据帧浪费后续路由上的传输和处理资源 3-05 如果在数据链路层不进行帧定界,会发生什么问题? 答:无法区分分组与分组;无法确定分组的控制域和数据域;无法将差错更正的范围限定在确切的局部 3-06 PPP协议的主要特点是什么?为什么PPP不使用帧的编号?PPP适用于什么情况 ?为什么PPP协议不能使数据链路层实现可靠传输? 答:简单,提供不可靠的数据报服务,检错,无纠错不使用序号和确认机制 地址字段A 只置为 0xFF。地址字段实际上并不起作用。控制字段 C 通常置为 0x03。PPP 是面向字节的当 PPP 用在同步传输链路时,协议规定采用硬件来完成比特填充(和HDLC 的做法一样),当 PPP 用在异步传输时,就使用一种特殊的字符填充法 PPP适用于线路质量不太差的情况下、PPP没有编码和确认机制 3-07 要发送的数据为1101011011。采用CRC的生成多项式是P(X)=X4+X+1。试求应 添加在数据后面的余数。数据在传输过程中最后一个1变成了0,问接收端能否发现?若 数据在传输过程中最后两个1都变成了0,问接收端能否发现?采用CRC检验后,数据链 路层的传输是否就变成了可靠的传输? 答:作二进制除法,11010110110000模2除 10011 得余数1110 ,添加的检验序列是1110.

全国自考 《计算机网络原理》历年真题试题及答案

2016年4月高等教育自学考试全国统一命题考试 计算机网络原理试卷 (课程代码04741) 本试卷共4页,满分l00分。考试时间l50分钟。 考生答题注意事项: 1.本卷所有试题必须在答题卡上作答。答在试卷上无效,试卷空白处和背面均可作草稿纸。 2.第一部分为选择题。必须对应试卷上的题号使用2B铅笔将“答题卡”的相应代码涂黑。 3.第二部分为非选择题。必须注明大、小题号,使用0.5毫米黑色字迹签字笔作答。 4.合理安排答题空间,超出答题区域无效。 第一部分选择题 一、单项选择题(本大题共24小题,每小题l分,共24分) 在每小题列出的四个备选项中只有一个是符合题目要求的,请将其选出并将“答题卡” 的相应代码涂黑。未涂、错涂或多涂均无分。

1.电信业一般认为,宽带骨干网的传输速率至少应达到 2.电子银行的核心功能是 A.自动存取款作业 B.金融交易卡服务 C.电子汇款与清算 D.销售点自动转账 3.下列关于环形拓扑优点的表述中错误的是 A.电缆长度短 B.网络性能稳定 C.可使用光纤 D.故障检测容易 参考模型中处理端到端的差错控制和流量控制的是 A.数据链路层 B.网络层 C.传输层 D.应用层 5.下列协议中不属于TCP/IP参考模型互连层协议的是

6.下列关于交换技术的说法中错误的是 A.电路交换适用于猝发式通信 B.报文交换不能满足实时通信 C.报文交换的电路利用率高 D.分组交换适用于交互式通信 7.对于正交相移键控QPSK调制,若数据传输速率达到9600bps,则码元速率为 8.计算机网络中使用最广泛的交换技术是 A.电路交换 B.报文交换 C.分组交换 D.线路交换 9.下列数据链路层的功能中属于链路管理功能的是 A.建立连接 B.流量控制 C.帧的同步 D.差错控制 10.可用于数据链路层流量控制的方案是 A.前向纠错 B.滑动窗口机制 C.拥塞控制 D.三次握手机制

计算机网络原理计算题及答案

计算机网络原理计算题 及答案 This model paper was revised by LINDA on December 15, 2012.

计算机网络原理计算题1.设利用12MHz的采样频率对信号进行采样,苦量化级为4,试计算出在无噪声信道中的数据传输速率和所需的信道带宽。 解析: 根据R = 采样频率*log2(N); 数据传输率R =12MHz*log2(4)=24Mbps; 根据采样定律:被采样信号带宽=采样频率/2; 所需信号带宽=12MHz/2=6MHz; 2.设信道带宽为2400Hz,采用PCM编码,采样周期为125us,每个样本量化为128个等级,则信道的数据速率为? 解析: 采样频率f = 1/T = 1/ = 8000Hz 传输速率R = F * log2(N) = 56Kbps 3.设信号的采样量化级为256,若要使数据传输速率达到64Kbps,试计算出所需的无噪声信道的带宽和信号调制速率。(要求写出计算过程)

解析:根据奈圭斯特公式 C = 2H * log2(N) 即 64000 = 2H * log2(256) H = 64000/2/8 = 4KHz 信号调制速率 B = 2H 即 B = 8000 (baud) 4.有一受随机噪声干扰的信道,其带宽为4KHz,信噪比为30dB。试求出最大数据传输速率。 解析: 根据香农公式 C = H * log2(1+S/N) C = 4000 * log2(1+10^(30/10)) = 4000 * log2(1001) ≈ 40Kbps 5.假设使用调制解调器,并采用1位起始位、1位停止位、无校验位的异步传输模式,在1分钟内传输7200个汉字(双字节),调制解调器至少应达到的传输速率为多少? 解析: 一个汉字两个字节,7200个汉字就是7200*2,1个起始位8个数据位1们停止位共10位组成一帧,求1分钟的传输速率,则: (7200*2)*(1+8+1) /60 = 2400bps;

自考计算机网络原理 试题及答案

2018年4月高等教育自学考试全国统一命题考试 计算机网络原理试卷 (课程代码04741) 本试卷共6页,满分l00分,考试时间l50分钟。 考生答题注意事项: 1.本卷所有试题必须在答题卡上作答。答在试卷上无效。试卷空白处和背面均可作草稿纸。 2.第一部分为选择题。必须对应试卷上的题号使用28铅笔将“答题卡”的相应代码涂黑。 3.第二部分为非选择题。必须注明大、小题号,使用0.5毫米黑色字迹签字笔作答。4.合理安排答题空间,超出答题区域无效。 第一部分选择题 一、单项选择题:本大题共24小题,每小题l分,共24分。在每小题列出的备选项中 只有一项是最符合题目要求的,请将其选出。 1.网络协议中涉及用于协调与差错处理的控制信息的要素是 A.语义 B.语法 C.定时 D.编码 2.“三网合一”中所指的三网不包括 A.传统电信网 B.计算机网络 C.企业内部网 D.广播电视网 3.以下网络拓扑构型中不采用点一点线路的通信子网的拓扑是 A.星形 B.网状形 C.树形 D.总线形 4.在广播式网络中所发送报文的目的地址不包括 A.主播地址 B.单播地址 C.多播地址 D.广播地址 5.下列网络协议中提供传输层服务的协议是 A.TCP与IP B.FTP与TCP C.IP与DNS D.TCP与UDP

15.HDLC的帧类型中不包括 A.信息帧 B.检测帧 C.监控帧 D.无编号帧 16.因特网中使用的开放最短路径优先协议(OSPF)用到的路由选择算法是 A.最短路由选择算法 B.基于流量路由算法 C.链路状态路由算法 D.距离矢量路由算法 17.为预防拥塞在网络的传输层上可采取的策略是

计算机网络原理最新计算题

公式积累 1.延时=发送延时+传播延时 2.信道利用率=发送时间/总时间 3.最短帧长=2倍传播延时*数据传输速率 4.吞吐率=原始帧发送时间/现发送一帧所用时间 5.环比特长度=数据传输速率*传播延时+站点引入延迟 N 6.C=B*log 2 7.奈奎斯特理论:C=2H* log N 2 (1+S/N) 8.香农公式:C=Hlog 2 9.冲突发现时间: 同时发送:1倍传播延时 不同时发送:2倍传播延时 10.令牌环中最大帧长=数据传输速率*令牌持有时间 常用数据单位 1K=210=1024=103 1M=220=106 1G=230=109 1秒=1000ms(毫秒) 1秒=106us(微秒) 1秒=109ns(纳秒) 1字节=8bit 电磁波在有线介质中的传播速度是200m/us 数据通信考点 1.设利用12MHz的采样频率对信号进行采样,若量化级为4,试计算出在无噪声信道中的数据传输速率和所需的信道带宽。(要求写出计算过程) 2.设信号的采样量化级为256,若要使数据传输速率达到64Kbps,试计算出所需的无噪声信道的带宽和信号调制速率。(要求写出计算过程) 3.有一受随机噪声干扰的信道,其带宽为4KHz,信噪比为30dB。试求出最大数据传输速率。

局域网考点 1.设A 、B 两站位于长1km 的基带总线局域网的两端,数据传输速率为10Mbps ,信号传播速率为 200s /m μ,若A 向B 发送800bit 的数据帧,B 接收完毕该帧所需的时间是多少?若A 、B 站同时发送数据,经过多长时间两站发现冲突? 2.A 、B 两站位于长2Km 的基带总线局域网的两端,C 站位于A 、B 站之间,数据传输速率为10Mbps ,信号传播速度为200m /μs ,B 站接收完毕A 站发来的一帧数据所需的时间是80μs ,求数据帧的长度;若A 、C 两站同时向对方发送一帧数据,4μs 后两站发现冲突,求A 、C 两站的距离。(要求写出计算过程) 3.有一个电缆长度为1Km 的CSMA/CD 局域网,信号传播速度为光速的2/3,其最小帧长度为1000bit 。试求出数据传输速率。 4.5000个站点竞争使用一个时分ALOHA 信道,信道时隙为125us ,各站点每小时发出36次请求。试计算总的信道载荷。(信道载荷指请求次数与时隙的比值) 5.有一个电缆长度为2Km 的CSMA /CD 局域网,数据传输速率为10Mbps ,信号传播速度为光速的2/3,数据帧长度是512bit(包括32bit 开销),传输成功后的第一个时隙留给接收方,用于捕获信道并发送一个32bit 的确认帧。假设没有冲突发生,试求出有效的数据传输速率(不包括开销)。(光速值为3×105Km/s) 异步传输考点 1.调制解调器的传输速率为4800bps ,并采用1位起始位,1位停止位,1位奇偶校验位的异步传输模式,求传输2400个汉字所需要的时间。(要求写出计算过程) 2.假设使用调制解调器,并采用1位起始位、1位停止位、无校验位的异步传输模式,在1分钟内 传输7200个汉字,调制解调器至少应达到的传输速率为多少? 差错控制编码考点: 1.已知发送方采用CRC 校验方法,生成多项式为X4+X3+1,若接收方收到的二进制数字序列为101110110101,请判断数据传输过程中是否出错。(要求写出计算过程) 2.设要发送的二进制数据为10110011,若采用CRC 校验方法,生成多项式为1X X 3 4++,试求出实际发送的二进制数字序列。(要求写出计算过程) 其他 1.有一个100Mbps 的令牌环网络,令牌环行时间是120μs ,每个主机在每次得到令牌后可以发送

计算机网络典型例题分析解答

典型例题分析解答 一、填空题 1网络层/Network是OSI参考模型中的第三层介于运输/TmsPOEt/T层和数据链路层之间。 1.【解析】网络层在OSI参考模型中位于第三层,它的主要功能是实现两个端系统之间的数据透明传送,具体功能包括路由选择、阻塞控制和网际互连等。 【答案】网络层/Network、运输/TmsPOEt/T 2.在虚电路操作方式中,为了进行数据传输,网络的源节点和目的节点之间要建立一条逻辑电路,称之为____。 2.【解析】虚电路不是专用的,每个节点到其它任一节点之间可能有若干条虚电路支持特定的两个端系统之间的数据传输,两个端系统之间也可以有多条虚电路为不同的进程服务,这些虚电路的实际路径可能相 同也可能不同。 【答案】虚电路 3.虚电路服务是OSI____层向运输层提供的一种可靠的数据传送服务,它确保所有分组按发送____到达目的地端系统。 3.【解析】在分组交换方式中,通信子网有虚电路和数据报两种操作方式,提供虚电路和数据报两种服务。虚电路操作方式中,为了进行数据传输,网络的源节点和目的节点之间要建立一条逻辑通路,称之为虚电路。虚电路服务是网络层向运输层提供的一种使所有分组按顺序到达目的端系统的可靠的数据传送方式。【答案】网络、顺序 4.在数据报服务方式中,网络节点要为每个____选择路由,在____服务方式中,网络节点只在连接建立时选择路由。 4.【解析】在数据报操作方式中,每个分组被称为一个数据报,每个数据报自身携带地址信息,若干个数据报构成一次要传送的报文或数据块.数据报服务是指端系统的网络层同网络节点中的网络层之间,一致地 按照数据报操作方式交换数据。 虚电路服务是面向连接的服务,数据报服务是无连接的服务。 【答案】分组/数据报、虚电路

计算机网络原理复习题及答案完整版

计算机网络原理复习题 及答案 Document serial number【NL89WT-NY98YT-NC8CB-NNUUT-NUT108】

《计算机网络原理》讲义 第一部分选择题 1、在Internet网络管理的体系结构中,SNMP协议定义在【 B 】 A.网络访问层 B.网际层 C.传输层 D.应用层 2、在网络管理标准中,通常把【 B 】层以上的协议都称为应用层协议。 A.应用 B.传输 C.网络 D.数据链路 3、TCP提供面向【 B 】的传输服务。 A、无连接 B、连接、 C、地址 D、端口 4、路由协议分类中,外部网关协议是指【 A 】 A.在自治系统之间的路由协议 B.在一个Intranet 内的路由协议 C.在一个局域网内的路由协议 D.在一个校园网内的路由协议 5、TCP提供一个或多个端口号作为通信主机中应用进程的【 B 】 A.进程号 B.地址 C.作业号 D.计数器 6、光纤分为单模光纤和多模光纤,这两种光纤的区别是【 D 】。 A. 单模光纤的数据速率比多模光纤低 B. 多模光纤比单模光纤传输距离更远 C. 单模光纤比多模光纤的价格更便宜 D. 单模光纤的纤芯小,多模光纤的纤芯大 7、IEEE802.3规定的最小帧长为64字节,这个帧长是指【 B 】。 A.从前导字段到校验和字段的长度 B.从目标地址到校验和的长度 C.从帧起始符到校验和的长度 D.数据字段的长度 8、TCP协议使用【 C 】次握手机制建立连接。 A.1 B.2 C.3 D.4 9、RIP协议默认的路由更新周期是【 A 】秒。 A.30 B.60 C.90 D.100 10、DNS是用来解析下列各项中的哪一项【 D 】 A. IP地址和MAC地址 B. 主机名和MAC地址 C.主机名和TCP端口地址 D. 主机名和IP地址 11、计算机网络是一门综合技术的合成,其主要技术是:【 B 】 A、计算机技术与多媒体技术 B、计算机技术与通信技术 C、电子技术与通信技术 D、数字技术与模拟技术 12、在因特网中,由网络和连接这些网络的路由器组成的部分叫做:【 D 】 A、传输部分 B、交换部分 C、边缘部分 D、核心部分 13、对于信噪比来说,当S/N=1000时,信噪比为。【 C 】 A、 30 B、 10 C、 30 dB D、 10 dB 14、数据链路层的数据单位称为:【 C 】

相关文档
最新文档