Tunable parameter struct for setting global default values for various Prophet algorithms. More...
#include <Params.h>
Public Member Functions | |
ProphetParams () | |
Constructor. | |
FwdStrategy::fwd_strategy_t | fs () const |
Accessors. | |
QueuePolicy::q_policy_t | qp () const |
Accessors. | |
u_int8_t | hello_interval () const |
Accessors. | |
u_int | hello_dead () const |
Accessors. | |
u_int | max_forward () const |
Accessors. | |
u_int | min_forward () const |
Accessors. | |
u_int | age_period () const |
Accessors. | |
double | epsilon () const |
Accessors. | |
bool | relay_node () const |
Accessors. | |
bool | internet_gw () const |
Accessors. | |
Public Attributes | |
FwdStrategy::fwd_strategy_t | fs_ |
bundle forwarding strategy | |
QueuePolicy::q_policy_t | qp_ |
bundle queuing policy | |
u_int8_t | hello_interval_ |
delay between HELLO beacons (100ms units) | |
u_int | hello_dead_ |
hello_interval's before giving up on peer | |
u_int | max_forward_ |
max times to forward bundle using GTMX | |
u_int | min_forward_ |
min times to forward bundle before LEPR drops | |
u_int | age_period_ |
seconds between applying age algorithm | |
u_int | max_table_size_ |
max number of routes to retain | |
double | epsilon_ |
minimum predictability before dropping route | |
bool | relay_node_ |
whether this node accepts bundles to relay to peers | |
bool | internet_gw_ |
not implemented; whether node bridges to Internet | |
Static Public Attributes | |
static const u_int8_t | HELLO_INTERVAL = 20 |
Time between HELLO beacons (in 100ms units). | |
static const u_int | HELLO_DEAD = 20 |
Max units of HELLO_INTERVAL before peer is considered unreachable. | |
static const u_int | DEFAULT_NUM_F_MAX = 5 |
Max times to forward a bundle for GTMX. | |
static const u_int | DEFAULT_NUM_F_MIN = 3 |
Min times to forward a bundle for LEPR. | |
static const u_int | AGE_PERIOD = 180 |
Seconds between aging of nodes and Prophet ACKs. | |
static const u_int8_t | PROPHET_VERSION = 0x01 |
Current version of the protocol. | |
static const u_int | MAX_TABLE_SIZE = 1024 |
Maximum number of routes to retain (not specified by I-D). |
Tunable parameter struct for setting global default values for various Prophet algorithms.
Definition at line 32 of file Params.h.
prophet::ProphetParams::ProphetParams | ( | ) | [inline] |
u_int prophet::ProphetParams::age_period | ( | ) | const [inline] |
double prophet::ProphetParams::epsilon | ( | ) | const [inline] |
Accessors.
Definition at line 96 of file Params.h.
References epsilon_.
Referenced by prophet::Controller::handle_timeout(), and dtn::ProphetBundleCore::load_prophet_nodes().
FwdStrategy::fwd_strategy_t prophet::ProphetParams::fs | ( | ) | const [inline] |
Accessors.
Definition at line 89 of file Params.h.
References fs_.
Referenced by prophet::TLVCreator::offer().
u_int prophet::ProphetParams::hello_dead | ( | ) | const [inline] |
Accessors.
Definition at line 92 of file Params.h.
References hello_dead_.
Referenced by prophet::Encounter::handle_timeout(), and prophet::Encounter::send_tlv().
u_int8_t prophet::ProphetParams::hello_interval | ( | ) | const [inline] |
Accessors.
Definition at line 91 of file Params.h.
References hello_interval_.
Referenced by prophet::Encounter::handle_hello_tlv(), prophet::Encounter::handle_ribd_tlv(), prophet::Encounter::handle_timeout(), prophet::Encounter::hello_interval_changed(), prophet::Encounter::send_hello(), and prophet::Encounter::send_tlv().
bool prophet::ProphetParams::internet_gw | ( | ) | const [inline] |
Accessors.
Definition at line 98 of file Params.h.
References internet_gw_.
Referenced by prophet::Encounter::send_dictionary_rib().
u_int prophet::ProphetParams::max_forward | ( | ) | const [inline] |
Accessors.
Definition at line 93 of file Params.h.
References max_forward_.
Referenced by prophet::TLVCreator::offer().
u_int prophet::ProphetParams::min_forward | ( | ) | const [inline] |
Accessors.
Definition at line 94 of file Params.h.
References min_forward_.
Referenced by prophet::Controller::Controller(), and prophet::Controller::set_queue_policy().
QueuePolicy::q_policy_t prophet::ProphetParams::qp | ( | ) | const [inline] |
Accessors.
Definition at line 90 of file Params.h.
References qp_.
Referenced by prophet::Controller::Controller(), and prophet::Controller::set_queue_policy().
bool prophet::ProphetParams::relay_node | ( | ) | const [inline] |
Accessors.
Definition at line 97 of file Params.h.
References relay_node_.
Referenced by prophet::Controller::accept_bundle(), prophet::TLVCreator::offer(), and prophet::Encounter::send_dictionary_rib().
const u_int prophet::ProphetParams::AGE_PERIOD = 180 [static] |
seconds between applying age algorithm
Definition at line 110 of file Params.h.
Referenced by age_period().
const u_int prophet::ProphetParams::DEFAULT_NUM_F_MAX = 5 [static] |
const u_int prophet::ProphetParams::DEFAULT_NUM_F_MIN = 3 [static] |
bundle forwarding strategy
Definition at line 101 of file Params.h.
Referenced by dtn::ProphetCommand::exec(), and fs().
const u_int prophet::ProphetParams::HELLO_DEAD = 20 [static] |
hello_interval's before giving up on peer
Definition at line 105 of file Params.h.
Referenced by hello_dead().
const u_int8_t prophet::ProphetParams::HELLO_INTERVAL = 20 [static] |
delay between HELLO beacons (100ms units)
Definition at line 104 of file Params.h.
Referenced by dtn::ProphetCommand::exec(), hello_interval(), and prophet::Controller::set_hello_interval().
not implemented; whether node bridges to Internet
Definition at line 117 of file Params.h.
Referenced by internet_gw().
max times to forward bundle using GTMX
Definition at line 107 of file Params.h.
Referenced by max_forward().
const u_int prophet::ProphetParams::MAX_TABLE_SIZE = 1024 [static] |
max number of routes to retain
Definition at line 112 of file Params.h.
Referenced by prophet::Controller::Controller(), dtn::ProphetCommand::exec(), and prophet::Controller::set_max_route().
min times to forward bundle before LEPR drops
Definition at line 108 of file Params.h.
Referenced by min_forward().
const u_int8_t prophet::ProphetParams::PROPHET_VERSION = 0x01 [static] |
Current version of the protocol.
Definition at line 63 of file Params.h.
Referenced by prophet::ProphetTLV::deserialize(), and prophet::ProphetTLV::serialize().
bundle queuing policy
Definition at line 102 of file Params.h.
Referenced by dtn::ProphetCommand::exec(), and qp().
whether this node accepts bundles to relay to peers
Definition at line 116 of file Params.h.
Referenced by relay_node().