-
Notifications
You must be signed in to change notification settings - Fork 0
/
21.2. Latency Formula
22 lines (15 loc) · 1.62 KB
/
21.2. Latency Formula
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sure. Here is the formula for calculating latency:
```
Latency = (Propagation Delay + Transmission Delay + Processing Delay) / Data Rate
```
* **Propagation Delay** is the time it takes for a signal to travel from one point to another. It is determined by the distance between the two points and the speed of light.
* **Transmission Delay** is the time it takes for a signal to be transmitted over a medium. It is determined by the properties of the medium, such as its bandwidth and attenuation.
* **Processing Delay** is the time it takes for a device to process a signal. It is determined by the speed of the device's processor and the complexity of the signal.
* **Data Rate** is the speed at which data is transmitted over a medium. It is measured in bits per second (bps).
For example, if the propagation delay is 10 milliseconds, the transmission delay is 5 milliseconds, the processing delay is 2 milliseconds, and the data rate is 100 Mbps, then the latency would be:
```
Latency = (10 ms + 5 ms + 2 ms) / 100 Mbps = 17 ms
```
Latency can be affected by a number of factors, including the distance between the two points, the type of network, and the amount of traffic on the network. Latency can also be affected by the hardware and software used to transmit data.
Low latency is important for applications that require real-time communication, such as online gaming and video conferencing. High latency can cause delays and make these applications difficult to use.
There are a number of things that can be done to reduce latency, such as using a faster network, using a more direct route, and reducing the amount of traffic on the network.