Git Product home page Git Product logo

Comments (2)

yoursunny avatar yoursunny commented on June 17, 2024

I tried PacketRusher with a Dockerfile like this:

FROM golang:1.21-alpine3.18 AS build
RUN cd / \
 && wget -O PacketRusher.zip https://github.com/HewlettPackard/PacketRusher/archive/c10560874c0bbd8241f75c5aaa44536b528e1d74.zip \
 && unzip -n PacketRusher.zip \
 && mv PacketRusher-* PacketRusher \
 && cd /PacketRusher \
 && env CGO_ENABLED=0 go build cmd/packetrusher.go

FROM scratch
COPY --from=build /PacketRusher/packetrusher /
ENTRYPOINT ["/packetrusher"]

It works with a mounted configuration file, but there are several complications:

  • Due to PacketRusher's use of vrf interface, the container must run in privileged mode.
    I'd recommend introducing a flag to disable vrf, so that the container can run with --cap-add=NET_ADMIN --device /dev/net/tun:/dev/net/tun.
    Applications who want to interact with the PDU session would need to explicitly bind to the netif that represents the PDU session.
  • The multi-ue mode with --dedicatedGnbs flag expects the container to have several contiguous IPv4 addresses range.
    This may not be supported by Docker.
    I don't know of a clean solution to this.

from packetrusher.

linouxis9 avatar linouxis9 commented on June 17, 2024

Hi @yoursunny;

Thank you for your suggestion!

For 1., point taken, thanks for the suggestion. In that case, automatic routes creation should probably also be disabled when VRF are disabled. Else, funny things may happen on the host :-)

For 2., the use case we were thinking was k8s with Multus attaching multiple host interfaces (or creating multiple MacVLAN interfaces) and attaching it to the PacketRusher's pod. But I agree that having to use several contiguous IPv4 addresses is not the best in any cases. The switch to eUPF's eBPF from gtp5g as the WIP PR available here #47 should alleviate some of these issues but it's still WIP, and work only with a single UE for now. For PacketRusher on plain old Docker, I would recommend the usage of --net host, the usage of Docker's virtual interfaces may impact negatively the user plane performance of PacketRusher.

Thanks,
Valentin

from packetrusher.

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.