You are on page 1of 13

Compound Module StandardHost

Package: inet.nodes.inet File: src/nodes/inet/StandardHost.ned

IPv4 host with SCTP, TCP, UDP layers and applications. IP forwarding is disabled by default (see IPForward). Can be connected via ethernet interface to other nodes using the ethg gate. By default full-duplex connections are supported only (twisted pair). Set **.eth[*].typename="EthernetInterface" for a full/half-duplex CSMA/CD implementation (coaxial cable) By default contains no wireless cards, however it can be configured by the numRadios parameter. Wirless card type is configured by the **.wlan[*].typename parameter. see: inet.linklayer.ieee80211 or other modules implementing IWirelessNic Also external interfaces can be configured for HW in the loop simulation using the numExtInterfaces parameter and setting the type using **.ext[*].typename in the INI file. see: ExtInterface and IExternalNic If wireless card is present, node mobility can be set using **.mobilityType see: inet.mobility and IMobility

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.

Extends:
Name NodeBase Type compound module Description Contains the common lower layers (linklayer and networklayer) of Router, StandardHost, WirelessHost etc.

Known subclasses:
Name WirelessHost Type compound module Description Models a host with (default) one wireless (802.11) card in infrastructure mode. This module is basically a StandardHost with an Ieee80211Nic with mgmtType = Ieee80211MgmtSTA added. It should be used in conjunction with AccessPoint, or any other AP model which contains Ieee80211Nic with mgmtType = Ieee80211MgmtAP.

Used in compound modules:


Name IPv4LargeLAN IPv4MediumLAN IPv4SmallLAN OneNetArea OSPF_Area3 OspfLan TestArea TwoNetsArea Type compound module compound module compound module compound module compound module compound module compound module compound module Description Several hosts and an Ethernet hub on a switch. One port of the hub connect to a 10Base2 segment. Several hosts and a router on an Ethernet hub and a switch Several hosts on a router; part of IPv4LargeNet. (no description) (no description) (no description) (no description) (no description)

Networks:
Name ARPTest Type network Description (no description)

ARPTest Backbone ber BGPNet BGPTest BGPTest BGPTest BGPTest BGPTest BulkTransfer ClientServer ClientServerWithSM ClientServerWithSM DiffservNetwork

network network network network network network network network network network network network network network

(no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description)

DiffservNetwork DynamicTest ExtClient extserver FlatNet Http10Servers HttpNnodes HttpSockPair IPv4LargeNet KIDSNw1 LDPTEST multi MulticastNetwork MultiRadio_fixed

network network network network network network network network network network network network network network

This network contains a router with an 10Mbps Ethernet interface, and with a 128kbps dialup connection to a server. (no description) (no description) (no description) (no description) 10-nodes test scenario for sockets. n-nodes test scenario for sockets. (no description) A large Ethernet LAN -- see model description (no description) (no description) (no description) (no description) Models a network with several hosts. Each host may contain one or more radios. Nodes are using adhoc routing to pass information. It is necessary to use ChannelControlExtended instead of ChannelControl because only the extended version handles multiple radios. (no description) (no description)

NClients NClients

network network

NClients2 OSPF_mininet PcapRecorderTest R37 RSVPTE4 RSVPTE4 RSVPTE4 RSVPTE4 RSVPTE4 SimpleTest tcpsack tcptimestamps tcpwindowscale Traceroute

network network network network network network network network network network network network network network

(no description) (no description) (no description) (no description) Example network to demonstrate RSVP-TE. Example network to demonstrate RSVP-TE. Example network to demonstrate RSVP-TE. Example network to demonstrate RSVP-TE. Example network to demonstrate RSVP-TE. (no description) (no description) (no description) (no description) (no description) (no description) (no description) (no description)

UDPBroadcastNetwork network UDPBurst WiredNetWithDHCP network network

WirelessNetWithDHCP network

TODO auto-generated module

Parameters:
Name numExtInterfaces numRadios numPcapRecorders mobilityType routingFile IPForward forwardMulticast numTcpApps Type int int int string string bool bool int Default value 0 0 0 "StationaryMobility" "" false false 0 no of TCP apps. Specify the app types in INI file with tcpApp[0..1].typename="TCPEchoApp" syntax no of UDP apps. Specify the app types in INI file with udpApp[0..1].typename="UDPVideoStreamCli" syntax no of SCTP apps. Specify the app types in INI file with sctpApp[0..1].typename="SCTPServer" syntax no of PING apps. Specify the app types in INI file the number of radios in the router. by default no wireless no of PcapRecorders. Description

numUdpApps

int

numSctpApps

int

numPingApps

int

with pingApp[0..1].typename="PingApp" syntax tcpType udpType sctpType string string string firstAvailable("TCP", "TCP_lwIP", "TCP_NSC", "TCP_None") tcp implementation (e.g. TCP, TCP_lwIP, TCP_NSC) orTCPSpoof firstAvailable("UDP","UDP_None") firstAvailable("SCTP","SCTP_None")

Properties:
Name display node labels node Value i=device/pc2 Description

Gates:
Name radioIn [ ] pppg [ ] ethg [ ] Direction input inout inout Size numRadios Description

Unassigned submodule parameters:


Name Type Default value Description

networkLayer.ip.procDelay networkLayer.ip.timeToLive

double int

0s 32 32 60s false 1s 3 120s false "auto" for routers, the router id using IPv4 address dotted notation; specify "auto" to select the highest interface address; should be left empty ("") for hosts whether to display IP addresses on links whether to log packets on the module output the PCAP file to be written maximum number of bytes to record per packet enable dump of frames with hasBitError number seconds ARP waits between retries to resolve an IPv4 address number of times ARP will attempt to resolve an IPv4 address number seconds unused entries in the cache will time out

networkLayer.ip.multicastTimeToLive int networkLayer.ip.fragmentTimeout networkLayer.ip.forceBroadcast networkLayer.arp.retryTimeout networkLayer.arp.retryCount networkLayer.arp.cacheTimeout networkLayer.arp.globalARP routingTable.routerId double bool double int double bool string

interfaceTable.displayAddresses pcapRecorder.verbose pcapRecorder.pcapFile pcapRecorder.snaplen pcapRecorder.dumpBadFrames

bool bool string int bool

true false "" 65535 true

pcapRecorder.moduleNamePatterns string pcapRecorder.sendingSignalNames string

"wlan[*] eth[*] ppp[*]" "packetSentToLower" "packetReceivedFromLower"

space-separated list of sibling module names to listen on space-separated list of outbound packet signals to subscribe to space-separated list of inbound packet signals to subscribe to

pcapRecorder.receivingSignalNames string

Source code:
// // IPv4 host with SCTP, TCP, UDP layers and applications. // IP forwarding is disabled by default (see IPForward). // - Can be connected via ethernet interface to other nodes using // the ethg gate. By default full-duplex connections are supported // only (twisted pair). Set **.eth[*].typename="EthernetInterface" for // a full/half-duplex CSMA/CD implementation (coaxial cable) // - By default contains no wireless cards, however it can be configured // by the numRadios parameter. Wirless card type is configured by the // **.wlan[*].typename parameter. see: inet.linklayer.ieee80211 or other // modules implementing ~IWirelessNic // - Also external interfaces can be configured for HW in the loop simulation // using the numExtInterfaces parameter and setting the type using // **.ext[*].typename in the INI file. see: ~ExtInterface and ~IExternalNic // - If wireless card is present, node mobility can be set using **.mobilityType // see: inet.mobility and ~IMobility // module StandardHost extends NodeBase { parameters: @display("i=device/pc2"); int numTcpApps = default(0); // no of TCP apps. Specify the app types in INI file with tcpApp[0..1].typename="TCPEchoApp" syntax int numUdpApps = default(0); // no of UDP apps. Specify the app types in INI file with udpApp[0..1].typename="UDPVideoStreamCli" syntax int numSctpApps = default(0); // no of SCTP apps. Specify the app types in INI file with sctpApp[0..1].typename="SCTPServer" syntax int numPingApps = default(0); // no of PING apps. Specify the app types in INI file with pingApp[0..1].typename="PingApp" syntax string tcpType = default(firstAvailable("TCP", "TCP_lwIP", "TCP_NSC", "TCP_None")); // tcp implementation (e.g. ~TCP, ~TCP_lwIP, ~TCP_NSC) or ~TCPSpoof string udpType = default(firstAvailable("UDP","UDP_None")); string sctpType = default(firstAvailable("SCTP","SCTP_None")); IPForward = default(false); // disable routing by default networkLayer.proxyARP = default(false);

submodules: tcpApp[numTcpApps]: <> like ITCPApp { parameters: @display("p=186,54,row"); } tcp: <tcpType> like ITCP if numTcpApps>0 { parameters: @display("p=186,141"); } udpApp[numUdpApps]: <> like IUDPApp { parameters: @display("p=336,54,row"); } udp: <udpType> like IUDP if numUdpApps>0 { parameters: @display("p=336,141"); } sctpApp[numSctpApps]: <> like ISCTPApp { parameters: @display("p=501,54,row"); } sctp: <sctpType> like ISCTP if numSctpApps>0 { @display("p=501,141"); } pingApp[numPingApps]: <default("PingApp")> like IPingApp { parameters: @display("p=501,230"); } connections allowunconnected: for i=0..numTcpApps-1 { tcpApp[i].tcpOut --> tcp.appIn++; tcpApp[i].tcpIn <-- tcp.appOut++; } tcp.ipOut --> networkLayer.tcpIn if numTcpApps>0; tcp.ipIn <-- networkLayer.tcpOut if numTcpApps>0; for i=0..numUdpApps-1 { udpApp[i].udpOut --> udp.appIn++; udpApp[i].udpIn <-- udp.appOut++; } udp.ipOut --> networkLayer.udpIn if numUdpApps>0; udp.ipIn <-- networkLayer.udpOut if numUdpApps>0; for i=0..numSctpApps-1 { sctpApp[i].sctpOut --> sctp.from_appl++; sctp.to_appl++ --> sctpApp[i].sctpIn; } sctp.to_ip --> networkLayer.sctpIn if numSctpApps>0;

networkLayer.sctpOut --> sctp.from_ip if numSctpApps>0; for i=0..numPingApps-1 { networkLayer.pingOut++ --> pingApp[i].pingIn; networkLayer.pingIn++ <-- pingApp[i].pingOut; } }

You might also like