OneNetArea

Package: inet.examples.ospfv2.areas

OneNetArea

compound module

(no description)

StandardHost EthernetSwitch OspfRouter OspfRouter

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Used in

Name Type Description
OSPF_AreaTest network (no description)

Properties

Name Value Description
display p=10,10;b=404,108

Gates

Name Direction Size Description
ethg [ ] inout

Unassigned submodule parameters

Name Type Default value Description
H3.status.initialStatus string "UP"

TODO @signal, @statistic

H3.pcapRecorder.verbose bool true

whether to log packets on the module output

H3.pcapRecorder.pcapFile string ""

the PCAP file to be written

H3.pcapRecorder.fileFormat string "pcapng"
H3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

H3.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

H3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H3.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

H3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

H3.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

H3.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

H3.pcapRecorder.displayStringTextFormat string "rec: %n pks"
H3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

H3.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.cb.forwardServiceRegistration bool true
H3.cb.forwardProtocolRegistration bool true
H3.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.bl.forwardServiceRegistration bool true
H3.bl.forwardProtocolRegistration bool true
H3.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.li.forwardServiceRegistration bool true
H3.li.forwardProtocolRegistration bool true
H3.eth.bitrate double
H3.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.nl.forwardServiceRegistration bool true
H3.nl.forwardProtocolRegistration bool true
H3.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.tn.forwardServiceRegistration bool true
H3.tn.forwardProtocolRegistration bool true
H3.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

H3.at.forwardServiceRegistration bool true
H3.at.forwardProtocolRegistration bool true
N3.macTable.agingTime double
N3.macTable.forwardingTableFile string
N3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

N3.l2NodeConfigurator.interfaceTableModule string
N3.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

N3.status.initialStatus string "UP"

TODO @signal, @statistic

N3.pcapRecorder.verbose bool true

whether to log packets on the module output

N3.pcapRecorder.pcapFile string ""

the PCAP file to be written

N3.pcapRecorder.fileFormat string "pcapng"
N3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

N3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

N3.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

N3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

N3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

N3.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

N3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

N3.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

N3.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

N3.pcapRecorder.displayStringTextFormat string "rec: %n pks"
N3.stp.helloTime double
N3.stp.forwardDelay double
N3.stp.maxAge double
N3.stp.bridgePriority int
N3.stp.visualize bool
N3.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

N3.sc.forwardServiceRegistration bool true
N3.sc.forwardProtocolRegistration bool true
N3.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

N3.cb.forwardServiceRegistration bool true
N3.cb.forwardProtocolRegistration bool true
N3.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

N3.bl.forwardServiceRegistration bool true
N3.bl.forwardProtocolRegistration bool true
N3.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

N3.li.forwardServiceRegistration bool true
N3.li.forwardProtocolRegistration bool true
N3.cutthrough.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

N3.cutthrough.forwardServiceRegistration bool true
N3.cutthrough.forwardProtocolRegistration bool true
N3.eth.bitrate double
R5.status.initialStatus string "UP"

TODO @signal, @statistic

R5.pcapRecorder.verbose bool true

whether to log packets on the module output

R5.pcapRecorder.pcapFile string ""

the PCAP file to be written

R5.pcapRecorder.fileFormat string "pcapng"
R5.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

R5.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

R5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R5.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

R5.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

R5.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

R5.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

R5.pcapRecorder.displayStringTextFormat string "rec: %n pks"
R5.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

R5.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.cb.forwardServiceRegistration bool true
R5.cb.forwardProtocolRegistration bool true
R5.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.bl.forwardServiceRegistration bool true
R5.bl.forwardProtocolRegistration bool true
R5.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.li.forwardServiceRegistration bool true
R5.li.forwardProtocolRegistration bool true
R5.eth.bitrate double
R5.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.nl.forwardServiceRegistration bool true
R5.nl.forwardProtocolRegistration bool true
R5.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.tn.forwardServiceRegistration bool true
R5.tn.forwardProtocolRegistration bool true
R5.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R5.at.forwardServiceRegistration bool true
R5.at.forwardProtocolRegistration bool true
R5.bgp.interfaceTableModule string

The path to the InterfaceTable module

R5.bgp.routingTableModule string
R5.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
R4.status.initialStatus string "UP"

TODO @signal, @statistic

R4.pcapRecorder.verbose bool true

whether to log packets on the module output

R4.pcapRecorder.pcapFile string ""

the PCAP file to be written

R4.pcapRecorder.fileFormat string "pcapng"
R4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

R4.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

R4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R4.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

R4.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

R4.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

R4.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

R4.pcapRecorder.displayStringTextFormat string "rec: %n pks"
R4.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

R4.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.cb.forwardServiceRegistration bool true
R4.cb.forwardProtocolRegistration bool true
R4.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.bl.forwardServiceRegistration bool true
R4.bl.forwardProtocolRegistration bool true
R4.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.li.forwardServiceRegistration bool true
R4.li.forwardProtocolRegistration bool true
R4.eth.bitrate double
R4.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.nl.forwardServiceRegistration bool true
R4.nl.forwardProtocolRegistration bool true
R4.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.tn.forwardServiceRegistration bool true
R4.tn.forwardProtocolRegistration bool true
R4.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

R4.at.forwardServiceRegistration bool true
R4.at.forwardProtocolRegistration bool true
R4.bgp.interfaceTableModule string

The path to the InterfaceTable module

R4.bgp.routingTableModule string
R4.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""

Source code

module OneNetArea
{
    parameters:
        @display("p=10,10;b=404,108");
    gates:
        inout ethg[];
    types:
        channel C extends DatarateChannel
        {
            delay = 0.1us;
            datarate = 100Mbps;
        }
    submodules:
        H3: StandardHost {
            parameters:
                @display("p=550,110;i=device/laptop");
            gates:
                ethg[1];
        }
        N3: EthernetSwitch {
            parameters:
                @display("p=400,110");
            gates:
                ethg[2];
        }
        R5: OspfRouter {
            parameters:
                @display("p=250,110");
            gates:
                ethg[2];
        }
        R4: OspfRouter {
            parameters:
                @display("p=100,110");
            gates:
                ethg[2];
        }
    connections:
        R4.ethg[0] <--> C <--> R5.ethg[1];
        R5.ethg[0] <--> C <--> N3.ethg[1];
        N3.ethg[0] <--> C <--> H3.ethg[0];

        // towards other areas
        ethg[0] <--> R4.ethg[1];
}

File: examples/ospfv2/areas/Area2.ned