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.
- Create a FABRIC account on the FABRIC portal (portal.fabric-testbed.net).
- Create or join a project. Resources are allocated to projects, so the project ID is needed later.
- 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.
- 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.
- 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.
- Import the manager and create it:
from fabrictestbed_extensions.fablib.fablib import FablibManager as fablib_manager, thenfablib = fablib_manager(). Runfablib.show_config()to print the configuration FABlib found. - Create an empty slice:
slice = fablib.new_slice(name="MySlice"). - Add a node:
node = slice.add_node(name="node1"). The slice documentation also shows the optionalsiteargument, for examplesite="TACC", andslice.add_l2network(...)for network services between nodes. - 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. - Run a command on the node:
node.execute('echo Hello, FABRIC from node `hostname -s`'). - 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
- About FABRIC, whatisfabric.net: funding awards, locations, links and hardware.
- Install the FABRIC Python API, FABRIC Knowledge Base: Python range, token validity, virtual environment.
- fabrictestbed-extensions (FABlib) on GitHub: package name, quickstart, fabric-cli.
- FABlib node documentation and slice documentation: the example slice, network types, permission failures.
- Kiso documentation, FABRIC testbed: access chain, permission requests and configuration variables.
- Getting Started with LoomAI, FABRIC Knowledge Base forum: LoomAI features.
- About Chameleon, chameleoncloud.org and CloudLab home page, cloudlab.us: alternative testbeds.
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.
| Testbed | Sites or locations stated | Stated network or capacity detail | Provisioning model as described |
|---|---|---|---|
| FABRIC | 34 locations worldwide, including Asia and Europe | Dedicated links up to 1.2 Tbps | Slices of nodes and network services, built through the orchestrator |
| Chameleon | Three main sites: University of Chicago, TACC and NCAR | Nearly 15,000 cores and 5 PB of disk in the homogeneous partition; 100 Gbps network between sites | Bare-metal reconfiguration on OpenStack, with a small KVM cloud |
| CloudLab | Three sites: Utah, Wisconsin and South Carolina, plus federated facilities | Almost 1,000 machines; interconnected with Internet2 | Bare-metal control for building clouds, built from Emulab and parts of GENI |
Sources
- About FABRIC (accessed 2026-11-17)
- About Chameleon (accessed 2026-11-17)
- CloudLab (accessed 2026-11-17)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







