Omnet++ 模块ipv4NetworkConfigurator、configurator模块'中出错;ipv4NetworkConfigurator';找不到

Omnet++ 模块ipv4NetworkConfigurator、configurator模块'中出错;ipv4NetworkConfigurator';找不到,omnet++,Omnet++,我正在omnet++中进行网络模拟,我想做一个网络客户端服务器,使用2个路由器作为拓扑,我使用模块ipv4NetworkConfigurator自动分配ip地址和路由表。但我无法理解未找到“ipv4NetworkConfigurator”错误 \\file ClientServeur.ned package networkclientserver.simulations; import inet.networklayer.configurator.ipv4.IPv4NetworkConfi

我正在omnet++中进行网络模拟,我想做一个网络客户端服务器,使用2个路由器作为拓扑,我使用模块ipv4NetworkConfigurator自动分配ip地址和路由表。但我无法理解未找到“ipv4NetworkConfigurator”错误

\\file ClientServeur.ned
 package networkclientserver.simulations;

 import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
 import inet.node.inet.Router;
 import inet.node.inet.StandardHost;
 import ned.DatarateChannel;

   network ClientServer
  {
 submodules:
    Client: StandardHost {
        @display("p=56,154");
    }
    Server: StandardHost {
        @display("p=501,154;i=device/server");
    }
    R1: Router {
        @display("p=201,154");
    }
    R2: Router {
        @display("p=342,154");
    }
    Configurator: IPv4NetworkConfigurator {
        @display("p=251,62");
    }
   connections:
  Client.pppg++ <--> DatarateChannel {  delay = 100ms; datarate = 
  64kbps; } <--> R1.pppg++;
  R1.pppg++ <--> DatarateChannel {  delay = 100ms; datarate = 64kbps; } 
  <--> R2.pppg++;
  R2.pppg++ <--> DatarateChannel {  delay = 100ms; datarate = 64kbps; } 
  <--> Server.pppg++;
 }

  \\File omnetpp.ini

   network = ClientServer
   description = "Fully automatic IP address assignment"
   # Configurator settings
   tkenv-plugin-path = ../../../etc/plugins
   record-eventlog = true

   **.networkLayer.configurator.networkConfiguratorModule = 
   "Ipv4networkconfigurator"                  
   **.channel.throughput.result-recording-modes = all

   *.Configurator.dumpAddresses = true
   *.Configurator.dumpTopology = true
   *.Configurator.dumpLinks = true
   *.Configurator.dumpRoutes = true

   # Routing settings
   *.*.ipv4.arp.typename = "GlobalArp"
   #*.*.ipv4.routingTable.netmaskRoutes= ""
   sim-time-limit = 100s

   **.tcpType = "TCP"

   **.Client.numTcpApps = 1
   **.Client.tcpApp[*].typename = "TCPSessionApp"
   **.Client.tcpApp[*].connectAddress = "server"
   **.Client.tcpApp[*].connectPort = 80
   **.Client.tcpApp[*].sendBytes = 10MiB

   **.Server.numTcpApps = 1
   **.Server.tcpApp[*].typename = "TCPSinkApp"
   **.Server.tcpApp[*].localAddress = ""
   **.Server.tcpApp[*].localPort = 80

   **.tcpApp[*].dataTransferMode = "object"

   **.R1.ppp[*].queueType ="DropTailQueue"
   **.R1.ppp[*].queue.frameCapacity = 10

   **.ppp[*].numOutputHooks = 1
   **.ppp[*].outputHook[*].typename = "ThruputMeter"

   \\end file
\\file ClientServeur.ned
包networkclientserver.simulations;
导入inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
导入inet.node.inet.Router;
导入inet.node.inet.StandardHost;
导入ned.DatarateChannel;
网络客户端服务器
{
子模块:
客户:标准主机{
@显示(“p=56154”);
}
服务器:标准主机{
@显示(“p=501154;i=设备/服务器”);
}
R1:路由器{
@显示(“p=201154”);
}
R2:路由器{
@显示(“p=342154”);
}
配置程序:IPv4NetworkConfigurator{
@显示(“p=251,62”);
}
连接:
Client.pppg++数据速率通道{延迟=100ms;数据速率=
64kbps;}R1.pppg++;
R1.pppg++数据速率通道{延迟=100ms;数据速率=64kbps;}
R2.pppg++;
R2.pppg++数据速率通道{延迟=100ms;数据速率=64kbps;}
pppg++;
}
\\文件omnetpp.ini
网络=客户端服务器
description=“全自动IP地址分配”
#配置程序设置
tkenv插件路径=../../../etc/plugins
record eventlog=true
**.networkLayer.configurator.networkConfiguratorModule=
“Ipv4networkconfigurator”
**.channel.Through.result-recording-modes=所有
*.Configurator.dumpAddresses=true
*.Configurator.dumpTopology=true
*.Configurator.dumpLinks=true
*.Configurator.dumpRoutes=true
#路由设置
*.*.ipv4.arp.typename=“GlobalArp”
#**.ipv4.routingTable.netmaskRoutes=“”
sim卡时间限制=100秒
**.tcpType=“TCP”
**.Client.numTcpApps=1
**.Client.tcpApp[*].typename=“TCPSessionApp”
**.Client.tcpApp[*].connectAddress=“服务器”
**.Client.tcpApp[*].connectPort=80
**.Client.tcpApp[*].sendBytes=10MB
**.Server.numTcpApps=1
**.Server.tcpApp[*].typename=“TCPSinkApp”
**.Server.tcpApp[*].localAddress=“”
**.Server.tcpApp[*].localPort=80
**.tcpApp[*].dataTransferMode=“对象”
**.R1.ppp[*].queueType=“DropTailQueue”
**.R1.ppp[*].queue.frameCapacity=10
**.ppp[*].numOutputHooks=1
**.ppp[*].outputhbook[*].typename=“ThruputMeter”
\\结束文件

模块(inet::IPv4NodeConfigurator)中出错,未找到配置器模块“ipv4NetworkConfigurator”

默认情况下,所有节点都希望配置器被称为
Configurator
(以小写字母开头)

v
Configurator: IPv4NetworkConfigurator
^

以大写字母开头。作为惯例,建议以大写形式启动模块名称、类型、接口名称,同时对参数、门和子模块名称使用小写形式的名称。

默认情况下,所有节点都希望配置器被称为
配置器(以小写形式启动),而

v
Configurator: IPv4NetworkConfigurator
^

以大写字母开头。作为惯例,建议以大写字母开头模块名称、类型、接口名称,而参数、门和子模块名称则使用小写字母。

I将“configurator”改为小写字母,但是问题没有解决。请使用新文件和错误消息更新您的问题,因为新的错误消息肯定已更改。另外,指定您正在使用的omnet和inet版本可能会有所帮助。非常感谢Rudi,我对文件进行了一些编辑,并根据您的建议(小写),问题解决方案网络版本4.6,inet版本3.3.0,问题是解决方案将“配置器”更改为小写字母,但是问题没有解决。请使用新文件和错误消息更新您的问题,因为新的错误消息肯定已更改。另外,指定您正在使用的omnet和inet版本可能会有所帮助。非常感谢Rudi,我对文件进行了一些编辑,并根据您的建议(小写),问题解决方案网络版4.6,inet版3.3.0,问题已解决请不要编辑其他人的答案以包括您自己的答案。如果您找到了解决方案,欢迎您将其发布为自己的答案(您可以用与回答其他人问题相同的方式回答自己的问题)。我建议你继续浏览网站,阅读并学习如何写出好的问题和答案。请不要编辑其他人的答案来包含你自己的答案。如果您找到了解决方案,欢迎您将其发布为自己的答案(您可以用与回答其他人问题相同的方式回答自己的问题)。我建议你继续浏览网站,阅读并学习如何写出好的问题和答案。