I don't think RTT tracing is implemented
However, try using the following diff
+ //Tracing RTT sample
+ AsciiTraceHelper asciiTraceHelper2;
+ Ptr<OutputStreamWrapper> stream2 =
asciiTraceHelper2.CreateFileStream ("RTT.log");
+ Config::ConnectWithoutContext ("/NodeList/0/$ns3::TcpL4Protocol/
SocketList/0/RTT", MakeBoundCallback (&RTTChange, stream2));
--- a/src/internet/model/tcp-socket-base.cc Mon Aug 08 08:33:29 2011
-0700
+++ b/src/internet/model/tcp-socket-base.cc Wed Aug 10 06:00:43 2011
-0400
@@ -1453,7 +1453,7 @@
// Use m_rtt for the estimation. Note, RTT of duplicated
acknowledgement
// (which should be ignored) is handled by m_rtt. Once timestamp
option
// is implemented, this function would be more elaborated.
- m_rtt->AckSeq (tcpHeader.GetAckNumber () );
+ m_lastRtt = m_rtt->AckSeq (tcpHeader.GetAckNumber () );
};