I am simulating a WSN based network in NetSim. The GUI, Config file, simulation parameters etc have been configured and I am getting various output metrics. However, I want to calculate the end-to-end delay for each packet. How do I do this?
To Calculate end to end delay for any packet you need to calculate four important delays.
1- Queuing Delay ( the amount of time taken by a packet in que before getting service while this is important delay there must be an upper bound defining the QoS of system can be modelled by an statisticall model.
2- Processsing delay: It should be variable but may be one of possible processing time because processing for each packet differs depending upon the header type or traffic type.)
3-Transmission delay : it must be fixed since your packet length is fixed or very much accuarate in case of variable length of packet.
4- Propagation delay : it depends upon the length of the medium and signal phase velocity in medium used between destination and source,
The end to end delay are available in the Application Metrics table that is part of NetSim results Window which appears at the end of the simulation performed.