OLD | NEW |
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) 2009 IITP RAS | 3 * Copyright (c) 2009 IITP RAS |
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 private: | 182 private: |
183 // Protocol parameters. | 183 // Protocol parameters. |
184 uint32_t m_rreqRetries; ///< Maximum number of retransmissions of
RREQ with TTL = NetDiameter to discover a route | 184 uint32_t m_rreqRetries; ///< Maximum number of retransmissions of
RREQ with TTL = NetDiameter to discover a route |
185 uint16_t m_ttlStart; ///< Initial TTL value for RREQ. | 185 uint16_t m_ttlStart; ///< Initial TTL value for RREQ. |
186 uint16_t m_ttlIncrement; ///< TTL increment for each attempt using
the expanding ring search for RREQ dissemination. | 186 uint16_t m_ttlIncrement; ///< TTL increment for each attempt using
the expanding ring search for RREQ dissemination. |
187 uint16_t m_ttlThreshold; ///< Maximum TTL value for expanding ring
search, TTL = NetDiameter is used beyond this value. | 187 uint16_t m_ttlThreshold; ///< Maximum TTL value for expanding ring
search, TTL = NetDiameter is used beyond this value. |
188 uint16_t m_timeoutBuffer; ///< Provide a buffer for the timeout. | 188 uint16_t m_timeoutBuffer; ///< Provide a buffer for the timeout. |
189 uint16_t m_rreqRateLimit; ///< Maximum number of RREQ per second. | 189 uint16_t m_rreqRateLimit; ///< Maximum number of RREQ per second. |
190 uint16_t m_rerrRateLimit; ///< Maximum number of REER per second. | 190 uint16_t m_rerrRateLimit; ///< Maximum number of REER per second. |
191 Time m_activeRouteTimeout; ///< Period of time during which the route
is considered to be valid. | 191 Time m_activeRouteTimeout; ///< Period of time during which the route
is considered to be valid. |
192 uint32_t m_netDiameter; ///< Net diameter measures the maximum pos
sible number of hops between two nodes in the network | 192 uint16_t m_netDiameter; ///< Net diameter measures the maximum pos
sible number of hops between two nodes in the network |
193 /** | 193 /** |
194 * NodeTraversalTime is a conservative estimate of the average one hop traver
sal time for packets | 194 * NodeTraversalTime is a conservative estimate of the average one hop traver
sal time for packets |
195 * and should include queuing delays, interrupt processing times and transfer
times. | 195 * and should include queuing delays, interrupt processing times and transfer
times. |
196 */ | 196 */ |
197 Time m_nodeTraversalTime; | 197 Time m_nodeTraversalTime; |
198 Time m_netTraversalTime; ///< Estimate of the average net traversa
l time. | 198 Time m_netTraversalTime; ///< Estimate of the average net traversa
l time. |
199 Time m_pathDiscoveryTime; ///< Estimate of maximum time needed to f
ind route in network. | 199 Time m_pathDiscoveryTime; ///< Estimate of maximum time needed to f
ind route in network. |
200 Time m_myRouteTimeout; ///< Value of lifetime field in RREP gene
rating by this node. | 200 Time m_myRouteTimeout; ///< Value of lifetime field in RREP gene
rating by this node. |
201 /** | 201 /** |
202 * Every HelloInterval the node checks whether it has sent a broadcast within
the last HelloInterval. | 202 * Every HelloInterval the node checks whether it has sent a broadcast within
the last HelloInterval. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 /// Provides uniform random variables. | 407 /// Provides uniform random variables. |
408 Ptr<UniformRandomVariable> m_uniformRandomVariable; | 408 Ptr<UniformRandomVariable> m_uniformRandomVariable; |
409 /// Keep track of the last bcast time | 409 /// Keep track of the last bcast time |
410 Time m_lastBcastTime; | 410 Time m_lastBcastTime; |
411 }; | 411 }; |
412 | 412 |
413 } //namespace aodv | 413 } //namespace aodv |
414 } //namespace ns3 | 414 } //namespace ns3 |
415 | 415 |
416 #endif /* AODVROUTINGPROTOCOL_H */ | 416 #endif /* AODVROUTINGPROTOCOL_H */ |
OLD | NEW |