外围平台通过socket往我系统发送报文失败
1、日间外围平台有个交易需要通过走socket,通过报文形式往我平台发送信息,以前这部分交易是正常的。现根据业务需要,把我平台的18服务器迁移到了145机器上,导致外围平台的报文无法发送到我平台,导致交易失败。
后通过抓包工具在我平台作了监测:
tcpdump tcp port 10003 --抓取10003的包
netstat -anc | grep 10003 --检测10003的端口状态变化
看了一下抓取的包,期间只有一个Flags [P.]状态的包,而大部分都是Flags [.]、Flags [.],
初步断定是TCP/IP三次握手协议并没有建立起来,导致我平台并不能接收到外围平台的报文,且我平台日志信息也没有记录到关于该交易的错误信息。
且10003的端口在交易发起时,一直保持状态SYN_RECV的状态。
求各位大神根据我提供的抓取包的信息,帮我判断一下是什么原因导致这个报文没有发送成功?以及应该从什么方面入手进行排查?以及有什么好的命令可以帮助进行排查。谢谢
tcpdump tcp port 10003
20:52:16.636743 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [S], seq 3488142888, win 14600, options [mss 1460,sackOK,TS val 4094561406 ecr 0,nop,wscale 7], length 0
20:52:16.636772 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525283554 ecr 4094561406,nop,wscale 7], length 0
20:52:16.637086 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094561407 ecr 525283554], length 0
20:52:16.637280 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094561407 ecr 525283554], length 1448
20:52:16.637394 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [P.], seq 1449:2746, ack 1, win 115, options [nop,nop,TS val 4094561407 ecr 525283554], length 1297
20:52:16.837832 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094561608 ecr 525283554], length 1448
20:52:17.239826 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094562010 ecr 525283554], length 1448
20:52:17.636491 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525284554 ecr 4094562010,nop,wscale 7], length 0
20:52:17.636752 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094562407 ecr 525284554,nop,nop,sack 1 {0:1}], length 0
20:52:18.043843 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094562814 ecr 525284554], length 1448
20:52:19.636493 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525286554 ecr 4094562814,nop,wscale 7], length 0
20:52:19.636673 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094564407 ecr 525286554,nop,nop,sack 1 {0:1}], length 0
20:52:19.651788 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094564422 ecr 525286554], length 1448
20:52:22.867727 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094567638 ecr 525286554], length 1448
20:52:24.036691 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525290954 ecr 4094567638,nop,wscale 7], length 0
20:52:24.036935 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094568807 ecr 525290954,nop,nop,sack 1 {0:1}], length 0
20:52:29.299574 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094574070 ecr 525290954], length 1448
20:52:32.036489 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525298954 ecr 4094574070,nop,wscale 7], length 0
20:52:32.036706 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094576807 ecr 525298954,nop,nop,sack 1 {0:1}], length 0
20:52:42.163247 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094586934 ecr 525298954], length 1448
20:52:48.036495 IP cmis1.bocd.com.cn.documentum_s > in-channel.bocd.com.cn.31131: Flags [S.], seq 4286161207, ack 3488142889, win 14480, options [mss 1460,sackOK,TS val 525314954 ecr 4094586934,nop,wscale 7], length 0
20:52:48.036799 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], ack 1, win 115, options [nop,nop,TS val 4094592807 ecr 525314954,nop,nop,sack 1 {0:1}], length 0
20:53:07.890641 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [.], seq 1:1449, ack 1, win 115, options [nop,nop,TS val 4094612662 ecr 525314954], length 1448
20:53:16.696267 IP in-channel.bocd.com.cn.31131 > cmis1.bocd.com.cn.documentum_s: Flags [F.], seq 2746, ack 1, win 115, options [nop,nop,TS val 4094621468 ecr 525314954], length 0
netstat -anc | grep 10003
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 111.111.240.145:10003 111.111.240.220:31572 SYN_RECV
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
tcp 0 0 :::10003 :::* LISTEN
socket 服务器 迁移 tcp --------------------编程问答-------------------- 这个还真不知道 --------------------编程问答-------------------- 我也不懂,希望楼下能帮您 ( ・ิω・ิ)
补充:云计算 , 网络