prophet::ProphetParams Class Reference

Tunable parameter struct for setting global default values for various Prophet algorithms. More...

#include <Params.h>

Inheritance diagram for prophet::ProphetParams:

prophet::NodeParams

List of all members.

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).


Detailed Description

Tunable parameter struct for setting global default values for various Prophet algorithms.

Definition at line 32 of file Params.h.


Constructor & Destructor Documentation

prophet::ProphetParams::ProphetParams (  )  [inline]

Constructor.

Default values are defined in Prophet.h

Definition at line 73 of file Params.h.


Member Function Documentation

u_int prophet::ProphetParams::age_period (  )  const [inline]

Accessors.

Definition at line 95 of file Params.h.

References age_period_.

double prophet::ProphetParams::epsilon (  )  const [inline]

Accessors.

Definition at line 96 of file Params.h.

References epsilon_.

Referenced by 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_.

u_int prophet::ProphetParams::hello_dead (  )  const [inline]

Accessors.

Definition at line 92 of file Params.h.

References hello_dead_.

u_int8_t prophet::ProphetParams::hello_interval (  )  const [inline]

Accessors.

Definition at line 91 of file Params.h.

References hello_interval_.

bool prophet::ProphetParams::internet_gw (  )  const [inline]

Accessors.

Definition at line 98 of file Params.h.

References internet_gw_.

u_int prophet::ProphetParams::max_forward (  )  const [inline]

Accessors.

Definition at line 93 of file Params.h.

References max_forward_.

u_int prophet::ProphetParams::min_forward (  )  const [inline]

Accessors.

Definition at line 94 of file Params.h.

References min_forward_.

QueuePolicy::q_policy_t prophet::ProphetParams::qp (  )  const [inline]

Accessors.

Definition at line 90 of file Params.h.

References qp_.

bool prophet::ProphetParams::relay_node (  )  const [inline]

Accessors.

Definition at line 97 of file Params.h.

References relay_node_.


Member Data Documentation

const u_int prophet::ProphetParams::AGE_PERIOD = 180 [static]

Seconds between aging of nodes and Prophet ACKs.

3 min (arbitrary)

Definition at line 58 of file Params.h.

seconds between applying age algorithm

Definition at line 110 of file Params.h.

Referenced by age_period().

Max times to forward a bundle for GTMX.

arbitrary

Definition at line 48 of file Params.h.

Min times to forward a bundle for LEPR.

arbitrary

Definition at line 53 of file Params.h.

minimum predictability before dropping route

Definition at line 114 of file Params.h.

Referenced by epsilon().

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]

Max units of HELLO_INTERVAL before peer is considered unreachable.

40 sec (arbitrary)

Definition at line 43 of file Params.h.

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]

Time between HELLO beacons (in 100ms units).

2 sec (arbitrary)

Definition at line 38 of file Params.h.

delay between HELLO beacons (100ms units)

Definition at line 104 of file Params.h.

Referenced by dtn::ProphetCommand::exec(), and 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]

Maximum number of routes to retain (not specified by I-D).

Definition at line 68 of file Params.h.

max number of routes to retain

Definition at line 112 of file Params.h.

Referenced by dtn::ProphetCommand::exec().

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().


The documentation for this class was generated from the following file:

Generated on Fri Jan 30 09:27:06 2009 for DTN Reference Implementation by  doxygen 1.5.8