stealthcopter / AndroidNetworkTools

Set of useful android network tools
Apache License 2.0
1.36k stars 283 forks source link

How calculate Jitter ? #83

Open abolfazlkalamati opened 3 years ago

abolfazlkalamati commented 3 years ago

Jitter is when there is a time delay in the sending of these data packets over your network connection. This is often caused by network congestion, and sometimes route changes. Essentially, the longer data packets take to arrive, the more jitter can negatively impact the video and audio quality. For example :

ping -c 5 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=52 time=136 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=52 time=184 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=52 time=115 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=52 time=148 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=52 time=125 ms
136 to 184, diff = 48
184 to 115, diff = 69
115 to 148, diff = 33
148 to 125, diff = 23

result = (diff) 173/4= 43.25