|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--SSF.OS.ProtocolSession
|
+--SSF.OS.OSPF.sOSPF
The OSPF interior gateway protocol (IGP).
| Field Summary | |
static int |
ADJACENT
Indicates that an adjacency exists with a given neighbor. |
static int |
AREA_BORDER
Indicates an OSPF area border router. |
boolean |
area_border_rtr
Indicates if this is an area border router. |
int |
area_num
The Area to which this router belongs. |
int[] |
areas
The Area(s) to which this route belongs. |
static int |
AS_BOUNDARY
Indicates an OSPF AS boundary router. |
boolean |
as_boundary_rtr
Indicates if this is an AS boundary router. |
java.lang.String |
as_nh
The NHI address prefix of the AS to which this router belongs. |
int |
as_num
The number of the AS to which this router belongs. |
static int |
ASPF_MCAST_ADDR
The int value of the multicast address for ALLSPFRouters (All Shortest Path First Routers). |
static int |
BACKBONE
Indicates an OSPF backbone router. |
boolean |
backbone_rtr
Indicates if this is a backbone router. |
static double |
BUILD_RT_TABLE_ITVL
The interval at which OSPF rebuilds its routing tables. |
Debug |
debug
A helper to manage debugging. |
static int |
DESIG_MCAST_ADDR
|
static int |
DOWN
Indicates that a given neighbor is down. |
RoutingTable |
fwd_table
The local router's forwarding table. |
static double |
GET_RT_TYPE_ITVL
The interval at which OSPF determines the router types. |
static double |
HELLO_INTERVAL
The interval at which OSPF sends hello packets. |
static int |
HELLO_RCVD
Indicates that a hello has been received from a given neighbor. |
int |
hostid
The host ID of the local router. |
Interface[] |
ifs
The OSPF interface data structure. |
static int |
INTERNAL
Indicates an internal OSPF router. |
boolean |
internal_rtr
Indicates if this is an internal Router. |
LSDatabase |
lsdb
The link state database implemented as an adjacency list. |
java.lang.String |
nh
The NHI address prefix of the local router. |
static int |
POINT_TO_POINT
Indicates a point-to-point connection to another router. |
static double |
SEND_LSA_ITVL
The interval at which OSPF sends LSAs. |
static int |
TO_AS_BOUNDARY
Indicates a connection to an AS boundary router. |
static int |
TO_HOST
Indicates a connection to a host. |
static int |
TO_STUB
Indicates a connection to a stub network. |
static int |
TO_TRANSIT
Indicates a connection to a transit network. |
static Net |
topnet
A reference to the top-level Net. |
| Fields inherited from class SSF.OS.ProtocolSession |
name, use |
| Constructor Summary | |
sOSPF()
Constructs an OSPF protocol session. |
|
| Method Summary | |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure this ProtocolSession. |
void |
createLinkDatabase()
Queries the list of all routers and links from Net, decides connection types, and creates a link state database. |
float |
getSimTime()
Get the current simulation. |
void |
init()
Initialization routine called by ProtocolGraph after instantiation. |
double |
nowsec()
Returns the current simulation time in seconds. |
boolean |
push(ProtocolMessage message,
ProtocolSession fromSession)
Routine to call when a message is being sent to ("pushed into") this ProtocolSession by another ProtocolSession. |
void |
routeAddedBy(RoutingInfo rinfo,
java.lang.String protocolName)
Notification that the named protocol has added a new entry to the forwarding table on this host. |
void |
routeDeletedBy(RoutingInfo rinfo,
java.lang.String protocolName)
Notification that the named protocol has removed an entry from the forwarding table on this host. |
| Methods inherited from class SSF.OS.ProtocolSession |
close, closed, debugIdentifier, inGraph, open, opened, pushAfterDelay, pushAfterDelayFailed, setGraph, version |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int INTERNAL
public static final int AREA_BORDER
public static final int BACKBONE
public static final int AS_BOUNDARY
public static final double GET_RT_TYPE_ITVL
public static final double HELLO_INTERVAL
public static final double SEND_LSA_ITVL
public static final double BUILD_RT_TABLE_ITVL
public static final int DOWN
public static final int HELLO_RCVD
public static final int ADJACENT
public static final int POINT_TO_POINT
public static final int TO_TRANSIT
public static final int TO_STUB
public static final int TO_AS_BOUNDARY
public static final int TO_HOST
public static final int ASPF_MCAST_ADDR
public static final int DESIG_MCAST_ADDR
public static Net topnet
public int hostid
public java.lang.String nh
public boolean internal_rtr
public boolean area_border_rtr
public boolean backbone_rtr
public boolean as_boundary_rtr
public java.lang.String as_nh
public int as_num
public int area_num
public int[] areas
public Interface[] ifs
public LSDatabase lsdb
public RoutingTable fwd_table
public Debug debug
| Constructor Detail |
public sOSPF()
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
ProtocolSession
config in interface com.renesys.raceway.DML.Configurableconfig in class ProtocolSessioncom.renesys.raceway.DML.configException
public void routeAddedBy(RoutingInfo rinfo,
java.lang.String protocolName)
routeAddedBy in interface FIBChangeListenerrinfo - Information about the route added to the FIB.protocolName - The name of the protocol that added the route.
public void routeDeletedBy(RoutingInfo rinfo,
java.lang.String protocolName)
routeDeletedBy in interface FIBChangeListenerrinfo - Information about the route deleted from the FIB.protocolName - The name of the protocol that deleted the route.public void init()
init in class ProtocolSessionpublic double nowsec()
public void createLinkDatabase()
public boolean push(ProtocolMessage message,
ProtocolSession fromSession)
throws ProtocolException
ProtocolSessionIf you desire "safe" interaction with other CPU activities, even though your push() consumes no measurable/modelable CPU cycles, define the "cpudelay true" attribute for the ProtocolGraph and use pushAfterDelay(message,fromSession,0.0). This will guarantee proper ordering; that is, the framework will wait until the CPU is free before proceeding with the requested push().
push in class ProtocolSessionProtocolExceptionpublic float getSimTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||