<div dir="ltr">You are checking the master branch (development) documentation. You should use <a href="https://docs.frrouting.org/en/stable-10.0/bmp.html">https://docs.frrouting.org/en/stable-10.0/bmp.html</a>.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2024 at 3:08 PM Boris Hassanov via dev <<a href="mailto:dev@lists.frrouting.org">dev@lists.frrouting.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br><br>---------- Forwarded message ----------<br>From: Boris Hassanov <<a href="mailto:bhassanov@yahoo.com" target="_blank">bhassanov@yahoo.com</a>><br>To: "<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a>" <<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a>><br>Cc: <br>Bcc: <br>Date: Mon, 17 Jun 2024 17:12:18 +0000 (UTC)<br>Subject: BMP Issue in FRR 10.0<br><div><div style="font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:13px"><div dir="ltr">Hi all,</div><div dir="ltr"><br></div><div dir="ltr">During the testing I found strange BMP issue. RFC 7854 describes several types of BMP messages, one of them is Stats Report (<a href="https://www.rfc-editor.org/rfc/rfc7854#page-13" rel="nofollow" target="_blank">https://www.rfc-editor.org/rfc/rfc7854#page-13</a>).</div><div dir="ltr"><br></div><div dir="ltr">The FRR documentation (.<a href="https://docs.frrouting.org/en/latest/bmp.html#bmp-session-configuration" rel="nofollow" target="_blank">https://docs.frrouting.org/en/latest/bmp.html#bmp-session-configuration</a> ) explicitly says:</div><div dir="ltr">"</div><div dir="ltr"><div><ul style="margin:0px 0px 24px;padding:0px;list-style-position:initial;line-height:24px;color:rgb(64,64,64);font-family:"Fira Sans",Helvetica,Arial,sans-serif;font-size:16px;background-color:rgb(252,252,252)"><li style="list-style:outside;margin-left:24px"><p style="line-height:24px;margin:0px 0px 12px">the following statistics codes are implemented:</p><ul style="margin:12px 0px;padding:0px;list-style:outside;line-height:24px"><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">0: count of prefixes rejected</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">2: count of duplicate prefix withdrawals</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">3: count of <span>prefixes</span> with loop in cluster id</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">4: count of <span>prefixes</span> with loop in AS-path</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">5: count of <span>prefixes</span> with loop in originator</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">7: count of <span>routes</span> in adj-rib-in</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">8: count of <span>routes</span> in Loc-RIB</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">11: count of updates subjected to <span id="m_3922713690316224317ydp54937e90index-2"></span><a href="https://datatracker.ietf.org/doc/html/rfc7607.html" rel="nofollow" target="_blank">RFC 7607</a> “treat as withdrawal” handling due to errors</p></li><li style="list-style:circle;margin-left:24px"><p style="line-height:24px;margin:0px">65531: <em>experimental</em> count of prefixes rejected due to invalid next-hop</p></li></ul><p style="line-height:24px;margin:12px 0px">Note that stat items 3, 4 and 5 are specified to count updates, but FRR implements them as prefix-based counters.</p></li></ul></div></div><div dir="ltr">"</div><div dir="ltr">The issue is that I do not see Stats Types 7 and 8 in the BMP message from FRR towards BMP collector (goBMP in my test setup):</div><div dir="ltr"><br></div><div dir="ltr"><img title="Inline image" alt="Inline image" src="cid:ii_190df81998e38ce60a61" style="max-width: 800px; width: 100%;"><br><span></span><br></div><div dir="ltr"><br></div><div dir="ltr">There are only 7 statistic types and no statistic codes 7 and 8.</div><div dir="ltr"><br></div><div dir="ltr"> Is this a bug or I missed something in BMP config ?</div><div dir="ltr"><br></div><div dir="ltr">Here is the BMP config oof the FRR for the reference:</div><div dir="ltr"><div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><br></span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span>bmp targets ubuntu-BMP</span></div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><span> </span>bmp stats interval 300</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><span> </span>bmp monitor ipv4 unicast pre-policy</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><span> </span>bmp monitor ipv4 unicast loc-rib</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><span> </span>bmp connect 10.30.131.101 port 5050 min-retry 30000 max-retry 3000 source-interface eth2</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span><span> </span>exit</span></p></div><br></div><div dir="ltr"><div><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span>FRR1# sh ver</span></p><p style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span>FRRouting 10.0_git (FRR1) on Linux(5.15.0-102-generic).</span></p></div></div><div dir="ltr"><br></div><div dir="ltr">Thank you in advance for the clarification.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">SY,</div><div dir="ltr">Boris</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br><br><br>---------- Forwarded message ----------<br>From: Boris Hassanov via dev <<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a>><br>To: "<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a>" <<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a>><br>Cc: <br>Bcc: <br>Date: Mon, 17 Jun 2024 17:12:18 +0000 (UTC)<br>Subject: [dev] BMP Issue in FRR 10.0<br>_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.frrouting.org" target="_blank">dev@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.frrouting.org/listinfo/dev</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Donatas<br></div>