【问题标题】:Python and Windows add TCP timestamp to headerPython 和 Windows 将 TCP 时间戳添加到标头
【发布时间】:2012-12-02 06:41:05
【问题描述】:

我是一个真正的 py 和 TCP 新手,但我需要发送 18 到 141 字节的数据,并在标头中带有时间戳。我看到了这个链接

How to set the tcp option timestamp while building a tcp SYN packet using python?

但我将使用 Windows 7,我不知道从哪里开始。

【问题讨论】:

    标签: python tcp timestamp


    【解决方案1】:

    如果你只是想开启 TCP 时间戳,它是 Windows 下的 TCP 选项。看看这个:http://technet.microsoft.com/en-us/library/cc938205.aspx?ppud=4

    在注册表中将 Tcp1323Opts 设置为 2,重新启动并在所有传出连接上打开时间戳(假设对方也支持它们)。

    但是你为什么想要那个?您无法从应用程序访问时间戳,它们只是用来帮助 TCP 处理长胖网络和大 TCP 窗口。

    【讨论】:

      猜你喜欢
      • 2020-06-21
      • 2016-09-21
      • 1970-01-01
      • 2010-10-26
      • 2014-03-18
      • 1970-01-01
      • 2015-03-09
      • 2011-01-10
      • 1970-01-01
      相关资源
      最近更新 更多