2

100 台のホストのネットワーク設定があり、すべてが 24 時間のシミュレーション時間に参加するまで、ネットワークに 1 つずつ入る必要があります (1 つのオプションは、864 秒ごとに参加することです)。

近隣探索プロトコルを介して、マシン間で交換されるマルチキャスト メッセージをカウントすることに関心があります。IPv6NeighbourDiscovery.cc のソース ファイルを何も変更せずにこれを行うことは可能ですか?

これは私の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++;

}

そして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

前もって感謝します!

4

1 に答える 1

0

いいえ、IPv6NeighbourDiscoveryC++ ファイルを変更せずに受信メッセージ数をカウントすることはできません。

于 2016-09-01T12:53:19.020 に答える