gpt4 book ai didi

tcp - uTorrent 如何在 TCP 和 uTP 之间进行选择?

转载 作者:可可西里 更新时间:2023-11-01 02:50:36 24 4
gpt4 key购买 nike

我正在尝试分析 uTorrent 如何使用 Wireshark 捕获发送的数据包。同一本地网络中有三台主机,其中一台创建 torrent 并开始播种,而另外两台下载 torrent。从跟踪来看,uTorrent 似乎同时使用 TCP 和 uTP,有时会在下载过程中切换协议(protocol)。 uTorrent 如何选择?我检查了 bittorrent 文档,但一无所获。有没有办法强制 uTorrent 只使用两者之一?

最佳答案

据我观察,uTorrent 似乎更喜欢 uTP 而不是 TCP,这通常是一个不错的选择。

首选项> BitTorrent 中: 启用带宽管理 [uTP] 可用于打开/关闭 uTP

可以在首选项 > 高级中进行更精确的控制:bt.transp_disposition
默认值:31

来自 µTorrent 用户手册:(按 F1)

bt.transp_disposition: This option controls µTorrent's level of bias towards using TCP or uTP for transporting data (assuming the peer at the other end of the connection supports both transport protocols). The following is a list of the accepted values:

  • 1 allows µTorrent to attempt outgoing TCP connections
  • 2 allows µTorrent to attempt outgoing uTP connections
  • 4 allows µTorrent to accept incoming TCP connections
  • 8 allows µTorrent to accept incoming uTP connections
  • 16 tells µTorrent to use the new uTP header. This is an improved communication header, but is not backwards compatible with clients that do not understand it.

This option is interpreted as a bitfield, so values can be added together to obtain a combination of behaviors. Setting this value to 255 guarantees that all behaviors are enabled.

关于tcp - uTorrent 如何在 TCP 和 uTP 之间进行选择?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44434604/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com