在Linux / Mac的/ Windows中,是否有可能访问连接的TCP套接字的用户空间的TCP时间戳和/或RTT? [英] On Linux/Mac/Windows, is it possible to access the TCP timestamp and/or RTT in user space of a connected TCP socket?
问题描述
在Linux / Mac的/ Windows中,是否有可能访问连接的TCP套接字的用户空间的TCP时间戳和/或RTT?我指的是TCP时间戳和 RFC 1323 。很显然,我可以利用原始套接字,但插座既不会被连接或能够在Windows发送TCP数据包(后XP更新3,我相信)。
On Linux/Mac/Windows, is it possible to access the TCP timestamp and/or RTT in user space of a connected TCP socket? I'm referring to the TCP timestamp and associated RTT calculation enabled by RFC 1323. Obviously, I could utilize a raw socket, but the socket would neither be connected or capable of sending TCP packets on Windows (post XP Update 3, I believe).
推荐答案
在Windows(EstatsType = TcpConnectionEstatsFineRtt):结果
GetPerTcp6ConnectionEStats
GetPerTcpConnectionEStats
On Windows (EstatsType = TcpConnectionEstatsFineRtt):
GetPerTcp6ConnectionEStats
GetPerTcpConnectionEStats
在Linux(tcp_info.tcpi_rtt):结果
测量TCP拥塞窗口(用getsockopt)
On Linux (tcp_info.tcpi_rtt):
Measuring TCP Congestion Windows (getsockopt)
在Mac(xtcpcb64.t_srtt):结果
的sysctl TCPCTL_PCBLIST收购xtcpcb64结构
On Mac (xtcpcb64.t_srtt):
sysctl TCPCTL_PCBLIST to acquire the xtcpcb64 struct
这篇关于在Linux / Mac的/ Windows中,是否有可能访问连接的TCP套接字的用户空间的TCP时间戳和/或RTT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!