Client

Package: inet.examples.wireless.ratecontrol

Client

compound module

(no description)

InterfaceTable EtherAppClient Ieee80211Interface RectangleMobility

Usage diagram

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

Used in

Name Type Description
RateControlTest network (no description)

Properties

Name Value Description
display i=device/wifilaptop
networkNode

Gates

Name Direction Size Description
radioIn input

Unassigned submodule parameters

Name Type Default value Description
interfaceTable.displayAddresses bool false

whether to display IP addresses on links

cli.interfaceTableModule string
cli.destAddress string ""

destination MAC address, or module path name of destination station; empty means off

cli.startTime double this.sendInterval

time of sending the first request

cli.stopTime double -1s

time of finishing sending, negative values mean forever

cli.localSAP int 0xf0

local service access point

cli.remoteSAP int 0xf1

remote service access point

cli.sendInterval double uniform(0s,1s)

interval between sending requests

cli.reqLength int 100B

length of request packets

cli.respLength int 1KiB

length of response packets

cli.stopOperationExtraTime double -1s

extra time after lifecycle stop operation finished

cli.stopOperationTimeout double 2s

timeout value for lifecycle stop operation

wlan.pcapRecorder.verbose bool true

whether to log packets on the module output

wlan.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

wlan.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

wlan.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wlan.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wlan.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

wlan.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

wlan.pcapRecorder.helpers string ""

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

wlan.pcapRecorder.alwaysFlush bool false

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

wlan.pcapRecorder.displayStringTextFormat string "rec: %n pks"
wlan.mgmt.macModule string

The path to the MAC module

mobility.subjectModule string "^"

module path which determines the subject module, the motion of which this mobility model describes, the default value is the parent module

mobility.coordinateSystemModule string ""

module path of the geographic coordinate system module

mobility.displayStringTextFormat string "p: %p\nv: %v"

format string for the mobility module's display string text

mobility.updateDisplayString bool true

enables continuous update of the subject module's position via modifying its display string

mobility.constraintAreaMinX double -inf m

min x position of the constraint area, unconstrained by default (negative infinity)

mobility.constraintAreaMinY double -inf m

min y position of the constraint area, unconstrained by default (negative infinity)

mobility.constraintAreaMinZ double -inf m

min z position of the constraint area, unconstrained by default (negative infinity)

mobility.constraintAreaMaxX double inf m

max x position of the constraint area, unconstrained by default (positive infinity)

mobility.constraintAreaMaxY double inf m

max y position of the constraint area, unconstrained by default (positive infinity)

mobility.constraintAreaMaxZ double inf m

max z position of the constraint area, unconstrained by default (positive infinity)

mobility.updateInterval double 0.1s

the simulation time interval used to regularly signal mobility state changes and update the display

mobility.faceForward bool true
mobility.startPos double

in range [0.0,4.0): topleft=0, topright=1, bottomright=2, bottomleft=3

mobility.speed double

speed of the host

Source code

module Client
{
    parameters:
        @display("i=device/wifilaptop");
        @networkNode();
        *.interfaceTableModule = default(absPath(".interfaceTable"));
        wlan.radio.antenna.mobilityModule = default("^.^.^.mobility");
    gates:
        input radioIn @directIn;

    submodules:
        interfaceTable: InterfaceTable {
            @display("p=100,100;is=s");
        }
        cli: EtherAppClient {
            parameters:
                interface = "wlan";
                @display("p=300,100");
        }
        wlan: Ieee80211Interface {
            parameters:
                @display("p=250,200;q=queue");
                mgmt.typename = "Ieee80211MgmtAdhoc";
                agent.typename = "";
        }
        mobility: RectangleMobility {
            parameters:
                @display("p=100,200;is=s");
        }
    connections allowunconnected:
        wlan.radioIn <-- radioIn;
        cli.out --> wlan.upperLayerIn;
}

File: examples/wireless/ratecontrol/RateControlTest.ned