简体   繁体   English

定期在OMNeT ++中添加主机

[英]Adding hosts periodically in OMNeT++

I have a network setup of 100 hosts, which have to enter the network one by one, until all have joined for a 24 hours simulation time (one option is to have one joining every 864 seconds). 我有一个包含100个主机的网络设置,这些主机必须一个一个地进入网络,直到所有主机都加入了24小时的模拟时间(一种选择是每864秒加入一个主机)。

I am interested in counting the multicast messages exchanged between the machines, through the Neighbour Discovery Protocol. 我有兴趣计算通过邻居发现协议在机器之间交换的多播消息。 Is it possible to do this, without changing anything in the source file of the IPv6NeighbourDiscovery.cc? 是否可以执行此操作而无需更改IPv6NeighbourDiscovery.cc的源文件中的任何内容?

This is my NED File: 这是我的NED文件:

package inet.examples.wireless.wiredandwirelesshostswithap;

import inet.networklayer.configurator.ipv6.FlatNetworkConfigurator6;
import inet.networklayer.icmpv6.IPv6NeighbourDiscovery;
import inet.node.ethernet.Eth100M;
import inet.node.ipv6.Router6;
import inet.node.xmipv6.WirelessHost6;
import inet.node.wireless.AccessPoint;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;


network WiredAndWirelessHostsWithAP
{
    parameters:
        int n;
        @display("bgb=503,434");
    submodules:
        wirelessHost[n]: WirelessHost6 {
            @display("p=58,88");
        }
        router6: Router6 {
            @display("p=412,88");
        }
        accessPoint: AccessPoint {
            @display("p=323,87");
        }
        configurator: FlatNetworkConfigurator6 {
            @display("p=323,165");
        }
        radioMedium: Ieee80211ScalarRadioMedium {
            @display("p=98,392");
        }
    connections:
        accessPoint.ethg++ <--> Eth100M <--> router6.ethg++;

}

And the ini file: 和ini文件:

[General]
network = WiredAndWirelessHostsWithAP
sim-time-limit = 24h
tkenv-plugin-path = ../../../etc/plugins

# number of client computers
*.n = 100

**.*Host*.numUdpApps = 3

**.*Host*.udpApp[0].typename = "UDPEchoApp"
**.*Host*.udpApp[0].localPort = 1000

**.*Host*.udpApp[*].typename = "UDPBasicApp"
**.*Host*.udpApp[1..].destPort = 1000
**.*Host*.udpApp[1..].messageLength = 100B
**.*Host*.udpApp[1..].sendInterval = 1s
**.*Host*.udpApp[1..].stopTime = 300s

Thank you in advance! 先感谢您!

不,如果不修改C ++文件,就不可能计算收到的IPv6NeighbourDiscovery消息的数量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM