// // Copyright (C) 2006 Andras Varga // // This library is free software, you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation; // either version 2 of the License, or any later version. // The library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Lesser General Public License for more details. // package inet.examples.voipstream.VoIPStreamTrafficTest; import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator; import inet.node.ethernet.EtherSwitch; import inet.node.inet.Router; import inet.node.inet.StandardHost; import ned.DatarateChannel; network VoIPStreamTrafficTest { @display("bgb=750,447"); types: channel line1 extends DatarateChannel { parameters: delay = 100us; datarate = 100Mbps; } channel line2 extends DatarateChannel { parameters: delay = 10us; datarate = 100Mbps; } submodules: client: StandardHost { parameters: @display("p=54,133;i=device/laptop_l"); } switch: EtherSwitch { parameters: @display("p=190,224;i=device/switch"); } router2: Router { parameters: @display("p=376,297;i=abstract/router"); } router1: Router { parameters: @display("p=266,144;i=abstract/router"); } server: StandardHost { parameters: @display("p=589,58;i=device/server_l"); } configurator: IPv4NetworkConfigurator { parameters: config = xml(""); @display("p=44,19;i=block/cogwheel_s"); } host1: StandardHost { @display("p=54,310"); } host2: StandardHost { @display("p=589,332"); } switch2: EtherSwitch { @display("p=473,224"); } connections: client.ethg++ <--> line1 <--> switch.ethg++; router1.ethg++ <--> line1 <--> switch.ethg++; router1.ethg++ <--> line2 <--> router2.ethg++; switch2.ethg++ <--> line2 <--> router2.ethg++; switch2.ethg++ <--> line1 <--> server.ethg++; switch2.ethg++ <--> line1 <--> host2.ethg++; switch.ethg++ <--> line1 <--> host1.ethg++; }