Git Product home page Git Product logo

Comments (4)

snar avatar snar commented on July 20, 2024

from bgpq3.

mahtin avatar mahtin commented on July 20, 2024

This is an interesting situation. The -A flag (or a request to aggregate) could be interpreted in two different ways.

  1. There's aggregation in the form of how the originating network decides it wants to aggregate.
  2. There's aggregation where it means "I (the operator of the filters) want to aggregate, independent of the originating network, in how I create filters.

Both of you are right. Presently the code and it's -A flag means the first item above. However, there's a case to be made for a second/different flag to implement the second case.

In fact there's even a case when aggregation should always be used; both for router optimization and for terseness of filter output. It took a while to find a good example of this; but I think this ASN could show a valid case (just ignore the /24 for now).

$ bgpq3 -JE -l foo AS201890
policy-options {
 policy-statement foo { 
replace:
  from {
    route-filter 188.123.112.0/22 exact;
    route-filter 188.123.112.0/23 exact;
    route-filter 188.123.113.0/24 exact;
    route-filter 188.123.114.0/23 exact;
  }
 }
}
$

wth the -A aggregate flag you get less output:

$ bgpq3 -JEA -l foo AS201890
policy-options {
 policy-statement foo { 
replace:
  from {
    route-filter 188.123.112.0/22 upto /23;
    route-filter 188.123.113.0/24 exact;
  }
 }
}
$

What I'm trying to show, with this ASN, is that because there's two /23's and one /22 one can always aggregate into one line (the upto /23 part).

Back to the question in hand.

I also believe there's a case (as shown by @anuragbhatia above) where a set of (lets say, his four /24's) could be aggregated by bgpq3 into a single /22 and accept any route within any of the /22 space. This is very much up to the operator of the filters vs. the originator of the routes. The automatic aggregation is very specific to the filter operator.

If this was implemented; I would vote for a different command line flag than the existing -A flag.

BTW: There's a good example of complex filtering based on mask length in the real world. The INEX Internet Exchange in Dublin Ireland has very strict filtering on it's route server. However many other Internet Exchanges are less strict and accept upto /24 automatically. Either way - the request above is more about filter optimization.

from bgpq3.

snar avatar snar commented on July 20, 2024

from bgpq3.

snar avatar snar commented on July 20, 2024

close for inactivity

from bgpq3.

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.