Package: inet.routing.ospfv2
Ospfv2
simple moduleImplements the OSPFv2 routing protocol.
The ospfConfig parameter can specify an XML file describing the configuration of all OSPF routers and their interfaces in the network.
The XML configuration must contain exactly one <OSPFASConfig> root element which describes an OSPF autonomous system with its areas and its routers. The Area IDs, Router IDs and area Address Ranges must be unique within the autonomous system. Various OSPF parameters can be specified for the network interfaces in the XML file. If those parameters are not specified in the XML file, the module parameters of the OSPF module are used instead.
- <Area> - defines an area in the network.
- @id - Mandatory attribute containing the area ID in dotted decimal notation. The backbone is '0.0.0.0'. (NOTE: This is not an IP address though it looks like one.)
- <AddressRange> - Describes an address range of an OSPF area.
- @address - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1)
- @mask - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1)
- @status - Decides whether an address range will be advertised in Summary LSAs. (Advertise or DoNotAdvertise)
- <Stub> - Any OSPF area (except the backbone) can be configured as a stub area.
- @defaultCost - A required attribute that defines the default route cost (>=0 and <1000) advertised for the area.
- <Router> - Describes an OSPF router with its interfaces. Interface 'ifName' and 'toward' values must be unique within the same router and only one of them must be specified. A router is identified by its Router ID, which is given as an IPv4 address (but isn't necessarily one). It may contain various child elements.
- @name - A required string containing a node path specifying the router to which this configuration belongs to.
- @RFC1583Compatible - optional true or false value (defined in RFC 3101)
- @DistributeDefaultRoute - optional true or false value (distribute the default route, if exists, using AS-External LSA)
- <PointToPointInterface> - Describes the parameters of a point-to-point interface. It is identified in the router by its ifName value, or name of toward module.
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "Area1.Router2"
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000)
- @retransmissionInterval - An optional integer
- @interfaceTransmissionDelay - An optional integer
- @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType)
- @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE
- <BroadcastInterface> - Describes the parameters of a broadcast interface. It is identified in the router by its ifName value, or name of toward module. HelloInterval and RouterDeadInterval must be the same for all router interfaces attached to the same network.
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "Area1.Router2"
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000)
- @retransmissionInterval - An optional integer
- @interfaceTransmissionDelay - An optional integer
- @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType)
- @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE
- @routerPriority - Optional integer specifying the priority in DR/BDR election. Set to 0 to exclude the router from the election.
- <PointToMultiPointInterface> - Describes the parameters of a point-to-multipoint interface. It is identified in the router by its ifName value, or name of toward module. HelloInterval and RouterDeadInterval must be the same for all router interfaces attached to the same network.
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "Area1.Router2"
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000)
- @retransmissionInterval - An optional integer
- @interfaceTransmissionDelay - An optional integer
- @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType)
- @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE
- <PointToMultiPointNeighborList>
- <PointToMultiPointNeighbor> - the content of the element is a string resolvable to an IPv4 address
- <HostInterface>
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "Area1.Router2"
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @attachedHost - IPv4 address of attached host
- @linkCost - An optional attribute specifying the associated cost (>=0 and <1000)
- <LoopbackInterface>
- @ifName - A unique name of the loopback interface (e.g. lo1)
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @linkCost - An optional attribute specifying the associated cost (>=0 and <1000)
- <NBMAInterface>
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "Area1.Router2"
- @areaID - An optional attribute containing the area ID in dotted decimal notation
- @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000)
- @retransmissionInterval - An optional integer
- @interfaceTransmissionDelay - An optional integer
- @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType)
- @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE
- @routerPriority - Optional integer specifying the priority in DR/BDR election. Set to 0 to exclude the router from the election.
- @pollInterval - Optional integer that specifies the length of time, in seconds, between OSPF packets that the router send before adjacency is established with a neighbor
- <NBMANeighborList>
- <NBMANeighbor>
- @networkInterfaceAddress - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1)
- @neighborPriority - neighbor's priority in the DR/BDR election process.
- <ExternalInterface>
- @ifName - A unique name of the interface (e.g. eth0) or ...
- @toward - a string containing a node path, for example "R2"
- @advertisedExternalNetworkAddress - Network address of the external network
- @advertisedExternalNetworkMask - Network mask of the external network
- @externalInterfaceOutputCost - The associated cost to reach the external network
- @externalInterfaceOutputType - Type1 (no external metric) or Type2 (external metric)
- @forwardingAddress - Optional (set 0.0.0.0 by default)
- @externalRouteTag - Optional (set 0 by default)
- <VirtualLink>
- @endPointRouterID - the router ID of the endpoint of the virtual link (required)
- @transitAreaID - the ID of the area which is used for tansit
- @retransmissionInterval - An optional integer
- @interfaceTransmissionDelay - An optional integer
- @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network
- @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType)
- @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
interfaceTableModule | string | ||
routingTableModule | string | ||
crcMode | string | "declared" | |
startupTime | double | 0s |
delay before starting OSPF |
ospfConfig | xml | xml(" |
xml containing the full OSPF AS configuration |
routerPriority | int | 1 |
Priority in DR/BDR election (Specify 0 to exclude the router from the election) |
areaID | string | "0.0.0.0" | |
RFC1583Compatible | bool | false |
if 'false', prune the set of routing table entries for the ASBR (RFC 3101) |
DistributeDefaultRoute | bool | false |
distribute the default route (if exists) using AS-External LSA |
helloInterval | int | 10s |
specifies the time in seconds between hello packets that the other router sends on an interface |
pollInterval | int | 120s |
specifies the length of time, in seconds, between OSPF packets that the router send before adjacency is established with a neighbor |
routerDeadInterval | int | 40s |
the interval during which at least one hello packet must be received from a neighbor before the router declares that neighbor as down |
retransmissionInterval | int | 5s |
The time between OSPF LSA retransmissions for adjacencies that belongs to the interface |
interfaceTransmissionDelay | int | 1s |
The number of seconds required to transmit a link state update packet. Valid values are 1 to 65535 |
interfaceMode | string | "Active" |
NoOSPF: the interface is not advertized by OSPF Passive: the interface is advertised, but no OSPF message is send out |
referenceBandwidth | int | 1e8bps |
reference bandwidth for cost calculation |
interfaceOutputCost | int | 0 |
cost of link on the interface (1-1000), 0 means use reference bandwidth |
externalInterfaceOutputCost | int | 1 |
cost of link (1-1000) |
externalInterfaceOutputType | string | "Type2" |
Type1|Type2 |
forwardingAddress | string | "0.0.0.0" | |
linkCost | int | 1 |
cost of link (1-1000) for HostInterface and LoopbackInterface only |
authenticationType | string | "NullType" | |
authenticationKey | string | "0x00" |
0xnn..nn |
Properties
Name | Value | Description |
---|---|---|
display | i=block/network2 | |
selfMessageKinds | inet::ospfv2::Ospfv2TimerType |
Gates
Name | Direction | Size | Description |
---|---|---|---|
ipIn | input | ||
ipOut | output |
Scheduled messages (observed)
msg | kind | ctrl | tags | msgname | context |
---|---|---|---|---|---|
omnetpp::cMessage | 0 (Ospfv2TimerType::INTERFACE_HELLO_TIMER) | Interface::InterfaceHelloTimer | filled | ||
omnetpp::cMessage | 1 (Ospfv2TimerType::INTERFACE_WAIT_TIMER) | Interface::InterfaceWaitTimer | filled | ||
omnetpp::cMessage | 3 (Ospfv2TimerType::INTERFACE_ACKNOWLEDGEMENT_TIMER) | Interface::InterfaceAcknowledgementTimer | filled | ||
omnetpp::cMessage | 4 (Ospfv2TimerType::NEIGHBOR_INACTIVITY_TIMER) | Neighbor::NeighborInactivityTimer | filled | ||
omnetpp::cMessage | 6 (Ospfv2TimerType::NEIGHBOR_DD_RETRANSMISSION_TIMER) | Neighbor::NeighborDDRetransmissionTimer | filled | ||
omnetpp::cMessage | 7 (Ospfv2TimerType::NEIGHBOR_UPDATE_RETRANSMISSION_TIMER) | Neighbor::Neighbor::NeighborUpdateRetransmissionTimer | filled | ||
omnetpp::cMessage | 8 (Ospfv2TimerType::NEIGHBOR_REQUEST_RETRANSMISSION_TIMER) | Neighbor::NeighborRequestRetransmissionTimer | filled | ||
omnetpp::cMessage | 9 (Ospfv2TimerType::DATABASE_AGE_TIMER) | Router::DatabaseAgeTimer | filled |
Direct method calls (observed)
call to | function | info |
---|---|---|
MessageDispatcher | inet::MessageDispatcher::arrived | arrived |
MessageDispatcher | inet::MessageDispatcher::handleRegisterProtocol | handleRegisterProtocol |
InterfaceTable | inet::InterfaceTable::findInterfaceByName | findInterfaceByName |
InterfaceTable | inet::InterfaceTable::interfaceChanged | interfaceChanged |
Igmpv2 | inet::Igmpv2::receiveSignal | ipv4MulticastGroupJoined |
Ipv4RoutingTable | inet::Ipv4RoutingTable::addRoute | addRoute(...) |
Ipv4RoutingTable | inet::Ipv4RoutingTable::deleteRoute | deleteRoute(...) |
Called methods (observed)
function | info | call from |
---|---|---|
inet::ospfv2::Ospfv2::checkExternalRoute | checkExternalRoute | Bgp |
inet::ospfv2::Ospfv2::handleOperationStage | handleOperationStage | ScenarioManager |
inet::ospfv2::Ospfv2::insertExternalRoute | insertExternalRoute | Bgp |
inet::ospfv2::Ospfv2::receiveSignal | interfaceStateChanged | InterfaceTable |
Incoming messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
ipIn | Packet | 0 | Ipv4 | DispatchProtocolReq, DscpInd, EcnInd, HopLimitInd, InterfaceInd, L3AddressInd, NetworkProtocolInd, PacketProtocolTag, TosInd, MacAddressInd? |
Outgoing messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
ipOut | Packet | 0 | Ipv4 | DispatchProtocolReq, HopLimitReq, InterfaceReq, L3AddressReq, PacketProtocolTag |
Packet operations (observed)
chunkType | packetAction |
---|---|
Ospfv2DatabaseDescriptionPacket | insertAtBack, peekAtFront |
Ospfv2HelloPacket | insertAtBack, peekAtFront |
Ospfv2LinkStateAcknowledgementPacket | insertAtBack, peekAtFront |
Ospfv2LinkStateRequestPacket | insertAtBack, peekAtFront |
Ospfv2LinkStateUpdatePacket | insertAtBack, peekAtFront |
Ospfv2Packet | peekAtFront |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
DispatchProtocolReq | addTagIfAbsent |
HopLimitReq | addTagIfAbsent |
InterfaceInd | getTag |
InterfaceReq | addTagIfAbsent |
L3AddressInd | getTag |
L3AddressReq | addTagIfAbsent |
PacketProtocolTag | addTagIfAbsent, getTag |
Tagging operations (observed)
tagType | tagAction |
---|---|
inet::Ipv4InterfaceData | findTag, getTag, getTagForUpdate |
Source code
// // Implements the OSPFv2 routing protocol. // // The ospfConfig parameter can specify an XML file describing the // configuration of all OSPF routers and their interfaces in the network. // // The XML configuration must contain exactly one <OSPFASConfig> root element which // describes an OSPF autonomous system with its areas and its routers. The // Area IDs, Router IDs and area Address Ranges must be unique within the // autonomous system. Various OSPF parameters can be specified for the network // interfaces in the XML file. If those parameters are not specified in the XML file, // the module parameters of the OSPF module are used instead. // // - <Area> - defines an area in the network. // - @id - Mandatory attribute containing the area ID in dotted decimal notation. // The backbone is '0.0.0.0'. (NOTE: This is not an IP address though it looks like one.) // - <AddressRange> - Describes an address range of an OSPF area. // - @address - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1) // - @mask - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1) // - @status - Decides whether an address range will be advertised in Summary LSAs. (Advertise or DoNotAdvertise) // - <Stub> - Any OSPF area (except the backbone) can be configured as a stub area. // - @defaultCost - A required attribute that defines the default route cost (>=0 and <1000) advertised for the area. // // - <Router> - Describes an OSPF router with its interfaces. Interface 'ifName' and 'toward' values // must be unique within the same router and only one of them must be specified. A router is // identified by its Router ID, which is given as an IPv4 address (but isn't necessarily one). // It may contain various child elements. // - @name - A required string containing a node path specifying the router to which this configuration belongs to. // - @RFC1583Compatible - optional true or false value (defined in RFC 3101) // - @DistributeDefaultRoute - optional true or false value (distribute the default route, if exists, using AS-External LSA) // // - <PointToPointInterface> - Describes the parameters of a point-to-point interface. It is identified // in the router by its ifName value, or name of toward module. // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "Area1.Router2" // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000) // - @retransmissionInterval - An optional integer // - @interfaceTransmissionDelay - An optional integer // - @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType) // - @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE // // - <BroadcastInterface> - Describes the parameters of a broadcast interface. It is identified in // the router by its ifName value, or name of toward module. HelloInterval and RouterDeadInterval // must be the same for all router interfaces attached to the same network. // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "Area1.Router2" // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000) // - @retransmissionInterval - An optional integer // - @interfaceTransmissionDelay - An optional integer // - @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType) // - @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE // - @routerPriority - Optional integer specifying the priority in DR/BDR election. Set to 0 to exclude the router from the election. // // - <PointToMultiPointInterface> - Describes the parameters of a point-to-multipoint interface. It is // identified in the router by its ifName value, or name of toward module. // HelloInterval and RouterDeadInterval must be the same for all router // interfaces attached to the same network. // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "Area1.Router2" // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000) // - @retransmissionInterval - An optional integer // - @interfaceTransmissionDelay - An optional integer // - @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType) // - @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE // - <PointToMultiPointNeighborList> // - <PointToMultiPointNeighbor> - the content of the element is a string resolvable to an IPv4 address // // - <HostInterface> // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "Area1.Router2" // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @attachedHost - IPv4 address of attached host // - @linkCost - An optional attribute specifying the associated cost (>=0 and <1000) // // - <LoopbackInterface> // - @ifName - A unique name of the loopback interface (e.g. lo1) // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @linkCost - An optional attribute specifying the associated cost (>=0 and <1000) // // - <NBMAInterface> // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "Area1.Router2" // - @areaID - An optional attribute containing the area ID in dotted decimal notation // - @interfaceOutputCost - An optional attribute specifying the associated cost (>=0 and <1000) // - @retransmissionInterval - An optional integer // - @interfaceTransmissionDelay - An optional integer // - @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType) // - @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE // - @routerPriority - Optional integer specifying the priority in DR/BDR election. Set to 0 to exclude the router from the election. // - @pollInterval - Optional integer that specifies the length of time, in seconds, between // OSPF packets that the router send before adjacency is established with a neighbor // - <NBMANeighborList> // - <NBMANeighbor> // - @networkInterfaceAddress - A string which is resolvable by IPvXAddressResolver class. (e.g. Area1.R1>Area1.N1) // - @neighborPriority - neighbor's priority in the DR/BDR election process. // // - <ExternalInterface> // - @ifName - A unique name of the interface (e.g. eth0) or ... // - @toward - a string containing a node path, for example "R2" // - @advertisedExternalNetworkAddress - Network address of the external network // - @advertisedExternalNetworkMask - Network mask of the external network // - @externalInterfaceOutputCost - The associated cost to reach the external network // - @externalInterfaceOutputType - Type1 (no external metric) or Type2 (external metric) // - @forwardingAddress - Optional (set 0.0.0.0 by default) // - @externalRouteTag - Optional (set 0 by default) // // - <VirtualLink> // - @endPointRouterID - the router ID of the endpoint of the virtual link (required) // - @transitAreaID - the ID of the area which is used for tansit // - @retransmissionInterval - An optional integer // - @interfaceTransmissionDelay - An optional integer // - @helloInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @routerDeadInterval - An optional integer that must be the same for all router interfaces attached to the same network // - @authenticationType - Optional OSPF packet authentication protocol (SimplePasswordType | CrytographicType | NullType) // - @authenticationKey - Optional 8 byte hexadecimal value e.g. 0x5D8ABDAEDFCB8BEE // simple Ospfv2 like IOspf { parameters: string interfaceTableModule; string routingTableModule; string crcMode @enum("declared","computed") = default("declared"); volatile double startupTime @unit(s) = default(0s); // delay before starting OSPF // xml containing the full OSPF AS configuration xml ospfConfig = default(xml("<OSPFASConfig> \ <Router name='**' RFC1583Compatible='true'> \ <BroadcastInterface ifName='eth[*]' areaID='0.0.0.0' interfaceOutputCost='0' /> \ <PointToPointInterface ifName='ppp[*]' areaID='0.0.0.0' interfaceOutputCost='0' /> \ </Router> </OSPFASConfig>")); // default values for attributes of interface xml entries: int routerPriority = default(1); // Priority in DR/BDR election (Specify 0 to exclude the router from the election) string areaID = default("0.0.0.0"); bool RFC1583Compatible = default(false); // if 'false', prune the set of routing table entries for the ASBR (RFC 3101) bool DistributeDefaultRoute = default(false); // distribute the default route (if exists) using AS-External LSA int helloInterval @unit(s) = default(10s); // specifies the time in seconds between hello packets that the other router sends on an interface int pollInterval @unit(s) = default(120s); // specifies the length of time, in seconds, between OSPF packets that the router send before adjacency is established with a neighbor int routerDeadInterval @unit(s) = default(40s); // the interval during which at least one hello packet must be received from a neighbor before the router declares that neighbor as down int retransmissionInterval @unit(s) = default(5s); // The time between OSPF LSA retransmissions for adjacencies that belongs to the interface int interfaceTransmissionDelay @unit(s) = default(1s); // The number of seconds required to transmit a link state update packet. Valid values are 1 to 65535 string interfaceMode @enum("Active","Passive","NoOSPF") = default("Active"); // NoOSPF: the interface is not advertized by OSPF // Passive: the interface is advertised, but no OSPF message is send out int referenceBandwidth @unit(bps) = default(1e8bps); // reference bandwidth for cost calculation int interfaceOutputCost = default(0); // cost of link on the interface (1-1000), 0 means use reference bandwidth int externalInterfaceOutputCost = default(1); // cost of link (1-1000) string externalInterfaceOutputType = default("Type2"); // Type1|Type2 string forwardingAddress = default("0.0.0.0"); int linkCost = default(1); // cost of link (1-1000) for HostInterface and LoopbackInterface only string authenticationType @enum("SimplePasswordType","CrytographicType","NullType") = default("NullType"); string authenticationKey = default("0x00"); // 0xnn..nn @display("i=block/network2"); @selfMessageKinds(inet::ospfv2::Ospfv2TimerType); gates: input ipIn @labels(Ipv4ControlInfo/up); output ipOut @labels(Ipv4ControlInfo/down); }File: src/inet/routing/ospfv2/Ospfv2.ned