- LAYER
- L4 / socket
- CONNECT
- zero-NAT
- LOCAL PATH
- stack bypass
- SCOPE
- per cgroup
- ingress frame
- egress / socket
- XDP drop / redirect
At the top of the stack, cgroup/connect4, sock_ops, and sk_msg hooks operate on sockets rather than packets. They know the exact process, container cgroup, and destination service.
Service meshes and CNIs rewrite destination IPs at connect time (skipping per-packet NAT) and use SOCKMAP to copy bytes straight from one local pod’s send socket to another’s receive socket, skipping TCP/IP.