Repository navigation
BNG Blaster 1.2.0
This release adds Bidirectional Forwarding Detection (BFD) for static sessions and routing protocols, and IS-IS jumbo frame support. It also contains a large number of robustness and correctness fixes across all protocols, much stricter configuration validation, and reproducible builds.
Highlights
BFD (Bidirectional Forwarding Detection)
- Asynchronous mode per RFC 5880 for single-hop (RFC 5881, UDP 3784) and multi-hop (RFC 5883, UDP 4784) sessions over IPv4 and IPv6.
- BFD profiles (
bfd) define timers, passive role,min-ttland authentication (simple password, keyed and meticulous keyed MD5/SHA1). - Static sessions via
bfd-sessions. - Protocol bindings for IS-IS, OSPFv2, OSPFv3, BGP and LDP. A session is created when the protocol comes up and deleted when it goes down.
- Network interface options:
isis-bfd-profile-id,ospfv2-bfd-profile-id,ospfv3-bfd-profile-id,ldp-bfd-profile-id. - BGP options:
bfd-profile-id,bfd-multihop. LDP targeted neighbor option:bfd-profile-id. - BFD Up → Down brings the protocol down: OSPF neighbor down, IS-IS adjacency down, BGP NOTIFICATION Cease/BFD Down (RFC 9384), LDP Shutdown. A peer AdminDown does not bring the protocol down (RFC 5882).
- IS-IS uses one BFD session per address family (RFC 6213).
- Network interface options:
- New control commands:
bfd-sessions,bfd-session-enable,bfd-session-disable(AdminDown) andbfd-session-update(timer change by poll sequence). - BFD totals and per-session details are included in the standard and JSON reports. There is a new log category,
bfd. - Tested for interoperability against FRR and BIRD. 1000 sessions at 100 ms intervals are stable.
See the BFD documentation.
IS-IS jumbo frames
- New IS-IS instance option
max-pdu-size(default 1492, up to 11997) for LSP, CSNP, PSNP and hello padding. - PDUs that exceed the 802.3 length field are sent and received as LLC in Ethernet II frames with ethertype
0x8870. lsp-buffer-sizefollowsmax-pdu-sizeunless it is set explicitly.- The network interface MTU limit is raised to 12000. An MTU above 4000 requires
jumbo-frames. - LSPs now use per-PDU sized buffers, which also reduces LSDB memory with the default PDU size.
- New
lspgenoption--lsp-buffer-sizeto generate larger LSPs. - Tested against Junos Evolved and FRR.
Behavior changes
Configurations that were silently accepted (and partly ignored) are now rejected with an error. Please check your configurations:
- Options with the wrong JSON type are rejected, for example a numeric
auth-key, L2TP secret ortcp-ao-algorithm, or"sessions": 5. Previously, about 130 string options were silently ignored in this case.nullfor a string option is rejected as well. - Duplicate JSON keys are rejected in the configuration and in stream files (
-T). - Stream files (
-T) accept only the root keystreams, plus keys starting with_. - Duplicate
instance-idvalues for IS-IS, OSPF and LDP are rejected. So are duplicate algorithms insr-node-sidsandflex-algo, and unknown keys insr-node-sids. - Network, access and A10NSP interfaces on LAG member links are rejected.
- Value ranges are enforced:
- Stream rate: 0.0001 – 1e9 pps
- ICMP client interval: 0.001 – 86400 s
- IGMP
multicast-traffic-pps: 1 – 65535 - TCP-AO/MD5 key length: 1 – 80
lcp-padding: up to 1400- IS-IS: up to 3 areas and 233 SR algorithms
0is now accepted forzapping-interval,max-payloadandmulticast-traffic-length.- Command line arguments are validated:
-g,-s,-r,-zand-care checked, and-cis limited to 10M sessions.-land-jreject unknown values.-Land-Jmust be writable at start.- The control socket path is limited to 107 characters.
- Session strings are limited to 255 characters.
- The control socket checks argument types against the command schema and answers
400 invalid argument type <name>.bngblaster-clinow sends string arguments as strings (for example, numeric usernames), and integral real arguments are converted to integers. - The JSON schema is now strict (
additionalProperties: false, keys starting with_allowed) and matches the ranges enforced by the binary. - IS-IS gives up the DIS role on LAN interfaces at teardown (hellos with priority 0 after the purge).
http-clients-stopalso stops idle and retrying clients.http-clientsanswers 404 for unknown sessions.
Fixes
Access (PPPoE / IPoE / L2TP / A10NSP)
- PPP: fixed negotiation and option rejects, NCP stop/reopen, LCP renegotiation NAK handling, the network phase on closed NCP acknowledgement, and CHAP.
options_lenis no longer truncated to 8 bits. - PPPoE: fixed discovery validation. PADOs whose tags to echo exceed 1024 bytes are discarded. PPP peer messages are stored as valid UTF-8.
- DHCPv4/v6: fixed DHCP rebinding. DHCPv6 is stopped with its timers on LCP restart. All bits of delegated prefixes longer than /64 are kept. Interface-ID and IA option lengths are stored in 16 bits.
- IGMP: fixed join and querier handling, and the initial join on reconnect.
- IPoE: static addresses are kept after termination.
- L2TP:
- LAC: fixed session distribution, timeouts and the control window.
- LNS: fixed LCP and AVP validation, PPPoL2TP streams, ICMP and TUN, tunnel/session ID allocation bounds and the ICCN timeout.
- Peer Nr is validated against the last sent Ns.
- CDN with session ID 0 and invalid ICRQ are handled. Peer string leaks are fixed.
- The LNS server is selected (by
client-auth-id) before decoding the SCCRQ. - Data frames are limited by the network interface MTU.
lcp-paddingis limited and sends zero bytes. - Deleted tunnels are freed deferred. The ICCN timer is deleted on connect.
- Control characters in the Proxy Authen Name are replaced.
- A10NSP: fixed VLAN handling and the reply length check without MPLS. The RX timestamp is copied over MPLS. Sessions are no longer created from frames of terminated sessions.
- Lawful intercept: fixed the flow limit.
Routing protocols
- IS-IS:
- Fixed receive rules, CSNP ranges, the P2P handshake and DIS handling.
- P2P adjacencies come up without the three-way adjacency TLV.
- Own LSPs announced by CSNP are purged, and purges carry the header on teardown.
- Self LSP TLVs move to the next fragment if they do not fit.
- Adjacencies stay down after teardown.
- IS-IS and OSPF PDUs are limited to the interface MTU.
- OSPF:
- Fixed LSA origination, receive rules, DD exchange, LS Ack and flooding.
- Fixed OSPFv3 broadcast, and fragmented OSPFv3 packets are now reassembled.
- Fixed external LSA purge/refresh and the size limit. Own or newer LSAs are no longer replaced with external LSAs.
- Fixed the MD5 sequence: OSPFv2 hellos with MD5 are queued to keep sequence order.
- The fraction of a second is kept when updating the LSA age.
- BGP:
- OPEN and FSM validation added.
- Fixed collision close; the write buffer of a losing connection is kept.
- Oversized RAW update files and L2VPN label blocks beyond 20 bits are rejected.
- Fixed hold time handling.
- LDP:
- Fixed the label database, session close, hello adjacency, receive rules, and session reuse by the other address family.
- Passive sessions share one listen socket.
- The longest active prefix is looked up again after database changes.
- TCP (lwIP):
- Fixed MSS handling: the MSS option is applied only on SYN, and the send MSS is limited after a retransmitted SYN.
- Fixed the persist timer and the 32-bit wrap of the send length.
- A checksum of 0 is sent as
0xffff.
- bgpupdate: fixed End-of-RIB, AS_PATH, attribute order and labeled withdraw. Long AS paths are supported, and invalid arguments are rejected.
- lspgen:
- Fixed OSPF LSA sizes (including SID/Label Range TLV padding), parallel links, purges and config handling.
- Fails on incomplete output and invalid options.
- Applies
-qand the sequence cache to config file topologies.
Traffic streams
- Fixed several stream reset races. The RX thread now owns the reset, and the TX thread completes the TX reset snapshot.
- Fixed the report after reset,
stream-updateraces and filters. All streams stay in TX afterstream-updatewith the same pps. - Flows that were not verified after a reset race are recovered.
- Session traffic: UDP ports stay fixed, and verified traffic is checked with an RX copy.
- Stop-verified traffic restarts after NCP or LCP down. Verified flows are lowered when IPCP or IP6CP goes down.
- Traffic violations are related to the flows of each direction.
- Reassembled PPPoL2TP streams are verified with the session MAC.
I/O, LAG and network interfaces
- packet_mmap:
- Fixed the TX limit, and frames above the kernel limit are dropped in user space.
- The TX ring is kicked when full.
- Stripped VLAN tag bytes are restored on RX retry.
- Raw mode:
- Fixed VLAN RX.
- Received frames are captured with the stripped VLAN tag.
- The receive buffer is sized for the RX slots.
- Raw packets are received with
recv().
- Kernel-stripped VLAN tags are counted in RX frame length and bytes.
- Fixed fanout of outgoing packets, stuck TX, AF_XDP state restore and DPDK link state. DPDK no longer writes control packets beyond the mbuf.
- The link state of kernel interfaces is tracked.
- The promiscuous socket is opened without receiving frames.
- LAG:
- Fixed LACP.
- LACP is sent immediately and the partner expires on link up.
- Non-LACP members with link down are not selected.
- The periodic rate is selected by the partner timeout.
- ICMPv6 echo requests are answered for any unicast destination.
- ICMP/ICMPv6 replies on PPPoE copy the PPPoE header.
- Ethernet over MPLS decoding is limited to one level.
Core, control socket and stability
- Timers:
- Timers deleted in the same walk no longer fire.
- nsec values are normalized.
- The minimum sleep time is taken per bucket.
- Fragmentation: the oldest reassembly entry is evicted when the table is full.
- Sessions:
- Fixed a double free on a JSON encoding error.
- Terminated sessions are removed from the idle queue correctly.
- The session list allocation is checked and reports the required memory.
- Control socket:
- Fixed start and stop races.
- Fixed stalled clients.
- The socket of another running instance is not removed.
isis-adjacencies,zapping-stats,ldp-adjacencies,ldp-sessionsandospf-neighborsnow run in the main thread.
- Fixed HTTP leaks.
- Fixed an overflow of the prefix format static buffer.
- Existing lock files of other users are locked. AF_XDP state files not written by the current user are ignored.
- Rejected packets of known streams are dropped in the RX thread.
Performance
- The packet_mmap RX thread uses the burst prefetch pipeline.
- TX streams are prefetched via skip pointers, and packet_mmap TX frames are prefetched.
- Session checks are kept in one cache line.
Build, packaging and tests
- Reproducible builds, including RelWithDebInfo with LTO. Source and build paths are mapped on the compile and link line.
- Full LTO with Clang. The Clang 18 build is fixed.
config.his now generated into the build directory asbuild_config.h.- The
.debpackage depends onpython3(forbngblaster-cli,bgpupdateandldpupdate). - New BFD integration tests against FRR, BIRD 2.14 and BNG Blaster.
- New schema tests validate all examples and documentation configurations.
- Integration tests can run in parallel on one host.
--slowis renamed to--full, and only quick and basic tests run by default. - Documentation: new BFD and IS-IS jumbo frame sections, and missing BGP, OSPF external and control socket options added.
Full Changelog: 1.1.1...1.2.0