Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pouriyajamshidi/flat
Measure UDP and TCP connection latency for IPv4 and IPv6 using eBPF and Go
https://github.com/pouriyajamshidi/flat
c ebpf go ipv4 ipv6 latency-monitor tcp udp
Last synced: about 2 months ago
JSON representation
Measure UDP and TCP connection latency for IPv4 and IPv6 using eBPF and Go
- Host: GitHub
- URL: https://github.com/pouriyajamshidi/flat
- Owner: pouriyajamshidi
- License: gpl-3.0
- Created: 2023-04-23T18:05:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-12T13:32:04.000Z (2 months ago)
- Last Synced: 2024-10-19T01:48:35.184Z (2 months ago)
- Topics: c, ebpf, go, ipv4, ipv6, latency-monitor, tcp, udp
- Language: C
- Homepage:
- Size: 3.59 MB
- Stars: 20
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flat
Measure **UDP** and **TCP** flow latency for both **IPv4** and **IPv6** using `eBPF`.
This repo is the companion to my blog posts about eBPF at .
![flat in action](.images/flat.gif)
## Running The Program
Clone the repository.
```bash
git clone https://github.com/pouriyajamshidi/flat .
```Change directory to `flat`:
```bash
cd flat
```While at the root of project directory, to compile the **C** code and generate the helper functions, run:
```bash
go generate ./...
```Compile the **Go** program:
```bash
go build -ldflags "-s -w" -o flat cmd/flat.go
```Run it with elevated privileges:
```bash
# Replace eth0 with your desired interface name
sudo ./flat -i eth0
```## Acknolegments
Heavily inspired by [flowlat](https://github.com/markpash/flowlat).