欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    计网第五次作业.docx

    • 资源ID:14014561       资源大小:781.48KB        全文页数:11页
    • 资源格式: DOCX        下载积分:5金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要5金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    计网第五次作业.docx

    1、计网第五次作业计网第五次作业Review Questions:1. 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? 链路层协议提供给网络层的服务有哪些?哪些是给IP的?哪些是给TCP的 ?Link access, framing, reliable delivery between adjace

    2、nt nodes, flow control, error detection, error correction, half-duplex and full-duplex.In IP: framing, error detection.In TCP: framing, reliable delivery between adjacent nodes, error detection, half-duplex and full-duplex.2. If all the links in the Internet were to provide reliable delivery service

    3、, would the TCP reliable delivery service be redundant? Why or why not?不会多余,因为TCP保证的是传输层的数据传送,而link提供稳定可靠传输保证链路层的传输稳定,二者不完全重叠,所以TCP可靠传输也不会多余。3. In Section 5.3, we listed four desirable characteristics of a broadcast channel. Which of these characteristics does slotted ALOHA have? Which of these char

    4、acteristics does token passing have?4. Suppose two nodes start to transmit at the same time a packet of length Lover a broadcast channel of rate R. Denote the propagation delay between the two nodes as dprop. Will there be a collision if dprop L / R? Why or why not?因为L / R = 包传递的时间,如果dprop L / R,也就意

    5、味着A的信号跑到B的时候B的最后一个分组还没离开B,所以发生碰撞。7. Suppose nodes A, B, and C each attach to the same broadcast LAN (through their adapters). If A sends thousands of IP datagrams to B with each encapsulating frame addressed to the MAC address of B, will Cs adapter process these frames? If so, will Cs adapter pass t

    6、he IP datagrams in these frames to the network layer C? How would your answers change if A sends frames with the MAC broadcast address?不会,C会拆封帧从而读取报头的MAC,因为每一个host的MAC都唯一,C读取到数据报中的MAC和自己的不一样就不会继续拆封数据报,不会投递给C。当使用LAN口广播地址的时候,C的适配器就会拆封帧,向C传递数据。8. How big is the MAC address space? The IPv4 address space

    7、? The IPv6 address space?248,232,2128.9. Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific destination MAC address?因为新加入网络的主机是不知道路由器的IP的,自己也没有IP,所以只能广播才能得到IP。因为每个主机的MAC地址都是唯一的,而ARP建立转发表的时候会带上MAC地址。12. In CSMA/CD, after the fifth collision,

    8、what is the probability that a node chooses K = 4? The result K = 4 corresponds to a delay of how many seconds on a 10 Mbps Ethernet?可能,因为第五次K的取值范围是0-(25-1)即0-31。Bit time = 1 bit / R = 1 bit / 10 Mbps = 1 msec,K = 4,wait time = 4 * 512 * 1 msec = 2048 msec。Problems:1. Suppose the information content

    9、 of a packet is the bit pattern 1110 1100 1000 1010 and an even parity scheme is being used. What would the value of the field containing the parity bits be for the case of a two-dimensional parity scheme? Your answer should be such that a minimum-length checksum field is used.假设一个数据包的信息含量是XXX,使用偶校验

    10、方案。采用二位奇偶校验方案的字段包含的奇偶校验位的字段的值是多少?答案要使用最小长度校验。10100101001010010111000112. Suppose the information portion of a packet (D in Figure 5.4) contains 10 bytes consisting of the 8-bit unsigned binary ASCII representation of the integers 0 through 9. Compute the Internet checksum for this data.假设一个包的信息的一部分包

    11、括10bytes组成的8-bit无符号二进制码表示的整数0-9,计算该数据的网络校验。算校验码先把0-9加起来0000 0000 0000 00010000 0010 0000 00110000 0100 0000 01010000 0110 0000 01110000 1000 0000 10010001 0100 0001 1001 取反可得校验码为1110 1011 1110 01103. Consider the previous problem, but instead of containing the binary of the numbers 0 through 9 suppo

    12、se these 10 bytes contain. Compute the Internet checksum for this data.a. the binary representation of the numbers 1 through 10.0000 0001 0000 00100000 0011 0000 01000000 0101 0000 01100000 0111 0000 10000000 1001 0001 01000001 1011 0001 1110 取反可得1110 0100 1110 0001b. the ASCII representation of the

    13、 letters A through J (uppercase).0100 0001 0100 00100100 0011 0100 01000100 0101 0100 01100100 0111 0100 10000100 1001 0100 10100101 1000 0101 1111 取反可得1010 0111 1010 0000c. the ASCII representation of the letters a through j (lowercase).小写字母表示0110 0001 0110 00100110 0011 0110 01000110 0101 0110 011

    14、00110 0111 0110 10000110 1001 0110 10101111 1001 1111 1101 取反可得0000 0110 0000 00106. Consider the previous problem, but suppose that D has the valuea. 1001 0001.b. 1010 0011.c. 0101 0101.前一题题目:Consider the 7-bit generator, G=10011, and suppose that D has the value 1010101010. What is the value of R?

    15、求余而已,记住不要做减法而是做与运算就好。a. R = 001b. R = 101c. R = 10112. Consider three LANs interconnected by two routers, as shown in Figure 5.38.a. Redraw the diagram to include adapters.重新画图b. Assign IP addresses to all of the interfaces. For Subnet 1 use addresses of the form 111.111.111.xxx; for Subnet 2 uses a

    16、ddresses of the form 122.122.122.xxx; and for Subnet 3 use addresses of the form 133.133.133.xxx.所有的接口分配IP地址。c. Assign MAC addresses to all of the adapters.a.b.c如图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

    17、for the single-router example in Section 5.4.2.1. host A发送一个数据报,通过转发表查询F的IP,向路由器1发送,其中destination IP为133.133.133.12,MAC未知,source IP为111.111.111.12,source MAC为aa-aa-aa-aa-aa-aa。2. 适配器更改destination的IP为111.111.111.12,MAC地址变为gg-gg-gg-gg-gg-gg3. 路由器1发现目标IP和MAC不属于子网1中任何host,属于子网3(图中忘了画了,意会一下)。于是根据转发表向路由器2

    18、进行转发。Destination的IP为122.122.122.20,MAC为ii-ii-ii-ii-ii-ii。4. 路由器2收到了数据报,发现host F在自己的子网内,于是修改destination的IP为133.133.133.12,MAC地址为ff-ff-ff-ff-ff-ff。修改source IP为133.133.133.20,MAC为jj-jj-jj-jj-jj-jj,然后向F发送数据报。5. F收到来自A的数据报。e. Repeat (d), now assuming that the ARP table in the sending host is empty (and t

    19、he other tables are up to date).发送方的ARP表为空,首先需要建立ARP表1. host A发送一个广播,destination IP是255.255.255.255,MAC为空。Source IP为111.111.111.12,MAC为aa-aa-aa-aa-aa-aa2. 适配器收到了来自host A的数据报,更新自己的ARP表,同时发送一个ACK给host A,告诉host A自己的IP、MAC。3. host A建立ARP表4. 如d小问所答,开始进行数据发送。14. Recall that with the CSMA/CD protocol, the

    20、adapter waits K512 bit times after a collision, where K is drawn randomly. For K = 100, how long does the adapter wait until returning to Step 2 for a 10 Mbps Ethernet? For a 100 Mbps Ethernet?当网速 = 10 Mbps时,bit time = 1 bit / 10 Mbpst = 100 * 512 * 1 / (106) = 5.12 msec当网速 = 100 Mbps时,bit time = 1

    21、bit / 100 Mbpst = 100 * 512 * 1 / (107) = 0.512 msec15. Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the propagation 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

    22、 CSMA/CD algorithm. Assuming no other nodes are active, can the retransmissions from A and B collide? For our purposes, it suffices 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 j

    23、am signal at t = 225 + 48 = 273 bit times. Suppose KA = 0 and KB = 1. At what time does B schedule its retransmission? At what time does A begin transmission? (Note: The nodes must wait for an idle channel after returning to Step 2see protocol.) At what time does As signal reach B? Does B refrain fr

    24、om transmitting at its scheduled time?1. 因为A的K值 = 0,所以A从273 bit time开始检测是否冲突2. 由于传输延迟的问题,B的最后一个bit要等到273 + 225 = 498 bit time才能传到A,也就是说此时A检测到没有冲突。3. A传输前先等待96个bit time,即t = 498 + 96 = 594 bit time的时候A开始传输数据4. 因为propagation delay = 225 bit time,所以t = 594 +225 = 819 bit time的时候A传输完毕5. 因为KB = 1,当B等待1 *

    25、 512 * 1 = 512 bit time的时候,B可以重传,此时B开始检测信道是否空闲,此时t = 273 + 512 = 785 bit time6. 此时B检测到信道忙,因此不能重传,等待信道空闲7. 当t = 819 bit time的时候信道空闲,此时B等待96 bit time,即t = 96+819= 915 bit time的时候B可以开始重传16. Suppose nodes A and B are on the same 10 Mbps Ethernet bus, and the propagation delay between the two nodes is 22

    26、5 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 successfully transmitted witho

    27、ut 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 before bit time t = 512

    28、 + 64 bits. In the worst case, when does Bs signal reach A?因为A最快传输时间t = 512 + 64 bit time,看了答案,微积分神马的可以让我shi了Let Y be a random variable denoting the number of slots until a success:P(Y = m) = (1 -)(m - 1)Where is the probability of a success.This is a geometric distribution, which has mean 1 /. The

    29、number of consecutive wasted slots is X = Y 1 that x = E X = E Y -1 = (1 -) / = Np(1 - p)(N - 1)x = 1 Np * (1 - p)(N - 1) / Np * (1 - p)(N - 1)efficiency = k / (k + x) = k / k + 1 Np * (1 - p)(N - 1) / Np(1 - p)(N - 1)19. Suppose two nodes, A and B, are attached to opposite ends of a 900 m cable, an

    30、d 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 transmission rate is 10 Mbps, and CSMA/CD with backoff

    31、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 repeater delays) between A and B in seconds? Assume that the

    32、 signal propagation speed is 2108 m/sec.传输时间t0 = 900 m / 2 * (108) m / sec = 4.5 secRepeater 传输延迟 t1 = 4 * 20 bit / 10 Mbps = 8 secT = t0 + t1 = 12.5 secb. At what time (in seconds) is As packet completely delivered at B? (为什么这里答案没有96个bit time的等待?)1 bit time = 1 / 10 Mbps = 0.1 sec当t = 12.5 sec 时,A、B检测到冲突,停止传输。A的K值 = 0,于是A立即开始检测信道是否空闲,当B传


    注意事项

    本文(计网第五次作业.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开