Chinaunix首页 | 论坛 | 博客
  • 博客访问: 151780
  • 博文数量: 64
  • 博客积分: 2545
  • 博客等级: 少校
  • 技术积分: 692
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-22 20:00
文章分类

全部博文(64)

文章存档

2011年(3)

2009年(51)

2008年(10)

我的朋友

分类:

2009-09-10 22:34:19

tcptrace RTT measurement method

From: Manikantan Ramadas ()
Date: 06/24/03


Date: Tue, 24 Jun 2003 10:39:05 -0400
From: Manikantan Ramadas <>
Subject: Re: tcptrace RTT measurement method
Message-ID: <20030624143905.GA23320@irg.cs.ohiou.edu>


Hi Shashwat,

> I would like to know the exact procedure by which tcptrace collects
> data for RTT. Here, I assume that tcptrace gets no additional
> information from the raw tcpdump file other than that printed by
> tcpdump after parsing the packets (by tcpdump -r raw_file) - correct me
> if I am wrong.
 
  Yes, tcptrace uses the timestamp information provided by PCAP (if you are
using tcpdump) to calculate RTT.

> In any modern TCP implementation there can be many ways of calculating
> RTT from the tcpdump output. If timestamp options is present, tcptrace
> can look at the time interval between sending a timestamp and
> receiving its echo. It can utilize SACK option to see the time it took
> for acknowledgement to reach for each segment sent. Or in the simplest
> case, it can keep track of intervals of receiving pure ack. Which
> method does tcptrace use ?
>
  tcptrace does not do profound stuff like using TCP timestamps or SACK
options to estimate RTTs. Obeying Karn's algorithm (not calculating an RTT
sample if retransmission of unacknowledged data is found to occur), tcptrace
uses the difference between timestamps of the data segment and that of the ACK
that acknowledges it.

> Standards mention that rtt should be calculated only when new data is
> acknowledged. Does RTT measurement of tcptrace follow this restriction ?

  Yes I believe this follows.
  
  Please check out ack_in() and rtt_ackin() functions in rexmit.c.
  
- Mani.

-- 
"A man is but a product of his thoughts; what he thinks, that he becomes."
- Mahatma Gandhi
____________________________________________________________________________

* Manikantan Ramadas * IRG, Ohio Univ. * *
阅读(568) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~