I’m simulating different traffic types (Video, HHTP, Gaming, VoIP) in the OpenStreetMap.m. But every time throughput is the same. Please, suggest what changes are required in the code.
the example scenarios included in the simulator usually have very short simulation durations in order to be able to produce exemplary results quickly. This can be a problem when employing more elaborate traffic models that have long wait times between packet generations leading to users without any traffic in the simulation duration and thus invalid results.
If you want to investigate the above-mentioned traffic models, I recommend increasing the simulation duration by setting the parameter params.time.slotsPerChunk to higher values. Keep in mind that the slot duration is in the order of milliseconds and that the HTTP mean reading time is 30 seconds, so a very large number of slots needs to be simulated to obtain sensible results with the HTTP traffic model.
Another thing to consider is that the throughput results represent the instantaneous throughput in a slot. Depending on the goal of your simulation, it might be necessary to aggregate the throughput in all slots to obtain a good measure of the amount of data received by a user.