计算机网络 Assignment for Ch4 参考答案

二. 简答题(共2题,40分)

7. Briefly describe the difference between store-and-forward and cut-through switches.

简要说明存储转发交换机和直通交换机的主要区别。

参考答案7

存储和转发交换机(Store-and-forward Switch)在转发数据帧之前,会先接收整个数据帧,并检查其是否有错误,比如查看帧校验序列(FCS)。如果数据帧没有错误,交换机才会根据目的地址将其转发出去。这种方式的延迟较高,但能有效减少网络上错误帧的传输。

直通交换机(Cut-through Switch)在接收到数据帧的目的地址后,就开始立即转发该帧的剩余部分,不等整帧全部到达也不检查错误。这种方式可以减少转发的延迟,但如果帧中存在错误,则错误也会一并被转发,可能导致网络效率降低。

8. An IP packet to be transmitted by Ethernet is 60 bytes long, including all its headers. If LLC is not in use, is padding needed in the Ethernet frame, and if so, how many bytes?

一个通过以太网传输的IP数据包,包含所有头部信息,长度为60字节。如果不使用逻辑链路控制(LLC),那么在以太网帧中是否需要填充,如果需要,是多少字节?

参考答案8

The minimum Ethernet frame is 64 bytes, including both addresses in the Ethernet frame header, the type/length field, and the checksum. Since the header fields occupy 18 bytes and the packet is 60 bytes, the total frame size is 78 bytes, which exceeds the 64-byte minimum. Therefore, no padding is used.
翻译:以太网帧的最小长度是64字节,包括以太网帧头部的两个地址、类型/长度字段和校验和。由于头部字段占用了18字节,且数据包长度为60字节,那么总帧大小为78字节,这超过了64字节的最小限制。因此,不需要使用填充。