DRCL JavaSim API

drcl.inet.protocol.ospf
Class OSPF_Interface

java.lang.Object
  |
  +--drcl.inet.protocol.ospf.OSPF_Interface

public class OSPF_Interface
extends java.lang.Object

class OSPF_Interface An OSPF interface is the connection between a router and a network. One or more router adjacencies may develop over an interface. A router's LSAs reflect the state of its interfaces and their associated adjacencies. ref: sec 9

Author:
Wei-peng Chen
See Also:
OSPF, OSPF_Neighbor, OSPF_TimeOut_EVT

Field Summary
protected  OSPF_TimeOut_EVT Ack_Delay_Reach_EVT
           
protected  OSPF_Area area
          A router interface belongs to one and only one area
protected  int cost
          Cost for transmitting a packet over this interface, must be greater than zero
protected  int dead_interval
          the # of second before the neighbor is declared to be down
protected  int hello_interval
          the # of second between hello pkts are sent over this interface
protected  OSPF_TimeOut_EVT Hello_TimeOut_EVT
           
protected  int if_id
           
protected  int ifmtu
          I/F MTU
protected  long lladdr
           
protected  java.util.Vector lsa_delayed_ack
          LSAs to Delayed Acknowledge
protected  java.util.Vector neighbor_list
          list of ospf neighbor over this interface
protected  int ospf_stat_delayed_lsack
           
protected  int ospf_stat_dr_election
           
protected  int rxmt_interval
          The number of seconds between LSA retransmissions, for adjacencies belonging to this interface.
protected  int state
           
protected  int transdelay
          I/F transmission delay, the approximate delay over this link
protected  int type
          the type info from interface, default value: IF_PTOP
 
Constructor Summary
protected OSPF_Interface()
          Constructor
 
Method Summary
protected  void add_new_neighbor(OSPF_Neighbor nbr)
          Add one new neighbor to this interface
protected  void clear()
          Disable all timer
protected  int if_is_pointopoint()
          Check whther this interface is the type of point-to-point
 java.lang.String info(java.lang.String prefix_)
           
protected  int Interface_Down()
           
protected  int Interface_Up()
          Never called in this implemented since we use CSL hello service Interface_UP event is trigger be NEIGHBOR_UP event
protected  int neighbor_change()
          Oe of the neighbors associated with this interface change its state
protected  int ospf_interface_count_full_nbr()
          count number of full neighbor adjacent to this interface
static OSPF_Interface ospf_interface_create(int if_index, int type_, int mtu_, OSPF_Area area_)
          Constructor: Create new ospf6 interface structure In our implementation, this function is called when OSPF receives NEIGHBOR_UP event so that the state of interface is UP
protected  OSPF_Neighbor ospf_nbr_lookup_by_routerid(long id)
          Lookup the neighbor associated with this interface with router id
protected  void remove_neighbor(OSPF_Neighbor nbr)
          Remove one new neighbor to this interface
 void reset()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

if_id

protected int if_id

area

protected OSPF_Area area
A router interface belongs to one and only one area

type

protected int type
the type info from interface, default value: IF_PTOP

state

protected int state

lladdr

protected long lladdr

hello_interval

protected int hello_interval
the # of second between hello pkts are sent over this interface

dead_interval

protected int dead_interval
the # of second before the neighbor is declared to be down

transdelay

protected int transdelay
I/F transmission delay, the approximate delay over this link

Hello_TimeOut_EVT

protected OSPF_TimeOut_EVT Hello_TimeOut_EVT

Ack_Delay_Reach_EVT

protected OSPF_TimeOut_EVT Ack_Delay_Reach_EVT

neighbor_list

protected java.util.Vector neighbor_list
list of ospf neighbor over this interface

cost

protected int cost
Cost for transmitting a packet over this interface, must be greater than zero

rxmt_interval

protected int rxmt_interval
The number of seconds between LSA retransmissions, for adjacencies belonging to this interface. Also used when retransmitting Database Description and Link State Request Packets.

lsa_delayed_ack

protected java.util.Vector lsa_delayed_ack
LSAs to Delayed Acknowledge

ifmtu

protected int ifmtu
I/F MTU

ospf_stat_dr_election

protected int ospf_stat_dr_election

ospf_stat_delayed_lsack

protected int ospf_stat_delayed_lsack
Constructor Detail

OSPF_Interface

protected OSPF_Interface()
Constructor
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

info

public java.lang.String info(java.lang.String prefix_)

reset

public void reset()

clear

protected void clear()
Disable all timer

ospf_interface_create

public static OSPF_Interface ospf_interface_create(int if_index,
                                                   int type_,
                                                   int mtu_,
                                                   OSPF_Area area_)
Constructor: Create new ospf6 interface structure In our implementation, this function is called when OSPF receives NEIGHBOR_UP event so that the state of interface is UP

ospf_interface_count_full_nbr

protected int ospf_interface_count_full_nbr()
count number of full neighbor adjacent to this interface

Interface_Up

protected int Interface_Up()
Never called in this implemented since we use CSL hello service Interface_UP event is trigger be NEIGHBOR_UP event

Interface_Down

protected int Interface_Down()

neighbor_change

protected int neighbor_change()
Oe of the neighbors associated with this interface change its state

ospf_nbr_lookup_by_routerid

protected OSPF_Neighbor ospf_nbr_lookup_by_routerid(long id)
Lookup the neighbor associated with this interface with router id

if_is_pointopoint

protected int if_is_pointopoint()
Check whther this interface is the type of point-to-point

add_new_neighbor

protected void add_new_neighbor(OSPF_Neighbor nbr)
Add one new neighbor to this interface

remove_neighbor

protected void remove_neighbor(OSPF_Neighbor nbr)
Remove one new neighbor to this interface

DRCL JavaSim API

Copyright © 2001 - DRCL, OSU     ~ Back to JavaSim Home ~