Commit 2dbb15ca authored by shengjh's avatar shengjh 🇨🇳
Browse files

add test nework and ini.

parent 38589ec0
//
// 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 dctrans.simulations;
import inet.networklayer.configurator.ipv4.Ipv4NetworkConfigurator;
import inet.node.ethernet.Eth100M;
import inet.node.inet.Router;
import inet.node.inet.StandardHost;
import inet.visualizer.canvas.integrated.IntegratedCanvasVisualizer;
network SimpleNet
{
submodules:
configurator: Ipv4NetworkConfigurator {
@display("p=37,37");
}
host0: StandardHost {
@display("p=211,227");
}
host1: StandardHost {
@display("p=133,227");
}
router0: Router {
@display("p=172,84");
}
visualizer: IntegratedCanvasVisualizer {
@display("p=37,101");
}
connections:
host0.ethg++ <--> Eth100M <--> router0.ethg++;
host1.ethg++ <--> Eth100M <--> router0.ethg++;
}
[General]
# Configurator settings
*.configurator.dumpAddresses = true
*.configurator.dumpTopology = true
*.configurator.dumpLinks = true
*.configurator.dumpRoutes = true
# Routing settings
*.*.ipv4.arp.typename = "GlobalArp"
*.*.ipv4.routingTable.netmaskRoutes = ""
# Wireless settings
#*.*.wlan[*].bitrate = 54Mbps
# Visualizer settings
*.visualizer.interfaceTableVisualizer.displayInterfaceTables = true
#*.visualizer.interfaceTableVisualizer.nodeFilter = "not (*switch* or *Switch* or *AP*)"
[Config SimpleNet]
network = dctrans.simulations.SimpleNet
*.host0.numApps = 1
*.host0.app[0].typename = "UdpApp"
*.host0.app[0].io.localPort = 1000
*.host0.app[0].io.destAddress = "host1"
*.host0.app[0].io.destPort = 1000
*.host0.app[0].source.productionInterval = 1s
*.host0.app[0].source.packetLength = intuniform(100B, 200B)
*.host0.app[0].source.packetData = intuniform(0, 1)
*.host0.app[0].outbound.typename = "PacketTagger"
*.host0.app[0].outbound.userPriority = 3
*.host1.numApps = 1
*.host1.app[0].typename = "UdpSink"
*.host1.app[0].localPort = 1000
#nouse
#*.host*.eth[0].macLayer.stagInserter.typename = "Ieee8021qInserter"
#*.host*.eth[0].macLayer.stagChecker.typename = "Ieee8021qTagTpidHeaderChecker"
#*.*.eth[*].protocol = "ieee8021qctag"
*.*.eth[*].protocol = "ieee8021qctag"
#*.router0.eth[*].protocol = "ethernemac"
*.*.eth[*].typename = "LayeredEthernetInterface"
*.*.eth[*].bitrate = 100Mbps
*.*.eth[*].macLayer.queue.typename = "EthernetPriorityQueue"
*.*.eth[*].macLayer.queue.buffer.typename = ""
*.*.eth[*].macLayer.queue.numQueues = 8
*.*.eth[*].macLayer.queue.queue[*].typename = "DropTailQueue"
*.*.ethernet.typename = "EthernetLayer"
*.*.ieee8021q.typename = "Ieee8021qLayer"
*.visualizer.routingTableVisualizer.displayRoutingTables = true
*.visualizer.routingTableVisualizer.destinationFilter = "host1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment