Skip to content

Socket & cgroup hooks

Step 5 of 9Concept
LAYER
L4 / socket
CONNECT
zero-NAT
LOCAL PATH
stack bypass
SCOPE
per cgroup
  • ingress frame
  • egress / socket
  • XDP drop / redirect
XDP, TC & Socket Hooks, step 5 of 9

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.

Type to search…

↑↓ navigate↵ selectEsc close