RLRP routing  v.0.1.0
PathDiscovery.PathDiscoveryHandler Class Reference

Main class for dealing with sending/receiving RREQ/RREP service messages. More...

Collaboration diagram for PathDiscovery.PathDiscoveryHandler:
Collaboration graph

Public Member Functions

def __init__ (self, app_transport, arq_handler)
 Constructor. More...
 
def run_path_discovery (self, src_ip, dst_ip, packet)
 Start path discovery procedure by sending out initial RREQ message. More...
 
def send_rreq (self, src_ip, dst_ip)
 Generate and send RREQ message. More...
 
def process_rrep (self, rrep)
 Process an incoming RREP message. More...
 

Public Attributes

 delayed_packets_list
 Dictionary of delayed packets until the RREP isn't received. More...
 
 entry_deletion_timeout
 Entry deletion timeout, in seconds, in case of the RREP hasn't been received. More...
 
 creation_timestamps
 Dictionary of entry creation timestamps. More...
 
 app_transport
 Reference to Transport.VirtualTransport object. More...
 
 arq_handler
 Reference to ArqHandler.ArqHandler object. More...
 

Detailed Description

Main class for dealing with sending/receiving RREQ/RREP service messages.

Constructor & Destructor Documentation

def PathDiscovery.PathDiscoveryHandler.__init__ (   self,
  app_transport,
  arq_handler 
)

Constructor.

Parameters
selfThe object pointer.
app_transportReference to Transport.VirtualTransport object.
arq_handlerReference to ArqHandler.ArqHandler object.
Returns
None

Member Function Documentation

def PathDiscovery.PathDiscoveryHandler.process_rrep (   self,
  rrep 
)

Process an incoming RREP message.

Provides interface for handling RREP which have been received by IncomingTrafficHandler from the net interface.

Parameters
selfThe object pointer.
rrepMessages.RrepMessage object.
Returns
None
def PathDiscovery.PathDiscoveryHandler.run_path_discovery (   self,
  src_ip,
  dst_ip,
  packet 
)

Start path discovery procedure by sending out initial RREQ message.

Parameters
selfThe object pointer.
src_ipSource IP address of the route.
dst_ipDestination IP address of the route.
packetRaw packet data from the virtual interface, which should be sent to this destination IP.
Returns
None

Here is the call graph for this function:

Here is the caller graph for this function:

def PathDiscovery.PathDiscoveryHandler.send_rreq (   self,
  src_ip,
  dst_ip 
)

Generate and send RREQ message.

Parameters
selfThe object pointer.
src_ipSource IP address of the route.
dst_ipDestination IP address of the route.
Returns
None

Here is the caller graph for this function:

Member Data Documentation

PathDiscovery.PathDiscoveryHandler.app_transport

Reference to Transport.VirtualTransport object.

PathDiscovery.PathDiscoveryHandler.arq_handler

Reference to ArqHandler.ArqHandler object.

PathDiscovery.PathDiscoveryHandler.creation_timestamps

Dictionary of entry creation timestamps.

Format: {dst_ip: TS}.

PathDiscovery.PathDiscoveryHandler.delayed_packets_list

Dictionary of delayed packets until the RREP isn't received.

Format: {dst_ip: [packet1, ..., packetN]}.

PathDiscovery.PathDiscoveryHandler.entry_deletion_timeout

Entry deletion timeout, in seconds, in case of the RREP hasn't been received.


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