請問如何根據MRTG流量圖表計算月總流量?(有附圖)



贊助商連結


阿敏
2009-04-28, 12:24 AM
以下是 MRTG 的流量圖表,分成每日、每周、每月。
請問根據這些圖表,如何計算出每月到底用了多少GB的流量?有沒有超過500GB?請多多指教。謝謝。

http://img13.imageshack.us/img13/4258/20090427mrtg.jpg

贊助商連結


tvirus
2009-04-28, 12:34 AM
看Monthly的Average
乘上時間就是了

阿敏
2009-04-28, 10:25 AM
謝謝樓上 tvirus 的回答。是不是這樣計算月總流量?

月總流量 = (Monthly Average In + Monthly Average Out) x 12 hours x 30 days
= (511.1kb/s + 625.4kb/s) x 12 x 30
= 1136.5 x 12 x 30
= 409140 kb/s

這不是連1G都不到嗎?

還有,綠色是上傳、藍色是下載嗎?

website.com.tw
2009-04-28, 11:45 AM
依照您的算法因該是這樣子
月總流量 = (Monthly Average In + Monthly Average Out) x 60sec x 60 minutes x 24 hours x 30 days
= (511.1kb/s + 625.4kb/s) x 60 x 60 x 24 x 30
= 2945808000

bit 轉 byte 轉 gbyte
2945808000 / 8 / 1000 / 1000
= 368.226GB

一般來說流量不是這樣算,因為您這這樣只能算出個大概值
我建議你還是去詢問您的主機商,看他們流量怎麼算
因為您的流量突波很頻繁

tvirus
2009-04-28, 12:11 PM
謝謝樓上 tvirus 的回答。是不是這樣計算月總流量?

月總流量 = (Monthly Average In + Monthly Average Out) x 12 hours x 30 days
= (511.1kb/s + 625.4kb/s) x 12 x 30
= 1136.5 x 12 x 30
= 409140 kb/s

這不是連1G都不到嗎?

還有,綠色是上傳、藍色是下載嗎?
那個Average都已經是xxxxKBits/second了
單位你算錯了 XD
上下傳通常是以"主機"為角度來看
In:傳輸進主機
Out:從主機傳輸出去

不過這算起來的確只是個"參考值"(至少是個主機的有記錄的傳輸量)
"通常"就真的是這樣的值

阿敏
2009-04-30, 12:14 PM
謝謝以上兩位的回覆,我已問過我的主機商,這是他的回答,但還是不很明白,他是以「高峰流量」來計算的嗎?可以幫忙翻譯一下嗎?謝謝。

Port traffic readings are taken from your network port and the graph is updated every 5 minutes. Please note, since our monitoring servers are located inside our network, the monitoring data as you see in the graph is reversed. Actually blue graph is inbound and green graph is outbound. This monitoring system shows the traffic in Kbps or Mbps. We translate this to Gigabytes per month Bandwidth usage using a formula of:
======
1024 Kbps (1 Mbps) of peak usage at 95th percentile = 330 Gigabytes per month.
======
So if you have 1200 Gigabytes of Bandwidth allocated to your server we expect your peak usage to stay around 3.6 Mbps or less. For billing
purposes your usage is calculated at 95th percentile of the peak
readings. This means we remove the highest 5% of the readings in a
given month (432 highest readings = 36 hours), before determining your peak usage for the month.
---------------------------------------------------

如果每月流量只有 750G,那麼依照以上的圖表,是夠還是不夠呢?