First time here? Check out the FAQ!

Ask Your Question
0

how to measure network and server latency

asked Nov 15 '17

samir gravatar image

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Nov 15 '17

Christian_R gravatar image

updated Nov 15 '17

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.

Preview: (hide)
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 gravatar imageJasper ( Nov 15 '17 )

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 gravatar imagesamir ( Nov 15 '17 )

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 gravatar imagegrahamb ( Nov 15 '17 )

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 gravatar imageChristian_R ( Nov 15 '17 )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: Nov 15 '17

Seen: 30,912 times

Last updated: Nov 15 '17