Share to: share facebook share twitter share wa share telegram print page

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 source to 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

External links

Baca informasi lainnya yang berhubungan dengan : article

Article 19 Article 20

Read other articles:

United States historic placeCamp Delta – Delta ResortU.S. National Register of Historic Places Show map of MichiganShow map of the United StatesLocation17049 Foote Lake Rd.Garden Township, MichiganCoordinates46°9′27″N 86°29′28″W / 46.15750°N 86.49111°W / 46.15750; -86.49111NRHP reference No.100000935[1]Added to NRHPMay 1, 2017 Camp Delta, also known as the Delta Resort is a resort located at 17049 Foote Lake Road in Garden Township, Michiga…

Untuk seni bela diri dari Korea, lihat Subak (bela diri). Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Subak – berita · surat kabar · buku · cendekiawan · JSTOR Sawah berundak di Jatiluwih, Bali. Subak adalah organisasi kemasyarakatan yang khusus mengatur …

Der Titel dieses Artikels ist mehrdeutig. Zur US-amerikanischen Filmproduzentin siehe Colette Sandstedt. Sandstedt Saans (niederdeutsch)Vorlage:Infobox Ortsteil einer Gemeinde in Deutschland/Wartung/Alternativname Gemeinde Hagen im Bremischen Wappen von Sandstedt Koordinaten: 53° 22′ N, 8° 31′ O53.3618.51701388888890Koordinaten: 53° 21′ 40″ N, 8° 31′ 1″ O Höhe: 0 m ü. NHN Fläche: 13,45 km²[1] Einwoh…

«Портрет принцеси» Portrait d'une jeune princesse Автор Пізанелло Час створення 1435—1440 Розміри 43 × 30 Матеріал дерево, темпера Місцезнаходження Лувр (Париж) «Портрет принцеси» — картина, що приписується італійському художнику раннього кватроченто Пізанелло. Ймовірно, вона була ство

Hánuman en su carro, una escena del Ramakien en el Templo del Buda de Esmeralda, Bangkok. Parte del mural en el Templo del Buda de Esmeralda El Ramakien (en tailandés: รามเกียรติ์, RSGTS: Rammakian, pronunciado [rāːm.mā.kīa̯n]; literalmente Gloria de Rama; a veces también se escribe Ramakian) es una de las epopeyas nacionales de Tailandia,[1]​ derivada de la epopeya hindú Ramayana.[2]​[3]​ Ramakien es una parte importante del canon de la literatur…

Belize op de Olympische Spelen Land Belize IOC-landcode BIZ (in 1968 en 1972 als HBR) NOC Belize Olympic and Commonwealth Games Association Olympische Zomerspelen 2012 in Londen Vlaggendrager Kenneth Medwood Aantal deelnemers 3 Aantal disciplines 2 Medailles goud0 zilver0 brons0 totaal0 Belize op de Zomerspelen 1968* · 1972* · 1976 · 1980 · 1984 · 1988 · 1992 · 1996 · 2000 · 2004 · 2008 · 2012 · 2016 · 2020*Als Brits-Honduras Portaal    Olympische Spelen Belize …

?Чорна котяча акула широкорота Охоронний статус Даних недостатньо (МСОП 3.1) Біологічна класифікація Домен: Ядерні (Eukaryota) Царство: Тварини (Animalia) Підцарство: Справжні багатоклітинні (Eumetazoa) Тип: Хордові (Chordata) Підтип: Черепні (Craniata) Надклас: Щелепні (Gnathostomata) Клас:

The standard The personal standard of Adolf Hitler (German: Führerstandarte or Standarte des Führers) was a square red banner of arms with a black swastika on a white disc inside a central wreath of golden oak leaves and four Nazi eagles in the corners. It typically indicated the presence of Adolf Hitler at official events and was displayed in the form of a hoisted flag, small car flag, and so on. Hitler introduced the standard after German president Paul von Hindenburg died in August 1934, al…

2020 Indian film festival 51st International Film Festival of IndiaOpening filmAnother RoundClosing filmWife of a SpyLocationDr. Shyama Prasad Mukherjee Indoor Stadium at Panaji, Goa, IndiaFounded1952Awards Lifetime Achievement Award: (Vittorio Storaro) Golden Peacock-Best Film: Into the Darkness Silver Peacock Best Director: Chen-Nien Ko Best Actor: Tzu-Chuan Liu Best Actress: Zofia Stafiej ICFT INESCO Gandhi Medal: 200 Meters by Ameen Nayfeh Hosted byGovernment of Goa Directorate of Film Festi…

Louise van Savoye Louise van Savoye (28 december 1462 — Orbe, 24 juli 1503) was een prinses uit het huis Savoye die haar privileges opgaf om clarissenzuster te worden. Ze werd zalig verklaard door de rooms-katholieke kerk. Levensloop Louise was de derde dochter van hertog Amadeus IX van Savoye uit diens huwelijk met Yolande van Valois, zus van koning Lodewijk XI van Frankrijk. Via haar moeder was ze een verre afstammeling van de heilige Elisabeth van Thüringen. Haar vader was een heel vrome h…

Bagian dari seri artikel mengenaiRelativitas umum G μ ν + Λ g μ ν = 8 π G c 4 T μ ν {\displaystyle G_{\mu \nu }+\Lambda g_{\mu \nu }={8\pi G \over c^{4}}T_{\mu \nu }} PengantarSejarah Rumus matematis SumberUji coba Prinsip dasar Teori relativitas Kerangka acuan Kerangka acuan inersia Prinsip ekuivalensi Ekuivalensi massa–energi Relativitas khusus Garis dunia Geometri Riemann Fenomena Masalah Kepler Gravitasi Medan gravitasi Lensa gravitas…

Letak Dongguan di Guangdong Dongguan merupakan nama kota di Tiongkok. Letaknya di bagian tenggara. Tepatnya di provinsi Guangdong, Tiongkok. Pada tahun 2004, kota ini memiliki jumlah penduduk sebanyak 1.619.700 jiwa dengan memiliki luas wilayah 2.465 km². Kota ini memiliki angka kepadatan penduduk sebesar 3045 jiwa/km². Prefektur ini terdiri dari 25 kota. Pembagian Administrasi Distrik Dongcheng (东城区) Distrik Wanjiang (万江区) Distrik Nancheng (南城区) Pranala luar Wikimedia C…

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: Caterham 7 CSR – news · newspapers · books · scholar · JSTOR (January 2019) (Learn how and when to remove this template message)Motor vehicle CSR 200/260Caterham CSR260OverviewManufacturerCaterham Cars LtdBody and chassisLayoutLongitudinal front-engine, rear-wheel…

American sitcom For the 1995 Hong Kong film, see The Golden Girls (film). For other uses, see Golden Girl (disambiguation). The Golden GirlsGenreSitcomCreated bySusan HarrisStarring Bea Arthur Betty White Rue McClanahan Estelle Getty Theme music composerAndrew GoldOpening themeThank You for Being a Friend,performed by Cynthia FeeEnding themeThank You for Being a Friend (instrumental)ComposerGeorge TiptonCountry of originUnited StatesOriginal languageEnglishNo. of seasons7No. of episodes180 (list…

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: Postage stamps and postal history of Denmark – news · newspapers · books · scholar · JSTOR (September 2011) (Learn how and when to remove this template message) You can help expand this article with text translated from the corresponding article in Russian. (…

アンドルー・テイラー カーディフ時代(2011年)名前本名 Andrew Derek Taylorアンドルー・デレク・テイラー基本情報国籍 イングランド生年月日 (1986-08-01) 1986年8月1日(37歳)出身地 ハートルプール身長 178cm体重 69kg選手情報ポジション DF (LB)利き足 左足ユース0000-2004 ミドルズブラクラブ1年 クラブ 出場 (得点)2004-2011 ミドルズブラ 125 (3)2005-2006 → ブラッドフォード (loan) 24 (0)201…

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) 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: Maa Inti Premayanam – news · newspapers · books · scholar · JSTOR (April 2019) (Learn how and when to remove t…

2011 film FootnoteInternational festival posterDirected byJoseph CedarWritten byJoseph CedarProduced byDavid MandilMoshe EderyLeon EderyStarringShlomo Bar AbaLior AshkenaziCinematographyYaron ScharfEdited byEinat Glaser ZarhinMusic byAmit PoznanskyProductioncompaniesUnited King Films [he]Movie PlusDistributed byUnited King FilmsRelease dates 14 May 2011 (2011-05-14) (Cannes) 2 June 2011 (2011-06-02) (Israel) Running time107 minutesCountryIsraelL…

River in the United StatesClearwater RiverThe Clearwater River in Clearwater, MinnesotaLocationCountryUnited StatesPhysical characteristicsSource  • locationMinnesota The Clearwater River is a 43.4-mile-long (69.8 km)[1] tributary of the Mississippi River in central Minnesota, United States. It rises in southern Stearns County and flows south into Meeker County, passing the town of Watkins. It turns east and enters a chain of lakes, eventually becoming the …

Siklus menstruasi Fase luteal adalah tahap akhir siklus menstruasi (pada manusia dan beberapa hewan lainnya) atau pada tahap awal siklus estrus (pada mamalia-mamalia berplasenta lainnya). Tahap ini dimulai dengan pembentukan corpus luteum dan dapat berujung pada kehamilan atau luteolisis. Hormon utama pada tahap ini adalah progesteron, dan kadarnya jauh lebih tinggi pada tahap luteal bila dibandingkan dengan tahap-tahap lain.[1] Lawan dari fase luteal adalah fase folikular. Referensi ^ B…

Kembali kehalaman sebelumnya