Giter Club home page Giter Club logo

Comments (2)

robcowart avatar robcowart commented on June 1, 2024

While flow data (and other sources) provide source and destination IP addresses and ports, this is not usually how users think about network connections. Your question about http/https is a perfect example...

When your browser requests a web page it will send the request to the destination IP and port (e.g. 80) of the web server, while opening a random source port (usually a higher numbered port, for our example let's use 37777) on which it will listen for the response from the web server. So for the request to the web server we will have...

src_ip: IP_OF_BROWSER
src_port: 37777
dst_ip: IP_OF_WEBSERVER
dst_port: 80

When the webserver responds, the traffic is going the other way. So the web server is the source, and the browser is the destination. This means that the flows for the responses will be flipped around...

src_ip: IP_OF_WEBSERVER
src_port: 80
dst_ip: IP_OF_BROWSER
dst_port: 37777

This isn't how many people think about network traffic. Instead they think of the "server" as web server, the "client" as the browser and the "service" as HTTP. ElastiFlow uses a simple algorithm, based on IANA registered service names, to guess which end of the connection is the client and which is the server. It isn't always correct (you really need packet capture of session initiation to be 100% accurate) but it does a pretty good job in most cases.

This allows the data to be presented and analysed from the client/server perspective, rather than src/dest. The source and destination data is still there, so you have that option if you need it.

from elastiflow.

bluefangs avatar bluefangs commented on June 1, 2024

Thanks a lot for the explanation!

from elastiflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.