<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">Hi all,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">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" class="">https://www.rfc-editor.org/rfc/rfc7854#page-13</a>).</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">The FRR documentation (.<a href="https://docs.frrouting.org/en/latest/bmp.html#bmp-session-configuration" rel="nofollow" target="_blank" class="">https://docs.frrouting.org/en/latest/bmp.html#bmp-session-configuration</a> ) explicitly says:</div><div dir="ltr" data-setdir="false">"</div><div dir="ltr" data-setdir="false"><div><ul style="margin: 0px 0px 24px; padding: 0px; list-style-position: initial; list-style-image: 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: disc; margin-left: 24px;"><p style="line-height: 24px; margin: 0px 0px 12px;">the following statistics codes are implemented:</p><ul class="ydp54937e90simple" style="margin: 12px 0px; padding: 0px; list-style: disc; 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 class="ydp54937e90target" id="ydp54937e90index-2"></span><a class="ydp54937e90rfc ydp54937e90reference ydp54937e90external" href="https://datatracker.ietf.org/doc/html/rfc7607.html" style="cursor: pointer;" 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" data-setdir="false">"</div><div dir="ltr" data-setdir="false">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" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><img title="Inline image" alt="Inline image" src="cid:c70ae176-fc19-7c14-9c21-a9480f06b7d1@yahoo.com" class="yahoo-inline-image" draggable="false" style="max-width: 800px; width: 100%;" data-id="<c70ae176-fc19-7c14-9c21-a9480f06b7d1@yahoo.com>"><br><span></span><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">There are only 7 statistic types and no statistic codes 7 and 8.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> Is this a bug or I missed something in BMP config ?</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Here is the BMP config oof the FRR for the reference:</div><div dir="ltr" data-setdir="false"><div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><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 class="ydp6b64eb87s1">bmp targets ubuntu-BMP</span></div><p class="ydp6b64eb87p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><span class="ydp6b64eb87Apple-converted-space">  </span>bmp stats interval 300</span></p><p class="ydp6b64eb87p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><span class="ydp6b64eb87Apple-converted-space">  </span>bmp monitor ipv4 unicast pre-policy</span></p><p class="ydp6b64eb87p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><span class="ydp6b64eb87Apple-converted-space">  </span>bmp monitor ipv4 unicast loc-rib</span></p><p class="ydp6b64eb87p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><span class="ydp6b64eb87Apple-converted-space">  </span>bmp connect 10.30.131.101 port 5050 min-retry 30000 max-retry 3000 source-interface eth2</span></p><p class="ydp6b64eb87p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydp6b64eb87s1"><span class="ydp6b64eb87Apple-converted-space"> </span>exit</span></p></div><br></div><div dir="ltr" data-setdir="false"><div><p class="ydpa02d3461p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydpa02d3461s1">FRR1# sh ver</span></p><p class="ydpa02d3461p1" style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);"><span class="ydpa02d3461s1">FRRouting 10.0_git (FRR1) on Linux(5.15.0-102-generic).</span></p></div></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you in advance for the clarification.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">SY,</div><div dir="ltr" data-setdir="false">Boris</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></body></html>