Package: inet.examples.inet.ipv4largenet
IPv4SmallLAN
compound moduleSeveral hosts on a router; part of ~IPv4LargeNet.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Used in
| Name | Type | Description |
|---|---|---|
| IPv4LargeNet | network |
A large Ethernet LAN -- see model description |
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| h | int |
number of hosts on the router |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=old/cloud |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| ethg | inout |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| router.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| router.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| router.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| router.pcapRecorder.fileFormat | string | "pcapng" | |
| router.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| router.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| router.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| router.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| router.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| router.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| router.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| router.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| router.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| router.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| router.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| router.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.cb.forwardServiceRegistration | bool | true | |
| router.cb.forwardProtocolRegistration | bool | true | |
| router.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.bl.forwardServiceRegistration | bool | true | |
| router.bl.forwardProtocolRegistration | bool | true | |
| router.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.li.forwardServiceRegistration | bool | true | |
| router.li.forwardProtocolRegistration | bool | true | |
| router.eth.bitrate | double | ||
| router.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.nl.forwardServiceRegistration | bool | true | |
| router.nl.forwardProtocolRegistration | bool | true | |
| router.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.tn.forwardServiceRegistration | bool | true | |
| router.tn.forwardProtocolRegistration | bool | true | |
| router.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| router.at.forwardServiceRegistration | bool | true | |
| router.at.forwardProtocolRegistration | bool | true | |
| router.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| router.bgp.routingTableModule | string | ||
| router.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| host.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| host.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| host.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| host.pcapRecorder.fileFormat | string | "pcapng" | |
| host.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| host.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| host.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| host.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| host.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| host.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| host.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| host.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| host.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| host.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| host.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| host.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.cb.forwardServiceRegistration | bool | true | |
| host.cb.forwardProtocolRegistration | bool | true | |
| host.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.bl.forwardServiceRegistration | bool | true | |
| host.bl.forwardProtocolRegistration | bool | true | |
| host.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.li.forwardServiceRegistration | bool | true | |
| host.li.forwardProtocolRegistration | bool | true | |
| host.eth.bitrate | double | ||
| host.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.nl.forwardServiceRegistration | bool | true | |
| host.nl.forwardProtocolRegistration | bool | true | |
| host.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.tn.forwardServiceRegistration | bool | true | |
| host.tn.forwardProtocolRegistration | bool | true | |
| host.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| host.at.forwardServiceRegistration | bool | true | |
| host.at.forwardProtocolRegistration | bool | true |
Source code
// // Several hosts on a router; part of ~IPv4LargeNet. // module IPv4SmallLAN { parameters: int h; // number of hosts on the router @display("i=old/cloud"); gates: inout ethg; submodules: router: Router; host[h]: StandardHost; connections: for i=0..h-1 { router.ethg++ <--> cable <--> host[i].ethg++; } router.ethg++ <--> ethg; }File: examples/inet/ipv4largenet/IPv4LargeNet.ned