[ARGUS] ARGUSBug Argus server occasionally generates an invalid meter DSR in a flow record
Carter Bullard
carter at qosient.com
Mon Mar 18 08:39:11 EDT 2019
Hey Joel,
Sorry for the delayed response.
A few things regarding your bug. The reason the errant flow record print previous record contents is because we don’t zero out the buffers as we read each record, so we can get the performance up. So we parse the record, update the new metrics dsr header, and then we don’t fill in any values, which leaves the data from the previous record in the buffer.
That is an easy fix, once we figure out why you’re putting a zero in the qualifier bit. Still working on that. Hopefully this week.
I’ve got 3.0.8.3 almost ready to put up, so the fixes will be there, but I’ll send you a diff with your fixes for testing.
Sorry for any inconvenience,
Carter
> On Feb 27, 2019, at 3:56 PM, Reed, Joel <reedjw at ornl.gov> wrote:
>
> Hey Carter,
>
> I have attached a binary argus file with the problem record. It was captured directly from Argus.
>
> When the record has been put in a file by itself, the bytes and packets are 0 like below. When the record is in the file with another record before it, the client prints the bytes and packet values from the previous record.
>
> $ ra -r prob_rec.argus
> StartTime Flgs Proto SrcAddr Sport SrcPkts SrcBytes Dir DstAddr Dport DstPkts DstBytes State
> 2019-02-27T10:33:36.493615 EST * * tcp 160.91.94.169.2049 0 0 ? 160.91.86.74.1023 0 0 CON
>
>
> All is well here. Hope all is well with you!
>
> Thanks,
> Joel
>
>
>
>
>
>> On Feb 27, 2019, at 2:14 PM, carter at qosient.com <mailto:carter at qosient.com> wrote:
>>
>> Hey Joel,
>> Can you send a binary argus file that has one of the records in it ??? Is this record coming directly from argus or is it coming from a client … radium.1 ???
>>
>> There is a lot of data compression going on with the Meter DSR, and the client library will attempt to pack the metrics into as little space as possible, such that, if all the values are less than 256, then all the metrics are reported as a char array. I suspect that the Meter DSR has been compressed, but the final type description is getting dropped.
>>
>> What do the argus-clients do with this record … do they print out anything at all or do they jump past this DSR ???
>> Hope all is going well down in Tennesseeeeeeeeeee land !!!!
>>
>> Carter
>>
>>
>>> On Feb 27, 2019, at 2:01 PM, Reed, Joel via Argus-info <argus-info at lists.andrew.cmu.edu <mailto:argus-info at lists.andrew.cmu.edu>> wrote:
>>>
>>> >Description:
>>> The Argus server occasionally generates a flow record with a meter DSR that is not properly parsed by the ra client. This causes the packet, byte, and appbytes counts to be incorrect, usually containing at least some count values from the previous flow record. Below I have included a partial dump of the of the problematic flow record. The meter DSR subtype 0x04 (includes app bytes) has a qualifier of 0x00. The meter DSR parser (common/argus_client.c:~2223) does not have a case to process a meter DSR subtype 0x04, qualifier of 0x00.
>>>
>>> Partial hex dump of the flow record:
>>>
>>> 01: 13 20 00 39 -- Type 0x10 (FAR), version 3, 0x20 continuation, length 0x39
>>> 02: 01 03 00 03 -- Transport DSR
>>> 03: 00 00 00 00 |
>>> 04: e1 12 61 ff |
>>> 05: 02 01 01 05 -- Flow DSR
>>> 06: a0 5b 56 4a |
>>> 07: a0 5b 5e a9 |
>>> 08: 06 00 03 ff |
>>> 09: 08 01 00 00 |
>>> 0a: 03 02 18 05 -- Time DSR
>>> 0b: 5c 76 ad d0 |
>>> 0c: 00 07 88 2f |
>>> 0d: 5c 76 ad f0 |
>>> 0e: 00 05 41 67 |
>>> 0f: 10 04 00 05 -- Meter DSR, subtype 0x04, qualifier 0x00, length 0x05
>>> 10: 30 00 00 01 |
>>> 11: 40 00 01 02 |
>>> 12: 01 f4 00 00 |
>>> 13: 48 00 01 02 |
>>> 14: 30 05 00 1e -- Network DSR
>>> 15: ...
>>>
>>> >How-To-Repeat:
>>> Unknown. We see approximately one of these per hour.
>>>
>>> >Fix:
>>> Unknown.
>>>
>>> >Originator: Joel Reed <reedjw at ornl.gov <mailto:reedjw at ornl.gov>>
>>> >Organization:
>>> ORNL
>>> >ARGUS support: none
>>> >Release: argus-3.0
>>> >Product: argus
>>> >Synopsis: Argus server occasionally generates an invalid meter DSR in a flow record
>>> >Class: sw-bug
>>> >Severity: non-critical
>>> >Priority: low
>>>
>>> >Environment:
>>>
>>> ARGUS: Argus Version 3.0.8.2
>>> RA: Ra Version 3.0.8.2
>>>
>>
>
> <prob_rec.argus>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20190318/1ae64783/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4065 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20190318/1ae64783/attachment.bin>
More information about the argus
mailing list