哪个协议负责管理重传?以太网协议或 TCP 或两者兼而有之?

发布于 2025-01-16 14:12:45 字数 80 浏览 2 评论 0原文

我想知道 哪个协议负责管理重传?以太网协议或 TCP 或两者兼而有之?

我正在参加 TCPIP 课程,但我不清楚哪个协议负责管理重传

I wonder
which protocol is responsible for managing retransmission? the ethernet protocol or tcp or both?

I was attending a TCPIP course and it is not clear for me which protocol is responsible for managing retransmission

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落在眉间の轻吻 2025-01-23 14:12:45

为了回答您的问题,TCP 会处理损坏帧的重传。以太网仅检测到它。

通过以太网进行通信的系统将数据流分成更短的片段,称为帧。每个帧都包含源地址和目标地址以及错误检查数据,以便可以检测并丢弃损坏的帧;大多数情况下,高层协议会触发丢失帧的重传。根据 OSI 模型,以太网提供直至并包括数据链路层的服务。

所以“责任”在TCP身上。请注意,谈论责任是具有误导性的。您可以通过以太网(OSI 第 2 层)使用 UDP(OSI 第 4 层),在这种情况下,处理丢失数据的“责任”在于应用程序,该应用程序可能会选择不重新发送(即没有意义的视频流) 。

在其他数据链路协议上,帧的重新发送可以内置到协议本身中。

从这个意义上说,处理重传更多地是 TCP 协议的一个属性或特征,而不是一种“责任”

To answer your question, TCP handles retransmission of corrupt frames. Ethernet only detects it.

Systems communicating over Ethernet divide a stream of data into shorter pieces called frames. Each frame contains source and destination addresses, and error-checking data so that damaged frames can be detected and discarded; most often, higher-layer protocols trigger retransmission of lost frames. Per the OSI model, Ethernet provides services up to and including the data link layer.

So the “responsibility” is on TCP. Note that speaking of responsibilities is misleading. You can have UDP (OSI layer 4) over Ethernet (OSI layer 2) in which case the “responsibility” for handling missing data is on the application which may choose to NOT resend (I.e. video streaming in which it doesn’t make sense).

On other data link protocols the resending of frames can be built into the protocol itself.

In that sense, handling retransmissions would be more of a property or feature of the TCP protocol rather than a “responsibility”

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文