hoterran / tcpcollect

Watch sql base libpcap
141 stars 59 forks source link

对于大的sql,存在重复包乱包的情况 #24

Closed hoterran closed 11 years ago

hoterran commented 11 years ago

由于包是二层的,所以丢包乱包再所难免。尤其糟糕的网络环境。

15:03:42.854429 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], seq 49730:51178, ack 56528, win 1002, options [nop,nop,TS val 4388018 ecr 337056858], length 1448 15:03:42.854463 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], seq 51178:52626, ack 56528, win 1002, options [nop,nop,TS val 4388018 ecr 337056858], length 1448 15:03:42.854470 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [P.], seq 52626:52930, ack 56528, win 1002, options [nop,nop,TS val 4388018 ecr 337056858], length 304 15:03:42.893687 IP 10.202.65.238.mysql > 10.1.170.132.60308: Flags [.], ack 51178, win 126, options [nop,nop,TS val 337837350 ecr 4388018], length 0 15:03:43.106006 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], seq 51178:52626, ack 56528, win 1002, options [nop,nop,TS val 4388081 ecr 337837350], length 1448 15:03:43.106102 IP 10.202.65.238.mysql > 10.1.170.132.60308: Flags [.], ack 52626, win 126, options [nop,nop,TS val 337837562 ecr 4388081], length 0 15:03:43.107202 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [P.], seq 52626:52930, ack 56528, win 1002, options [nop,nop,TS val 4388081 ecr 337837562], length 304 15:03:43.107291 IP 10.202.65.238.mysql > 10.1.170.132.60308: Flags [.], ack 52930, win 126, options [nop,nop,TS val 337837563 ecr 4388081], length 0 15:03:43.107389 IP 10.202.65.238.mysql > 10.1.170.132.60308: Flags [.], seq 56528:59424, ack 52930, win 126, options [nop,nop,TS val 337837563 ecr 4388081], length 2896 15:03:43.107398 IP 10.202.65.238.mysql > 10.1.170.132.60308: Flags [P.], seq 59424:60027, ack 52930, win 126, options [nop,nop,TS val 337837563 ecr 4388081], length 603 15:03:43.108621 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], ack 57976, win 1002, options [nop,nop,TS val 4388081 ecr 337837563], length 0 15:03:43.108811 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], ack 59424, win 1002, options [nop,nop,TS val 4388081 ecr 337837563], length 0 15:03:43.108825 IP 10.1.170.132.60308 > 10.202.65.238.mysql: Flags [.], ack 60027, win 993, options [nop,nop,TS val 4388081 ecr 337837563], length 0