Latency (engineering)

Latency, from a general point of view, is a time delay between the cause and the effect of some physical change in the system being observed. Lag, as it is known in gaming circles, refers to the latency between the input to a simulation and the visual or auditory response, often occurring because of network delay in online games.[1]

Latency is physically a consequence of the limited velocity at which any physical interaction can propagate. The magnitude of this velocity is always less than or equal to the speed of light. Therefore, every physical system with any physical separation (distance) between cause and effect will experience some sort of latency, regardless of the nature of the stimulation to which it has been exposed.

The precise definition of latency depends on the system being observed or the nature of the simulation. In communications, the lower limit of latency is determined by the medium being used to transfer information. In reliable two-way communication systems, latency limits the maximum rate at which information can be transmitted, as there is often a limit on the amount of information that is in-flight at any given moment. Perceptible latency has a strong effect on user satisfaction and usability in the field of human–machine interaction.[2]

Communications

Online games are sensitive to latency (lag), since fast response times to new events occurring during a game session are rewarded while slow response times may carry penalties. Due to a delay in transmission of game events, a player with a high latency internet connection may show slow responses in spite of appropriate reaction time. This gives players with low-latency connections a technical advantage.

Capital markets

Joel Hasbrouck and Gideon Saar (2011) measure latency to execute financial transactions based on three components: the time it takes for information to reach the trader, execution of the trader's algorithms to analyze the information and decide a course of action, and the generated action to reach the exchange and get implemented. Hasbrouck and Saar contrast this with the way in which latencies are measured by many trading venues that use much more narrow definitions, such as the processing delay measured from the entry of the order (at the vendor's computer) to the transmission of an acknowledgment (from the vendor's computer).[3] Trading using computers has developed to the point where millisecond improvements in network speeds offer a competitive advantage for financial institutions.[4]

Packet-switched networks

Network latency in a packet-switched network is measured as either one-way (the time from the source sending a packet to the destination receiving it), or round-trip delay time (the one-way latency from the source to the destination plus the one-way latency from the destination back to the source). Round-trip latency is more often quoted, because it can be measured from a single point. Many software platforms provide a service called ping that can be used to measure round-trip latency. Ping uses the Internet Control Message Protocol (ICMP) echo request which causes the recipient to send the received packet as an immediate response, thus it provides a rough way of measuring round-trip delay time. Ping cannot perform accurate measurements,[5] principally because ICMP is intended only for diagnostic or control purposes, and differs from real communication protocols such as TCP. Furthermore, routers and internet service providers might apply different traffic shaping policies to different protocols.[6][7] For more accurate measurements it is better to use specific software, for example: hping, Netperf or Iperf.

However, in a non-trivial network, a typical packet will be forwarded over multiple links and gateways, each of which will not begin to forward the packet until it has been completely received. In such a network, the minimal latency is the sum of the transmission delay of each link, plus the forwarding latency of each gateway. In practice, minimal latency also includes queuing and processing delays. Queuing delay occurs when a gateway receives multiple packets from different sources heading toward the same destination. Since typically only one packet can be transmitted at a time, some of the packets must queue for transmission, incurring additional delay. Processing delays are incurred while a gateway determines what to do with a newly received packet. Bufferbloat can also cause increased latency that is an order of magnitude or more. The combination of propagation, serialization, queuing, and processing delays often produces a complex and variable network latency profile.

Latency limits total throughput in reliable two-way communication systems as described by the bandwidth-delay product.

Fiber optics

Latency in optical fiber is largely a function of the speed of light. This would equate to a latency of 3.33 μs for every kilometer of path length. The index of refraction of most fiber optic cables is about 1.5, meaning that light travels about 1.5 times as fast in a vacuum as it does in the cable. This works out to about 5.0 μs of latency for every kilometer. In shorter metro networks, higher latency can be experienced due to extra distance in building risers and cross-connects. To calculate the latency of a connection, one has to know the distance traveled by the fiber, which is rarely a straight line, since it has to traverse geographic contours and obstacles, such as roads and railway tracks, as well as other rights-of-way.

Due to imperfections in the fiber, light degrades as it is transmitted through it. For distances of greater than 100 kilometers, amplifiers or regenerators are deployed. Latency introduced by these components needs to be taken into account.

Satellite transmission

Satellites in geostationary orbits are far enough away from Earth that communication latency becomes significant – about a quarter of a second for a trip from one ground-based transmitter to the satellite and back to another ground-based transmitter; close to half a second for two-way communication from one Earth station to another and then back to the first. Low Earth orbit is sometimes used to cut this delay, at the expense of more complicated satellite tracking on the ground and requiring more satellites in the satellite constellation to ensure continuous coverage.

Audio

Audio latency is the delay between when an audio signal enters and when it emerges from a system. Potential contributors to latency in an audio system include analog-to-digital conversion, buffering, digital signal processing, transmission time, digital-to-analog conversion and the speed of sound in air.

Video

Video latency refers to the degree of delay between the time a transfer of a video stream is requested and the actual time that transfer begins. Networks that exhibit relatively small delays are known as low-latency networks, while their counterparts are known as high-latency networks.

Workflow

Any individual workflow within a system of workflows can be subject to some type of operational latency. It may even be the case that an individual system may have more than one type of latency, depending on the type of participant or goal-seeking behavior. This is best illustrated by the following two examples involving air travel.

From the point of view of a passenger, latency can be described as follows. Suppose John Doe flies from London to New York. The latency of his trip is the time it takes him to go from his house in England to the hotel he is staying at in New York. This is independent of the throughput of the London-New York air link – whether there were 100 passengers a day making the trip or 10000, the latency of the trip would remain the same.

From the point of view of flight operations personnel, latency can be entirely different. Consider the staff at the London and New York airports. Only a limited number of planes are able to make the transatlantic journey, so when one lands they must prepare it for the return trip as quickly as possible. It might take, for example:

  • 35 minutes to clean a plane
  • 15 minutes to refuel a plane
  • 10 minutes to load the passengers
  • 30 minutes to load the cargo

Assuming the above are done consecutively, minimum plane turnaround time is:

35 + 15 + 10 + 30 = 90

However, cleaning, refueling and loading the cargo can be done at the same time. Passengers can only be loaded after cleaning is complete. The reduced latency, then, is:

35 + 10 = 45
15
30
Minimum latency = 45

The people involved in the turnaround are interested only in the time it takes for their individual tasks. When all of the tasks are done at the same time, however, it is possible to reduce the latency to the length of the longest task. If some steps have prerequisites, it becomes more difficult to perform all steps in parallel. In the example above, the requirement to clean the plane before loading passengers results in a minimum latency longer than any single task.

Mechanics

Any mechanical process encounters limitations modeled by Newtonian physics. The behavior of disk drives provides an example of mechanical latency. Here, it is the time seek time for the actuator arm to be positioned above the appropriate track and then rotational latency for the data encoded on a platter to rotate from its current position to a position under the disk read-and-write head.

Computer hardware and software systems

Computers run instructions in the context of a process. In the context of computer multitasking, the execution of the process can be postponed if other processes are also executing. In addition, the operating system can schedule when to perform the action that the process is commanding. For example, suppose a process commands that a computer card's voltage output be set high-low-high-low and so on at a rate of 1000 Hz. The operating system schedules the process for each transition (high-low or low-high) based on a hardware clock such as the High Precision Event Timer. The latency is the delay between the events generated by the hardware clock and the actual transitions of voltage from high to low or low to high.

Many desktop operating systems have performance limitations that create additional latency. The problem may be mitigated with real-time extensions and patches such as PREEMPT RT.

On embedded systems, the real-time execution of instructions is often supported by a real-time operating system.

Note that in software systems, benchmarking against "average" and "median" latency can be misleading because few outlier numbers can distort them. Instead, software architects and software developers should use "99th percentile".[8]

Simulations

In simulation applications, latency refers to the time delay, often measured in milliseconds, between initial input and output clearly discernible to the simulator trainee or simulator subject. Latency is sometimes also called transport delay. Some authorities[who?] distinguish between latency and transport delay by using the term latency in the sense of the extra time delay of a system over and above the reaction time of the vehicle being simulated, but this requires detailed knowledge of the vehicle dynamics and can be controversial.

In simulators with both visual and motion systems, it is particularly important that the latency of the motion system not be greater than of the visual system, or symptoms of simulator sickness may result. This is because, in the real world, motion cues are those of acceleration and are quickly transmitted to the brain, typically in less than 50 milliseconds; this is followed some milliseconds later by a perception of change in the visual scene. The visual scene change is essentially one of change of perspective or displacement of objects such as the horizon, which takes some time to build up to discernible amounts after the initial acceleration which caused the displacement. A simulator should, therefore, reflect the real-world situation by ensuring that the motion latency is equal to or less than that of the visual system and not the other way round.

See also

References

  1. ^ "Latency" Archived 2021-04-22 at the Wayback Machine Retrieved 2020-10-27.
  2. ^ Souders, Steve. "Velocity and the Bottom Line". Retrieved 23 February 2023.
  3. ^ Hasbrouck, Joel; Saar, Gideon. "Low-Latency Trading" (PDF). p. 1. Archived from the original (PDF) on 11 November 2011. Retrieved 18 July 2011.
  4. ^ "High-frequency trading: when milliseconds mean millions". The Telegraph. Retrieved 2018-03-25.
  5. ^ "Don't misuse ping!". Archived from the original on 12 October 2017. Retrieved 29 April 2015.
  6. ^ Shane Chen (2005). "Network Protocols Discussion / Traffic Shaping Strategies". knowplace.org. Archived from the original on 2007-01-09.
  7. ^ "Basic QoS part 1 – Traffic Policing and Shaping on Cisco IOS Router". The CCIE R&S. 19 September 2012. Retrieved 29 April 2015.
  8. ^ Foundations of Data Intensive Applications Large Scale Data Analytics Under the Hood. 2021. ISBN 9781119713012.

Further reading

Read other articles:

Matthew BroderickLahir21 Maret 1962 (umur 61)Manhattan, New York, USAPekerjaanPemeranTahun aktif1981–sekarangSuami/istriSarah Jessica Parker ​ ​(m. 1997)​Anak3Orang tuaJames BroderickPatricia BroderickKerabatMilton H. Biow (kakek) Matthew Broderick (lahir 21 Maret 1962) merupakan seorang aktor berkebangsaan Amerika Serikat yang memenangkan penghargaan Tony Award. Dia terkenal lewat perannya sebagai David Lightman di WarGames. Broderick menikah d...

 

I'll Be ThereCover edisi regularSingel oleh Arashidari album UntitledSisi-B Round and Round Unknown Treasure of Life Dirilis19 April 2017 (2017-04-19)FormatCD singleDirekam2017GenrePopBig band[1]Durasi26:33[2]LabelJ StormKronologi singel Arashi Power of the Paradise (2016) I'll Be There (2017) Tsunagu (2017) I'll Be There adalah single ke-51 boyband Jepang Arashi. Single ini dirilis pada tanggal 19 April 2017 di bawah label rekaman J Storm. I'll Be There digunakan sebagai...

 

Pilsner Krombacher. Pilsner atau pilsener adalah sejenis bir lager yang berwarna pucat.[1] Pilsner dibuat dari jelai yang direndam air, hop, ragi, dan air.[2] Minuman ini pertama kali dibuat di Plzen, Ceko pada 1842.[2] Nama pilsner pada awalnya merupakan nama tempat pembuatan bir ini pertama kali dibuat.[2] Pilsner ketika itu dibuat dengan menggunakan jelai yang direndam sebagian dan buka jelai yang dipanggang seperti yang kebanyakan digunakan oleh pabrik bir ...

У этого термина существуют и другие значения, см. Бомбарда (значения). Поплавок-бомбарда Бомба́рда (техника ловли) или Сбирули́но (техника ловли) — представляет собой объединение спиннингового и нахлыстового видов ловли рыбы. В ней используется удлинённое подобие спи�...

 

Spanish association football player In this Spanish name, the first or paternal surname is Reguilón and the second or maternal family name is Rodríguez. Sergio Reguilón Reguilón playing for Real Madrid in 2018Personal informationFull name Sergio Reguilón Rodríguez[1]Date of birth (1996-12-16) 16 December 1996 (age 27)Place of birth Madrid, SpainHeight 1.78 m (5 ft 10 in)[2][3]Position(s) Left-backTeam informationCurrent team Brentford(...

 

Fictional monster from Dungeons & Dragons This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Vampire Dungeons & Dragons – news · newspapers · books · scholar · JSTOR (May 2016) (Learn how and when to remove this message) VampireFirst appearancethe Dungeons & Dragons white box set (1974)In-unive...

Cet article est une ébauche concernant l’opéra ou l’opérette et la Campanie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Teatro VerdiPrésentationType Théâtre, opéraArchitectes Giuseppe Menichini (d), Antonio D’Amora (d)Ouverture 1872Site web www.teatroverdisalerno.itLocalisationLocalisation Salerne ItalieCoordonnées 40° 40′ 44″ N, 14° 45′ 08″ Emodifi...

 

Football clubRealejosFull nameUnión Deportiva RealejosFounded1943GroundLos Príncipes, Los Realejos, Canary Islands, SpainCapacity3,000Chairman Juan Carlos FeblesManager Adrián AlbénizLeague3ª – Group 122013–143ª – Group 12, 19th Home colours Away colours Unión Deportiva Realejos is a football team based in Los Realejos, in the Canary Islands. Founded in 1943, it plays in the Preferente de Tenerife. Its stadium is Estadio Los Príncipes with a capacity of 3,000 seats. Season to se...

 

  提示:此条目页的主题不是中華人民共和國最高領導人。 中华人民共和国 中华人民共和国政府与政治系列条目 执政党 中国共产党 党章、党旗党徽 主要负责人、领导核心 领导集体、民主集中制 意识形态、组织 以习近平同志为核心的党中央 两个维护、两个确立 全国代表大会 (二十大) 中央委员会 (二十届) 总书记:习近平 中央政治局 常务委员会 中央书记处 �...

Chinese Taipei Hockey AssociationSportField hockeyJurisdictionRepublic of China (Taiwan)AffiliationFIHRegional affiliationAHFPresidentTsai Yi ChuSecretaryChih-Peng Wu The Chinese Taipei Hockey Association is the governing body of field hockey in Republic of China (Taiwan). It is affiliated to IHF International Hockey Federation and AHF Asian Hockey Federation. The headquarters of the federation are in Taipei.[1][2] Tsai Yi Chu is the President of the Chinese Taipei Hockey Asso...

 

R. C. SproulR. C. SproulLahir(1939-02-13)13 Februari 1939Pittsburgh, Pennsylvania[1][2]Meninggal14 Desember 2017(2017-12-14) (umur 78)Altamonte Springs, FloridaPendidikanWestminster CollegePittsburgh Theological SeminaryVrije Universiteit AmsterdamWhitefield Theological SeminarySuami/istriVesta Ann Voorhis ​(m. 1960)​[3]Anak2, termasuk R. C. Sproul Jr.Kiprah di bidang teologiTradisi atau gerakanReformedMinat utamaApologetika klasikTeo...

 

Open cluster in the constellation Carina Trumpler 14HST ACS visible and infrared imageObservation data (J2000 epoch)Right ascension10h 43m 56s[1]Declination−59° 33′ 00″[1]Distance8,980 ly (2,753 pc)[1]Apparent magnitude (V)5.5[1]Physical characteristicsMass4.3+3.3−1.5×103 M☉Estimated age300000–500000 yearsOne of the youngest known star clustersOther designationsCr 230, C 1041-593, Cl VDBH 10...

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

 

Bowie LamBowie Lam at the Ultimate Song Chart Awards 2012Born (1965-09-04) 4 September 1965 (age 58)Alice Ho Miu Ling Nethersole Hospital, Central, British Hong KongOccupation(s)Actor, singer, rapperYears active1985–presentAwardsTVB Anniversary Awards – Best Actor 2004 War and Beauty My Favourite Television Character 2003 Vigilante Force 2004 War and Beauty Asian Television Awards – Best Actor - Drama Series 2010 Sisters of Pearl Chinese nameTraditional Chinese林保怡Si...

 

Canadian politician The HonourableMargaret ThomDStJ ONWTCommissioner of the Northwest TerritoriesIn officeSeptember 18, 2017 – May 14, 2024Prime MinisterJustin TrudeauPremierBob McLeodCaroline CochraneR.J. SimpsonPreceded byGerald W. Kisoun (acting)Succeeded byGerald W. Kisoun Personal detailsBorn1951 (age 72–73)[citation needed]Fort Providence, Northwest TerritoriesSpouseJim ThomChildren4OccupationCounsellor Margaret M. Thom DStJ[1] ONWT (born 1951[c...

Soviet Union Communist Russian party government Part of a series onStalinism Concepts Aggravation of class struggle under socialism Anti-revisionism Collectivization Cult of personality Five-year plans Great Break Korenizatsiia Marxism–Leninism New Soviet man Popular front Self-criticism Socialism in one country Socialist realism Soviet socialist patriotism Stakhanovite Transformation of nature Vanguardism People Joseph Stalin Yemelyan Yaroslavsky Kliment Voroshilov William Z. Foster Georgi...

 

Nadieżda Kostiuczyk (2012) Nadieżda „Nadja“ Kostiuczyk (belarussisch Надзея Касцючык/Nadseja Kaszjutschyk; * 21. Mai 1984 in Brest, verheiratete Nadieżda Zięba) ist eine polnische Badmintonspielerin belarussischer Herkunft. Sportliche Karriere Nadieżda Kostiuczyk erntete ihre ersten Lorbeeren für Belarus, bevor sie 2002 nach Polen wechselte. Sie spielte für Polen auch bei Olympia 2008, wo sie im Mixed mit Robert Mateusiak 5. wurde. Auch bei der WM 2007 waren beide im ...

 

Marcel Correia Correia dengan Kaiserslautern pada 2010.Informasi pribadiNama lengkap Marcel CorreiaTanggal lahir 16 Mei 1989 (umur 35)Tempat lahir Kaiserslautern, Jerman BaratTinggi 1,86 m (6 ft 1 in)Posisi bermain Bek tengahInformasi klubKlub saat ini Eintracht BraunschweigNomor 25Karier junior1995–2008 1. FC KaiserslauternKarier senior*Tahun Tim Tampil (Gol)2008–2011 1. FC Kaiserslautern II 94 (4)2009–2010 1. FC Kaiserslautern 0 (0)2011– Eintracht Braunschweig 8...

GuignecourtcomuneGuignecourt – Veduta LocalizzazioneStato Francia RegioneAlta Francia Dipartimento Oise ArrondissementBeauvais CantoneMouy TerritorioCoordinate49°29′N 2°07′E49°29′N, 2°07′E (Guignecourt) Altitudine92 e 140 m s.l.m. Superficie4,65 km² Abitanti406[1] (2009) Densità87,31 ab./km² Altre informazioniCod. postale60480 Fuso orarioUTC+1 Codice INSEE60290 CartografiaGuignecourt Sito istituzionaleModifica dati su Wikidata · Manuale...

 

Discussion or informational site published on the internet Blogger redirects here. For the Google service, see Blogger (service). For other uses, see Blog (disambiguation). Journalism News Writing style (Five Ws) Ethics (code of ethics) Culture Objectivity News values Attribution Defamation Sensationalism Editorial independence Journalism school Index of journalism articles Areas Arts Business Data Entertainment Environment Fashion Medicine Music Politics Science Sports Technology Traffic Vid...