Latency

From Kolmisoft Wiki
Jump to navigationJump to search

The time it takes a conversation to travel from the speaker to the listener is the end-to-end delay, or latency.


End-to-end delay is actually made up of four components:

  • Propagation delay— The time to travel across the network from end to end. It is based on the speed of light and the distance the signal must travel.
  • Transport delay— The time to get through the network devices along the path. Networks with many firewalls, many routers, congestion, or slow WANs introduce more delay than an overprovisioned LAN on one floor of a building.
  • Packetization delay— The time for the codec to digitize the analog signal and build frames—and undo it at the other end.
  • Jitter buffer delay— The delay introduced by the receiver as it holds one or more datagrams to reduce variations in arrival times.


Many VoIP engineers don't know how much latency is too much. A simple answer is 150 ms.

Users begin noticing latency as a service level issue when roundtrip latency is greater than 250 milliseconds (ms).

The International Telecommunications Union recommends that latency never exceed 150 ms one way (from speaker to listener).



It can be checked using ping or iperf commands.

Example with ping:
[root@ns36850 ~]# ping 109.235.71.xxx PING 109.235.71.xxx(109.235.71.xxx) 56(84) bytes of data. 64 bytes from 109.235.71.xxx: icmp_seq=1 ttl=56 time=40.6 ms 64 bytes from 109.235.71.xxx: icmp_seq=2 ttl=56 time=40.6 ms 64 bytes from 109.235.71.xxx: icmp_seq=3 ttl=56 time=40.7 ms




Source: Taking Charge of Your VoIP Project