Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-24 Thread Alexander Arseniev
Hello, JUNOS does not have regex backreference, unlike IOS. My regex matches not the same community N+1 times but ANY standard community N+1 times, all unique or all repeating or some unique & some repeating. Thanks Alex On 24/08/2016 06:47, Huan Pham wrote: Hi Alex, I am pretty sure,

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-24 Thread Saku Ytti
On 24 August 2016 at 08:47, Huan Pham wrote: Hey, > I am pretty sure, you will never see the same community twice (unlike AS in > AS-PATH). So your regex to match multiple occurrences of a community is not > necessary. I agree that this is not something operator should

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Huan Pham
Hi Alex, I am pretty sure, you will never see the same community twice (unlike AS in AS-PATH). So your regex to match multiple occurrences of a community is not necessary. On Wednesday, August 24, 2016, Alexander Arseniev wrote: > Hello, > > JUNOS allows You to use

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread James Bensley
Thanks all :) Cheers, James. ___ juniper-nsp mailing list juniper-nsp@puck.nether.net https://puck.nether.net/mailman/listinfo/juniper-nsp

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Chris Morrow
At Tue, 23 Aug 2016 14:04:35 +0100, James Bensley wrote: > > Hi, > > Hopefully not completely hijacking this thread; I'm interested to know > if there is a way I can limit a peer to a maximum number of > communities? term LIMIT-COMMUNITIES { from {

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Alexander Arseniev
Hello, JUNOS allows You to use regex with communities https://www.juniper.net/techpubs/en_US/junos16.1/topics/usage-guidelines/policy-defining-bgp-communities-and-extended-communities-for-use-in-routing-policy-match-conditions.html So if You want to restrict ANY community value to no more

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Huan Pham
Thank you all for your replies! For James's question, you can limit number of communities a route can be tagged by matching "community-count" http://www.juniper.net/techpubs/en_US/junos15.1/topics/example/policy-community-count.html user@R1# *show policy-options* policy-statement

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread James Bensley
On 23 August 2016 at 13:40, Olivier Benghozi wrote: > And about a limitation to 10 communities: > I've seen that on SEOS (Redback/Ericsson OS for SmartEdge routers) when using > "set community" in a route-map. This is a ridiculous arbitrary limitation, of > course.

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Olivier Benghozi
And about a limitation to 10 communities: I've seen that on SEOS (Redback/Ericsson OS for SmartEdge routers) when using "set community" in a route-map. This is a ridiculous arbitrary limitation, of course. Hopefully the limitation was only in the CLI, not in the BGP code itself. So the

Re: [j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-23 Thread Alexander Arseniev
Hello, In BGP messages, a regular community is encoded in 7 bytes, and extended one in 11 bytes. Max BGP message size is 4096 bytes - this sets a limit for regular communities number to about 4K/7=570, and for extended communities to about 4K/11=360, if You consider the minimal mandatory

[j-nsp] Limit on the number of BGP communities a route can be tagged with?

2016-08-22 Thread Huan Pham
Hi mailing-list, I remember hitting a limit on a number of communities (something like 10 or so) on a platform (can not remember which one from which vendor). So I believe that there is a hard limit a platform or OS can support. I test this in the lab and found no problem with tagging 100