ImageVerifierCode 换一换
格式:DOCX , 页数:9 ,大小:781.51KB ,
资源ID:7965993      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/7965993.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

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

计网第五次作业.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 adjacent node

2、s, 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, would

3、 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 characteris

4、tics 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,也就意味着A的信号跑

5、到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 the IP d

6、atagrams 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? The I

7、Pv6 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, what is

8、 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 of a pa

9、cket 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.假设一个包的信息的一部分包括10bytes

11、组成的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 suppose these

12、 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 letters

13、 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 01100110 01

14、11 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 addresses

16、 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 for the

17、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进行转发。Des

18、tination的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 the other

19、 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 adapter

20、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 bit / 10

21、0 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 CSMA/CD

22、 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 jam signa

23、l 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 from trans

24、mitting 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 * 512 * 1

25、 = 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 225 bit ti

26、mes. 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 without a col

27、lision. 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 + 64 bi

28、ts. 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 number o

29、f 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, and that t

30、hey 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 interval

31、s 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 signal

32、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传输延迟结束后,信道空闲,此

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1