urv.olsr.handlers
Class TcMessageHandler

java.lang.Object
  extended by urv.olsr.handlers.TcMessageHandler

public class TcMessageHandler
extends java.lang.Object

This class is in charge of performing all needed actions when a new TCMessage is received. Upon receiving a TC message, the "validity time" MUST be computed from the Vtime field of the message header (see section 3.3.2). The topology set SHOULD then be updated as follows (using section 19 for comparison of ANSN): 1 If the sender interface (NB: not originator) of this message is not in the symmetric 1-hop neighborhood of this node, the message MUST be discarded. 2 If there exist some tuple in the topology set where: T_last_addr == originator address AND T_seq > ANSN, then further processing of this TC message MUST NOT be performed and the message MUST be silently discarded (case: message received out of order). 3 All tuples in the topology set where: T_last_addr == originator address AND T_seq < ANSN MUST be removed from the topology set. 4 For each of the advertised neighbor main address received in the TC message: 4.1 If there exist some tuple in the topology set where: T_dest_addr == advertised neighbor main address, AND T_last_addr == originator address, then the holding time of that tuple MUST be set to: T_time = current time + validity time. 4.2 Otherwise, a new tuple MUST be recorded in the topology set where: T_dest_addr = advertised neighbor main address, T_last_addr = originator address, T_seq = ANSN, T_time = current time + validity time.

Author:
Marcel Arrufat Arias

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
TcMessageHandler(TopologyInformationBaseTable topologyTable, NeighborTable neighborTable, MulticastGroupsTable multicastGroupsTable)
           
 
Method Summary
 void handleTcMessage(OLSRNode originatorNode, OLSRNode srcNode, TcMessage tcMessage, ValidityTime vTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

TcMessageHandler

public TcMessageHandler(TopologyInformationBaseTable topologyTable,
                        NeighborTable neighborTable,
                        MulticastGroupsTable multicastGroupsTable)
Method Detail

handleTcMessage

public void handleTcMessage(OLSRNode originatorNode,
                            OLSRNode srcNode,
                            TcMessage tcMessage,
                            ValidityTime vTime)