123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- //
- // This program 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 3 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 Lesser General Public License for more details.
- //
- // You should have received a copy of the GNU Lesser General Public License
- // along with this program. If not, see http://www.gnu.org/licenses/.
- //
- package inet.showcases.visualizer.networkpathactivity;
- import inet.common.lifecycle.LifecycleController;
- import inet.common.scenario.ScenarioManager;
- import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
- import inet.node.aodv.AODVRouter;
- import inet.node.ethernet.Eth100M;
- import inet.node.ethernet.EtherSwitch;
- import inet.node.inet.Router;
- import inet.node.inet.StandardHost;
- import inet.node.inet.WirelessHost;
- import inet.node.wireless.AccessPoint;
- import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
- import inet.visualizer.integrated.IntegratedVisualizer;
- import inet.visualizer.networklayer.NetworkRouteVisualizer;
- //
- // TODO documentation
- //
- network NetworkPathSimpleShowcase
- {
- @display("bgb=600,250");
- submodules:
- pathVisualizer: NetworkRouteVisualizer {
- parameters:
- @display("p=100,50");
- }
- configurator: IPv4NetworkConfigurator {
- parameters:
- @display("p=100,150");
- }
- source: StandardHost {
- @display("p=200,125");
- }
- destination: StandardHost {
- @display("p=500,125");
- }
- connections:
- source.ethg++ <--> Eth100M <--> destination.ethg++;
- }
- //
- // TODO documentation
- //
- network NetworkPathComplexShowcase
- {
- @display("bgb=1050,720");
- submodules:
- visualizer: IntegratedVisualizer {
- parameters:
- @display("p=100,50");
- }
- configurator: IPv4NetworkConfigurator {
- parameters:
- @display("p=100,150");
- }
- source1: StandardHost {
- @display("p=250,50");
- }
- source2: StandardHost {
- @display("p=947.52496,110.439995");
- }
- destination1: StandardHost {
- @display("p=749.235,611.185");
- }
- destination2: StandardHost {
- @display("p=131.856,533.856");
- }
- host1: StandardHost {
- @display("p=379.488,49.848");
- }
- videoClient: StandardHost {
- @display("p=831.336,109.344");
- }
- host2: StandardHost {
- @display("p=894.048,533.856");
- }
- videoServer: StandardHost {
- @display("p=249.24,639.984");
- }
- etherSwitch0: EtherSwitch {
- @display("p=249.24,160.8");
- }
- etherSwitch1: EtherSwitch {
- @display("p=947.52496,229.665");
- }
- etherSwitch2: EtherSwitch {
- @display("p=279.865,515.805");
- }
- etherSwitch3: EtherSwitch {
- @display("p=731.665,448.03497");
- }
- router1: Router {
- @display("p=749.235,230.92");
- }
- router2: Router {
- @display("p=249.745,346.38");
- }
- router3: Router {
- @display("p=461.496,448.632");
- }
- router4: Router {
- @display("p=575.664,313.56");
- }
- router0: Router {
- @display("p=484.008,180.09601");
- }
- connections:
- source1.ethg++ <--> Eth100M <--> etherSwitch0.ethg++;
- etherSwitch0.ethg++ <--> Eth100M <--> router0.ethg++;
- router3.ethg++ <--> Eth100M <--> etherSwitch3.ethg++;
- etherSwitch3.ethg++ <--> Eth100M <--> destination1.ethg++;
- etherSwitch1.ethg++ <--> Eth100M <--> router1.ethg++;
- etherSwitch1.ethg++ <--> Eth100M <--> source2.ethg++;
- router2.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
- destination2.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
- router2.pppg++ <--> Eth100M <--> router3.pppg++;
- etherSwitch0.ethg++ <--> Eth100M <--> host1.ethg++;
- etherSwitch1.ethg++ <--> Eth100M <--> videoClient.ethg++;
- etherSwitch3.ethg++ <--> Eth100M <--> host2.ethg++;
- etherSwitch2.ethg++ <--> Eth100M <--> videoServer.ethg++;
- router1.pppg++ <--> Eth100M <--> router0.pppg++;
- router0.pppg++ <--> Eth100M <--> router2.pppg++;
- router4.pppg++ <--> Eth100M <--> router3.pppg++;
- router4.pppg++ <--> Eth100M <--> router2.pppg++;
- router4.pppg++ <--> Eth100M <--> router1.pppg++;
- router0.pppg++ <--> Eth100M <--> router4.pppg++;
- }
- //
- // TODO documentation
- //
- network NetworkPathMobileShowcase
- {
- @display("bgb=660,630");
- submodules:
- visualizer: IntegratedVisualizer {
- @display("p=100,50");
- }
- configurator: IPv4NetworkConfigurator {
- @display("p=100,150");
- }
- radioMedium: Ieee80211ScalarRadioMedium {
- @display("p=100,250");
- }
- source: AODVRouter {
- @display("p=229,46");
- }
- destination: AODVRouter {
- @display("p=488.832,512.952");
- }
- aodvRouter1: AODVRouter {
- @display("p=421.296,295.872");
- }
- aodvRouter2: AODVRouter {
- @display("p=273.36002,440.592");
- }
- aodvRouter3: AODVRouter {
- @display("p=305.52,188.136");
- }
- aodvRouter4: AODVRouter {
- @display("p=562.8,328.032");
- }
- aodvRouter5: AODVRouter {
- @display("p=421.296,77.184");
- }
- }
- //
- // TODO documentation
- //
- network NetworkPathRIPShowcase
- {
- @display("bgb=1100,680");
- submodules:
- visualizer: IntegratedVisualizer {
- parameters:
- @display("p=100,50");
- }
- configurator: IPv4NetworkConfigurator {
- parameters:
- @display("p=100,150");
- }
- radioMedium: Ieee80211ScalarRadioMedium {
- parameters:
- @display("p=100,250");
- }
- scenarioManager: ScenarioManager {
- parameters:
- @display("p=100,350");
- }
- lifecycleController: LifecycleController {
- @display("p=100,450");
- }
- wiredSource: StandardHost {
- @display("p=257.28,535.464");
- }
- wiredDestination: StandardHost {
- @display("p=802.392,149.544");
- }
- wirelessSource: WirelessHost {
- @display("p=406.824,80.4");
- }
- wirelessDestination: WirelessHost {
- @display("p=786.312,567.624");
- }
- host1: StandardHost {
- @display("p=445.41602,535.464");
- }
- host2: StandardHost {
- @display("p=993.744,149.544");
- }
- accessPoint0: AccessPoint {
- @display("p=319.992,154.368");
- }
- accessPoint1: AccessPoint {
- @display("p=876.36,479.184");
- }
- etherSwitch0: EtherSwitch {
- @display("p=876.36,276.576");
- }
- etherSwitch1: EtherSwitch {
- @display("p=329.64,402");
- }
- router0: Router {
- @display("p=383.73126,279.6875");
- }
- router1: Router {
- @display("p=633.552,192.96");
- }
- router2: Router {
- @display("p=787.60004,404.98752");
- }
- router3: Router {
- @display("p=554.76,458.28");
- }
- connections:
- router0.pppg++ <--> Eth100M <--> router1.pppg++;
- router0.pppg++ <--> Eth100M <--> router3.pppg++;
- router1.pppg++ <--> Eth100M <--> router2.pppg++;
- router2.pppg++ <--> Eth100M <--> router3.pppg++;
- router2.ethg++ <--> Eth100M <--> etherSwitch0.ethg++;
- etherSwitch0.ethg++ <--> Eth100M <--> wiredDestination.ethg++;
- router2.ethg++ <--> Eth100M <--> accessPoint1.ethg++;
- router0.ethg++ <--> Eth100M <--> etherSwitch1.ethg++;
- etherSwitch1.ethg++ <--> Eth100M <--> wiredSource.ethg++;
- router0.ethg++ <--> Eth100M <--> accessPoint0.ethg++;
- host1.ethg++ <--> Eth100M <--> etherSwitch1.ethg++;
- host2.ethg++ <--> Eth100M <--> etherSwitch0.ethg++;
- }
|