First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

how to measure network and server latency

I'm capturing data from client and server port. i want to calculate network latency by deducting server and client side system process

samir's avatar
1
samir
asked 2017-11-15 05:09:40 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

The easiest way is: In every TCP Session the iRTT will be calculated. As it measures the time between the syn and the syn, ack. So we can call this the RTT or latency of the network for that session.

Christian_R's avatar
2.1k
Christian_R
answered 2017-11-15 07:10:00 +0000, updated 2017-11-15 08:49:47 +0000
edit flag offensive 0 remove flag delete link

Comments

Note: that's not for every TCP connection, only those with a complete handshake.The iRTT field can be found in the TCP header at the bottom if the handshake was complete.

Jasper's avatar Jasper (2017-11-15 08:13:54 +0000) edit

Thanks for Explation christian

this rtt also include the processing time taken by far end server who suppose to send the acknowledge. so let me put this way 1 i'm capturing from source 2 also capturing packet on destination

now what i wanted to know is how much network latency is contributing in total RTT.

example A-> send packet to B, B process the packet and sent ack to A. now A got ack from B with rtt which include data processing time taken by B. So rtt would not be my actual network latency. Network latency =total rtt minus data processing and ack time taken by B.

How we would get this with wirehshark. actual network latency.

samir's avatar samir (2017-11-15 14:42:09 +0000) edit

You would have to subtract the delta time between incoming and response on B as that's the "processing" time on B. There's no way to do that directly in Wireshark between the two captures.

grahamb's avatar grahamb (2017-11-15 14:45:44 +0000) edit

Hello if you have captured the 3-way Handshake and the iRTT has been calculated you have more or less the network response time. As we assume that the only the stack is involved in generating the SYN,ACK we can assume that this is more or less the network round trip time. So the network delay will be half of the RTT. Otherwise the RTT by ACK measuring is sometimes harder as something like Delayed ACK and so on comes into play.

Christian_R's avatar Christian_R (2017-11-15 16:55:55 +0000) edit
Christian_R's avatar Christian_R (2017-11-15 21:58:07 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer