2022年2022年计算机网络课后习题习题五 .pdf
《2022年2022年计算机网络课后习题习题五 .pdf》由会员分享,可在线阅读,更多相关《2022年2022年计算机网络课后习题习题五 .pdf(5页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Chapter five 第五章习题38.Convert the IP address whose hexadecimal representation is C22F1582 to dotted decimal notation.(38. 如果一个 IP地址的十六进制表示C22F1582,请将它转换成点分十进制标记.) Solution:The address is 194.47.21.130. 解答:先写成二进制:11000010,0010101111,0001010,10000010 所以,它的点分十进制为:194.47.21.13039. A network on the Intern
2、et has a subnet mask of 255.255.240.0. What is the maximum number of hosts it can handle? (39.Interent上一个网络的子网掩码为255.255.240.0.请问它最多能够处理多少台主机?) Solution:The mask is 20 bits long, so the network part is 20 bits. The remaining 12 bits are for the host, so 4096 host addresses exist. Normally, the host
3、address is 4096-2=4094. Because the first address be used for network and the last one for broadcast. 解答:从子网掩码 255.255.240.0可知,它还有 12位用于作主机号。故它的容量有 2的12次方,也即有4096地址。除去全 0 和全 1 地址,它最多能够处理4094 台主机40. A large number of consecutive IP address are available starting at 198.16.0.0. Suppose that four organ
4、izations, A, B, C, and D, request 4000, 2000, 4000, and 8000 addresses, respectively, and in that order. For each of these, give the first IP address assigned, the last IP address assigned, and the mask in the w.x.y.z/s notation. (40. 假定从 198.16.0.0开始有大量连续的IP地址可以使用. 现在 4个组织 A,B,C 和D 按照顺序依次申请 4000,20
5、00,4000 和8000个地址 .对于每一个申请, 请利用 w.x.y.z/s的形式写出所分配的第一个 IP地址 ,以及掩码 . )Solution:To start with, all the requests are rounded up to a power of two. The starting address, ending address, and mask are as follows: A: 198.16.0.0 198.16.15.255 written as 198.16.0.0/20 B: 198.16.16.0 198.23.15.255 written as 19
6、8.16.16.0/21 C: 198.16.32.0 198.16. 47.255 written as 198.16.32.0/20 D: 198.16.64.0 198.16.95.255 written as 198.16.64.0/19 解答:因为只能是 2的整数次方的, 故应分别借 4096,2048,4096,8192个IP地址。它们分别为2的12名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 5 页 - - - - - - - - - 次方 ,2 的11次
7、方 ,2 的11次方 ,2 的13次方 .故可有如下分配方案:组织首地址末地址w.x.y.z/s的形式A 198.16.0.0 198.16.15.255 198.16.0.0/20 B 198.16.16.0 198.16.23.255 198.16.16.0/21 C 198.16.32.0 198.16.47.255 198.16.32.0/20 D 198.16.64.0 198.16.95.255 198.16.64.0/19 41. A router has just received the following new IP addresses: 57.6.96.0/21, 57
8、.6.104.0/21, 57.6.112.0/21, and 57.6.120.0/21. If all of them use the same outgoing line, can they be aggregated? If so, to what? If not, why not? (41. 一台路由器刚刚接收到一下新的IP地址 :57.6.96.0/27,57.6.104.0/21,57.6.112.0/21和57.6.120.0/21.如果所有这些地址都使用同一条输出线路, 那么 , 它们可以被聚集起来吗?如果可以的话 , 它们被聚集到那个地址上?如果不可以的话, 请问为什么 ?
9、)Solution:They can be aggregated to 57.6.96/19. 解答:96=(0110 0000)2 104=(0110 0100)2 112=(0110 1000)2 120=(0110 1110)2 可以看出,四个IP 地址前 19位都是相同的(前面57的8位以及 6的8位和后面 011这3位,共 19位)故得聚合到地址 57.6.96.0/19 上。42. The set of IP addresses from 29.18.0.0 to 19.18.128.255 has been aggregated to 29.18.0.0/17. However,
10、 there is a gap of 1024 unassigned addresses from 29.18.60.0 to 29.18.63.255 that are now suddenly assigned to a host using a different outgoing line. Is it now necessary to split up the aggregate address into its constituent blocks, add the new block to the table, and then see if any reaggregation
11、is possible? If not, what can be done instead? (42. 从29.18.0.0到29.18.128.255之间的 IP地址集合已经被聚集到29.18.0.0/17.然而 , 这里有一段空隙地址,即从 29.18.60.0到29.18.63.255之间的 1024个地址还没有被分配. 现在这段空隙地址突然要被分配给一台使用不同输出线路的主机. 请问是否有必要将聚集地址分割成几块 ,然后把新的地址块加入到路由表中, 再看一看是否可以重新聚集?如果没有必要的话, 那该怎么办 ?) Solution:It is sufficient to add one
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年2022年计算机网络课后习题习题五 2022 计算机网络 课后 习题
限制150内