Currently, I am doing some research scenarios with Veins framework. I modified the Veins example (which is in the tutorial) and made it use my network file and ran the simulation for 3000 step.
From the OMNeT++ console, I can see that there are lot of accidents scheduled and performed. May I know how these accidents are being scheduled? In what rate? For example 2 accidents per minute or 5 accidents per SUMO 15 steps?
In omnetpp.ini at the mobility tab it is possible to specify which node, when and for how long the accident will occur, for example:
*.node[*0].veinsmobility.accidentCount = 1
*.node[*0].veinsmobility.accidentStart = 10s
*.node[*0].veinsmobility.accidentDuration = 1s
Another thing to care about is that accident start is
relative to the time where a node enters the simulation. If there aren't many accidents maybe you can specify these accidents manually.
Related
I have scheduled a flow of vehicles to enter a route at different time steps using the rou.xml file in sumo. And I can see these vehicles entering in those specified times when I run the simulation with the sumo gui. But when I run my simulation with omnet++, the time seems to be different.
I want to know why that is and how I can correct it if can. Please help.
Vehicle movement in SUMO is random. You can choose a pseudorandom seed when the simulation starts. By default, Veins chooses a seed based on the run you are executing (same config, same seed - different replication, different seed). This means that the seed will likely be different to that of a SUMO simulation you manually start. If this is not what you want you will need to change either the seed that pure SUMO uses or the seed that Veins uses. Both are simple configuration options.
I am currently doing research on the multi-hop broadcast technology of the Internet of Vehicles. I want to use only Veins (5.0) and SUMO to achieve it, but I have encountered problems:
1.Using Veins' example (TraCIDemo11p.cc) to modify the selection of relay nodes, the packet loss rate and delay cannot be counted So I want to know if the packet loss rate and delay can be counted after only modifying the example? It's been two weeks now, I would really appreciate if you could fix my problem.need to use inet?
I have setup my environment using omnet++, sumo and veins in ubuntu. I want to reduce packet loss in an emergency situation among vehicles and improve packet delivery time and cost. My project is about choosing the suitable processing position among cluster head (nodes), road side unit (rsu) and cloud. I want to achieve certain tasks that is need to implement my veins project. I have configured 50 nodes and 4 rsu and provide data rate about 6mbps and assign the packet size upto 2MB.
Therefore, how can I change the behavior of vehicles (nodes), road side unit (rsu) and cloud in order to implement the following parameters?
processing rate of clusters (nodes) = 3 Mbps.
processing rate of RSUs = 7 Mbps.
processing rate of cloud = 10 Mbps.
the range of clusters (nodes) = 60 m.
the range of RSU = 120 m.
the range of cloud = 500 m.
If you could help with building these parameters I will appreciate it.
Thank you
If you are talking about transsmision rate, then you can set the bit rate in the ini file (check veins example) but if you meant processing delay then it is usually simulated by scheduling self messages (check tictoc example). In terms of transsmsion range, veins uses Free Space Propagation model and the related parameters are set in the ini file so you can change them to decide the required range. Finally, I recommand to read more about veins and how it deal with the parameters you asked about. There are alot of answered questions on StackOverFlow about your questions.
I am trying to collect the following data using Veins towards each single lane, including throughput, density, mean speed, delay and collision. I know TraCI has the Simulation Value Retrieval, which can provide some information that I need. Also, the Lane Value Retrieval can help. But I have no clue where should I put the customized codes, so that the statistics can be recorded properly. For example, I want to collect the density and the mean speed of each lane every minute of the simulation time, which class should I put my codes to? TraCISenarioManager?
Any suggestion is appreciated.
I think putting the code in TraCIScenarioManager is entirely reasonable. If you want per-vehicle statistics I'd recommend putting them in the vehicles' application code, the way VEINS already collects some statistics out of the box.
I simulated a large scenario (using the whole map of a city) with Omnet-5.0 , Veins-4.5 and SUMO-0.29.0.
The first scenario simulated took one week.
I need to know the computing time used by Veins comparing it to SUMO and Omnet++. I asked for SUMO, I have a response that SUMO takes 1 second to load the network and 0.3 seconds to run the simulation.
Is there a tool to reduce the simulation time of my scenario please?