Skip to content

nasa/dtn-test-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dtn-test-framework

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.

Build and Install

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.

  1. Install python
    sudo apt-get install python3
    
  2. Install pip
    sudo apt-get install python3-pip
    
  3. Install the Python build package
    pip3 install build
    
  4. Perform the build
    python3 -m build
    
  5. 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.

Using the Framework

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,
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages