LEFT | RIGHT |
(no file at all) | |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 // | 2 // |
3 // Copyright (c) 2006 Georgia Tech Research Corporation | 3 // Copyright (c) 2006 Georgia Tech Research Corporation |
4 // | 4 // |
5 // This program is free software; you can redistribute it and/or modify | 5 // This program is free software; you can redistribute it and/or modify |
6 // it under the terms of the GNU General Public License version 2 as | 6 // it under the terms of the GNU General Public License version 2 as |
7 // published by the Free Software Foundation; | 7 // published by the Free Software Foundation; |
8 // | 8 // |
9 // This program is distributed in the hope that it will be useful, | 9 // This program is distributed in the hope that it will be useful, |
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 * \param seq the packet sequence number. | 90 * \param seq the packet sequence number. |
91 * \param size the packet size. | 91 * \param size the packet size. |
92 */ | 92 */ |
93 virtual void SentSeq (SequenceNumber32 seq, uint32_t size); | 93 virtual void SentSeq (SequenceNumber32 seq, uint32_t size); |
94 | 94 |
95 /** | 95 /** |
96 * \brief Note that a particular ack sequence has been received | 96 * \brief Note that a particular ack sequence has been received |
97 * \param ackSeq the ack sequence number. | 97 * \param ackSeq the ack sequence number. |
98 * \return The measured RTT for this ack. | 98 * \return The measured RTT for this ack. |
99 */ | 99 */ |
100 virtual Time AckSeq (SequenceNumber32 ackSeq); | 100 virtual Time EstimateRttFromSeq (SequenceNumber32 ackSeq); |
101 | 101 |
102 /** | 102 /** |
103 * \brief Clear all history entries | 103 * \brief Clear all history entries |
104 */ | 104 */ |
105 virtual void ClearSent (); | 105 virtual void ClearSent (); |
106 | 106 |
107 /** | 107 /** |
108 * \brief Add a new measurement to the estimator. Pure virtual function. | 108 * \brief Add a new measurement to the estimator. Pure virtual function. |
109 * \param t the new RTT measure. | 109 * \param t the new RTT measure. |
110 */ | 110 */ |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 */ | 227 */ |
228 void Gain (double g); | 228 void Gain (double g); |
229 | 229 |
230 private: | 230 private: |
231 double m_gain; //!< Filter gain | 231 double m_gain; //!< Filter gain |
232 Time m_variance; //!< Current variance | 232 Time m_variance; //!< Current variance |
233 }; | 233 }; |
234 } // namespace ns3 | 234 } // namespace ns3 |
235 | 235 |
236 #endif /* RTT_ESTIMATOR_H */ | 236 #endif /* RTT_ESTIMATOR_H */ |
LEFT | RIGHT |