Skip to content
Snippets Groups Projects
Unverified Commit 1b85351e authored by Dushyant Behl's avatar Dushyant Behl Committed by GitHub
Browse files

NETOBSERV-1112: Add TCP RTT calculation to ebpf-agent and userspace. (#117)


* Add TCP Handshake based RTT calculator in ebpf by keeping track of
handshake SYN and ACK packets.

Introduces a new ebpf map for tracking incoming and outgoing packets for
RTT. Can be extended to any other way of TCP sequence tracking like TCPSecr/TCPval,
or continous TCP latency tracking and other protocols like ICMP etc.

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>

* Add updated bpf bindings and protobuf

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>

* Add rtt to record.go and record_test.go and fix verifier issue

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>

* Add RTT to exported record as a time duration in protobuf

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>

* Add flowrtt to flowlogs-dump.
Small changes to bpf rtt calculations.

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>

* Add documentation on how rtt is calculated.

* Add a switch for the RTT calculation feature.
This feature will be disabled by default and can be enabled via an
environment variable ENABLE_RTT.

Signed-off-by: default avatarDushyant Behl <dushyantbehl@users.noreply.github.com>

* Reduce the flow_sequences map in size if its not used

Signed-off-by: default avatarDushyant Behl <dushyantbehl@users.noreply.github.com>

* Small changes and refactoring.

Signed-off-by: default avatarDushyant Behl <dushyantbehl@users.noreply.github.com>

* Change file structure and add more documentation on RTT patch

Signed-off-by: default avatarDushyant Behl <dushyantbehl@users.noreply.github.com>

---------

Signed-off-by: default avatarDushyant Behl <dushyantbehl@in.ibm.com>
Signed-off-by: default avatarDushyant Behl <dushyantbehl@users.noreply.github.com>
parent 27baf291
No related branches found
No related tags found
Loading
Showing
with 453 additions and 175 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment