Cisco Systems Convert bytes to MB on cisco router

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Convert bytes to MB on cisco router tlanum 03-29-06
Posted by on March 29, 2006, 3:59 pm
Please log in for more thread options
when doing a sho int atm and looking at the output.

Example

143849529 packets input, 129326779238 bytes
125183986 packets output, 29173768997 bytes
there is a way to convert this to actual Mb/s

Does someone know the calculation to achieve this


Posted by Arnold Nipper on March 29, 2006, 4:54 pm
Please log in for more thread options
On 29.03.2006 22:59 tlanum@yahoo.com wrote

> when doing a sho int atm and looking at the output.
>
> Example
>
> 143849529 packets input, 129326779238 bytes
> 125183986 packets output, 29173768997 bytes
> there is a way to convert this to actual Mb/s
>
> Does someone know the calculation to achieve this
>

Take the minimum of 'Last clearing of "show interface" counters' and
'uptime' and do the math,


--
Arnold Nipper, AN45

Posted by Walter Roberson on March 29, 2006, 5:01 pm
Please log in for more thread options
>when doing a sho int atm and looking at the output.

>143849529 packets input, 129326779238 bytes
>125183986 packets output, 29173768997 bytes
>there is a way to convert this to actual Mb/s

>Does someone know the calculation to achieve this

On sufficiently new high-end devices you could probably
put together some TCL code that did the conversion for you.

The figures you gave are not enough information to calculate
Mb/s -- to calculate that, you need the time interval as
well as the volume difference.

You should decide "which" Mb/s you mean. Does your prefix 'M'
mean "million" (10^6), or does it mean the same "mega" that is
used to measure memory, 1024*1024*1024 (i.e., 2^30) ?

Also, because of inconsistant usage, you should decide if you
want megabits per second or megabytes per second.


I would suggest that possibly the easiest thing for you to do
would be to set up MRTG monitoring of the device, and let it
take the measurements and do the calculations and keep the nice
historical trend graphs. It usually isn't very useful to know
that the average traffic rate *since the device was last reset*
was something-or-other -- typically the low evening and weekend
figures distort those figures completely. You probably want to
get a good idea of what your peak rates are at various times:
MRTG and similar are great for that.

Posted by Merv on March 29, 2006, 6:42 pm
Please log in for more thread options
If you are just trying to get a traffic snapshot,
then clear the interface counters and then do
a show clock and a show interface together
(cut and paste from notepad)
wait several minutes and repeat. subtract the
traffic and the clock times and do the math.

you can also configure "load-interval 30" on the interface
and then it will give you traffic average for a 30 second period
as seen in the output of show interface


Posted by Joel Salminen on March 29, 2006, 9:52 pm
Please log in for more thread options
Short answer... there is 8 bits to 1 bytes.

Covert bits to bytes: divide the megabits by 8
Covert bytes to bits: multiple the megabytes by 8


> when doing a sho int atm and looking at the output.
>
> Example
>
> 143849529 packets input, 129326779238 bytes
> 125183986 packets output, 29173768997 bytes
> there is a way to convert this to actual Mb/s
>
> Does someone know the calculation to achieve this
>



Similar ThreadsPosted
Convert bytes to MB on cisco router March 29, 2006, 3:59 pm
Ratio of Bytes Delayed to Bytes Sent December 21, 2005, 3:08 pm
How to convert a fast ethernet interface in a Cisco Router to behave like a serial interface March 18, 2006, 8:48 am
Convert Cisco 857 to 857w? July 14, 2007, 9:42 am
MTU less than 1500 bytes on Cisco layer 3 switch October 25, 2005, 7:18 am
Cisco 851/%SYS-2-MALLOCFAIL: Memory allocation of 65536 bytes failed December 26, 2008, 10:28 am
Convert from 100 FX to 1000 SX January 25, 2006, 8:25 am
PIX VPN tunnel 0 bytes TX! July 28, 2006, 4:40 am
Cat6509 - Convert Hybrid to Native October 21, 2006, 1:38 am
Convert unstacked 3750's to stacked February 16, 2007, 11:38 am
Input & Output bytes question April 23, 2007, 8:24 pm
Priority Queue - Bytes, Kilobits Etc October 8, 2007, 12:16 pm
switch does not convert data transmission formats ? June 6, 2006, 2:21 pm
Convert Aironet 350 Access-Point to Bridge July 6, 2006, 12:28 am
Cant Ping with packets with MTU larger than 1518 Bytes May 24, 2009, 12:32 am
Residential Cabling Guide

Home Cabling Guide

Finally, an instantly downloadable book that saves you thousands in home improvement dollars! Enjoy living in 21st century technology-advanced home while increasing its selling value and competitive advantage on the real estate market. Whether your cabling is for home office or high-tech leisure, you can wire your home yourself or learn "wirish" to speak with your cabling contractors in their language!

Learn More