Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Or does anyone know how to merge them together in veins_inet existing simulatiom.
    AI Xin
    Some of my code use C++ 17 feature(std::optional). I'm working on a new project using OMNeT++, and want to use my current code. I already add CXX=clang++ CXXFLAGS=-std=c++17 to makefile, however it still not compile. I try make V=1, it seems that the CXXFLAGS not working. Any ideas?
    hi all
    I am working on a thesis project to blackhole attack detection and prevention in WSNs using omnet++. I am not able to find any algorithm or tool to generate the attack. please help me?
    Hi all! someone knows how to send data from instant veins (SUMO+Omnet++)simulation to sqlite3 (installed within debian)?
    Is it possible to set up VANET environment with Base Station/RSU initialized clustering using OMNET++ integrated with Veins and SUMO?
    And, perform ECC based mutual authentication using OMNET++?
    If yes, how it is being done???
    I have compiled INet, but how do I got Omnet++ to detect it? Is there some place/path I need to put it?
    Amit Krishna
    Hi All is there any recognized course available for Omnet++ in any MOOC platform that you may know.
    Laila Heilat
    I want to animate a node receiving messages from 5 different nodes in OMNET++. Right now the nodes send in a sequential manner. But, I want the nodes to send messages to the root node simultaneously. please help me
    Laila Heilat
    @englishm @sanjaysrikumar please do you have any idea to solve my problem that mentioned above
    Hi everyone,
    i am new in OMNET++, i am trying to install OMNET 5.5.1 in my windows. everything finishes well but when i try to run program it gives me error "unknown log format character '<'" and when i press ok it disappear everything.
    Can anyone plese guide me
    @LHeilat_twitter I think you should be able to send the messages at the same time by scheduling the send() method at same time on all sender nodes. And for setting up animation, you can follow below INET tutorial,

    Hi Everyone,
    I am trying to implement a clock synchronisation mechanism in Wireless networks. But I am not able to find a Clock module which I can use in a wireless sensor node!! Can anyone please direct me to some examples of clock models in wireless nodes to get started with??

    Thanks in Advance

    Andras Varga
    A clock model is part of INET 4.3.0.
    gPTP for INET is being integrated currently.
    Thanks you Andras. I could import INET 4.3 and see clock models in there. Are there any simple examples other than gPTP which I can refer to?
    Riccardo M. Pesce
    Good evening! I have a question. If in a wireless network with adhoc host I would like to implement a routing protocol where the forwarding nodes in the range of the sending nodes routes
    Route packets to the receiving node theough the two path with the least hop, what would you be modifying? The nexthopforwarding module?

    Hi, I am using OMNET++ INET for Ad hoc networks.
    I want to broadcast my message to all my neighbours in UDP. I have tried all the possible solutions in UDPBasicApp. It broadcasts a message to one node at a time which it chooses randomly if the destination is not fixed (sink) . UDPBasicBurstApp also does not send message to all connected nodes.
    Kindly help me in this regard.


    Hello, when compiling from source other than using Linux/Mac/Windows release tar, how to get the IDE working?
    This is the result from a Docker environment,
    userpp@a176646f65eb (omnetpp-dev):~/omnetpp-6.0pre10$ omnetpp
    Starting the OMNeT++ IDE...
    The OMNeT++ IDE is not installed!

    Hi Everyone, I am working on a TDMA based wireless network in Omnet++ using INET library and facing below problem.

    I am using ‘WirelessHost' as my wireless nodes’ type and configured the internal clocks of these nodes to run at different speeds using ‘SettableClockModule’.

    I have modified the ‘LMac’ MAC protocol to use the internal clocks of their respective nodes by adding clockModule parameter. All I am trying to do is, access the medium according to the internal clock of the node, instead of simulator clock!

    The PROBLEM I am facing is as below,

    • When LMac_Clock (the modified version) tries to schedule a send_control message for the very first time, I am getting the below runTimeError,
      scheduleAt(): Cannot schedule message (inet::ClockEvent)send_control, it is currently contained/owned by (inet::LMAC_Clock)wireless_network2.TestNodeB.wlan[0].mac -- in module (inet::physicallayer::ApskRadio) wireless_network2.TestNodeB.wlan[0].radio
    • When I use the LMac protocol as it is, it works perfectly in my network. But when I try to use the modified version with clock module, it throws me a runTimeError.
    • It looks like the message ownership error, but I was not able to understand what is the mistake I am doing or how this can be solved!

    Below are the steps I tried,

    1. Copied the message before scheduling in scheduleClockEvent method to deal with the ownership. Then, the message could be scheduled, but the Radio module will ry to pick it up and throw Unknown self message error,
      Unknown self message -- in module (inet::physicallayer::ApskRadio) wireless_network2.TestNodeB.wlan[0].radio

    2. Modified the ‘ApskRadio' Module as well with parameter clockModule and updating scheduling functions. But the network behaved the same way!

    Please let me know if anyone can help me to fix this.
    Any suggestions or documents related to message ownership problems OR any example projects to which I can refer will also be very helpful.

    Thanks & Regards,
    Suheel S N


    Hi All,

    I am building a network topology with 12 nodes (all AodvRouter): 1 x Source, 9 x intermediate nodes and two destinations: Sink1 and Sink2. Please see the image for details: Network Topology.
    At the moment all nodes are stationary (no mobility implemented yet). I am using UdpBasicApp at Source and UdpSink at destinations and trying to send UDP datagrams from source in multicast fashion to Sink1 and Sink2 nodes.
    I have configured the Source and Sink1, Sink2 app in the ini file as follows:

    # Source app configuration
    *.Source.numApps = 1
    *.Source.app[0].typename = "UdpBasicApp"
    *.Source.app[0].destAddresses = ""
    *.Source.app[0].destPort = 1000
    *.Source.app[0].messageLength = 1000Byte
    *.Source.app[0].sendInterval = 100us
    *.Source.app[0].startTime = intuniform(0ms,1ms)
    # Sink1 app configuration
    *.Sink1.numApps = 1
    *.Sink1.app[0].typename = "UdpSink"
    *.Sink1.app[0].localPort = 1000
    *.Sink1.app[0].joinLocalMulticastGroups = true
    # Sink2 app configuration
    *.Sink2.numApps = 1
    *.Sink2.app[0].typename = "UdpSink"
    *.Sink2.app[0].localPort = 1000
    *.Sink2.app[0].joinLocalMulticastGroups = true

    But I am not sure whether configuring Source app with *.Source.app[0].destAddresses = "" and Sink with *.Sink1.app[0].joinLocalMulticastGroups = true is the correct approach.
    Could you please advise? Thank you very much in advance.

    ini file:.
    ned file.

    Hi. I have installed OMNET++ 6.0pre11 and inet 4.3.2. i tried to run any of the examples in INET but gives me following error everytime.
    Kindly guide me.
    Thanks in advance
    2 replies
    Hello Everyone I'm facing a problem with clang in VANET building. It shows link Linker command failed with exit code 1.use -v to see invocation. IT showing the file VeinsInetManagerBase.o. and showing some clang compiler error
    Kentaro "zigen" Teramoto
    Hi there, I ported OMNeT++ to WebAssembly and you can try it! https://horol.org/tictoc/ still working in progress. currently, you can only "step run". comments or suggestions are welcome. thanks.
    Hello everyone, is there some INET example that connect to a real network, especially TCP network with HTTP protocol?
    The best I found is an UDP example https://inet.omnetpp.org/docs/showcases/emulation/voip/doc/index.html
    mudit parmar
    Dear all,
    I am new to omnet++. I need to modify existing csma/ca, aodv, adhoc tcp and http protocols to enable me achieve the aim of my project.
    First, I need to simulate the current protocols without attack
    2nd, I will simulate all the current protocols with Jamming, MAC Flooding, Blackhole, SYN Flooding and DDoS attacks.
    3rd, i will simulate the modified protocols in the presence of all the named attacks.
    Can anyone give a step-by-step guide please?
    Hi everyone,
    I am trying to broadcast Udp packets to all the neighbouring nodes in a wireless network with AdhocHosts. Default ipv4 module is failing to resolve the broadcast address ‘’. I am using the GlobalArp module for ARP protocol. Can someone please help me how to fix this? Or any suggestions on how this can be achieved would be really helpful.
    Thanks in advance.
    guglielmo c g

    Hi there,

    in the "Getting started" section there's an error, there's a code box that is supposed to show some code but instead shows "Loading..." which kinda breaks the tutorial.

    1 reply
    Hadi Hussen
    Hi Everyone I have a question on Mobile sink for heterogeneous WSN source code for designing multi-objectives
    schmittlauch (he/him)

    Just for reference or in case anyone has an opinion on this:
    omnetpp simulations might have issues with disabled memory overcommitment (vm.overcommit_memory = 2 on Linux) and are likely to allocate far more virtual memory than they actually use.

    I don't have the time right now to investigate whether actually my own simulation code is the culprit here, or whether it's the omnet framework code, but thought to leave it here in case folks have ideas or comments on that.

    At least quite often the SQlitefilewriter from onetpp is the thing throwing a std::bad_alloc.

    Hello, everyone. I am working on adaptive transmission power with traffic density in Omnet++ using Veins and sumo simulator. Please let me know if anyone can help me to adaptive TX power with node density.
    So in a wireless simulation what does the different colors mean when the transmission is happening, I see a green, black, purple and yellow.
    schmittlauch (he/him)
    Hey, is there a way to record a certain string into the result file for each run? I need to record the address – as a string – of a certain node that changes randomly between simulation runs. recordAs only takes numerical values though.
    1 reply
    schmittlauch (he/him)
    Also, the simulation manual is not fully accurate on claiming that non-numerical itervars are not recorded into result files: I have successfully retrieved string itervar simulation parameters from my simulation recordings.
    Does anyone know where gr-genalyzer is uploaded at?
    Hello eveyone !
    I am really new with omnet ++ etc... And I am working on a project to establish a connexion between Artery and Unity to build a nice simulation for transport mobility safety. The first step is to add itsg5 to my sumo simulation with omnet++ using ARTERY. The problem is that I don't find much about artery and I don't know if following the omnetpp doc is enough do you have some documentation that you recomend? I really am a rookie excuse me if it seems dumb
    im new to omnet++ and im trying to create 5G networks with SDN controller
    i want to know if there is ability to connect the simu5G with the open-flow since each one use different init framwork
    thank you in advance
    hello everyone ! please anybody can help me to solve this problem , i try to simulate a project with "omnetpp6rc1" and "inetmanet-4.x-master" ,before start the simulation it gives me this error"//cMatchExpression: Parse error in match expression: syntax error, unexpected STRINGLITERAL, expecting $end -- in module (inet::visualizer::StatisticCanvasVisualizer) mobilityDrones.visualizer.canvasVisualizer.statisticVisualizer (id=25), during network initialization//, please if you have any idea help me :)
    Alessio Cosenza
    Hello, is there anyone who could help on this? https://stackoverflow.com/questions/72133325/simulation-api-omnet
    Kentaro "zigen" Teramoto
    Hello, is there any plan to update the docker image to OMNeT++6?
    Hello , I just wanted to ask how can i add accesspoint to tsn device or switch ? I am using OMNet 6.0 with INET 4.4 .. I am trying to do some experiments with TSN Wireless . anybody can help me ?
    Rudolf Hornig
    @zigen I will upload a version soon.
    Nick Gian
    Hello all,
    I am using omnet++ 6.0 && inet 4..3.9 and i want to send EtherIIFrame packets i was using inet 3.8.3 how to setup correct the packet. And how to check if the packet is ethernetframe , ethernetIIFrame, and ethernet with snap