有人可以解释一下什么是线路级协议吗?
我不太清楚线路级协议的想法。我听说 BitTorrent 使用它,并且读到有线级别协议可以被视为 API 的对立面。我读到 RMI 调用可以被视为线级协议,但我仍然有点困惑。有人可以用更好的方式解释这一点吗?
I am not very clear about the idea of wire-level protocols. I heard BitTorrent uses it and read that a wirelevel protocol can be considered an opposite of API. I read RMI calls can be considered wirelevel protocols but am still a little confused. Can someone explain this in a better way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不会说某个东西使用或不使用线路级协议 - 我会谈论它使用的哪种线路级协议。
基本上,如果某个东西正在与远程计算机通信(即使是概念上的),那么就会有一些数据通过网络连接(线路)传输。该数据的描述是“线路级协议”。即使在这种情况下,您也常常无法描述各个网络数据包 - 因此基于 TCP 的协议的有线协议通常是根据打开连接、两台计算机之间的数据流来定义的,以及双方预计何时关闭连接的详细信息。
I wouldn't say that something uses a wire-level protocol or doesn't - I'd talk about which wire-level protocol it uses.
Basically, if something's communicating with a remote machine (even conceptually) then there's some data going across the network connection (the wire). The description of that data is the "wire-level protocol". Even within that, you would often stop short of describing individual network packets - so the wire protocol for a TCP-based protocol would usually be defined in terms of opening a connection, the data streams between the two computers, and probably details of when each side would be expected to close the connection.
引用此处发布的答案
Quoting the answer posted here
我 Google 搜索并发现了以下内容:
示例:
您自己尝试过吗?如果是这样,你还有什么不明白的?
I googled and found the following:
Examples:
Did you try this yourself? If so, what don't you understand?
引用自维基百科:
Quoting from wikipedia: