12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- //
- // Copyright (C) 2008 Irene Ruengeler
- //
- // 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.sctp.cmttest;
- import inet.node.inet.Router;
- import inet.node.inet.StandardHost;
- import ned.DatarateChannel;
- network multihomed
- {
- parameters:
- double testTimeout @unit(s) = default(0s);
- bool testing = default(false);
- submodules:
- sctp_client: StandardHost {
- parameters:
- forwarding = false;
- networkLayer.configurator.networkConfiguratorModule = "";
- @display("p=61,142;i=device/laptop");
- gates:
- pppg[2];
- }
- sctp_server: StandardHost {
- parameters:
- forwarding = false;
- networkLayer.configurator.networkConfiguratorModule = "";
- @display("p=426,135;i=device/server2");
- gates:
- pppg[2];
- }
- router1: Router {
- parameters:
- networkLayer.configurator.networkConfiguratorModule = "";
- @display("p=188,77;i=abstract/router");
- gates:
- pppg[4];
- }
- router2: Router {
- parameters:
- networkLayer.configurator.networkConfiguratorModule = "";
- @display("p=323,75;i=abstract/router");
- gates:
- pppg[4];
- }
- connections:
- sctp_client.pppg[0] <--> NormalPath <--> router1.pppg[0];
- sctp_client.pppg[1] <--> NormalPath <--> router1.pppg[1];
- router1.pppg[2] <--> BottlePath <--> router2.pppg[0];
- router1.pppg[3] <--> BottlePath <--> router2.pppg[1];
- router2.pppg[2] <--> NormalPath <--> sctp_server.pppg[0];
- router2.pppg[3] <--> NormalPath <--> sctp_server.pppg[1];
- }
- channel BottlePath extends DatarateChannel
- {
- parameters:
- delay = 0s;
- datarate = 1Mbps;
- per = 0.005;
- }
- channel NormalPath extends DatarateChannel
- {
- parameters:
- delay = 0ms;
- datarate = 1Gbps;
- }
|