iot-lab / aggregation-tools

Tools to aggregate iot-lab nodes tcp outputs.
Other
3 stars 7 forks source link

sniffer_aggregator negative timestamp #15

Closed schrein closed 2 years ago

schrein commented 3 years ago

With version 2.0.0 of sniffer_aggregator, there's an issue with negative timestamp for pcap format:

   1   0.000000   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    2   0.033680   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    3   0.067360   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    4   0.101536   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    5   0.135232   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    6   0.168912   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    7   0.203088   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    8   0.236784   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    9   0.270464   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   10   0.304640   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   11   0.338336   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   12   0.372016   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   13   0.406192   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   14   0.439888   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   15   0.473568   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   16   0.507264   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   17   0.540944   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   18  -1.769632   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   19  -1.735936   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   20  -1.702256   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   21  -1.668560   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   22  -1.634880   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   23  -1.601184   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   24  -1.567504   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   25  -1.533808   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   26  -1.500128   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   27  -1.466432   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   28  -1.432752   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   29  -1.399056   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   30  -1.365376   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   31  -1.331680   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   32  -1.298000   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   33  -1.264320   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   34  -1.230624   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   35  -2.732912   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   36  -2.665536   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   37  -2.631840   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   38  -2.598160   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   39  -2.564464   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   40  -2.530784   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   41  -2.463408   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   42  -2.429232   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   43  -2.395552   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   44  -2.361856   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   45  -2.327680   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   46  -2.260304   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   47  -2.226624   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   48  -2.192928   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   49  -2.042560   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   50  -2.008880   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   51   2.024816   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   52   2.058496   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   53   2.125872   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   54   2.159568   fe80::9890 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)

Testing with previous version 1.6.0, the timeline is correct:

 1   0.000000   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    2   0.002106   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    3   0.004211   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    4   0.006317   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    5   0.008422   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    6   0.010528   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    7   0.012633   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    8   0.014739   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
    9   0.016844   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   10   0.018950   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   11   0.021055   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   12   0.023161   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   13   0.025266   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   14   0.027371   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   15   0.029477   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   16   0.031582   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   17   0.033688   fe80::9588 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   18   1.909478   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   19   1.911583   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   20   1.913689   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   21   1.915794   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   22   1.917930   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   23   1.920035   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   24   1.922141   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   25   1.924277   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   26   1.926382   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   27   1.928488   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   28   1.930624   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   29   1.932729   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   30   1.934835   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   31   1.936971   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   32   1.939076   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   33   1.941182   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   34   1.943318   fe80::b385 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   35   2.877871   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   36   2.879977   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   37   2.882082   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   38   2.884188   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   39   2.886293   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   40   2.888399   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   41   2.890504   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   42   2.892609   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   43   2.894715   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   44   2.896851   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   45   2.898956   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   46   2.901062   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   47   2.903198   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   48   2.905303   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   49   2.907409   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   50   2.909514   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
   51   2.911620   fe80::9687 → ff02::1a     ICMPv6 27 RPL Control (DODAG Information Solicitation)
fkerem commented 3 years ago

Yes, I have the same issue as well.

fsaintma commented 3 years ago

HI @schrein, Can you test with this #16 PR which fix Pcap timestamp and if you confirm me that it's ok I will publish an aggregation_tools bugfix release code with it.

fkerem commented 3 years ago

When I try to run it with Python2, it says ImportError: No module named iotlabcli. I can confirm that the issue has resolved when Python3 is used @fsaintma, thanks! There are no any negative timestamps now.

fkerem commented 3 years ago

Today, I was experimenting with 1 BR and 1 hello-world example node and saw that there is one negative timestamp in the pcap. I was using fix-timestamp branch of your PR @fsaintma :/

image
schrein commented 3 years ago

I think for the early messages it’s normal because of relative time stamp of both remote sniffer .

-- Guillaume

Le 15 avr. 2021 à 13:12, Kerem Örs @.***> a écrit :

 Today, I was experimenting with 1 BR and 1 hello-world example node and saw that there is one negative timestamp in the pcap. I was using fix-timestamp branch of your PR @fsaintma :/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

fkerem commented 3 years ago

Oh, OK then. Not an issue :) Thanks! @schrein