Documentation

The documentation for Ion is broken up into several sections that deal with the general installation and configuration of Ion. The design documentation for Ion is available here.

Release Notes

Release Notes for ION 2.3.0

December 5, 2010

(Note: these old release notes are provided for easy reference in this Tutorial. The release notes for the current version of ION are available here.)

GENERAL

The ION (interplanetary overlay network) software is a suite of communication protocol implementations designed to support mission operation communications across an end-to-end interplanetary network, which might include on-board (flight) subnets, in-situ planetary or lunar networks, proximity links, deep space links, and terrestrial internets. Included in the ION softwarex distribution are the following packages:

Features included:

NOTES ON RELEASE 2.3.0

NOTES ON RELEASE 2.2.1

NOTES ON RELEASE 2.2.0

NOTES ON RELEASE 2.1.0

NOTES ON RELEASE 2.0.0

NOTES ON RELEASE 1.1.0

NOTES ON RELEASE 1.0_r203

NOTES ON RELEASE 0.3

NOTES ON RELEASE 0.2

NOTES ON RELEASE 0.1

Installing Ion Daemon and Tools

Software Requirements

ION requires the following software packages:

  • Modern *nix OS: Currently tested on Ubuntu Linux (8.04, 7.10, 7.04), Gentoo Linux, Fedora Core (3, 7), Apple OSX (10.5) and Solaris 10. Almost any 2.6 series or later Linux kernel should work.
  • Standard GNU core tools (tar, gzip, etc).
  • Standard GNU build tools (gcc, make).
  • Optionally, the Expat XML parser (and development libraries).
  • The POSIX Threading library (pthreads).
  • Pod2man (perl tool for creating documentation files).
  • For now, root privileges (via sudo) for installation.
  • GNU autotools (autoconf, automake, libtool) make installation much easier, but are optional.
  • Sed and awk required for some helper scripts.

Obtaining the Ion Release

ION has been available as open source from SourceForge since June of 2011, here.

Compiling Ion using autotools (suggested)

Follow the standard autoconf method for compiling the project. In the base ION directory run:

./configure

Then compile with:

make

After successful compilation, you should test that your system runs ION properly. This test currently sends data using ION over loopback. A secondary test is run for Apple OSX users, and it may require some modification in the amount of available shared memory (details are given in the output):

make test

Finally, install (requires root privileges):

sudo make install

Autotools will usually install packages such as this in the /usr/local/ directory tree. This is where the example configuration files and a copy of this tutorial will end up (that is, in the share/ion subdirectory). Please move on to post-installation. Note that if you do not have root privileges, or would like to only run ION locally, then adding the entire build directory to your PATH is advised - almost every ION-related program will attempt to call several others and will expect that they exist in the PATH.

Compiling ION Manually

In some cases (e.g., you desire to use the 'original' makefiles or run into a problem with autotools) users may wish to use the NASA-JPL provided make utilities for installation. Extract the makefiles using tar -xzf makefile.tar.gz in the root extracted directory. This will put the makefiles in the required directories. Manual compilation will be required for each package (listed below). The Makefiles default to a Redhat Linux i86 architecture, but several other architectures are available. Build order:

  • ici
  • dgr
  • bssp
  • ltp
  • bp
  • ams
  • cfdp
  • bss
  • dtpc
  • restart

Post-Install Steps

For Linux based systems, you may need to run ldconfig with no arguments after install.

No other post-install steps are required if autotools were used. If autotools were not used, please read the following:

ION is installed into /opt by default. Therefore, you will have to tell your shell how to access them. If you're running the bash shell (as is the default in virtually all Linux systems), you can enter the following lines into  /.bashrc:

export PATH="${PATH}:/opt/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/lib"
export MANPATH="${MANPATH}:/opt/man"

For other shells, please check your shell documentation.

Quick Start Guide

Programs in Ion

The following tools are available to you after ION is built:

  • Daemon and Configuration:
    • ionadmin is the administration and configuration interface for the local ION node contacts and manages shared memory resources used by ION.
    • ltpadmin is the administration and configuration interface for LTP operations on the local ION node.
    • bsspadmin is the administrative interface for operations of the Bundle Streaming Service Protocol on the local ion node.
    • bpadmin is the administrative interface for bundle protocol operations on the local ion node.
    • ipnadmin is the administration and configuration interface for the IPN addressing system and routing on the ION node. (ipn:)
    • dtn2admin is the administration and configuration interface for the DTN addressing system and routing on the ION node. (dtn://)
    • killm is a script which tears down the daemon and any running ducts on a single machine (use ionstop instead).
    • ionstart is a script which completely configures an ION node with the proper configuration file(s).
    • ionstop is a script which completely tears down the ION node.
    • ionscript is a script which aides in the creation and management of configuration files to be used with ionstart.
  • Simple Sending and Receiving:
    • bpsource and bpsink are for testing basic connectivity between endpoints. bpsink listens for and then displays messages sent by bpsource.
    • bpsendfile and bprecvfile are used to send files between ION nodes.
  • Testing and Benchmarking:
    • bpdriver benchmarks a connection by sending bundles in two modes: request-response and streaming.
    • bpecho issues responses to bpdriver in request-response mode.
    • bpcounter acts as receiver for streaming mode, outputting markers on receipt of data from bpdriver and computing throughput metrics.

Logging

It is important to note that, by default, the administrative programs will all trigger the creation of a log file called ion.log in the directory where the program is called. This means that write-access in your current working directory is required. The log file itself will contain the expected log information from administrative daemons, but it will also contain error reports from simple applications such as bpsink. This is important to note since the BP applications may not be reporting all error information to stdout or stderr.

Starting the Ion Daemon

A script has been created which allows a more streamlined configuration and startup of an ION node. This script is called ionstart, and it has the following syntax. Don't run it yet; we still have to configure it!

ionstart -I <filename >

  1. filename: This is the name for configuration file which the script will attempt to use for the various configuration commands. The script will perform a sanity check on the file, splitting it into command sections appropriate for each of the administration programs.

Configuration information (such as routes, connections, etc) can be specified one of two ways for any of the individual administration programs:

  1. (Recommended) Creating a configuration file and passing it to ionadmin, bpadmin, ipnadmin... either directly or via the ionstart helper script.
  2. Manually typing configuration commands into the terminal for each administration program.

You can find appropriate commands in the following sections.

Configuration Files Overview

There are five configuration files about which you should be aware.

The first, ionadmin's configuration file, assigns an identity (node number) to the node, optionally configures the resources that will be made available to the node, and specifies contact bandwidths and one-way transmission times. Specifying the "contact plan" is important in deep-space scenarios where the bandwidth must be managed and where acknowledgments must be timed according to propagation delays. It is also vital to the function of contact-graph routing.

The second, ltpadmin's configuration file, specifies spans, transmission speeds, and resources for the Licklider Transfer Protocol convergence layer.

The third, bpadmin's configuration file, specifies all of the open endpoints for delivery on your local end and specifies which convergence layer protocol(s) you intend to use. With the exception of LTP, most convergence layer adapters are fully configured in this file.

The fourth, ipnadmin's configuration file, maps endpoints at "neighboring" (topologically adjacent, directly reachable) nodes to convergence-layer addresses. Our examples use TCP/IP and LTP (over IP/UDP), so it maps endpoint IDs to IP addresses. This file populates the ION analogue to an ARP cache for the "ipn" naming scheme.

The fifth, dtn2admin's configuration file, populates the ION analogue to an ARP cache for the "dtn" naming scheme.

The Ion Configuration File

Given to ionadmin either as a file or from the daemon command line, this file configures contacts for the ION node. We will assume that the local node's identification number is 1.

This file specifies contact times and one-way light times between nodes. This is useful in deep-space scenarios: for instance, Mars may be 20 light-minutes away, or 8. Though only some transport protocols make use of this time (currently, only LTP), it must be specified for all links nonetheless. Times may be relative (prefixed with a + from current time) or absolute. Absolute times, are in the format yyyy/mm/dd-hh:mm:ss. By default, the contact-graph routing engine will make bundle routing decisions based on the contact information provided.

The configuration file lines are as follows:

1 1 ''

This command will initialize the ion node to be node number 1.

  • 1 refers to this being the initialization or ''first'' command.
  • 1 specifies the node number of this ion node. (IPN node 1).
  • '' specifies the name of a file of configuration commands for the node's use of shared memory and other resources (suitable defaults are applied if you leave this argument as an empty string).

s

This will start the ION node. It mostly functions to officially "start" the node in a specific instant; it causes all of ION's protocol-independent background daemons to start running.

a contact +1 +3600 1 1 100000

specifies a transmission opportunity for a given time duration between two connected nodes (or, in this case, a loopback transmission opportunity).

  • a adds this entry in the configuration table.
  • contact specifies that this entry defines a transmission opportunity.
  • +1 is the start time for the contact (relative to when the s command is issued).
  • +3600 is the end time for the contact (relative to when the s command is issued).
  • 1 is the source node number.
  • 1 is the destination node number.
  • 100000 is the maximum rate at which data is expected to be transmitted from the source node to the destination node during this time period (here, it is 100000 bytes / second).

a range +1 +3600 1 1 1

specifies a distance between nodes, expressed as a number of light seconds, where each element has the following meaning:

  • a adds this entry in the configuration table.
  • range declares that what follows is a distance between two nodes.
  • +1 is the earliest time at which this is expected to be the distance between these two nodes (relative to the time s was issued).
  • +3600 is the latest time at which this is still expected to be the distance between these two nodes (relative to the time s was issued).
  • 1 is one of the two nodes in question.
  • 1 is the other node.
  • 1 is the distance between the nodes, measured in light seconds, also sometimes called the "one-way light time" (here, one light second is the expected distance).

m production 1000000

specifies the maximum rate at which data will be produced by the node.

  • m specifies that this is a management command.
  • production declares that this command declares the maximum rate of data production at this ION node.
  • 1000000 specifies that at most 1000000 bytes/second will be produced by this node.

m consumption 1000000

specifies the maximum rate at which data can be consumed by the node.

  • m specifies that this is a management command.
  • consumption declares that this command declares the maximum rate of data consumption at this ION node.
  • 1000000 specifies that at most 1000000 bytes/second will be consumed by this node.

This will make a final configuration file host1.ionrc which looks like this:

1 1 ''
s
a contact +1 +3600 1 1 100000
a range +1 +3600 1 1 1
m production 1000000
m consumption 1000000

The Licklider Transfer Protocol Configuration File

Given to ltpadmin as a file or from the command line, this file configures the LTP engine itself. We will assume the local IPN node number is 1; in ION, node numbers are used as the LTP engine numbers.

1 32

This command will initialize the LTP engine:

  • 1 refers to this being the initialization or ''first'' command.
  • 32 is an estimate of the maximum total number of LTP ''block'' transmission sessions - for all spans - that will be concurrently active in this LTP engine. It is used to size a hash table for session lookups.

a span 1 32 32 1400 10000 1 'udplso localhost:1113'

This command defines an LTP engine 'span':

  • a indicates that this will add something to the engine.
  • span indicates that an LTP span will be added.
  • 1 is the engine number for the span, the number of the remote engine to which LTP segments will be transmitted via this span. In this case, because the span is being configured for loopback, it is the number of the local engine, i.e., the local node number. This will have to match an outduct in Section 2.6.
  • 32 specifies the maximum number of LTP ''block'' transmission sessions that may be active on this span. The product of the mean block size and the maximum number of transmission sessions is effectively the LTP flow control ''window'' for this span: if it's less than the bandwidth delay product for traffic between the local LTP engine and this spa's remote LTP engine then you'll be under-utilizing that link. We often try to size each block to be about one second's worth of transmission, so to select a good value for this parameter you can simply divide the span's bandwidth delay product (data rate times distance in light seconds) by your best guess at the mean block size.
  • The second 32specifies the maximum number of LTP ''block'' reception sessions that may be active on this span. When data rates in both directions are the same, this is usually the same value as the maximum number of transmission sessions.
  • 1400 is the number of bytes in a single segment. In this case, LTP runs atop UDP/IP on ethernet, so we account for some packet overhead and use 1400.
  • 1000 is the LTP aggregation size limit, in bytes. LTP will aggregate multiple bundles into blocks for transmission. This value indicates that the block currently being aggregated will be transmitted as soon as its aggregate size exceeds 10000 bytes.
  • 1 is the LTP aggregation time limit, in seconds. This value indicates that the block currently being aggregated will be transmitted 1 second after aggregation began, even if its aggregate size is still less than the aggregation size limit.
  • 'udplso localhost:1113' is the command used to implement the link itself. The link is implemented via UDP, sending segments to the localhost Internet interface on port 1113 (the IANA default port for LTP over UDP).

s 'udplsi localhost:1113'

Starts the ltp engine itself:

  • s starts the ltp engine.
  • 'udplsi localhost:1113' is the link service input task. In this case, the input ''duct' is a UDP listener on the local host using port 1113.

This means that the entire configuration file host1.ltprc looks like this:

1 32
a span 1 32 32 1400 10000 1 'udplso localhost:1113'
s 'udplsi localhost:1113'

The Bundle Protocol Configuration File

Given to bpadmin either as a file or from the daemon command line, this file configures the endpoints through which this node's Bundle Protocol Agent (BPA) will communicate. We will assume the local BPA's node number is 1; as for LTP, in ION node numbers are used to identify bundle protocol agents.

1

This initializes the bundle protocol:

  • 1 refers to this being the initialization or ''first'' command.

a scheme ipn 'ipnfw' 'ipnadminep'

This adds support for a new Endpoint Identifier (EID) scheme:

  • a means that this command will add something.
  • scheme means that this command will add a scheme.
  • ipn is the name of the scheme to be added.
  • 'ipnfw' is the name of the IPN scheme's forwarding engine daemon.
  • 'ipnadminep' is the name of the IPN scheme's custody transfer management daemon.

a endpoint ipn:1.0 q

This command establishes this BP node's membership in a BP endpoint:

  • a means that this command will add something.
  • endpoint means that this command adds an endpoint.
  • ipn is the scheme name of the endpoint.
  • 1.0 is the scheme-specific part of the endpoint. For the IPN scheme the scheme-specific part always has the form nodenumber:servicenumber. Each node must be a member of the endpoint whose node number is the node's own node number and whose service number is 0, indicating administrative traffic.
  • q means that the behavior of the engine, upon receipt of a new bundle for this endpoint, is to queue it until an application accepts the bundle. The alternative is to silently discard the bundle if no application is actively listening; this is specified by replacing q with x.

a endpoint ipn:1.1 q

a endpoint ipn:1.2 q

These specify two more endpoints that will be used for test traffic.

a protocol ltp 1400 100

This command adds support for a convergence-layer protocol:

  • a means that this command will add something.
  • protocol means that this command will add a convergence-layer protocol.
  • ltp is the name of the convergence-layer protocol.
  • 1400 is the estimated size of each convergence-layer protocol data unit (in bytes); in this case, the value is based on the size of a UDP/IP packet on Ethernet.
  • 100 is the estimated size of the protocol transmission overhead (in bytes) per convergence-layer procotol data unit sent.

a induct ltp 1 ltpcli

This command adds an induct, through which incoming bundles can be received from other nodes:

  • a means that this command will add something.
  • induct means that this command will add an induct.
  • ltp is the convergence layer protocol of the induct.
  • 1 is the identifier of the induct, in this case the ID of the local LTP engine.
  • ltpcli is the name of the daemon used to implement the induct.

a outduct ltp 1 ltpclo

This command adds an outduct, through which outgoing bundles can be sent to other nodes:

  • a means that this command will add something.
  • outduct means that this command will add an outduct.
  • ltp is the convergence layer protocol of the outduct.
  • 1 is the identifier of the outduct, the ID of the convergence-layer protocol induct of some remote node. See Section 2.5 for remote LTP engine IDs.
  • ltpclo is the name of the daemon used to implement the outduct.

s

This command starts the bundle engine including all daemons for the inducts and outducts.

That means that the entire configuration file host1.bprc looks like this:

1
a scheme ipn 'ipnfw' 'ipnadminep'
a endpoint ipn:1.0 q
a endpoint ipn:1.1 q
a endpoint ipn:1.2 q
a protocol ltp 1400 100
a induct ltp 1 ltpcli
a outduct ltp 1 ltpclo
s

IPN Routing Configuration

As noted earlier, this file is used to build ION's analogue to an ARP cache, a table of ''egress plans.'' It specifies which outducts to use in order to forward bundles to the local node's neighbors in the network. Since we only have one outduct, for forwarding bundles to one place (the local node), we only have one egress plan.

a plan 1 ltp/1

This command defines an egress plan for bundles to be transmitted to the local node:

  • a means this command adds something.
  • plan means this command adds an egress plan.
  • 1 is the node number of the remote node. In this case, that is the local node's own node number; we're configuring for loopback.
  • ltp/1 is the identifier of the outduct through which to transmit bundles in order to convey them to this ''remote'' node.

This means that the entire configuration file host1.ipnrc looks like this:

a plan 1 ltp/1

Testing Your Connection

Assuming no errors occur with the configuration above, we are now ready to test loopback communications. In one terminal, we have to run the start script (the one we said that you would have to have earlier). It's right here, in case you forgot to write it down:

ionstart -i host1.ionrc -l host1.ltprc -b host1.bprc -p host1.ipnrc

This command will run the appropriate administration programs, in order, with the appropriate configuration files. Don't worry that the command is lengthy and unwieldly; we will show you how to make a more clean single configuration file later.

Once the daemon is started, run:

bpsink ipn:1.1

This will begin listening on the Endpoint ID with the endpoint_number 1 on service_number 1, which is used for testing.

Now open another terminal and run the command:

bpsource ipn:1.1

This will begin sending messages you type to the Endpoint ID ipn:1.1, which is currently being listened to by bpsink. Type messages into bpsource, press enter, and see if they are reported by bpsink.

If so, you're ready for bigger and better things. If not, check the following:

  • Do you have write permissions for your current directory? If not, you will not be able to start the daemon as it has to write out to the ion.log file.
  • Are your config files exactly as specified, except for IP address changes?
  • Are you running it on one of our supported platforms? Currently, those are the only supported distributions.

If you are still having problems, you can ask for help on the ION users' list or file an ION bug report.

Stopping the Daemon

As the daemon launches many ducts and helper applications, it can be complicated to turn it all off. To help this, we provided a script. The script similar to ionstart exists called ionstop, which tears down the ion node in one step. You can call it like so:

ionstop

After stopping the daemon, it can be restarted using the same procedures as outlined above. Do remember that the ion.log file is still present, and will just keep growing as you experiment with ION.

IMPORTANT: The user account that runs ionstart must also run ionstop. If that account does not, no other accounts can successfully start the daemon, as the shared memory vital to ION's functionality will already be occupied.

More Advanced Usage

Detailed documentation of ION and its applications are available via man pages. It is suggested that you start with man ion , as this is an overview man page listing all available ION packages.

You can get more information about how ION runs and how to configure more advanced networks by examining the next section.

Example Networks

This section will describe some simple example networks and their configuration files.

Ionscript for Simplified Configuration Files

The most difficult and cumbersome method of starting an ION node is to manually run the various administration programs in order, manually typing configuration commands all the way. It is much more efficient and less error-prone to place the configuration commands into a configuration file and using that as input to the administration program, but this is still cumbersome as you must type in each administration program in order. The ionstart program will automatically execute the appropriate administration programs with their respective configuration files in order. Unfortunately, as seen in the previous sections, the command is lengthy. This is why the ionscript script was added to make things even easier.

The ionscript will basically concatenate the configuration files into one large file. The format of this large configuration file is simply to bookend configuration sections with the lines: ## begin PROGRAM and ## end PROGRAM, where PROGRAM is the name of the administration program for which the configuration commands should be sent (such as ionadmin, bpadmin, ipnadmin).

To create a single file host1.rc out of the various configuration files defined in the previous section, run this command:

ionscript -i host1.ionrc -p host1.ipnrc -l host1.ltprc -b host1.bprc -O host1.rc

The command can also be used to split the large host1.rc into the individual configuration files (so long as the large file is formatted correctly). Just run this command to revert the process:

ionscript -i host1.ionrc -p host1.ipnrc -l host1.ltprc -b host1.bprc -I host1.rc

This isn't very practical in this specific case (as you already have the individual files) but if you start with a single configuration file, this can be helpful.

Once you have a single configuration file, starting the ION node is a single command:

ionstart -I host1.rc

Note that ionstart and ionscript require sed and awk, but those are almost universally available on Unix-based systems. The two scripts will always sanity-check the large configuration file to ensure that it interprets the bookend lines correctly- and it will warn you of any errors you have made in the file. Consult the USAGE for each script for further help, by attempting to run the script with no arguments or the -h argument.

This convenient configuration file format will be used in the example networks described below.

Single Node Loopback

 

Loop network diagram

This system is formed by running the following command on Host 1:

ionstart -I loopback.rc

Be sure that you use the example configuration file loopback-ltp/loopback.rc:

## File created by ../../ionscript
## Mon Oct 27 14:56:07 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "loopback.rc"

## begin ionadmin
# ionrc configuration file for loopback test.
# This uses ltp as the primary convergence layer.
# command: % ionadmin loopback.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin ltpadmin
# ltprc configuration file for the loopback test.
# Command: % ltpadmin loopback.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# We estimate that the total number of export sessions managed by the
# LTP engine will be 32. A session is assumed to be around one
# second of transmission. This value should be estimated at the sum
# of maximum round-trip times (in seconds) for all "spans."
# Suggest throwing 20% higher number of sessions to account for extra-
# long sessions which contain an actual retransmission.
1 32

# Add a span. (a connection)
# Identify the span as engine number 1.
# Limit the number of export and imports sessions on this span
# to 10 to ensure we do not consume all space.
# Use 1400 byte segments (assuming a standard ethernet frame
# underlying this link and accounting for ip/udp/eth header overhead).
# Use a block size aggregation limit of 10000 bytes. This is the amount
# of data (which can span several bundles) typically sent in a session.
# You should consider this to be the maximum number of bytes sent in
# one second on the link.
# Use a block time aggregation limit of 1 second; if 1 second passes
# and the amount of data accumulated in the current block
# is less than the limit, send the block anyway.
# Use the command 'udplso localhost:1113' to implement the link
# itself. In this case, we use udp to connect to localhost (this is
# loopback) using port 1113 (defined by IANA as the default UDP port
# for Licklider Transmission Protocol). The single quote is
# important, don't use double quotes.
a span 1 10 10 1400 10000 1 'udplso localhost:1113'

# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" command).
# Also starts the link service INPUT task 'udplsi localhost:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi localhost:1113'
## end ltpadmin

## begin bpadmin
# bprc configuration file for the loopback test.
# Command: % bpadmin loopback.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Use ipn:1.0 as the custodian endpoint of this node.
# That is, scheme IPN with node 1 and service number 0
# (ipn requires custodian service is zero).
# Note that this EID must be understood by the node itself, so be sure
# to add the scheme below.
1 ipn:1.0

# Add an EID scheme.
# The scheme's name is ipn.
># This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:1.0, ipn:1.1, and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn:1.0 q
a endpoint ipn:1.1 q
a endpoint ipn:1.2 q

# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 1 ltpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for the loopback test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin loopback.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan.
# Bundles to be transmitted to node number 1 (that is, yourself).
# The plan is to queue for transmission on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 ltp/1
## end ipnadmin

Two-Node Ring

 

Two-Node Diagram

In this section, we assume that host1 has an IP address of 10.1.1.1 and host2 has an IP address of 10.1.1.2. Please modify this for your uses.

Note that this example network uses a different convergence layer: TCP.

This network is created by running the following command on Host 1:

ionstart host1.rc

Host 2 must run this command:

ionstart host2.rc

The configuration files are found in the 2node-tcp directory:

host1.rc:

## File created by ../../../../branches/release-1.0_r203/ionscript
## Wed Oct 29 17:28:46 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host1.rc"

## begin ionadmin
# ionrc configuration file for host1 in a 2node tcp test.
# This uses tcp as the primary convergence layer.
# command: % ionadmin host1.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add more contacts.
# They will connect 1 to 2, 2 to 1, and 2 to itself
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 2 2 1
a range +1 +3600 2 1 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin bpadmin
# bprc configuration file for host1 in a 2node test.
# Command: % bpadmin host1.bprc
# This command should be run AFTER ionadmin and BEFORE ipnadmin
# or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1

# Add an EID scheme.
# The scheme's name is ipn.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:1.0, ipn:1.1, and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to dump them 'x', as opposed to
# queueing them (use 'q' instead of 'x' to queue).
a endpoint ipn:1.0 x
a endpoint ipn:1.1 x
a endpoint ipn:1.2 x

# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.1:4556 tcpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.1 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.1:4556 tcpclo

# Add an outduct. (send to host2)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above.
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for host1 in the 2node tcp network.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host1.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan (to yourself).
# Bundles to be transmitted to node number 1 (that is, yourself).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.1:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 tcp/10.1.1.1:4556

# Add an egress plan. (to the second host)
# Bundles to be transmitted to node number 2 (the other node).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 tcp/10.1.1.2:4556
## end ipnadmin

host2.rc:

## File created by ../../../../branches/release-1.0_r203/ionscript
## Wed Oct 29 17:28:46 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host2.rc"

## begin ionadmin
# ionrc configuration file for host2 in a 2node tcp test.
# This uses tcp as the primary convergence layer.
# command: % ionadmin host2.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 2 (as in ipn:2).
# Use default sdr configuration (empty configuration file name "").
1 2 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add more contacts.
# They will connect 1 to 2, 2 to 1, and 2 to itself
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 2 2 1
a range +1 +3600 2 1 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin bpadmin
# bprc configuration file for host2 in a 2node test.
# Command: % bpadmin host2.bprc
# This command should be run AFTER ionadmin and BEFORE ipnadmin
# or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1

# Add an EID scheme.
# The scheme's name is ipn.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:2.0, ipn:2.1, and ipn:2.2 on the local node.
# ipn:2.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to dump them 'x', as opposed to
# queueing them (use 'q' instead of 'x' to queue).
a endpoint ipn:2.0 x
a endpoint ipn:2.1 x
a endpoint ipn:2.2 x

# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.2:4556 tcpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo

# Add an outduct. (send to host1)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.1 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.1:4556 tcpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above.
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for host1 in the 2node tcp network.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host2.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan (to yourself).
# Bundles to be transmitted to node number 2 (that is, yourself).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 tcp/10.1.1.2:4556

# Add an egress plan. (to the other host)
# Bundles to be transmitted to node number 1 (the other node).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.1:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 tcp/10.1.1.1:4556
## end ipnadmin

Three-Node Network

 

Three-Node Diagram

In this section, we assume that host1 has an IP address of 10.1.1.1, host2 has an IP address of 10.1.1.2, and host3 has an IP address of 10.1.1.3. Please modify this for your uses.

You will notice that this network uses host2 as a router in between host1 and host3. At this point, routing is handled by creating a group from the remote node and using the middle node as the gateway. Notice how host1 will take traffic for host3 and transmit it on the same outduct to host2, the next hop. Host3 will transmit traffic destined for host1 on the outduct for host2, also the next hop.

Also note that this network uses both LTP and TCP convergence layers.

This network is created by running the following command on Host 1:

ionstart -I host1.rc

This command is run on Host 2:

ionstart -I host2.rc

This command is run on Host 3:

ionstart -I host3.rc

The config files can be found in the 3node-tcp-ltp directory.

host1.rc:

## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host1.rc"

## begin ionadmin
# ionrc configuration file for host1 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host1.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 1 (as in ipn:1).
# Use default sdr configuration (empty configuration file name "").
1 1 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin ltpadmin
# ltprc configuration file for host1 in a 3node ltp/tcp test.
# Command: % ltpadmin host1.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1 32

# Add a span. (a connection)
a span 1 10 10 1400 10000 1 'udplso 10.1.1.1:1113'

# Add another span. (to host2)
# Identify the span as engine number 2.
# Use the command 'udplso 10.1.1.2:1113' to implement the link
# itself. In this case, we use udp to connect to host2 using the
# default port.
a span 2 10 10 1400 10000 1 'udplso 10.1.1.2:1113'

# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" commands).
# Also starts the link service INPUT task 'udplsi 10.1.1.1:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi 10.1.1.1:1113'
## end ltpadmin

## begin bpadmin
# bprc configuration file for host1 in a 3node ltp/tcp test.
# Command: % bpadmin host1.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1

# Add an EID scheme.
# The scheme's name is ipn.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:1.0, ipn:1.1, and ipn:1.2 on the local node.
# ipn:1.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn:1.0 x
a endpoint ipn:1.1 x
a endpoint ipn:1.2 x

# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 1 ltpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct). The name should correspond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo
# NOTE: what happens if 1 does not match the id of an ltp span?

# Add an outduct. (send to host2)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 2 (this is for future changing/deletion of the
# outduct). The name should correpsond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 2 ltpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for host1 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host1.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan.
# Bundles to be transmitted to node number 1 (that is, yourself).
# The plan is to queue for transmission on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 ltp/1

# Add other egress plans.
# Bundles for elemetn 2 can be transmitted directly to host2 using
# ltp outduct identified as '2.' See bprc file for available outducts
# and/or protocols.
a plan 2 ltp/2

# Add a group static route
# host 3 is not a neighbor to host1, but it is a neighbor to host2.
# send bundles for 3 via 2.
a group 3 3 ipn:2.0
## end ipnadmin

host2.rc:

## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host2.rc"

## begin ionadmin
# ionrc configuration file for host2 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host2.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 2 (as in ipn:2).
# Use default sdr configuration (empty configuration file name "").
1 2 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin ltpadmin
# ltprc configuration file for host2 in a 3node ltp/tcp test.
# Command: % ltpadmin host2.ltprc
# This command should be run AFTER ionadmin and BEFORE bpadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1 32

# Add a span. (a connection)
# Identify the span as engine number 1.
# Use the command 'udplso 10.1.1.1:1113' to implement the link
# itself. In this case, we use udp to connect to the local machine
# (loopback) using port 1113 (defined by IANA as the default UDP port
# for Licklider Transmission Protocol). The single quote is
# important, don't use double quotes.
a span 1 10 10 1400 10000 1 'udplso 10.1.1.1:1113'

# Add another span (to yourself).
# Identify the span as engine number 2.
# Use the command 'udplso 10.1.1.2:1113' to implement the link
# itself. In this case, we use udp to connect to host2 using the
# default port.
a span 2 10 10 1400 10000 1 'udplso 10.1.1.2:1113'

# Start command.
# This command actually runs the link service output commands
# (defined above, in the "a span" commands).
# Also starts the link service INPUT task 'udplsi 10.1.1.2:1113' to
# listen locally on UDP port 1113 for incoming LTP traffic.
s 'udplsi 10.1.1.2:1113'
## end ltpadmin

## begin bpadmin
# bprc configuration file for host2 in a 3node ltp/tcp test.
# Command: % bpadmin host2.bprc
# This command should be run AFTER ionadmin and ltpadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1

# Add an EID scheme.
# The scheme's name is ipn.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:2.0, ipn:2.1, and ipn:2.2 on the local node.
# ipn:2.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn:2.0 x
a endpoint ipn:2.1 x
a endpoint ipn:2.2 x

# Add a protocol.
# Add the protocol named ltp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, udp on ethernet) for payload, and 100 bytes for overhead.
a protocol ltp 1400 100

# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the ltp protocol.
# The duct's name is 2 (this is for future changing/deletion of the
# induct).
# The induct itself is implemented by the 'ltpcli' command.
a induct ltp 2 ltpcli

# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.2:4556 tcpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo

# Add an outduct. (send to host3)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.3 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.3:4556 tcpclo

# Add an outduct. (send to host1)
# Add an outduct to send bundles using the ltp protocol.
# The duct's name is 1 (this is for future changing/deletion of the
# outduct). The name should correpsond to a span (in your ltprc).
# The outduct itself is implemented by the 'ltpclo' command.
a outduct ltp 1 ltpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for host2 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host2.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan (to yourself).
# Bundles to be transmitted to node number 2 (that is, yourself).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 tcp/10.1.1.2:4556

# Add an egress plan. (to host3)
# Bundles to be transmitted to node number 3 (the other node).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.3:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 3 tcp/10.1.1.3:4556

# Add an egress plan. (to host1)
# Bundles to be transmitted to node number 1.
# The plan is to queue for transmission on protocol 'ltp' using
# the outduct identified as '1.'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 1 ltp/1
## end ipnadmin

host3.rc:

## File created by ../../ionscript
## Wed Oct 29 17:33:43 EDT 2008
## Run the following command to start ION node:
## % ionstart -I "host3.rc"

## begin ionadmin
# ionrc configuration file for host3 in a 3node tcp/ltp test.
# This uses ltp from 1 to 2 and ltp from 2 to 3.
# command: % ionadmin host3.ionrc
# This command should be run FIRST.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
# Set this node to be node 3 (as in ipn:3).
# Use default sdr configuration (empty configuration file name "").
1 3 ""

# start ion node
s

# Add a contact.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# It will transmit 100000 bytes/second.
a contact +1 +3600 1 1 100000

# Add more contacts.
# The network goes 1--2--3
# Note that contacts are unidirectional, so order matters.
a contact +1 +3600 1 2 100000
a contact +1 +3600 2 1 100000
a contact +1 +3600 2 2 100000
a contact +1 +3600 2 3 100000
a contact +1 +3600 3 2 100000
a contact +1 +3600 3 3 100000

# Add a range. This is the physical distance between nodes.
# It will start at +1 seconds from now, ending +3600 seconds from now.
# It will connect node 1 to itself.
# Data on the link is expected to take 1 second to reach the other
# end (One Way Light Time).
a range +1 +3600 1 1 1

# Add more ranges.
# We will assume every range is one second.
# Note that ranges cover both directions, so you only need define
# one range for any combination of nodes.
a range +1 +3600 1 2 1
a range +1 +3600 1 3 2
a range +1 +3600 2 2 1
a range +1 +3600 2 3 1
a range +1 +3600 3 3 1

# set this node to consume and produce a mean of 1000000 bytes/second.
m production 1000000
m consumption 1000000
## end ionadmin

## begin bpadmin
# bprc configuration file for host3 in a 3node ltp/tcp test.
# Command: % bpadmin host3.bprc
# This command should be run AFTER ionadmin and
# BEFORE ipnadmin or dtnadmin.
#
# Ohio University, Oct 2008

# Initialization command (command 1).
1

# Add an EID scheme.
# The scheme's name is ipn.
# This scheme's forwarding engine is handled by the program 'ipnfw.'
# This scheme's administration program (acting as the custodian
# daemon) is 'ipnadminep.'
a scheme ipn 'ipnfw' 'ipnadminep'

# Add endpoints.
# Establish endpoints ipn:3.0, ipn:3.1, and ipn:3.2 on the local node.
# ipn:3.0 is expected for custodian traffic. The rest are usually
# used for specific applications (such as bpsink).
# The behavior for receiving a bundle when there is no application
# currently accepting bundles, is to queue them 'q', as opposed to
# immediately and silently discarding them (use 'x' instead of 'q' to
# discard).
a endpoint ipn:3.0 x
a endpoint ipn:3.1 x
a endpoint ipn:3.2 x

# Add a protocol.
# Add the protocol named tcp.
# Estimate transmission capacity assuming 1400 bytes of each frame (in
# this case, tcp on ethernet) for payload, and 100 bytes for overhead.
a protocol tcp 1400 100

# Add an induct. (listen)
# Add an induct to accept bundles using the tcp protocol.
# The induct will listen at this host's IP address (private testbed).
# The induct will listen on port 4556, the IANA assigned default DTN
# TCP convergence layer port.
# The induct itself is implemented by the 'tcpcli' command.
a induct tcp 10.1.1.3:4556 tcpcli

# Add an outduct (send to yourself).
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.3 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.3:4556 tcpclo

# Add an outduct. (send to host2)
# Add an outduct to send bundles using the tcp protocol.
# The outduct will connect to the IP address 10.1.1.2 using the
# IANA assigned default DTN TCP port of 4556.
# The outduct itself is implemented by the 'tcpclo' command.
a outduct tcp 10.1.1.2:4556 tcpclo

# Start bundle protocol engine, also running all of the induct, outduct,
# and administration programs defined above
s
## end bpadmin

## begin ipnadmin
# ipnrc configuration file for host3 in a 3node ltp/tcp test.
# Essentially, this is the IPN scheme's routing table.
# Command: % ipnadmin host3.ipnrc
# This command should be run AFTER bpadmin (likely to be run last).
#
# Ohio University, Oct 2008

# Add an egress plan (to yourself).
# Bundles to be transmitted to node number 3 (that is, yourself).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.3:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 3 tcp/10.1.1.3:4556

# Add an egress plan. (to host2)
# Bundles to be transmitted to node number 2 (the other node).
# The plan is to queue for transmission on protocol 'tcp' using
# the outduct identified as '10.1.1.2:4556'
# See your bprc file or bpadmin for outducts/protocols you can use.
a plan 2 tcp/10.1.1.2:4556

# Add a group static route.
# Host1 is not a neigbor to host3, but is is a neighbor to host 2;
# send bundles for 1 via 2.
a group 1 1 ipn:2.0
## end ipnadmin

Support

Bug Reports

For bug support, we ask for the following:

  • The version of the ION distribution used, such as 3.3.0.
  • The operating system/s used on the host/s.
  • The version of gcc used to compile code (use gcc -v).
  • All configuration files.
  • The ion.log file from the host/s.

If you'd like to submit a bug report, please create an Issue on our bug tracking system

Mailng Lists

The following mailing lists exist for ION support:

  • ion-announce for announcements regarding ION releases, security vulnerabilities, etc.
  • ion-bugs for users to file bug reports. See the "Bug Reports" section for more information on that.
  • ion-users for anyone interested in ION discussions.

You can sign up for these lists here:

Frequently Asked Questions

About This Document

This documentation was ported from the original HTML by Ilya Kogan on 2008-08-12.

The original document was createdLaTeXand translated into HTML using the LaTeX2HTML translator Version 2002-2-1 (1.71)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -local_icons tutorial.tex

The translation was initiated by dave on 2008-11-01.