Skip to main content
v2026.11,986 entries · CC-BY 4.0

FABRIC Testbed: NSF Network Research Infrastructure and How to Use It

The FABRIC testbed is an NSF-funded network research infrastructure. Learn how to get access, run a first FABlib slice and fix permission errors.

Written and maintained by CASRAI Editorial Board

Published

On this page

The FABRIC testbed is a National Science Foundation-funded research network and computing infrastructure that lets researchers build their own experimental topologies, with compute nodes, programmable switches and SmartNICs, joined by dedicated links of up to 1.2 Tbps across 34 locations worldwide, and run network, distributed-systems and cloud-computing experiments on them. You get access through a FABRIC account on the project portal, membership of a project, and an API token or SSH keys, then describe an experiment as a “slice” through the browser-based LoomAI interface, a JupyterHub with the FABlib Python library pre-installed, or FABlib on your own machine. This guide is about the research infrastructure; it is unrelated to the Hyperledger Fabric blockchain benchmarking tools that sometimes share its name.

What FABRIC is used for in research

FABRIC describes itself as an infrastructure for experimenting at scale with networking and computing. Its own overview lists compute resources (CPUs, GPUs, FPGAs, memory and storage), software-defined networking switches and SmartNICs, NVMe and persistent volumes, and programmable data-plane targets for the P4 language: BMv2, the Tofino Model, DPDK, Xilinx FPGA and native Tofino. Dedicated links run at up to 1.2 Tbps between its 34 locations, which include sites in Asia and Europe. The work is funded by the NSF through a series of awards: CNS-1935966, CNS-2029176, CNS-2029200, CNS-2029235, CNS-2029260, CNS-2029261 and CNS-2330891.

For a researcher this matters because a result produced on shared, documented infrastructure can be described precisely in a methods section: which sites were used, which components were requested and which software drove the experiment. That is the same concern the computational reproducibility literature raises for any experiment run on remote hardware. Teams that already run experiments through a hosted notebook environment will recognise the pattern from JupyterHub, which is also FABRIC’s default entry point.

Why a testbed rather than a cluster

A scheduler-managed cluster, as covered in the comparison of Slurm, LSF and PBS, runs your jobs on hardware whose network you cannot change. A testbed like FABRIC lets you define the network itself: the slice you create contains the nodes, the network services between them and, with the right permissions, components such as GPUs, NVMe drives and SmartNICs.

How to install or access FABRIC

Access is a chain of steps, and each one has to be complete before the Python tools work. The steps below follow the access sequence documented for FABRIC users and the FABRIC knowledge base.

  1. Create a FABRIC account on the FABRIC portal (portal.fabric-testbed.net).
  2. Create or join a project. Resources are allocated to projects, so the project ID is needed later.
  3. Set up SSH keys. FABRIC nodes are reached through a bastion host, so you need a bastion username and key as well as a slice key pair.
  4. Generate an API token in the portal. The knowledge base states that the token is valid for 24 hours, so a new one is needed for each new day of work.
  5. Request additional permissions if your experiment needs them. For GPUs, NVMe, NAS, SmartNICs, public IPs or multi-site slices, use Experiments › Projects and Slices › [Your Project] › Request Permissions in the portal.

Option 1: the FABRIC JupyterHub

FABRIC operates a JupyterHub at jupyter.fabric-testbed.net with FABlib pre-installed. The knowledge base says most users start here, and it is the shortest path from an approved account to a running experiment because the library and example notebooks are already in place.

Option 2: FABlib on your own machine

FABlib, the Python library, is published in the fabrictestbed-extensions repository on GitHub. Install it with pip install fabrictestbed-extensions. The knowledge-base install guide gives the supported Python range as 3.9 to 3.13 and says that using a version below 3.9 is the most common reason local installs fail, so check python3 --version first. The guide recommends a virtual environment, then saving the portal token as a JSON file and pointing the FABRIC_TOKEN_LOCATION environment variable at it. The same package installs fabric-cli, a command-line tool for tokens, slices and resource queries. The example notebooks live in the fabric-testbed/jupyter-examples repository.

Option 3: the LoomAI browser interface

In an April 2026 announcement on its knowledge-base forum, FABRIC introduced LoomAI, an open-source, browser-based interface, and described it as the newly recommended way to use the testbed. It offers a drag-and-drop topology editor, SSH terminals, a file manager and a geographic resource map, plus “Weaves” (reusable, automated experiment packages) and an Artifact Marketplace for sharing templates. It replaces command-line and notebook workflows with a point-and-click one, so it suits readers who want to design a topology visually. The rest of this guide uses FABlib because its code can be stored with a paper.

Configuration variables

FABlib reads its configuration from environment variables or a configuration file. The variables documented for the Kiso experiment tool, which drives FABRIC through the same account, are FABRIC_BASTION_HOST, FABRIC_BASTION_USERNAME, FABRIC_BASTION_KEY_LOCATION, FABRIC_PROJECT_ID, FABRIC_SLICE_PRIVATE_KEY_FILE, FABRIC_SLICE_PUBLIC_KEY_FILE, FABRIC_TOKEN_LOCATION, FABRIC_LOG_LEVEL and FABRIC_LOG_FILE. Kiso’s documentation notes that values must not be wrapped in single quotes.

How to create and run a first slice step by step

A slice is FABRIC’s unit of experiment: a set of nodes and networks that you request, use and delete. The example below is the one in the FABlib node documentation.

  1. Import the manager and create it: from fabrictestbed_extensions.fablib.fablib import FablibManager as fablib_manager, then fablib = fablib_manager(). Run fablib.show_config() to print the configuration FABlib found.
  2. Create an empty slice: slice = fablib.new_slice(name="MySlice").
  3. Add a node: node = slice.add_node(name="node1"). The slice documentation also shows the optional site argument, for example site="TACC", and slice.add_l2network(...) for network services between nodes.
  4. Submit the slice: slice.submit(). Submission asks the FABRIC orchestrator to build the topology and configures each node, including its hostname, interfaces, routes and post-boot tasks.
  5. Run a command on the node: node.execute('echo Hello, FABRIC from node `hostname -s`').
  6. Delete the slice when you are done: slice.delete().

The FABlib slice documentation describes three layer-2 network types you can request between interfaces: L2Bridge (a local Ethernet on a single site), L2STS (a wide-area Ethernet on exactly two sites) and L2PTP (a wide-area Ethernet on exactly two sites with exactly two interfaces). If you leave the type unset, FABlib chooses one for you, which the documentation says is the right choice in most cases. Layer-3 networks, called FABNet, are isolated per site and can reach other FABNet networks of the same IP version.

How to read the output

The first confirmation that the toolchain is working is fablib.show_config(), which echoes the configuration (project, token location, bastion settings) that FABlib resolved. If a value is wrong there, fix the environment variable before submitting anything. The second is the command output from step 5: in the documented example the node prints a greeting containing its own short hostname, which proves that the slice was built, the node was reachable through the bastion and the command ran on the node rather than on your laptop.

For reporting, record the slice’s sites, the node and network definitions and the date, since the token, the allocation and the available hardware all change over time. Storing the notebook or script alongside the paper is how the experiment is made repeatable by others with FABRIC accounts of their own.

Troubleshooting FABRIC

The local install fails

Check the Python version first. The install guide names a version below 3.9 as the most common cause of failed local deployments. Use a clean virtual environment rather than installing into a system Python.

Authentication fails the next day

The token is valid for 24 hours. Generate a new one in the portal and save it over the old file at the path in FABRIC_TOKEN_LOCATION.

Submission fails with an orchestrator error

The FABlib documentation states that components needing permissions, such as NVMe, GPU and FPGA, make slice.submit() fail with an orchestrator error if your project has not been granted the permission. Request it in the portal (Experiments › Projects and Slices › [Your Project] › Request Permissions), then submit again. The same request path covers NAS, SmartNICs, public IPs and multi-site slices.

Configuration values are ignored

If you load the settings from a shell resource file, do not put single quotes around the values.

Where to ask

FABRIC runs public forums on its knowledge base at learn.fabric-testbed.net/forums, which is where users report slice-creation errors.

Free alternatives to FABRIC

Several other NSF-supported testbeds serve overlapping needs. They differ in what you can reconfigure, and the right choice depends on whether your experiment needs control of the network, of the bare-metal hardware or of a full cloud stack. The table summarises how each testbed describes itself; the dataset below it compares the figures each one publishes.

Testbed How its operators describe it Where it differs from FABRIC
FABRIC Infrastructure for experiments at scale with networking and computing, with programmable switches and SmartNICs Network topology and data-plane programmability are part of the slice you define
Chameleon A large-scale, deeply reconfigurable experimental platform for computer-science systems research, built on OpenStack with bare-metal reconfiguration Emphasises full control of the software stack, including root access and kernel customisation, on bare metal
CloudLab Flexible scientific infrastructure for research on the future of cloud computing, built from Emulab and parts of GENI Aimed at building your own cloud, with standard stacks such as OpenStack, Hadoop and Kubernetes or your own, on bare-metal machines

CloudLab has its own explainer in CloudLab guide. Eligibility and allocation rules differ between testbeds, so confirm each one on its own site before planning a study around it.

Frequently asked questions

What is the FABRIC testbed?

It is an NSF-funded research infrastructure for experimenting with networking and computing at scale, with compute resources, programmable switches and SmartNICs connected by dedicated links of up to 1.2 Tbps across 34 locations worldwide.

How do I get access to FABRIC?

Create an account on the FABRIC portal, create or join a project, set up SSH keys and an API token, and request any extra permissions (GPUs, NVMe, SmartNICs, public IPs, multi-site slices) under Request Permissions in the project’s page.

Which tool should I use to run experiments?

FABRIC offers the LoomAI browser interface, a JupyterHub with FABlib pre-installed, and FABlib or fabric-cli on your own machine. FABRIC announced LoomAI in 2026 as its newly recommended way to use the testbed.

Why does my slice fail to submit?

If it requests a component that needs permission, such as a GPU, NVMe or FPGA, and your project lacks that permission, submission fails with an orchestrator error until the permission is granted.

Sources

Data: Published scale and focus of three NSF-supported research testbeds

Compares FABRIC, Chameleon and CloudLab using figures each operator publishes on its own site: number of sites or locations, stated link speed and the provisioning model each describes. Values are as the operators state them and are not normalised across testbeds.

Published scale and focus of three NSF-supported research testbeds
TestbedSites or locations statedStated network or capacity detailProvisioning model as described
FABRIC34 locations worldwide, including Asia and EuropeDedicated links up to 1.2 TbpsSlices of nodes and network services, built through the orchestrator
ChameleonThree main sites: University of Chicago, TACC and NCARNearly 15,000 cores and 5 PB of disk in the homogeneous partition; 100 Gbps network between sitesBare-metal reconfiguration on OpenStack, with a small KVM cloud
CloudLabThree sites: Utah, Wisconsin and South Carolina, plus federated facilitiesAlmost 1,000 machines; interconnected with Internet2Bare-metal control for building clouds, built from Emulab and parts of GENI

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about FABRIC Testbed: NSF Network Research Infrastructure and How to Use It

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →