Compound Module Net80211

File: Examples/MobileAdhoc/80211/Net80211.ned

(no description)

host: MobileHost channelcontrol: ChannelControl configurator: FlatNetworkConfigurator

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

Contains the following modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

ChannelControl

ChannelControl has exactly one instance in every network model that contains mobile or wireless nodes. This module gets informed about the location and movement of nodes, and determines which nodes are within communication or interference distance. This info is then used by the radio interfaces of nodes at transmissions.

FlatNetworkConfigurator

Configures IP addresses and routing tables for a "flat" network, "flat" meaning that all hosts and routers will have the same network address and will only differ in the host part.

MobileHost

Models a mobile host with a wireless (802.11b) card. This module is a WirelessHost less the PPP and Ethernet interfaces, plus mobility support (BasicMobility). It is intended mainly for mobile ad-hoc networks.

Networks:

net80211 (no description)

Parameters:

Name Type Description
numHosts numeric const
playgroundSizeX numeric const
playgroundSizeY numeric const

Unassigned submodule parameters:

Name Type Description
host[*].numTcpApps numeric const
host[*].numUdpApps numeric const
host[*].tcpAppType string
host[*].udpAppType string
host[*].IPForward bool
host[*].routingFile string
host[*].mobilityType string
host[*].tcp.mss numeric const

maximum segment size

host[*].tcp.advertisedWindow numeric const

in bytes (Note: normally, NIC queues should be at least this size)

host[*].tcp.tcpAlgorithmClass string

TCPTahoe/TCPReno/TCPNoCongestionControl/DumbTCP

host[*].tcp.sendQueueClass string

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

host[*].tcp.receiveQueueClass string

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

host[*].tcp.recordStats bool

recording seqNum etc. into output vectors on/off

host[*].pingApp.destAddr string

destination IP or IPv6 address

host[*].pingApp.srcAddr string

source IP or IPv6 address (useful with multi-homing)

host[*].pingApp.packetSize numeric const

of ping payload, in bytes

host[*].pingApp.interval numeric

time to wait between pings (can be random)

host[*].pingApp.hopLimit numeric const

TTL or hopLimit for IP packets

host[*].pingApp.count numeric const

stop after count ping requests, 0 means continuously

host[*].pingApp.startTime numeric const

send first ping at startTime

host[*].pingApp.stopTime numeric const

send no pings after stopTime, 0 means forever

host[*].pingApp.printPing bool

dump on stdout

host[*].networkLayer.ip.procDelay numeric const
host[*].networkLayer.arp.retryTimeout numeric

number seconds ARP waits between retries to resolve an IP address

host[*].networkLayer.arp.retryCount numeric

number of times ARP will attempt to resolve an IP address

host[*].networkLayer.arp.cacheTimeout numeric

number seconds unused entries in the cache will time out

host[*].wlan.mac.address string

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

host[*].wlan.mac.maxQueueSize numeric const
host[*].wlan.mac.rtsCts bool
host[*].wlan.mac.bitrate numeric const
host[*].wlan.mac.broadcastBackoff numeric const
host[*].wlan.decider.debug bool

debug switch

host[*].wlan.decider.snirThreshold numeric const
host[*].wlan.decider.bitrate numeric const
host[*].wlan.snrEval.debug bool

debug switch

host[*].wlan.snrEval.transmitterPower numeric
host[*].wlan.snrEval.bitrate numeric
host[*].wlan.snrEval.headerLength numeric const
host[*].wlan.snrEval.carrierFrequency numeric
host[*].wlan.snrEval.thermalNoise numeric
host[*].wlan.snrEval.pathLossAlpha numeric
host[*].wlan.snrEval.sensitivity numeric
channelcontrol.coreDebug numeric const

debug switch for core framework

channelcontrol.pMax numeric const

maximum sending power used for this network (in mW)

channelcontrol.sat numeric const

signal attenuation threshold (in dBm)

channelcontrol.alpha numeric const

path loss coefficient

channelcontrol.carrierFrequency numeric const

carrier frequency of the channel (in Hz)

Source code:

module Net80211
    parameters:
        numHosts: numeric const,
        playgroundSizeX: numeric const,
        playgroundSizeY: numeric const;
    submodules:
        host: MobileHost[numHosts];
            display: "i=device/pocketpc_s;r=,,#707070";
        channelcontrol: ChannelControl;
            parameters:
                playgroundSizeX = playgroundSizeX,
                playgroundSizeY = playgroundSizeY;
            display: "p=60,50;i=misc/sun";
        configurator: FlatNetworkConfigurator;
            parameters:
                moduleTypes = "MobileHost",
                nonIPModuleTypes = "",
                networkAddress = "145.236.0.0",
                netmask = "255.255.0.0";
            display: "p=140,50;i=block/cogwheel_s";
    connections nocheck:
endmodule