Code Monkey home page Code Monkey logo

Comments (6)

tohojo avatar tohojo commented on June 12, 2024 1

from xdp-tutorial.

vincent5753 avatar vincent5753 commented on June 12, 2024

@tohojo Thanks for the reply.
Can you provide your Kernel version for me, so I can test this in the newer version of Kernel?

from xdp-tutorial.

vincent5753 avatar vincent5753 commented on June 12, 2024

Here's how I setup my ENV
I am trying to implement a LB like lb-from-scratch from lizrice
I started 4 container for client / LB / nginx1(backend) / nginx2(backend)

and loaded dummy XDP onto veth of client / nginx1(backend) / nginx2(backend)
and LB XDP onto veth of LB.
Enabled NAPI using ethtool -K ${vethname} gro on
And disabled rp_filer using echo 0 | sudo tee /proc/sys/net/ipv4/conf/${vethname}/rp_filter

I oringaly tried this on Ubuntu 20.04(with Kernel 5.4.0-144-generic), but I tried on Ubuntu 22.04(with Kernel 5.15.0-94-generic) yesterday, I could not figure out what was missing.

My setup can be found at hire
https://github.com/vincent5753/MASTER-VP/tree/main/eBPF/redirect_icmp/docker

from xdp-tutorial.

tohojo avatar tohojo commented on June 12, 2024

from xdp-tutorial.

vincent5753 avatar vincent5753 commented on June 12, 2024

I tried entering container and manually installed ethtool after starting up the containers,
did ethtool -K eth0 gro on inside the container and ethtool -K ${vethname} gro on on host.
But it did not work either.

Maybe this don't work on docker env because the veth pair?
ref: Re: Veth pair swallow packets for XDP_TX operation
But I tried mounting dummy onto other containers, that did not work either.

I am wondering if I can mount eBPF to tc to redirect packet to other interfaces instead?
Maybe sacrifice some performance but works?

from xdp-tutorial.

tohojo avatar tohojo commented on June 12, 2024

from xdp-tutorial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.