Featured image of post Latency vs Throughput vs Bandwidth

Latency vs Throughput vs Bandwidth

LatencyThroughtputBandwidthの違いがよく分からなかったので調べてみました.

# 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 = bps

    • gigabit per second = Gbps
    • megabit per second = Mbps
  • high bandwidth doesn’t necessarily guarantee optimal network performance.

    • bandwidthが大きいことが即座にthroughtputが大きいことを意味するとは限らない.
  • Bandwidth measures capacity, not speed.

    • 車で言うなら,「この車は時速500km出せます」はbandwidth
  • ISPが帯域でネットワークの性能を推してくることがこの誤解を広めてしまっているという指摘.

  • bandwidthが大きいネットワークを使えると,任意のタイミングで大きいデータを転送しようとすることができる,ということであって,その転送が瞬時に終わるということではない.

# Throughput vs Latency

  • ThroughtputLatencyはコインの表裏みたいなもの
  • Latencyが大きければThroughputは小さい
  • Throughputが小さければLatencyが大きいだろう

# Latency vs Bandwidth

  • LatencyBandwidthもネットワークの性能を測る指標
  • 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は実測値.

# refs

Hugo で構築されています。
テーマ StackJimmy によって設計されています。