summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
author崔一鸣 <[email protected]>2019-09-20 22:10:10 +0800
committer崔一鸣 <[email protected]>2019-09-20 22:10:10 +0800
commit0363148cd3b95b4c216f3d63ed3f2cd3618e02ae (patch)
tree66cac8ec56070374def9671d0a8f7ca03e0656c8 /docs
parent7ff58defed0e8ece478d94479e4a07f416712f81 (diff)
增加fs统计说明文档
Diffstat (limited to 'docs')
-rw-r--r--docs/fs统计说明.md67
1 files changed, 67 insertions, 0 deletions
diff --git a/docs/fs统计说明.md b/docs/fs统计说明.md
new file mode 100644
index 0000000..8afba59
--- /dev/null
+++ b/docs/fs统计说明.md
@@ -0,0 +1,67 @@
+### fs统计说明
+* intcp_stm
+ * 已经拦截发送给tfe的流
+* byp_stm
+ * bypass的流,包括以下两种
+ * byp_policy
+ * 因为策略bypass的流
+ * byp_stm_err
+ * 因为以下各种异常bypass的流
+ * e_asym_route
+ * 单向流
+ * e_no_syn
+ * 没有syn
+ * e_no_s/a
+ * 没有syn/ack
+ * e_no_data
+ * 没有数据包
+ * e_unspt_pro
+ * 协议不支持
+ * e_ip_hdr
+ * ip头错误
+ * e_exc_mtu
+ * 超过mtu
+ * e_invaid_act
+ * 策略动作不合法
+ * 对应通联 e_internal_1
+ * e_tfe_tx
+ * 发送给tfe失败
+ * 对应通联 e_internal_2
+ * e_tup2stm_add
+ * 添加hash表失败
+ * 对应通联 e_internal_3
+ * e_no_tfe
+ * 没有可用的tfe
+ * 对应通联 e_internal_4
+ * e_pme_init
+ * 初始化pme失败
+ * 对应通联 e_internal_5
+ * e_dup_tfc
+ * 因为有重复流量,处置动作bypass
+ * 对应通联 e_internal_6
+ * e_cmsg_add
+ * 添加cmsg头失败
+ * 对应通联 e_internal_7
+* intcp_stm
+ * 发送给tfe的流,有以下几个统计维度
+ * ipv4_stm + ipv6_stm
+ * http_stm + ssl_stm
+ * dup_tfc_stm + 非dup
+* intcp_rdy_stm
+ * 可拦截流,能走到maat扫描的流
+* intcp_rdy_B
+ * 可拦截字节数
+* pme_new / pme_free
+ * 申请/释放了多少个流上下文
+* bloom_hit
+ * hit表示识别出了重复包
+* 统计之间关系
+ * intcp_stm = ipv4_stm + ipv6_stm = ssl_stm + http_stm
+ * byp_stm = byp_policy + byp_stm_err
+ * byp_stm_err = e_asym_route + e_no_syn + .... +e_cmsg_add
+ * pme_new = byp_stm + intcp_stm
+ * pme_new - pme_free = 当前未释放的流
+ * ip2pme_add_S - id2pme_del_S = id2pme表当前的元素
+ * tuple2stm_add_S - tuple2stm_del_S = tuple2stm表当前的元素
+
+