Name | Description |
---|---|
REDTestDebug (network) | (no description) |
// // Copyright (C) 2004 Andras Varga // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program 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 General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // package inet.examples.inet.redtest; import inet.linklayer.ppp.ThruputMeter; import inet.networklayer.autorouting.FlatNetworkConfigurator; import inet.nodes.inet.Router; import inet.nodes.inet.StandardHost; import inet.util.TCPDump; import inet.world.ChannelInstaller; import inet.world.ScenarioManager; network REDTestDebug { submodules: channelInstaller: ChannelInstaller { parameters: channelClass = "ThruputMeteringChannel"; channelAttrs = "format=b (u)"; @display("p=305,40"); } configurator: FlatNetworkConfigurator { parameters: @display("p=147,40"); } scenarioManager: ScenarioManager { parameters: @display("p=222,40"); } r1: Router { parameters: @display("p=147,143"); } r2: Router { parameters: @display("p=345,142"); } s1: StandardHost { parameters: @display("p=68,64;i=device/laptop"); } s2: StandardHost { parameters: @display("p=65,193;i=device/laptop"); } s3: StandardHost { parameters: @display("p=421,83;i=device/laptop"); } s4: StandardHost { parameters: @display("p=420,195;i=device/laptop"); } dump: TCPDump { parameters: @display("p=286,143"); } th: ThruputMeter { parameters: @display("p=248,135"); } connections: // FIXME adjust to the new TCPDump module // r1.pppg$o++ --> { datarate = 1.5Mbps; delay = 20ms; } --> th.in; // th.out --> dump.a$i; // dump.b$o --> r2.pppg$i++; // // dump.a$o --> { datarate = 1.5Mbps; delay = 20ms; } --> r1.pppg$i++; // dump.b$i <-- { datarate = 1.5Mbps; delay = 20ms; } <-- r2.pppg$o++; r1.pppg++ <--> { datarate = 1.5Mbps; delay = 20ms; } <--> r2.pppg++; s1.pppg++ <--> { datarate = 10Mbps; delay = 2ms; } <--> r1.pppg++; s2.pppg++ <--> { datarate = 10Mbps; delay = 3ms; } <--> r1.pppg++; s3.pppg++ <--> { datarate = 10Mbps; delay = 4ms; } <--> r2.pppg++; s4.pppg++ <--> { datarate = 10Mbps; delay = 5ms; } <--> r2.pppg++; }