Latency is a admeasurement of time adjournment accomplished in a system, the absolute analogue of which depends on the arrangement and the time getting measured. Latencies may accept altered acceptation in altered contexts.
Thursday, 29 March 2012
Packet-switched networks
Latency in a packet-switched arrangement is abstinent either one-way (the time from the antecedent sending a packet to the destination accepting it), or round-trip (the one-way cessation from antecedent to destination added the one-way cessation from the destination aback to the source). Round-trip cessation is added generally quoted, because it can be abstinent from a individual point. Agenda that annular cruise cessation excludes the bulk of time that a destination arrangement spends processing the packet. Abounding software platforms accommodate a account alleged ping that can be acclimated to admeasurement round-trip latency. Ping performs no packet processing; it alone sends a acknowledgment aback if it receives a packet (i.e. performs a no-op), appropriately it is a almost authentic way of barometer latency.
Where attention is important, one-way cessation for a hotlink can be added carefully authentic as the time from the alpha of packet manual to the alpha of packet reception.note 1
However, in a non-trivial network, a archetypal packet will be forwarded over abounding links via abounding gateways, anniversary of which will not activate to advanced the packet until it has been absolutely received. In such a network, the basal cessation is the sum of the minimum cessation of anniversary link, added the manual adjournment of anniversary hotlink except the final one, added the forwarding cessation of anniversary gateway. In practice, this basal cessation is added aggrandized by queuing and processing delays. Queuing adjournment occurs if a aperture receives assorted packets from altered sources branch appear the aforementioned destination. Since about alone one packet can be transmitted at a time, some of the packets have to chain for transmission, incurring added delay. Processing delays are incurred while a aperture determines what to do with a anew accustomed packet. A new and appearing behavior alleged Bufferbloat can aswell could cause added cessation that is an adjustment of consequence or more. The aggregate of propagation, serialization, queuing, and processing delays generally produces a circuitous and capricious arrangement cessation profile.
Where attention is important, one-way cessation for a hotlink can be added carefully authentic as the time from the alpha of packet manual to the alpha of packet reception.note 1
However, in a non-trivial network, a archetypal packet will be forwarded over abounding links via abounding gateways, anniversary of which will not activate to advanced the packet until it has been absolutely received. In such a network, the basal cessation is the sum of the minimum cessation of anniversary link, added the manual adjournment of anniversary hotlink except the final one, added the forwarding cessation of anniversary gateway. In practice, this basal cessation is added aggrandized by queuing and processing delays. Queuing adjournment occurs if a aperture receives assorted packets from altered sources branch appear the aforementioned destination. Since about alone one packet can be transmitted at a time, some of the packets have to chain for transmission, incurring added delay. Processing delays are incurred while a aperture determines what to do with a anew accustomed packet. A new and appearing behavior alleged Bufferbloat can aswell could cause added cessation that is an adjustment of consequence or more. The aggregate of propagation, serialization, queuing, and processing delays generally produces a circuitous and capricious arrangement cessation profile.
Fiber Optics
Latency is abundantly a action of the acceleration of light, which is 299,792,458 meters/second in vacuum. This would agree to a cessation of 3.33 microseconds for every kilometer of aisle length. The basis of refraction of a lot of fibre optic cables is about 1.5, acceptation that ablaze campaign about 1.5 times faster in a exhaustion than it does in the cable. This works out to about 4.9 microseconds of cessation for every kilometer. In beneath busline networks, the cessation achievement rises a bit added due to architecture risers and cross-connects and can accompany the cessation as top as 5 microseconds per kilometer. It follows that to annual cessation of a connection, one has to apperceive the ambit catholic by the fiber, which is rarely a beeline line, back it has to bisect geographic contours and obstacles, such as anchorage and railway tracks, as able-bodied as added rights-of-way. Due to imperfections in the fiber, ablaze degrades as it is transmitted through it. For distances of greater than 100 kilometers, either amplifiers or regenerators charge to be deployed. Accepted wisdomwho? has it that amplifiers add beneath cessation than regenerators, admitting in both cases it can be awful variable, and so needs to be taken into account. In particular, bequest spans are added acceptable to accomplish use of college cessation regenerators.
Satellite transmission
This is best illustrated if a newsreader in a flat talks to a anchorman bisected way about the world. The arresting campaign from the newsreader via advice agenda anchored in geosynchronous apogee to the anchorman and again goes all the way aback to geosynchronous apogee and again to the studio, consistent in a adventure of over one hundred thousand kilometers . This time lag is calmly noticeable. Even admitting the arresting campaign at the acceleration of light, it still requires about bisected a additional to biking that ambit (not including the abundant abate latencies central the communications equipment
).
Low-Earth apogee is sometimes acclimated to cut this delay, but at the amount of added complicated agenda tracking on the ground, and the amount of acute added satellites in the agenda afterlife to ensure connected coverage
.
Audio latency
Audio cessation is the adjournment amid if an audio arresting enters and if it emerges from a system. Potential contributors to cessation in an audio arrangement cover analog-to-digital conversion, buffering, agenda arresting processing, manual time, digital-to-analog about-face and the acceleration of complete in air.
).
Low-Earth apogee is sometimes acclimated to cut this delay, but at the amount of added complicated agenda tracking on the ground, and the amount of acute added satellites in the agenda afterlife to ensure connected coverage
.
Audio latency
Audio cessation is the adjournment amid if an audio arresting enters and if it emerges from a system. Potential contributors to cessation in an audio arrangement cover analog-to-digital conversion, buffering, agenda arresting processing, manual time, digital-to-analog about-face and the acceleration of complete in air.
Operational latency
Any alone workflow aural a arrangement of workflows can be accountable to some blazon of operational latency. It may even be the case that an alone arrangement may accept added than one blazon of latency, depending on the blazon of actor or goal-seeking behavior. This is best illustrated by the afterward two examples involving air travel
.
Consumer view
From the point of appearance of a passenger, cessation can be declared as follows. Suppose John Doe flies from London to New York. The cessation of his cruise is the time it takes him to go from his abode in England to the auberge he is blockage at in New York. This is absolute of the throughput of the London-New York air hotlink – whether there were 100 cartage a day authoritative the cruise or 10000, the cessation of the cruise would abide the same.
.
Consumer view
From the point of appearance of a passenger, cessation can be declared as follows. Suppose John Doe flies from London to New York. The cessation of his cruise is the time it takes him to go from his abode in England to the auberge he is blockage at in New York. This is absolute of the throughput of the London-New York air hotlink – whether there were 100 cartage a day authoritative the cruise or 10000, the cessation of the cruise would abide the same.
Mechanical latency
Any automated action encounters limitations modeled by Newtonian physics. The behavior of deejay drives provides an archetype of automated latency. Here, it is the time bare for the abstracts encoded on a bowl to circle from its accepted position to a position adjoining to the read-write arch as able-bodied as the seek time adapted for the actuator arm for the read-write arch to be positioned aloft the adapted track. This is aswell accepted as rotational cessation and seek time back the basal appellation cessation is aswell activated to the time adapted by a computer's electronics and software to accomplish polling, interrupts, and absolute anamnesis access.
Computer hardware and operating system latency
Computers run on a set of instructions alleged an executable. In operating systems, the beheading of the executable can be adjourned if added executables (a.k.a. processes) are aswell executing. In addition, the operating arrangement can agenda if to accomplish the activity that the executable is commanding. For example, accept a action commands that a computer card's voltage achievement be set high-low-high-low..etc. at a amount of 1000 Hz. The operating arrangement may accept to acclimatize the scheduling of anniversary alteration (high-low or low-high) based on an centralized clock. The cessation is the adjournment amid the executable apprenticeship advantageous the alteration and the accouterments in actuality transitioning the voltage from top to low or low to high.
On Microsoft Windows, it appearsoriginal research? that the timing of commands to accouterments is not exact. Empirical abstracts advance that Windows (using the Windows beddy-bye timer which accepts millisecond beddy-bye times) will agenda on a 1024 Hz alarm and will adjournment 24 of 1024 transitions per additional to accomplish an boilerplate of 1000 Hz for the amend rate.citation needed This can accept austere ramifications for discrete-time algorithms that await on adequately constant timing amid updates such as those begin in ascendancy theory. The beddy-bye action or agnate windows API were at no point advised for authentic timing purposes. Certain multimedia-oriented API routines like timeGetTime() and its ancestors accommodate bigger timing consistency. However, consumer- and server-grade Windows (as of 2011 those based on NT kernel) were not to be real-time operating systems. Drastically added authentic timings could be accomplished by application committed accouterments extensions and control-loop cards.
Linux may accept the aforementioned problems with scheduling of accouterments I/O.citation needed The botheration in Linux is mitigated by the actuality that the operating arrangement kernel's action scheduler can be replaced by a real-time scheduler.
On anchored systems, the real-time beheading of instructions is accepted from the low-level anchored operating system.
On Microsoft Windows, it appearsoriginal research? that the timing of commands to accouterments is not exact. Empirical abstracts advance that Windows (using the Windows beddy-bye timer which accepts millisecond beddy-bye times) will agenda on a 1024 Hz alarm and will adjournment 24 of 1024 transitions per additional to accomplish an boilerplate of 1000 Hz for the amend rate.citation needed This can accept austere ramifications for discrete-time algorithms that await on adequately constant timing amid updates such as those begin in ascendancy theory. The beddy-bye action or agnate windows API were at no point advised for authentic timing purposes. Certain multimedia-oriented API routines like timeGetTime() and its ancestors accommodate bigger timing consistency. However, consumer- and server-grade Windows (as of 2011 those based on NT kernel) were not to be real-time operating systems. Drastically added authentic timings could be accomplished by application committed accouterments extensions and control-loop cards.
Linux may accept the aforementioned problems with scheduling of accouterments I/O.citation needed The botheration in Linux is mitigated by the actuality that the operating arrangement kernel's action scheduler can be replaced by a real-time scheduler.
On anchored systems, the real-time beheading of instructions is accepted from the low-level anchored operating system.
Latency in simulators and simulation
In simulation applications, 'latency' refers to the time delay, commonly abstinent in milliseconds (1/1,000 sec), amid antecedent ascribe and an achievement acutely apparent to the actor abecedarian or actor subject. Cessation is sometimes aswell alleged carriage delay.
Some authorities analyze amid cessation and carriage adjournment by application the appellation 'latency' in the faculty of the added time adjournment of a arrangement over and aloft the acknowledgment time of the car getting simulated, but this requires a abundant ability of the car dynamics and can be controversial.
Importance of Motion and Beheld Latencies. In simulators with both beheld and motion systems, it is decidedly important that the cessation of the motion arrangement not be greater than of the beheld system, or affection of actor affection may result. This is because in the absolute world, motion cues are those of dispatch and are bound transmitted to the brain, about in beneath than 50 milliseconds; this is followed some milliseconds afterwards by a acumen of change in the beheld scene. The beheld arena change is about one of change of angle and/or displacement of altar such as the horizon, which takes some time to body up to apparent amounts afterwards the antecedent dispatch which acquired the displacement. A actor should accordingly reflect the real-world bearings by ensuring that the motion cessation is according to or beneath than that of the beheld arrangement and not the added way round
Some authorities analyze amid cessation and carriage adjournment by application the appellation 'latency' in the faculty of the added time adjournment of a arrangement over and aloft the acknowledgment time of the car getting simulated, but this requires a abundant ability of the car dynamics and can be controversial.
Importance of Motion and Beheld Latencies. In simulators with both beheld and motion systems, it is decidedly important that the cessation of the motion arrangement not be greater than of the beheld system, or affection of actor affection may result. This is because in the absolute world, motion cues are those of dispatch and are bound transmitted to the brain, about in beneath than 50 milliseconds; this is followed some milliseconds afterwards by a acumen of change in the beheld scene. The beheld arena change is about one of change of angle and/or displacement of altar such as the horizon, which takes some time to body up to apparent amounts afterwards the antecedent dispatch which acquired the displacement. A actor should accordingly reflect the real-world bearings by ensuring that the motion cessation is according to or beneath than that of the beheld arrangement and not the added way round
Subscribe to:
Posts (Atom)