|
| 1 | +package inet.tutorials.rip; |
| 2 | + |
| 3 | +import inet.common.scenario.ScenarioManager; |
| 4 | +import inet.networklayer.configurator.ipv4.Ipv4NetworkConfigurator; |
| 5 | +import inet.node.ethernet.Eth100M; |
| 6 | +import inet.node.ethernet.Eth10M; |
| 7 | +import inet.node.ethernet.EthernetSwitch; |
| 8 | +import inet.node.inet.Router; |
| 9 | +import inet.node.inet.StandardHost; |
| 10 | +import inet.visualizer.contract.IIntegratedVisualizer; |
| 11 | + |
| 12 | + |
| 13 | +network RipNetworkA |
| 14 | +{ |
| 15 | + @display("bgb=2101.0125,829.44995"); |
| 16 | + @figure[simtime](type="simTimeText"; pos=1550,60; prefix="SimTime: "; font=,14); |
| 17 | + submodules: |
| 18 | + configurator: Ipv4NetworkConfigurator { |
| 19 | + @display("p=757.8,76.30625"); |
| 20 | + } |
| 21 | + visualizer: <default("IntegratedCanvasVisualizer")> like IIntegratedVisualizer { |
| 22 | + @display("p=1023.5563,76.30625"); |
| 23 | + } |
| 24 | + scenarioManager: ScenarioManager { |
| 25 | + @display("p=1310.3625,76.30625"); |
| 26 | + } |
| 27 | + host0: StandardHost { |
| 28 | + @display("p=97.81249,375.59998;i=,red"); |
| 29 | + } |
| 30 | + host1: StandardHost { |
| 31 | + @display("p=97.81249,532.1"); |
| 32 | + } |
| 33 | + host2: StandardHost { |
| 34 | + @display("p=97.81249,694.46875"); |
| 35 | + } |
| 36 | + host3: StandardHost { |
| 37 | + @display("p=1271.5625,334.51874"); |
| 38 | + } |
| 39 | + router0: Router { |
| 40 | + @display("p=543.83746,532.1"); |
| 41 | + } |
| 42 | + router2: Router { |
| 43 | + @display("p=1508.2687,532.1"); |
| 44 | + } |
| 45 | + router1: Router { |
| 46 | + @display("p=925.3062,532.1"); |
| 47 | + } |
| 48 | + host4: StandardHost { |
| 49 | + @display("p=1271.5625,692.51245"); |
| 50 | + } |
| 51 | + host5: StandardHost { |
| 52 | + @display("p=1473.0562,389.29373"); |
| 53 | + } |
| 54 | + host6: StandardHost { |
| 55 | + @display("p=1977.7687,373.64374;i=,blue"); |
| 56 | + } |
| 57 | + host7: StandardHost { |
| 58 | + @display("p=1977.7687,532.1"); |
| 59 | + } |
| 60 | + host8: StandardHost { |
| 61 | + @display("p=1977.7687,692.51245"); |
| 62 | + } |
| 63 | + switch0: EthernetSwitch { |
| 64 | + @display("p=318.86874,530.14374"); |
| 65 | + } |
| 66 | + switch2: EthernetSwitch { |
| 67 | + @display("p=1727.3687,530.14374"); |
| 68 | + } |
| 69 | + switch1: EthernetSwitch { |
| 70 | + @display("p=1271.5625,530.14374"); |
| 71 | + } |
| 72 | + router3: Router { |
| 73 | + @display("p=1054.4187,334.51874"); |
| 74 | + } |
| 75 | + router4: Router { |
| 76 | + @display("p=712.07495,334.51874"); |
| 77 | + } |
| 78 | + connections: |
| 79 | + host2.ethg++ <--> Eth100M <--> switch0.ethg++; |
| 80 | + host1.ethg++ <--> Eth100M <--> switch0.ethg++; |
| 81 | + host0.ethg++ <--> Eth100M <--> switch0.ethg++; |
| 82 | + switch0.ethg++ <--> Eth100M <--> router0.ethg++; |
| 83 | + |
| 84 | + switch1.ethg++ <--> Eth100M <--> host3.ethg++; |
| 85 | + switch1.ethg++ <--> Eth100M <--> host4.ethg++; |
| 86 | + switch1.ethg++ <--> Eth100M <--> host5.ethg++; |
| 87 | + switch1.ethg++ <--> Eth100M <--> router2.ethg++; |
| 88 | + |
| 89 | + switch2.ethg++ <--> Eth100M <--> host6.ethg++; |
| 90 | + switch2.ethg++ <--> Eth100M <--> host7.ethg++; |
| 91 | + switch2.ethg++ <--> Eth100M <--> host8.ethg++; |
| 92 | + |
| 93 | + router2.ethg++ <--> Eth100M <--> switch2.ethg++; |
| 94 | + router0.ethg++ <--> Eth10M <--> router1.ethg++; |
| 95 | + router1.ethg++ <--> Eth10M <--> switch1.ethg++; |
| 96 | + router0.ethg++ <--> Eth100M <--> router4.ethg++; |
| 97 | + router4.ethg++ <--> Eth100M <--> router3.ethg++; |
| 98 | + router3.ethg++ <--> Eth100M <--> switch1.ethg++; |
| 99 | +} |
0 commit comments