NDNd is a Golang implementation of the Named Data Networking (NDN) protocol stack.
See the project overview, architecture details and the tutorial for more info on NDN.
Pre-built static binaries for all supported platforms are available on the releases page. Linux-based systems may also utilize the provided Docker images.
NDNd is written in pure Go and requires Go 1.23 or later to build from source.
Once Go is installed, run make
to build the ndnd
executable, followed by make install
to install it globally.
NDNd provides several independent modules that can be used separately or together.
You can use the ndnd
CLI to list available modules and get more info on their usage.
A tutorial example for running a simple NDN network can be found here.
root@0037b98ec2ac:~# ndnd
_ _ ____ _ _ _
| \ | | _ \| \ | | __| |
| \| | | | | \| |/ _ |
| |\ | |_| | |\ | (_| |
|_| \_|____/|_| \_|\____|
Named Data Networking Daemon
Usage:
ndnd [command]
NDN Daemons
fw NDN Forwarding Daemon
dv NDN Distance Vector Daemon
daemon NDN Combined Daemon
Security Tools
sec NDN Security Utilities
certcli NDNCERT Certificate Client
Debug Tools
ping Send Interests to a ping server
pingserver Start a ping server under a name prefix
cat Retrieve object under a name prefix
put Publish data under a name prefix
Additional Commands:
help Help about any command
Flags:
-v, --version version for ndnd
The ndnd/fw
package implements YaNFD, a packet forwarder for the NDN platform.
It is compatible with the management tools and protocols developed for the NFD forwarder.
To start the forwarder locally, run the following:
ndnd fw run yanfd.config.yml
A full configuration example can be found in fw/yanfd.sample.yml. Note that the default configuration may require root privileges to bind to multicast interfaces.
Once started, you can use the forwarder control tool to manage faces and routes.
The ndnd/dv
package implements ndn-dv
, an NDN Distance Vector routing daemon.
To start the routing daemon bound to the local forwarder, run the following:
ndnd dv run dv.config.yml
A full configuration example can be found in dv/dv.sample.yml. Make sure the network and router name are correctly configured and the forwarder is running.
Once started, you can use the router control tool to create and destroy neighbor links.
The ndnd/std
package implements go-ndn
, a standard library for NDN applications.
You can use this package to build your own NDN applications. Several examples are provided in the std/examples directory.
The standard library supports the Light VerSec binary format for trust schema specification.
The ndnd/tools
package provides basic utilities for NDN networks.
These can be used directly using the ndnd
CLI.
sec
: security utilities for generating keys and certificates (docs)certcli
: interactive NDNCERT client (docs)ping
/pingserver
: test reachability between two NDN nodescat
/put
: segmented file transfer between a consumer and a producer
Contributions to NDNd are greatly appreciated and can be made through GitHub pull requests and issues.
NDNd is free software distributed under the permissive MIT license.