Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 0168b3c

Browse files
17
1 parent ce31c40 commit 0168b3c

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

.DS_Store

0 Bytes
Binary file not shown.

_posts/2017-03-14-Network_error_analyze.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ tcp重复应答,这个也很多。
5252
–rand-source:使用随机的IP地址,目标机器看到一堆ip,不能定位你的实际IP;也可以使用-a或–spoof隐藏主机名
5353
```
5454

55-
`hping3 -S --flood -rand--source -p 80 [hostname/ip]`
55+
`hping3 -S --flood -rand--source -p 80 192.168.1.199`
56+
57+
[详细文档](http://man.linuxde.net/hping3)
5658

5759

5860

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: post
3+
title: TCP状态排查
4+
categories: [blog]
5+
tags: [TCP&IP]
6+
description:
7+
---
8+
9+
# TCP状态排查
10+
11+
* TCO
12+
{:toc}
13+
14+
15+
## 场景
16+
17+
短暂时间的超时,handle死了java线程组。
18+
19+
## 分析
20+
21+
可能原因:
22+
23+
1. TCP连接问题
24+
a. RST报文丢失
25+
b. FIN报文丢失
26+
c. 内核错误
27+
2. 对方服务问题
28+
29+
## Fixed Way
30+
31+
抓一段出错时间TCP包,同时ping对方服务。
32+
33+
1. 先确定是否是网络问题,检查Out-Of-Order、retransmission。
34+
2. 一条条TCP stream检查,是否有握手未完成,wait时间。
35+
3. 确定是网络障碍还是服务问题。
36+
37+
实际排障情况:
38+
一眼看过去乱序、重传低于5%,而我们有200个线程,故不是这个原因。
39+
检查TCP stream,发现有ack等待时间超过6s的,说明网络没问题应该是对方服务问题,除非我们看到的那段正好网络断了,概率极低。

0 commit comments

Comments
 (0)