Community discussions

MikroTik App
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Possible bug in stats for SwOS 2.0 in CSS326 ?

Wed Jul 25, 2018 5:36 pm

I cant make heads or tails of the stats (Rx Bytes and Tx Bytes) I get from my two MikroTiks CSS326-24G-2S.

At first I couldn't explain some of the traffic in several ports and started to keep a record.
Then according to my records, the traffic in some of the ports decreased from one day to the other, by as much as 3GB.

As far as I know these aren't daily records, but accumulated over time, and there is no way to reset the count for just one port.

This are the records I have kept for the last three days :

Traffic.png
NB. Delta 1d is the difference with the previous day. Last data are taken 8 days from the last reset of the counters.


Is this a bug or have I got something completely wrong ?
You do not have the required permissions to view the files attached to this post.
Last edited by alfred998 on Mon Jul 30, 2018 4:06 pm, edited 1 time in total.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10219
Joined: Mon Jun 08, 2015 12:09 pm

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?  [SOLVED]

Wed Jul 25, 2018 5:48 pm

You are sure you are reading 64-bit values and not 32-bit which will wrap around when exceeding 4GB?
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Wed Jul 25, 2018 6:00 pm

I'm reading these two here. Not sure if they are 32/64-bit.
If there is a wrap around at 4GB, it could explain it completely. Is there another way to keep an eye on traffic using SwOS ?

Traffic-2.png
You do not have the required permissions to view the files attached to this post.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10219
Joined: Mon Jun 08, 2015 12:09 pm

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Wed Jul 25, 2018 7:13 pm

Of course you would use SNMP for that, but there are 32-bit and 64-bit values.
It may also help when you update the OS as quite a common fix listed in those release notes is to make those values 64-bits.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3005
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Wed Jul 25, 2018 7:16 pm

do you have the latest version of SW os?
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Thu Jul 26, 2018 12:06 am

SwitchOS 2.7 and below used 32 bits for the stats. Real easy to roll over. VERY likely what you are seeing. According to the release notes for 2.8 (just released) one of the changes:
*) use 64bit counters under Stats tab for byte accounting;
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Thu Jul 26, 2018 12:21 pm

How do I use SNMP to connect to SwOS ?

I was on SwOS 2.0 until now, and just upgraded one of the switches to 2.8. I will report back if the counter goes indeed beyond 4GB now.

Thx to all, I didn't think this would be solved.
 
alfred998
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Fri Apr 27, 2018 4:58 pm

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Thu Jul 26, 2018 4:45 pm

It's confirmed. The reason was a wrap around at 4GB because of a 32bit variable for the counters. In SwOS 2.8 it becomes 64bit and the counters make sense now.
This was really helpful.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Possible bug in stats for SwOS 2.0 in CSS326 ?

Thu Jul 26, 2018 5:37 pm

Happy I could help.

Who is online

Users browsing this forum: No registered users and 15 guests