Package: inet.networklayer.common
SimpleNetworkLayer
compound moduleThis module provides a simple network layer.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
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 |
Properties
Name | Value | Description |
---|---|---|
display | i=block/fork |
Gates
Name | Direction | Size | Description |
---|---|---|---|
ifIn | input | ||
ifOut | output | ||
transportIn | input | ||
transportOut | output |
Unassigned submodule parameters
Name | Type | Default value | Description |
---|---|---|---|
up.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
up.forwardServiceRegistration | bool | true | |
up.forwardProtocolRegistration | bool | true | |
lp.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
lp.forwardServiceRegistration | bool | true | |
lp.forwardProtocolRegistration | bool | true |
Source code
// // This module provides a simple network layer. // module SimpleNetworkLayer like INetworkLayer { parameters: string interfaceTableModule; *.interfaceTableModule = default(absPath(this.interfaceTableModule)); @display("i=block/fork"); gates: input ifIn @labels(INetworkHeader); output ifOut @labels(INetworkHeader); input transportIn @labels(ITransportPacket/down); output transportOut @labels(ITransportPacket/up); submodules: echo: EchoProtocol { parameters: @display("p=450,100"); } up: MessageDispatcher { parameters: @display("p=300,200;b=480,5"); } arp: <default("")> like IArp if typename != "" { parameters: @display("p=150,300;q=pendingQueue"); } np: <> like INetworkProtocol { parameters: @display("p=300,300;q=queue"); } lp: MessageDispatcher { parameters: @display("p=300,400;b=480,5"); } connections allowunconnected: up.out++ --> { @display("m=n"); } --> transportOut; up.in++ <-- { @display("m=n"); } <-- transportIn; np.transportOut --> up.in++; np.transportIn <-- up.out++; up.out++ --> echo.ipIn; up.in++ <-- echo.ipOut; lp.out++ --> arp.ifIn if exists(arp); lp.in++ <-- arp.ifOut if exists(arp); lp.out++ --> np.queueIn; lp.in++ <-- np.queueOut; lp.in++ <-- { @display("m=s"); } <-- ifIn; lp.out++ --> { @display("m=s"); } --> ifOut; }File: src/inet/networklayer/common/SimpleNetworkLayer.ned