Sample Ethernet LAN: two hosts directly connected to each other via twisted pair.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.
Name | Value | Description |
---|---|---|
isNetwork |
Name | Type | Default value | Description |
---|---|---|---|
hostA.cli.destAddress | string | "" |
destination MAC address, or module path name of destination station; empty means off |
hostA.cli.startTime | double | this.waitTime |
time of sending the first request |
hostA.cli.waitTime | double | uniform(0s,1s) |
interval between sending requests |
hostA.cli.reqLength | int | 100B |
length of request packets |
hostA.cli.respLength | int | 1KB |
length of response packets |
hostA.mac.promiscuous | bool | false |
if true, all packets are received, otherwise only the ones with matching destination MAC address |
hostA.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. |
hostA.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. |
hostA.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). |
hostA.mac.txQueueLimit | int | 1000 |
maximum number of frames queued up for transmission; additional frames are dropped. Only used if queueModule=="" |
hostA.mac.mtu | int | 1500 | |
hostB.cli.destAddress | string | "" |
destination MAC address, or module path name of destination station; empty means off |
hostB.cli.startTime | double | this.waitTime |
time of sending the first request |
hostB.cli.waitTime | double | uniform(0s,1s) |
interval between sending requests |
hostB.cli.reqLength | int | 100B |
length of request packets |
hostB.cli.respLength | int | 1KB |
length of response packets |
hostB.mac.promiscuous | bool | false |
if true, all packets are received, otherwise only the ones with matching destination MAC address |
hostB.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. |
hostB.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. |
hostB.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). |
hostB.mac.txQueueLimit | int | 1000 |
maximum number of frames queued up for transmission; additional frames are dropped. Only used if queueModule=="" |
hostB.mac.mtu | int | 1500 |
// // Sample Ethernet LAN: two hosts directly connected to each other // via twisted pair. // network TwoHosts { submodules: hostA: EtherHost { parameters: @display("p=60,160"); } hostB: EtherHost { parameters: @display("p=200,140"); } connections: hostA.ethg <--> { delay = 0.5us; } <--> hostB.ethg; }