Code Monkey home page Code Monkey logo

Comments (7)

tbarbette avatar tbarbette commented on June 11, 2024

IPRewriter, like a NAT, with something like RoundRobinIPMapper for pattern

from click.

p4pe avatar p4pe commented on June 11, 2024

Hello @tbarbette thank you for your response.

Sorry for the late reply.

To be more precise, I would like to implement something like ECMP protocol. I don't know if this can be done with Click.
In my example, the VNF1 and VNF2 are simply forwarding the traffic to sink.
ECMP

Thank you!

from click.

tbarbette avatar tbarbette commented on June 11, 2024

Remember ECMP is per-packet, so you would break flows and VNFs would see part of multiple flows, so they can't run NAT etc. But if you don't want something flow-aware, then you can simply use RoundRobinSwitch that will forward packets in a RR fashion.

from click.

tbarbette avatar tbarbette commented on June 11, 2024

To be flow-aware, but independent of load, you have HashSwitch.
To do RoundRobin you need the aforementioned solution.

Tom

from click.

p4pe avatar p4pe commented on June 11, 2024

Hello Tom,

Today I saw the RoundRobinSwitch element, thank you for the confirmation.

So I can have:

in1::FromDevice()
in2:FromeDevice()

out::ToDevice
out1::ToDevice

lb::RoundRobinSwitch

And the inputs of the lb will be the in1 and in2 (after they passed from IPClassifier, etc..)

Am I right?

from click.

tbarbette avatar tbarbette commented on June 11, 2024

Yes, with the usual Queue etc

from click.

xt1234567 avatar xt1234567 commented on June 11, 2024

Hello Tom,

Today I saw the RoundRobinSwitch element, thank you for the confirmation.

So I can have:

in1::FromDevice()
in2:FromeDevice()

out::ToDevice
out1::ToDevice

lb::RoundRobinSwitch

And the inputs of the lb will be the in1 and in2 (after they passed from IPClassifier, etc..)

Am I right?

Hello , I also want to create a per-packet load balancer, but it was a little difficult for me to implement it ,can you share the .click file? Thank you very much in advance.
my email is [email protected]

from click.

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.