SSF.OS.OSPFv2.test
Class UnreliableIP

java.lang.Object
  |
  +--SSF.OS.ProtocolSession
        |
        +--SSF.OS.IP
              |
              +--SSF.OS.OSPFv2.test.UnreliableIP
All Implemented Interfaces:
com.renesys.raceway.DML.Configurable
Direct Known Subclasses:
IPwithErrorInjection

public class UnreliableIP
extends SSF.OS.IP

This class is a replacement for SSF.OS.IP, from which the basic functionality is inherited. UnreliableIP adds the possibility to drop all packets which are received or should be sent on a given interface at a given time. This behavior can be used to simulate broken links.


Inner Class Summary
(package private)  class UnreliableIP.Fail
          The Fail class is a container for the configuration of a link failure.
 
Inner classes inherited from class SSF.OS.IP
SSF.OS.IP.demux_cache
 
Field Summary
private  java.util.Vector failures
          stores all configured failure periods
private  Logger log
          the log utility
 
Fields inherited from class SSF.OS.IP
DEBUG, INTERFACE_COUNT, INTERFACE_SET, INTERFACE_SET_STARTING_SIZE, INTERFACES, monitor, monitorON, ROUTING_TABLE, session_cache, tieBreakerClass
 
Fields inherited from class SSF.OS.ProtocolSession
inGraph, name, use
 
Constructor Summary
UnreliableIP()
          Constructor
 
Method Summary
 void config(com.renesys.raceway.DML.Configuration cfg)
          Configure this ProtocolSession ProtocolSession[ name ip use SSF.OS.OSPFv2.test.UnreliableIP fail[ from
 boolean push(SSF.OS.ProtocolMessage message, SSF.OS.ProtocolSession fromSession)
          Handles incoming and outgoing IP-packets.
 
Methods inherited from class SSF.OS.IP
createMonitor, drop, getMonitorEnable, getRoutingTable, init, opened, setGraph, setMonitorEnable
 
Methods inherited from class SSF.OS.ProtocolSession
close, closed, debugIdentifier, inGraph, open, pushAfterDelay, pushAfterDelayFailed, version
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

failures

private java.util.Vector failures
stores all configured failure periods

log

private Logger log
the log utility
Constructor Detail

UnreliableIP

public UnreliableIP()
Constructor
Method Detail

config

public void config(com.renesys.raceway.DML.Configuration cfg)
            throws com.renesys.raceway.DML.configException
Configure this ProtocolSession
 ProtocolSession[ name ip use SSF.OS.OSPFv2.test.UnreliableIP
         fail[
             from 
Overrides:
config in class SSF.OS.IP

push

public boolean push(SSF.OS.ProtocolMessage message,
                    SSF.OS.ProtocolSession fromSession)
             throws SSF.OS.ProtocolException
Handles incoming and outgoing IP-packets. Dependent of the interface and the simulation time, the packets are dropped or simply passed to IP.
Overrides:
push in class SSF.OS.IP