NED File src/inet/networks/tsn/TsnDumbbellNetwork.ned
Name | Type | Description |
---|---|---|
TsnDumbbellNetwork | network | (no description) |
Source code
// // SPDX-License-Identifier: LGPL-3.0-or-later // package inet.networks.tsn; import inet.networks.base.TsnNetworkBase; import inet.node.contract.IEthernetNetworkNode; import inet.node.ethernet.EthernetLink; network TsnDumbbellNetwork extends TsnNetworkBase { parameters: *.eth[*].bitrate = default(100Mbps); submodules: client1: <default("TsnDevice")> like IEthernetNetworkNode { @display("p=300,150"); } client2: <default("TsnDevice")> like IEthernetNetworkNode { @display("p=300,350"); } switch1: <default("TsnSwitch")> like IEthernetNetworkNode { @display("p=500,250"); } switch2: <default("TsnSwitch")> like IEthernetNetworkNode { @display("p=700,250"); } server1: <default("TsnDevice")> like IEthernetNetworkNode { @display("p=900,150"); } server2: <default("TsnDevice")> like IEthernetNetworkNode { @display("p=900,350"); } connections: client1.ethg++ <--> EthernetLink <--> switch1.ethg++; client2.ethg++ <--> EthernetLink <--> switch1.ethg++; switch2.ethg++ <--> EthernetLink <--> server1.ethg++; switch2.ethg++ <--> EthernetLink <--> server2.ethg++; switch1.ethg++ <--> EthernetLink <--> switch2.ethg++; }