Packet Jitter ( µs ) for any given packet = | End to end delay of current packet - End to end delay of the previous packet |
Jitter ( µs ) for the entire application = Total Packet Jitter of all successful packets / (Total number of successfully received packets - 1)
A minimum two packets needs to be received at the destination to calculate jitter.
Enable Packet Trace and simulate the scenario
1. Open packet trace and filter the CONTROL_PACKET_TYPE field to Data packets (App1_SENSOR_APP in this scenario)
2. Insert a column after PHY_LAYER_END_TIME to calculate the difference between Physical layer End Time and Application Layer Arrival Time as shown in the below
3. Apply the following code in the column created :
=[@[PHY_LAYER_END_TIME(US)]]-[@[APP_LAYER_ARRIVAL_TIME(US)]]
4. Insert a column after Column1 to calculate the Packet Jitter
5. Calculate the Packet Jitter by the formula
Packet Jitter (µs) for any given packet = | End to end delay of current packet - End to end delay of the previous packet |
The Packet Jitter can be calculated in the trace using the formula
=ABS([@Column1]-P7)
The absolute value represents the jitter
6. From the current value obtained drag the column upto the last value and note down the Sum obtained
The sum obtained 93723 is the Total Packet Jitter value.
7. Now, note down the number of Packets Received from the Application Metrics present in the results dashboard.
8. Hence, Jitter = Total Packet Jitter of all successful packets / (Total number of successfully received packets - 1)
= 93723 / (100-1) = 946.69697 µs
9. The Jitter obtained in the results dashboard is available in the Application Metrics.
Note that in order to reconcile Jitter value between the trace file and the Results-dashboard, packets should not get fragmented.
Articles that can be referred to:
How do I introduce jitter in NetSim simulations / emulations?
In NetSim how do I measure 'Jitter' from the output results ?