计网-ch04-题目与解释

习题

5. 书中我们使用了术语 面向连接服务 来描述运输层,使用了术语 连接服务 来描述网络层。为何有这种微妙的差异?
ANS:
In a virtual circuit network, there is an end-to-end connection in the sense that each router along the path must maintain state for the connection; hence the terminology connection service. In a connection-oriented transport service over a connectionless network layer, such as TCP over IP, the end systems maintain connection state; however the routers have no notion of any connections; hence the terminology connection-oriented service.


8. 考虑使用32比特主机地址的数据报网络。假定一台路由器具有4条链路,编号从0到3,分组能被转发到如下的各链路接口:
这里写图片描述
a. 提供一个具有4个表项的转发表,使用最长前缀匹配,将分组转发到正确的链路接口。
b. 描述你的转发表是如何具有下列目的地址的数据报决定适当链路接口的。
这里写图片描述
ANS:
a.
Prefix Match Link Interface
11100000 0
11100001 00000000 1
11100001 2
otherwise 3
b.第一个地址的最大前缀匹配是接口3
第二个地址的最大前缀匹配是接口1
第三个地址的最大前缀匹配是接口2


9.考虑使用8比特主机地址的数据报网络。假定一台路由器使用最长前缀匹配并具有下列转发表:
这里写图片描述
对这4个接口,给出相关的目的主机地址的范围和该范围中的地址数量。
ANS:
Destination Address Range Link Interface
00000000
through 0
00111111

01000000
through

  • 17
    点赞
  • 78
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值