Brochure · FIRE

The Flock Internet Routing Engine (FIRE)

The Flock Internet Routing Engine (FIRE) allows customers to quickly create a secure, performant and highly customizable IP routing suite that is easy to embed in any network device.

Product overview

The Flock Internet Routing Engine (FIRE) allows customers to quickly create a secure, performant and highly customizable IP routing suite that is easy to embed in any network device. With FIRE you get to choose what is in your device and just as importantly what is not.

The FIRE source code is available to license which enables network device manufacturers and network operators to rapidly create and deploy customized internet devices such as IP routers, IP gateways and “Internet of Things” (IOT) devices. Thousands of internet devices developed using FIRE have been deployed in production since 2022, and have proved to be reliable and efficient.

FIRE componentflockdreference daemonyour-bgp-daemonyour buildyour-p-routeryour build
BFDincludedincludedincluded
BGPincludedincludednot included
IS-ISincludednot includednot included
LRIBincludedincludedincluded
MRIBincludednot includednot included
OSPFincludednot includedincluded
PIM-SSMincludednot includednot included
RIBincludedincludedincluded
Staticincludedincludednot included
Systemincludedincludedincluded
flockdreference daemon
BFDBGPIS-ISLRIBMRIBOSPFPIM-SSMRIBStaticSystem
your-bgp-daemonyour build
BFDBGPLRIBRIBStaticSystem
your-p-routeryour build
BFDLRIBOSPFRIBSystem
Build only what your device needs. flockd, the reference daemon included with FIRE, uses every component.

The FIRE source code is a platform agnostic library which implements a comprehensive set of internet RFC standards, a generic configuration and operation API, and a generic route programming API. Also included is a reference application that uses FIRE to implement a fully featured IP routing suite that runs on the Linux or SONiC platforms.

The FIRE source code is designed to be highly flexible. FIRE enables easy compile time customization and extension of the included protocol implementations, by providing embedded “modify hook” points in the source code.

FIRE Licensing

With FIRE you only license what you need. You can choose any combination of BGP, OSPF, IS-IS and multicast. The System, RIB, LRIB and Static components are always included. BFD is included if it is needed by any protocol you purchase.

What you license
Choose any combination
  • BGP
  • OSPFOSPFv2 · OSPFv3
  • IS-IS
  • MulticastPIM-SSM · MRIB
Included when needed
BFD
added when a licensed protocol uses it
Always included
  • System
  • RIB
  • LRIB
  • Static
One-off · Perpetual

Source code license

  • A license to use the current source code in perpetuity
  • Source code for all the licensed components
  • Source code for a fully functional routing daemon for Linux
  • Create custom routing daemons
  • Implement proprietary protocol extensions
    • Customers keep the copyright to this code
  • All documentation
    • The FIRE Developer Guide
    • The Linux routing daemon User Guide
    • The Linux routing daemon Developer Guide
  • All test code
    • Unit tests
    • Integration tests, with platform and protocol mocking code
Ongoing

Source code subscription

  • Access to the latest source code via the github repository
  • All newly implemented RFC features
  • All performance and scale improvements
  • All bug fixes
  • Support directly by the developers via github issues

FIRE is secure, fast, scalable and written in Rust

FIRE is compiled to match the hardware capabilities of the product that is being developed, from the lowest end consumer devices to the highest end internet route servers and Path Computation Element (PCE) servers.

FIRE is designed to scale at run time to match the available CPU cores. On a router with four logical CPU cores it can signal one billion BGP route updates across one thousand BGP neighbors in under 90s from startup. If that is too slow for your network requirements then just choose a router with more CPU cores.

Current IP routing suites were implemented decades ago. They no longer have a clean architecture so new feature development is very slow. They are written in unsafe languages such as C or C++, meaning a single incorrect line of code can crash the entire network device, or worse leave the network device running in an unknown and possibly insecure state.

FIRE is written exclusively in the Rust programming language. We are not alone in believing all performance critical infrastructure will be migrated to Rust.

“We adopted Rust for its security and are seeing a 1000x reduction in memory safety vulnerability density compared to Android’s C and C++ code.”

Jeff Vander Stoep, Android (November 2025)

“Speaking of languages, it’s time to halt starting any new projects in C/C++ and use Rust for those scenarios where a non-GC language is required. For the sake of security and reliability. the industry should declare those languages as deprecated.”

Mark Russinovich, CTO Microsoft Azure (September 2022)

“Adopting memory safe languages offers the most comprehensive mitigation against this class of vulnerabilities.”

CISA and NSA, Memory Safe Languages: Reducing Vulnerabilities in Modern Software Development (June 2025)

The FIRE Development Team

FIRE has been developed by Flock Networks®, founded in 2019 by Nick Carter. The internet is a utility, yet it still runs on unsafe code, so Flock Networks started again from a clean slate, in Rust, keeping the performance of C without its fragility.

Nick Carter
Founder

Nick Carter

A 30-year veteran of the networking industry, Nick has designed, implemented and operated some of the largest IP networks in the world, and has spent over 20 years implementing IP routing protocols and IP forwarding engines.

After years of discussing the “ideal” router architecture with colleagues, Nick experimented with Rust, decided it was the future of systems programming, and left his job to build FIRE. Over the first 18 months he designed and implemented the first version, including OSPF, BGP, the external APIs, a comprehensive test suite and the Linux target platform. It was the first IP routing suite ever implemented in Rust.

CCIE #5901BSc Computer Science, University of Manchester

From a clean slate to production

  1. 2019
    Flock Networks founded
    Nick starts the initial implementation from a clean slate.
  2. Mar 2020
    Ethan Banks live-streams his first use of v20.0.
  3. 2021
    Contributors join
    Routing protocol veterans and Rust experts join.
  4. 2022
    Into production
    PE, P and Route Reflector deployments go live.
  5. Today
    Thousands of devices
    Running 24 x 7 across North America, EMEA and Asia.

FIRE system testing is carried out by a team of experienced IP routing QA engineers. As the team grew, FIRE development moved to a CI / CD pipeline with comprehensive unit test, integration test and system test coverage.

From January 2022 an operations team was formed to roll out network devices built using FIRE, and the FIRE telemetry and alarms infrastructure was finalized and put into production.

The Team

220+ years of combined IP routing protocol experience.

Since January 2021 Nick has been joined by a team of highly skilled developers, C/C++ routing protocol veterans working alongside Rust language experts, with system testing by experienced IP routing QA engineers. To date around 30 developer years of effort have been invested in creating FIRE.

Jamie Barber
Jamie BarberLinkedIn →
QAFunctionality
Robert Hanzl
Robert HanzlLinkedIn →
OSPFBFD
Prem Anand Haridoss
Prem Anand HaridossLinkedIn →
QAPerformanceScale
Corentin Henry
Corentin HenryLinkedIn →
Async RustgRPCBGPPolicy Engine
Mitesh Kanjariya
Mitesh KanjariyaLinkedIn →
BGPRIB
RR
Reshad RahmanLinkedIn →
System APIRIBYANG model
Mandeep Rohilla
Mandeep RohillaLinkedIn →
BGPRIB
PR
Pat Ruddy
BGPBFDOSPF
Sebastian Ziebell
Sebastian ZiebellLinkedIn →
Rust consultancySystem API

Thousands of IP network devices built using FIRE are in production across North America, EMEA and Asia, running 24 x 7 with no crashes or unexpected restarts. FIRE has enabled these devices to be developed and deployed quickly, and has proved to be reliable, fast and secure in production.

More about Flock Networks →

FIRE Contents in detail

FIRE contains the complete source code for the components shown inside the FIRE box below. Customers are able to customize the implementation by implementing the components with dashed outlines. Some of the advantages of using FIRE are numbered, with explanations below.

FIREinternals · single process · lock-free1Protocol modify hooksCustomer extensions6BFDBGPIS-ISOSPFPIM-SSMStatic7RIBLRIBMRIBSystem managerPlatform API · event based2Configuration readOperation readOperation writeShared compute and I/O thread poolOSPF area addBGP neighbor addInterface upBFD session upAlarmsTelemetryRoute updatesBFD session addConfigOper stateDataplane (FIB)Customer target platform5100% Rust34
Figure 1: FIRE Contents

FIRE Advantages

  1. Clean architecture: FIRE has been designed and developed from scratch by a team of highly experienced IP protocol experts, developers and testers. The best practices from the past 30 years of IP router design have been used, and designs that have historically proved to be unreliable and inflexible have been avoided.
  2. Easy customization: FIRE is highly modular and presents strong flexible API’s, making it trivial to customize. The generic configuration and operation event based API’s allow FIRE to be controlled and monitored by any external model (YANG, NETCONF, REST, JSON, CLI, Prometheus…). The generic route programming event based API can easily be customized to program any kernel / data plane. The provided Linux reference implementation supports programming via Netlink and FPM (SONiC).
  3. Highly secure: FIRE is entirely implemented in the Rust language. Rust is the only available memory safe systems programming language. Implementing applications in Rust has been shown to reduce security vulnerabilities by 70%. This security guarantee is provided at compile time so these bugs cannot exist in the deployed device. FIRE is the first and most widely deployed IP routing suite written in Rust.
  4. Highly performant: The Rust language compile time memory safety guarantees means FIRE can run in a single operating system process. This means all the code has safe access to the same shared heap memory. FIRE does not need to perform any inter-process communication (IPC) making it far faster than other implementations. Rust also guarantees the absence of inter-thread “data races” at compile time. This eliminates the hardest problems when writing multithreaded code. FIRE has been designed to scale linearly vs the number of CPU cores available. FIRE is unique in that it can reliably utilize many cores in parallel whilst the network is converging, and then return to an idle state once converged. The FIRE implementation is lock free which means each thread can progress without being blocked by any other threads. This also means FIRE has a compile time guarantee that it cannot experience “dead lock”, which can cause other implementations to fail at any time when running in production.
  5. Flexible to match the target platform: FIRE can be compiled to execute as:
    1. A single operating system thread, for use in low end devices
    2. A thread per protocol, for use in mid range devices
    3. A thread per protocol and a thread pool, for use in high end devices
  6. Extensible protocol behavior: The FIRE API also contains “modify hooks” embedded at key points in each protocol’s implementation. The standard IETF protocol behavior can be modified or extended at compile time. For example, to implement a customized BGP “best path decision process”, a single Rust function can be written to override the default best path function. Because this is done at compile time there is no run time performance cost to achieve the new behavior.
  7. Extensive Protocol Support: FIRE supports all the commonly used IETF RFC’s for BGP, OSPFv2/v3, IS-IS, PIM-SSM, MPLS VPN, MPLS SR and BFD. The combination of the clean architecture and the expressiveness of the Rust language makes new feature development on FIRE incredibly fast. RFC’s that would take months to implement on legacy IP routing suites, can be implemented in weeks.
FIREConfigeventsOper readeventsOper write events/etc/flockd.jsonConfignetlinksyslogdOperation statenetlinkDataplane (FIB)flockd · Linux target platform8
Figure 2: FIRE Reference Linux implementation
  1. Complete: FIRE includes a production ready reference Linux implementation that works “Out of the box”. If your product requires standard Linux IP Routing Suite behavior, similar to Free Range Routing (FRR) or BIRD, then you don’t need to write any customization code. Just compile the reference implementation and deploy it. Alternatively this same implementation can be run on the SONiC network operating system, allowing a hardware forwarding / ASIC enabled network device to be quickly developed.
Test input eventsExpected output eventsFIRE protocol mocking9Mock BFDneighborsMock BGPneighborsMock IS-ISneighborsMock OSPFneighborsFIRE · unit under testMock configeventsConfigMock opereventsOper stateMock FIBeventsDataplane (FIB)FIRE platform mocking9
Figure 3: FIRE Testing Framework
  1. Highly reliable: The FIRE source code includes a testing framework with hundreds of unit tests that test the internal behavior, and hundreds of integration tests that check the compliance of the external API and its conformance to RFC behavior. All these tests are run every time any single line of code is changed. This also provides a very agile development environment where changes can be comprehensively tested in seconds, rather than waiting hours for system test results. The integration tests also “fuzz test” the external API to check that malformed inputs are correctly handled and the tests track changes in memory usage.
  2. Clean code: The FIRE source code is written to be easily read by other developers. This speeds up development and also allows the compiler to implement many optimizations. The code compiles with zero warnings. Static analysis of the code also produces zero warnings.
  3. Documented code: The FIRE source code also includes a “developer guide” and a “user guide”. The “developer guide” explains the FIRE architecture, how to interface with and extend the architecture, and a detailed description of the implementation of each internal component. The “user guide” is aimed at end users that are using the reference Linux IP routing suite implemented by customizing FIRE. The “user guide” covers installation, configuration and operation. The contents of these guides are written in the markdown format and are included alongside the rest of the source code.

Testing

Every change to FIRE is tested before it is merged, and the same tests are delivered to customers with the source code. Testing runs at every level, from individual functions to complete network devices.

100s
of integration tests run on every code change
0
critical vulnerabilities found in AI audit, penetration and DoS testing
10M
MPLS-VPN BGP paths from 10,000 eBGP neighbors, scale tested
4+ years
in production with no crashes or memory leaks

Unit and integration tests

Hundreds of unit tests check the internal behavior of each component. Hundreds of integration tests use the FIRE protocol and platform mocking framework (Figure 3) to check compliance of the external API and conformance to RFC behavior. All of these tests run on every code change, so changes are comprehensively tested in seconds rather than hours. The tests also track changes in memory usage.

Code coverage

The table shows line coverage of the FIRE production source code. Integration tests (IT) are preferred over unit tests (UT), because they test at the API level. This guarantees the API contract that FIRE provides to its RFC based protocol peers, and to the hosting system. Integration tests drive each protocol through the mocking framework the same way a real network would. Combined coverage counts a line as covered if any test reaches it.

ComponentLines of codeUnit testsIntegration testsCombined
BFD2,57345%86%88%
BGP36,64221%78%81%
IS-IS7,77113%89%91%
OSPF21,10823%81%83%
PIM-SSM4,49662%85%91%
MRIB53750%83%87%
RIB5,31455%75%78%
Static2,2364%89%89%
System and shared libraries29,63660%62%79%
All of FIRE110,31335%76%82%
Measured across all FIRE crates. Lines of code excludes test code.

Fuzz testing

The integration tests fuzz test the external API, checking that malformed inputs are correctly handled.

Static analysis

The FIRE source code compiles with zero warnings, and static analysis of the code also produces zero warnings.

System, performance and scale testing

A team of experienced IP routing QA engineers system tests FIRE as part of a CI / CD pipeline. Scale testing proves that PE routers built using FIRE can handle 10 million MPLS-VPN BGP paths sourced via 10,000 eBGP neighbors, and that FIRE can signal one billion BGP route updates across one thousand BGP neighbors in under 90 seconds on a router with four logical CPU cores.

Security testing

AI audit, penetration testing and denial of service (DoS) testing have found zero critical vulnerabilities in FIRE.

Proven in production

Thousands of network devices built using FIRE have been in production for over four years without a crash, memory leak or unexpected restart.

AI agent friendly

FIRE is designed to work well with AI agents, both when developing FIRE itself and when testing the devices built with it.

AI developing

FIRE is well suited to development by AI coding agents because of its integration test (IT) harness. Each integration test drives FIRE through the protocol and platform mocking framework (Figure 3), injecting test input events and checking the expected output events. No real network or lab equipment is needed, and the tests run in seconds.

When an agent is asked to develop a new feature or fix a bug, the task comes with a clear success criterion that the agent can check for itself:

Success criteria
  1. Write new integration tests that describe the new feature, or reproduce the bug.
  2. All of the new integration tests must pass.
  3. All of the existing integration tests must still pass.

The Rust compiler catches memory safety and thread safety errors at build time, so the agent gets fast, precise feedback at every step. Reviewers receive a change that has already proved it works, and that it has not broken anything else.

With this clear success criterion, AI agents routinely run unprompted for over 30 minutes in the integration test sandbox, working until every test passes.

AI testing

Devices built using FIRE expose all of their operational state and configuration through a structured gRPC API, returning machine friendly JSON. That makes them easy for AI agents to observe and operate, not just people.

flockmcp

flockmcp is a Model Context Protocol (MCP) server that lets an AI assistant read the live state of your routers. It speaks MCP to the assistant and gRPC to the flockd daemon on each router, so in one conversation an assistant can look at several routers and compare them. Like all Flock software, it is written in Rust.

AI assistantany MCP clientMCPflockmcpflockd on r1flockd on r2flockd on …gRPC

Instead of logging in to each router and piecing the answers together, you ask:

AI assistant · flockmcp
  • Are all the BGP sessions on r1 and r2 established?
  • What route does r1 use for 198.51.100.7, and where did it come from?
  • Do r1 and r2 agree on the route to 10.1.0.0/16?
  • Compare the BGP routes r1 sends r2 with what r2 says it received.

The assistant picks from 19 tools covering the fleet of routers, the system, the RIB, the label RIB, static routes and BGP, including EVPN, and puts the answer together for you.

Built for operators

  • Read-only by default. flockmcp cannot change a router’s configuration. Its only action, a BGP neighbor reset, is refused unless both flockmcp and the router are configured to allow it.
  • Secure by default. The flockd gRPC API serves reads only, unless configuration changes or actions are explicitly allowed.
  • Answers you can check. Every answer is the same JSON that flockc prints, and the test suite runs each tool against real flockd and compares the result with flockc.
  • Made for real tables. Large tables are returned a page at a time, so a full BGP table cannot flood the assistant, and a router that is down does not stop the assistant asking the others.
  • Works with any MCP client. Including Claude Code, Codex CLI, Gemini CLI, or an open model on your own hardware, so your routers’ state never leaves your network. flockmcpd runs as a long-lived service, shipped as a Debian package and a container image.

Summary

Creating new network devices using out-of-date IP routing suites is a mistake. The existing implementations are insecure and do not scale well on modern multi-core hardware. The complexity involved in adding new protocols has caused the internet infrastructure to stagnate.

The internet is now a utility and the networking industry needs to advance so that the deployed network devices are so stable, secure and efficient that they become transparent to end user applications.

If you have any questions or want to enquire about licensing FIRE then please email info@flocknetworks.com.

In production at Graphiant
“Flock delivered what was required to offer a fully functional routing stack in a contemporary package, along with the ability to support the unique innovations required for Graphiant.”
Stefan Olofsson · Founder and CTO, Graphiant

Build your next device on FIRE.

The source code is available to license. Run it on Linux or SONiC.