|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--SSF.OS.OSPFv2.Interface
An OSPF interface.
| Nested Class Summary | |
class |
Interface.BeforeElectionTimer
/* The BeforeElectionTimer waits for an HelloPacket which tells the interface who is DR and BDR. |
class |
Interface.DelayedAckTimer
The DelayedAckTimer is started if a new LS Ack Packet should be sent delayed. |
class |
Interface.PacingTimer
A timer used to pace LS Update Packets when first flooded out this interface. |
class |
Interface.SendNewHelloTimer
/* The Inactivity Timer for this Interface class. |
| Field Summary | |
Interface.DelayedAckTimer |
ackTimer
A timer that delays sending of Acknowledgment Packets. |
java.lang.String |
as_nh
A reference to the as_nh of the OSPF session above |
int |
backupDesigRouter
The Backup Designated Router for the network to which the interface is attached. |
static int |
BDR
Indicates that the Interface is the Backup Designated Router. |
static byte |
BROADCAST
Indicates that the link type the interface is connected to is broadcast. |
int |
cost
cost of this interface |
long |
delAckTime
The interval in seconds the router will wait before it sends an delayed Acknowledgment to all Neighbors of this Interface. |
int |
desigRouter
The Designated Router for the network to which the interface is attached. |
static int |
DOWN
Indicates that the Interface is down. |
static int |
DR
Indicates that the Interface is the Designated Router. |
static int |
DROTHER
Indicates that the Interface is nor DR neither BDR. |
static int |
ELECTION
Indicates that the Interface is in election phase. |
int |
helloInterval
The period, in seconds, between transmissions of Hello packets on the interface. |
Interface.SendNewHelloTimer |
helloTimer
A timer that is set to helloInterval. |
java.lang.Integer |
id
The Interface id. |
int |
ipaddr
The ip address of the interface. |
int |
ipmask
The ip mask of the Interface. |
static int |
LOOPBACK
Indicates that the Interface is looped back. |
LS_AckPacket |
lsAckContent
The content of an LS Ack Packet. |
AreaData |
myArea
A link to the Area Data Structure this Interface belongs to. |
OSPF |
myOSPF
A link to the OSPF ProtocolSession this Interface belongs to. |
static byte |
NBMA
Indicates that the link type the interface is connected to is non broadcast multi access. |
java.util.HashMap |
neighbors
A list of neighbor data structures containing information about the relationship to the neighbors. |
byte |
networkType
The network type the interface is connected to (ptp, broadcast, nbma, ptm). |
java.util.HashMap |
pacingLSAList
A list of LSAs that must be flooded out this interface, but are not allowed to send out immediately due to the PacingTimer. |
Interface.PacingTimer |
pacingTimer
A timer that controls the rate at which LS Update packets are transmitted out this interface. |
static int |
POINT2POINT
Indicates that the Interface is in point-to-point state. |
static byte |
PTM
Indicates that the link type the interface is connected to is point-to-multipoint. |
static byte |
PTP
Indicates that the link type the interface is connected to is point-to-point. |
int |
routerDeadInterval
The period, in seconds, that the router will wait to hear a Hello from a neighbor on the network to which the interface is connected before declaring the neighbor down. |
int |
routerPrio
Priority of the router the interface is attached to. |
java.lang.String |
rtrnh
A reference to the nh of the OSPF session above |
long |
rxmtInterval
The period, in seconds, the router will wait between retransmissions of OSPF-Packets that have not been acknowledged. |
int |
state
The actual state of the Interface (down, loopback, waiting,...) |
int |
transDelay
The seconds by which LSAs exiting the interface will have their age incremented. |
static byte |
VL
Indicates that the link type the interface is connected to is virtual-link. |
static int |
WAITING
Indicates that the Interface is waiting for a Hello with DR and DBR identification. |
Interface.BeforeElectionTimer |
waitTimer
A Wait Timer which will wait for routerDeadInterval seconds before either beginning an election of DR and BDR, or receiving an incoming Hello Packet which advertises DR and BDR. |
| Constructor Summary | |
Interface(OSPF myOSPF,
AreaData myArea,
com.renesys.raceway.DML.Configuration cfg)
Constructs a new Interface. |
|
| Method Summary | |
void |
clearLSAFromRetrLists(java.lang.String key)
clears a particular LSA from every Neighbors link state retransmission list. |
void |
config(com.renesys.raceway.DML.Configuration cfg)
Configure the OSPF interface parameters at the start and during the run by configUpdateMessage. |
void |
configRest(java.util.Enumeration peers)
Additional configuration to the interface. |
void |
delayedAcknowledge(LSA ackLSA)
called if a new LSA should be delayed acknowledged. |
void |
init()
Start the ospf session on this interface (just call method "interfaceUp()"). |
void |
interfaceDown()
Used by Lower-level protocols to indicate that the network interface is no longer functional. |
void |
interfaceUp()
Used by the Area Data Structure this Interface belongs to. |
void |
killNeighbor(int ipaddress)
Used to destroy a neighbor connection associated with the interface. |
void |
loopInd()
Used by Lower-level protocols and network management to indicate that the network interface is now looped back to itself. |
void |
printConfiguration()
print current configuration of the interface if necessary. |
void |
receivedDDPacket(Packet dataDescPkt,
java.lang.Integer sourceIP)
When the Area Data Structure, this Interface belongs to, gets a Database Description Packet, it will call this method to further process it. |
void |
receivedHello(Packet helloPkt,
int sourceIP)
When the Area Data Structure above gets a Hello Packet, it will call this method of the ospf interface which is associated with the NIC on which the packet has come in. |
void |
receivedLSAck(Packet lsAckPkt,
java.lang.Integer sourceIP)
When the Area Data Structure, this Interface belongs to, gets a Link State Acknowledgment Packet it calls this method to further process the Packet. |
void |
receivedLSRequest(Packet lsReqPkt,
java.lang.Integer sourceIP)
When the Area Data Structure of this Interface gets a Link State Request Packet it calls this method to further process the Packet. |
void |
receivedLSUpdate(Packet lsUpdPkt,
java.lang.Integer sourceIP)
When the Area Data Structure, this Interface belongs to, gets a Link State Update Packet it calls this method to further process the Packet. |
void |
reset()
Reset the Interface Data Structure. |
void |
setArea(AreaData newArea)
When this Interface changes its Area, this method should be called to set the links to the Area Data Structure to the new Area. |
java.lang.String |
toMinString()
Converts the interface to a string using a briefer format than toString. |
java.lang.String |
toMinString(boolean usenhi)
Converts the interface to a string using a briefer format than toString. |
java.lang.String |
toString()
Converts the Interface to a string. |
void |
unloopInd()
Used by Lower-level protocols and network management to indicate that the network interface is no longer looped back to itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int DOWN
public static final int LOOPBACK
public static final int POINT2POINT
public static final int WAITING
public static final int ELECTION
public static final int DR
public static final int BDR
public static final int DROTHER
public static final byte PTP
public static final byte BROADCAST
public static final byte NBMA
public static final byte PTM
public static final byte VL
public java.lang.Integer id
public byte networkType
public int ipaddr
public int ipmask
public int state
public java.lang.String rtrnh
public java.lang.String as_nh
public int cost
public int desigRouter
public int backupDesigRouter
public java.util.HashMap neighbors
public int routerPrio
public OSPF myOSPF
public AreaData myArea
public LS_AckPacket lsAckContent
public java.util.HashMap pacingLSAList
public int transDelay
public int helloInterval
public int routerDeadInterval
public long rxmtInterval
public long delAckTime
public Interface.BeforeElectionTimer waitTimer
public Interface.SendNewHelloTimer helloTimer
public Interface.DelayedAckTimer ackTimer
public Interface.PacingTimer pacingTimer
| Constructor Detail |
public Interface(OSPF myOSPF,
AreaData myArea,
com.renesys.raceway.DML.Configuration cfg)
| Method Detail |
public void config(com.renesys.raceway.DML.Configuration cfg)
throws com.renesys.raceway.DML.configException
if [
# The interface's ID (equal to the id of the according NIC)
# mandatory!
id %I
# This can be used to configure multiple interfaces at once
idrange [from %I1! to %I1!] # idrange not impl. yet!!!
# The link type of the network connected to this interface
# (possible values: "ptp", "broadcast", "nbma", "ptm", "vlink")
# all values but "ptp" not supported!!!
# mandatory!
network %S
# The interface output cost.
# optional! default value: 1
cost %I
# The router priority.
# optional! default value: 0
priority %I
# InfTransDelay
# optional! default value: 1
transmit-delay %I
# HelloInterval
# optional! default value: 10
hello-interval %I
# RouterDeadInterval
# optional! default value: 40
dead-interval %I
# RxmtInterval
# optional! default value: 5
retransmit-interval %I
]
config in interface com.renesys.raceway.DML.Configurablecfg - contains the values for configurable ospf interface parameters
com.renesys.raceway.DML.configException - if any of the calls to findSingle
throws such an exception.
public void configRest(java.util.Enumeration peers)
throws com.renesys.raceway.DML.configException
peers - Enumeration of NIC's which are peers to this interface.
com.renesys.raceway.DML.configException - thrown if configured linkType does not match the link layer
found in the corresponding NIC.public void init()
public void reset()
public void setArea(AreaData newArea)
public void receivedHello(Packet helloPkt,
int sourceIP)
public void receivedDDPacket(Packet dataDescPkt,
java.lang.Integer sourceIP)
throws ProtocolException
ProtocolException
public void receivedLSRequest(Packet lsReqPkt,
java.lang.Integer sourceIP)
public void receivedLSUpdate(Packet lsUpdPkt,
java.lang.Integer sourceIP)
public void receivedLSAck(Packet lsAckPkt,
java.lang.Integer sourceIP)
public void clearLSAFromRetrLists(java.lang.String key)
public void delayedAcknowledge(LSA ackLSA)
public void loopInd()
public void unloopInd()
public void interfaceUp()
public void interfaceDown()
public void killNeighbor(int ipaddress)
ipaddress - contains the ip address of the neighbors interface.public java.lang.String toString()
toMinString.
toString in class java.lang.Objectpublic void printConfiguration()
public java.lang.String toMinString(boolean usenhi)
toString.
usenhi - Whether or not to use NHI addressing when possible.
public java.lang.String toMinString()
toString.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||