计算机网络课后习题习题四、五
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.130
39. A network on the Internet 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 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 organizations, 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,2000,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 198.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
次方,2的11次方,2的11次方,2的13次方.故可有如下分配方案: 组织 A B C D 首地址 198.16.0.0 198.16.16.0 198.16.32.0 198.16.64.0 末地址 198.16.15.255 198.16.23.255 198.16.47.255 198.16.95.255 w.x.y.z/s的形式 198.16.0.0/20 198.16.16.0/21 198.16.32.0/20 198.16.64.0/19 1111 1111 1111 1111 1111 0000 0000 0000 128+64+32+16=240
198.16.0.0 198.16.16.0 198.16.32.0 198.16.48.0 198.16.64.0 1111 1000 0000 0000 248
1110 0000 0000 0000 224
198.16.0.0 198.16.32.0 198.16.64.0 198.16.96.0
—————————————————————————————————————— 41. A router has just received the following new IP addresses: 57.6.96.0/21, 57.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.如果所有这些地址都使用同一条输出线路,那么,它们可以被聚集起来吗?如果可以的话,它们被聚集到那个地址上?如果不可以的话,请问为什么?) 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, 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 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 new table entry: 29.18.0.0/22 for the new block. If an incoming packet matches both 29.18.0.0/17 and 29.18.0.0./22, the longest one wins. This rule makes it possible to assign a large block to one outgoing line but make an exception for one or more small blocks within its range. 解答:
没有必要。只要在路由表中添加一项:29.18.0.0/22 就可以了。当有一个分组到来时,如果它既匹配29.18.0.0/17,又匹配29.18.0.0/22,那么它将被发送到掩码位数较大的目标地址,即29.18.0.7/22。这样做的好处是使得一个大段的地址能够被指定到一个目标,但又允许其中少量的地址出现例外的情况。
43. A router has the following (CIDR) entries in its routing table:
Address/mask 135.46.56.0/22 135.46.60.0/22 192.53.40.0/23 default Next hop Interface 0 Interface 1 Router 1 Router 2 For each of the following IP addresses, what does the router do if a packet with that address arrives?
a. (a) 135.46.63.10 b. (b) 135.46.57.14 c. (c) 135.46.52.2 d. (d) 192.53.40.7 e. (e) 192.53.56.7
43. 一台路由器的路由表中有以下的(CIDR)表项: 地址/掩码 下一跳 接口0 接口1 路由器1 路由器2 135.46.56.0/22 135.46.60.0/22 192.53.40.0/23 默认
对于下面的每一个IP地址,请问,如果一个到达分组的目标地址为该IP地址,那么路由器该怎么办?
(a)135.46.63.10 (b)135.46.57.14 (c)135.46.52.2 (d)192.53.40.7 (e)192.53.56.7 Solution:
The packets are routed as follows: (a) Interface 1 (b) Interface 0 (c) Router 2 (d) Router 1
解答:
(a)135.46.63.10和255.255.252.0做与运算得到135.46.60.0,故发送给接口1; (b)135.46.57.14和255.255.252.0做与运算得到135.46.56.0,故发送给接口0; (c)13 …… 此处隐藏:5327字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [学前教育]MC9S12XS256RMV1 xs128芯片手册4
- [学前教育]安东尼语录经典语录
- [学前教育]e级gps控制测量技术设计书
- [学前教育]苏教版2022-2022学年八年级下学期期末
- [学前教育]装修公司推广 营销
- [学前教育]家政服务合同(完整版)
- [学前教育]湖北省2016届高三联考语文试题
- [学前教育]爱立信无涯学习系统LTE题库1-LTE基础知
- [学前教育]揭秘大众柴油车作弊软件原理
- [学前教育]人才流失原因及对策分析
- [学前教育]房屋建筑施工工程劳务分包合同
- [学前教育]国际贸易实务试卷A卷09.6
- [学前教育]校园废品回收活动计划方案书范文格
- [学前教育]电大成本会计试题及答案
- [学前教育]大学物理实验 华南理工出版社 绪论答案
- [学前教育]爱丁堡产后抑郁量表
- [学前教育]液压冲击的危害、产生原因与防止方法(
- [学前教育]学生工作总结高一学生期中考试总结_020
- [学前教育]人民医院医疗废物管理规章制度大全
- [学前教育]阳光维生素的巨大抗癌潜能阅读题答案.d
- 马云在云锋基金江苏论坛闭幕式的发言
- 试论小学体育教育中的心理健康教育-教
- 语文A版一年级下册《语文乐园一》教学
- 2021四川大学物理化学考研真题经验参考
- [人教A版]2015-2016学年高中数学 第二
- 终端网点销售返利协议书
- 江苏省2015年眼科学主治医师青光眼考试
- 2017年部编人教版八年级语文上册教案
- 十一中学七年级英语上册Unit7Howmuchar
- 以赛促教的创新性实验教学机制建设实践
- 平凉市崆峒区2015七年级下生物期末试题
- 琶洲(地块五)A、B塔楼1、2#塔吊基础
- 一级医院工作制度与人员岗位职责
- 2018北京西城区高三二模理科数学试题及
- 炒股密码线技术 - 图文
- 职高学生生涯发展辅导教案
- 语文人教版四年级上册8 世界地图引出的
- 最新最新人教版二年级上册全册数学教案
- 2017高考英语全国2卷精彩试题(有问题
- 普通心理学笔记




