Open-Source Network Technician • OSNTC.054 • 30–40 minutes
A BGP peer may advertise far more routes than expected after a policy error. A maximum-prefix limit puts an explicit ceiling on the number of routes a router is prepared to accept or receive, depending on the platform. It can protect routing resources, but terminating a peering session can also remove legitimate reachability. The feature belongs in a reviewed routing policy rather than an arbitrary emergency threshold.
Prerequisites and objectives
Review BGP route leaks, route origin validation and graceful restart. Learn to distinguish route counts from route validity, calculate a warning threshold, recognize a maximum-prefix notification and document a safe escalation.
A warning threshold is not the hard limit
Cisco’s maximum-prefix guide describes a configurable limit, warning threshold and warning-only behavior. A warning-only configuration logs a problem instead of terminating the session for that limit. Automatic restart is a separate recovery option; if the cause persists, repeated restart attempts can cause instability. Junos prefix-limit documentation distinguishes received prefixes from accepted-prefix-limit, which operates after import policy. Always verify the installed release, address family and counter semantics.

Worked example: 1,000 prefixes
Assume a synthetic policy limit of 1,000 prefixes and an early warning threshold of 80%. The example warning point is 800. Under the teaching model, 799 is normal, 800 and 1,000 are warnings, and 1,001 exceeds the hard limit. This model deliberately uses an inclusive warning boundary; actual platform log timing and handling can differ. In warning-only mode, the last case returns a warning rather than a termination decision.
def status(n, cap=1000, threshold=80, warning_only=False):
if n > cap:
return 'warn' if warning_only else 'limit-exceeded'
return 'warn' if n*100 >= cap*threshold else 'normal'
assert [status(n) for n in [799,800,1000,1001]] == [
'normal','warn','warn','limit-exceeded']
assert status(1001,warning_only=True) == 'warn'
print('5 BGP model cases passed')
Five cases passed in Python 3.13.5. This is an executable arithmetic and decision exercise, not a BGP implementation or a live router test.
Interpret the notification and preserve evidence
RFC 4486 assigns Cease notification subcode 1 to the maximum-number-of-prefixes condition. Before escalating, record the peer, address family, timestamps, configured limit, received and accepted counts if available, relevant policy changes and notification direction. A notification sent by the remote peer may indicate its limit rather than your own. Compare route counts to the approved baseline and determine whether the increase was planned. A count limit alone cannot reject an invalid route below the threshold; origin and import-policy controls remain necessary.
Knowledge check and operational boundaries
1. At 80% of 1,000, what is the illustrative warning point? 800. 2. Does warning-only protect resources by automatically terminating a session? No. 3. Is a received-prefix count necessarily the same as accepted-prefix count? No. 4. Does a prefix limit replace route filtering? No. Review BFD failure detection for a separate reason a routing session may change state. Use read-only diagnostics and approved change control; do not inject routes, reset a peer or change thresholds on a production system for this exercise.
Editor’s Note: We volunteer daily to ensure the credibility of the information on this platform is Verifiably True.
BitcoinVersus.Tech publishes technology and financial journalism for informational purposes and does not provide financial, investment, or legal advice.

Leave a Reply