-
- Downloads
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:Dushyant Behl <dushyantbehl@in.ibm.com> * Add updated bpf bindings and protobuf Signed-off-by:
Dushyant Behl <dushyantbehl@in.ibm.com> * Add rtt to record.go and record_test.go and fix verifier issue Signed-off-by:
Dushyant Behl <dushyantbehl@in.ibm.com> * Add RTT to exported record as a time duration in protobuf Signed-off-by:
Dushyant Behl <dushyantbehl@in.ibm.com> * Add flowrtt to flowlogs-dump. Small changes to bpf rtt calculations. Signed-off-by:
Dushyant 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:
Dushyant Behl <dushyantbehl@users.noreply.github.com> * Reduce the flow_sequences map in size if its not used Signed-off-by:
Dushyant Behl <dushyantbehl@users.noreply.github.com> * Small changes and refactoring. Signed-off-by:
Dushyant Behl <dushyantbehl@users.noreply.github.com> * Change file structure and add more documentation on RTT patch Signed-off-by:
Dushyant Behl <dushyantbehl@users.noreply.github.com> --------- Signed-off-by:
Dushyant Behl <dushyantbehl@in.ibm.com> Signed-off-by:
Dushyant Behl <dushyantbehl@users.noreply.github.com>
Showing
- bpf/configs.h 1 addition, 0 deletionsbpf/configs.h
- bpf/flows.c 56 additions, 11 deletionsbpf/flows.c
- bpf/maps_definition.h 13 additions, 0 deletionsbpf/maps_definition.h
- bpf/rtt_tracker.h 87 additions, 0 deletionsbpf/rtt_tracker.h
- bpf/types.h 69 additions, 3 deletionsbpf/types.h
- bpf/utils.h 37 additions, 96 deletionsbpf/utils.h
- docs/config.md 2 additions, 0 deletionsdocs/config.md
- docs/rtt_calculations.md 27 additions, 0 deletionsdocs/rtt_calculations.md
- examples/flowlogs-dump/server/flowlogs-dump-collector.go 4 additions, 2 deletionsexamples/flowlogs-dump/server/flowlogs-dump-collector.go
- pkg/agent/agent.go 12 additions, 2 deletionspkg/agent/agent.go
- pkg/agent/config.go 4 additions, 0 deletionspkg/agent/config.go
- pkg/ebpf/bpf_bpfeb.go 12 additions, 1 deletionpkg/ebpf/bpf_bpfeb.go
- pkg/ebpf/bpf_bpfeb.o 0 additions, 0 deletionspkg/ebpf/bpf_bpfeb.o
- pkg/ebpf/bpf_bpfel.go 12 additions, 1 deletionpkg/ebpf/bpf_bpfel.go
- pkg/ebpf/bpf_bpfel.o 0 additions, 0 deletionspkg/ebpf/bpf_bpfel.o
- pkg/ebpf/tracer.go 44 additions, 15 deletionspkg/ebpf/tracer.go
- pkg/exporter/proto.go 3 additions, 0 deletionspkg/exporter/proto.go
- pkg/flow/record.go 9 additions, 3 deletionspkg/flow/record.go
- pkg/flow/record_test.go 3 additions, 0 deletionspkg/flow/record_test.go
- pkg/pbflow/flow.pb.go 58 additions, 41 deletionspkg/pbflow/flow.pb.go
Loading
Please register or sign in to comment