Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ookla: rework detection #1922

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Ookla: rework detection #1922

merged 1 commit into from
Mar 30, 2023

Commits on Mar 30, 2023

  1. Ookla: rework detection

    The logic of the LRU cache has been changed: once we know an ip has
    connected to an Ookla server, all the following (unknown) flows (for
    a short time interval) from the same ip to the port 8080 are treated
    as Ookla ones.
    
    Most of the changes in this commit are about introducing the concept of
    "aggressive detection". In some cases, to properly detect a
    protocol we might use some statistical/behavior logic that, from one
    side, let us to identify the protocol more often but, from the other
    side, might lead to some false positives.
    To allow the user/application to easily detect when such logic has been
    triggered, the new confidence value `NDPI_CONFIDENCE_DPI_AGGRESSIVE` has been
    added.
    It is always possible to disable/configure this kind of logic via the
    API.
    
    Detection of Ookla flows using plain TLS over port 8080 is the first
    example of aggressive detection in nDPI.
    
    Tested with:
    * Android 9.0 with app 4.8.3
    * Ubuntu 20.04 with Firefox 110
    * Win 10 with app 1.15 and 1.16
    * Win 10 with Chrome 108, Edge 108 and Firefox 106
    IvanNardi committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    e234e35 View commit details
    Browse the repository at this point in the history