Network Lan80211

Package: inet.examples.wireless.lan80211
File: examples/wireless/lan80211/Lan80211.ned

(no description)

WirelessHostSimplified WirelessAPSimplified ChannelControl FlatNetworkConfigurator

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
numHosts int
playgroundSizeX int
playgroundSizeY int

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
host.tcp.advertisedWindow int 14*this.mss

in bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size)

host.tcp.delayedAcksEnabled bool false

delayed ACK algorithm (RFC 1122) enabled/disabled

host.tcp.nagleEnabled bool true

Nagle's algorithm (RFC 896) enabled/disabled

host.tcp.limitedTransmitEnabled bool false

Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl)

host.tcp.increasedIWEnabled bool false

Increased Initial Window (RFC 3390) enabled/disabled

host.tcp.sackSupport bool false

Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it)

host.tcp.windowScalingSupport bool false

Window Scale (RFC 1323) support (header option) (WS will be enabled for a connection if both endpoints support it)

host.tcp.timestampSupport bool false

Timestamps (RFC 1323) support (header option) (TS will be enabled for a connection if both endpoints support it)

host.tcp.mss int 536

Maximum Segment Size (RFC 793) (header option)

host.tcp.tcpAlgorithmClass string "TCPReno"

TCPReno/TCPTahoe/TCPNewReno/TCPNoCongestionControl/DumbTCP

host.tcp.sendQueueClass string "TCPVirtualDataSendQueue"

TCPVirtualDataSendQueue/TCPMsgBasedSendQueue

host.tcp.receiveQueueClass string "TCPVirtualDataRcvQueue"

TCPVirtualDataRcvQueue/TCPMsgBasedRcvQueue

host.tcp.recordStats bool true

recording of seqNum etc. into output vectors enabled/disabled

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 double 56B

of ping payload, in bytes

host.pingApp.interval double 1s

time to wait between pings (can be random)

host.pingApp.hopLimit double 32

TTL or hopLimit for IP packets

host.pingApp.count double 0

stop after count ping requests, 0 means continuously

host.pingApp.startTime double uniform(0s,this.interval)

send first ping at startTime

host.pingApp.stopTime double 0s

send no pings after stopTime, 0 means forever

host.pingApp.printPing bool true

dump on stdout

host.networkLayer.ip.procDelay double 0s
host.networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

host.networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

host.networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

host.ppp.ppp.mtu int 4470
host.eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

host.eth.mac.address string "auto"

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.eth.mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

host.eth.mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

host.eth.mac.mtu int 1500
host.wlan.mgmt.accessPointAddress string

MAC address of associate AP

host.wlan.mgmt.frameCapacity int 100
host.wlan.mac.address string "auto"

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 int

max queue length in frames; only used if queueModule==""

host.wlan.mac.bitrate double
host.wlan.mac.rtsThresholdBytes int 2346B

longer messages will be sent using RTS/CTS

host.wlan.mac.retryLimit int -1

maximum number of retries per message, -1 means default

host.wlan.mac.cwMinData int -1

contention window for normal data frames, -1 means default

host.wlan.mac.cwMinBroadcast int -1

contention window for broadcast messages, -1 means default

host.wlan.mac.mtu int 1500
host.wlan.radio.channelNumber int 0

channel identifier

host.wlan.radio.transmitterPower double 20mW

power used for transmission of messages (in mW)

host.wlan.radio.bitrate double

(in bits/s)

host.wlan.radio.thermalNoise double -110dBm

base noise level (dBm)

host.wlan.radio.pathLossAlpha double 2

used by the path loss calculation

host.wlan.radio.shadowingDeviation double 0dB

used by the shadowing model calculation

host.wlan.radio.snirThreshold double 4dB

if signal-noise ratio is below this threshold, frame is considered noise (in dB)

host.wlan.radio.sensitivity double

received signals with power below sensitivity are ignored

ap.wlan.mgmt.frameCapacity int 100
ap.wlan.mac.address string "auto"

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

ap.wlan.mac.maxQueueSize int

max queue length in frames; only used if queueModule==""

ap.wlan.mac.bitrate double
ap.wlan.mac.rtsThresholdBytes int 2346B

longer messages will be sent using RTS/CTS

ap.wlan.mac.retryLimit int -1

maximum number of retries per message, -1 means default

ap.wlan.mac.cwMinData int -1

contention window for normal data frames, -1 means default

ap.wlan.mac.cwMinBroadcast int -1

contention window for broadcast messages, -1 means default

ap.wlan.mac.mtu int 1500
ap.wlan.radio.channelNumber int 0

channel identifier

ap.wlan.radio.transmitterPower double 20mW

power used for transmission of messages (in mW)

ap.wlan.radio.bitrate double

(in bits/s)

ap.wlan.radio.thermalNoise double -110dBm

base noise level (dBm)

ap.wlan.radio.pathLossAlpha double 2

used by the path loss calculation

ap.wlan.radio.shadowingDeviation double 0dB

used by the shadowing model calculation

ap.wlan.radio.snirThreshold double 4dB

if signal-noise ratio is below this threshold, frame is considered noise (in dB)

ap.wlan.radio.sensitivity double

received signals with power below sensitivity are ignored

ap.mobility.x double -1

start x coordinate (-1 = display string position, or random if it's missing)

ap.mobility.y double -1

start y coordinate (-1 = display string position, or random if it's missing)

channelcontrol.coreDebug bool false

debug switch for core framework

channelcontrol.pMax double 20mW

maximum sending power used for this network (in mW)

channelcontrol.sat double -110dBm

signal attenuation threshold (in dBm)

channelcontrol.alpha double 2

path loss coefficient

channelcontrol.carrierFrequency double 2.4GHz

carrier frequency of the channel (in Hz)

Source code:

network Lan80211
{
    parameters:
        int numHosts;
        int playgroundSizeX;
        int playgroundSizeY;
    submodules:
        host[numHosts]: WirelessHostSimplified {
            @display("r=,,#707070");
        }
        ap: WirelessAPSimplified {
            @display("p=213,174;r=,,#707070");
        }
        channelcontrol: ChannelControl {
            playgroundSizeX = playgroundSizeX;
            playgroundSizeY = playgroundSizeY;
            numChannels = 2;
            @display("p=61,46");
        }
        configurator: FlatNetworkConfigurator {
            networkAddress = "145.236.0.0";
            netmask = "255.255.0.0";
            @display("p=140,50");
        }
}