simulation error

31 views
Skip to first unread message

vishnuga kumaran

unread,
Dec 22, 2021, 12:44:12 AM12/22/21
to OMNeT++ Users
I really need help with this problem. when I,m using below example, the simulation show an error.

error is <!> check_and_cast(): Cannot cast (inet::Ipv4FlatNetworkConfigurator*)Network.configurator to type 'inet::Ipv4NetworkConfigurator *' -- in module (inet::Ipv4NodeConfigurator) Network.Host.ipv4.configurator (id=32), during network initialization

//omnet.ini
[General]
network = myfirstproject.simulations.Network

**.Client.numTcpApps = 1
**.Client.tcpApp[0].typename = "TCPBasicClientApp"
**.Client.tcpApp[0].connectionAddress = "Server"
**.Client.tcpApp[0].connectionPort = 80
**.Client.tcpApp[0].thinkTime = 0s
**.Client.tcpApp[0].idleInterval = 0s


**.Server.numTcpApps = 1
**.Server.tcpApp[0].typename = "TCPEchoApp"
**.Server.tcpApp[0].localPort = 80

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

//package.ned

package myfirstproject.simulations;

import inet.examples.inet.ipv4hook.MyHost;
import inet.examples.inet.ipv4hook.MyRouter;
import inet.networklayer.configurator.ipv4.Ipv4FlatNetworkConfigurator;
import inet.node.ethernet.Eth100M;


@License(LGPL);
//
// TODO documentation
//
network Network
{
    @display("bgb=449,262");
    submodules:
        Host: MyHost {
            @display("p=52,116;b=67,48");
        }
        Server: MyHost {
            @display("p=372,123;b=62,49");
        }
        Router: MyRouter {
            @display("p=203,206;b=61,39");
        }

        configurator: inet.networklayer.configurator.ipv4.Ipv4FlatNetworkConfigurator {
            @display("p=259,20");
        }
    connections:
        Host.ethg++ <--> Eth100M <--> Router.ethg++;
        Router.ethg++ <--> Eth100M <--> Server.ethg++;
}

Reply all
Reply to author
Forward
0 new messages