OSI 模型中的相同功能
OSI模型的传输层和数据链路层提供类似的功能。如果其中之一已经存在,为什么还需要另一个
Transport layer and datalink layer of OSI model provide similar functionality. If one of said was already there, why was the other needed
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它们确实提供了一些类似的功能,但级别不同。链路层提供同一LAN内MAC地址的通信;传输层提供任何地方的任何设备之间的通信。
They do provide some similar functionality, but at a different level. The link layer provides for communications for MAC addresses on the same LAN; the transport layer provides for communication between any devices anywhere.
好的设计通常包含关注点分离的概念。也就是说,数据链路层只需要关心如何将数据包发送到该特定链路上的其他主机。请记住,以太网并不是世界上唯一的链路类型。您可能需要通过模拟调制解调器将数据包发送到 PPP 链路的另一端。由于网络层是独立的,因此您可以使用不同的数据链路类型,并且网络层数据包可以保持不变。
A good design typically includes the concept of separation of concerns. That is, the data link layer need only be concerned with how to get packets to other hosts on that specific link. Remember that Ethernet is not the only link type in the world. You might need to get packets to the other side of a PPP link over an analog modem. Since the network layer is separate, you can use a different data link type and your network layer packets can remain the same.
您可以参考此处的图片作为参考。
You may refer to an image here for reference.