Hi Team,
I have a problem regarding http connection. I have a server as a host send the data to multiple clients by using http connection. Server A, the connection is good with the higher tps ( Transaction per second ) than the others. Server A having lower tps, i have snoop the both server from host.
SERVER A:
"21","0.013006","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"28","0.017704","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"35","0.022589","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"42","0.027227","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"49","0.031999","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"56","0.036774","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"63","0.041302","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"70","0.046025","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"77","0.050789","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"84","0.055563","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
"91","0.060209","10.2.230.48","10.251.151.31","HTTP","267","HTTP/1.1 200 OK "
SERVER B :
"4","0.019952","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=1 Ack=1 Win=65 Len=76"
"5","0.021030","10.251.151.32","10.251.228.15","TCP","398","58637 > irdmi [PSH, ACK] Seq=1 Ack=77 Win=49640 Len=344"
"6","0.022705","10.251.228.15","10.251.151.32","TCP","60","irdmi > 58637 [ACK] Seq=77 Ack=345 Win=65 Len=0"
"13","0.332018","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=77 Ack=345 Win=65 Len=76"
"14","0.354679","10.251.151.32","10.251.228.15","TCP","402","58637 > irdmi [PSH, ACK] Seq=345 Ack=153 Win=49640 Len=348"
"15","0.356432","10.251.228.15","10.251.151.32","TCP","60","irdmi > 58637 [ACK] Seq=153 Ack=693 Win=65 Len=0"
"22","0.596000","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=153 Ack=693 Win=65 Len=76"
"23","0.596900","10.251.151.32","10.251.228.15","TCP","402","58637 > irdmi [PSH, ACK] Seq=693 Ack=229 Win=49640 Len=348"
"24","0.598664","10.251.228.15","10.251.151.32","TCP","60","irdmi > 58637 [ACK] Seq=229 Ack=1041 Win=65 Len=0"
"31","0.795945","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=229 Ack=1041 Win=65 Len=76"
"32","0.797018","10.251.151.32","10.251.228.15","TCP","389","58637 > irdmi [PSH, ACK] Seq=1041 Ack=305 Win=49640 Len=335"
"33","0.798730","10.251.228.15","10.251.151.32","TCP","60","irdmi > 58637 [ACK] Seq=305 Ack=1376 Win=65 Len=0"
"40","1.011976","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=305 Ack=1376 Win=65 Len=76"
"41","1.013027","10.251.151.32","10.251.228.15","TCP","398","58637 > irdmi [PSH, ACK] Seq=1376 Ack=381 Win=49640 Len=344"
"42","1.014742","10.251.228.15","10.251.151.32","TCP","60","irdmi > 58637 [ACK] Seq=381 Ack=1720 Win=65 Len=0"
"52","1.267932","10.251.228.15","10.251.151.32","TCP","130","irdmi > 58637 [PSH, ACK] Seq=381 Ack=1720 Win=65 Len=76"
"53","1.268930","10.251.151.32","10.251.228.15","TCP","389","58637 > irdmi [PSH, ACK] Seq=1720 Ack=457 Win=49640 Len=335"
Kindly help where is the discrepancy exactly ? Would you mind to analyze this problem ? should we disable PSH and ACK to increase the traffic ?
Thanks & Regards, Wilis
Hi Kurt,
Thanks for your explanation, But i still strange regarding the TPS, the first server is very good, but i dont know what happen on the second server. Would you mind to analyze this ? this is after i decode as your suggestion :
"1","0.000000","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "4","0.019952","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "7","0.175947","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "10","0.264047","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "13","0.332018","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "16","0.400014","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "19","0.480045","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "22","0.596000","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "25","0.680027","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "28","0.792015","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "31","0.795945","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK " "34","0.928016","10.251.228.15","10.251.151.32","HTTP","130","HTTP/1.1 200 OK "
Between the first transaction and the second transaction take too long ? or is there any suggestion from you about this ?
Thanks Wilis
Wilis, to be able to analyze a possible problem, we would need the capture file itself. Is it possible to post the two files somewhere (google docs, dropbox). Beware of privacy issues (due to internal data in the capture files).
BTW: Why do you believe there is a problem. The requests per second you see in the capture file are mainly triggered by the clients (without knowing your application), so the request rate of the clients is a critical factor, right?
Hi Kurt,
Actually the clients are our customer. So we need to increase the performance of our customers/ client servers. Can we know whether the client is using synchronous methode or asynchronous methode by wireshark ?
Thank you very much.
Wilis
what does that mean in the context of HTTP and your application?
Hi Kurt,
My application send the http to the external system. My application using GET methode, and send 6 parameters to the clients. The 6 paramaters are MSISDN, IMEI, IMSI, Vendor, Model_Phone, MSCID/Location.
Thanks Wilis
Hi Wilis,
I'm sorry, but I really can't help. The information you provided so far does not describe the situation in a way that I understand if there is a problem, and if so what problem you might have. So, here are some essential questions:
The time deltas between the packets to server A are essentially smaller than those to server B. But the server IP addresses are in totally different subnets (I assume . The time difference may be caused by the network, the client, the server, the application or even by the display filter in Wireshark. Please add some information about the difference of scenario/test A (server A) and scenario/test B (server B). So,
Finally: is it possible to post sample capture files somewhere (google docs, dropbox, etc.)? I don't think so, based on the content of your GET requests (IMSI, etc.). I'm still asking, just in case ... If it not possible to post the capture files, please try to answer all questions as thoroughly as possible.
Analysis
Here comes a first attempt to explain a possible cause of a possible problem ;-)
Communication pattern of server B
There seems to be this pattern.
The ACK (Frame #6) is pretty fast, while the RESPONSE (Frame #13) takes quite some time. Based only on this dump of a capture file, the 'problem' might be caused by
Communication pattern of server A
Your capture file only shows the results of the HTTP request. So, a direct comparison with capture B does not make sense.
Difference of communication pattern
However, if I compare the data of server B (posted in your comment), I can also see that the rate of "200 OK" messages from server B is substantially smaller than the ones from server A.
Server A: Delta = ~ 0.005 seconds
Server B: Delta = ~ 0.08 seconds
This could be caused by
Regards
Kurt
Hi Kurt,
Thank you vry much for your explanation, We will try to explorer based on your analysis.
Thanks & Regards, Wilis
O.K.
Hint: If a supplied answer resolves your question can you please "accept" it by clicking the checkmark icon next to it. This highlights good answers for the benefit of subsequent users with the same or similar questions.