{"id":22889200,"url":"https://github.com/ebpfcca/ebpfcca","last_synced_at":"2026-04-26T12:32:56.774Z","repository":{"id":261302613,"uuid":"873967531","full_name":"ebpfcca/ebpfcca","owner":"ebpfcca","description":"🐝 Evaluating eBPF as a Platform for Congestion Control Algorithm Implementation","archived":false,"fork":false,"pushed_at":"2024-12-13T16:39:39.000Z","size":2340,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T08:43:24.036Z","etag":null,"topics":["congestion-control","ebpf","linux","tcp"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ebpfcca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T02:59:40.000Z","updated_at":"2024-12-13T16:39:43.000Z","dependencies_parsed_at":"2024-11-05T20:37:55.876Z","dependency_job_id":"768cf9ef-1a8e-4d7f-84db-c4f401742768","html_url":"https://github.com/ebpfcca/ebpfcca","commit_stats":null,"previous_names":["claby2/ebpfcca","ebpfcca/ebpfcca"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ebpfcca/ebpfcca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebpfcca%2Febpfcca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebpfcca%2Febpfcca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebpfcca%2Febpfcca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebpfcca%2Febpfcca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ebpfcca","download_url":"https://codeload.github.com/ebpfcca/ebpfcca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ebpfcca%2Febpfcca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["congestion-control","ebpf","linux","tcp"],"created_at":"2024-12-13T21:18:48.516Z","updated_at":"2026-04-26T12:32:56.769Z","avatar_url":"https://github.com/ebpfcca.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eBPF CCA\n\nRead the paper [here](https://github.com/ebpfcca/ebpfcca/blob/main/ebpfcca.pdf)\n\nEvaluating eBPF as a Platform for Congestion Control Algorithm Implementation.\n\nRequired packages:\n\n```sh\n$ sudo apt install clang libbpf-dev bpftool bpfcc-tools libbpfcc libbpfcc-dev linux-headers-$(uname -r)\n```\n\n## Running BPF Cubic\n\n\u003e Source files were taken from Linux kernel (commit hash: `c964ced7726294d40913f2127c3f185a92cb4a41`). The following additional modification was made to `bpf_cubic.c` to satisfy the verifier.\n\n```diff\n\u003c \tshift = (a \u003e\u003e (b * 3));\n---\n\u003e \tshift = ((__u32)a \u003e\u003e (b * 3));\n```\n\n### Build, register, and set CCA\n\n```sh\n# Build eBPF program\n$ cd bpf_cubic/\n$ make build\nsudo bpftool btf dump file /sys/kernel/btf/vmlinux format c \u003e vmlinux.h\nclang-14 -target bpf -I/usr/include/-linux-gnu -g -O2 -o bpf_cubic.o -c bpf_cubic.c\n\n# Register eBPF program\n$ sudo bpftool struct_ops register bpf_cubic.o\nRegistered tcp_congestion_ops cubic id 101\n\n# Set TCP congestion control algorithm to bpf_cubic\n$ sudo sysctl -w net.ipv4.tcp_congestion_control=bpf_cubic\nnet.ipv4.tcp_congestion_control = bpf_cubic\n```\n\n### Unregister CCA\n\n```\n$ sudo bpftool struct_ops unregister name cubic\nUnregistered tcp_congestion_ops cubic id 101\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febpfcca%2Febpfcca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febpfcca%2Febpfcca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febpfcca%2Febpfcca/lists"}