Giter VIP home page Giter VIP logo

Comments (7)

cardigliano avatar cardigliano commented on August 27, 2024

Actually in my experience I've never seen more than two tags in a single frame,
but in practice there is no limiting to the number of tags. To be honest I would like
to remove the while but I am not sure it's the best choice.

from pf_ring.

cmhungry avatar cmhungry commented on August 27, 2024

Double tagged frame is ok for extracting IP addresses
It has inner tag and outer tag. If you configured Cisco or Juniper router you could use double tagged interfaces, single tagged or untagged. But not triple tagged etc.

Of course MTU is the key for making as much tags as you wish. But if you run three tags - it means you have transit VLAN with QinQ enabled and your customer runs his own QinQ. In this case you don't need to know what traffic he runs.

(0x8100 as ethertype is the most common, but it should be remembered that 0x8100 is not the only one option)

from pf_ring.

pavel-odintsov avatar pavel-odintsov commented on August 27, 2024

And in case of nested vlan (QnQ) we need separate field (for example: outer_vlan) for storing external vlan number.

from pf_ring.

cardigliano avatar cardigliano commented on August 27, 2024

It makes sense. Pavel if you have a patch, please send a pull request. Please pay attention to backward compatibility (i.e. an outer_vlan_id field is fine, rather than inner_vlan_id, in addition to the current vlan_id)

from pf_ring.

vasubabukandimalla avatar vasubabukandimalla commented on August 27, 2024

Hi Pavel,

Could you please help me to find out the patch supporting QinQ in pf_ring.

Thanks,
Vasu.

from pf_ring.

pavel-odintsov avatar pavel-odintsov commented on August 27, 2024

Hello!

I havent tried to implement this code because it's pretty complex.
Different vendors are using different approaches here with different ether
types. Some vendors offer option to change QnQ's ethertype. So you need to
write custom code acording to your network vendor.

On Tuesday, 10 May 2016, vasubabukandimalla [email protected]
wrote:

Hi Pavel,

Could you please help me to find out the patch supporting QinQ in pf_ring.

Thanks,
Vasu.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#57 (comment)

Sincerely yours, Pavel Odintsov

from pf_ring.

pavel-odintsov avatar pavel-odintsov commented on August 27, 2024

Hello!

And this issue hit us again :) So, as I mentioned before we still need to add additional code to handle QnQ properly and this code depends on vendor's implementation.

For this purposes, we need to modify your code for each vendor and use custom version for each one. But the library is licensed under GPLv2 terms and it's incompatible with commercial/closed source code. And we could not do it :(

Maybe you could unify this code some way to export such interfaces or offer another license for code in this particular file/function?

Thanks!

from pf_ring.

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.