计网-第五章作业Word版_第1页
计网-第五章作业Word版_第2页
计网-第五章作业Word版_第3页
计网-第五章作业Word版_第4页
计网-第五章作业Word版_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、传播优秀Word版文档 ,希望对您有帮助,可双击去除!Chapter 5 作业题,请同学们注意题目描述。1. (R1)What are some of the possible services that a link-layer protocol can offer to the network layer? Which of these link-layer services have corresponding services in IP? In TCP?答:可能提供的服务:链路接入,成帧,可靠传输,流量控制,差错检测,差错纠正,半双工和全双工; In IP:成帧,差错检测; In T

2、CP: 成帧,可靠传输,差错检测,半双工和全双工。2. (R2)If all the links in the Internet were to provide reliable delivery service, would the TCP reliable delivery service be redundant? Why or why not?答:不会多余,因为TCP保证的是传输层的数据传送,而link提供稳定可靠传输保证链路层的传输稳定,二者不完全重叠,所以TCP可靠传输也不会多余。例如,链路层协议不能保证端到端的顺序,就需要TCP协议进行排序;路由器缓存溢出丢包,链路层协议无法解决

3、这个问题,但是TCP可以。3. (R8)How big is the MAC address space? The IPv4 address space? The IPv6 address space?答:248 个MAC addresses; 232 个IPv4 addresses; 2128 个IPv6 addresses4. (R9)Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific destination MAC add

4、ress?答:因为新加入网络的主机是不知道路由器的IP的,自己也没有IP,所以只能广播才能得到IP,特定的主机就会特定响应。因为每个主机的MAC地址都是唯一的,而ARP建立转发表的时候会带上MAC地址。5. (P5)Consider the 4-bit generator, G, shown in Figure 5.8, and suppose that D has the value 11111010. What is the value of R? G=1001答:D2RG的余数, R=1106. (P11)Consider a broadcast channel with N nodes

5、 and a transmission rate of R bps. Suppose the broadcast channel uses polling (with an additional polling node) for multiple access. Suppose the amount of time from when a node completes transmission until the subsequent node is permitted to transmit (that is, the polling delay) is dpoll. Suppose th

6、at within a polling round, a given node is allowed to transmit at most Q bits. What is the maximum throughput of the broadcast channel? 答:情况1:QRQR+Ndpoll情况2:NQRN(QR+dpoll)两种极端情况进行比较,明显情况2为最大值;情况1为最小值。7. (P12)Consider three LANs interconnected by two routers, as shown in Figure 5.38.a. Redraw the dia

7、gram to include adapters.Figure 5.38 Three subnets, interconnected by routersb. Assign IP addresses to all of the interfaces. For Subnet I use addresses of the form 111.111.111.xxx; for Subnet 2 uses addresses of the form 122.222.222.xxx; and for Subnet 3 use addresses of the form 133.333.333.xxx. (

8、注:本题目略有修改,见红色标注)c. Assign MAC addresses to all of the adapters.d. Consider sending an IP datagram from Host A to Host F. Suppose all of the ARP tables are up to date. Enumerate all the steps, as done for the single-router example in Section 5.4.2.e. Repeat (d), now assuming that the ARP table in the

9、 sending host is empty(and the other tables are up to date).答:a.b.c.d. 1. 由A的转发表决定了数据报应该被转发到路由器端口111.111.111.002.2. 由A的适配器生成一个携带以太网目的地址22-22-22-22-22-22的以太网分组.3. 第一个路由器即收到该分组并且解析了数据报。该路由器中的转发表提示该数据报应该被转发到122.222.222.003.4. 第一个路由器发送带有目的地址为55-55-55-55-55-55并且源地址为33-33-33-33-33-33的以太网分组,经过IP地址为122.222.

10、222.002的端口。5. 过程以此类推,直到分组到达主机F .e. 主机A的ARP模块一定知道本网段网关的IP地址为 111.111.111.002。主机A发送一个ARP请求(包含在一个以太网广播帧中)。第一个路由器接收到这个请求分组并且发送给主机A一个ARP响应分组。这个ARP响应分组装载于一个包含以太网目的地址00-00-00-00-00-00的以太网帧上。得知了路由器端口的MAC地址后,以他作为目的地址成帧,以后的步骤与上一问相同。8. (P15)Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the pr

11、opagation delay between the two nodes is 225 bit times. Suppose A and B send frames at the same time, the frames collide, and then A and B choose different values of K in the CSMA/CD algorithm. Assuming no other nodes are active, can the retransmissions from A and B collide? For our purposes, it suf

12、fices to work out the following example. Suppose A and B begin transmission at t = 0 bit times. They both detect collisions at t = 225 bit times. They finish transmitting a jam signal at t = 225 + 48 = 273 bit times. Suppose and , At what time does B schedule its retransmission? At what time does A

13、begin transmission? (Note: The nodes must wait for an idle channel after returning to Step 2-see protocol.) At what time does As signal reach B? Does B refrain from transmitting at its scheduled time?答:9. (P16)Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the propagation delay betw

14、een the two nodes is 225 bit times. Suppose node A begins transmitting a frame and, before it finishes, node B begins transmitting a frame. Can A finish transmitting before it detects that B has transmitted? Why or why not? If the answer is yes, then A incorrectly believes that its frame was success

15、fully transmitted without a collision. Hint: Suppose at time t = 0 bit times, A begins transmitting a frame. In the worst case, A transmits a minimum-sized frame of 512 + 64 bit times. So A would finish transmitting the frame at t = 512 + 64 bit times. Thus, the answer is no, if Bs signal reaches A

16、before bit time t = 512 + 64 bits. In the worst case, when does Bs signal reach A?答:假设在 t = 0 时刻 A开始传输。考虑到以太网的最短帧长为576bit,最早在 t = 576 时刻, A 可以完成传输。在最坏的情况下,B 在 t = 224 时刻开始传输, 此时它还不知道A正在传输。在t = 224 + 225 = 449 时刻,B 的第一个比特到达A,因为449576,A将在完成分组传输之前中断。因此A不能在他察觉到B的传输之前完成传输。10. (P19)Suppose two nodes, A an

17、d B, are attached to opposite ends of a 900 m cable, and that they each have one frame of 1,000 bits (including all headers and preambles) to send to each other. Both nodes attempt to transmit at time t = 0. Suppose there are four repeaters between A and B, each inserting a 20-bit delay. Assume the

18、transmission rate is 10Mbps, and CSMA/CD with backoff intervals of multiples of 512 bits is used. After the first collision, A draws K = 0 and B draws K = 1 in the exponential backoff protocol. Ignore the jam signal and the 96-bit time delay.a. What is the one-way propagation delay (including repeat

19、er delays) between A and B in seconds? Assume that the signal propagation speed is m/sec.b. At what time (in seconds) is As packet completely delivered at B?c. Now suppose that only A has a packet to send and that the repeaters are replaced with switches. Suppose that each switch has a 20-bit processing delay in addition to a store-and-forw

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论