Comments (1)
Proposal:
Create an enum in the Flow class like the following:
Enum ConnectionState { NO_STATE, S0, S1, … }
In the Flow::updateTcpFlags method, a method named 'select_connection_state' will be called with parameters for the variables (src2dst_tcp_flags, dst2src_tcp_flags). The 'select_connection_state' method will select one of the states mentioned before by checking the current TCP flags in the src2dst_tcp_flags and dst2src_tcp_flags with the following logic:
S0: Only SYN in src2dst_tcp_flags; no flags in dst2src_tcp_flags
S1: 3whs ok and no FIN in src2dst_tcp_flags and no RST src2dst_tcp_flags
SF: 3whs and FIN src2dst_tcp_flags and FIN src2dst_tcp_flags
REJ: SYN in src2dst_tcp_flags and RST in dst2src_tcp_flags
S2: Was S1 and FIN in src2dst_tcp_flags and no FIN in dst2src_tcp_flags
S3: Was S1 and FIN in dst2src_tcp_flags and no FIN in src2dst_tcp_flags
RSTO: Was S1 and RST in src2dst_tcp_flags
RTSR: RST in dst2src_tcp_flags
RSTOS0: SYN and RST in src2dst_tcp_flags; no SYN+ACK in dst2src_tcp_flags
RSTRH: SYN+ACK and RST in dst2src_tcp_flags; no SYN in src2dst_tcp_flags
SH: SYN and FIN in src2dst_tcp_flags; no SYN+ACK in dst2src_tcp_flags
SHR: SYN+ACK and FIN in dst2src_tcp_flags; no SYN in src2dst_tcp_flags
OTH: NO SYN in src2dst_tcp_flags and NO SYN in dst2src_tcp_flags
After the selection of the connection state, the 'select_connection_state' method will update the new variable of the Flow class ConnectionState currentConnectionState
.
from ntopng.
Related Issues (20)
- [nEdge] Add support for external captive portal login
- Can't install ntop: 404 on buster_pi arm64 (ipv6) HOT 2
- GTP flows in 5G pcap only show unidirectional HOT 2
- Feature request: Alert when a certain VLAN reaches a certain user defined throughput threshold HOT 6
- Apply button is disabled HOT 2
- Custom protocol not handled properly HOT 1
- NtopNG ZC interface queue goes to 100% CPU and starts dropping all packets HOT 11
- Interface ID is missing in Hourly flows HOT 2
- Potential issue with jumbo frame capture HOT 4
- Unable to get timeseries data HOT 2
- Network Discovery not populating HOT 1
- Alert Category is Empty HOT 8
- Extend Preferences with Message Broker HOT 1
- The "Local traffic Rule" throughput calculation looks like strange HOT 4
- Host Historical Time Series not Populating Traffic RX/TX Graph HOT 11
- Daily Traffic Report uses Custom option which does not exist HOT 15
- ntopng UI is extremly slow HOT 2
- Remove the column "SNMP Device" when Monitoring a Single SNMP Host
- SNMP Interfaces: VLAN is Not Centered
- Add Search in SNMP Interfaces HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntopng.