tcp_metrics 族 netlink 规范¶
概要¶
TCP 指标的管理接口。
操作¶
get¶
检索指标。
- attribute-set:
- dont-validate:
['strict', 'dump']
- do:
- 请求
- attributes:
[
addr-ipv4
,addr-ipv6
,saddr-ipv4
,saddr-ipv6
]
- 回复
- attributes:
[
addr-ipv4
,addr-ipv6
,saddr-ipv4
,saddr-ipv6
,age
,vals
,fopen-mss
,fopen-syn-drops
,fopen-syn-drop-ts
,fopen-cookie
]
- dump:
- 回复
- attributes:
[
addr-ipv4
,addr-ipv6
,saddr-ipv4
,saddr-ipv6
,age
,vals
,fopen-mss
,fopen-syn-drops
,fopen-syn-drop-ts
,fopen-cookie
]
del¶
删除指标。
- attribute-set:
- dont-validate:
['strict', 'dump']
- flags:
[
admin-perm
]- do:
- 请求
- attributes:
[
addr-ipv4
,addr-ipv6
,saddr-ipv4
,saddr-ipv6
]
定义¶
属性集¶
tcp-metrics¶
addr-ipv4 (u32
)¶
- byte-order:
big-endian
- display-hint:
ipv4
addr-ipv6 (binary
)¶
- byte-order:
big-endian
- display-hint:
ipv6
age (u64
)¶
tw-tsval (u32
)¶
- doc:
unused
tw-ts-stamp (s32
)¶
- doc:
unused
vals (nest
)¶
- nested-attributes:
fopen-mss (u16
)¶
fopen-syn-drops (u16
)¶
fopen-syn-drop-ts (u64
)¶
saddr-ipv4 (u32
)¶
- byte-order:
big-endian
- display-hint:
ipv4
saddr-ipv6 (binary
)¶
- byte-order:
big-endian
- display-hint:
ipv6
pad (pad
)¶
metrics¶
rtt (u32
)¶
- doc:
往返时间 (RTT),以毫秒为单位,带 3 位小数(左移 3 位以获取毫秒值)。
rttvar (u32
)¶
- doc:
往返时间方差 (RTT),以毫秒为单位,带 2 位小数(左移 2 位以获取毫秒值)。
ssthresh (u32
)¶
- doc:
慢启动阈值。
cwnd (u32
)¶
- doc:
拥塞窗口。
reodering (u32
)¶
- doc:
重新排序指标。
rtt-us (u32
)¶
- doc:
往返时间 (RTT),以微秒为单位,带 3 位小数(左移 3 位以获取毫秒值)。
rttvar-us (u32
)¶
- doc:
往返时间 (RTT),以微秒为单位,带 2 位小数(左移 3 位以获取毫秒值)。