# Calculate Round Trip Time (RTT) manually

 0 How can we calculate Round Trip Time (RTT) from a passive traffic manually using the formula? I can obtain RTT values using tcptrace but it takes ONLy discrete values as it is shown in the graph below. For example, using tcptrace, we can get RTT values as in the following (the first column is time in seconds and the second column is RTT in milli seconds (ms)). ``````8.983596 4.000000 8.984129 3.000000 8.984829 4.00000 `````` It seems TCP takes only the real values for RTT. Is there any way to export the values returned from tcp.analysis.ack_rtt to a file and apply the formula for an RTT? I tried with statistics -> RTT StreamGraph -> RTT Graph where I can plot the RTT graph but i can't export the values (X and Y coordinates as in the previous format from tcptrace) to a file. When we plot RTT in Wireshark, it shows the values as continuous but it doesn't seem possible to export the values to a file. Or is there anyway to extract these values using tcpdump or any other tool? asked 27 Jun '17, 02:27 armodes 16●18●19●23 accept rate: 0%

 1 You could probably use tshark to do something like that, printing relative time of each frame with the ACK_RTT as columns, e.g. ```[C:\]tshark -r "Sample.pcapng" -Tfields -e frame.time_relative -e tcp.analysis.ack_rtt 0.000000000 0.017430000 0.017430000 0.017456000 0.000026000 0.025576000 0.038697000 0.013121000 0.043810000 0.043818000 0.000008000 0.051572000 0.051960000 0.051966000 0.000006000 0.052220000 0.258296000 0.206076000 0.673018000 0.682172000 0.009154000 0.882325000 0.200153000 3.053319000 3.065140000 0.011821000 3.065235000 3.065239000 0.000004000 ``` redirecting that output to a file should be simple enough. answered 27 Jun '17, 07:10 Jasper ♦♦ 23.8k●5●51●284 accept rate: 18% Thank you so much Jasper. How about if we want to calculate SRTT (Smoothed Round Trip Time) from this? (28 Jun '17, 03:01) armodes
 toggle preview community wiki:

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Question tags:

×1,620
×752
×97
×28

question asked: 27 Jun '17, 02:27

question was seen: 7,769 times

last updated: 28 Jun '17, 03:01

### Related questions

p​o​w​e​r​e​d by O​S​Q​A