This repository contains the DTN Test Framework libraries. It is intended to be compiled into a Python package and installed using the Python package manager.
The following instructions are for building and installing the HDTN Test Framework on a machine running Ubuntu 20.04. Other operating systems are supported, but require alternative installation methods.
- Install python
sudo apt-get install python3
- Install pip
sudo apt-get install python3-pip
- Install the Python build package
pip3 install build
- Perform the build
python3 -m build
- Perform the install
pip3 uninstall -y dtn-test-framework pip3 install dist/*.whl
For convenience, an install.sh
script is provided to automated steps 4 and 5.
import dtn_test.protocols.bpv6 as BPv6
bundle = BPv6.Bundle(
version=6,
flags=BPv6.Bundle.CtrlFlags.DESTINATION_ENDPOINT_SINGLETON,
dest_scheme_offset=1,
dest_ssp_offset=2,
src_scheme_offset=3,
src_ssp_offset=4,
report_scheme_offset=5,
report_ssp_offset=6,
custodian_scheme_offset=7,
custodian_ssp_offset=8,
creation_timestamp_time=774489600,
creation_timestamp_num=1,
lifetime=1000,
dictionary_length=0,
)