A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::dsdv::RoutingProtocol Class Reference

DSDV routing protocol. More...

#include <dsdv-routing-protocol.h>

+ Inheritance diagram for ns3::dsdv::RoutingProtocol:
+ Collaboration diagram for ns3::dsdv::RoutingProtocol:

Public Member Functions

 RoutingProtocol ()
 c-tor
virtual ~RoutingProtocol ()
int64_t AssignStreams (int64_t stream)
virtual void DoDispose ()
From Ipv4RoutingProtocol
Ptr< Ipv4RouteRouteOutput (Ptr< Packet > p, const Ipv4Header &header, Ptr< NetDevice > oif, Socket::SocketErrno &sockerr)
 Query routing cache for an existing route, for an outbound packet.
bool RouteInput (Ptr< const Packet > p, const Ipv4Header &header, Ptr< const NetDevice > idev, UnicastForwardCallback ucb, MulticastForwardCallback mcb, LocalDeliverCallback lcb, ErrorCallback ecb)
virtual void PrintRoutingTable (Ptr< OutputStreamWrapper > stream) const
 Print the Routing Table entries.
virtual void NotifyInterfaceUp (uint32_t interface)
virtual void NotifyInterfaceDown (uint32_t interface)
virtual void NotifyAddAddress (uint32_t interface, Ipv4InterfaceAddress address)
virtual void NotifyRemoveAddress (uint32_t interface, Ipv4InterfaceAddress address)
virtual void SetIpv4 (Ptr< Ipv4 > ipv4)
Methods to handle protocol parameters
void SetEnableBufferFlag (bool f)
bool GetEnableBufferFlag () const
void SetWSTFlag (bool f)
bool GetWSTFlag () const
void SetEnableRAFlag (bool f)
bool GetEnableRAFlag () const
- Public Member Functions inherited from ns3::Ipv4RoutingProtocol
virtual bool RouteInput (Ptr< const Packet > p, const Ipv4Header &header, Ptr< const NetDevice > idev, UnicastForwardCallback ucb, MulticastForwardCallback mcb, LocalDeliverCallback lcb, ErrorCallback ecb)=0
 Route an input packet (to be forwarded or locally delivered)
- Public Member Functions inherited from ns3::Object
 Object ()
virtual ~Object ()
void AggregateObject (Ptr< Object > other)
void Dispose (void)
AggregateIterator GetAggregateIterator (void) const
virtual TypeId GetInstanceTypeId (void) const
template<typename T >
Ptr< T > GetObject (void) const
template<typename T >
Ptr< T > GetObject (TypeId tid) const
void Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
void GetAttribute (std::string name, AttributeValue &value) const
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
void SetAttribute (std::string name, const AttributeValue &value)
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::dsdv::RoutingProtocol.

Static Public Attributes

static const uint32_t DSDV_PORT = 269
 UDP Port for DSDV control traffic.

Private Member Functions

void DeferredRouteOutput (Ptr< const Packet > p, const Ipv4Header &header, UnicastForwardCallback ucb, ErrorCallback ecb)
 Queue packet untill we find a route.
void Drop (Ptr< const Packet >, const Ipv4Header &, Socket::SocketErrno)
 Notify that packet is dropped for some reason.
Ptr< SocketFindSocketWithInterfaceAddress (Ipv4InterfaceAddress iface) const
 Find socket with local interface address iface.
Time GetSettlingTime (Ipv4Address dst)
void LookForQueuedPackets (void)
 Look for any queued packets to send them out.
Ptr< Ipv4RouteLoopbackRoute (const Ipv4Header &header, Ptr< NetDevice > oif) const
 Create loopback route for given header.
void MergeTriggerPeriodicUpdates ()
void Send (Ptr< Ipv4Route >, Ptr< const Packet >, const Ipv4Header &)
void SendPacketFromQueue (Ipv4Address dst, Ptr< Ipv4Route > route)
void SendPeriodicUpdate ()
 Broadcasts the entire routing table for every PeriodicUpdateInterval.
void SendTriggeredUpdate ()
 Sends trigger update from a node.
void Start ()
 Start protocol operation.
Receive dsdv control packets
void RecvDsdv (Ptr< Socket > socket)
 Receive and process dsdv control packet.

Private Attributes

Timer m_periodicUpdateTimer
 Timer to trigger periodic updates from a node.
Timer m_triggeredExpireTimer
 Timer used by the trigger updates in case of Weighted Settling Time is used.
Ptr< UniformRandomVariablem_uniformRandomVariable
 Provides uniform random variables.
Protocol parameters.
uint32_t Holdtimes
Time m_periodicUpdateInterval
Time m_settlingTime
Ipv4Address m_mainAddress
 Nodes IP address.
Ptr< Ipv4m_ipv4
 IP protocol.
std::map< Ptr< Socket >
, Ipv4InterfaceAddress
m_socketAddresses
 Raw socket per each IP interface, map socket -> iface address (IP + mask)
Ptr< NetDevicem_lo
 Loopback device used to defer route requests until a route is found.
RoutingTable m_routingTable
 Main Routing table for the node.
RoutingTable m_advRoutingTable
 Advertised Routing table for the node.
uint32_t m_maxQueueLen
 The maximum number of packets that we allow a routing protocol to buffer.
uint32_t m_maxQueuedPacketsPerDst
 The maximum number of packets that we allow per destination to buffer.
Time m_maxQueueTime
 The maximum period of time that a routing protocol is allowed to buffer a packet for.
PacketQueue m_queue
 A "drop front on full" queue used by the routing layer to buffer packets to which it does not have a route.
bool EnableBuffering
 Flag that is used to enable or disable buffering.
bool EnableWST
 Flag that is used to enable or disable Weighted Settling Time.
double m_weightedFactor
 This is the wighted factor to determine the weighted settling time.
bool EnableRouteAggregation
Time m_routeAggregationTime
 Parameter that holds the route aggregation time interval.
UnicastForwardCallback m_scb
 Unicast callback for own packets.
ErrorCallback m_ecb
 Error callback for own packets.

Additional Inherited Members

- Public Types inherited from ns3::Ipv4RoutingProtocol
typedef Callback< void, Ptr
< const Packet >, const
Ipv4Header
&, Socket::SocketErrno
ErrorCallback
typedef Callback< void, Ptr
< const Packet >, const
Ipv4Header &, uint32_t > 
LocalDeliverCallback
typedef Callback< void, Ptr
< Ipv4MulticastRoute >, Ptr
< const Packet >, const
Ipv4Header & > 
MulticastForwardCallback
typedef Callback< void, Ptr
< Ipv4Route >, Ptr< const
Packet >, const Ipv4Header & > 
UnicastForwardCallback
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)

Detailed Description

DSDV routing protocol.

Definition at line 53 of file dsdv-routing-protocol.h.

Constructor & Destructor Documentation

ns3::dsdv::RoutingProtocol::RoutingProtocol ( )

c-tor

Definition at line 198 of file dsdv-routing-protocol.cc.

References m_uniformRandomVariable.

ns3::dsdv::RoutingProtocol::~RoutingProtocol ( )
virtual

Definition at line 207 of file dsdv-routing-protocol.cc.

Member Function Documentation

int64_t ns3::dsdv::RoutingProtocol::AssignStreams ( int64_t  stream)

Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.

Parameters
streamfirst stream index to use
Returns
the number of stream indices assigned by this model

Definition at line 191 of file dsdv-routing-protocol.cc.

References m_uniformRandomVariable, NS_LOG_FUNCTION, and ns3::RandomVariableStream::SetStream().

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::DeferredRouteOutput ( Ptr< const Packet p,
const Ipv4Header header,
UnicastForwardCallback  ucb,
ErrorCallback  ecb 
)
private

Queue packet untill we find a route.

Definition at line 338 of file dsdv-routing-protocol.cc.

References ns3::dsdv::PacketQueue::Enqueue(), ns3::Packet::GetUid(), m_queue, NS_ASSERT, NS_LOG_DEBUG, and NS_LOG_FUNCTION.

Referenced by RouteInput().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsdv::RoutingProtocol::DoDispose ( void  )
virtual

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented from ns3::Object.

Definition at line 212 of file dsdv-routing-protocol.cc.

References m_ipv4, and m_socketAddresses.

void ns3::dsdv::RoutingProtocol::Drop ( Ptr< const Packet packet,
const Ipv4Header header,
Socket::SocketErrno  err 
)
private

Notify that packet is dropped for some reason.

Definition at line 1080 of file dsdv-routing-protocol.cc.

References ns3::Ipv4Header::GetDestination(), ns3::Packet::GetUid(), m_mainAddress, and NS_LOG_DEBUG.

Referenced by Start().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Ptr< Socket > ns3::dsdv::RoutingProtocol::FindSocketWithInterfaceAddress ( Ipv4InterfaceAddress  iface) const
private

Find socket with local interface address iface.

Definition at line 1052 of file dsdv-routing-protocol.cc.

References m_socketAddresses.

Referenced by NotifyAddAddress(), NotifyInterfaceDown(), and NotifyRemoveAddress().

+ Here is the caller graph for this function:

bool ns3::dsdv::RoutingProtocol::GetEnableBufferFlag ( ) const

Definition at line 165 of file dsdv-routing-protocol.cc.

References EnableBuffering.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

bool ns3::dsdv::RoutingProtocol::GetEnableRAFlag ( ) const

Definition at line 185 of file dsdv-routing-protocol.cc.

References EnableRouteAggregation.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Time ns3::dsdv::RoutingProtocol::GetSettlingTime ( Ipv4Address  dst)
private

Get settlingTime for a destination

Parameters
dst- destination address
Returns
settlingTime for the destination if found

Definition at line 1156 of file dsdv-routing-protocol.cc.

References EnableWST, ns3::dsdv::RoutingTableEntry::GetLifeTime(), ns3::Time::GetSeconds(), ns3::dsdv::RoutingTableEntry::GetSettlingTime(), ns3::dsdv::RoutingTable::LookupRoute(), m_routingTable, m_weightedFactor, NS_LOG_DEBUG, NS_LOG_FUNCTION, and ns3::Seconds().

Referenced by RecvDsdv().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TypeId ns3::dsdv::RoutingProtocol::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::dsdv::RoutingProtocol.

Attributes defined for this type:

  • PeriodicUpdateInterval: Periodic interval between exchange of full routing tables among nodes.
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +15000000000.0ns
    • Flags: construct write read
  • SettlingTime: Minimum time an update is to be stored in adv table before sending outin case of change in metric (in seconds)
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +5000000000.0ns
    • Flags: construct write read
  • MaxQueueLen: Maximum number of packets that we allow a routing protocol to buffer.
  • MaxQueuedPacketsPerDst: Maximum number of packets that we allow per destination to buffer.
  • MaxQueueTime: Maximum time packets can be queued (in seconds)
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +30000000000.0ns
    • Flags: construct write read
  • EnableBuffering: Enables buffering of data packets if no route to destination is available
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read
  • EnableWST: Enables Weighted Settling Time for the updates before advertising
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: true
    • Flags: construct write read
  • Holdtimes: Times the forwarding Interval to purge the route.
  • WeightedFactor: WeightedFactor for the settling time if Weighted Settling Time is enabled
    • Set with class: ns3::DoubleValue
    • Underlying type: double -1.79769e+308:1.79769e+308
    • Initial value: 0.875
    • Flags: construct write read
  • EnableRouteAggregation: Enables Weighted Settling Time for the updates before advertising
    • Set with class: BooleanValue
    • Underlying type: bool
    • Initial value: false
    • Flags: construct write read
  • RouteAggregationTime: Time to aggregate updates before sending them out (in seconds)
    • Set with class: TimeValue
    • Underlying type: Time
    • Initial value: +1000000000.0ns
    • Flags: construct write read

No TraceSources defined for this type.

Reimplemented from ns3::Ipv4RoutingProtocol.

Definition at line 103 of file dsdv-routing-protocol.cc.

References GetEnableBufferFlag(), GetEnableRAFlag(), GetWSTFlag(), Holdtimes, m_maxQueuedPacketsPerDst, m_maxQueueLen, m_maxQueueTime, m_periodicUpdateInterval, m_routeAggregationTime, m_settlingTime, m_weightedFactor, ns3::Seconds(), SetEnableBufferFlag(), SetEnableRAFlag(), ns3::TypeId::SetParent(), and SetWSTFlag().

+ Here is the call graph for this function:

bool ns3::dsdv::RoutingProtocol::GetWSTFlag ( ) const

Definition at line 175 of file dsdv-routing-protocol.cc.

References EnableWST.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Ptr< Ipv4Route > ns3::dsdv::RoutingProtocol::LoopbackRoute ( const Ipv4Header header,
Ptr< NetDevice oif 
) const
private

Create loopback route for given header.

Definition at line 479 of file dsdv-routing-protocol.cc.

References ns3::Ipv4Header::GetDestination(), ns3::Ipv4::GetNetDevice(), ns3::Ipv4Route::GetSource(), m_ipv4, m_lo, m_socketAddresses, NS_ASSERT, NS_ASSERT_MSG, ns3::Ipv4Route::SetDestination(), ns3::Ipv4Route::SetGateway(), ns3::Ipv4Route::SetOutputDevice(), and ns3::Ipv4Route::SetSource().

Referenced by RouteOutput().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsdv::RoutingProtocol::NotifyAddAddress ( uint32_t  interface,
Ipv4InterfaceAddress  address 
)
virtual
Parameters
interfacethe index of the interface we are being notified about
addressa new address being added to an interface

Protocols are expected to implement this method to be notified whenever a new address is added to an interface. Typically used to add a 'network route' on an interface. Can be invoked on an up or down interface.

Implements ns3::Ipv4RoutingProtocol.

Definition at line 995 of file dsdv-routing-protocol.cc.

References ns3::dsdv::RoutingTable::AddRoute(), ns3::Socket::Bind(), ns3::Socket::BindToNetDevice(), ns3::Socket::CreateSocket(), DSDV_PORT, FindSocketWithInterfaceAddress(), ns3::Ipv4L3Protocol::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::Ipv4InterfaceAddress::GetBroadcast(), ns3::Ipv4::GetInterfaceForAddress(), ns3::Ipv4InterfaceAddress::GetLocal(), ns3::Simulator::GetMaximumSimulationTime(), ns3::Ipv4::GetNetDevice(), ns3::Ipv4L3Protocol::GetNetDevice(), ns3::Object::GetObject(), ns3::UdpSocketFactory::GetTypeId(), ns3::Ipv4L3Protocol::IsUp(), m_ipv4, m_routingTable, m_socketAddresses, ns3::MakeCallback(), NS_ASSERT, NS_LOG_FUNCTION, RecvDsdv(), ns3::Socket::SetAllowBroadcast(), and ns3::Socket::SetRecvCallback().

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::NotifyInterfaceDown ( uint32_t  interface)
virtual
Parameters
interfacethe index of the interface we are being notified about

Protocols are expected to implement this method to be notified of the state change of an interface in a node.

Implements ns3::Ipv4RoutingProtocol.

Definition at line 976 of file dsdv-routing-protocol.cc.

References ns3::dsdv::RoutingTable::Clear(), ns3::Socket::Close(), ns3::dsdv::RoutingTable::DeleteAllRoutesFromInterface(), FindSocketWithInterfaceAddress(), ns3::Ipv4::GetAddress(), ns3::Ipv4L3Protocol::GetNetDevice(), ns3::Object::GetObject(), m_advRoutingTable, m_ipv4, m_routingTable, m_socketAddresses, NS_ASSERT, and NS_LOG_LOGIC.

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::NotifyInterfaceUp ( uint32_t  interface)
virtual
void ns3::dsdv::RoutingProtocol::NotifyRemoveAddress ( uint32_t  interface,
Ipv4InterfaceAddress  address 
)
virtual
Parameters
interfacethe index of the interface we are being notified about
addressa new address being added to an interface

Protocols are expected to implement this method to be notified whenever a new address is removed from an interface. Typically used to remove the 'network route' of an interface. Can be invoked on an up or down interface.

Implements ns3::Ipv4RoutingProtocol.

Definition at line 1028 of file dsdv-routing-protocol.cc.

References ns3::Socket::Bind(), ns3::Socket::CreateSocket(), DSDV_PORT, FindSocketWithInterfaceAddress(), ns3::Ipv4L3Protocol::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::Ipv4L3Protocol::GetNAddresses(), ns3::Object::GetObject(), ns3::UdpSocketFactory::GetTypeId(), m_ipv4, m_socketAddresses, ns3::MakeCallback(), NS_ASSERT, RecvDsdv(), ns3::Socket::SetAllowBroadcast(), and ns3::Socket::SetRecvCallback().

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::PrintRoutingTable ( Ptr< OutputStreamWrapper stream) const
virtual

Print the Routing Table entries.

Parameters
streamthe ostream the Routing table is printed to

Implements ns3::Ipv4RoutingProtocol.

Definition at line 225 of file dsdv-routing-protocol.cc.

References ns3::Object::GetObject(), ns3::Time::GetSeconds(), ns3::OutputStreamWrapper::GetStream(), m_ipv4, m_routingTable, ns3::Now(), and ns3::dsdv::RoutingTable::Print().

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::RecvDsdv ( Ptr< Socket socket)
private
Ptr< Ipv4Route > ns3::dsdv::RoutingProtocol::RouteOutput ( Ptr< Packet p,
const Ipv4Header header,
Ptr< NetDevice oif,
Socket::SocketErrno sockerr 
)
virtual

Query routing cache for an existing route, for an outbound packet.

This lookup is used by transport protocols. It does not cause any packet to be forwarded, and is synchronous. Can be used for multicast or unicast. The Linux equivalent is ip_route_output()

The header input parameter may have an uninitialized value for the source address, but the destination address should always be properly set by the caller.

Parameters
ppacket to be routed. Note that this method may modify the packet. Callers may also pass in a null pointer.
headerinput parameter (used to form key to search for the route)
oifOutput interface Netdevice. May be zero, or may be bound via socket options to a particular output interface.
sockerrOutput parameter; socket errno
Returns
a code that indicates what happened in the lookup

Implements ns3::Ipv4RoutingProtocol.

Definition at line 246 of file dsdv-routing-protocol.cc.

References ns3::Packet::AddPacketTag(), ns3::dsdv::RoutingTable::AddRoute(), EnableBuffering, ns3::Socket::ERROR_NOROUTETOHOST, ns3::Socket::ERROR_NOTERROR, ns3::Ipv4Route::GetDestination(), ns3::Ipv4Header::GetDestination(), ns3::NetDevice::GetIfIndex(), ns3::UniformRandomVariable::GetInteger(), ns3::Ipv4::GetInterfaceForDevice(), ns3::Ipv4Route::GetOutputDevice(), ns3::dsdv::RoutingTableEntry::GetRoute(), ns3::Packet::GetSize(), ns3::Ipv4Route::GetSource(), ns3::Packet::GetUid(), LookForQueuedPackets(), ns3::dsdv::RoutingTable::LookupRoute(), LoopbackRoute(), m_advRoutingTable, m_ipv4, m_routingTable, m_socketAddresses, m_uniformRandomVariable, ns3::MicroSeconds(), NS_ASSERT, NS_LOG_DEBUG, NS_LOG_FUNCTION, NS_LOG_LOGIC, ns3::Packet::PeekPacketTag(), ns3::dsdv::RoutingTable::Purge(), ns3::Simulator::Schedule(), and SendTriggeredUpdate().

+ Here is the call graph for this function:

void ns3::dsdv::RoutingProtocol::Send ( Ptr< Ipv4Route route,
Ptr< const Packet packet,
const Ipv4Header header 
)
private

Definition at line 1069 of file dsdv-routing-protocol.cc.

References ns3::Packet::Copy(), ns3::Ipv4Header::GetDestination(), ns3::Object::GetObject(), ns3::Ipv4Header::GetProtocol(), ns3::Ipv4Route::GetSource(), m_ipv4, NS_ASSERT, and ns3::Ipv4L3Protocol::Send().

Referenced by Start().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::dsdv::RoutingProtocol::SetEnableBufferFlag ( bool  f)

Definition at line 160 of file dsdv-routing-protocol.cc.

References EnableBuffering.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::dsdv::RoutingProtocol::SetEnableRAFlag ( bool  f)

Definition at line 180 of file dsdv-routing-protocol.cc.

References EnableRouteAggregation.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void ns3::dsdv::RoutingProtocol::SetIpv4 ( Ptr< Ipv4 ipv4)
virtual
void ns3::dsdv::RoutingProtocol::SetWSTFlag ( bool  f)

Definition at line 170 of file dsdv-routing-protocol.cc.

References EnableWST.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

Member Data Documentation

const uint32_t ns3::dsdv::RoutingProtocol::DSDV_PORT = 269
static

UDP Port for DSDV control traffic.

Definition at line 58 of file dsdv-routing-protocol.h.

Referenced by NotifyAddAddress(), NotifyInterfaceUp(), NotifyRemoveAddress(), SendPeriodicUpdate(), and SendTriggeredUpdate().

bool ns3::dsdv::RoutingProtocol::EnableBuffering
private

Flag that is used to enable or disable buffering.

Definition at line 133 of file dsdv-routing-protocol.h.

Referenced by GetEnableBufferFlag(), RouteInput(), RouteOutput(), and SetEnableBufferFlag().

bool ns3::dsdv::RoutingProtocol::EnableRouteAggregation
private

This is a flag to enable route aggregation. Route aggregation will aggregate all routes for 'RouteAggregationTime' from the time an update is received by a node and sends them as a single update .

Definition at line 140 of file dsdv-routing-protocol.h.

Referenced by GetEnableRAFlag(), RecvDsdv(), and SetEnableRAFlag().

bool ns3::dsdv::RoutingProtocol::EnableWST
private

Flag that is used to enable or disable Weighted Settling Time.

Definition at line 135 of file dsdv-routing-protocol.h.

Referenced by GetSettlingTime(), GetWSTFlag(), and SetWSTFlag().

uint32_t ns3::dsdv::RoutingProtocol::Holdtimes
private

Holdtimes is the multiplicative factor of PeriodicUpdateInterval for which the node waits since the last update before flushing a route from the routing table. If PeriodicUpdateInterval is 8s and Holdtimes is 3, the node waits for 24s since the last update to flush this route from its routing table.

Definition at line 105 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and Start().

RoutingTable ns3::dsdv::RoutingProtocol::m_advRoutingTable
private

Advertised Routing table for the node.

Definition at line 123 of file dsdv-routing-protocol.h.

Referenced by MergeTriggerPeriodicUpdates(), NotifyInterfaceDown(), RecvDsdv(), RouteOutput(), SendTriggeredUpdate(), and Start().

ErrorCallback ns3::dsdv::RoutingProtocol::m_ecb
private

Error callback for own packets.

Definition at line 146 of file dsdv-routing-protocol.h.

Referenced by Start().

Ptr<NetDevice> ns3::dsdv::RoutingProtocol::m_lo
private

Loopback device used to defer route requests until a route is found.

Definition at line 119 of file dsdv-routing-protocol.h.

Referenced by LoopbackRoute(), RouteInput(), and SetIpv4().

Ipv4Address ns3::dsdv::RoutingProtocol::m_mainAddress
private
uint32_t ns3::dsdv::RoutingProtocol::m_maxQueuedPacketsPerDst
private

The maximum number of packets that we allow per destination to buffer.

Definition at line 127 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and Start().

uint32_t ns3::dsdv::RoutingProtocol::m_maxQueueLen
private

The maximum number of packets that we allow a routing protocol to buffer.

Definition at line 125 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and Start().

Time ns3::dsdv::RoutingProtocol::m_maxQueueTime
private

The maximum period of time that a routing protocol is allowed to buffer a packet for.

Definition at line 129 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and Start().

Time ns3::dsdv::RoutingProtocol::m_periodicUpdateInterval
private

PeriodicUpdateInterval specifies the periodic time interval between which the a node broadcasts its entire routing table.

Definition at line 108 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), SendPeriodicUpdate(), and Start().

Timer ns3::dsdv::RoutingProtocol::m_periodicUpdateTimer
private

Timer to trigger periodic updates from a node.

Definition at line 199 of file dsdv-routing-protocol.h.

Referenced by RecvDsdv(), SendPeriodicUpdate(), and Start().

PacketQueue ns3::dsdv::RoutingProtocol::m_queue
private

A "drop front on full" queue used by the routing layer to buffer packets to which it does not have a route.

Definition at line 131 of file dsdv-routing-protocol.h.

Referenced by DeferredRouteOutput(), LookForQueuedPackets(), SendPacketFromQueue(), and Start().

Time ns3::dsdv::RoutingProtocol::m_routeAggregationTime
private

Parameter that holds the route aggregation time interval.

Definition at line 142 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and RecvDsdv().

UnicastForwardCallback ns3::dsdv::RoutingProtocol::m_scb
private

Unicast callback for own packets.

Definition at line 144 of file dsdv-routing-protocol.h.

Referenced by Start().

Time ns3::dsdv::RoutingProtocol::m_settlingTime
private

SettlingTime specifies the time for which a node waits before propagating an update. It waits for this time interval in hope of receiving an update with a better metric.

Definition at line 111 of file dsdv-routing-protocol.h.

Referenced by GetTypeId(), and RecvDsdv().

std::map<Ptr<Socket>, Ipv4InterfaceAddress> ns3::dsdv::RoutingProtocol::m_socketAddresses
private
Timer ns3::dsdv::RoutingProtocol::m_triggeredExpireTimer
private

Timer used by the trigger updates in case of Weighted Settling Time is used.

Definition at line 201 of file dsdv-routing-protocol.h.

Ptr<UniformRandomVariable> ns3::dsdv::RoutingProtocol::m_uniformRandomVariable
private

Provides uniform random variables.

Definition at line 204 of file dsdv-routing-protocol.h.

Referenced by AssignStreams(), RecvDsdv(), RouteOutput(), RoutingProtocol(), SendPacketFromQueue(), SendPeriodicUpdate(), and Start().

double ns3::dsdv::RoutingProtocol::m_weightedFactor
private

This is the wighted factor to determine the weighted settling time.

Definition at line 137 of file dsdv-routing-protocol.h.

Referenced by GetSettlingTime(), and GetTypeId().


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