Skip to content

Commit

Permalink
Merge pull request #119 from paulgmiller/pmiller/udpdocsupdate
Browse files Browse the repository at this point in the history
[Docs] comment on udp and effected pods in readme
  • Loading branch information
k8s-ci-robot authored Nov 18, 2024
2 parents b013473 + ba532b2 commit 5eed029
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ Network policies are hard to implement efficiently and in large clusters this is

Most of the existing implementations use the same approach of processing the APIs and transforming them in the corresponding dataplane implementation: iptables, nftables, ebpf or ovs, ...

This project takes a different approach. It uses the NFQUEUE functionality implemented in netfilter to process the first packet of each connection in userspace and emit a verdict. The advantage is that the dataplane implementation does not need to represent all the complex logic, allowing it to scale better. The disadvantage is that we need to pass each new connection packet through userspace.
This project takes a different approach. It uses the NFQUEUE functionality implemented in netfilter to process the first packet of each connection (or udp flows) in userspace and emit a verdict. The advantage is that the dataplane implementation does not need to represent all the complex logic, allowing it to scale better. The disadvantage is that we need to pass each new connection packet through userspace. Subsequent packets are accepted via a "ct state established,related accept" rule.

There are some performance improvements that can be applied, such as to restrict in the dataplane the packets that are sent to userspace to the ones that have network policies only, so only
the Pods affected by network policies will hit the first byte performance.
For performance only the Pods selected by network policies will be queued to user space and thus absorb the first packet perf hit.

## Testing

Expand Down

0 comments on commit 5eed029

Please sign in to comment.