LatencyとThroughtputとBandwidthの違いがよく分からなかったので調べてみました.
# Latency
Latency measures delay. Delay is simply the time taken for a data packet to reach its destination after being sent.
- あるパケットAを地点Sから地点Tへ送ったときに何秒かかるか
round-tripで測ることが多い
- 「地点S -> 地点T -> 地点S」にかかる時間
Latencyが大きいとネットワークのパフォーマンスは悪いLatency大 -> 一つのパケットの伝送に要する時間が大きい
# Throughput
the amount of data able to be transmitted and received during a specific time period.
- 一定の時間幅で送受信できるデータの量
throughput provides a practical measurement of the actual delivery of packets.
- 理論値ではなくて実測値
よく使われる単位は
bits per second=bps- もしくは
packets per second
- もしくは
throughtputが落ちてるとネットワーク内でパケロスが発生しているかもしれない
# Bandwidth
the amount of data that can be transmitted and received during a specific period of time.
- 一定の時間幅で送受信できるデータの量
よく使われる単位は
bits per second=bpsgigabit per second=Gbpsmegabit per second=Mbps
high bandwidth doesn’t necessarily guarantee optimal network performance.
bandwidthが大きいことが即座にthroughtputが大きいことを意味するとは限らない.
Bandwidth measures capacity, not speed.
- 車で言うなら,「この車は時速500km出せます」は
bandwidth
- 車で言うなら,「この車は時速500km出せます」は
ISPが帯域でネットワークの性能を推してくることがこの誤解を広めてしまっているという指摘.
bandwidthが大きいネットワークを使えると,任意のタイミングで大きいデータを転送しようとすることができる,ということであって,その転送が瞬時に終わるということではない.
# Throughput vs Latency
ThroughtputとLatencyはコインの表裏みたいなものLatencyが大きければThroughputは小さいThroughputが小さければLatencyが大きいだろう
# Latency vs Bandwidth
LatencyもBandwidthもネットワークの性能を測る指標Latencyは土管の長さ- 土管が長ければデータが土管に入って抜けるまでに必要な時間が長くなる
Bandwidthは土管の直径- 土管の直径が大きくなれば一度により多くのデータを送れる
- しばしば「
Bandwidthが〇〇だからLatencyが△△」Bandwidthが大きいからLatencyが小さいBandwidthが小さいからLatencyが大きい
# Bandwidth vs Throughput
Bandwidthは土管の直径Throughtputはその土管に流れている水の量- bandwidth represents the theoretical measurement of the highest amount of data packets able to be transferred, and throughput represents the actual amount of packets successfully delivered.
Bandwidthは理論値,Throughtputは実測値.
